Content-Length: 689926 | pFad | https://github.com/googleapis/python-deploy/commit/f5105a425f4f164aa7db948b3c82e2aa59dd64ce

7E feat: Add support for Anthos worker pool (#61) · googleapis/python-deploy@f5105a4 · GitHub
Skip to content
This repository was archived by the owner on Jul 6, 2023. It is now read-only.

Commit f5105a4

Browse files
feat: Add support for Anthos worker pool (#61)
* docs:Cloud Deploy API Platform Logging documentation PiperOrigin-RevId: 439623824 Source-Link: googleapis/googleapis@43184df Source-Link: https://github.com/googleapis/googleapis-gen/commit/a6ce41a8759c6618f1df9b631a200c54a12c71d5 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYTZjZTQxYTg3NTljNjYxOGYxZGY5YjYzMWEyMDBjNTRhMTJjNzFkNSJ9 * 🦉 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 928d42f commit f5105a4

13 files changed

+677
-74
lines changed

google/cloud/deploy/__init__.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
CloudDeployAsyncClient,
2020
)
2121

22+
from google.cloud.deploy_v1.types.cloud_deploy import AnthosCluster
2223
from google.cloud.deploy_v1.types.cloud_deploy import ApproveRolloutRequest
2324
from google.cloud.deploy_v1.types.cloud_deploy import ApproveRolloutResponse
2425
from google.cloud.deploy_v1.types.cloud_deploy import BuildArtifact
@@ -60,10 +61,25 @@
6061
from google.cloud.deploy_v1.types.cloud_deploy import TargetsPresentCondition
6162
from google.cloud.deploy_v1.types.cloud_deploy import UpdateDeliveryPipelineRequest
6263
from google.cloud.deploy_v1.types.cloud_deploy import UpdateTargetRequest
64+
from google.cloud.deploy_v1.types.deliverypipeline_notification_payload import (
65+
DeliveryPipelineNotificationEvent,
66+
)
67+
from google.cloud.deploy_v1.types.log_enums import Type
68+
from google.cloud.deploy_v1.types.release_notification_payload import (
69+
ReleaseNotificationEvent,
70+
)
71+
from google.cloud.deploy_v1.types.release_render_payload import ReleaseRenderEvent
72+
from google.cloud.deploy_v1.types.rollout_notification_payload import (
73+
RolloutNotificationEvent,
74+
)
75+
from google.cloud.deploy_v1.types.target_notification_payload import (
76+
TargetNotificationEvent,
77+
)
6378

6479
__all__ = (
6580
"CloudDeployClient",
6681
"CloudDeployAsyncClient",
82+
"AnthosCluster",
6783
"ApproveRolloutRequest",
6884
"ApproveRolloutResponse",
6985
"BuildArtifact",
@@ -105,4 +121,10 @@
105121
"TargetsPresentCondition",
106122
"UpdateDeliveryPipelineRequest",
107123
"UpdateTargetRequest",
124+
"DeliveryPipelineNotificationEvent",
125+
"Type",
126+
"ReleaseNotificationEvent",
127+
"ReleaseRenderEvent",
128+
"RolloutNotificationEvent",
129+
"TargetNotificationEvent",
108130
)

google/cloud/deploy_v1/__init__.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from .services.cloud_deploy import CloudDeployClient
1818
from .services.cloud_deploy import CloudDeployAsyncClient
1919

20+
from .types.cloud_deploy import AnthosCluster
2021
from .types.cloud_deploy import ApproveRolloutRequest
2122
from .types.cloud_deploy import ApproveRolloutResponse
2223
from .types.cloud_deploy import BuildArtifact
@@ -58,9 +59,18 @@
5859
from .types.cloud_deploy import TargetsPresentCondition
5960
from .types.cloud_deploy import UpdateDeliveryPipelineRequest
6061
from .types.cloud_deploy import UpdateTargetRequest
62+
from .types.deliverypipeline_notification_payload import (
63+
DeliveryPipelineNotificationEvent,
64+
)
65+
from .types.log_enums import Type
66+
from .types.release_notification_payload import ReleaseNotificationEvent
67+
from .types.release_render_payload import ReleaseRenderEvent
68+
from .types.rollout_notification_payload import RolloutNotificationEvent
69+
from .types.target_notification_payload import TargetNotificationEvent
6170

6271
__all__ = (
6372
"CloudDeployAsyncClient",
73+
"AnthosCluster",
6474
"ApproveRolloutRequest",
6575
"ApproveRolloutResponse",
6676
"BuildArtifact",
@@ -74,6 +84,7 @@
7484
"DeleteDeliveryPipelineRequest",
7585
"DeleteTargetRequest",
7686
"DeliveryPipeline",
87+
"DeliveryPipelineNotificationEvent",
7788
"ExecutionConfig",
7889
"GetConfigRequest",
7990
"GetDeliveryPipelineRequest",
@@ -94,13 +105,18 @@
94105
"PipelineReadyCondition",
95106
"PrivatePool",
96107
"Release",
108+
"ReleaseNotificationEvent",
109+
"ReleaseRenderEvent",
97110
"Rollout",
111+
"RolloutNotificationEvent",
98112
"SerialPipeline",
99113
"SkaffoldVersion",
100114
"Stage",
101115
"Target",
102116
"TargetArtifact",
117+
"TargetNotificationEvent",
103118
"TargetsPresentCondition",
119+
"Type",
104120
"UpdateDeliveryPipelineRequest",
105121
"UpdateTargetRequest",
106122
)

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ class CloudDeployAsyncClient:
6464
parse_delivery_pipeline_path = staticmethod(
6565
CloudDeployClient.parse_delivery_pipeline_path
6666
)
67+
membership_path = staticmethod(CloudDeployClient.membership_path)
68+
parse_membership_path = staticmethod(CloudDeployClient.parse_membership_path)
6769
release_path = staticmethod(CloudDeployClient.release_path)
6870
parse_release_path = staticmethod(CloudDeployClient.parse_release_path)
6971
rollout_path = staticmethod(CloudDeployClient.rollout_path)

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,30 @@ def parse_delivery_pipeline_path(path: str) -> Dict[str, str]:
253253
)
254254
return m.groupdict() if m else {}
255255

