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

Commit

Permalink
chore: upgrade gapic-generator-python to 0.42.2
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 361662015

Source-Author: Google APIs <noreply@google.com>
Source-Date: Mon Mar 8 14:47:18 2021 -0800
Source-Repo: googleapis/googleapis
Source-Sha: 28a591963253d52ce3a25a918cafbdd9928de8cf
Source-Link: googleapis/googleapis@28a5919
  • Loading branch information
yoshi-automation committed Mar 10, 2021
1 parent d64eb57 commit b3e04d6
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 68 deletions.
Expand Up @@ -1495,10 +1495,13 @@ def set_iam_policy(
"""
# Create or coerce a protobuf request object.

# The request isn't a proto-plus wrapped type,
# so it must be constructed via keyword expansion.
if isinstance(request, dict):
# The request isn't a proto-plus wrapped type,
# so it must be constructed via keyword expansion.
request = iam_policy.SetIamPolicyRequest(**request)
elif not request:
# Null request, just make one.
request = iam_policy.SetIamPolicyRequest()

# Wrap the RPC method; this adds retry and timeout information,
# and friendly error handling.
Expand Down Expand Up @@ -1600,10 +1603,13 @@ def get_iam_policy(
"""
# Create or coerce a protobuf request object.

# The request isn't a proto-plus wrapped type,
# so it must be constructed via keyword expansion.
if isinstance(request, dict):
# The request isn't a proto-plus wrapped type,
# so it must be constructed via keyword expansion.
request = iam_policy.GetIamPolicyRequest(**request)
elif not request:
# Null request, just make one.
request = iam_policy.GetIamPolicyRequest()

# Wrap the RPC method; this adds retry and timeout information,
# and friendly error handling.
Expand Down Expand Up @@ -1655,10 +1661,13 @@ def test_iam_permissions(
"""
# Create or coerce a protobuf request object.

# The request isn't a proto-plus wrapped type,
# so it must be constructed via keyword expansion.
if isinstance(request, dict):
# The request isn't a proto-plus wrapped type,
# so it must be constructed via keyword expansion.
request = iam_policy.TestIamPermissionsRequest(**request)
elif not request:
# Null request, just make one.
request = iam_policy.TestIamPermissionsRequest()

# Wrap the RPC method; this adds retry and timeout information,
# and friendly error handling.
Expand Down
60 changes: 30 additions & 30 deletions google/cloud/secretmanager_v1/types/__init__.py
Expand Up @@ -16,55 +16,55 @@
#

from .resources import (
Secret,
SecretVersion,
Replication,
CustomerManagedEncryption,
ReplicationStatus,
CustomerManagedEncryptionStatus,
Topic,
Replication,
ReplicationStatus,
Secret,
SecretPayload,
SecretVersion,
Topic,
)
from .service import (
ListSecretsRequest,
ListSecretsResponse,
CreateSecretRequest,
AddSecretVersionRequest,
GetSecretRequest,
ListSecretVersionsRequest,
ListSecretVersionsResponse,
GetSecretVersionRequest,
UpdateSecretRequest,
AccessSecretVersionRequest,
AccessSecretVersionResponse,
AddSecretVersionRequest,
CreateSecretRequest,
DeleteSecretRequest,
DestroySecretVersionRequest,
DisableSecretVersionRequest,
EnableSecretVersionRequest,
DestroySecretVersionRequest,
GetSecretRequest,
GetSecretVersionRequest,
ListSecretsRequest,
ListSecretsResponse,
ListSecretVersionsRequest,
ListSecretVersionsResponse,
UpdateSecretRequest,
)

__all__ = (
"Secret",
"SecretVersion",
"Replication",
"CustomerManagedEncryption",
"ReplicationStatus",
"CustomerManagedEncryptionStatus",
"Topic",
"Replication",
"ReplicationStatus",
"Secret",
"SecretPayload",
"ListSecretsRequest",
"ListSecretsResponse",
"CreateSecretRequest",
"AddSecretVersionRequest",
"GetSecretRequest",
"ListSecretVersionsRequest",
"ListSecretVersionsResponse",
"GetSecretVersionRequest",
"UpdateSecretRequest",
"SecretVersion",
"Topic",
"AccessSecretVersionRequest",
"AccessSecretVersionResponse",
"AddSecretVersionRequest",
"CreateSecretRequest",
"DeleteSecretRequest",
"DestroySecretVersionRequest",
"DisableSecretVersionRequest",
"EnableSecretVersionRequest",
"DestroySecretVersionRequest",
"GetSecretRequest",
"GetSecretVersionRequest",
"ListSecretsRequest",
"ListSecretsResponse",
"ListSecretVersionsRequest",
"ListSecretVersionsResponse",
"UpdateSecretRequest",
)
Expand Up @@ -1479,10 +1479,13 @@ def set_iam_policy(
"""
# Create or coerce a protobuf request object.

# The request isn't a proto-plus wrapped type,
# so it must be constructed via keyword expansion.
if isinstance(request, dict):
# The request isn't a proto-plus wrapped type,
# so it must be constructed via keyword expansion.
request = iam_policy.SetIamPolicyRequest(**request)
elif not request:
# Null request, just make one.
request = iam_policy.SetIamPolicyRequest()

# Wrap the RPC method; this adds retry and timeout information,
# and friendly error handling.
Expand Down Expand Up @@ -1584,10 +1587,13 @@ def get_iam_policy(
"""
# Create or coerce a protobuf request object.

# The request isn't a proto-plus wrapped type,
# so it must be constructed via keyword expansion.
if isinstance(request, dict):
# The request isn't a proto-plus wrapped type,
# so it must be constructed via keyword expansion.
request = iam_policy.GetIamPolicyRequest(**request)
elif not request:
# Null request, just make one.
request = iam_policy.GetIamPolicyRequest()

# Wrap the RPC method; this adds retry and timeout information,
# and friendly error handling.
Expand Down Expand Up @@ -1639,10 +1645,13 @@ def test_iam_permissions(
"""
# Create or coerce a protobuf request object.

# The request isn't a proto-plus wrapped type,
# so it must be constructed via keyword expansion.
if isinstance(request, dict):
# The request isn't a proto-plus wrapped type,
# so it must be constructed via keyword expansion.
request = iam_policy.TestIamPermissionsRequest(**request)
elif not request:
# Null request, just make one.
request = iam_policy.TestIamPermissionsRequest()

# Wrap the RPC method; this adds retry and timeout information,
# and friendly error handling.
Expand Down
48 changes: 24 additions & 24 deletions google/cloud/secretmanager_v1beta1/types/__init__.py
Expand Up @@ -16,47 +16,47 @@
#

from .resources import (
Secret,
SecretVersion,
Replication,
Secret,
SecretPayload,
SecretVersion,
)
from .service import (
ListSecretsRequest,
ListSecretsResponse,
CreateSecretRequest,
AddSecretVersionRequest,
GetSecretRequest,
ListSecretVersionsRequest,
ListSecretVersionsResponse,
GetSecretVersionRequest,
UpdateSecretRequest,
AccessSecretVersionRequest,
AccessSecretVersionResponse,
AddSecretVersionRequest,
CreateSecretRequest,
DeleteSecretRequest,
DestroySecretVersionRequest,
DisableSecretVersionRequest,
EnableSecretVersionRequest,
DestroySecretVersionRequest,
GetSecretRequest,
GetSecretVersionRequest,
ListSecretsRequest,
ListSecretsResponse,
ListSecretVersionsRequest,
ListSecretVersionsResponse,
UpdateSecretRequest,
)

__all__ = (
"Secret",
"SecretVersion",
"Replication",
"Secret",
"SecretPayload",
"ListSecretsRequest",
"ListSecretsResponse",
"CreateSecretRequest",
"AddSecretVersionRequest",
"GetSecretRequest",
"ListSecretVersionsRequest",
"ListSecretVersionsResponse",
"GetSecretVersionRequest",
"UpdateSecretRequest",
"SecretVersion",
"AccessSecretVersionRequest",
"AccessSecretVersionResponse",
"AddSecretVersionRequest",
"CreateSecretRequest",
"DeleteSecretRequest",
"DestroySecretVersionRequest",
"DisableSecretVersionRequest",
"EnableSecretVersionRequest",
"DestroySecretVersionRequest",
"GetSecretRequest",
"GetSecretVersionRequest",
"ListSecretsRequest",
"ListSecretsResponse",
"ListSecretVersionsRequest",
"ListSecretVersionsResponse",
"UpdateSecretRequest",
)
4 changes: 2 additions & 2 deletions synth.metadata
Expand Up @@ -11,8 +11,8 @@
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "07932bb995e7dc91b43620ea8402c6668c7d102c",
"internalRef": "359562873"
"sha": "28a591963253d52ce3a25a918cafbdd9928de8cf",
"internalRef": "361662015"
}
},
{
Expand Down

0 comments on commit b3e04d6

Please sign in to comment.