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

Commit d629942

Browse files
Merge branch 'add-iam' of https://github.com/googleapis/python-iam into add-iam
2 parents 6a68925 + 9e1254b commit d629942

33 files changed

Lines changed: 8075 additions & 0 deletions

docs/iam_v2beta/policies.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Policies
2+
--------------------------
3+
4+
.. automodule:: google.cloud.iam_v2beta.services.policies
5+
:members:
6+
:inherited-members:
7+
8+
.. automodule:: google.cloud.iam_v2beta.services.policies.pagers
9+
:members:
10+
:inherited-members:

docs/iam_v2beta/services.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Services for Google Cloud Iam v2beta API
2+
========================================
3+
.. toctree::
4+
:maxdepth: 2
5+
6+
policies

docs/iam_v2beta/types.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Types for Google Cloud Iam v2beta API
2+
=====================================
3+
4+
.. automodule:: google.cloud.iam_v2beta.types
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2022 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
17+
from .services.policies import PoliciesAsyncClient, PoliciesClient
18+
from .types.deny import DenyRule
19+
from .types.policy import (
20+
CreatePolicyRequest,
21+
DeletePolicyRequest,
22+
GetPolicyRequest,
23+
ListPoliciesRequest,
24+
ListPoliciesResponse,
25+
Policy,
26+
PolicyOperationMetadata,
27+
PolicyRule,
28+
UpdatePolicyRequest,
29+
)
30+
31+
__all__ = (
32+
"PoliciesAsyncClient",
33+
"CreatePolicyRequest",
34+
"DeletePolicyRequest",
35+
"DenyRule",
36+
"GetPolicyRequest",
37+
"ListPoliciesRequest",
38+
"ListPoliciesResponse",
39+
"PoliciesClient",
40+
"Policy",
41+
"PolicyOperationMetadata",
42+
"PolicyRule",
43+
"UpdatePolicyRequest",
44+
)
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
3+
"language": "python",
4+
"libraryPackage": "google.cloud.iam_v2beta",
5+
"protoPackage": "google.iam.v2beta",
6+
"schema": "1.0",
7+
"services": {
8+
"Policies": {
9+
"clients": {
10+
"grpc": {
11+
"libraryClient": "PoliciesClient",
12+
"rpcs": {
13+
"CreatePolicy": {
14+
"methods": [
15+
"create_policy"
16+
]
17+
},
18+
"DeletePolicy": {
19+
"methods": [
20+
"delete_policy"
21+
]
22+
},
23+
"GetPolicy": {
24+
"methods": [
25+
"get_policy"
26+
]
27+
},
28+
"ListPolicies": {
29+
"methods": [
30+
"list_policies"
31+
]
32+
},
33+
"UpdatePolicy": {
34+
"methods": [
35+
"update_policy"
36+
]
37+
}
38+
}
39+
},
40+
"grpc-async": {
41+
"libraryClient": "PoliciesAsyncClient",
42+
"rpcs": {
43+
"CreatePolicy": {
44+
"methods": [
45+
"create_policy"
46+
]
47+
},
48+
"DeletePolicy": {
49+
"methods": [
50+
"delete_policy"
51+
]
52+
},
53+
"GetPolicy": {
54+
"methods": [
55+
"get_policy"
56+
]
57+
},
58+
"ListPolicies": {
59+
"methods": [
60+
"list_policies"
61+
]
62+
},
63+
"UpdatePolicy": {
64+
"methods": [
65+
"update_policy"
66+
]
67+
}
68+
}
69+
}
70+
}
71+
}
72+
}
73+
}

google/cloud/iam_v2beta/py.typed

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Marker file for PEP 561.
2+
# The google-cloud-iam package uses inline types.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2022 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2022 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
from .async_client import PoliciesAsyncClient
17+
from .client import PoliciesClient
18+
19+
__all__ = (
20+
"PoliciesClient",
21+
"PoliciesAsyncClient",
22+
)

0 commit comments

Comments
 (0)