Skip to content
This repository was archived by the owner on Mar 15, 2025. It is now read-only.

Commit aade679

Browse files
chore: upgrade gapic-generator-python to 0.46.3 (#47)
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
1 parent 21b1448 commit aade679

22 files changed

+704
-466
lines changed

docs/orgpolicy_v2/org_policy.rst

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ OrgPolicy
55
:members:
66
:inherited-members:
77

8-
98
.. automodule:: google.cloud.orgpolicy_v2.services.org_policy.pagers
109
:members:
1110
:inherited-members:

google/cloud/orgpolicy/__init__.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
32
# Copyright 2020 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,10 +14,11 @@
1514
# limitations under the License.
1615
#
1716

17+
from google.cloud.orgpolicy_v2.services.org_policy.client import OrgPolicyClient
1818
from google.cloud.orgpolicy_v2.services.org_policy.async_client import (
1919
OrgPolicyAsyncClient,
2020
)
21-
from google.cloud.orgpolicy_v2.services.org_policy.client import OrgPolicyClient
21+
2222
from google.cloud.orgpolicy_v2.types.constraint import Constraint
2323
from google.cloud.orgpolicy_v2.types.orgpolicy import AlternatePolicySpec
2424
from google.cloud.orgpolicy_v2.types.orgpolicy import CreatePolicyRequest
@@ -34,8 +34,10 @@
3434
from google.cloud.orgpolicy_v2.types.orgpolicy import UpdatePolicyRequest
3535

3636
__all__ = (
37-
"AlternatePolicySpec",
37+
"OrgPolicyClient",
38+
"OrgPolicyAsyncClient",
3839
"Constraint",
40+
"AlternatePolicySpec",
3941
"CreatePolicyRequest",
4042
"DeletePolicyRequest",
4143
"GetEffectivePolicyRequest",
@@ -44,8 +46,6 @@
4446
"ListConstraintsResponse",
4547
"ListPoliciesRequest",
4648
"ListPoliciesResponse",
47-
"OrgPolicyAsyncClient",
48-
"OrgPolicyClient",
4949
"Policy",
5050
"PolicySpec",
5151
"UpdatePolicyRequest",

google/cloud/orgpolicy_v2/__init__.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
32
# Copyright 2020 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,6 +15,8 @@
1615
#
1716

1817
from .services.org_policy import OrgPolicyClient
18+
from .services.org_policy import OrgPolicyAsyncClient
19+
1920
from .types.constraint import Constraint
2021
from .types.orgpolicy import AlternatePolicySpec
2122
from .types.orgpolicy import CreatePolicyRequest
@@ -30,8 +31,8 @@
3031
from .types.orgpolicy import PolicySpec
3132
from .types.orgpolicy import UpdatePolicyRequest
3233

33-
3434
__all__ = (
35+
"OrgPolicyAsyncClient",
3536
"AlternatePolicySpec",
3637
"Constraint",
3738
"CreatePolicyRequest",
@@ -42,8 +43,8 @@
4243
"ListConstraintsResponse",
4344
"ListPoliciesRequest",
4445
"ListPoliciesResponse",
46+
"OrgPolicyClient",
4547
"Policy",
4648
"PolicySpec",
4749
"UpdatePolicyRequest",
48-
"OrgPolicyClient",
4950
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
{
2+
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
3+
"language": "python",
4+
"libraryPackage": "google.cloud.orgpolicy_v2",
5+
"protoPackage": "google.cloud.orgpolicy.v2",
6+
"schema": "1.0",
7+
"services": {
8+
"OrgPolicy": {
9+
"clients": {
10+
"grpc": {
11+
"libraryClient": "OrgPolicyClient",
12+
"rpcs": {
13+
"CreatePolicy": {
14+
"methods": [
15+
"create_policy"
16+
]
17+
},
18+
"DeletePolicy": {
19+
"methods": [
20+
"delete_policy"
21+
]
22+
},
23+
"GetEffectivePolicy": {
24+
"methods": [
25+
"get_effective_policy"
26+
]
27+
},
28+
"GetPolicy": {
29+
"methods": [
30+
"get_policy"
31+
]
32+
},
33+
"ListConstraints": {
34+
"methods": [
35+
"list_constraints"
36+
]
37+
},
38+
"ListPolicies": {
39+
"methods": [
40+
"list_policies"
41+
]
42+
},
43+
"UpdatePolicy": {
44+
"methods": [
45+
"update_policy"
46+
]
47+
}
48+
}
49+
},
50+
"grpc-async": {
51+
"libraryClient": "OrgPolicyAsyncClient",
52+
"rpcs": {
53+
"CreatePolicy": {
54+
"methods": [
55+
"create_policy"
56+
]
57+
},
58+
"DeletePolicy": {
59+
"methods": [
60+
"delete_policy"
61+
]
62+
},
63+
"GetEffectivePolicy": {
64+
"methods": [
65+
"get_effective_policy"
66+
]
67+
},
68+
"GetPolicy": {
69+
"methods": [
70+
"get_policy"
71+
]
72+
},
73+
"ListConstraints": {
74+
"methods": [
75+
"list_constraints"
76+
]
77+
},
78+
"ListPolicies": {
79+
"methods": [
80+
"list_policies"
81+
]
82+
},
83+
"UpdatePolicy": {
84+
"methods": [
85+
"update_policy"
86+
]
87+
}
88+
}
89+
}
90+
}
91+
}
92+
}
93+
}

google/cloud/orgpolicy_v2/services/__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
32
# Copyright 2020 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");

google/cloud/orgpolicy_v2/services/org_policy/__init__.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
32
# Copyright 2020 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,7 +13,6 @@
1413
# See the License for the specific language governing permissions and
1514
# limitations under the License.
1615
#
17-
1816
from .client import OrgPolicyClient
1917
from .async_client import OrgPolicyAsyncClient
2018

0 commit comments

Comments
 (0)