Skip to content

Commit b74c6c2

Browse files
feat: [google-cloud-kms] add client library for KMS Autokey service, which enables automated KMS key provision and management (#12668)
BEGIN_COMMIT_OVERRIDE feat: add client library for KMS Autokey service, which enables automated KMS key provision and management END_COMMIT_OVERRIDE - [ ] Regenerate this pull request now. PiperOrigin-RevId: 631565226 Source-Link: googleapis/googleapis@e5b8ffa Source-Link: googleapis/googleapis-gen@cae62d4 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWttcy8uT3dsQm90LnlhbWwiLCJoIjoiY2FlNjJkNGZiMWI2YjdkNjk1ZmU1ZjZkZTY3MTFjODVkZGYwYWJkOCJ9 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: ohmayr <omairnaveed@ymail.com>
1 parent 33215ca commit b74c6c2

43 files changed

Lines changed: 23427 additions & 3 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Autokey
2+
-------------------------
3+
4+
.. automodule:: google.cloud.kms_v1.services.autokey
5+
:members:
6+
:inherited-members:
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
AutokeyAdmin
2+
------------------------------
3+
4+
.. automodule:: google.cloud.kms_v1.services.autokey_admin
5+
:members:
6+
:inherited-members:

packages/google-cloud-kms/docs/kms_v1/services_.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@ Services for Google Cloud Kms v1 API
33
.. toctree::
44
:maxdepth: 2
55

6+
autokey
7+
autokey_admin
68
ekm_service
79
key_management_service

packages/google-cloud-kms/google/cloud/kms/__init__.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@
1818
__version__ = package_version.__version__
1919

2020

21+
from google.cloud.kms_v1.services.autokey.async_client import AutokeyAsyncClient
22+
from google.cloud.kms_v1.services.autokey.client import AutokeyClient
23+
from google.cloud.kms_v1.services.autokey_admin.async_client import (
24+
AutokeyAdminAsyncClient,
25+
)
26+
from google.cloud.kms_v1.services.autokey_admin.client import AutokeyAdminClient
2127
from google.cloud.kms_v1.services.ekm_service.async_client import EkmServiceAsyncClient
2228
from google.cloud.kms_v1.services.ekm_service.client import EkmServiceClient
2329
from google.cloud.kms_v1.services.key_management_service.async_client import (
@@ -26,6 +32,21 @@
2632
from google.cloud.kms_v1.services.key_management_service.client import (
2733
KeyManagementServiceClient,
2834
)
35+
from google.cloud.kms_v1.types.autokey import (
36+
CreateKeyHandleMetadata,
37+
CreateKeyHandleRequest,
38+
GetKeyHandleRequest,
39+
KeyHandle,
40+
ListKeyHandlesRequest,
41+
ListKeyHandlesResponse,
42+
)
43+
from google.cloud.kms_v1.types.autokey_admin import (
44+
AutokeyConfig,
45+
GetAutokeyConfigRequest,
46+
ShowEffectiveAutokeyConfigRequest,
47+
ShowEffectiveAutokeyConfigResponse,
48+
UpdateAutokeyConfigRequest,
49+
)
2950
from google.cloud.kms_v1.types.ekm_service import (
3051
Certificate,
3152
CreateEkmConnectionRequest,
@@ -98,10 +119,25 @@
98119
)
99120

100121
__all__ = (
122+
"AutokeyClient",
123+
"AutokeyAsyncClient",
124+
"AutokeyAdminClient",
125+
"AutokeyAdminAsyncClient",
101126
"EkmServiceClient",
102127
"EkmServiceAsyncClient",
103128
"KeyManagementServiceClient",
104129
"KeyManagementServiceAsyncClient",
130+
"CreateKeyHandleMetadata",
131+
"CreateKeyHandleRequest",
132+
"GetKeyHandleRequest",
133+
"KeyHandle",
134+
"ListKeyHandlesRequest",
135+
"ListKeyHandlesResponse",
136+
"AutokeyConfig",
137+
"GetAutokeyConfigRequest",
138+
"ShowEffectiveAutokeyConfigRequest",
139+
"ShowEffectiveAutokeyConfigResponse",
140+
"UpdateAutokeyConfigRequest",
105141
"Certificate",
106142
"CreateEkmConnectionRequest",
107143
"EkmConfig",

packages/google-cloud-kms/google/cloud/kms/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "2.22.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-kms/google/cloud/kms_v1/__init__.py

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,28 @@
1818
__version__ = package_version.__version__
1919

2020

21+
from .services.autokey import AutokeyAsyncClient, AutokeyClient
22+
from .services.autokey_admin import AutokeyAdminAsyncClient, AutokeyAdminClient
2123
from .services.ekm_service import EkmServiceAsyncClient, EkmServiceClient
2224
from .services.key_management_service import (
2325
KeyManagementServiceAsyncClient,
2426
KeyManagementServiceClient,
2527
)
28+
from .types.autokey import (
29+
CreateKeyHandleMetadata,
30+
CreateKeyHandleRequest,
31+
GetKeyHandleRequest,
32+
KeyHandle,
33+
ListKeyHandlesRequest,
34+
ListKeyHandlesResponse,
35+
)
36+
from .types.autokey_admin import (
37+
AutokeyConfig,
38+
GetAutokeyConfigRequest,
39+
ShowEffectiveAutokeyConfigRequest,
40+
ShowEffectiveAutokeyConfigResponse,
41+
UpdateAutokeyConfigRequest,
42+
)
2643
from .types.ekm_service import (
2744
Certificate,
2845
CreateEkmConnectionRequest,
@@ -95,17 +112,24 @@
95112
)
96113

97114
__all__ = (
115+
"AutokeyAdminAsyncClient",
116+
"AutokeyAsyncClient",
98117
"EkmServiceAsyncClient",
99118
"KeyManagementServiceAsyncClient",
100119
"AsymmetricDecryptRequest",
101120
"AsymmetricDecryptResponse",
102121
"AsymmetricSignRequest",
103122
"AsymmetricSignResponse",
123+
"AutokeyAdminClient",
124+
"AutokeyClient",
125+
"AutokeyConfig",
104126
"Certificate",
105127
"CreateCryptoKeyRequest",
106128
"CreateCryptoKeyVersionRequest",
107129
"CreateEkmConnectionRequest",
108130
"CreateImportJobRequest",
131+
"CreateKeyHandleMetadata",
132+
"CreateKeyHandleRequest",
109133
"CreateKeyRingRequest",
110134
"CryptoKey",
111135
"CryptoKeyVersion",
@@ -122,15 +146,18 @@
122146
"ExternalProtectionLevelOptions",
123147
"GenerateRandomBytesRequest",
124148
"GenerateRandomBytesResponse",
149+
"GetAutokeyConfigRequest",
125150
"GetCryptoKeyRequest",
126151
"GetCryptoKeyVersionRequest",
127152
"GetEkmConfigRequest",
128153
"GetEkmConnectionRequest",
129154
"GetImportJobRequest",
155+
"GetKeyHandleRequest",
130156
"GetKeyRingRequest",
131157
"GetPublicKeyRequest",
132158
"ImportCryptoKeyVersionRequest",
133159
"ImportJob",
160+
"KeyHandle",
134161
"KeyManagementServiceClient",
135162
"KeyOperationAttestation",
136163
"KeyRing",
@@ -142,6 +169,8 @@
142169
"ListEkmConnectionsResponse",
143170
"ListImportJobsRequest",
144171
"ListImportJobsResponse",
172+
"ListKeyHandlesRequest",
173+
"ListKeyHandlesResponse",
145174
"ListKeyRingsRequest",
146175
"ListKeyRingsResponse",
147176
"LocationMetadata",
@@ -156,6 +185,9 @@
156185
"RawEncryptRequest",
157186
"RawEncryptResponse",
158187
"RestoreCryptoKeyVersionRequest",
188+
"ShowEffectiveAutokeyConfigRequest",
189+
"ShowEffectiveAutokeyConfigResponse",
190+
"UpdateAutokeyConfigRequest",
159191
"UpdateCryptoKeyPrimaryVersionRequest",
160192
"UpdateCryptoKeyRequest",
161193
"UpdateCryptoKeyVersionRequest",

packages/google-cloud-kms/google/cloud/kms_v1/gapic_metadata.json

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,134 @@
55
"protoPackage": "google.cloud.kms.v1",
66
"schema": "1.0",
77
"services": {
8+
"Autokey": {
9+
"clients": {
10+
"grpc": {
11+
"libraryClient": "AutokeyClient",
12+
"rpcs": {
13+
"CreateKeyHandle": {
14+
"methods": [
15+
"create_key_handle"
16+
]
17+
},
18+
"GetKeyHandle": {
19+
"methods": [
20+
"get_key_handle"
21+
]
22+
},
23+
"ListKeyHandles": {
24+
"methods": [
25+
"list_key_handles"
26+
]
27+
}
28+
}
29+
},
30+
"grpc-async": {
31+
"libraryClient": "AutokeyAsyncClient",
32+
"rpcs": {
33+
"CreateKeyHandle": {
34+
"methods": [
35+
"create_key_handle"
36+
]
37+
},
38+
"GetKeyHandle": {
39+
"methods": [
40+
"get_key_handle"
41+
]
42+
},
43+
"ListKeyHandles": {
44+
"methods": [
45+
"list_key_handles"
46+
]
47+
}
48+
}
49+
},
50+
"rest": {
51+
"libraryClient": "AutokeyClient",
52+
"rpcs": {
53+
"CreateKeyHandle": {
54+
"methods": [
55+
"create_key_handle"
56+
]
57+
},
58+
"GetKeyHandle": {
59+
"methods": [
60+
"get_key_handle"
61+
]
62+
},
63+
"ListKeyHandles": {
64+
"methods": [
65+
"list_key_handles"
66+
]
67+
}
68+
}
69+
}
70+
}
71+
},
72+
"AutokeyAdmin": {
73+
"clients": {
74+
"grpc": {
75+
"libraryClient": "AutokeyAdminClient",
76+
"rpcs": {
77+
"GetAutokeyConfig": {
78+
"methods": [
79+
"get_autokey_config"
80+
]
81+
},
82+
"ShowEffectiveAutokeyConfig": {
83+
"methods": [
84+
"show_effective_autokey_config"
85+
]
86+
},
87+
"UpdateAutokeyConfig": {
88+
"methods": [
89+
"update_autokey_config"
90+
]
91+
}
92+
}
93+
},
94+
"grpc-async": {
95+
"libraryClient": "AutokeyAdminAsyncClient",
96+
"rpcs": {
97+
"GetAutokeyConfig": {
98+
"methods": [
99+
"get_autokey_config"
100+
]
101+
},
102+
"ShowEffectiveAutokeyConfig": {
103+
"methods": [
104+
"show_effective_autokey_config"
105+
]
106+
},
107+
"UpdateAutokeyConfig": {
108+
"methods": [
109+
"update_autokey_config"
110+
]
111+
}
112+
}
113+
},
114+
"rest": {
115+
"libraryClient": "AutokeyAdminClient",
116+
"rpcs": {
117+
"GetAutokeyConfig": {
118+
"methods": [
119+
"get_autokey_config"
120+
]
121+
},
122+
"ShowEffectiveAutokeyConfig": {
123+
"methods": [
124+
"show_effective_autokey_config"
125+
]
126+
},
127+
"UpdateAutokeyConfig": {
128+
"methods": [
129+
"update_autokey_config"
130+
]
131+
}
132+
}
133+
}
134+
}
135+
},
8136
"EkmService": {
9137
"clients": {
10138
"grpc": {

packages/google-cloud-kms/google/cloud/kms_v1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "2.22.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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 .async_client import AutokeyAsyncClient
17+
from .client import AutokeyClient
18+
19+
__all__ = (
20+
"AutokeyClient",
21+
"AutokeyAsyncClient",
22+
)

0 commit comments

Comments
 (0)