Skip to content

Commit

Permalink
feat: add a new EkmService API (#233)
Browse files Browse the repository at this point in the history
* feat: add a new EkmService API

PiperOrigin-RevId: 425982419

Source-Link: googleapis/googleapis@8dff569

Source-Link: googleapis/googleapis-gen@b1538df
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjE1MzhkZjE2NDM5MjI2MDZkMDBlYzAzNjVjMWUwYTUxYmZiY2FiZiJ9

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Feb 3, 2022
1 parent bc3e067 commit 32ac688
Show file tree
Hide file tree
Showing 22 changed files with 6,769 additions and 94 deletions.
10 changes: 10 additions & 0 deletions packages/google-cloud-kms/docs/kms_v1/ekm_service.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
EkmService
----------------------------

.. automodule:: google.cloud.kms_v1.services.ekm_service
:members:
:inherited-members:

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

ekm_service
key_management_service
18 changes: 18 additions & 0 deletions packages/google-cloud-kms/google/cloud/kms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,22 @@
# limitations under the License.
#

from google.cloud.kms_v1.services.ekm_service.client import EkmServiceClient
from google.cloud.kms_v1.services.ekm_service.async_client import EkmServiceAsyncClient
from google.cloud.kms_v1.services.key_management_service.client import (
KeyManagementServiceClient,
)
from google.cloud.kms_v1.services.key_management_service.async_client import (
KeyManagementServiceAsyncClient,
)

from google.cloud.kms_v1.types.ekm_service import Certificate
from google.cloud.kms_v1.types.ekm_service import CreateEkmConnectionRequest
from google.cloud.kms_v1.types.ekm_service import EkmConnection
from google.cloud.kms_v1.types.ekm_service import GetEkmConnectionRequest
from google.cloud.kms_v1.types.ekm_service import ListEkmConnectionsRequest
from google.cloud.kms_v1.types.ekm_service import ListEkmConnectionsResponse
from google.cloud.kms_v1.types.ekm_service import UpdateEkmConnectionRequest
from google.cloud.kms_v1.types.resources import CryptoKey
from google.cloud.kms_v1.types.resources import CryptoKeyVersion
from google.cloud.kms_v1.types.resources import CryptoKeyVersionTemplate
Expand Down Expand Up @@ -71,8 +80,17 @@
from google.cloud.kms_v1.types.service import UpdateCryptoKeyVersionRequest

__all__ = (
"EkmServiceClient",
"EkmServiceAsyncClient",
"KeyManagementServiceClient",
"KeyManagementServiceAsyncClient",
"Certificate",
"CreateEkmConnectionRequest",
"EkmConnection",
"GetEkmConnectionRequest",
"ListEkmConnectionsRequest",
"ListEkmConnectionsResponse",
"UpdateEkmConnectionRequest",
"CryptoKey",
"CryptoKeyVersion",
"CryptoKeyVersionTemplate",
Expand Down
18 changes: 18 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 @@ -14,9 +14,18 @@
# limitations under the License.
#

from .services.ekm_service import EkmServiceClient
from .services.ekm_service import EkmServiceAsyncClient
from .services.key_management_service import KeyManagementServiceClient
from .services.key_management_service import KeyManagementServiceAsyncClient

from .types.ekm_service import Certificate
from .types.ekm_service import CreateEkmConnectionRequest
from .types.ekm_service import EkmConnection
from .types.ekm_service import GetEkmConnectionRequest
from .types.ekm_service import ListEkmConnectionsRequest
from .types.ekm_service import ListEkmConnectionsResponse
from .types.ekm_service import UpdateEkmConnectionRequest
from .types.resources import CryptoKey
from .types.resources import CryptoKeyVersion
from .types.resources import CryptoKeyVersionTemplate
Expand Down Expand Up @@ -67,13 +76,16 @@
from .types.service import UpdateCryptoKeyVersionRequest

__all__ = (
"EkmServiceAsyncClient",
"KeyManagementServiceAsyncClient",
"AsymmetricDecryptRequest",
"AsymmetricDecryptResponse",
"AsymmetricSignRequest",
"AsymmetricSignResponse",
"Certificate",
"CreateCryptoKeyRequest",
"CreateCryptoKeyVersionRequest",
"CreateEkmConnectionRequest",
"CreateImportJobRequest",
"CreateKeyRingRequest",
"CryptoKey",
Expand All @@ -83,13 +95,16 @@
"DecryptResponse",
"DestroyCryptoKeyVersionRequest",
"Digest",
"EkmConnection",
"EkmServiceClient",
"EncryptRequest",
"EncryptResponse",
"ExternalProtectionLevelOptions",
"GenerateRandomBytesRequest",
"GenerateRandomBytesResponse",
"GetCryptoKeyRequest",
"GetCryptoKeyVersionRequest",
"GetEkmConnectionRequest",
"GetImportJobRequest",
"GetKeyRingRequest",
"GetPublicKeyRequest",
Expand All @@ -102,6 +117,8 @@
"ListCryptoKeyVersionsResponse",
"ListCryptoKeysRequest",
"ListCryptoKeysResponse",
"ListEkmConnectionsRequest",
"ListEkmConnectionsResponse",
"ListImportJobsRequest",
"ListImportJobsResponse",
"ListKeyRingsRequest",
Expand All @@ -117,4 +134,5 @@
"UpdateCryptoKeyPrimaryVersionRequest",
"UpdateCryptoKeyRequest",
"UpdateCryptoKeyVersionRequest",
"UpdateEkmConnectionRequest",
)
54 changes: 54 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,60 @@
"protoPackage": "google.cloud.kms.v1",
"schema": "1.0",
"services": {
"EkmService": {
"clients": {
"grpc": {
"libraryClient": "EkmServiceClient",
"rpcs": {
"CreateEkmConnection": {
"methods": [
"create_ekm_connection"
]
},
"GetEkmConnection": {
"methods": [
"get_ekm_connection"
]
},
"ListEkmConnections": {
"methods": [
"list_ekm_connections"
]
},
"UpdateEkmConnection": {
"methods": [
"update_ekm_connection"
]
}
}
},
"grpc-async": {
"libraryClient": "EkmServiceAsyncClient",
"rpcs": {
"CreateEkmConnection": {
"methods": [
"create_ekm_connection"
]
},
"GetEkmConnection": {
"methods": [
"get_ekm_connection"
]
},
"ListEkmConnections": {
"methods": [
"list_ekm_connections"
]
},
"UpdateEkmConnection": {
"methods": [
"update_ekm_connection"
]
}
}
}
}
},
"KeyManagementService": {
"clients": {
"grpc": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
# Copyright 2020 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 .client import EkmServiceClient
from .async_client import EkmServiceAsyncClient

__all__ = (
"EkmServiceClient",
"EkmServiceAsyncClient",
)
Loading

0 comments on commit 32ac688

Please sign in to comment.