gapic-generator-python
gapic-generator-python copied to clipboard
Missing field parent in generated sample accessapproval_v1_generated_access_approval_list_approval_requests_async.py
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.