@@ -89,6 +89,7 @@ class IAMCredentialsAsyncClient:
8989 IAMCredentialsClient .parse_common_location_path
9090 )
9191
92+ from_service_account_info = IAMCredentialsClient .from_service_account_info
9293 from_service_account_file = IAMCredentialsClient .from_service_account_file
9394 from_service_account_json = from_service_account_file
9495
@@ -169,7 +170,7 @@ async def generate_access_token(
169170 account.
170171
171172 Args:
172- request (:class:`~.common .GenerateAccessTokenRequest`):
173+ request (:class:`google.cloud.iam_credentials_v1.types .GenerateAccessTokenRequest`):
173174 The request object.
174175 name (:class:`str`):
175176 Required. The resource name of the service account for
@@ -178,6 +179,7 @@ async def generate_access_token(
178179 ``projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}``.
179180 The ``-`` wildcard character is required; replacing it
180181 with a project ID is invalid.
182+
181183 This corresponds to the ``name`` field
182184 on the ``request`` instance; if ``request`` is provided, this
183185 should not be set.
@@ -195,6 +197,7 @@ async def generate_access_token(
195197 ``projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}``.
196198 The ``-`` wildcard character is required; replacing it
197199 with a project ID is invalid.
200+
198201 This corresponds to the ``delegates`` field
199202 on the ``request`` instance; if ``request`` is provided, this
200203 should not be set.
@@ -205,16 +208,18 @@ async def generate_access_token(
205208 https://developers.google.com/identity/protocols/googlescopes
206209 for more information.
207210 At least one value required.
211+
208212 This corresponds to the ``scope`` field
209213 on the ``request`` instance; if ``request`` is provided, this
210214 should not be set.
211- lifetime (:class:`~.duration .Duration`):
215+ lifetime (:class:`google.protobuf.duration_pb2 .Duration`):
212216 The desired lifetime duration of the
213217 access token in seconds. Must be set to
214218 a value less than or equal to 3600 (1
215219 hour). If a value is not specified, the
216220 token's lifetime will be set to a
217221 default value of one hour.
222+
218223 This corresponds to the ``lifetime`` field
219224 on the ``request`` instance; if ``request`` is provided, this
220225 should not be set.
@@ -226,7 +231,7 @@ async def generate_access_token(
226231 sent along with the request as metadata.
227232
228233 Returns:
229- ~.common .GenerateAccessTokenResponse:
234+ google.cloud.iam_credentials_v1.types .GenerateAccessTokenResponse:
230235
231236 """
232237 # Create or coerce a protobuf request object.
@@ -298,7 +303,7 @@ async def generate_id_token(
298303 account.
299304
300305 Args:
301- request (:class:`~.common .GenerateIdTokenRequest`):
306+ request (:class:`google.cloud.iam_credentials_v1.types .GenerateIdTokenRequest`):
302307 The request object.
303308 name (:class:`str`):
304309 Required. The resource name of the service account for
@@ -307,6 +312,7 @@ async def generate_id_token(
307312 ``projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}``.
308313 The ``-`` wildcard character is required; replacing it
309314 with a project ID is invalid.
315+
310316 This corresponds to the ``name`` field
311317 on the ``request`` instance; if ``request`` is provided, this
312318 should not be set.
@@ -324,20 +330,23 @@ async def generate_id_token(
324330 ``projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}``.
325331 The ``-`` wildcard character is required; replacing it
326332 with a project ID is invalid.
333+
327334 This corresponds to the ``delegates`` field
328335 on the ``request`` instance; if ``request`` is provided, this
329336 should not be set.
330337 audience (:class:`str`):
331338 Required. The audience for the token,
332339 such as the API or account that this
333340 token grants access to.
341+
334342 This corresponds to the ``audience`` field
335343 on the ``request`` instance; if ``request`` is provided, this
336344 should not be set.
337345 include_email (:class:`bool`):
338346 Include the service account email in the token. If set
339347 to ``true``, the token will contain ``email`` and
340348 ``email_verified`` claims.
349+
341350 This corresponds to the ``include_email`` field
342351 on the ``request`` instance; if ``request`` is provided, this
343352 should not be set.
@@ -349,7 +358,7 @@ async def generate_id_token(
349358 sent along with the request as metadata.
350359
351360 Returns:
352- ~.common .GenerateIdTokenResponse:
361+ google.cloud.iam_credentials_v1.types .GenerateIdTokenResponse:
353362
354363 """
355364 # Create or coerce a protobuf request object.
@@ -420,7 +429,7 @@ async def sign_blob(
420429 private key.
421430
422431 Args:
423- request (:class:`~.common .SignBlobRequest`):
432+ request (:class:`google.cloud.iam_credentials_v1.types .SignBlobRequest`):
424433 The request object.
425434 name (:class:`str`):
426435 Required. The resource name of the service account for
@@ -429,6 +438,7 @@ async def sign_blob(
429438 ``projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}``.
430439 The ``-`` wildcard character is required; replacing it
431440 with a project ID is invalid.
441+
432442 This corresponds to the ``name`` field
433443 on the ``request`` instance; if ``request`` is provided, this
434444 should not be set.
@@ -446,6 +456,7 @@ async def sign_blob(
446456 ``projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}``.
447457 The ``-`` wildcard character is required; replacing it
448458 with a project ID is invalid.
459+
449460 This corresponds to the ``delegates`` field
450461 on the ``request`` instance; if ``request`` is provided, this
451462 should not be set.
@@ -462,7 +473,7 @@ async def sign_blob(
462473 sent along with the request as metadata.
463474
464475 Returns:
465- ~.common .SignBlobResponse:
476+ google.cloud.iam_credentials_v1.types .SignBlobResponse:
466477
467478 """
468479 # Create or coerce a protobuf request object.
@@ -531,7 +542,7 @@ async def sign_jwt(
531542 private key.
532543
533544 Args:
534- request (:class:`~.common .SignJwtRequest`):
545+ request (:class:`google.cloud.iam_credentials_v1.types .SignJwtRequest`):
535546 The request object.
536547 name (:class:`str`):
537548 Required. The resource name of the service account for
@@ -540,6 +551,7 @@ async def sign_jwt(
540551 ``projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}``.
541552 The ``-`` wildcard character is required; replacing it
542553 with a project ID is invalid.
554+
543555 This corresponds to the ``name`` field
544556 on the ``request`` instance; if ``request`` is provided, this
545557 should not be set.
@@ -557,13 +569,15 @@ async def sign_jwt(
557569 ``projects/-/serviceAccounts/{ACCOUNT_EMAIL_OR_UNIQUEID}``.
558570 The ``-`` wildcard character is required; replacing it
559571 with a project ID is invalid.
572+
560573 This corresponds to the ``delegates`` field
561574 on the ``request`` instance; if ``request`` is provided, this
562575 should not be set.
563576 payload (:class:`str`):
564577 Required. The JWT payload to sign: a
565578 JSON object that contains a JWT Claims
566579 Set.
580+
567581 This corresponds to the ``payload`` field
568582 on the ``request`` instance; if ``request`` is provided, this
569583 should not be set.
@@ -575,7 +589,7 @@ async def sign_jwt(
575589 sent along with the request as metadata.
576590
577591 Returns:
578- ~.common .SignJwtResponse:
592+ google.cloud.iam_credentials_v1.types .SignJwtResponse:
579593
580594 """
581595 # Create or coerce a protobuf request object.
0 commit comments