Skip to content
This repository was archived by the owner on Jul 6, 2023. It is now read-only.

Commit c27942a

Browse files
chore: use gapic-generator-python 0.65.1 (#67)
* chore: use gapic-generator-python 0.65.1 PiperOrigin-RevId: 441524537 Source-Link: googleapis/googleapis@2a27391 Source-Link: https://github.com/googleapis/googleapis-gen/commit/ab6756a48c89b5bcb9fb73443cb8e55d574f4643 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>
1 parent 3db4778 commit c27942a

File tree

7 files changed

+1553
-117
lines changed

7 files changed

+1553
-117
lines changed

‎google/cloud/deploy_v1/services/cloud_deploy/async_client.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from collections import OrderedDict
1717
import functools
1818
import re
19-
from typing import Dict, Optional, Sequence, Tuple, Type, Union
19+
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
2020
import pkg_resources
2121

2222
from google.api_core.client_options import ClientOptions
@@ -236,7 +236,6 @@ async def list_delivery_pipelines(
236236
r"""Lists DeliveryPipelines in a given project and
237237
location.
238238
239-
240239
.. code-block:: python
241240
242241
from google.cloud import deploy_v1
@@ -465,7 +464,6 @@ async def create_delivery_pipeline(
465464
r"""Creates a new DeliveryPipeline in a given project and
466465
location.
467466
468-
469467
.. code-block:: python
470468
471469
from google.cloud import deploy_v1
@@ -1669,7 +1667,6 @@ async def create_release(
16691667
r"""Creates a new Release in a given project and
16701668
location.
16711669
1672-
16731670
.. code-block:: python
16741671
16751672
from google.cloud import deploy_v1
@@ -2121,7 +2118,6 @@ async def create_rollout(
21212118
r"""Creates a new Rollout in a given project and
21222119
location.
21232120
2124-
21252121
.. code-block:: python
21262122
21272123
from google.cloud import deploy_v1

‎google/cloud/deploy_v1/services/cloud_deploy/client.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from collections import OrderedDict
1717
import os
1818
import re
19-
from typing import Dict, Optional, Sequence, Tuple, Type, Union
19+
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
2020
import pkg_resources
2121

2222
from google.api_core import client_options as client_options_lib
@@ -627,7 +627,6 @@ def list_delivery_pipelines(
627627
r"""Lists DeliveryPipelines in a given project and
628628
location.
629629
630-
631630
.. code-block:: python
632631
633632
from google.cloud import deploy_v1
@@ -838,7 +837,6 @@ def create_delivery_pipeline(
838837
r"""Creates a new DeliveryPipeline in a given project and
839838
location.
840839
841-
842840
.. code-block:: python
843841
844842
from google.cloud import deploy_v1
@@ -2006,7 +2004,6 @@ def create_release(
20062004
r"""Creates a new Release in a given project and
20072005
location.
20082006
2009-
20102007
.. code-block:: python
20112008
20122009
from google.cloud import deploy_v1
@@ -2440,7 +2437,6 @@ def create_rollout(
24402437
r"""Creates a new Rollout in a given project and
24412438
location.
24422439
2443-
24442440
.. code-block:: python
24452441
24462442
from google.cloud import deploy_v1

‎google/cloud/deploy_v1/services/cloud_deploy/transports/base.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ def __init__(
8282
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
8383
be used for service account credentials.
8484
"""
85+
8586
# Save the hostname. Default to port 443 (HTTPS) if none is specified.
8687
if ":" not in host:
8788
host += ":443"
@@ -486,5 +487,9 @@ def get_config(
486487
]:
487488
raise NotImplementedError()
488489

490+
@property
491+
def kind(self) -> str:
492+
raise NotImplementedError()
493+
489494

490495
__all__ = ("CloudDeployTransport",)

‎google/cloud/deploy_v1/services/cloud_deploy/transports/grpc.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,5 +738,9 @@ def get_config(
738738
def close(self):
739739
self.grpc_channel.close()
740740

741+
@property
742+
def kind(self) -> str:
743+
return "grpc"
744+
741745

742746
__all__ = ("CloudDeployGrpcTransport",)

‎google/cloud/deploy_v1/types/cloud_deploy.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,13 @@ class DeliveryPipeline(proto.Message):
8888
description (str):
8989
Description of the ``DeliveryPipeline``. Max length is 255
9090
characters.
91-
annotations (Sequence[google.cloud.deploy_v1.types.DeliveryPipeline.AnnotationsEntry]):
91+
annotations (Mapping[str, str]):
9292
User annotations. These attributes can only
9393
be set and used by the user, and not by Google
9494
Cloud Deploy. See
9595
https://google.aip.dev/128#annotations for more
9696
details such as format and size limitations.
97-
labels (Sequence[google.cloud.deploy_v1.types.DeliveryPipeline.LabelsEntry]):
97+
labels (Mapping[str, str]):
9898
Labels are attributes that can be set and used by both the
9999
user and by Google Cloud Deploy. Labels must meet the
100100
following constraints:
@@ -621,13 +621,13 @@ class Target(proto.Message):
621621
description (str):
622622
Optional. Description of the ``Target``. Max length is 255
623623
characters.
624-
annotations (Sequence[google.cloud.deploy_v1.types.Target.AnnotationsEntry]):
624+
annotations (Mapping[str, str]):
625625
Optional. User annotations. These attributes
626626
can only be set and used by the user, and not by
627627
Google Cloud Deploy. See
628628
https://google.aip.dev/128#annotations for more
629629
details such as format and size limitations.
630-
labels (Sequence[google.cloud.deploy_v1.types.Target.LabelsEntry]):
630+
labels (Mapping[str, str]):
631631
Optional. Labels are attributes that can be set and used by
632632
both the user and by Google Cloud Deploy. Labels must meet
633633
the following constraints:
@@ -1229,13 +1229,13 @@ class Release(proto.Message):
12291229
description (str):
12301230
Description of the ``Release``. Max length is 255
12311231
characters.
1232-
annotations (Sequence[google.cloud.deploy_v1.types.Release.AnnotationsEntry]):
1232+
annotations (Mapping[str, str]):
12331233
User annotations. These attributes can only
12341234
be set and used by the user, and not by Google
12351235
Cloud Deploy. See
12361236
https://google.aip.dev/128#annotations for more
12371237
details such as format and size limitations.
1238-
labels (Sequence[google.cloud.deploy_v1.types.Release.LabelsEntry]):
1238+
labels (Mapping[str, str]):
12391239
Labels are attributes that can be set and used by both the
12401240
user and by Google Cloud Deploy. Labels must meet the
12411241
following constraints:
@@ -1288,10 +1288,10 @@ class Release(proto.Message):
12881288
12891289
If unset, the most recent supported Skaffold
12901290
version will be used.
1291-
target_artifacts (Sequence[google.cloud.deploy_v1.types.Release.TargetArtifactsEntry]):
1291+
target_artifacts (Mapping[str, google.cloud.deploy_v1.types.TargetArtifact]):
12921292
Output only. Map from target ID to the target
12931293
artifacts created during the render operation.
1294-
target_renders (Sequence[google.cloud.deploy_v1.types.Release.TargetRendersEntry]):
1294+
target_renders (Mapping[str, google.cloud.deploy_v1.types.Release.TargetRender]):
12951295
Output only. Map from target ID to details of
12961296
the render operation for that target.
12971297
"""
@@ -1670,13 +1670,13 @@ class Rollout(proto.Message):
16701670
description (str):
16711671
Description of the ``Rollout`` for user purposes. Max length
16721672
is 255 characters.
1673-
annotations (Sequence[google.cloud.deploy_v1.types.Rollout.AnnotationsEntry]):
1673+
annotations (Mapping[str, str]):
16741674
User annotations. These attributes can only
16751675
be set and used by the user, and not by Google
16761676
Cloud Deploy. See
16771677
https://google.aip.dev/128#annotations for more
16781678
details such as format and size limitations.
1679-
labels (Sequence[google.cloud.deploy_v1.types.Rollout.LabelsEntry]):
1679+
labels (Mapping[str, str]):
16801680
Labels are attributes that can be set and used by both the
16811681
user and by Google Cloud Deploy. Labels must meet the
16821682
following constraints:

0 commit comments

Comments
 (0)