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] authored May 14, 2021
1 parent 95c6b6c commit ea577ae
Show file tree
Hide file tree
Showing 22 changed files with 704 additions and 466 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ OrgPolicy
:members:
:inherited-members:


.. automodule:: google.cloud.orgpolicy_v2.services.org_policy.pagers
:members:
:inherited-members:
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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",
)
Original file line number Diff line number Diff line change
@@ -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"
]
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Loading

0 comments on commit ea577ae

Please sign in to comment.