Skip to content

Commit

Permalink
feat: [google-cloud-kms] add client library for KMS Autokey service, …
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
3 people authored May 8, 2024
1 parent 33215ca commit b74c6c2
Show file tree
Hide file tree
Showing 43 changed files with 23,427 additions and 3 deletions.
6 changes: 6 additions & 0 deletions packages/google-cloud-kms/docs/kms_v1/autokey.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Autokey
-------------------------

.. automodule:: google.cloud.kms_v1.services.autokey
:members:
:inherited-members:
6 changes: 6 additions & 0 deletions packages/google-cloud-kms/docs/kms_v1/autokey_admin.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
AutokeyAdmin
------------------------------

.. automodule:: google.cloud.kms_v1.services.autokey_admin
:members:
:inherited-members:
2 changes: 2 additions & 0 deletions packages/google-cloud-kms/docs/kms_v1/services_.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ Services for Google Cloud Kms v1 API
.. toctree::
:maxdepth: 2

autokey
autokey_admin
ekm_service
key_management_service
36 changes: 36 additions & 0 deletions packages/google-cloud-kms/google/cloud/kms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
__version__ = package_version.__version__


from google.cloud.kms_v1.services.autokey.async_client import AutokeyAsyncClient
from google.cloud.kms_v1.services.autokey.client import AutokeyClient
from google.cloud.kms_v1.services.autokey_admin.async_client import (
AutokeyAdminAsyncClient,
)
from google.cloud.kms_v1.services.autokey_admin.client import AutokeyAdminClient
from google.cloud.kms_v1.services.ekm_service.async_client import EkmServiceAsyncClient
from google.cloud.kms_v1.services.ekm_service.client import EkmServiceClient
from google.cloud.kms_v1.services.key_management_service.async_client import (
Expand All @@ -26,6 +32,21 @@
from google.cloud.kms_v1.services.key_management_service.client import (
KeyManagementServiceClient,
)
from google.cloud.kms_v1.types.autokey import (
CreateKeyHandleMetadata,
CreateKeyHandleRequest,
GetKeyHandleRequest,
KeyHandle,
ListKeyHandlesRequest,
ListKeyHandlesResponse,
)
from google.cloud.kms_v1.types.autokey_admin import (
AutokeyConfig,
GetAutokeyConfigRequest,
ShowEffectiveAutokeyConfigRequest,
ShowEffectiveAutokeyConfigResponse,
UpdateAutokeyConfigRequest,
)
from google.cloud.kms_v1.types.ekm_service import (
Certificate,
CreateEkmConnectionRequest,
Expand Down Expand Up @@ -98,10 +119,25 @@
)

__all__ = (
"AutokeyClient",
"AutokeyAsyncClient",
"AutokeyAdminClient",
"AutokeyAdminAsyncClient",
"EkmServiceClient",
"EkmServiceAsyncClient",
"KeyManagementServiceClient",
"KeyManagementServiceAsyncClient",
"CreateKeyHandleMetadata",
"CreateKeyHandleRequest",
"GetKeyHandleRequest",
"KeyHandle",
"ListKeyHandlesRequest",
"ListKeyHandlesResponse",
"AutokeyConfig",
"GetAutokeyConfigRequest",
"ShowEffectiveAutokeyConfigRequest",
"ShowEffectiveAutokeyConfigResponse",
"UpdateAutokeyConfigRequest",
"Certificate",
"CreateEkmConnectionRequest",
"EkmConfig",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "2.22.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
32 changes: 32 additions & 0 deletions packages/google-cloud-kms/google/cloud/kms_v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,28 @@
__version__ = package_version.__version__


from .services.autokey import AutokeyAsyncClient, AutokeyClient
from .services.autokey_admin import AutokeyAdminAsyncClient, AutokeyAdminClient
from .services.ekm_service import EkmServiceAsyncClient, EkmServiceClient
from .services.key_management_service import (
KeyManagementServiceAsyncClient,
KeyManagementServiceClient,
)
from .types.autokey import (
CreateKeyHandleMetadata,
CreateKeyHandleRequest,
GetKeyHandleRequest,
KeyHandle,
ListKeyHandlesRequest,
ListKeyHandlesResponse,
)
from .types.autokey_admin import (
AutokeyConfig,
GetAutokeyConfigRequest,
ShowEffectiveAutokeyConfigRequest,
ShowEffectiveAutokeyConfigResponse,
UpdateAutokeyConfigRequest,
)
from .types.ekm_service import (
Certificate,
CreateEkmConnectionRequest,
Expand Down Expand Up @@ -95,17 +112,24 @@
)

__all__ = (
"AutokeyAdminAsyncClient",
"AutokeyAsyncClient",
"EkmServiceAsyncClient",
"KeyManagementServiceAsyncClient",
"AsymmetricDecryptRequest",
"AsymmetricDecryptResponse",
"AsymmetricSignRequest",
"AsymmetricSignResponse",
"AutokeyAdminClient",
"AutokeyClient",
"AutokeyConfig",
"Certificate",
"CreateCryptoKeyRequest",
"CreateCryptoKeyVersionRequest",
"CreateEkmConnectionRequest",
"CreateImportJobRequest",
"CreateKeyHandleMetadata",
"CreateKeyHandleRequest",
"CreateKeyRingRequest",
"CryptoKey",
"CryptoKeyVersion",
Expand All @@ -122,15 +146,18 @@
"ExternalProtectionLevelOptions",
"GenerateRandomBytesRequest",
"GenerateRandomBytesResponse",
"GetAutokeyConfigRequest",
"GetCryptoKeyRequest",
"GetCryptoKeyVersionRequest",
"GetEkmConfigRequest",
"GetEkmConnectionRequest",
"GetImportJobRequest",
"GetKeyHandleRequest",
"GetKeyRingRequest",
"GetPublicKeyRequest",
"ImportCryptoKeyVersionRequest",
"ImportJob",
"KeyHandle",
"KeyManagementServiceClient",
"KeyOperationAttestation",
"KeyRing",
Expand All @@ -142,6 +169,8 @@
"ListEkmConnectionsResponse",
"ListImportJobsRequest",
"ListImportJobsResponse",
"ListKeyHandlesRequest",
"ListKeyHandlesResponse",
"ListKeyRingsRequest",
"ListKeyRingsResponse",
"LocationMetadata",
Expand All @@ -156,6 +185,9 @@
"RawEncryptRequest",
"RawEncryptResponse",
"RestoreCryptoKeyVersionRequest",
"ShowEffectiveAutokeyConfigRequest",
"ShowEffectiveAutokeyConfigResponse",
"UpdateAutokeyConfigRequest",
"UpdateCryptoKeyPrimaryVersionRequest",
"UpdateCryptoKeyRequest",
"UpdateCryptoKeyVersionRequest",
Expand Down
128 changes: 128 additions & 0 deletions packages/google-cloud-kms/google/cloud/kms_v1/gapic_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,134 @@
"protoPackage": "google.cloud.kms.v1",
"schema": "1.0",
"services": {
"Autokey": {
"clients": {
"grpc": {
"libraryClient": "AutokeyClient",
"rpcs": {
"CreateKeyHandle": {
"methods": [
"create_key_handle"
]
},
"GetKeyHandle": {
"methods": [
"get_key_handle"
]
},
"ListKeyHandles": {
"methods": [
"list_key_handles"
]
}
}
},
"grpc-async": {
"libraryClient": "AutokeyAsyncClient",
"rpcs": {
"CreateKeyHandle": {
"methods": [
"create_key_handle"
]
},
"GetKeyHandle": {
"methods": [
"get_key_handle"
]
},
"ListKeyHandles": {
"methods": [
"list_key_handles"
]
}
}
},
"rest": {
"libraryClient": "AutokeyClient",
"rpcs": {
"CreateKeyHandle": {
"methods": [
"create_key_handle"
]
},
"GetKeyHandle": {
"methods": [
"get_key_handle"
]
},
"ListKeyHandles": {
"methods": [
"list_key_handles"
]
}
}
}
}
},
"AutokeyAdmin": {
"clients": {
"grpc": {
"libraryClient": "AutokeyAdminClient",
"rpcs": {
"GetAutokeyConfig": {
"methods": [
"get_autokey_config"
]
},
"ShowEffectiveAutokeyConfig": {
"methods": [
"show_effective_autokey_config"
]
},
"UpdateAutokeyConfig": {
"methods": [
"update_autokey_config"
]
}
}
},
"grpc-async": {
"libraryClient": "AutokeyAdminAsyncClient",
"rpcs": {
"GetAutokeyConfig": {
"methods": [
"get_autokey_config"
]
},
"ShowEffectiveAutokeyConfig": {
"methods": [
"show_effective_autokey_config"
]
},
"UpdateAutokeyConfig": {
"methods": [
"update_autokey_config"
]
}
}
},
"rest": {
"libraryClient": "AutokeyAdminClient",
"rpcs": {
"GetAutokeyConfig": {
"methods": [
"get_autokey_config"
]
},
"ShowEffectiveAutokeyConfig": {
"methods": [
"show_effective_autokey_config"
]
},
"UpdateAutokeyConfig": {
"methods": [
"update_autokey_config"
]
}
}
}
}
},
"EkmService": {
"clients": {
"grpc": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "2.22.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
from .async_client import AutokeyAsyncClient
from .client import AutokeyClient

__all__ = (
"AutokeyClient",
"AutokeyAsyncClient",
)
Loading

0 comments on commit b74c6c2

Please sign in to comment.