Skip to content

Commit 6038a69

Browse files
committed
adds comment regarding request_id_args
1 parent 3269aa3 commit 6038a69

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/microgenerator/templates/partials/_method_with_request_builder.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
def {{ method.name }}(
22
self,
3+
{# Assumes the primary resource ID is the last arg in request_id_args #}
34
{{ method.request_id_args[-1] }}: Optional[str] = None,
45
*,
56
{# Assumes the request class is a nested type within the service, e.g., bigquery_v2.types.dataset.GetDatasetRequest #}

0 commit comments

Comments
 (0)