Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [google-cloud-deploy] added support for deploy policies #13114

Merged
merged 4 commits into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions packages/google-cloud-deploy/google/cloud/deploy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
CreateChildRolloutJobRun,
CreateCustomTargetTypeRequest,
CreateDeliveryPipelineRequest,
CreateDeployPolicyRequest,
CreateReleaseRequest,
CreateRolloutRequest,
CreateTargetRequest,
Expand All @@ -74,20 +75,25 @@
DeleteAutomationRequest,
DeleteCustomTargetTypeRequest,
DeleteDeliveryPipelineRequest,
DeleteDeployPolicyRequest,
DeleteTargetRequest,
DeliveryPipeline,
DeliveryPipelineAttribute,
DeployArtifact,
DeployJob,
DeployJobRun,
DeployJobRunMetadata,
DeploymentJobs,
DeployParameters,
DeployPolicy,
DeployPolicyResourceSelector,
ExecutionConfig,
GetAutomationRequest,
GetAutomationRunRequest,
GetConfigRequest,
GetCustomTargetTypeRequest,
GetDeliveryPipelineRequest,
GetDeployPolicyRequest,
GetJobRunRequest,
GetReleaseRequest,
GetRolloutRequest,
Expand All @@ -106,6 +112,8 @@
ListCustomTargetTypesResponse,
ListDeliveryPipelinesRequest,
ListDeliveryPipelinesResponse,
ListDeployPoliciesRequest,
ListDeployPoliciesResponse,
ListJobRunsRequest,
ListJobRunsResponse,
ListReleasesRequest,
Expand All @@ -116,10 +124,14 @@
ListTargetsResponse,
Metadata,
MultiTarget,
OneTimeWindow,
OperationMetadata,
Phase,
PipelineCondition,
PipelineReadyCondition,
PolicyRule,
PolicyViolation,
PolicyViolationDetails,
Postdeploy,
PostdeployJob,
PostdeployJobRun,
Expand All @@ -144,6 +156,7 @@
RollbackTargetRequest,
RollbackTargetResponse,
Rollout,
RolloutRestriction,
RuntimeConfig,
SerialPipeline,
SkaffoldModules,
Expand All @@ -159,19 +172,25 @@
TargetsTypeCondition,
TerminateJobRunRequest,
TerminateJobRunResponse,
TimeWindows,
UpdateAutomationRequest,
UpdateCustomTargetTypeRequest,
UpdateDeliveryPipelineRequest,
UpdateDeployPolicyRequest,
UpdateTargetRequest,
VerifyJob,
VerifyJobRun,
WeeklyWindow,
)
from google.cloud.deploy_v1.types.customtargettype_notification_payload import (
CustomTargetTypeNotificationEvent,
)
from google.cloud.deploy_v1.types.deliverypipeline_notification_payload import (
DeliveryPipelineNotificationEvent,
)
from google.cloud.deploy_v1.types.deploypolicy_evaluation_payload import (
DeployPolicyEvaluationEvent,
)
from google.cloud.deploy_v1.types.deploypolicy_notification_payload import (
DeployPolicyNotificationEvent,
)
Expand Down Expand Up @@ -231,6 +250,7 @@
"CreateChildRolloutJobRun",
"CreateCustomTargetTypeRequest",
"CreateDeliveryPipelineRequest",
"CreateDeployPolicyRequest",
"CreateReleaseRequest",
"CreateRolloutRequest",
"CreateTargetRequest",
Expand All @@ -244,20 +264,25 @@
"DeleteAutomationRequest",
"DeleteCustomTargetTypeRequest",
"DeleteDeliveryPipelineRequest",
"DeleteDeployPolicyRequest",
"DeleteTargetRequest",
"DeliveryPipeline",
"DeliveryPipelineAttribute",
"DeployArtifact",
"DeployJob",
"DeployJobRun",
"DeployJobRunMetadata",
"DeploymentJobs",
"DeployParameters",
"DeployPolicy",
"DeployPolicyResourceSelector",
"ExecutionConfig",
"GetAutomationRequest",
"GetAutomationRunRequest",
"GetConfigRequest",
"GetCustomTargetTypeRequest",
"GetDeliveryPipelineRequest",
"GetDeployPolicyRequest",
"GetJobRunRequest",
"GetReleaseRequest",
"GetRolloutRequest",
Expand All @@ -276,6 +301,8 @@
"ListCustomTargetTypesResponse",
"ListDeliveryPipelinesRequest",
"ListDeliveryPipelinesResponse",
"ListDeployPoliciesRequest",
"ListDeployPoliciesResponse",
"ListJobRunsRequest",
"ListJobRunsResponse",
"ListReleasesRequest",
Expand All @@ -286,10 +313,14 @@
"ListTargetsResponse",
"Metadata",
"MultiTarget",
"OneTimeWindow",
"OperationMetadata",
"Phase",
"PipelineCondition",
"PipelineReadyCondition",
"PolicyRule",
"PolicyViolation",
"PolicyViolationDetails",
"Postdeploy",
"PostdeployJob",
"PostdeployJobRun",
Expand All @@ -313,6 +344,7 @@
"RollbackTargetRequest",
"RollbackTargetResponse",
"Rollout",
"RolloutRestriction",
"RuntimeConfig",
"SerialPipeline",
"SkaffoldModules",
Expand All @@ -327,17 +359,21 @@
"TargetsTypeCondition",
"TerminateJobRunRequest",
"TerminateJobRunResponse",
"TimeWindows",
"UpdateAutomationRequest",
"UpdateCustomTargetTypeRequest",
"UpdateDeliveryPipelineRequest",
"UpdateDeployPolicyRequest",
"UpdateTargetRequest",
"VerifyJob",
"VerifyJobRun",
"WeeklyWindow",
"BackoffMode",
"RepairState",
"SkaffoldSupportState",
"CustomTargetTypeNotificationEvent",
"DeliveryPipelineNotificationEvent",
"DeployPolicyEvaluationEvent",
"DeployPolicyNotificationEvent",
"JobRunNotificationEvent",
"Type",
Expand Down
34 changes: 34 additions & 0 deletions packages/google-cloud-deploy/google/cloud/deploy_v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
CreateChildRolloutJobRun,
CreateCustomTargetTypeRequest,
CreateDeliveryPipelineRequest,
CreateDeployPolicyRequest,
CreateReleaseRequest,
CreateRolloutRequest,
CreateTargetRequest,
Expand All @@ -71,20 +72,25 @@
DeleteAutomationRequest,
DeleteCustomTargetTypeRequest,
DeleteDeliveryPipelineRequest,
DeleteDeployPolicyRequest,
DeleteTargetRequest,
DeliveryPipeline,
DeliveryPipelineAttribute,
DeployArtifact,
DeployJob,
DeployJobRun,
DeployJobRunMetadata,
DeploymentJobs,
DeployParameters,
DeployPolicy,
DeployPolicyResourceSelector,
ExecutionConfig,
GetAutomationRequest,
GetAutomationRunRequest,
GetConfigRequest,
GetCustomTargetTypeRequest,
GetDeliveryPipelineRequest,
GetDeployPolicyRequest,
GetJobRunRequest,
GetReleaseRequest,
GetRolloutRequest,
Expand All @@ -103,6 +109,8 @@
ListCustomTargetTypesResponse,
ListDeliveryPipelinesRequest,
ListDeliveryPipelinesResponse,
ListDeployPoliciesRequest,
ListDeployPoliciesResponse,
ListJobRunsRequest,
ListJobRunsResponse,
ListReleasesRequest,
Expand All @@ -113,10 +121,14 @@
ListTargetsResponse,
Metadata,
MultiTarget,
OneTimeWindow,
OperationMetadata,
Phase,
PipelineCondition,
PipelineReadyCondition,
PolicyRule,
PolicyViolation,
PolicyViolationDetails,
Postdeploy,
PostdeployJob,
PostdeployJobRun,
Expand All @@ -141,6 +153,7 @@
RollbackTargetRequest,
RollbackTargetResponse,
Rollout,
RolloutRestriction,
RuntimeConfig,
SerialPipeline,
SkaffoldModules,
Expand All @@ -156,19 +169,23 @@
TargetsTypeCondition,
TerminateJobRunRequest,
TerminateJobRunResponse,
TimeWindows,
UpdateAutomationRequest,
UpdateCustomTargetTypeRequest,
UpdateDeliveryPipelineRequest,
UpdateDeployPolicyRequest,
UpdateTargetRequest,
VerifyJob,
VerifyJobRun,
WeeklyWindow,
)
from .types.customtargettype_notification_payload import (
CustomTargetTypeNotificationEvent,
)
from .types.deliverypipeline_notification_payload import (
DeliveryPipelineNotificationEvent,
)
from .types.deploypolicy_evaluation_payload import DeployPolicyEvaluationEvent
from .types.deploypolicy_notification_payload import DeployPolicyNotificationEvent
from .types.jobrun_notification_payload import JobRunNotificationEvent
from .types.log_enums import Type
Expand Down Expand Up @@ -219,6 +236,7 @@
"CreateChildRolloutJobRun",
"CreateCustomTargetTypeRequest",
"CreateDeliveryPipelineRequest",
"CreateDeployPolicyRequest",
"CreateReleaseRequest",
"CreateRolloutRequest",
"CreateTargetRequest",
Expand All @@ -233,22 +251,28 @@
"DeleteAutomationRequest",
"DeleteCustomTargetTypeRequest",
"DeleteDeliveryPipelineRequest",
"DeleteDeployPolicyRequest",
"DeleteTargetRequest",
"DeliveryPipeline",
"DeliveryPipelineAttribute",
"DeliveryPipelineNotificationEvent",
"DeployArtifact",
"DeployJob",
"DeployJobRun",
"DeployJobRunMetadata",
"DeployParameters",
"DeployPolicy",
"DeployPolicyEvaluationEvent",
"DeployPolicyNotificationEvent",
"DeployPolicyResourceSelector",
"DeploymentJobs",
"ExecutionConfig",
"GetAutomationRequest",
"GetAutomationRunRequest",
"GetConfigRequest",
"GetCustomTargetTypeRequest",
"GetDeliveryPipelineRequest",
"GetDeployPolicyRequest",
"GetJobRunRequest",
"GetReleaseRequest",
"GetRolloutRequest",
Expand All @@ -268,6 +292,8 @@
"ListCustomTargetTypesResponse",
"ListDeliveryPipelinesRequest",
"ListDeliveryPipelinesResponse",
"ListDeployPoliciesRequest",
"ListDeployPoliciesResponse",
"ListJobRunsRequest",
"ListJobRunsResponse",
"ListReleasesRequest",
Expand All @@ -278,10 +304,14 @@
"ListTargetsResponse",
"Metadata",
"MultiTarget",
"OneTimeWindow",
"OperationMetadata",
"Phase",
"PipelineCondition",
"PipelineReadyCondition",
"PolicyRule",
"PolicyViolation",
"PolicyViolationDetails",
"Postdeploy",
"PostdeployJob",
"PostdeployJobRun",
Expand Down Expand Up @@ -309,6 +339,7 @@
"RollbackTargetResponse",
"Rollout",
"RolloutNotificationEvent",
"RolloutRestriction",
"RolloutUpdateEvent",
"RuntimeConfig",
"SerialPipeline",
Expand All @@ -326,11 +357,14 @@
"TargetsTypeCondition",
"TerminateJobRunRequest",
"TerminateJobRunResponse",
"TimeWindows",
"Type",
"UpdateAutomationRequest",
"UpdateCustomTargetTypeRequest",
"UpdateDeliveryPipelineRequest",
"UpdateDeployPolicyRequest",
"UpdateTargetRequest",
"VerifyJob",
"VerifyJobRun",
"WeeklyWindow",
)
Loading
Loading