Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.65.1 (#266)
Browse files Browse the repository at this point in the history
* chore: use gapic-generator-python 0.65.1

PiperOrigin-RevId: 441524537

Source-Link: googleapis/googleapis@2a27391

Source-Link: googleapis/googleapis-gen@ab6756a
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWI2NzU2YTQ4Yzg5YjViY2I5ZmI3MzQ0M2NiOGU1NWQ1NzRmNDY0MyJ9

* 🦉 Updates from OwlBot post-processor

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] authored Apr 14, 2022
1 parent a8e006a commit 18641b9
Show file tree
Hide file tree
Showing 12 changed files with 2,655 additions and 257 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import functools
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core.client_options import ClientOptions
Expand Down Expand Up @@ -345,7 +345,6 @@ async def get_ekm_connection(
r"""Returns metadata for a given
[EkmConnection][google.cloud.kms.v1.EkmConnection].
.. code-block:: python
from google.cloud import kms_v1
Expand Down Expand Up @@ -467,7 +466,6 @@ async def create_ekm_connection(
r"""Creates a new [EkmConnection][google.cloud.kms.v1.EkmConnection]
in a given Project and Location.
.. code-block:: python
from google.cloud import kms_v1
Expand Down Expand Up @@ -608,7 +606,6 @@ async def update_ekm_connection(
r"""Updates an [EkmConnection][google.cloud.kms.v1.EkmConnection]'s
metadata.
.. code-block:: python
from google.cloud import kms_v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import os
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib
Expand Down Expand Up @@ -587,7 +587,6 @@ def get_ekm_connection(
r"""Returns metadata for a given
[EkmConnection][google.cloud.kms.v1.EkmConnection].
.. code-block:: python
from google.cloud import kms_v1
Expand Down Expand Up @@ -699,7 +698,6 @@ def create_ekm_connection(
r"""Creates a new [EkmConnection][google.cloud.kms.v1.EkmConnection]
in a given Project and Location.
.. code-block:: python
from google.cloud import kms_v1
Expand Down Expand Up @@ -830,7 +828,6 @@ def update_ekm_connection(
r"""Updates an [EkmConnection][google.cloud.kms.v1.EkmConnection]'s
metadata.
.. code-block:: python
from google.cloud import kms_v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def __init__(
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
be used for service account credentials.
"""

# Save the hostname. Default to port 443 (HTTPS) if none is specified.
if ":" not in host:
host += ":443"
Expand Down Expand Up @@ -265,5 +266,9 @@ def test_iam_permissions(
]:
raise NotImplementedError()

@property
def kind(self) -> str:
raise NotImplementedError()


__all__ = ("EkmServiceTransport",)
Original file line number Diff line number Diff line change
Expand Up @@ -426,5 +426,9 @@ def test_iam_permissions(
def close(self):
self.grpc_channel.close()

@property
def kind(self) -> str:
return "grpc"


__all__ = ("EkmServiceGrpcTransport",)
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import functools
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core.client_options import ClientOptions
Expand Down Expand Up @@ -737,7 +737,6 @@ async def get_key_ring(
r"""Returns metadata for a given
[KeyRing][google.cloud.kms.v1.KeyRing].
.. code-block:: python
from google.cloud import kms_v1
Expand Down Expand Up @@ -847,7 +846,6 @@ async def get_crypto_key(
[primary][google.cloud.kms.v1.CryptoKey.primary]
[CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
.. code-block:: python
from google.cloud import kms_v1
Expand Down Expand Up @@ -962,7 +960,6 @@ async def get_crypto_key_version(
r"""Returns metadata for a given
[CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].
.. code-block:: python
from google.cloud import kms_v1
Expand Down Expand Up @@ -1089,7 +1086,6 @@ async def get_public_key(
or
[ASYMMETRIC_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_DECRYPT].
.. code-block:: python
from google.cloud import kms_v1
Expand Down Expand Up @@ -1201,7 +1197,6 @@ async def get_import_job(
r"""Returns metadata for a given
[ImportJob][google.cloud.kms.v1.ImportJob].
.. code-block:: python
from google.cloud import kms_v1
Expand Down Expand Up @@ -1356,7 +1351,6 @@ async def create_key_ring(
r"""Create a new [KeyRing][google.cloud.kms.v1.KeyRing] in a given
Project and Location.
.. code-block:: python
from google.cloud import kms_v1
Expand Down Expand Up @@ -1490,7 +1484,6 @@ async def create_crypto_key(
[CryptoKey.version_template.algorithm][google.cloud.kms.v1.CryptoKeyVersionTemplate.algorithm]
are required.
.. code-block:: python
from google.cloud import kms_v1
Expand Down Expand Up @@ -1631,7 +1624,6 @@ async def create_crypto_key_version(
to
[ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED].
.. code-block:: python
from google.cloud import kms_v1
Expand Down Expand Up @@ -1760,7 +1752,6 @@ async def import_crypto_key_version(
created, and will be assigned the next sequential id within the
[CryptoKey][google.cloud.kms.v1.CryptoKey].
.. code-block:: python
from google.cloud import kms_v1
Expand Down Expand Up @@ -1857,7 +1848,6 @@ async def create_import_job(
[ImportJob.import_method][google.cloud.kms.v1.ImportJob.import_method]
is required.
.. code-block:: python
from google.cloud import kms_v1
Expand Down Expand Up @@ -2170,7 +2160,6 @@ async def update_crypto_key_version(
[RestoreCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.RestoreCryptoKeyVersion]
to move between other states.
.. code-block:: python
from google.cloud import kms_v1
Expand Down Expand Up @@ -2306,7 +2295,6 @@ async def update_crypto_key_primary_version(
Returns an error if called on a key whose purpose is not
[ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
.. code-block:: python
from google.cloud import kms_v1
Expand Down Expand Up @@ -2452,7 +2440,6 @@ async def destroy_crypto_key_version(
[RestoreCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.RestoreCryptoKeyVersion]
may be called to reverse the process.
.. code-block:: python
from google.cloud import kms_v1
Expand Down Expand Up @@ -2583,7 +2570,6 @@ async def restore_crypto_key_version(
[destroy_time][google.cloud.kms.v1.CryptoKeyVersion.destroy_time]
will be cleared.
.. code-block:: python
from google.cloud import kms_v1
Expand Down Expand Up @@ -2708,7 +2694,6 @@ async def encrypt(
be
[ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
.. code-block:: python
from google.cloud import kms_v1
Expand Down Expand Up @@ -2846,7 +2831,6 @@ async def decrypt(
be
[ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].
.. code-block:: python
from google.cloud import kms_v1
Expand Down Expand Up @@ -2971,7 +2955,6 @@ async def asymmetric_sign(
the public key retrieved from
[GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey].
.. code-block:: python
from google.cloud import kms_v1
Expand Down Expand Up @@ -3101,7 +3084,6 @@ async def asymmetric_decrypt(
[CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose]
ASYMMETRIC_DECRYPT.
.. code-block:: python
from google.cloud import kms_v1
Expand Down Expand Up @@ -3225,7 +3207,6 @@ async def mac_sign(
producing a tag that can be verified by another source with the
same key.
.. code-block:: python
from google.cloud import kms_v1
Expand Down Expand Up @@ -3350,7 +3331,6 @@ async def mac_verify(
and returns a response that indicates whether or not the
verification was successful.
.. code-block:: python
from google.cloud import kms_v1
Expand Down Expand Up @@ -3480,7 +3460,6 @@ async def generate_random_bytes(
r"""Generate random bytes using the Cloud KMS randomness
source in the provided location.
.. code-block:: python
from google.cloud import kms_v1
Expand Down
Loading

0 comments on commit 18641b9

Please sign in to comment.