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

Commit f9bef11

Browse files
authored
feat: add iam_v2beta (#206)
1 parent a8b1cf0 commit f9bef11

35 files changed

+8093
-1
lines changed

.github/.OwlBot.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,15 @@ docker:
1818
deep-remove-regex:
1919
- /owl-bot-staging
2020

21+
deep-preserve-regex:
22+
- /owl-bot-staging/iam/v1
23+
- /owl-bot-staging/iam/v1beta
24+
2125
deep-copy-regex:
2226
- source: /google/iam/credentials/(v.*)/.*-py/(.*)
23-
dest: /owl-bot-staging/$1/$2
27+
dest: /owl-bot-staging/iamcredentials/$1/$2
28+
- source: /google/iam/(v.*)/.*-py/(.*)
29+
dest: /owl-bot-staging/iam/$1/$2
2430

2531
begin-after-commit-hash: 130ce904e5d546c312943d10f48799590f9c0f66
2632

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:

docs/index.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
.. include:: multiprocessing.rst
44

5+
This package includes clients for multiple versions of Cloud Identity and Access Management.
6+
By default, you will get version ``iam_credentials_v1``.
7+
58

69
API Reference
710
-------------
@@ -11,6 +14,14 @@ API Reference
1114
iam_credentials_v1/services
1215
iam_credentials_v1/types
1316

17+
API Reference
18+
-------------
19+
.. toctree::
20+
:maxdepth: 2
21+
22+
iam_v2beta/services
23+
iam_v2beta/types
24+
1425

1526
Migration Guide
1627
---------------

google/cloud/iam_v2beta/__init__.py

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)