256+
@staticmethod
257+
def membership_path(
258+
project: str,
259+
location: str,
260+
membership: str,
261+
) -> str:
262+
"""Returns a fully-qualified membership string."""
263+
return (
264+
"projects/{project}/locations/{location}/memberships/{membership}".format(
265+
project=project,
266+
location=location,
267+
membership=membership,
268+
)
269+
)
270+
271+
@staticmethod
272+
def parse_membership_path(path: str) -> Dict[str, str]:
273+
"""Parses a membership path into its component segments."""
274+
m = re.match(
275+
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/memberships/(?P<membership>.+?)$",
276+
path,
277+
)
278+
return m.groupdict() if m else {}
279+
256280
@staticmethod
257281
def release_path(
258282
project: str,

google/cloud/deploy_v1/types/__init__.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# limitations under the License.
1515
#
1616
from .cloud_deploy import (
17+
AnthosCluster,
1718
ApproveRolloutRequest,
1819
ApproveRolloutResponse,
1920
BuildArtifact,
@@ -56,8 +57,24 @@
5657
UpdateDeliveryPipelineRequest,
5758
UpdateTargetRequest,
5859
)
60+
from .deliverypipeline_notification_payload import (
61+
DeliveryPipelineNotificationEvent,
62+
)
63+
from .release_notification_payload import (
64+
ReleaseNotificationEvent,
65+
)
66+
from .release_render_payload import (
67+
ReleaseRenderEvent,
68+
)
69+
from .rollout_notification_payload import (
70+
RolloutNotificationEvent,
71+
)
72+
from .target_notification_payload import (
73+
TargetNotificationEvent,
74+
)
5975

6076
__all__ = (
77+
"AnthosCluster",
6178
"ApproveRolloutRequest",
6279
"ApproveRolloutResponse",
6380
"BuildArtifact",
@@ -99,4 +116,10 @@
99116
"TargetsPresentCondition",
100117
"UpdateDeliveryPipelineRequest",
101118
"UpdateTargetRequest",
119+
"DeliveryPipelineNotificationEvent",
120+
"Type",
121+
"ReleaseNotificationEvent",
122+
"ReleaseRenderEvent",
123+
"RolloutNotificationEvent",
124+
"TargetNotificationEvent",
102125
)

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/googleapis/python-deploy/commit/f5105a425f4f164aa7db948b3c82e2aa59dd64ce

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy