Skip to content

Commit 3269aa3

Browse files
committed
adds comment explaining source of *Request names
1 parent 75d7a93 commit 3269aa3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/microgenerator/templates/partials/_method_with_request_builder.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ def {{ method.name }}(
22
self,
33
{{ method.request_id_args[-1] }}: Optional[str] = None,
44
*,
5+
{# Assumes the request class is a nested type within the service, e.g., bigquery_v2.types.dataset.GetDatasetRequest #}
56
request: Optional[{{ '.'.join(method.request_class_full_name.split('.')[-2:]) }}] = None,
67
retry: OptionalRetry = DEFAULT_RETRY,
78
timeout: Union[float, object] = DEFAULT_TIMEOUT,
@@ -40,4 +41,4 @@ def {{ method.name }}(
4041
retry=retry,
4142
timeout=timeout,
4243
metadata=metadata,
43-
)
44+
)

0 commit comments

Comments
 (0)