Skip to content
This repository has been archived by the owner on Oct 16, 2023. It is now read-only.

Commit

Permalink
chore: upgrade gapic-generator-python to 0.46.3 (#76)
Browse files Browse the repository at this point in the history
feat: support self-signed JWT flow for service accounts

fix: add async client to %name_%version/init.py

chore: add autogenerated snippets

chore: remove auth, policy, and options from the reserved names list

chore: enable GAPIC metadata generation

chore: sort subpackages in %namespace/%name/init.py
  • Loading branch information
gcf-owl-bot[bot] committed May 20, 2021
1 parent 8b1a544 commit 50ca9be
Show file tree
Hide file tree
Showing 23 changed files with 647 additions and 381 deletions.
12 changes: 6 additions & 6 deletions google/cloud/iam_credentials/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -15,12 +14,13 @@
# limitations under the License.
#

from google.cloud.iam_credentials_v1.services.iam_credentials.async_client import (
IAMCredentialsAsyncClient,
)
from google.cloud.iam_credentials_v1.services.iam_credentials.client import (
IAMCredentialsClient,
)
from google.cloud.iam_credentials_v1.services.iam_credentials.async_client import (
IAMCredentialsAsyncClient,
)

from google.cloud.iam_credentials_v1.types.common import GenerateAccessTokenRequest
from google.cloud.iam_credentials_v1.types.common import GenerateAccessTokenResponse
from google.cloud.iam_credentials_v1.types.common import GenerateIdTokenRequest
Expand All @@ -31,12 +31,12 @@
from google.cloud.iam_credentials_v1.types.common import SignJwtResponse

__all__ = (
"IAMCredentialsClient",
"IAMCredentialsAsyncClient",
"GenerateAccessTokenRequest",
"GenerateAccessTokenResponse",
"GenerateIdTokenRequest",
"GenerateIdTokenResponse",
"IAMCredentialsAsyncClient",
"IAMCredentialsClient",
"SignBlobRequest",
"SignBlobResponse",
"SignJwtRequest",
Expand Down
7 changes: 4 additions & 3 deletions google/cloud/iam_credentials_v1/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -16,6 +15,8 @@
#

from .services.iam_credentials import IAMCredentialsClient
from .services.iam_credentials import IAMCredentialsAsyncClient

from .types.common import GenerateAccessTokenRequest
from .types.common import GenerateAccessTokenResponse
from .types.common import GenerateIdTokenRequest
Expand All @@ -25,15 +26,15 @@
from .types.common import SignJwtRequest
from .types.common import SignJwtResponse


__all__ = (
"IAMCredentialsAsyncClient",
"GenerateAccessTokenRequest",
"GenerateAccessTokenResponse",
"GenerateIdTokenRequest",
"GenerateIdTokenResponse",
"IAMCredentialsClient",
"SignBlobRequest",
"SignBlobResponse",
"SignJwtRequest",
"SignJwtResponse",
"IAMCredentialsClient",
)
63 changes: 63 additions & 0 deletions google/cloud/iam_credentials_v1/gapic_metadata.json
@@ -0,0 +1,63 @@
{
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "python",
"libraryPackage": "google.iam.credentials_v1",
"protoPackage": "google.iam.credentials.v1",
"schema": "1.0",
"services": {
"IAMCredentials": {
"clients": {
"grpc": {
"libraryClient": "IAMCredentialsClient",
"rpcs": {
"GenerateAccessToken": {
"methods": [
"generate_access_token"
]
},
"GenerateIdToken": {
"methods": [
"generate_id_token"
]
},
"SignBlob": {
"methods": [
"sign_blob"
]
},
"SignJwt": {
"methods": [
"sign_jwt"
]
}
}
},
"grpc-async": {
"libraryClient": "IAMCredentialsAsyncClient",
"rpcs": {
"GenerateAccessToken": {
"methods": [
"generate_access_token"
]
},
"GenerateIdToken": {
"methods": [
"generate_id_token"
]
},
"SignBlob": {
"methods": [
"sign_blob"
]
},
"SignJwt": {
"methods": [
"sign_jwt"
]
}
}
}
}
}
}
}
1 change: 0 additions & 1 deletion google/cloud/iam_credentials_v1/services/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -14,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

from .client import IAMCredentialsClient
from .async_client import IAMCredentialsAsyncClient

Expand Down

0 comments on commit 50ca9be

Please sign in to comment.