Skip to content

Commit

Permalink
feat: add SHA-2 import methods (#354)
Browse files Browse the repository at this point in the history
* chore: update to gapic-generator-python 1.5.0

feat: add support for `google.cloud.<api>.__version__`
PiperOrigin-RevId: 484665853

Source-Link: googleapis/googleapis@8eb249a

Source-Link: googleapis/googleapis-gen@c8aa327
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzhhYTMyN2I1ZjQ3ODg2NWZjM2ZkOTFlM2MyNzY4ZTU0ZTI2YWQ0NCJ9

* 🦉 Updates from OwlBot post-processor

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

* update version in gapic_version.py

* add .release-please-manifest.json with correct version

* set manifest to true in .github/release-please.yml

* add release-please-config.json

* 🦉 Updates from OwlBot post-processor

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

* chore: Update to gapic-generator-python 1.6.0

feat(python): Add typing to proto.Message based class attributes

feat(python): Snippetgen handling of repeated enum field

PiperOrigin-RevId: 487326846

Source-Link: googleapis/googleapis@da380c7

Source-Link: googleapis/googleapis-gen@61ef576
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjFlZjU3NjJlZTY3MzFhMGNiYmZlYTIyZmQwZWVjZWU1MWFiMWM4ZSJ9

* 🦉 Updates from OwlBot post-processor

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

* feat: new APIs added to reflect updates to the filestore service

- Add ENTERPRISE Tier
- Add snapshot APIs: RevertInstance, ListSnapshots, CreateSnapshot, DeleteSnapshot, UpdateSnapshot
- Add multi-share APIs: ListShares, GetShare, CreateShare, DeleteShare, UpdateShare
- Add ConnectMode to NetworkConfig (for Private Service Access support)
- New status codes (SUSPENDED/SUSPENDING, REVERTING/RESUMING)
- Add SuspensionReason (for KMS related suspension)
- Add new fields to Instance information: max_capacity_gb, capacity_step_size_gb, max_share_count, capacity_gb, multi_share_enabled

PiperOrigin-RevId: 487492758

Source-Link: googleapis/googleapis@5be5981

Source-Link: googleapis/googleapis-gen@ab0e217
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWIwZTIxN2Y1NjBjYzJjMWFmYzExNDQxYzJlYWI2YjY5NTBlZmQyYiJ9

* 🦉 Updates from OwlBot post-processor

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

* update path to snippet metadata json

* chore: Update gapic-generator-python to v1.6.1

PiperOrigin-RevId: 488036204

Source-Link: googleapis/googleapis@08f275f

Source-Link: googleapis/googleapis-gen@555c094
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNTU1YzA5NDVlNjA2NDllMzg3MzlhZTY0YmM0NTcxOWNkZjcyMTc4ZiJ9

* 🦉 Updates from OwlBot post-processor

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

* feat: add support for additional HMAC algorithms

PiperOrigin-RevId: 488651504

Source-Link: googleapis/googleapis@dde2e5c

Source-Link: googleapis/googleapis-gen@07b28d9
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDdiMjhkOTE2YjQ5MGU5MjZkNDlmNDEzYjBkZWNlNjdiYjQzYzE3ZiJ9

* 🦉 Updates from OwlBot post-processor

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

* feat: add SHA-2 import methods

PiperOrigin-RevId: 490250391

Source-Link: googleapis/googleapis@4713c10

Source-Link: googleapis/googleapis-gen@23c40fd
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjNjNDBmZDgwMDk0NmJlZmNjNzYwZjQ3MmU5OThkYjZiM2I2NWQ2NCJ9

* 🦉 Updates from OwlBot post-processor

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

* use templated owlbot.py and setup.py

* run nox format session

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <[email protected]>
  • Loading branch information
3 people authored Nov 26, 2022
1 parent 2915dcd commit 00b35fc
Show file tree
Hide file tree
Showing 44 changed files with 1,091 additions and 898 deletions.
1 change: 1 addition & 0 deletions packages/google-cloud-kms/.github/release-please.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
releaseType: python
handleGHRelease: true
manifest: true
# NOTE: this section is generated by synthtool.languages.python
# See https://github.com/googleapis/synthtool/blob/master/synthtool/languages/python.py
branches:
Expand Down
3 changes: 3 additions & 0 deletions packages/google-cloud-kms/.release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "2.12.3"
}
2 changes: 1 addition & 1 deletion packages/google-cloud-kms/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
# All configuration values have a default; values that are commented out
# serve to show the default.

