Skip to content

Commit 14ca2d7

Browse files
chore: use gapic-generator-python 0.65.1 (#181)
* chore: use gapic-generator-python 0.65.1 PiperOrigin-RevId: 441524537 Source-Link: googleapis/googleapis@2a27391 Source-Link: googleapis/googleapis-gen@ab6756a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWI2NzU2YTQ4Yzg5YjViY2I5ZmI3MzQ0M2NiOGU1NWQ1NzRmNDY0MyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 37c898b commit 14ca2d7

File tree

6 files changed

+463
-43
lines changed

6 files changed

+463
-43
lines changed

packages/google-cloud-iam/google/cloud/iam_credentials_v1/services/iam_credentials/async_client.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from collections import OrderedDict
1717
import functools
1818
import re
19-
from typing import Dict, Optional, Sequence, Tuple, Type, Union
19+
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
2020
import pkg_resources
2121

2222
from google.api_core.client_options import ClientOptions
@@ -230,7 +230,6 @@ async def generate_access_token(
230230
r"""Generates an OAuth 2.0 access token for a service
231231
account.
232232
233-
234233
.. code-block:: python
235234
236235
from google.cloud import iam_credentials_v1
@@ -388,7 +387,6 @@ async def generate_id_token(
388387
r"""Generates an OpenID Connect ID token for a service
389388
account.
390389
391-
392390
.. code-block:: python
393391
394392
from google.cloud import iam_credentials_v1
@@ -539,7 +537,6 @@ async def sign_blob(
539537
r"""Signs a blob using a service account's system-managed
540538
private key.
541539
542-
543540
.. code-block:: python
544541
545542
from google.cloud import iam_credentials_v1
@@ -677,7 +674,6 @@ async def sign_jwt(
677674
r"""Signs a JWT using a service account's system-managed
678675
private key.
679676
680-
681677
.. code-block:: python
682678
683679
from google.cloud import iam_credentials_v1

packages/google-cloud-iam/google/cloud/iam_credentials_v1/services/iam_credentials/client.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from collections import OrderedDict
1717
import os
1818
import re
19-
from typing import Dict, Optional, Sequence, Tuple, Type, Union
19+
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
2020
import pkg_resources
2121

2222
from google.api_core import client_options as client_options_lib
@@ -450,7 +450,6 @@ def generate_access_token(
450450
r"""Generates an OAuth 2.0 access token for a service
451451
account.
452452
453-
454453
.. code-block:: python
455454
456455
from google.cloud import iam_credentials_v1
@@ -598,7 +597,6 @@ def generate_id_token(
598597
r"""Generates an OpenID Connect ID token for a service
599598
account.
600599
601-
602600
.. code-block:: python
603601
604602
from google.cloud import iam_credentials_v1
@@ -739,7 +737,6 @@ def sign_blob(
739737
r"""Signs a blob using a service account's system-managed
740738
private key.
741739
742-
743740
.. code-block:: python
744741
745742
from google.cloud import iam_credentials_v1
@@ -867,7 +864,6 @@ def sign_jwt(
867864
r"""Signs a JWT using a service account's system-managed
868865
private key.
869866
870-
871867
.. code-block:: python
872868
873869
from google.cloud import iam_credentials_v1

packages/google-cloud-iam/google/cloud/iam_credentials_v1/services/iam_credentials/transports/base.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ def __init__(
8080
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
8181
be used for service account credentials.
8282
"""
83+
8384
# Save the hostname. Default to port 443 (HTTPS) if none is specified.
8485
if ":" not in host:
8586
host += ":443"
@@ -232,5 +233,9 @@ def sign_jwt(
232233
]:
233234
raise NotImplementedError()
234235

236+
@property
237+
def kind(self) -> str:
238+
raise NotImplementedError()
239+
235240

236241
__all__ = ("IAMCredentialsTransport",)

packages/google-cloud-iam/google/cloud/iam_credentials_v1/services/iam_credentials/transports/grpc.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,5 +345,9 @@ def sign_jwt(self) -> Callable[[common.SignJwtRequest], common.SignJwtResponse]:
345345
def close(self):
346346
self.grpc_channel.close()
347347

348+
@property
349+
def kind(self) -> str:
350+
return "grpc"
351+
348352

349353
__all__ = ("IAMCredentialsGrpcTransport",)

0 commit comments

Comments
 (0)