Skip to content

Commit 8abb150

Browse files
partheaohmayr
andauthored
feat: [google-cloud-secret-manager] clients for SecretManager API v1beta2 (#12437)
Reverts #12426 Googlers see b/328550238 Co-authored-by: ohmayr <[email protected]>
1 parent 334d0b3 commit 8abb150

File tree

55 files changed

+26020
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+26020
-0
lines changed

packages/google-cloud-secret-manager/docs/index.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ API Reference
2222
secretmanager_v1beta1/services_
2323
secretmanager_v1beta1/types_
2424

25+
API Reference
26+
-------------
27+
.. toctree::
28+
:maxdepth: 2
29+
30+
secretmanager_v1beta2/services_
31+
secretmanager_v1beta2/types_
32+
2533

2634
Changelog
2735
---------
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
SecretManagerService
2+
--------------------------------------
3+
4+
.. automodule:: google.cloud.secretmanager_v1beta2.services.secret_manager_service
5+
:members:
6+
:inherited-members:
7+
8+
.. automodule:: google.cloud.secretmanager_v1beta2.services.secret_manager_service.pagers
9+
:members:
10+
:inherited-members:
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Services for Google Cloud Secretmanager v1beta2 API
2+
===================================================
3+
.. toctree::
4+
:maxdepth: 2
5+
6+
secret_manager_service
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Types for Google Cloud Secretmanager v1beta2 API
2+
================================================
3+
4+
.. automodule:: google.cloud.secretmanager_v1beta2.types
5+
:members:
6+
:show-inheritance:
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2024 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 google.cloud.secretmanager_v1beta2 import gapic_version as package_version
17+
18+
__version__ = package_version.__version__
19+
20+
21+
from .services.secret_manager_service import (
22+
SecretManagerServiceAsyncClient,
23+
SecretManagerServiceClient,
24+
)
25+
from .types.resources import (
26+
CustomerManagedEncryption,
27+
CustomerManagedEncryptionStatus,
28+
Replication,
29+
ReplicationStatus,
30+
Rotation,
31+
Secret,
32+
SecretPayload,
33+
SecretVersion,
34+
Topic,
35+
)
36+
from .types.service import (
37+
AccessSecretVersionRequest,
38+
AccessSecretVersionResponse,
39+
AddSecretVersionRequest,
40+
CreateSecretRequest,
41+
DeleteSecretRequest,
42+
DestroySecretVersionRequest,
43+
DisableSecretVersionRequest,
44+
EnableSecretVersionRequest,
45+
GetSecretRequest,
46+
GetSecretVersionRequest,
47+
ListSecretsRequest,
48+
ListSecretsResponse,
49+
ListSecretVersionsRequest,
50+
ListSecretVersionsResponse,
51+
UpdateSecretRequest,
52+
)
53+
54+
__all__ = (
55+
"SecretManagerServiceAsyncClient",
56+
"AccessSecretVersionRequest",
57+
"AccessSecretVersionResponse",
58+
"AddSecretVersionRequest",
59+
"CreateSecretRequest",
60+
"CustomerManagedEncryption",
61+
"CustomerManagedEncryptionStatus",
62+
"DeleteSecretRequest",
63+
"DestroySecretVersionRequest",
64+
"DisableSecretVersionRequest",
65+
"EnableSecretVersionRequest",
66+
"GetSecretRequest",
67+
"GetSecretVersionRequest",
68+
"ListSecretVersionsRequest",
69+
"ListSecretVersionsResponse",
70+
"ListSecretsRequest",
71+
"ListSecretsResponse",
72+
"Replication",
73+
"ReplicationStatus",
74+
"Rotation",
75+
"Secret",
76+
"SecretManagerServiceClient",
77+
"SecretPayload",
78+
"SecretVersion",
79+
"Topic",
80+
"UpdateSecretRequest",
81+
)
Lines changed: 253 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,253 @@
1+
{
2+
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
3+
"language": "python",
4+
"libraryPackage": "google.cloud.secretmanager_v1beta2",
5+
"protoPackage": "google.cloud.secretmanager.v1beta2",
6+
"schema": "1.0",
7+
"services": {
8+
"SecretManagerService": {
9+
"clients": {
10+
"grpc": {
11+
"libraryClient": "SecretManagerServiceClient",
12+
"rpcs": {
13+
"AccessSecretVersion": {
14+
"methods": [
15+
"access_secret_version"
16+
]
17+
},
18+
"AddSecretVersion": {
19+
"methods": [
20+
"add_secret_version"
21+
]
22+
},
23+
"CreateSecret": {
24+
"methods": [
25+
"create_secret"
26+
]
27+
},
28+
"DeleteSecret": {
29+
"methods": [
30+
"delete_secret"
31+
]
32+
},
33+
"DestroySecretVersion": {
34+
"methods": [
35+
"destroy_secret_version"
36+
]
37+
},
38+
"DisableSecretVersion": {
39+
"methods": [
40+
"disable_secret_version"
41+
]
42+
},
43+
"EnableSecretVersion": {
44+
"methods": [
45+
"enable_secret_version"
46+
]
47+
},
48+
"GetIamPolicy": {
49+
"methods": [
50+
"get_iam_policy"
51+
]
52+
},
53+
"GetSecret": {
54+
"methods": [
55+
"get_secret"
56+
]
57+
},
58+
"GetSecretVersion": {
59+
"methods": [
60+
"get_secret_version"
61+
]
62+
},
63+
"ListSecretVersions": {
64+
"methods": [
65+
"list_secret_versions"
66+
]
67+
},
68+
"ListSecrets": {
69+
"methods": [
70+
"list_secrets"
71+
]
72+
},
73+
"SetIamPolicy": {
74+
"methods": [
75+
"set_iam_policy"
76+
]
77+
},
78+
"TestIamPermissions": {
79+
"methods": [
80+
"test_iam_permissions"
81+
]
82+
},
83+
"UpdateSecret": {
84+
"methods": [
85+
"update_secret"
86+
]
87+
}
88+
}
89+
},
90+
"grpc-async": {
91+
"libraryClient": "SecretManagerServiceAsyncClient",
92+
"rpcs": {
93+
"AccessSecretVersion": {
94+
"methods": [
95+
"access_secret_version"
96+
]
97+
},
98+
"AddSecretVersion": {
99+
"methods": [
100+
"add_secret_version"
101+
]
102+
},
103+
"CreateSecret": {
104+
"methods": [
105+
"create_secret"
106+
]
107+
},
108+
"DeleteSecret": {
109+
"methods": [
110+
"delete_secret"
111+
]
112+
},
113+
"DestroySecretVersion": {
114+
"methods": [
115+
"destroy_secret_version"
116+
]
117+
},
118+
"DisableSecretVersion": {
119+
"methods": [
120+
"disable_secret_version"
121+
]
122+
},
123+
"EnableSecretVersion": {
124+
"methods": [
125+
"enable_secret_version"
126+
]
127+
},
128+
"GetIamPolicy": {
129+
"methods": [
130+
"get_iam_policy"
131+
]
132+
},
133+
"GetSecret": {
134+
"methods": [
135+
"get_secret"
136+
]
137+
},
138+
"GetSecretVersion": {
139+
"methods": [
140+
"get_secret_version"
141+
]
142+
},
143+
"ListSecretVersions": {
144+
"methods": [
145+
"list_secret_versions"
146+
]
147+
},
148+
"ListSecrets": {
149+
"methods": [
150+
"list_secrets"
151+
]
152+
},
153+
"SetIamPolicy": {
154+
"methods": [
155+
"set_iam_policy"
156+
]
157+
},
158+
"TestIamPermissions": {
159+
"methods": [
160+
"test_iam_permissions"
161+
]
162+
},
163+
"UpdateSecret": {
164+
"methods": [
165+
"update_secret"
166+
]
167+
}
168+
}
169+
},
170+
"rest": {
171+
"libraryClient": "SecretManagerServiceClient",
172+
"rpcs": {
173+
"AccessSecretVersion": {
174+
"methods": [
175+
"access_secret_version"
176+
]
177+
},
178+
"AddSecretVersion": {
179+
"methods": [
180+
"add_secret_version"
181+
]
182+
},
183+
"CreateSecret": {
184+
"methods": [
185+
"create_secret"
186+
]
187+
},
188+
"DeleteSecret": {
189+
"methods": [
190+
"delete_secret"
191+
]
192+
},
193+
"DestroySecretVersion": {
194+
"methods": [
195+
"destroy_secret_version"
196+
]
197+
},
198+
"DisableSecretVersion": {
199+
"methods": [
200+
"disable_secret_version"
201+
]
202+
},
203+
"EnableSecretVersion": {
204+
"methods": [
205+
"enable_secret_version"
206+
]
207+
},
208+
"GetIamPolicy": {
209+
"methods": [
210+
"get_iam_policy"
211+
]
212+
},
213+
"GetSecret": {
214+
"methods": [
215+
"get_secret"
216+
]
217+
},
218+
"GetSecretVersion": {
219+
"methods": [
220+
"get_secret_version"
221+
]
222+
},
223+
"ListSecretVersions": {
224+
"methods": [
225+
"list_secret_versions"
226+
]
227+
},
228+
"ListSecrets": {
229+
"methods": [
230+
"list_secrets"
231+
]
232+
},
233+
"SetIamPolicy": {
234+
"methods": [
235+
"set_iam_policy"
236+
]
237+
},
238+
"TestIamPermissions": {
239+
"methods": [
240+
"test_iam_permissions"
241+
]
242+
},
243+
"UpdateSecret": {
244+
"methods": [
245+
"update_secret"
246+
]
247+
}
248+
}
249+
}
250+
}
251+
}
252+
}
253+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2024 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+
__version__ = "0.0.0" # {x-release-please-version}
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-secretmanager package uses inline types.

0 commit comments

Comments
 (0)