gapic-generator-python icon indicating copy to clipboard operation
gapic-generator-python copied to clipboard

Missing field parent in generated sample accessapproval_v1_generated_access_approval_list_approval_requests_async.py

Open ohmayr opened this issue 2 years ago • 0 comments

An autogenerated snippet for google-cloud-access-approval has a missing field parent which results in the sample code to not work as expected. The following manual change seems to fix the issue:

# Initialize request argument(s)
    request = accessapproval_v1.ListApprovalRequestsMessage(
        parent="projects/someproject"
    )

Note: The proto comment also needs to specify that parent is a required field.

ohmayr avatar Oct 05 '23 18:10 ohmayr