Skip to content

Commit

Permalink
chore: upgrade gapic-generator-python to 0.46.3 (#47)
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 373649163

Source-Link: googleapis/googleapis@7e1b14e

Source-Link: googleapis/googleapis-gen@0a3c7d2

fix: add async client to %name_%version/init.py chore: add autogenerated snippets 
chore: remove auth, policy, and options from the reserved names list 
feat: support self-signed JWT flow for service accounts 
chore: enable GAPIC metadata generation 
chore: sort subpackages in %namespace/%name/init.py
  • Loading branch information
gcf-owl-bot[bot] committed May 14, 2021
1 parent 21b1448 commit aade679
Show file tree
Hide file tree
Showing 22 changed files with 704 additions and 466 deletions.
1 change: 0 additions & 1 deletion docs/orgpolicy_v2/org_policy.rst
Expand Up @@ -5,7 +5,6 @@ OrgPolicy
:members:
:inherited-members:


.. automodule:: google.cloud.orgpolicy_v2.services.org_policy.pagers
:members:
:inherited-members:
10 changes: 5 additions & 5 deletions google/cloud/orgpolicy/__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,10 +14,11 @@
# limitations under the License.
#

from google.cloud.orgpolicy_v2.services.org_policy.client import OrgPolicyClient
from google.cloud.orgpolicy_v2.services.org_policy.async_client import (
OrgPolicyAsyncClient,
)
from google.cloud.orgpolicy_v2.services.org_policy.client import OrgPolicyClient

from google.cloud.orgpolicy_v2.types.constraint import Constraint
from google.cloud.orgpolicy_v2.types.orgpolicy import AlternatePolicySpec
from google.cloud.orgpolicy_v2.types.orgpolicy import CreatePolicyRequest
Expand All @@ -34,8 +34,10 @@
from google.cloud.orgpolicy_v2.types.orgpolicy import UpdatePolicyRequest

__all__ = (
"AlternatePolicySpec",
"OrgPolicyClient",
"OrgPolicyAsyncClient",
"Constraint",
"AlternatePolicySpec",
"CreatePolicyRequest",
"DeletePolicyRequest",
"GetEffectivePolicyRequest",
Expand All @@ -44,8 +46,6 @@
"ListConstraintsResponse",
"ListPoliciesRequest",
"ListPoliciesResponse",
"OrgPolicyAsyncClient",
"OrgPolicyClient",
"Policy",
"PolicySpec",
"UpdatePolicyRequest",
Expand Down
7 changes: 4 additions & 3 deletions google/cloud/orgpolicy_v2/__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.org_policy import OrgPolicyClient
from .services.org_policy import OrgPolicyAsyncClient

from .types.constraint import Constraint
from .types.orgpolicy import AlternatePolicySpec
from .types.orgpolicy import CreatePolicyRequest
Expand All @@ -30,8 +31,8 @@
from .types.orgpolicy import PolicySpec
from .types.orgpolicy import UpdatePolicyRequest


__all__ = (
"OrgPolicyAsyncClient",
"AlternatePolicySpec",
"Constraint",
"CreatePolicyRequest",
Expand All @@ -42,8 +43,8 @@
"ListConstraintsResponse",
"ListPoliciesRequest",
"ListPoliciesResponse",
"OrgPolicyClient",
"Policy",
"PolicySpec",
"UpdatePolicyRequest",
"OrgPolicyClient",
)
93 changes: 93 additions & 0 deletions google/cloud/orgpolicy_v2/gapic_metadata.json
@@ -0,0 +1,93 @@
{
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "python",
"libraryPackage": "google.cloud.orgpolicy_v2",
"protoPackage": "google.cloud.orgpolicy.v2",
"schema": "1.0",
"services": {
"OrgPolicy": {
"clients": {
"grpc": {
"libraryClient": "OrgPolicyClient",
"rpcs": {
"CreatePolicy": {
"methods": [
"create_policy"
]
},
"DeletePolicy": {
"methods": [
"delete_policy"
]
},
"GetEffectivePolicy": {
"methods": [
"get_effective_policy"
]
},
"GetPolicy": {
"methods": [
"get_policy"
]
},
"ListConstraints": {
"methods": [
"list_constraints"
]
},
"ListPolicies": {
"methods": [
"list_policies"
]
},
"UpdatePolicy": {
"methods": [
"update_policy"
]
}
}
},
"grpc-async": {
"libraryClient": "OrgPolicyAsyncClient",
"rpcs": {
"CreatePolicy": {
"methods": [
"create_policy"
]
},
"DeletePolicy": {
"methods": [
"delete_policy"
]
},
"GetEffectivePolicy": {
"methods": [
"get_effective_policy"
]
},
"GetPolicy": {
"methods": [
"get_policy"
]
},
"ListConstraints": {
"methods": [
"list_constraints"
]
},
"ListPolicies": {
"methods": [
"list_policies"
]
},
"UpdatePolicy": {
"methods": [
"update_policy"
]
}
}
}
}
}
}
}
1 change: 0 additions & 1 deletion google/cloud/orgpolicy_v2/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
2 changes: 0 additions & 2 deletions google/cloud/orgpolicy_v2/services/org_policy/__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 @@ -14,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

from .client import OrgPolicyClient
from .async_client import OrgPolicyAsyncClient

Expand Down

0 comments on commit aade679

Please sign in to comment.