import sys
import os
import shlex
import sys

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down
15 changes: 8 additions & 7 deletions packages/google-cloud-kms/docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,25 @@

.. include:: multiprocessing.rst


API Reference
-------------
.. toctree::
:maxdepth: 2
:maxdepth: 2

kms_v1/services
kms_v1/types
kms_v1/services
kms_v1/types


Migration Guide
---------------

See the guide below for instructions on migrating to the 2.x release of this library.
See the guide below for instructions on migrating to the latest version.

.. toctree::
:maxdepth: 2

UPGRADING
 UPGRADING


Changelog
Expand All @@ -28,6 +29,6 @@ Changelog
For a list of all ``google-cloud-kms`` releases:

.. toctree::
:maxdepth: 2
:maxdepth: 2

changelog
changelog
1 change: 0 additions & 1 deletion packages/google-cloud-kms/docs/kms_v1/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ Types for Google Cloud Kms v1 API

.. automodule:: google.cloud.kms_v1.types
:members:
:undoc-members:
:show-inheritance:
127 changes: 68 additions & 59 deletions packages/google-cloud-kms/google/cloud/kms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,71 +13,80 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from google.cloud.kms import gapic_version as package_version

__version__ = package_version.__version__


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.ekm_service.client import EkmServiceClient
from google.cloud.kms_v1.services.key_management_service.async_client import (
KeyManagementServiceAsyncClient,
)
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,
CreateEkmConnectionRequest,
EkmConnection,
GetEkmConnectionRequest,
ListEkmConnectionsRequest,
ListEkmConnectionsResponse,
UpdateEkmConnectionRequest,
)
from google.cloud.kms_v1.types.resources import (
CryptoKey,
CryptoKeyVersion,
CryptoKeyVersionTemplate,
ExternalProtectionLevelOptions,
ImportJob,
KeyOperationAttestation,
KeyRing,
ProtectionLevel,
PublicKey,
)
from google.cloud.kms_v1.types.service import (
AsymmetricDecryptRequest,
AsymmetricDecryptResponse,
AsymmetricSignRequest,
AsymmetricSignResponse,
CreateCryptoKeyRequest,
CreateCryptoKeyVersionRequest,
CreateImportJobRequest,
CreateKeyRingRequest,
DecryptRequest,
DecryptResponse,
DestroyCryptoKeyVersionRequest,
Digest,
EncryptRequest,
EncryptResponse,
GenerateRandomBytesRequest,
GenerateRandomBytesResponse,
GetCryptoKeyRequest,
GetCryptoKeyVersionRequest,
GetImportJobRequest,
GetKeyRingRequest,
GetPublicKeyRequest,
ImportCryptoKeyVersionRequest,
ListCryptoKeysRequest,
ListCryptoKeysResponse,
ListCryptoKeyVersionsRequest,
ListCryptoKeyVersionsResponse,
ListImportJobsRequest,
ListImportJobsResponse,
ListKeyRingsRequest,
ListKeyRingsResponse,
LocationMetadata,
MacSignRequest,
MacSignResponse,
MacVerifyRequest,
MacVerifyResponse,
RestoreCryptoKeyVersionRequest,
UpdateCryptoKeyPrimaryVersionRequest,
UpdateCryptoKeyRequest,
UpdateCryptoKeyVersionRequest,
)

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
from google.cloud.kms_v1.types.resources import ExternalProtectionLevelOptions
from google.cloud.kms_v1.types.resources import ImportJob
from google.cloud.kms_v1.types.resources import KeyOperationAttestation
from google.cloud.kms_v1.types.resources import KeyRing
from google.cloud.kms_v1.types.resources import PublicKey
from google.cloud.kms_v1.types.resources import ProtectionLevel
from google.cloud.kms_v1.types.service import AsymmetricDecryptRequest
from google.cloud.kms_v1.types.service import AsymmetricDecryptResponse
from google.cloud.kms_v1.types.service import AsymmetricSignRequest
from google.cloud.kms_v1.types.service import AsymmetricSignResponse
from google.cloud.kms_v1.types.service import CreateCryptoKeyRequest
from google.cloud.kms_v1.types.service import CreateCryptoKeyVersionRequest
from google.cloud.kms_v1.types.service import CreateImportJobRequest
from google.cloud.kms_v1.types.service import CreateKeyRingRequest
from google.cloud.kms_v1.types.service import DecryptRequest
from google.cloud.kms_v1.types.service import DecryptResponse
from google.cloud.kms_v1.types.service import DestroyCryptoKeyVersionRequest
from google.cloud.kms_v1.types.service import Digest
from google.cloud.kms_v1.types.service import EncryptRequest
from google.cloud.kms_v1.types.service import EncryptResponse
from google.cloud.kms_v1.types.service import GenerateRandomBytesRequest
from google.cloud.kms_v1.types.service import GenerateRandomBytesResponse
from google.cloud.kms_v1.types.service import GetCryptoKeyRequest
from google.cloud.kms_v1.types.service import GetCryptoKeyVersionRequest
from google.cloud.kms_v1.types.service import GetImportJobRequest
from google.cloud.kms_v1.types.service import GetKeyRingRequest
from google.cloud.kms_v1.types.service import GetPublicKeyRequest
from google.cloud.kms_v1.types.service import ImportCryptoKeyVersionRequest
from google.cloud.kms_v1.types.service import ListCryptoKeysRequest
from google.cloud.kms_v1.types.service import ListCryptoKeysResponse
from google.cloud.kms_v1.types.service import ListCryptoKeyVersionsRequest
from google.cloud.kms_v1.types.service import ListCryptoKeyVersionsResponse
from google.cloud.kms_v1.types.service import ListImportJobsRequest
from google.cloud.kms_v1.types.service import ListImportJobsResponse
from google.cloud.kms_v1.types.service import ListKeyRingsRequest
from google.cloud.kms_v1.types.service import ListKeyRingsResponse
from google.cloud.kms_v1.types.service import LocationMetadata
from google.cloud.kms_v1.types.service import MacSignRequest
from google.cloud.kms_v1.types.service import MacSignResponse
from google.cloud.kms_v1.types.service import MacVerifyRequest
from google.cloud.kms_v1.types.service import MacVerifyResponse
from google.cloud.kms_v1.types.service import RestoreCryptoKeyVersionRequest
from google.cloud.kms_v1.types.service import UpdateCryptoKeyPrimaryVersionRequest
from google.cloud.kms_v1.types.service import UpdateCryptoKeyRequest
from google.cloud.kms_v1.types.service import UpdateCryptoKeyVersionRequest

