Skip to content

Commit

Permalink
feat: [google-cloud-deploy] added support for deploy policies (#13114)
Browse files Browse the repository at this point in the history
BEGIN_COMMIT_OVERRIDE
feat: added support for deploy policies
docs: Minor documentation updates
END_COMMIT_OVERRIDE

- [ ] Regenerate this pull request now.

docs: Minor documentation updates

PiperOrigin-RevId: 679600689

Source-Link:
googleapis/googleapis@bd4f368

Source-Link:
googleapis/googleapis-gen@12a2d22
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRlcGxveS8uT3dsQm90LnlhbWwiLCJoIjoiMTJhMmQyMmJmMWJkYTg1YmE5YmVkMWZhNjA0ODQzMDZhMmU1NTc4MSJ9

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: ohmayr <[email protected]>
Co-authored-by: ohmayr <[email protected]>
  • Loading branch information
4 people authored Oct 4, 2024
1 parent 3881914 commit bbe5daf
Show file tree
Hide file tree
Showing 26 changed files with 14,650 additions and 5,517 deletions.
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

0 comments on commit bbe5daf

Please sign in to comment.