__all__ = (
"EkmServiceClient",
Expand Down
16 changes: 16 additions & 0 deletions packages/google-cloud-kms/google/cloud/kms/gapic_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
# Copyright 2022 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.
#
__version__ = "2.12.3" # {x-release-please-version}
128 changes: 69 additions & 59 deletions packages/google-cloud-kms/google/cloud/kms_v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,67 +13,77 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from google.cloud.kms import gapic_version as package_version

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
__version__ = package_version.__version__

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
from .types.resources import ExternalProtectionLevelOptions
from .types.resources import ImportJob
from .types.resources import KeyOperationAttestation
from .types.resources import KeyRing
from .types.resources import PublicKey
from .types.resources import ProtectionLevel
from .types.service import AsymmetricDecryptRequest
from .types.service import AsymmetricDecryptResponse
from .types.service import AsymmetricSignRequest
from .types.service import AsymmetricSignResponse
from .types.service import CreateCryptoKeyRequest
from .types.service import CreateCryptoKeyVersionRequest
from .types.service import CreateImportJobRequest
from .types.service import CreateKeyRingRequest
from .types.service import DecryptRequest
from .types.service import DecryptResponse
from .types.service import DestroyCryptoKeyVersionRequest
from .types.service import Digest
from .types.service import EncryptRequest
from .types.service import EncryptResponse
from .types.service import GenerateRandomBytesRequest
from .types.service import GenerateRandomBytesResponse
from .types.service import GetCryptoKeyRequest
from .types.service import GetCryptoKeyVersionRequest
from .types.service import GetImportJobRequest
from .types.service import GetKeyRingRequest
from .types.service import GetPublicKeyRequest
from .types.service import ImportCryptoKeyVersionRequest
from .types.service import ListCryptoKeysRequest
from .types.service import ListCryptoKeysResponse
from .types.service import ListCryptoKeyVersionsRequest
from .types.service import ListCryptoKeyVersionsResponse
from .types.service import ListImportJobsRequest
from .types.service import ListImportJobsResponse
from .types.service import ListKeyRingsRequest
from .types.service import ListKeyRingsResponse
from .types.service import LocationMetadata
from .types.service import MacSignRequest
from .types.service import MacSignResponse
from .types.service import MacVerifyRequest
from .types.service import MacVerifyResponse
from .types.service import RestoreCryptoKeyVersionRequest
from .types.service import UpdateCryptoKeyPrimaryVersionRequest
from .types.service import UpdateCryptoKeyRequest
from .types.service import UpdateCryptoKeyVersionRequest

from .services.ekm_service import EkmServiceAsyncClient, EkmServiceClient
from .services.key_management_service import (
KeyManagementServiceAsyncClient,
KeyManagementServiceClient,
)
from .types.ekm_service import (
Certificate,
CreateEkmConnectionRequest,
EkmConnection,
GetEkmConnectionRequest,
ListEkmConnectionsRequest,
ListEkmConnectionsResponse,
UpdateEkmConnectionRequest,
)
from .types.resources import (
CryptoKey,
CryptoKeyVersion,
CryptoKeyVersionTemplate,
ExternalProtectionLevelOptions,
ImportJob,
KeyOperationAttestation,
KeyRing,
ProtectionLevel,
PublicKey,
)
from .types.service import (
AsymmetricDecryptRequest,
AsymmetricDecryptResponse,
AsymmetricSignRequest,
AsymmetricSignResponse,
CreateCryptoKeyRequest,
CreateCryptoKeyVersionRequest,
CreateImportJobRequest,
CreateKeyRingRequest,
DecryptRequest,
DecryptResponse,
DestroyCryptoKeyVersionRequest,
Digest,
EncryptRequest,
EncryptResponse,
GenerateRandomBytesRequest,
GenerateRandomBytesResponse,
GetCryptoKeyRequest,
GetCryptoKeyVersionRequest,
GetImportJobRequest,
GetKeyRingRequest,
GetPublicKeyRequest,
ImportCryptoKeyVersionRequest,
ListCryptoKeysRequest,
ListCryptoKeysResponse,
ListCryptoKeyVersionsRequest,
ListCryptoKeyVersionsResponse,
ListImportJobsRequest,
ListImportJobsResponse,
ListKeyRingsRequest,
ListKeyRingsResponse,
LocationMetadata,
MacSignRequest,
MacSignResponse,
MacVerifyRequest,
MacVerifyResponse,
RestoreCryptoKeyVersionRequest,
UpdateCryptoKeyPrimaryVersionRequest,
UpdateCryptoKeyRequest,
UpdateCryptoKeyVersionRequest,
)

__all__ = (
"EkmServiceAsyncClient",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from .client import EkmServiceClient
from .async_client import EkmServiceAsyncClient
from .client import EkmServiceClient

__all__ = (
"EkmServiceClient",
Expand Down
Loading

0 comments on commit 00b35fc

Please sign in to comment.