From a90d7bca035f53c59ef6795a4cd8de3e3293239e Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 14 Nov 2024 20:50:06 +0000 Subject: [PATCH 1/2] feat: A new field `timed_promote_release_rule` is added to message `.google.cloud.deploy.v1.AutomationRule` feat: A new message `TimedPromoteReleaseRule` is added feat: A new field `timed_promote_release_condition` is added to message `.google.cloud.deploy.v1.AutomationRuleCondition` feat: A new message `TimedPromoteReleaseCondition` is added feat: A new field `timed_promote_release_operation` is added to message `.google.cloud.deploy.v1.AutomationRun` feat: A new message `TimedPromoteReleaseOperation` is added docs: A comment for field `target_id` in message `.google.cloud.deploy.v1.AutomationRun` is changed PiperOrigin-RevId: 695827924 Source-Link: https://github.com/googleapis/googleapis/commit/4805138ac78844e11fe6af603374b18adb435902 Source-Link: https://github.com/googleapis/googleapis-gen/commit/2b3fa48d4a3fd09e5766fe2dd65aa66dd97c172a Copy-Tag: eyJwIjoiRGVwbG95Ly5Pd2xCb3QueWFtbCIsImgiOiIyYjNmYTQ4ZDRhM2ZkMDllNTc2NmZlMmRkNjVhYTY2ZGQ5N2MxNzJhIn0= --- .../Cloud/Deploy/V1/AutomationPayload.php | 34 + .../Cloud/Deploy/V1/AutomationrunPayload.php | 36 + .../Google/Cloud/Deploy/V1/CloudDeploy.php | Bin 0 -> 51065 bytes .../CustomtargettypeNotificationPayload.php | 33 + .../DeliverypipelineNotificationPayload.php | 33 + .../V1/DeploypolicyEvaluationPayload.php | Bin 0 -> 1552 bytes .../V1/DeploypolicyNotificationPayload.php | 33 + .../Deploy/V1/JobrunNotificationPayload.php | 38 + .../Google/Cloud/Deploy/V1/LogEnums.php | Bin 0 -> 995 bytes .../Deploy/V1/ReleaseNotificationPayload.php | 34 + .../Cloud/Deploy/V1/ReleaseRenderPayload.php | 35 + .../Deploy/V1/RolloutNotificationPayload.php | 37 + .../Cloud/Deploy/V1/RolloutUpdatePayload.php | Bin 0 -> 1368 bytes .../Deploy/V1/TargetNotificationPayload.php | 32 + .../Cloud/Deploy/V1/AbandonReleaseRequest.php | 86 + .../Deploy/V1/AbandonReleaseResponse.php | 33 + .../Deploy/V1/AdvanceChildRolloutJob.php | 33 + .../Deploy/V1/AdvanceChildRolloutJobRun.php | 106 + .../Deploy/V1/AdvanceRolloutOperation.php | 179 + .../Cloud/Deploy/V1/AdvanceRolloutRequest.php | 160 + .../Deploy/V1/AdvanceRolloutResponse.php | 33 + .../Cloud/Deploy/V1/AdvanceRolloutRule.php | 214 + .../Google/Cloud/Deploy/V1/AnthosCluster.php | 75 + .../Cloud/Deploy/V1/ApproveRolloutRequest.php | 158 + .../Deploy/V1/ApproveRolloutResponse.php | 33 + .../Cloud/Deploy/V1/AssociatedEntities.php | 101 + .../src/Google/Cloud/Deploy/V1/Automation.php | 596 ++ .../Cloud/Deploy/V1/AutomationEvent.php | 174 + .../Deploy/V1/AutomationResourceSelector.php | 68 + .../Deploy/V1/AutomationRolloutMetadata.php | 148 + .../Google/Cloud/Deploy/V1/AutomationRule.php | 189 + .../Deploy/V1/AutomationRuleCondition.php | 123 + .../Google/Cloud/Deploy/V1/AutomationRun.php | 763 +++ .../Cloud/Deploy/V1/AutomationRun/State.php | 92 + .../Cloud/Deploy/V1/AutomationRunEvent.php | 276 + .../Google/Cloud/Deploy/V1/BackoffMode.php | 61 + .../Google/Cloud/Deploy/V1/BuildArtifact.php | 109 + .../src/Google/Cloud/Deploy/V1/Canary.php | 166 + .../Cloud/Deploy/V1/CanaryDeployment.php | 213 + .../Deploy/V1/CancelAutomationRunRequest.php | 86 + .../Deploy/V1/CancelAutomationRunResponse.php | 33 + .../Cloud/Deploy/V1/CancelRolloutRequest.php | 124 + .../Cloud/Deploy/V1/CancelRolloutResponse.php | 33 + .../Cloud/Deploy/V1/ChildRolloutJobs.php | 101 + .../Google/Cloud/Deploy/V1/CloudRunConfig.php | 193 + .../Cloud/Deploy/V1/CloudRunLocation.php | 71 + .../Cloud/Deploy/V1/CloudRunMetadata.php | 189 + .../Deploy/V1/CloudRunRenderMetadata.php | 72 + .../src/Google/Cloud/Deploy/V1/Config.php | 139 + .../Deploy/V1/CreateAutomationRequest.php | 285 + .../Cloud/Deploy/V1/CreateChildRolloutJob.php | 33 + .../Deploy/V1/CreateChildRolloutJobRun.php | 106 + .../V1/CreateCustomTargetTypeRequest.php | 280 + .../V1/CreateDeliveryPipelineRequest.php | 280 + .../Deploy/V1/CreateDeployPolicyRequest.php | 280 + .../Cloud/Deploy/V1/CreateReleaseRequest.php | 323 ++ .../Cloud/Deploy/V1/CreateRolloutRequest.php | 361 ++ .../Cloud/Deploy/V1/CreateTargetRequest.php | 285 + .../Deploy/V1/CustomCanaryDeployment.php | 72 + .../V1/CustomCanaryDeployment/PhaseConfig.php | 293 + .../Google/Cloud/Deploy/V1/CustomMetadata.php | 67 + .../Google/Cloud/Deploy/V1/CustomTarget.php | 71 + .../Deploy/V1/CustomTargetDeployMetadata.php | 72 + .../Deploy/V1/CustomTargetSkaffoldActions.php | 148 + .../Cloud/Deploy/V1/CustomTargetType.php | 475 ++ .../V1/CustomTargetTypeNotificationEvent.php | 171 + .../Google/Cloud/Deploy/V1/DefaultPool.php | 121 + .../Deploy/V1/DeleteAutomationRequest.php | 282 + .../V1/DeleteCustomTargetTypeRequest.php | 278 + .../V1/DeleteDeliveryPipelineRequest.php | 320 ++ .../Deploy/V1/DeleteDeployPolicyRequest.php | 278 + .../Cloud/Deploy/V1/DeleteTargetRequest.php | 278 + .../Cloud/Deploy/V1/DeliveryPipeline.php | 510 ++ .../Deploy/V1/DeliveryPipelineAttribute.php | 113 + .../V1/DeliveryPipelineNotificationEvent.php | 171 + .../Google/Cloud/Deploy/V1/DeployArtifact.php | 109 + .../src/Google/Cloud/Deploy/V1/DeployJob.php | 33 + .../Google/Cloud/Deploy/V1/DeployJobRun.php | 235 + .../Deploy/V1/DeployJobRun/FailureCause.php | 97 + .../Cloud/Deploy/V1/DeployJobRunMetadata.php | 170 + .../Cloud/Deploy/V1/DeployParameters.php | 109 + .../Google/Cloud/Deploy/V1/DeployPolicy.php | 553 ++ .../Cloud/Deploy/V1/DeployPolicy/Invoker.php | 66 + .../Deploy/V1/DeployPolicyEvaluationEvent.php | 504 ++ .../PolicyVerdict.php | 66 + .../PolicyVerdictOverride.php | 65 + .../V1/DeployPolicyNotificationEvent.php | 175 + .../V1/DeployPolicyResourceSelector.php | 125 + .../Google/Cloud/Deploy/V1/DeploymentJobs.php | 209 + .../Cloud/Deploy/V1/ExecutionConfig.php | 366 ++ .../ExecutionEnvironmentUsage.php | 85 + .../Cloud/Deploy/V1/GetAutomationRequest.php | 86 + .../Deploy/V1/GetAutomationRunRequest.php | 86 + .../Cloud/Deploy/V1/GetConfigRequest.php | 81 + .../Deploy/V1/GetCustomTargetTypeRequest.php | 86 + .../Deploy/V1/GetDeliveryPipelineRequest.php | 86 + .../Deploy/V1/GetDeployPolicyRequest.php | 86 + .../Cloud/Deploy/V1/GetJobRunRequest.php | 86 + .../Cloud/Deploy/V1/GetReleaseRequest.php | 86 + .../Cloud/Deploy/V1/GetRolloutRequest.php | 86 + .../Cloud/Deploy/V1/GetTargetRequest.php | 86 + .../src/Google/Cloud/Deploy/V1/GkeCluster.php | 171 + .../Cloud/Deploy/V1/IgnoreJobRequest.php | 196 + .../Cloud/Deploy/V1/IgnoreJobResponse.php | 33 + .../proto/src/Google/Cloud/Deploy/V1/Job.php | 384 ++ .../src/Google/Cloud/Deploy/V1/Job/State.php | 106 + .../src/Google/Cloud/Deploy/V1/JobRun.php | 589 ++ .../Google/Cloud/Deploy/V1/JobRun/State.php | 85 + .../Deploy/V1/JobRunNotificationEvent.php | 341 ++ .../Cloud/Deploy/V1/KubernetesConfig.php | 108 + .../KubernetesConfig/GatewayServiceMesh.php | 348 ++ .../GatewayServiceMesh/RouteDestinations.php | 132 + .../V1/KubernetesConfig/ServiceNetworking.php | 192 + .../Deploy/V1/ListAutomationRunsRequest.php | 255 + .../Deploy/V1/ListAutomationRunsResponse.php | 139 + .../Deploy/V1/ListAutomationsRequest.php | 255 + .../Deploy/V1/ListAutomationsResponse.php | 139 + .../V1/ListCustomTargetTypesRequest.php | 254 + .../V1/ListCustomTargetTypesResponse.php | 139 + .../V1/ListDeliveryPipelinesRequest.php | 250 + .../V1/ListDeliveryPipelinesResponse.php | 139 + .../Deploy/V1/ListDeployPoliciesRequest.php | 250 + .../Deploy/V1/ListDeployPoliciesResponse.php | 139 + .../Cloud/Deploy/V1/ListJobRunsRequest.php | 249 + .../Cloud/Deploy/V1/ListJobRunsResponse.php | 139 + .../Cloud/Deploy/V1/ListReleasesRequest.php | 254 + .../Cloud/Deploy/V1/ListReleasesResponse.php | 139 + .../Cloud/Deploy/V1/ListRolloutsRequest.php | 249 + .../Cloud/Deploy/V1/ListRolloutsResponse.php | 139 + .../Cloud/Deploy/V1/ListTargetsRequest.php | 254 + .../Cloud/Deploy/V1/ListTargetsResponse.php | 139 + .../src/Google/Cloud/Deploy/V1/Metadata.php | 173 + .../Google/Cloud/Deploy/V1/MultiTarget.php | 67 + .../Google/Cloud/Deploy/V1/OneTimeWindow.php | 210 + .../Cloud/Deploy/V1/OperationMetadata.php | 307 ++ .../src/Google/Cloud/Deploy/V1/Phase.php | 215 + .../Google/Cloud/Deploy/V1/Phase/State.php | 92 + .../Cloud/Deploy/V1/PipelineCondition.php | 169 + .../Deploy/V1/PipelineReadyCondition.php | 124 + .../src/Google/Cloud/Deploy/V1/PolicyRule.php | 75 + .../Cloud/Deploy/V1/PolicyViolation.php | 69 + .../Deploy/V1/PolicyViolationDetails.php | 147 + .../src/Google/Cloud/Deploy/V1/Postdeploy.php | 71 + .../Google/Cloud/Deploy/V1/PostdeployJob.php | 67 + .../Cloud/Deploy/V1/PostdeployJobRun.php | 151 + .../V1/PostdeployJobRun/FailureCause.php | 82 + .../src/Google/Cloud/Deploy/V1/Predeploy.php | 71 + .../Google/Cloud/Deploy/V1/PredeployJob.php | 67 + .../Cloud/Deploy/V1/PredeployJobRun.php | 151 + .../V1/PredeployJobRun/FailureCause.php | 82 + .../Google/Cloud/Deploy/V1/PrivatePool.php | 159 + .../Deploy/V1/PromoteReleaseOperation.php | 187 + .../Cloud/Deploy/V1/PromoteReleaseRule.php | 256 + .../src/Google/Cloud/Deploy/V1/Release.php | 917 ++++ .../Deploy/V1/Release/ReleaseCondition.php | 128 + .../V1/Release/ReleaseReadyCondition.php | 84 + .../Cloud/Deploy/V1/Release/RenderState.php | 71 + .../V1/Release/SkaffoldSupportedCondition.php | 201 + .../Cloud/Deploy/V1/Release/TargetRender.php | 232 + .../V1/Release/TargetRender/FailureCause.php | 108 + .../TargetRender/TargetRenderState.php | 71 + .../Deploy/V1/ReleaseNotificationEvent.php | 205 + .../Cloud/Deploy/V1/ReleaseRenderEvent.php | 216 + .../Google/Cloud/Deploy/V1/RenderMetadata.php | 121 + .../Google/Cloud/Deploy/V1/RepairPhase.php | 109 + .../Cloud/Deploy/V1/RepairPhaseConfig.php | 108 + .../Deploy/V1/RepairRolloutOperation.php | 211 + .../Cloud/Deploy/V1/RepairRolloutRule.php | 266 + .../Google/Cloud/Deploy/V1/RepairState.php | 89 + .../src/Google/Cloud/Deploy/V1/Retry.php | 157 + .../Google/Cloud/Deploy/V1/RetryAttempt.php | 179 + .../Cloud/Deploy/V1/RetryJobRequest.php | 196 + .../Cloud/Deploy/V1/RetryJobResponse.php | 33 + .../src/Google/Cloud/Deploy/V1/RetryPhase.php | 140 + .../src/Google/Cloud/Deploy/V1/Rollback.php | 109 + .../Cloud/Deploy/V1/RollbackAttempt.php | 203 + .../Cloud/Deploy/V1/RollbackTargetConfig.php | 115 + .../Cloud/Deploy/V1/RollbackTargetRequest.php | 363 ++ .../Deploy/V1/RollbackTargetResponse.php | 77 + .../src/Google/Cloud/Deploy/V1/Rollout.php | 960 ++++ .../Cloud/Deploy/V1/Rollout/ApprovalState.php | 78 + .../Cloud/Deploy/V1/Rollout/FailureCause.php | 110 + .../Google/Cloud/Deploy/V1/Rollout/State.php | 121 + .../Deploy/V1/RolloutNotificationEvent.php | 307 ++ .../Cloud/Deploy/V1/RolloutRestriction.php | 191 + .../V1/RolloutRestriction/RolloutActions.php | 106 + .../Cloud/Deploy/V1/RolloutUpdateEvent.php | 314 ++ .../RolloutUpdateEvent/RolloutUpdateType.php | 141 + .../Google/Cloud/Deploy/V1/RuntimeConfig.php | 109 + .../Google/Cloud/Deploy/V1/SerialPipeline.php | 71 + .../Cloud/Deploy/V1/SkaffoldModules.php | 175 + .../SkaffoldModules/SkaffoldGCBRepoSource.php | 150 + .../V1/SkaffoldModules/SkaffoldGCSSource.php | 112 + .../V1/SkaffoldModules/SkaffoldGitSource.php | 138 + .../Cloud/Deploy/V1/SkaffoldSupportState.php | 68 + .../Cloud/Deploy/V1/SkaffoldVersion.php | 199 + .../src/Google/Cloud/Deploy/V1/Stage.php | 203 + .../src/Google/Cloud/Deploy/V1/Standard.php | 163 + .../src/Google/Cloud/Deploy/V1/Strategy.php | 114 + .../src/Google/Cloud/Deploy/V1/Target.php | 783 +++ .../Google/Cloud/Deploy/V1/TargetArtifact.php | 187 + .../V1/TargetArtifact/PhaseArtifact.php | 146 + .../Cloud/Deploy/V1/TargetAttribute.php | 114 + .../Deploy/V1/TargetNotificationEvent.php | 137 + .../Deploy/V1/TargetsPresentCondition.php | 150 + .../Cloud/Deploy/V1/TargetsTypeCondition.php | 110 + .../Deploy/V1/TerminateJobRunRequest.php | 124 + .../Deploy/V1/TerminateJobRunResponse.php | 33 + .../Google/Cloud/Deploy/V1/TimeWindows.php | 141 + .../V1/TimedPromoteReleaseCondition.php | 112 + .../TimedPromoteReleaseCondition/Targets.php | 104 + .../V1/TimedPromoteReleaseOperation.php | 143 + .../Deploy/V1/TimedPromoteReleaseRule.php | 284 + .../proto/src/Google/Cloud/Deploy/V1/Type.php | 103 + .../Deploy/V1/UpdateAutomationRequest.php | 306 ++ .../V1/UpdateCustomTargetTypeRequest.php | 306 ++ .../V1/UpdateDeliveryPipelineRequest.php | 306 ++ .../Deploy/V1/UpdateDeployPolicyRequest.php | 306 ++ .../Cloud/Deploy/V1/UpdateTargetRequest.php | 306 ++ .../src/Google/Cloud/Deploy/V1/VerifyJob.php | 33 + .../Google/Cloud/Deploy/V1/VerifyJobRun.php | 223 + .../Deploy/V1/VerifyJobRun/FailureCause.php | 89 + .../Google/Cloud/Deploy/V1/WeeklyWindow.php | 176 + .../V1/CloudDeployClient/abandon_release.php | 77 + .../V1/CloudDeployClient/advance_rollout.php | 81 + .../V1/CloudDeployClient/approve_rollout.php | 81 + .../cancel_automation_run.php | 80 + .../V1/CloudDeployClient/cancel_rollout.php | 78 + .../CloudDeployClient/create_automation.php | 107 + .../create_custom_target_type.php | 91 + .../create_delivery_pipeline.php | 91 + .../create_deploy_policy.php | 95 + .../V1/CloudDeployClient/create_release.php | 94 + .../V1/CloudDeployClient/create_rollout.php | 101 + .../V1/CloudDeployClient/create_target.php | 90 + .../CloudDeployClient/delete_automation.php | 86 + .../delete_custom_target_type.php | 85 + .../delete_delivery_pipeline.php | 85 + .../delete_deploy_policy.php | 81 + .../V1/CloudDeployClient/delete_target.php | 81 + .../V1/CloudDeployClient/get_automation.php | 77 + .../CloudDeployClient/get_automation_run.php | 77 + .../V1/CloudDeployClient/get_config.php | 71 + .../get_custom_target_type.php | 76 + .../get_delivery_pipeline.php | 76 + .../CloudDeployClient/get_deploy_policy.php | 72 + .../V1/CloudDeployClient/get_iam_policy.php | 72 + .../V1/CloudDeployClient/get_job_run.php | 79 + .../V1/CloudDeployClient/get_location.php | 57 + .../V1/CloudDeployClient/get_release.php | 77 + .../V1/CloudDeployClient/get_rollout.php | 78 + .../V1/CloudDeployClient/get_target.php | 72 + .../V1/CloudDeployClient/ignore_job.php | 84 + .../list_automation_runs.php | 82 + .../V1/CloudDeployClient/list_automations.php | 82 + .../list_custom_target_types.php | 77 + .../list_delivery_pipelines.php | 77 + .../list_deploy_policies.php | 77 + .../V1/CloudDeployClient/list_job_runs.php | 82 + .../V1/CloudDeployClient/list_locations.php | 62 + .../V1/CloudDeployClient/list_releases.php | 81 + .../V1/CloudDeployClient/list_rollouts.php | 81 + .../V1/CloudDeployClient/list_targets.php | 77 + .../V1/CloudDeployClient/retry_job.php | 84 + .../V1/CloudDeployClient/rollback_target.php | 83 + .../V1/CloudDeployClient/set_iam_policy.php | 77 + .../CloudDeployClient/terminate_job_run.php | 79 + .../test_iam_permissions.php | 84 + .../CloudDeployClient/update_automation.php | 94 + .../update_custom_target_type.php | 74 + .../update_delivery_pipeline.php | 74 + .../update_deploy_policy.php | 80 + .../V1/CloudDeployClient/update_target.php | 74 + .../v1/src/V1/Client/CloudDeployClient.php | 2056 +++++++ .../Deploy/v1/src/V1/gapic_metadata.json | 268 + .../resources/cloud_deploy_client_config.json | 294 + .../cloud_deploy_descriptor_config.php | 857 +++ .../cloud_deploy_rest_client_config.php | 723 +++ .../Unit/V1/Client/CloudDeployClientTest.php | 4857 +++++++++++++++++ 279 files changed, 50897 insertions(+) create mode 100644 owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/AutomationPayload.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/AutomationrunPayload.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/CloudDeploy.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/CustomtargettypeNotificationPayload.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/DeliverypipelineNotificationPayload.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/DeploypolicyEvaluationPayload.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/DeploypolicyNotificationPayload.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/JobrunNotificationPayload.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/LogEnums.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/ReleaseNotificationPayload.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/ReleaseRenderPayload.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/RolloutNotificationPayload.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/RolloutUpdatePayload.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/TargetNotificationPayload.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AbandonReleaseRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AbandonReleaseResponse.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceChildRolloutJob.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceChildRolloutJobRun.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutOperation.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutResponse.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutRule.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AnthosCluster.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ApproveRolloutRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ApproveRolloutResponse.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AssociatedEntities.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Automation.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationEvent.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationResourceSelector.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRolloutMetadata.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRule.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRuleCondition.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRun.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRun/State.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRunEvent.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/BackoffMode.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/BuildArtifact.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Canary.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CanaryDeployment.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelAutomationRunRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelAutomationRunResponse.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelRolloutRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelRolloutResponse.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ChildRolloutJobs.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunConfig.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunLocation.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunMetadata.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunRenderMetadata.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Config.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateAutomationRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateChildRolloutJob.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateChildRolloutJobRun.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateCustomTargetTypeRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateDeliveryPipelineRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateDeployPolicyRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateReleaseRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateRolloutRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateTargetRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomCanaryDeployment.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomCanaryDeployment/PhaseConfig.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomMetadata.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTarget.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetDeployMetadata.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetSkaffoldActions.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetType.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetTypeNotificationEvent.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DefaultPool.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteAutomationRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteCustomTargetTypeRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteDeliveryPipelineRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteDeployPolicyRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteTargetRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeliveryPipeline.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeliveryPipelineAttribute.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeliveryPipelineNotificationEvent.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployArtifact.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJob.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJobRun.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJobRun/FailureCause.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJobRunMetadata.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployParameters.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicy.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicy/Invoker.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicyEvaluationEvent.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicyEvaluationEvent/PolicyVerdict.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicyEvaluationEvent/PolicyVerdictOverride.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicyNotificationEvent.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicyResourceSelector.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeploymentJobs.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ExecutionConfig.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ExecutionConfig/ExecutionEnvironmentUsage.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetAutomationRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetAutomationRunRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetConfigRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetCustomTargetTypeRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetDeliveryPipelineRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetDeployPolicyRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetJobRunRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetReleaseRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetRolloutRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetTargetRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GkeCluster.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/IgnoreJobRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/IgnoreJobResponse.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Job.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Job/State.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/JobRun.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/JobRun/State.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/JobRunNotificationEvent.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig/GatewayServiceMesh.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig/GatewayServiceMesh/RouteDestinations.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig/ServiceNetworking.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationRunsRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationRunsResponse.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationsRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationsResponse.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListCustomTargetTypesRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListCustomTargetTypesResponse.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListDeliveryPipelinesRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListDeliveryPipelinesResponse.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListDeployPoliciesRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListDeployPoliciesResponse.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListJobRunsRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListJobRunsResponse.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListReleasesRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListReleasesResponse.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListRolloutsRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListRolloutsResponse.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListTargetsRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListTargetsResponse.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Metadata.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/MultiTarget.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/OneTimeWindow.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/OperationMetadata.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Phase.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Phase/State.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PipelineCondition.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PipelineReadyCondition.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PolicyRule.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PolicyViolation.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PolicyViolationDetails.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Postdeploy.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PostdeployJob.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PostdeployJobRun.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PostdeployJobRun/FailureCause.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Predeploy.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PredeployJob.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PredeployJobRun.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PredeployJobRun/FailureCause.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PrivatePool.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PromoteReleaseOperation.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PromoteReleaseRule.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/ReleaseCondition.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/ReleaseReadyCondition.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/RenderState.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/SkaffoldSupportedCondition.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/TargetRender.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/TargetRender/FailureCause.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/TargetRender/TargetRenderState.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ReleaseNotificationEvent.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ReleaseRenderEvent.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RenderMetadata.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairPhase.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairPhaseConfig.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairRolloutOperation.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairRolloutRule.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairState.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Retry.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryAttempt.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryJobRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryJobResponse.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryPhase.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollback.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackAttempt.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackTargetConfig.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackTargetRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackTargetResponse.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout/ApprovalState.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout/FailureCause.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout/State.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutNotificationEvent.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutRestriction.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutRestriction/RolloutActions.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutUpdateEvent.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutUpdateEvent/RolloutUpdateType.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RuntimeConfig.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SerialPipeline.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules/SkaffoldGCBRepoSource.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules/SkaffoldGCSSource.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules/SkaffoldGitSource.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldSupportState.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldVersion.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Stage.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Standard.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Strategy.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Target.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetArtifact.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetArtifact/PhaseArtifact.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetAttribute.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetNotificationEvent.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetsPresentCondition.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetsTypeCondition.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TerminateJobRunRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TerminateJobRunResponse.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TimeWindows.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TimedPromoteReleaseCondition.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TimedPromoteReleaseCondition/Targets.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TimedPromoteReleaseOperation.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TimedPromoteReleaseRule.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Type.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateAutomationRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateCustomTargetTypeRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateDeliveryPipelineRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateDeployPolicyRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateTargetRequest.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/VerifyJob.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/VerifyJobRun.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/VerifyJobRun/FailureCause.php create mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/WeeklyWindow.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/abandon_release.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/advance_rollout.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/approve_rollout.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/cancel_automation_run.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/cancel_rollout.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_automation.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_custom_target_type.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_delivery_pipeline.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_deploy_policy.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_release.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_rollout.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_target.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_automation.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_custom_target_type.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_delivery_pipeline.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_deploy_policy.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_target.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_automation.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_automation_run.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_config.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_custom_target_type.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_delivery_pipeline.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_deploy_policy.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_iam_policy.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_job_run.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_location.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_release.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_rollout.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_target.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/ignore_job.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_automation_runs.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_automations.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_custom_target_types.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_delivery_pipelines.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_deploy_policies.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_job_runs.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_locations.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_releases.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_rollouts.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_targets.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/retry_job.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/rollback_target.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/set_iam_policy.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/terminate_job_run.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/test_iam_permissions.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_automation.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_custom_target_type.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_delivery_pipeline.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_deploy_policy.php create mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_target.php create mode 100644 owl-bot-staging/Deploy/v1/src/V1/Client/CloudDeployClient.php create mode 100644 owl-bot-staging/Deploy/v1/src/V1/gapic_metadata.json create mode 100644 owl-bot-staging/Deploy/v1/src/V1/resources/cloud_deploy_client_config.json create mode 100644 owl-bot-staging/Deploy/v1/src/V1/resources/cloud_deploy_descriptor_config.php create mode 100644 owl-bot-staging/Deploy/v1/src/V1/resources/cloud_deploy_rest_client_config.php create mode 100644 owl-bot-staging/Deploy/v1/tests/Unit/V1/Client/CloudDeployClientTest.php diff --git a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/AutomationPayload.php b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/AutomationPayload.php new file mode 100644 index 000000000000..f997f5e2423a --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/AutomationPayload.php @@ -0,0 +1,34 @@ +internalAddGeneratedFile( + ' +· +/google/cloud/deploy/v1/automation_payload.protogoogle.cloud.deploy.v1"x +AutomationEvent +message (  + +automation (  + pipeline_uid ( * +type (2.google.cloud.deploy.v1.TypeBj +com.google.cloud.deploy.v1BAutomationPayloadProtoPZ2cloud.google.com/go/deploy/apiv1/deploypb;deploypbbproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/AutomationrunPayload.php b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/AutomationrunPayload.php new file mode 100644 index 000000000000..a684c442631c --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/AutomationrunPayload.php @@ -0,0 +1,36 @@ +internalAddGeneratedFile( + ' +Œ +2google/cloud/deploy/v1/automationrun_payload.protogoogle.cloud.deploy.v1"Æ +AutomationRunEvent +message (  +automation_run (  + pipeline_uid (  + automation_id (  +rule_id (  +destination_target_id ( * +type (2.google.cloud.deploy.v1.TypeBm +com.google.cloud.deploy.v1BAutomationRunPayloadProtoPZ2cloud.google.com/go/deploy/apiv1/deploypb;deploypbbproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/CloudDeploy.php b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/CloudDeploy.php new file mode 100644 index 0000000000000000000000000000000000000000..10c4f71cf2d91363487662a67b8e02cdb3c978d4 GIT binary patch literal 51065 zcmdsgeQ;dYb)OeYg1`j{f{$MyL`l$-WKk3eSg>VDpeT6(EGS6ChZZ0yxv;t*x zVt2i}APp;MJZ_sNZjzbCaomiXOxsC2N!%pUjyrAIPABPS#_hC?lQc7GJ58r?|4{!( z+dtZlr_=U#?z#8A``+8T9{?nG;y)~K-@WIZbMCq4p09h}E3eh=)x?wIH-bt~FEoSV z_{Q#d^IkAst5=)V&1!jkV`pnCsE=<}w`-+xP@fndpIaVZT3#E^&MmAxfvJt^PJJ_& z9=}_y-Yo}{o8{_Gak3cH%GKS;2ha1r^Zf4#2~~(nVLNEl3Y)?Bjg^_jpjjvunuYZn z62ST_0a%}t0M>6me@%$Za-q=}m%sDR;$1P0|J8Oj%B9WmMzhewf1WBe@})|tSt^uE zUjiZ5$F~aQMu7Rrv0FQp&1R`u8K()$mCfMNv*Qet#y(Z6g7E9(8lx5B1^BSOP-zDB zN}&ww8k_Y}ty!(FVCeMp-JoeWNWWZqR=t+MmA1w&F^<#I2_&zNH|slr{r2(kdeGdd zSFTCC3BaEDYrO@(GPTlrrc$XA7pj%U^mIs52*NdSwpRqn1Y*GNWtBhswh+z!v}9$_;TOwVrDn!Ed$DtWb7Xx!h& z+_e&RNwctB>wfOqZY@}!!#?hL%5HV*VG#6yrhFBlSlucX9ITNW>FTQ`wQVxRqS+<$ zP$rj*T$7YPBmUQ)PK#%|RwLdy9y%d4&V@r+N%g24%Hw3!$fFwcm>MM292CZ6Q3;)T{z&|JKw_mHY6WU0Gm6^~ z9yLPaZ$>n=gs1_EBa=;t!6bBQ5PPrsU9EMihXheBC_nVScT|kb1?AF%puW3Os^PCn z;GGgjNP~~2##5IDXVQO=NqHk8y;CZV_UT{J-f1yZR9X@{b~H^-yd^PI2vybSk@57U zp{bWAm@V;zoQS`8!cueDO0&M}&58bUVIwFvMvqERpXeIYO*xIBd_oLu)&sCBPvnpG z1J$9aF%3#{dxC^r?nfdy?P1nVjhM`{j&(OHBThDgI?kwkO|f%yK+gQAeqT(SCsyTf z&HUFt;$_6(X0=kpNe8|T$;r>UChKXldIIBqTpYovdv{b|_8``Cu(8vq1(jk@96gSo z2F9kuNP^izB7HyDLwovlke(3_h5ZQB^DF(PloM#GeQjLHSk{( z!%;qaS4BS-`)<$x!6c=Rx>&qQqx@e>iKFr_;%2i@heeRbhLBqXyJG+dZ$afXz^^n| z{-PLYG|Aw)y9?1Jc^h}b=W)EzUKgjBTlrd{j!g)IqydQ~3@^DLu+g+)#!E>4FZI#Z zCNnL3;w^}NxvZM%HXABBbK*8hLql#Tg5T#A#OduqbMszaaYJoXqJL=WwQg~pSR@#0 zlA)G#NfJontk-%SByQ{_ajrGAPBZ-N{3pcVN(oopa4dmdQU# ziGHTvn-RmX`$!?@q3yOxcjaChntIv=E61au=`fga$%<3VbLD>!BNaK$&BCwejX~qF zbU87)xzlJ?xARG8bgm6eO}LPnmGhD?XZppF?P@Xbznu~z@yFh%7=mfBiMJaCbd)IS zvlfbu+So!dF8f=kBa)7;7wS8G;#_OmyxZbL?OvgwmrZMu>E2j0u|hDy#q1mV{gfE8 ze)P^lsmk|gHOm}25BW2^lZ&lbXDi{fRKlUu6ZJ7>vR2+7GueXZnwj737b9=(Y{0dI zI&Uz|-k%U>?&5rSSlG?OV0cj44Dv8P?x|gH&Be_)oQWF@1g9IpSOf@2^xMMIK=ICp z)%tz-S88WC7b*c-!CW#BUjNA0Z>EKpe5Hp~xz}vg^7ZOY(=r_UNP#I#!abJ z>SNoHSNBzMPJ+lQ)9YcO)MWdM1^9yIi?Q0Y-^Uu^HE|xgd!r2L+-YtUHt*-PiLQ>} zP5>SkUaeZhl9XYHRO@+ps!5YkS;7_JF@~^yo23dHC(6cK)Y!#syaa2LES$&@>kxP_ zKqWeJp6N+mw*pfk>YQ_I%N(|3Z zun3x8ZJH;RgBQu0jCwk})7tn)v@++}WNW}W zXy6=c1)QX4zZSPT_cKq5CnUwJ3)JQ@{sF(CckHfev|U#SEiQ%bl0XZyq{&A4##iWt?-1jGjHB(YOI8WGyYM$o`wtB?~Hn$qlT zKl#)Xs zk(~;JWAh%VMQko83qLQ$ZUhMyY7S;1p%%rzp1fxNNBYF0vv?~V9#OYgzvNJs2`Vwc zJMw_7BSHGEjDm5)rHX0myGC&){VPwMI?EWnB0MR)F>wO^Ye|M>s+BS?Js&gvf5rOW zk`WshBf^jlMctH&PAWPR)MaE^l0{@6kSyBc%BTQYg>t$2Ft1dlBw3xF?MQwPB!gI( zl`fJGE?{J=S&L!TJ4K5T#o9Xa6IjzCDvCUDbgK&YN19dYH^dxe#EQ&vb;53oGr4NH zOjaE0J7{CLe%=e>7>;|Kl&p4!rXF``HJXlLe5S)H!l_q>d385$9E*?||I2A{Hu^rj ze-43%=j@=7c_|AzBT0g8Btq?gazK7obO&G`D(aygVQ-hqdE$^XZx`<+&&-NGP%D&L(N%W49-o{9hNMpM|Mal)LpRrFHb%EKiy|csu%SX{d#0 z2%O{A9S-tD;G22>nu&gM0PwO)&Y7Z#c>K(JRE*HhE!Bg3p+?qup*(sbT)$Xcoa59< zb=W>GJ_vYSMAJVh(s%C%qbKEPr{{d*elS}`NF}IC4!|g$6T^i{^Io-)-{c3Qrz8kx zm?$Gh$Dq6-(qvS7a;o#B*GBbC6?4`&d`cYO-YGXr%77g`Ex|nLT8%{-%S)mm%!m^z z!UPS3(DCS53F0Xi2oAkOVZ1F)BTZi2Ea9Xt=3#UpL4bJkd2F?zsZY8fDbdK7nOQXv z|E=$`oN3)lsR5-zX2hxBivfIScynY$LWeX)N93#4pK-k_t7j-hz1Aw0eMSOt#+?eULp z=oUdDne6kh=MV}gU@PHFfpgFHmUGX|@mQ+O(0dLL;N?G{7>I;G+Iwiq31NlD+7L2g zh(c%ZF(d$1@>k@c_EGVaJkvIIO68&=**LCu1BHpQly+r9?nB{3S%MchLd@t+6ZK5iVtl6&!xl#C*Qs2a8PI8&d%Oi zTUcJoXP0g-Nh66kxRT4NM@JBM5G%{8YwF)eXU>bWfmRt%XhsbDH^h*&psko_ zB2+0lOeyaUya$danqv z9c&{o-M9w`F$8d2-`m-UzkSh+_m`2`P~ka!Vj_k$pwqMp-m{Xmi1g^+8*z|&vj0&r zWSyPlcd+7t1#HJRVI>~74@hrWc#+dJPqB|^NTRJvZ3CkSi2oN-!b|FG@47e+rf5Ti z<5+EyU*R(IF*_?xMok%tztQ2{gDpcb8IOV-YaBY#F3QWXNQ~mT*To@0(n67pF#f{m zg8f#6Ba~o-IU0|y;L5i zq~di1F-p3^#JO2wuqO1sZdIvqbYCwNZr~+99 zTDmC6S=FjCsysAx-6g{sQN^7Q@!6Rirt3G1y@~X(;=G}Wbe4RFvCRAEr&^(TFFfI7 z9cew-vW(KPYZfp~1(_IJNFEABD{y0fQk*rI*hs>CM9dm>N+ozzs-$tI3nQP%25 zM~}uFC(zpnxmXdN zu)U8wO<^!vnfe4(wK2)$j7<@V;O{0iT|P1??-CoDI+rA-9-7kDhF$ze4adZr(tWe0%}tp z_p53$@5@h$qjhPk2norV3gL`c4nujKF6pNW0fQfcLFvzmV+)lBsKBU0dQUGb-Clk( zn~Mbj2gH$Et1<+5R-EFvUOsbcZFw<6F~pI+>4)!Un%(FBy!mb|Qnn5ykB|hR@_#B< zSLw&STq;Ec`xo1-hKItsqAHjOs};z48Jc?DEuztCg-o+qFKwW1Pg;_Qr)mG4Rh!!o z<||k&H#_`4pAsiy1VpgIajD!u z#?I+9#ef_Hr#zL!Q|_5|49?NhlmSP)9EL9{>r2uTQ%MA8nub!(n1X$)XP~eSh1|4X z{a--gYjS{hGF%njr?X<9#M_1ggu_$L47Dwu6Kb!qAT5Vw|K!pPyYEmXQ9>c9Btv@Gn&> zIwUNkW^-Z$zsS_%slzJnN+s^!(sR!kYVa~fBF;H_{Me65J zcPk;9m#8OHcgycmTKpsmnV?!s6ptLEEmWfJpk4!a0Vo;Dp0fX|=f$xc%m|bNC9S%y zZ)av(S#?fxOua8@&|Nd?oejF@w7khsMtD(oLPM}^Iqb*625u!`^A%CMpn|vZw&gx- zylHVt#gKT%NI~c_R`?Psia7p68$!kjmD@!aKkcoGi<^mY#9#nm_n5_(vri9u}n*2 z^ql0yRHyyIAek5&;Oq9q;8CfPJMLbECMt5cSe^NMOP6=pw@fcc?3`YnCRkZ5tx9u# z_oz5-BM;wC?J+94l!DKyZ)W`&h~D=zPl(5*(vXi7TTB^+lzeY}-G+f}4sjssdU)#9 zUidg+<7G+6buoZTwz5HqDw1^Gx!?uS?MyTyPiT$3S=d3f1)Y@b%r#cx5o{*rS?A9Z z00xV)5e-%!1SV&c_KV_Ff*S8h@%UOMcO$!&=dz6a>KYkF(V`6)RI9gUXS1lunB%&Q z`OLyi{M`pbc4%QK4-4%^F1xxqlJWd6Ze3rkDPJ0BBc_LN-qty|gEwY++s#$BFAWi83Vtn?@Iv&&2K z3peuUPLrQszO^(5labzfYZV@+GD59~N4=-T6YP}ADwfr?95{009XVw6*2>CqZVjaO zd*kAw;@Lb5QKFCD5RN!Dw*CxigL&yZMPG~}5LjQ#hN7+Y0`!|G10R;{C2&+IWv(Z*upuZk{Uc5xqwi{oxVft9a5rEO>%Y{H6zWSQb5le%8IDw1#BC&Nra(r8NR1bNqASVw`2Dhr~IoZsV})J>5w; z#29ET(uWXS8T+ihqohxE*7MQIzZatAg-*r9%0NSsrG*>9vsFYZ=+~mqosyMl zRKDon5kss?S!yqe(Zf+$(_cjn^hZ*{Z&TEvsPR76eWWQG@@d&?Vp2&u9;(0gd}x9T zTsLC-`8uV5+V05JDb&iN0_|C^>sooLGb`FrFXKkg5kdu&CnAqkNr}@lwUJ~9(R&|U z{iw6E&PzCd2&(lZ9N9sFgEH#E*#5Ey2~v2A@0*lENE-YD4%NwvH%T(DM{14K()JJr zjdGr-RSD=sX$+B~s{RtCF;>}(u5d6$L`nu5`L>+FACc6<6VF4t)`#94W33QXImzpE z6*>(5Qb|1f?OlmSkGaS@;+(w9XIQqY8Fs)W_n#9dqMjbgzDwIC0zd}?t}$~e-Tziv z3`dnd?4aY?b&<}f*{*3+8_;#;n8O-P%%`auW4ll(Z6Wpvp8!dFvq{qECUBB3OzAi1 zc1+GgHi{hgdeG++pGDHn9jl5HvgLz*=EPKnz1cQyhbeBFf4;hr*OcI9Es+xPV(h*+ z9eH7^gK;)`FgkNR?TDlUa^@(SX4Omn>tdLdtD*8jY_Tlr9udPDdx^ZhElsXE3V6@W zs)}1aK(#Z1%0bg+fr0tbzq%;KaPKAVSgE`J{?{p}D_v#-XWqVpPLSH%Yi^ASFA`!z z92HP8NvG|?{=a^|ob3N?6!OuIS7)_RN{%#q+oGp<%;SSCp?E0HL=jg?>UlAsEd-^V z+;&X8bec}w;E-{dYvIO#YGj|)!@zy7A zb~5?OTIs|kl9&Bez#=;1y1YoWi-R-0Utatg;<+kE^5F$(IoETLAgzL62Wj`0aDM?> zP2Mu>tz#ah1r_uY*iqBE48kJxtImD+%XQTxrpwES2>q(LCiKhYoo$?4)@zhbGL_qO zolqKPecl_mrl@XMD*v4>(+y8ub-JN?;nXbY3h_H|s|+NWsHZa@rDScwnu^my$Bobt zpn>@2u*NY>!8oQm493x2%E2CjanX3{GPMMdrk8#x$H3@*WSg|7#@h}qG38Tmim2t2 zzSZdL$tTZno`X(%+d6>9F;Qoyy~rs;U1<!q*=mz#36RLe-m(QvO*DM!@eh z@_=e)E_*YZSaoQ3tvfZPOl>`x_01bXg!@-n zx6XQ@jM?cqMkfj@w30bM+mn_2y_7gJC)Mv8)s5UvMT0&B8kgeN)j8neOkCMXJVr?) z!#q0>ohUsq_Y5`Iefc{c+%A0?7dInq&x)E2>P}y_=lh&U!=F?R=!<9`*4ut27$yDkF(@ z&TyM+-DFSLCK3sOy$;kFMIF@h+CY+*-m&nyPRhA2d5vi}1fU^>9pRQYVOiWm)?Ql! zc?pVQZ*4jT&C(2|B`je67i8aI_lap8Y^it>ua6F~FySYQtyFUDh^)w(;S`uW9#`L7 zSXsfz(N86Bgt3oqt;10YQHrY?Hxf-Umpe4|h|9(W8NB~73;A}mpOv#%nRK4@A{veA zCbe=RE6L6iUlPM%i&{C8B0yarN|lWx@r6Kv#A#KUqRtcosiTaYv3XUT(OWYzpR3I} z&iDT(!bsp`atk0m#C`%Xba=|y$`q5^Z2x6w*i_F~H?G=M5EaC(FsZ;45t=Fi(`e5v$%5-=A$IqTFiJh3%o|HnI- zrb9f0%XmpAyIIHKgl$e2I{^r8>!;Ms(R;B*!qcp=il_A4h#_-cgk)M=05oH@Z0+T%V0D(yc;Qv+_n2drv2gbh1h`EojnDUv zQ*g(VLut0bjYK8R0c~+p(gT^TVLIk^8pd=sSY}4GEO#bzl)CS3-qBxwnHvqOVQ7nM%g@6K^K<#PL>xJMU^H zi?zOa#2s7rkrH6ZCbDE~F1AJ7Vf2HL6~kSTg%a~K=%tS}J~XP_=#zQ2pH-pLB#NWL zo{FRv?pCVx0QQ0wvun{_mV+~0ofz$x1RINv&}ctNH=*3qy7zPkT7+5TC?fwkt_I}- zbe8+$L8C`?ZJHWI;#*J|T)`g8jqPJ^ak5Jq8ZnUSW&avC%!!pSu%Q||f0fDJrEJ1W z9U6*6m#c{k*r3{N?2dFGDo;LM8Q&=Zl)Ob2(s z7@1(RHn;%<=Y?`vB@lK8oOl@H)B>_Vjri54T*zsZa3~`)H08b;XdAW`ECdyz{)q&} z{WP5+%!v7G0s9P!_8o4D1WU=Qp($r^c}sKI0-qO;I=vMMpX&MBT(fL#bz3jc^-S_I ztXwkxeup?otiCxF^;KlwI#YLyvHEHmqqoGafKtUB=4^_9}VTAnLmz1IK$!gM(eKX-O^#WSh=ke zeH_nmmaN+E(T1&*62x)_$RehWi|T_Q9b$XBW`~9B-{O*+owob{YT_MV|gfOisW5i)nG(R%7121tVVIL~@~G zOfctz2MCzv%T@H@j#Zi^1d0}V*nJ<{#IQyZ&$yzXxE?iSHuOUnXo^IzoJ@e@@_g#`fM~k>~q=B_+=a(P%#i4F9 z2CnB%rNq;1?zn}Rd0XA?dfin(f2^$aHMfFUOFR$%Asa5;MjfGf9A~ZfQoQ4{I{>mK z3v5l}BmaASV%UOA{e4h*3c_SfjH;_gSOK5h;%tSp!OsfM(Q!MqY$=p%0HBUoXrn^{ zWToN+s4Ng2j zYEF`(@&MgzcQ-)d%f?NnEv)Y<_uq1|B z)c-rw!9JQr!73z4#APaOQpYwne`;K=N6ORWv&?oP|FB5&{~f+gn%DC0v_*se9n zeMntO)093V4E&x>!hm*T^tS5OmTW>GcYm8Ay%`>hzQf!|&qvdb0gW={v6I_b+MjGh zd`vv4zeKCqkuRBg{d^6HY20{_yO?bWDr`IN&>-HOcAw?s^TjDYd~zkeiOOge#pA72 zI1KJc>jG!krG;{iXg(Zd^ig@)Q;G^`!lnrRpXw7A+f7IL)@lBzr95BYdT{RtCb*+T zdI#<0*CXhT0qR! zPPh8vl@XsbzKM7`WWQ;(rs_+(SO(H7X=#R=tBl4*P2+>zk;J>R=~{$`cK)5~&Tw4; zr}k#ORHJVQ;)|dr12iv2;w=}^1g}F*yX%a;J3{!3=34jR)&~d*r1kIHKPS8>N zJ^}iU7*!@7Sw++eH-yaJ&~%1uBIb7ju+xwU;qw%72zqeCS?t!UP_;4XC)mLa9H4Uy_99@}eVh7hU0`zqa&1CX{8Fy^$U+lxn~?__o4pl_|6cSy3lGbLN7 zvv(SPI`MGOY3W#mT9|IDo@>1oZ2Bx7p-tS_=1#p%>22G+%A=KX@I|Shr8`ARHs(xn z-(Y7$W=2DLjI8_YLaz{I`fv&yVA5^jdEujDS__NY>^SF=lcrSd7>pfcEn>K^KJI^_ zr5E{=5=BJ&BJQm7Op-2VNEH;~rxHG`J5Z=SM1%^-UsXCa;oIT@p$K0@^~B9;vrx_# z5^io9{aK@qE79G(=L9~!XS9oJbfCQ-6c_kRItar;-2G6gMk#d{Tfb5V{2q75m$ zd{!?37{c;;kvzu3@LAgbmsI1a;t2}>4nBGshF{AP`|j`YbwJPB0$qj!h#g!XPR-3P zL`_}Nq1xKS_bVcu+CC;7!^>Xxs{YVy@~^5^SP|0;h$^!j&4r_CUz_I6J4_KkJzD4Q zi1ShFJWSob8u7ps!$j8%qwvod7g0wL)GKmO@Q>odWU@p%2A$b>8J7ai=*;IT_vDn@ z!uzQ3SKrLc&o86Bsp<~evSY$iV%#w<>?xX(pWAf|Tg)sht!0;}MSgy9d5&7u;zP*C30!wQPnVTbhm!SZZ zwr9S`297J4gYZ!ejKw@ZNdC|8Kru@@;iU{wZ0d< z7bYJ(Klv_eqwB_gygX?>tvh*nZ!%#odJyQ-vTa=%O-SmyI>qNXQ=}~hYf_x0#&KTx zbMIwjJwya|Dv)qsoZ}|IL#A(F9dHKvsyl;Xxy4PlGX`Q@j zJ-$oc{BjSxc{G9Vm7N-W(E{E18uukH*4L+QNQq7io#<6gTCwLp!hD~TF+%)*RPvqd zX+6G6_I%+xnakoVf7g-9ZJO1Movn#1Ow(PjmH1fO<1$M{uVi~L8HY%T=peZ>Q*8~> z)HowMk+Dh_y%N<$SH0)D(M2jL;320cKOaL$Ax716-hf}64k>MzW3kD zTp(^`*m^TuRKAnX)6)+X`sU9#s_dSK6ENhTz0rq52jF4awPXj|38 z!!7QR5^BYu&}fPi?3N!^P4V$vGU$Ufnp)BA{e381(j=-5u;Dq6MthW|$9d~4I#}tX zx1x5_jQ6R|c2i4F$b4eJ`z6FPVM-|MJ!b(@I7XxHZeO7;A}`wphsL$tAyAB2);Qb@ zqNI-g3%+j0_Ju~*$-c-ijd2I%^W)fE7p+gD88=Sf`hyjybdHK-Us3-JwabAQWLihb zJ=}gDj@}J-o4L_(nqH@w8y~L3>(lmvE&8k*4zOU;1-^$)R_*^m4IwWIhei0ScAoQg zXL78js>3RN9jo|+zLTon(#oiO+PK?czyDph+Sb4Hvd;Q!mGKNm#DQWZrjvguXiP`H znBk#8ipR>oI|d}jcFBNmbjg4V5n2;x!&_4<%aKuSkA*1xbSA`D@NXaktlqn0L2_)D zEU4_;R{g|fUh4KzZ?7{crr!Wzq_8crAOUXSPL9=tIiqN;rl@T@8$A_1;q60OygnM>Ci@31N4 zcN2x*r8C@aY2&%iaC?}h&l%~705$7YwAby9pF7NT+m!ebQMlg5HXzr=bg}`}C{2=+ z0n!FEgVlnquSd80qW9+hj6h2q_l!Jx-&Xb@zqY+S$YV4aZhMf&`BC#iq1}GtMz$yH?=T=m4-0^N5SaH~^ru)Qre~$y${Cc-Y!ieA@niyvQn}_*PU9PY{ z6#b!5CryG*=qF?Mv)zVJY@nvZS!J0Rua@Qu_AyoT^KxMho3!bszIIMx_mjLzd=t6t zD)A6an{$aO=m|K#jX|S0~0R{kRrAx-=y*YeiMQgKOZLl05##=W`|T^CK(f!0Oh53}}ki?TX*)~v-~O_;MSMawx#;_~)#<^09N zS*~g0Gmb5NCo|@*@BeOQ;$E{^YfMj0K79C4*}Uds_7H=6lXCLa8afnjRqNX`KXDA@ z;?-@3c|5~kJyC%eswP=UeR@iQFf*##lXt5siaCjQp**Z8Lz=aXYxZtcgQ%&}+`fJasDtlKKnC(qU7-;?=|GW2o<|`@jlp8pzcB_q2vs&NvKHcpb zU|duJd@l>_awgvm{{e?r14E#WzO$@B1B=g!ag1!@+vh<&PT*`A3ErUYO?Qm|PoTH+ zUwFZmqLP^!e}%C}yjQz@NmXAU!fVXmcu}bxJMUEM_k;RMwOaNv-M;9dnS(d+Kk_v| zz`KfK{OL@i! Vg>vajL2>-L9C=NS+Y@_2{6AkIpgI5m literal 0 HcmV?d00001 diff --git a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/CustomtargettypeNotificationPayload.php b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/CustomtargettypeNotificationPayload.php new file mode 100644 index 000000000000..fff76df25001 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/CustomtargettypeNotificationPayload.php @@ -0,0 +1,33 @@ +internalAddGeneratedFile( + ' + +Bgoogle/cloud/deploy/v1/customtargettype_notification_payload.protogoogle.cloud.deploy.v1"œ +!CustomTargetTypeNotificationEvent +message (  +custom_target_type_uid (  +custom_target_type ( * +type (2.google.cloud.deploy.v1.TypeB| +com.google.cloud.deploy.v1B(CustomTargetTypeNotificationPayloadProtoPZ2cloud.google.com/go/deploy/apiv1/deploypb;deploypbbproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/DeliverypipelineNotificationPayload.php b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/DeliverypipelineNotificationPayload.php new file mode 100644 index 000000000000..f159037d9297 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/DeliverypipelineNotificationPayload.php @@ -0,0 +1,33 @@ +internalAddGeneratedFile( + ' +ö +Bgoogle/cloud/deploy/v1/deliverypipeline_notification_payload.protogoogle.cloud.deploy.v1"‘ +!DeliveryPipelineNotificationEvent +message (  + pipeline_uid (  +delivery_pipeline ( * +type (2.google.cloud.deploy.v1.TypeB| +com.google.cloud.deploy.v1B(DeliveryPipelineNotificationPayloadProtoPZ2cloud.google.com/go/deploy/apiv1/deploypb;deploypbbproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/DeploypolicyEvaluationPayload.php b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/DeploypolicyEvaluationPayload.php new file mode 100644 index 0000000000000000000000000000000000000000..e6b573ee865a03d5d57af5f9db34fb26acb65a7e GIT binary patch literal 1552 zcmbtUYfsxS6kU0=)PoHom@+0!9w1R9mJ0T*&`q=nC=zQUUK3NK$W7d0Esd?j>C{d9 zoc+ydj-5V$p-m#6l9TIm&ON!gho9ID1Do&!M>s|t2e31Q{02i7Q%-#v!cN-l;u!k0 z&q#=4146S6TkQ*InfApyaWtW6?Bg2jQQ8Y})emVJR0GUHI;;-%@;gRD;txGMKw*kF zp^?YXFr+9jq!0iR>f?kVAHx%;@fmXzAdcJ<$>}yTPS=#2?$zD_0Dg#)1S&*vTVrZR zF@v7~ii@QkAq^8QWPP|r5|2cL6BLpkqT4#`qA>Ed z7!~Q%;mD(t1t!9B?TF(zLZR@R_%UIe#*Qeh)q0qZW6qGuPA;3#kuIz#kG0wZlXb}B z6i=%|7-OEs(Sh`x5!{aN+@flYLosZbh5qoA4%TKQ4oy1AB#DtjMXyjZScDY z4xcgr+ADS1kmF;h@i7K_8^7kk8|BlHBQ*KU)&NIbdkIQna1zwRdI1(HWo-qN<21w` zA2O`ZNN5qvWsp8ApH{&lBMgTm!d^-OeNLjU!Ac;o0gi{>=(RpCUughv6pODX%Zn0w z0g4LKOY*r6N+cT4Z#dQ$1n^>i*Z6xw#&k1=t?hN< zbH)upzjRmdEm(Kjr*`w&yRyzqyLsVVw$2@^X&>8`x%^Dzv~qNM+WumhUgO$RrOO3v z6)c-pOO#BZGaG%dc87hWtGU}?^PWsw=$+Z7^-wP_%nO8!(#zrVOJT2N3Uf1!0azDX z@{xEN8`B?t5_`U^internalAddGeneratedFile( + ' +ë +>google/cloud/deploy/v1/deploypolicy_notification_payload.protogoogle.cloud.deploy.v1"Ž +DeployPolicyNotificationEvent +message (  + deploy_policy (  +deploy_policy_uid ( * +type (2.google.cloud.deploy.v1.TypeBx +com.google.cloud.deploy.v1B$DeployPolicyNotificationPayloadProtoPZ2cloud.google.com/go/deploy/apiv1/deploypb;deploypbbproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/JobrunNotificationPayload.php b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/JobrunNotificationPayload.php new file mode 100644 index 000000000000..a2457623cd07 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/JobrunNotificationPayload.php @@ -0,0 +1,38 @@ +internalAddGeneratedFile( + ' +­ +8google/cloud/deploy/v1/jobrun_notification_payload.protogoogle.cloud.deploy.v1"Ü +JobRunNotificationEvent +message (  +job_run (  + pipeline_uid (  + release_uid (  +release (  + rollout_uid (  +rollout (  + target_id ( * +type (2.google.cloud.deploy.v1.TypeBr +com.google.cloud.deploy.v1BJobRunNotificationPayloadProtoPZ2cloud.google.com/go/deploy/apiv1/deploypb;deploypbbproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/LogEnums.php b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/LogEnums.php new file mode 100644 index 0000000000000000000000000000000000000000..27693e1cb5e534cbe97029b803904d3dee091b36 GIT binary patch literal 995 zcma)5eQVP|9Jbq><3I>;zN|30X>pxsO7*|iDrs`9f!Kt+6e@*qO|M-b&4uJLsM4?D zC-Q@Nxh!Qc1@lji`#sO|d+zu0=}UT@g4b|N5|Uv?mT<9!?3%zdql|_$hKpjgA{h+n zCXHf}DG=%woLC-2y5U`LYEFwRBt5vMbRCmU7}H|eS&}rS+s;k56Vr7-l46r9LK1)k zZ%CfvkifA${6-jFVut5q!Jca+d#(%ieA?{;5XLyqp-I=M6aha07W;wXeU!;Jr0 zQ65A|#3CF=Kll>{aE0TXaPocZsz^c>(FB$RD+x*a3RapWwv|%;Vh*ku)X1?EP= zNS5H3Tg$^NN*T>;4(;{Ugzalr-n6f7)0T443brecz1}^O1IV(1+|3SQMp%(0ec`(l z*zHfk+56AYtq*m%+@~G!zO?til6DDxAA&dk*AV$xg;PZ1l&W#cP514u190SRQzD-N z$(z|I@F%W~G-G5SU3wt502H^jKXm!}_Jw6E%9jHE;P1vsr#97{v48>mCe@wonxd=AcPrso)%(488V$?3ZEP(A}s>u@Ek zBNLUOWBECFQiUwjw0tk{ZJm>(NAd+Y7XcmFrZo#}%QUoEfTpVH3*XX-{A%xaq9aGR z^^sfqJ!l@BG=>;7`8FtjFWc~OJ*r}M?8f&GRbgv5-E`Kp-VdBcd_}67r;C1lSR9L8 a`FOeS>bq)K?#$Ld=Sm=}5!!(r0Dl1Uqc7b6 literal 0 HcmV?d00001 diff --git a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/ReleaseNotificationPayload.php b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/ReleaseNotificationPayload.php new file mode 100644 index 000000000000..1eabbab67893 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/ReleaseNotificationPayload.php @@ -0,0 +1,34 @@ +internalAddGeneratedFile( + ' +æ +9google/cloud/deploy/v1/release_notification_payload.protogoogle.cloud.deploy.v1"“ +ReleaseNotificationEvent +message (  + pipeline_uid (  + release_uid (  +release ( * +type (2.google.cloud.deploy.v1.TypeBs +com.google.cloud.deploy.v1BReleaseNotificationPayloadProtoPZ2cloud.google.com/go/deploy/apiv1/deploypb;deploypbbproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/ReleaseRenderPayload.php b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/ReleaseRenderPayload.php new file mode 100644 index 000000000000..bf80edd2a223 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/ReleaseRenderPayload.php @@ -0,0 +1,35 @@ +internalAddGeneratedFile( + ' +² +3google/cloud/deploy/v1/release_render_payload.protogoogle.cloud.deploy.v1&google/cloud/deploy/v1/log_enums.proto"à +ReleaseRenderEvent +message (  + pipeline_uid (  +release ( * +type (2.google.cloud.deploy.v1.TypeI +release_render_state (2+.google.cloud.deploy.v1.Release.RenderStateBm +com.google.cloud.deploy.v1BReleaseRenderPayloadProtoPZ2cloud.google.com/go/deploy/apiv1/deploypb;deploypbbproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/RolloutNotificationPayload.php b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/RolloutNotificationPayload.php new file mode 100644 index 000000000000..7ea89d9a57da --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/RolloutNotificationPayload.php @@ -0,0 +1,37 @@ +internalAddGeneratedFile( + ' +Ÿ +9google/cloud/deploy/v1/rollout_notification_payload.protogoogle.cloud.deploy.v1"Ì +RolloutNotificationEvent +message (  + pipeline_uid (  + release_uid (  +release (  + rollout_uid (  +rollout (  + target_id ( * +type (2.google.cloud.deploy.v1.TypeBs +com.google.cloud.deploy.v1BRolloutNotificationPayloadProtoPZ2cloud.google.com/go/deploy/apiv1/deploypb;deploypbbproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/RolloutUpdatePayload.php b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/RolloutUpdatePayload.php new file mode 100644 index 0000000000000000000000000000000000000000..beba3f9c57a26ef6a48401370571048c5376dc79 GIT binary patch literal 1368 zcmbVMZ%@-e7b^{qj%`_&SK*BKE1$Z|=Q`TeF)UECh31&%iYj2}T*SoY=l4*GF zH}Ko}S-f7i0ZwA#-t3-VpXc}de@;HID+YF8g9IeRoVai>f&7X<7E(?f>cc@i9Fh<^ zbj&=Tgeru33pQI_h;*a-T9`&O4jod1BT7d;sX9K5-KtBNPbbyugK9{9fp9x!uHd&B zp7<2Is^kYCz+)0I>=4+n&OQ^4g%a*JBvrqjQ1x|5)xS762Eg%g6v1{%*^`V`N(jCK zD1Iy+_?`nJj=A{T^&;B~JnmuN`zCTbg+uH|L=Y|N4&%V#9t~h(&7OIw0!x!S>HAQ0{dUU6X(-8z3)6Bf=w6&cRHjpgaL<%wxp& z0%FIWTh2&y3lu}*6C9=Bk_3hA6fCdKfplof%M#cG1&%|}BU>jUPzA* zU#fo(SM3TN`810k7IE(`@y+cF)qaF0#9q z7P5QIj)m&RxqpYhX2ng#;3*jXt4z!d4XBENS{h;`-KNO@mp6n{>1{pZB-vBHr2C2X|I#rYm&= HZUFcVSbUx$ literal 0 HcmV?d00001 diff --git a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/TargetNotificationPayload.php b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/TargetNotificationPayload.php new file mode 100644 index 000000000000..712c49b2d540 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/TargetNotificationPayload.php @@ -0,0 +1,32 @@ +internalAddGeneratedFile( + ' +¶ +8google/cloud/deploy/v1/target_notification_payload.protogoogle.cloud.deploy.v1"f +TargetNotificationEvent +message (  +target ( * +type (2.google.cloud.deploy.v1.TypeBr +com.google.cloud.deploy.v1BTargetNotificationPayloadProtoPZ2cloud.google.com/go/deploy/apiv1/deploypb;deploypbbproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AbandonReleaseRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AbandonReleaseRequest.php new file mode 100644 index 000000000000..0b9a4e24b06f --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AbandonReleaseRequest.php @@ -0,0 +1,86 @@ +google.cloud.deploy.v1.AbandonReleaseRequest + */ +class AbandonReleaseRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the Release. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Name of the Release. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`. Please see + * {@see CloudDeployClient::releaseName()} for help formatting this field. + * + * @return \Google\Cloud\Deploy\V1\AbandonReleaseRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Name of the Release. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the Release. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Name of the Release. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AbandonReleaseResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AbandonReleaseResponse.php new file mode 100644 index 000000000000..0c9a99c6c1de --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AbandonReleaseResponse.php @@ -0,0 +1,33 @@ +google.cloud.deploy.v1.AbandonReleaseResponse + */ +class AbandonReleaseResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceChildRolloutJob.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceChildRolloutJob.php new file mode 100644 index 000000000000..aecd9a83cdcf --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceChildRolloutJob.php @@ -0,0 +1,33 @@ +google.cloud.deploy.v1.AdvanceChildRolloutJob + */ +class AdvanceChildRolloutJob extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceChildRolloutJobRun.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceChildRolloutJobRun.php new file mode 100644 index 000000000000..b864bc78b9ed --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceChildRolloutJobRun.php @@ -0,0 +1,106 @@ +google.cloud.deploy.v1.AdvanceChildRolloutJobRun + */ +class AdvanceChildRolloutJobRun extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Name of the `ChildRollout`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. + * + * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $rollout = ''; + /** + * Output only. the ID of the ChildRollout's Phase. + * + * Generated from protobuf field string rollout_phase_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $rollout_phase_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $rollout + * Output only. Name of the `ChildRollout`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. + * @type string $rollout_phase_id + * Output only. the ID of the ChildRollout's Phase. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Name of the `ChildRollout`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. + * + * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getRollout() + { + return $this->rollout; + } + + /** + * Output only. Name of the `ChildRollout`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. + * + * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setRollout($var) + { + GPBUtil::checkString($var, True); + $this->rollout = $var; + + return $this; + } + + /** + * Output only. the ID of the ChildRollout's Phase. + * + * Generated from protobuf field string rollout_phase_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getRolloutPhaseId() + { + return $this->rollout_phase_id; + } + + /** + * Output only. the ID of the ChildRollout's Phase. + * + * Generated from protobuf field string rollout_phase_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setRolloutPhaseId($var) + { + GPBUtil::checkString($var, True); + $this->rollout_phase_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutOperation.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutOperation.php new file mode 100644 index 000000000000..8c8cd04062da --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutOperation.php @@ -0,0 +1,179 @@ +google.cloud.deploy.v1.AdvanceRolloutOperation + */ +class AdvanceRolloutOperation extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The phase of a deployment that initiated the operation. + * + * Generated from protobuf field string source_phase = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $source_phase = ''; + /** + * Output only. How long the operation will be paused. + * + * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $wait = null; + /** + * Output only. The name of the rollout that initiates the `AutomationRun`. + * + * Generated from protobuf field string rollout = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $rollout = ''; + /** + * Output only. The phase the rollout will be advanced to. + * + * Generated from protobuf field string destination_phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $destination_phase = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $source_phase + * Output only. The phase of a deployment that initiated the operation. + * @type \Google\Protobuf\Duration $wait + * Output only. How long the operation will be paused. + * @type string $rollout + * Output only. The name of the rollout that initiates the `AutomationRun`. + * @type string $destination_phase + * Output only. The phase the rollout will be advanced to. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The phase of a deployment that initiated the operation. + * + * Generated from protobuf field string source_phase = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getSourcePhase() + { + return $this->source_phase; + } + + /** + * Output only. The phase of a deployment that initiated the operation. + * + * Generated from protobuf field string source_phase = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setSourcePhase($var) + { + GPBUtil::checkString($var, True); + $this->source_phase = $var; + + return $this; + } + + /** + * Output only. How long the operation will be paused. + * + * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Duration|null + */ + public function getWait() + { + return $this->wait; + } + + public function hasWait() + { + return isset($this->wait); + } + + public function clearWait() + { + unset($this->wait); + } + + /** + * Output only. How long the operation will be paused. + * + * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setWait($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->wait = $var; + + return $this; + } + + /** + * Output only. The name of the rollout that initiates the `AutomationRun`. + * + * Generated from protobuf field string rollout = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getRollout() + { + return $this->rollout; + } + + /** + * Output only. The name of the rollout that initiates the `AutomationRun`. + * + * Generated from protobuf field string rollout = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setRollout($var) + { + GPBUtil::checkString($var, True); + $this->rollout = $var; + + return $this; + } + + /** + * Output only. The phase the rollout will be advanced to. + * + * Generated from protobuf field string destination_phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDestinationPhase() + { + return $this->destination_phase; + } + + /** + * Output only. The phase the rollout will be advanced to. + * + * Generated from protobuf field string destination_phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDestinationPhase($var) + { + GPBUtil::checkString($var, True); + $this->destination_phase = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutRequest.php new file mode 100644 index 000000000000..dd584135c39b --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutRequest.php @@ -0,0 +1,160 @@ +google.cloud.deploy.v1.AdvanceRolloutRequest + */ +class AdvanceRolloutRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the Rollout. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. The phase ID to advance the `Rollout` to. + * + * Generated from protobuf field string phase_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $phase_id = ''; + /** + * Optional. Deploy policies to override. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. + * + * Generated from protobuf field repeated string override_deploy_policy = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $override_deploy_policy; + + /** + * @param string $name Required. Name of the Rollout. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. Please see + * {@see CloudDeployClient::rolloutName()} for help formatting this field. + * @param string $phaseId Required. The phase ID to advance the `Rollout` to. + * + * @return \Google\Cloud\Deploy\V1\AdvanceRolloutRequest + * + * @experimental + */ + public static function build(string $name, string $phaseId): self + { + return (new self()) + ->setName($name) + ->setPhaseId($phaseId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Name of the Rollout. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. + * @type string $phase_id + * Required. The phase ID to advance the `Rollout` to. + * @type array|\Google\Protobuf\Internal\RepeatedField $override_deploy_policy + * Optional. Deploy policies to override. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the Rollout. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Name of the Rollout. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The phase ID to advance the `Rollout` to. + * + * Generated from protobuf field string phase_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getPhaseId() + { + return $this->phase_id; + } + + /** + * Required. The phase ID to advance the `Rollout` to. + * + * Generated from protobuf field string phase_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setPhaseId($var) + { + GPBUtil::checkString($var, True); + $this->phase_id = $var; + + return $this; + } + + /** + * Optional. Deploy policies to override. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. + * + * Generated from protobuf field repeated string override_deploy_policy = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOverrideDeployPolicy() + { + return $this->override_deploy_policy; + } + + /** + * Optional. Deploy policies to override. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. + * + * Generated from protobuf field repeated string override_deploy_policy = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOverrideDeployPolicy($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->override_deploy_policy = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutResponse.php new file mode 100644 index 000000000000..14f85ee02712 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutResponse.php @@ -0,0 +1,33 @@ +google.cloud.deploy.v1.AdvanceRolloutResponse + */ +class AdvanceRolloutResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutRule.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutRule.php new file mode 100644 index 000000000000..798428be12f8 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutRule.php @@ -0,0 +1,214 @@ +google.cloud.deploy.v1.AdvanceRolloutRule + */ +class AdvanceRolloutRule extends \Google\Protobuf\Internal\Message +{ + /** + * Required. ID of the rule. This id must be unique in the `Automation` + * resource to which this rule belongs. The format is + * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $id = ''; + /** + * Optional. Proceeds only after phase name matched any one in the list. + * This value must consist of lower-case letters, numbers, and hyphens, + * start with a letter and end with a letter or a number, and have a max + * length of 63 characters. In other words, it must match the following + * regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * + * Generated from protobuf field repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $source_phases; + /** + * Optional. How long to wait after a rollout is finished. + * + * Generated from protobuf field .google.protobuf.Duration wait = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $wait = null; + /** + * Output only. Information around the state of the Automation rule. + * + * Generated from protobuf field .google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $condition = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * Required. ID of the rule. This id must be unique in the `Automation` + * resource to which this rule belongs. The format is + * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. + * @type array|\Google\Protobuf\Internal\RepeatedField $source_phases + * Optional. Proceeds only after phase name matched any one in the list. + * This value must consist of lower-case letters, numbers, and hyphens, + * start with a letter and end with a letter or a number, and have a max + * length of 63 characters. In other words, it must match the following + * regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * @type \Google\Protobuf\Duration $wait + * Optional. How long to wait after a rollout is finished. + * @type \Google\Cloud\Deploy\V1\AutomationRuleCondition $condition + * Output only. Information around the state of the Automation rule. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. ID of the rule. This id must be unique in the `Automation` + * resource to which this rule belongs. The format is + * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * Required. ID of the rule. This id must be unique in the `Automation` + * resource to which this rule belongs. The format is + * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * Optional. Proceeds only after phase name matched any one in the list. + * This value must consist of lower-case letters, numbers, and hyphens, + * start with a letter and end with a letter or a number, and have a max + * length of 63 characters. In other words, it must match the following + * regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * + * Generated from protobuf field repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSourcePhases() + { + return $this->source_phases; + } + + /** + * Optional. Proceeds only after phase name matched any one in the list. + * This value must consist of lower-case letters, numbers, and hyphens, + * start with a letter and end with a letter or a number, and have a max + * length of 63 characters. In other words, it must match the following + * regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * + * Generated from protobuf field repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSourcePhases($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->source_phases = $arr; + + return $this; + } + + /** + * Optional. How long to wait after a rollout is finished. + * + * Generated from protobuf field .google.protobuf.Duration wait = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Duration|null + */ + public function getWait() + { + return $this->wait; + } + + public function hasWait() + { + return isset($this->wait); + } + + public function clearWait() + { + unset($this->wait); + } + + /** + * Optional. How long to wait after a rollout is finished. + * + * Generated from protobuf field .google.protobuf.Duration wait = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setWait($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->wait = $var; + + return $this; + } + + /** + * Output only. Information around the state of the Automation rule. + * + * Generated from protobuf field .google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\AutomationRuleCondition|null + */ + public function getCondition() + { + return $this->condition; + } + + public function hasCondition() + { + return isset($this->condition); + } + + public function clearCondition() + { + unset($this->condition); + } + + /** + * Output only. Information around the state of the Automation rule. + * + * Generated from protobuf field .google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\AutomationRuleCondition $var + * @return $this + */ + public function setCondition($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\AutomationRuleCondition::class); + $this->condition = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AnthosCluster.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AnthosCluster.php new file mode 100644 index 000000000000..4a94f019e63a --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AnthosCluster.php @@ -0,0 +1,75 @@ +google.cloud.deploy.v1.AnthosCluster + */ +class AnthosCluster extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Membership of the GKE Hub-registered cluster to which to apply + * the Skaffold configuration. Format is + * `projects/{project}/locations/{location}/memberships/{membership_name}`. + * + * Generated from protobuf field string membership = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $membership = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $membership + * Optional. Membership of the GKE Hub-registered cluster to which to apply + * the Skaffold configuration. Format is + * `projects/{project}/locations/{location}/memberships/{membership_name}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Membership of the GKE Hub-registered cluster to which to apply + * the Skaffold configuration. Format is + * `projects/{project}/locations/{location}/memberships/{membership_name}`. + * + * Generated from protobuf field string membership = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getMembership() + { + return $this->membership; + } + + /** + * Optional. Membership of the GKE Hub-registered cluster to which to apply + * the Skaffold configuration. Format is + * `projects/{project}/locations/{location}/memberships/{membership_name}`. + * + * Generated from protobuf field string membership = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setMembership($var) + { + GPBUtil::checkString($var, True); + $this->membership = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ApproveRolloutRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ApproveRolloutRequest.php new file mode 100644 index 000000000000..c0e44d90c61f --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ApproveRolloutRequest.php @@ -0,0 +1,158 @@ +google.cloud.deploy.v1.ApproveRolloutRequest + */ +class ApproveRolloutRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the Rollout. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. True = approve; false = reject + * + * Generated from protobuf field bool approved = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $approved = false; + /** + * Optional. Deploy policies to override. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. + * + * Generated from protobuf field repeated string override_deploy_policy = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $override_deploy_policy; + + /** + * @param string $name Required. Name of the Rollout. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. Please see + * {@see CloudDeployClient::rolloutName()} for help formatting this field. + * + * @return \Google\Cloud\Deploy\V1\ApproveRolloutRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Name of the Rollout. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. + * @type bool $approved + * Required. True = approve; false = reject + * @type array|\Google\Protobuf\Internal\RepeatedField $override_deploy_policy + * Optional. Deploy policies to override. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the Rollout. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Name of the Rollout. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. True = approve; false = reject + * + * Generated from protobuf field bool approved = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return bool + */ + public function getApproved() + { + return $this->approved; + } + + /** + * Required. True = approve; false = reject + * + * Generated from protobuf field bool approved = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param bool $var + * @return $this + */ + public function setApproved($var) + { + GPBUtil::checkBool($var); + $this->approved = $var; + + return $this; + } + + /** + * Optional. Deploy policies to override. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. + * + * Generated from protobuf field repeated string override_deploy_policy = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOverrideDeployPolicy() + { + return $this->override_deploy_policy; + } + + /** + * Optional. Deploy policies to override. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. + * + * Generated from protobuf field repeated string override_deploy_policy = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOverrideDeployPolicy($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->override_deploy_policy = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ApproveRolloutResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ApproveRolloutResponse.php new file mode 100644 index 000000000000..afac40c7146c --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ApproveRolloutResponse.php @@ -0,0 +1,33 @@ +google.cloud.deploy.v1.ApproveRolloutResponse + */ +class ApproveRolloutResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AssociatedEntities.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AssociatedEntities.php new file mode 100644 index 000000000000..3a6e382e89e5 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AssociatedEntities.php @@ -0,0 +1,101 @@ +google.cloud.deploy.v1.AssociatedEntities + */ +class AssociatedEntities extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Information specifying GKE clusters as associated entities. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.GkeCluster gke_clusters = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $gke_clusters; + /** + * Optional. Information specifying Anthos clusters as associated entities. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.AnthosCluster anthos_clusters = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $anthos_clusters; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\Deploy\V1\GkeCluster>|\Google\Protobuf\Internal\RepeatedField $gke_clusters + * Optional. Information specifying GKE clusters as associated entities. + * @type array<\Google\Cloud\Deploy\V1\AnthosCluster>|\Google\Protobuf\Internal\RepeatedField $anthos_clusters + * Optional. Information specifying Anthos clusters as associated entities. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Information specifying GKE clusters as associated entities. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.GkeCluster gke_clusters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getGkeClusters() + { + return $this->gke_clusters; + } + + /** + * Optional. Information specifying GKE clusters as associated entities. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.GkeCluster gke_clusters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Cloud\Deploy\V1\GkeCluster>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setGkeClusters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\GkeCluster::class); + $this->gke_clusters = $arr; + + return $this; + } + + /** + * Optional. Information specifying Anthos clusters as associated entities. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.AnthosCluster anthos_clusters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAnthosClusters() + { + return $this->anthos_clusters; + } + + /** + * Optional. Information specifying Anthos clusters as associated entities. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.AnthosCluster anthos_clusters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Cloud\Deploy\V1\AnthosCluster>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAnthosClusters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\AnthosCluster::class); + $this->anthos_clusters = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Automation.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Automation.php new file mode 100644 index 000000000000..443645ba2bbd --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Automation.php @@ -0,0 +1,596 @@ +google.cloud.deploy.v1.Automation + */ +class Automation extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Name of the `Automation`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automations/{automation}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Output only. Unique identifier of the `Automation`. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $uid = ''; + /** + * Optional. Description of the `Automation`. Max length is 255 characters. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Output only. Time at which the automation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Time at which the automation was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. User annotations. These attributes can only be set and used by + * the user, and not by Cloud Deploy. Annotations must meet the following + * constraints: + * * Annotations are key/value pairs. + * * Valid annotation keys have two segments: an optional prefix and name, + * separated by a slash (`/`). + * * The name segment is required and must be 63 characters or less, + * beginning and ending with an alphanumeric character (`[a-z0-9A-Z]`) with + * dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between. + * * The prefix is optional. If specified, the prefix must be a DNS subdomain: + * a series of DNS labels separated by dots(`.`), not longer than 253 + * characters in total, followed by a slash (`/`). + * See + * https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set + * for more details. + * + * Generated from protobuf field map annotations = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $annotations; + /** + * Optional. Labels are attributes that can be set and used by both the + * user and by Cloud Deploy. Labels must meet the following constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 63 characters. + * + * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Optional. The weak etag of the `Automation` resource. + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + /** + * Optional. When Suspended, automation is deactivated from execution. + * + * Generated from protobuf field bool suspended = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $suspended = false; + /** + * Required. Email address of the user-managed IAM service account that + * creates Cloud Deploy release and rollout resources. + * + * Generated from protobuf field string service_account = 10 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $service_account = ''; + /** + * Required. Selected resources to which the automation will be applied. + * + * Generated from protobuf field .google.cloud.deploy.v1.AutomationResourceSelector selector = 11 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $selector = null; + /** + * Required. List of Automation rules associated with the Automation resource. + * Must have at least one rule and limited to 250 rules per Delivery Pipeline. + * Note: the order of the rules here is not the same as the order of + * execution. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.AutomationRule rules = 14 [(.google.api.field_behavior) = REQUIRED]; + */ + private $rules; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Name of the `Automation`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automations/{automation}`. + * @type string $uid + * Output only. Unique identifier of the `Automation`. + * @type string $description + * Optional. Description of the `Automation`. Max length is 255 characters. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time at which the automation was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Time at which the automation was updated. + * @type array|\Google\Protobuf\Internal\MapField $annotations + * Optional. User annotations. These attributes can only be set and used by + * the user, and not by Cloud Deploy. Annotations must meet the following + * constraints: + * * Annotations are key/value pairs. + * * Valid annotation keys have two segments: an optional prefix and name, + * separated by a slash (`/`). + * * The name segment is required and must be 63 characters or less, + * beginning and ending with an alphanumeric character (`[a-z0-9A-Z]`) with + * dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between. + * * The prefix is optional. If specified, the prefix must be a DNS subdomain: + * a series of DNS labels separated by dots(`.`), not longer than 253 + * characters in total, followed by a slash (`/`). + * See + * https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set + * for more details. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. Labels are attributes that can be set and used by both the + * user and by Cloud Deploy. Labels must meet the following constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 63 characters. + * @type string $etag + * Optional. The weak etag of the `Automation` resource. + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * @type bool $suspended + * Optional. When Suspended, automation is deactivated from execution. + * @type string $service_account + * Required. Email address of the user-managed IAM service account that + * creates Cloud Deploy release and rollout resources. + * @type \Google\Cloud\Deploy\V1\AutomationResourceSelector $selector + * Required. Selected resources to which the automation will be applied. + * @type array<\Google\Cloud\Deploy\V1\AutomationRule>|\Google\Protobuf\Internal\RepeatedField $rules + * Required. List of Automation rules associated with the Automation resource. + * Must have at least one rule and limited to 250 rules per Delivery Pipeline. + * Note: the order of the rules here is not the same as the order of + * execution. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Name of the `Automation`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automations/{automation}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Name of the `Automation`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automations/{automation}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. Unique identifier of the `Automation`. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. Unique identifier of the `Automation`. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Optional. Description of the `Automation`. Max length is 255 characters. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description of the `Automation`. Max length is 255 characters. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Output only. Time at which the automation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Time at which the automation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Time at which the automation was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Time at which the automation was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Optional. User annotations. These attributes can only be set and used by + * the user, and not by Cloud Deploy. Annotations must meet the following + * constraints: + * * Annotations are key/value pairs. + * * Valid annotation keys have two segments: an optional prefix and name, + * separated by a slash (`/`). + * * The name segment is required and must be 63 characters or less, + * beginning and ending with an alphanumeric character (`[a-z0-9A-Z]`) with + * dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between. + * * The prefix is optional. If specified, the prefix must be a DNS subdomain: + * a series of DNS labels separated by dots(`.`), not longer than 253 + * characters in total, followed by a slash (`/`). + * See + * https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set + * for more details. + * + * Generated from protobuf field map annotations = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getAnnotations() + { + return $this->annotations; + } + + /** + * Optional. User annotations. These attributes can only be set and used by + * the user, and not by Cloud Deploy. Annotations must meet the following + * constraints: + * * Annotations are key/value pairs. + * * Valid annotation keys have two segments: an optional prefix and name, + * separated by a slash (`/`). + * * The name segment is required and must be 63 characters or less, + * beginning and ending with an alphanumeric character (`[a-z0-9A-Z]`) with + * dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between. + * * The prefix is optional. If specified, the prefix must be a DNS subdomain: + * a series of DNS labels separated by dots(`.`), not longer than 253 + * characters in total, followed by a slash (`/`). + * See + * https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set + * for more details. + * + * Generated from protobuf field map annotations = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setAnnotations($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->annotations = $arr; + + return $this; + } + + /** + * Optional. Labels are attributes that can be set and used by both the + * user and by Cloud Deploy. Labels must meet the following constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 63 characters. + * + * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. Labels are attributes that can be set and used by both the + * user and by Cloud Deploy. Labels must meet the following constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 63 characters. + * + * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Optional. The weak etag of the `Automation` resource. + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. The weak etag of the `Automation` resource. + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Optional. When Suspended, automation is deactivated from execution. + * + * Generated from protobuf field bool suspended = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getSuspended() + { + return $this->suspended; + } + + /** + * Optional. When Suspended, automation is deactivated from execution. + * + * Generated from protobuf field bool suspended = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setSuspended($var) + { + GPBUtil::checkBool($var); + $this->suspended = $var; + + return $this; + } + + /** + * Required. Email address of the user-managed IAM service account that + * creates Cloud Deploy release and rollout resources. + * + * Generated from protobuf field string service_account = 10 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getServiceAccount() + { + return $this->service_account; + } + + /** + * Required. Email address of the user-managed IAM service account that + * creates Cloud Deploy release and rollout resources. + * + * Generated from protobuf field string service_account = 10 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setServiceAccount($var) + { + GPBUtil::checkString($var, True); + $this->service_account = $var; + + return $this; + } + + /** + * Required. Selected resources to which the automation will be applied. + * + * Generated from protobuf field .google.cloud.deploy.v1.AutomationResourceSelector selector = 11 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Deploy\V1\AutomationResourceSelector|null + */ + public function getSelector() + { + return $this->selector; + } + + public function hasSelector() + { + return isset($this->selector); + } + + public function clearSelector() + { + unset($this->selector); + } + + /** + * Required. Selected resources to which the automation will be applied. + * + * Generated from protobuf field .google.cloud.deploy.v1.AutomationResourceSelector selector = 11 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Deploy\V1\AutomationResourceSelector $var + * @return $this + */ + public function setSelector($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\AutomationResourceSelector::class); + $this->selector = $var; + + return $this; + } + + /** + * Required. List of Automation rules associated with the Automation resource. + * Must have at least one rule and limited to 250 rules per Delivery Pipeline. + * Note: the order of the rules here is not the same as the order of + * execution. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.AutomationRule rules = 14 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRules() + { + return $this->rules; + } + + /** + * Required. List of Automation rules associated with the Automation resource. + * Must have at least one rule and limited to 250 rules per Delivery Pipeline. + * Note: the order of the rules here is not the same as the order of + * execution. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.AutomationRule rules = 14 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Cloud\Deploy\V1\AutomationRule>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\AutomationRule::class); + $this->rules = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationEvent.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationEvent.php new file mode 100644 index 000000000000..b12f4851332d --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationEvent.php @@ -0,0 +1,174 @@ +google.cloud.deploy.v1.AutomationEvent + */ +class AutomationEvent extends \Google\Protobuf\Internal\Message +{ + /** + * Debug message for when there is an update on the AutomationRun. + * Provides further details about the resource creation or state change. + * + * Generated from protobuf field string message = 1; + */ + protected $message = ''; + /** + * The name of the `AutomationRun`. + * + * Generated from protobuf field string automation = 2; + */ + protected $automation = ''; + /** + * Unique identifier of the `DeliveryPipeline`. + * + * Generated from protobuf field string pipeline_uid = 3; + */ + protected $pipeline_uid = ''; + /** + * Type of this notification, e.g. for a Pub/Sub failure. + * + * Generated from protobuf field .google.cloud.deploy.v1.Type type = 4; + */ + protected $type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $message + * Debug message for when there is an update on the AutomationRun. + * Provides further details about the resource creation or state change. + * @type string $automation + * The name of the `AutomationRun`. + * @type string $pipeline_uid + * Unique identifier of the `DeliveryPipeline`. + * @type int $type + * Type of this notification, e.g. for a Pub/Sub failure. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\AutomationPayload::initOnce(); + parent::__construct($data); + } + + /** + * Debug message for when there is an update on the AutomationRun. + * Provides further details about the resource creation or state change. + * + * Generated from protobuf field string message = 1; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Debug message for when there is an update on the AutomationRun. + * Provides further details about the resource creation or state change. + * + * Generated from protobuf field string message = 1; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + + /** + * The name of the `AutomationRun`. + * + * Generated from protobuf field string automation = 2; + * @return string + */ + public function getAutomation() + { + return $this->automation; + } + + /** + * The name of the `AutomationRun`. + * + * Generated from protobuf field string automation = 2; + * @param string $var + * @return $this + */ + public function setAutomation($var) + { + GPBUtil::checkString($var, True); + $this->automation = $var; + + return $this; + } + + /** + * Unique identifier of the `DeliveryPipeline`. + * + * Generated from protobuf field string pipeline_uid = 3; + * @return string + */ + public function getPipelineUid() + { + return $this->pipeline_uid; + } + + /** + * Unique identifier of the `DeliveryPipeline`. + * + * Generated from protobuf field string pipeline_uid = 3; + * @param string $var + * @return $this + */ + public function setPipelineUid($var) + { + GPBUtil::checkString($var, True); + $this->pipeline_uid = $var; + + return $this; + } + + /** + * Type of this notification, e.g. for a Pub/Sub failure. + * + * Generated from protobuf field .google.cloud.deploy.v1.Type type = 4; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Type of this notification, e.g. for a Pub/Sub failure. + * + * Generated from protobuf field .google.cloud.deploy.v1.Type type = 4; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Type::class); + $this->type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationResourceSelector.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationResourceSelector.php new file mode 100644 index 000000000000..dc60ab39a0d9 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationResourceSelector.php @@ -0,0 +1,68 @@ +google.cloud.deploy.v1.AutomationResourceSelector + */ +class AutomationResourceSelector extends \Google\Protobuf\Internal\Message +{ + /** + * Contains attributes about a target. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.TargetAttribute targets = 1; + */ + private $targets; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\Deploy\V1\TargetAttribute>|\Google\Protobuf\Internal\RepeatedField $targets + * Contains attributes about a target. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Contains attributes about a target. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.TargetAttribute targets = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTargets() + { + return $this->targets; + } + + /** + * Contains attributes about a target. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.TargetAttribute targets = 1; + * @param array<\Google\Cloud\Deploy\V1\TargetAttribute>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTargets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\TargetAttribute::class); + $this->targets = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRolloutMetadata.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRolloutMetadata.php new file mode 100644 index 000000000000..fd48e1a5b7f9 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRolloutMetadata.php @@ -0,0 +1,148 @@ +google.cloud.deploy.v1.AutomationRolloutMetadata + */ +class AutomationRolloutMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The name of the AutomationRun initiated by a promote release + * rule. + * + * Generated from protobuf field string promote_automation_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $promote_automation_run = ''; + /** + * Output only. The names of the AutomationRuns initiated by an advance + * rollout rule. + * + * Generated from protobuf field repeated string advance_automation_runs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $advance_automation_runs; + /** + * Output only. The names of the AutomationRuns initiated by a repair rollout + * rule. + * + * Generated from protobuf field repeated string repair_automation_runs = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $repair_automation_runs; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $promote_automation_run + * Output only. The name of the AutomationRun initiated by a promote release + * rule. + * @type array|\Google\Protobuf\Internal\RepeatedField $advance_automation_runs + * Output only. The names of the AutomationRuns initiated by an advance + * rollout rule. + * @type array|\Google\Protobuf\Internal\RepeatedField $repair_automation_runs + * Output only. The names of the AutomationRuns initiated by a repair rollout + * rule. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The name of the AutomationRun initiated by a promote release + * rule. + * + * Generated from protobuf field string promote_automation_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getPromoteAutomationRun() + { + return $this->promote_automation_run; + } + + /** + * Output only. The name of the AutomationRun initiated by a promote release + * rule. + * + * Generated from protobuf field string promote_automation_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setPromoteAutomationRun($var) + { + GPBUtil::checkString($var, True); + $this->promote_automation_run = $var; + + return $this; + } + + /** + * Output only. The names of the AutomationRuns initiated by an advance + * rollout rule. + * + * Generated from protobuf field repeated string advance_automation_runs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAdvanceAutomationRuns() + { + return $this->advance_automation_runs; + } + + /** + * Output only. The names of the AutomationRuns initiated by an advance + * rollout rule. + * + * Generated from protobuf field repeated string advance_automation_runs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAdvanceAutomationRuns($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->advance_automation_runs = $arr; + + return $this; + } + + /** + * Output only. The names of the AutomationRuns initiated by a repair rollout + * rule. + * + * Generated from protobuf field repeated string repair_automation_runs = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRepairAutomationRuns() + { + return $this->repair_automation_runs; + } + + /** + * Output only. The names of the AutomationRuns initiated by a repair rollout + * rule. + * + * Generated from protobuf field repeated string repair_automation_runs = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRepairAutomationRuns($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->repair_automation_runs = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRule.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRule.php new file mode 100644 index 000000000000..190c5c4bf4da --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRule.php @@ -0,0 +1,189 @@ +google.cloud.deploy.v1.AutomationRule + */ +class AutomationRule extends \Google\Protobuf\Internal\Message +{ + protected $rule; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Deploy\V1\PromoteReleaseRule $promote_release_rule + * Optional. `PromoteReleaseRule` will automatically promote a release from + * the current target to a specified target. + * @type \Google\Cloud\Deploy\V1\AdvanceRolloutRule $advance_rollout_rule + * Optional. The `AdvanceRolloutRule` will automatically advance a + * successful Rollout. + * @type \Google\Cloud\Deploy\V1\RepairRolloutRule $repair_rollout_rule + * Optional. The `RepairRolloutRule` will automatically repair a failed + * rollout. + * @type \Google\Cloud\Deploy\V1\TimedPromoteReleaseRule $timed_promote_release_rule + * Optional. The `TimedPromoteReleaseRule` will automatically promote a + * release from the current target(s) to the specified target(s) on a + * configured schedule. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Optional. `PromoteReleaseRule` will automatically promote a release from + * the current target to a specified target. + * + * Generated from protobuf field .google.cloud.deploy.v1.PromoteReleaseRule promote_release_rule = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Deploy\V1\PromoteReleaseRule|null + */ + public function getPromoteReleaseRule() + { + return $this->readOneof(1); + } + + public function hasPromoteReleaseRule() + { + return $this->hasOneof(1); + } + + /** + * Optional. `PromoteReleaseRule` will automatically promote a release from + * the current target to a specified target. + * + * Generated from protobuf field .google.cloud.deploy.v1.PromoteReleaseRule promote_release_rule = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Deploy\V1\PromoteReleaseRule $var + * @return $this + */ + public function setPromoteReleaseRule($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\PromoteReleaseRule::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Optional. The `AdvanceRolloutRule` will automatically advance a + * successful Rollout. + * + * Generated from protobuf field .google.cloud.deploy.v1.AdvanceRolloutRule advance_rollout_rule = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Deploy\V1\AdvanceRolloutRule|null + */ + public function getAdvanceRolloutRule() + { + return $this->readOneof(2); + } + + public function hasAdvanceRolloutRule() + { + return $this->hasOneof(2); + } + + /** + * Optional. The `AdvanceRolloutRule` will automatically advance a + * successful Rollout. + * + * Generated from protobuf field .google.cloud.deploy.v1.AdvanceRolloutRule advance_rollout_rule = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Deploy\V1\AdvanceRolloutRule $var + * @return $this + */ + public function setAdvanceRolloutRule($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\AdvanceRolloutRule::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Optional. The `RepairRolloutRule` will automatically repair a failed + * rollout. + * + * Generated from protobuf field .google.cloud.deploy.v1.RepairRolloutRule repair_rollout_rule = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Deploy\V1\RepairRolloutRule|null + */ + public function getRepairRolloutRule() + { + return $this->readOneof(3); + } + + public function hasRepairRolloutRule() + { + return $this->hasOneof(3); + } + + /** + * Optional. The `RepairRolloutRule` will automatically repair a failed + * rollout. + * + * Generated from protobuf field .google.cloud.deploy.v1.RepairRolloutRule repair_rollout_rule = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Deploy\V1\RepairRolloutRule $var + * @return $this + */ + public function setRepairRolloutRule($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\RepairRolloutRule::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Optional. The `TimedPromoteReleaseRule` will automatically promote a + * release from the current target(s) to the specified target(s) on a + * configured schedule. + * + * Generated from protobuf field .google.cloud.deploy.v1.TimedPromoteReleaseRule timed_promote_release_rule = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Deploy\V1\TimedPromoteReleaseRule|null + */ + public function getTimedPromoteReleaseRule() + { + return $this->readOneof(4); + } + + public function hasTimedPromoteReleaseRule() + { + return $this->hasOneof(4); + } + + /** + * Optional. The `TimedPromoteReleaseRule` will automatically promote a + * release from the current target(s) to the specified target(s) on a + * configured schedule. + * + * Generated from protobuf field .google.cloud.deploy.v1.TimedPromoteReleaseRule timed_promote_release_rule = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Deploy\V1\TimedPromoteReleaseRule $var + * @return $this + */ + public function setTimedPromoteReleaseRule($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\TimedPromoteReleaseRule::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * @return string + */ + public function getRule() + { + return $this->whichOneof("rule"); + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRuleCondition.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRuleCondition.php new file mode 100644 index 000000000000..7cb60714697b --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRuleCondition.php @@ -0,0 +1,123 @@ +google.cloud.deploy.v1.AutomationRuleCondition + */ +class AutomationRuleCondition extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Details around targets enumerated in the rule. + * + * Generated from protobuf field .google.cloud.deploy.v1.TargetsPresentCondition targets_present_condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $targets_present_condition = null; + protected $rule_type_condition; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Deploy\V1\TargetsPresentCondition $targets_present_condition + * Optional. Details around targets enumerated in the rule. + * @type \Google\Cloud\Deploy\V1\TimedPromoteReleaseCondition $timed_promote_release_condition + * Optional. TimedPromoteReleaseCondition contains rule conditions specific + * to a an Automation with a timed promote release rule defined. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Details around targets enumerated in the rule. + * + * Generated from protobuf field .google.cloud.deploy.v1.TargetsPresentCondition targets_present_condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Deploy\V1\TargetsPresentCondition|null + */ + public function getTargetsPresentCondition() + { + return $this->targets_present_condition; + } + + public function hasTargetsPresentCondition() + { + return isset($this->targets_present_condition); + } + + public function clearTargetsPresentCondition() + { + unset($this->targets_present_condition); + } + + /** + * Optional. Details around targets enumerated in the rule. + * + * Generated from protobuf field .google.cloud.deploy.v1.TargetsPresentCondition targets_present_condition = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Deploy\V1\TargetsPresentCondition $var + * @return $this + */ + public function setTargetsPresentCondition($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\TargetsPresentCondition::class); + $this->targets_present_condition = $var; + + return $this; + } + + /** + * Optional. TimedPromoteReleaseCondition contains rule conditions specific + * to a an Automation with a timed promote release rule defined. + * + * Generated from protobuf field .google.cloud.deploy.v1.TimedPromoteReleaseCondition timed_promote_release_condition = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Deploy\V1\TimedPromoteReleaseCondition|null + */ + public function getTimedPromoteReleaseCondition() + { + return $this->readOneof(2); + } + + public function hasTimedPromoteReleaseCondition() + { + return $this->hasOneof(2); + } + + /** + * Optional. TimedPromoteReleaseCondition contains rule conditions specific + * to a an Automation with a timed promote release rule defined. + * + * Generated from protobuf field .google.cloud.deploy.v1.TimedPromoteReleaseCondition timed_promote_release_condition = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Deploy\V1\TimedPromoteReleaseCondition $var + * @return $this + */ + public function setTimedPromoteReleaseCondition($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\TimedPromoteReleaseCondition::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getRuleTypeCondition() + { + return $this->whichOneof("rule_type_condition"); + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRun.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRun.php new file mode 100644 index 000000000000..4e381d495401 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRun.php @@ -0,0 +1,763 @@ +google.cloud.deploy.v1.AutomationRun + */ +class AutomationRun extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Name of the `AutomationRun`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Output only. Time at which the `AutomationRun` was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Time at which the automationRun was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Output only. The weak etag of the `AutomationRun` resource. + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $etag = ''; + /** + * Output only. Email address of the user-managed IAM service account that + * performs the operations against Cloud Deploy resources. + * + * Generated from protobuf field string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $service_account = ''; + /** + * Output only. Snapshot of the Automation taken at AutomationRun creation + * time. + * + * Generated from protobuf field .google.cloud.deploy.v1.Automation automation_snapshot = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $automation_snapshot = null; + /** + * Output only. The ID of the source target that initiates the + * `AutomationRun`. The value of this field is the last segment of a target + * name. + * + * Generated from protobuf field string target_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $target_id = ''; + /** + * Output only. Current state of the `AutomationRun`. + * + * Generated from protobuf field .google.cloud.deploy.v1.AutomationRun.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. Explains the current state of the `AutomationRun`. Present + * only when an explanation is needed. + * + * Generated from protobuf field string state_description = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state_description = ''; + /** + * Output only. Contains information about what policies prevented the + * `AutomationRun` from proceeding. + * + * Generated from protobuf field .google.cloud.deploy.v1.PolicyViolation policy_violation = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $policy_violation = null; + /** + * Output only. Time the `AutomationRun` expires. An `AutomationRun` expires + * after 14 days from its creation date. + * + * Generated from protobuf field .google.protobuf.Timestamp expire_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $expire_time = null; + /** + * Output only. The ID of the automation rule that initiated the operation. + * + * Generated from protobuf field string rule_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $rule_id = ''; + /** + * Output only. The ID of the automation that initiated the operation. + * + * Generated from protobuf field string automation_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $automation_id = ''; + /** + * Output only. Earliest time the `AutomationRun` will attempt to resume. + * Wait-time is configured by `wait` in automation rule. + * + * Generated from protobuf field .google.protobuf.Timestamp wait_until_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $wait_until_time = null; + protected $operation; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Name of the `AutomationRun`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time at which the `AutomationRun` was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Time at which the automationRun was updated. + * @type string $etag + * Output only. The weak etag of the `AutomationRun` resource. + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * @type string $service_account + * Output only. Email address of the user-managed IAM service account that + * performs the operations against Cloud Deploy resources. + * @type \Google\Cloud\Deploy\V1\Automation $automation_snapshot + * Output only. Snapshot of the Automation taken at AutomationRun creation + * time. + * @type string $target_id + * Output only. The ID of the source target that initiates the + * `AutomationRun`. The value of this field is the last segment of a target + * name. + * @type int $state + * Output only. Current state of the `AutomationRun`. + * @type string $state_description + * Output only. Explains the current state of the `AutomationRun`. Present + * only when an explanation is needed. + * @type \Google\Cloud\Deploy\V1\PolicyViolation $policy_violation + * Output only. Contains information about what policies prevented the + * `AutomationRun` from proceeding. + * @type \Google\Protobuf\Timestamp $expire_time + * Output only. Time the `AutomationRun` expires. An `AutomationRun` expires + * after 14 days from its creation date. + * @type string $rule_id + * Output only. The ID of the automation rule that initiated the operation. + * @type string $automation_id + * Output only. The ID of the automation that initiated the operation. + * @type \Google\Cloud\Deploy\V1\PromoteReleaseOperation $promote_release_operation + * Output only. Promotes a release to a specified 'Target'. + * @type \Google\Cloud\Deploy\V1\AdvanceRolloutOperation $advance_rollout_operation + * Output only. Advances a rollout to the next phase. + * @type \Google\Cloud\Deploy\V1\RepairRolloutOperation $repair_rollout_operation + * Output only. Repairs a failed 'Rollout'. + * @type \Google\Cloud\Deploy\V1\TimedPromoteReleaseOperation $timed_promote_release_operation + * Output only. Promotes a release to a specified 'Target' as defined in a + * Timed Promote Release rule. + * @type \Google\Protobuf\Timestamp $wait_until_time + * Output only. Earliest time the `AutomationRun` will attempt to resume. + * Wait-time is configured by `wait` in automation rule. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Name of the `AutomationRun`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Name of the `AutomationRun`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. Time at which the `AutomationRun` was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Time at which the `AutomationRun` was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Time at which the automationRun was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Time at which the automationRun was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Output only. The weak etag of the `AutomationRun` resource. + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Output only. The weak etag of the `AutomationRun` resource. + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Output only. Email address of the user-managed IAM service account that + * performs the operations against Cloud Deploy resources. + * + * Generated from protobuf field string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getServiceAccount() + { + return $this->service_account; + } + + /** + * Output only. Email address of the user-managed IAM service account that + * performs the operations against Cloud Deploy resources. + * + * Generated from protobuf field string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setServiceAccount($var) + { + GPBUtil::checkString($var, True); + $this->service_account = $var; + + return $this; + } + + /** + * Output only. Snapshot of the Automation taken at AutomationRun creation + * time. + * + * Generated from protobuf field .google.cloud.deploy.v1.Automation automation_snapshot = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\Automation|null + */ + public function getAutomationSnapshot() + { + return $this->automation_snapshot; + } + + public function hasAutomationSnapshot() + { + return isset($this->automation_snapshot); + } + + public function clearAutomationSnapshot() + { + unset($this->automation_snapshot); + } + + /** + * Output only. Snapshot of the Automation taken at AutomationRun creation + * time. + * + * Generated from protobuf field .google.cloud.deploy.v1.Automation automation_snapshot = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\Automation $var + * @return $this + */ + public function setAutomationSnapshot($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Automation::class); + $this->automation_snapshot = $var; + + return $this; + } + + /** + * Output only. The ID of the source target that initiates the + * `AutomationRun`. The value of this field is the last segment of a target + * name. + * + * Generated from protobuf field string target_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTargetId() + { + return $this->target_id; + } + + /** + * Output only. The ID of the source target that initiates the + * `AutomationRun`. The value of this field is the last segment of a target + * name. + * + * Generated from protobuf field string target_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setTargetId($var) + { + GPBUtil::checkString($var, True); + $this->target_id = $var; + + return $this; + } + + /** + * Output only. Current state of the `AutomationRun`. + * + * Generated from protobuf field .google.cloud.deploy.v1.AutomationRun.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. Current state of the `AutomationRun`. + * + * Generated from protobuf field .google.cloud.deploy.v1.AutomationRun.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\AutomationRun\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. Explains the current state of the `AutomationRun`. Present + * only when an explanation is needed. + * + * Generated from protobuf field string state_description = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getStateDescription() + { + return $this->state_description; + } + + /** + * Output only. Explains the current state of the `AutomationRun`. Present + * only when an explanation is needed. + * + * Generated from protobuf field string state_description = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setStateDescription($var) + { + GPBUtil::checkString($var, True); + $this->state_description = $var; + + return $this; + } + + /** + * Output only. Contains information about what policies prevented the + * `AutomationRun` from proceeding. + * + * Generated from protobuf field .google.cloud.deploy.v1.PolicyViolation policy_violation = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\PolicyViolation|null + */ + public function getPolicyViolation() + { + return $this->policy_violation; + } + + public function hasPolicyViolation() + { + return isset($this->policy_violation); + } + + public function clearPolicyViolation() + { + unset($this->policy_violation); + } + + /** + * Output only. Contains information about what policies prevented the + * `AutomationRun` from proceeding. + * + * Generated from protobuf field .google.cloud.deploy.v1.PolicyViolation policy_violation = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\PolicyViolation $var + * @return $this + */ + public function setPolicyViolation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\PolicyViolation::class); + $this->policy_violation = $var; + + return $this; + } + + /** + * Output only. Time the `AutomationRun` expires. An `AutomationRun` expires + * after 14 days from its creation date. + * + * Generated from protobuf field .google.protobuf.Timestamp expire_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getExpireTime() + { + return $this->expire_time; + } + + public function hasExpireTime() + { + return isset($this->expire_time); + } + + public function clearExpireTime() + { + unset($this->expire_time); + } + + /** + * Output only. Time the `AutomationRun` expires. An `AutomationRun` expires + * after 14 days from its creation date. + * + * Generated from protobuf field .google.protobuf.Timestamp expire_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setExpireTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->expire_time = $var; + + return $this; + } + + /** + * Output only. The ID of the automation rule that initiated the operation. + * + * Generated from protobuf field string rule_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getRuleId() + { + return $this->rule_id; + } + + /** + * Output only. The ID of the automation rule that initiated the operation. + * + * Generated from protobuf field string rule_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setRuleId($var) + { + GPBUtil::checkString($var, True); + $this->rule_id = $var; + + return $this; + } + + /** + * Output only. The ID of the automation that initiated the operation. + * + * Generated from protobuf field string automation_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getAutomationId() + { + return $this->automation_id; + } + + /** + * Output only. The ID of the automation that initiated the operation. + * + * Generated from protobuf field string automation_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setAutomationId($var) + { + GPBUtil::checkString($var, True); + $this->automation_id = $var; + + return $this; + } + + /** + * Output only. Promotes a release to a specified 'Target'. + * + * Generated from protobuf field .google.cloud.deploy.v1.PromoteReleaseOperation promote_release_operation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\PromoteReleaseOperation|null + */ + public function getPromoteReleaseOperation() + { + return $this->readOneof(13); + } + + public function hasPromoteReleaseOperation() + { + return $this->hasOneof(13); + } + + /** + * Output only. Promotes a release to a specified 'Target'. + * + * Generated from protobuf field .google.cloud.deploy.v1.PromoteReleaseOperation promote_release_operation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\PromoteReleaseOperation $var + * @return $this + */ + public function setPromoteReleaseOperation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\PromoteReleaseOperation::class); + $this->writeOneof(13, $var); + + return $this; + } + + /** + * Output only. Advances a rollout to the next phase. + * + * Generated from protobuf field .google.cloud.deploy.v1.AdvanceRolloutOperation advance_rollout_operation = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\AdvanceRolloutOperation|null + */ + public function getAdvanceRolloutOperation() + { + return $this->readOneof(14); + } + + public function hasAdvanceRolloutOperation() + { + return $this->hasOneof(14); + } + + /** + * Output only. Advances a rollout to the next phase. + * + * Generated from protobuf field .google.cloud.deploy.v1.AdvanceRolloutOperation advance_rollout_operation = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\AdvanceRolloutOperation $var + * @return $this + */ + public function setAdvanceRolloutOperation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\AdvanceRolloutOperation::class); + $this->writeOneof(14, $var); + + return $this; + } + + /** + * Output only. Repairs a failed 'Rollout'. + * + * Generated from protobuf field .google.cloud.deploy.v1.RepairRolloutOperation repair_rollout_operation = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\RepairRolloutOperation|null + */ + public function getRepairRolloutOperation() + { + return $this->readOneof(17); + } + + public function hasRepairRolloutOperation() + { + return $this->hasOneof(17); + } + + /** + * Output only. Repairs a failed 'Rollout'. + * + * Generated from protobuf field .google.cloud.deploy.v1.RepairRolloutOperation repair_rollout_operation = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\RepairRolloutOperation $var + * @return $this + */ + public function setRepairRolloutOperation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\RepairRolloutOperation::class); + $this->writeOneof(17, $var); + + return $this; + } + + /** + * Output only. Promotes a release to a specified 'Target' as defined in a + * Timed Promote Release rule. + * + * Generated from protobuf field .google.cloud.deploy.v1.TimedPromoteReleaseOperation timed_promote_release_operation = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\TimedPromoteReleaseOperation|null + */ + public function getTimedPromoteReleaseOperation() + { + return $this->readOneof(19); + } + + public function hasTimedPromoteReleaseOperation() + { + return $this->hasOneof(19); + } + + /** + * Output only. Promotes a release to a specified 'Target' as defined in a + * Timed Promote Release rule. + * + * Generated from protobuf field .google.cloud.deploy.v1.TimedPromoteReleaseOperation timed_promote_release_operation = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\TimedPromoteReleaseOperation $var + * @return $this + */ + public function setTimedPromoteReleaseOperation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\TimedPromoteReleaseOperation::class); + $this->writeOneof(19, $var); + + return $this; + } + + /** + * Output only. Earliest time the `AutomationRun` will attempt to resume. + * Wait-time is configured by `wait` in automation rule. + * + * Generated from protobuf field .google.protobuf.Timestamp wait_until_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getWaitUntilTime() + { + return $this->wait_until_time; + } + + public function hasWaitUntilTime() + { + return isset($this->wait_until_time); + } + + public function clearWaitUntilTime() + { + unset($this->wait_until_time); + } + + /** + * Output only. Earliest time the `AutomationRun` will attempt to resume. + * Wait-time is configured by `wait` in automation rule. + * + * Generated from protobuf field .google.protobuf.Timestamp wait_until_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setWaitUntilTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->wait_until_time = $var; + + return $this; + } + + /** + * @return string + */ + public function getOperation() + { + return $this->whichOneof("operation"); + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRun/State.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRun/State.php new file mode 100644 index 000000000000..d0dd5cfd9f96 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRun/State.php @@ -0,0 +1,92 @@ +google.cloud.deploy.v1.AutomationRun.State + */ +class State +{ + /** + * The `AutomationRun` has an unspecified state. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The `AutomationRun` has succeeded. + * + * Generated from protobuf enum SUCCEEDED = 1; + */ + const SUCCEEDED = 1; + /** + * The `AutomationRun` was cancelled. + * + * Generated from protobuf enum CANCELLED = 2; + */ + const CANCELLED = 2; + /** + * The `AutomationRun` has failed. + * + * Generated from protobuf enum FAILED = 3; + */ + const FAILED = 3; + /** + * The `AutomationRun` is in progress. + * + * Generated from protobuf enum IN_PROGRESS = 4; + */ + const IN_PROGRESS = 4; + /** + * The `AutomationRun` is pending. + * + * Generated from protobuf enum PENDING = 5; + */ + const PENDING = 5; + /** + * The `AutomationRun` was aborted. + * + * Generated from protobuf enum ABORTED = 6; + */ + const ABORTED = 6; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::SUCCEEDED => 'SUCCEEDED', + self::CANCELLED => 'CANCELLED', + self::FAILED => 'FAILED', + self::IN_PROGRESS => 'IN_PROGRESS', + self::PENDING => 'PENDING', + self::ABORTED => 'ABORTED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(State::class, \Google\Cloud\Deploy\V1\AutomationRun_State::class); + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRunEvent.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRunEvent.php new file mode 100644 index 000000000000..409f23c5f943 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRunEvent.php @@ -0,0 +1,276 @@ +google.cloud.deploy.v1.AutomationRunEvent + */ +class AutomationRunEvent extends \Google\Protobuf\Internal\Message +{ + /** + * Debug message for when there is an update on the AutomationRun. + * Provides further details about the resource creation or state change. + * + * Generated from protobuf field string message = 1; + */ + protected $message = ''; + /** + * The name of the `AutomationRun`. + * + * Generated from protobuf field string automation_run = 2; + */ + protected $automation_run = ''; + /** + * Unique identifier of the `DeliveryPipeline`. + * + * Generated from protobuf field string pipeline_uid = 3; + */ + protected $pipeline_uid = ''; + /** + * Identifier of the `Automation`. + * + * Generated from protobuf field string automation_id = 4; + */ + protected $automation_id = ''; + /** + * Identifier of the `Automation` rule. + * + * Generated from protobuf field string rule_id = 5; + */ + protected $rule_id = ''; + /** + * ID of the `Target` to which the `AutomationRun` is created. + * + * Generated from protobuf field string destination_target_id = 6; + */ + protected $destination_target_id = ''; + /** + * Type of this notification, e.g. for a Pub/Sub failure. + * + * Generated from protobuf field .google.cloud.deploy.v1.Type type = 7; + */ + protected $type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $message + * Debug message for when there is an update on the AutomationRun. + * Provides further details about the resource creation or state change. + * @type string $automation_run + * The name of the `AutomationRun`. + * @type string $pipeline_uid + * Unique identifier of the `DeliveryPipeline`. + * @type string $automation_id + * Identifier of the `Automation`. + * @type string $rule_id + * Identifier of the `Automation` rule. + * @type string $destination_target_id + * ID of the `Target` to which the `AutomationRun` is created. + * @type int $type + * Type of this notification, e.g. for a Pub/Sub failure. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\AutomationrunPayload::initOnce(); + parent::__construct($data); + } + + /** + * Debug message for when there is an update on the AutomationRun. + * Provides further details about the resource creation or state change. + * + * Generated from protobuf field string message = 1; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Debug message for when there is an update on the AutomationRun. + * Provides further details about the resource creation or state change. + * + * Generated from protobuf field string message = 1; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + + /** + * The name of the `AutomationRun`. + * + * Generated from protobuf field string automation_run = 2; + * @return string + */ + public function getAutomationRun() + { + return $this->automation_run; + } + + /** + * The name of the `AutomationRun`. + * + * Generated from protobuf field string automation_run = 2; + * @param string $var + * @return $this + */ + public function setAutomationRun($var) + { + GPBUtil::checkString($var, True); + $this->automation_run = $var; + + return $this; + } + + /** + * Unique identifier of the `DeliveryPipeline`. + * + * Generated from protobuf field string pipeline_uid = 3; + * @return string + */ + public function getPipelineUid() + { + return $this->pipeline_uid; + } + + /** + * Unique identifier of the `DeliveryPipeline`. + * + * Generated from protobuf field string pipeline_uid = 3; + * @param string $var + * @return $this + */ + public function setPipelineUid($var) + { + GPBUtil::checkString($var, True); + $this->pipeline_uid = $var; + + return $this; + } + + /** + * Identifier of the `Automation`. + * + * Generated from protobuf field string automation_id = 4; + * @return string + */ + public function getAutomationId() + { + return $this->automation_id; + } + + /** + * Identifier of the `Automation`. + * + * Generated from protobuf field string automation_id = 4; + * @param string $var + * @return $this + */ + public function setAutomationId($var) + { + GPBUtil::checkString($var, True); + $this->automation_id = $var; + + return $this; + } + + /** + * Identifier of the `Automation` rule. + * + * Generated from protobuf field string rule_id = 5; + * @return string + */ + public function getRuleId() + { + return $this->rule_id; + } + + /** + * Identifier of the `Automation` rule. + * + * Generated from protobuf field string rule_id = 5; + * @param string $var + * @return $this + */ + public function setRuleId($var) + { + GPBUtil::checkString($var, True); + $this->rule_id = $var; + + return $this; + } + + /** + * ID of the `Target` to which the `AutomationRun` is created. + * + * Generated from protobuf field string destination_target_id = 6; + * @return string + */ + public function getDestinationTargetId() + { + return $this->destination_target_id; + } + + /** + * ID of the `Target` to which the `AutomationRun` is created. + * + * Generated from protobuf field string destination_target_id = 6; + * @param string $var + * @return $this + */ + public function setDestinationTargetId($var) + { + GPBUtil::checkString($var, True); + $this->destination_target_id = $var; + + return $this; + } + + /** + * Type of this notification, e.g. for a Pub/Sub failure. + * + * Generated from protobuf field .google.cloud.deploy.v1.Type type = 7; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Type of this notification, e.g. for a Pub/Sub failure. + * + * Generated from protobuf field .google.cloud.deploy.v1.Type type = 7; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Type::class); + $this->type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/BackoffMode.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/BackoffMode.php new file mode 100644 index 000000000000..ae0edaeec84e --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/BackoffMode.php @@ -0,0 +1,61 @@ +google.cloud.deploy.v1.BackoffMode + */ +class BackoffMode +{ + /** + * No WaitMode is specified. + * + * Generated from protobuf enum BACKOFF_MODE_UNSPECIFIED = 0; + */ + const BACKOFF_MODE_UNSPECIFIED = 0; + /** + * Increases the wait time linearly. + * + * Generated from protobuf enum BACKOFF_MODE_LINEAR = 1; + */ + const BACKOFF_MODE_LINEAR = 1; + /** + * Increases the wait time exponentially. + * + * Generated from protobuf enum BACKOFF_MODE_EXPONENTIAL = 2; + */ + const BACKOFF_MODE_EXPONENTIAL = 2; + + private static $valueToName = [ + self::BACKOFF_MODE_UNSPECIFIED => 'BACKOFF_MODE_UNSPECIFIED', + self::BACKOFF_MODE_LINEAR => 'BACKOFF_MODE_LINEAR', + self::BACKOFF_MODE_EXPONENTIAL => 'BACKOFF_MODE_EXPONENTIAL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/BuildArtifact.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/BuildArtifact.php new file mode 100644 index 000000000000..23cd5da0a754 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/BuildArtifact.php @@ -0,0 +1,109 @@ +google.cloud.deploy.v1.BuildArtifact + */ +class BuildArtifact extends \Google\Protobuf\Internal\Message +{ + /** + * Image name in Skaffold configuration. + * + * Generated from protobuf field string image = 3; + */ + protected $image = ''; + /** + * Image tag to use. This will generally be the full path to an image, such + * as "gcr.io/my-project/busybox:1.2.3" or + * "gcr.io/my-project/busybox@sha256:abc123". + * + * Generated from protobuf field string tag = 2; + */ + protected $tag = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $image + * Image name in Skaffold configuration. + * @type string $tag + * Image tag to use. This will generally be the full path to an image, such + * as "gcr.io/my-project/busybox:1.2.3" or + * "gcr.io/my-project/busybox@sha256:abc123". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Image name in Skaffold configuration. + * + * Generated from protobuf field string image = 3; + * @return string + */ + public function getImage() + { + return $this->image; + } + + /** + * Image name in Skaffold configuration. + * + * Generated from protobuf field string image = 3; + * @param string $var + * @return $this + */ + public function setImage($var) + { + GPBUtil::checkString($var, True); + $this->image = $var; + + return $this; + } + + /** + * Image tag to use. This will generally be the full path to an image, such + * as "gcr.io/my-project/busybox:1.2.3" or + * "gcr.io/my-project/busybox@sha256:abc123". + * + * Generated from protobuf field string tag = 2; + * @return string + */ + public function getTag() + { + return $this->tag; + } + + /** + * Image tag to use. This will generally be the full path to an image, such + * as "gcr.io/my-project/busybox:1.2.3" or + * "gcr.io/my-project/busybox@sha256:abc123". + * + * Generated from protobuf field string tag = 2; + * @param string $var + * @return $this + */ + public function setTag($var) + { + GPBUtil::checkString($var, True); + $this->tag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Canary.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Canary.php new file mode 100644 index 000000000000..929faf223233 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Canary.php @@ -0,0 +1,166 @@ +google.cloud.deploy.v1.Canary + */ +class Canary extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Runtime specific configurations for the deployment strategy. The + * runtime configuration is used to determine how Cloud Deploy will split + * traffic to enable a progressive deployment. + * + * Generated from protobuf field .google.cloud.deploy.v1.RuntimeConfig runtime_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $runtime_config = null; + protected $mode; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Deploy\V1\RuntimeConfig $runtime_config + * Optional. Runtime specific configurations for the deployment strategy. The + * runtime configuration is used to determine how Cloud Deploy will split + * traffic to enable a progressive deployment. + * @type \Google\Cloud\Deploy\V1\CanaryDeployment $canary_deployment + * Configures the progressive based deployment for a Target. + * @type \Google\Cloud\Deploy\V1\CustomCanaryDeployment $custom_canary_deployment + * Configures the progressive based deployment for a Target, but allows + * customizing at the phase level where a phase represents each of the + * percentage deployments. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Runtime specific configurations for the deployment strategy. The + * runtime configuration is used to determine how Cloud Deploy will split + * traffic to enable a progressive deployment. + * + * Generated from protobuf field .google.cloud.deploy.v1.RuntimeConfig runtime_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Deploy\V1\RuntimeConfig|null + */ + public function getRuntimeConfig() + { + return $this->runtime_config; + } + + public function hasRuntimeConfig() + { + return isset($this->runtime_config); + } + + public function clearRuntimeConfig() + { + unset($this->runtime_config); + } + + /** + * Optional. Runtime specific configurations for the deployment strategy. The + * runtime configuration is used to determine how Cloud Deploy will split + * traffic to enable a progressive deployment. + * + * Generated from protobuf field .google.cloud.deploy.v1.RuntimeConfig runtime_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Deploy\V1\RuntimeConfig $var + * @return $this + */ + public function setRuntimeConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\RuntimeConfig::class); + $this->runtime_config = $var; + + return $this; + } + + /** + * Configures the progressive based deployment for a Target. + * + * Generated from protobuf field .google.cloud.deploy.v1.CanaryDeployment canary_deployment = 2; + * @return \Google\Cloud\Deploy\V1\CanaryDeployment|null + */ + public function getCanaryDeployment() + { + return $this->readOneof(2); + } + + public function hasCanaryDeployment() + { + return $this->hasOneof(2); + } + + /** + * Configures the progressive based deployment for a Target. + * + * Generated from protobuf field .google.cloud.deploy.v1.CanaryDeployment canary_deployment = 2; + * @param \Google\Cloud\Deploy\V1\CanaryDeployment $var + * @return $this + */ + public function setCanaryDeployment($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CanaryDeployment::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Configures the progressive based deployment for a Target, but allows + * customizing at the phase level where a phase represents each of the + * percentage deployments. + * + * Generated from protobuf field .google.cloud.deploy.v1.CustomCanaryDeployment custom_canary_deployment = 3; + * @return \Google\Cloud\Deploy\V1\CustomCanaryDeployment|null + */ + public function getCustomCanaryDeployment() + { + return $this->readOneof(3); + } + + public function hasCustomCanaryDeployment() + { + return $this->hasOneof(3); + } + + /** + * Configures the progressive based deployment for a Target, but allows + * customizing at the phase level where a phase represents each of the + * percentage deployments. + * + * Generated from protobuf field .google.cloud.deploy.v1.CustomCanaryDeployment custom_canary_deployment = 3; + * @param \Google\Cloud\Deploy\V1\CustomCanaryDeployment $var + * @return $this + */ + public function setCustomCanaryDeployment($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CustomCanaryDeployment::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getMode() + { + return $this->whichOneof("mode"); + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CanaryDeployment.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CanaryDeployment.php new file mode 100644 index 000000000000..924b28b6f372 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CanaryDeployment.php @@ -0,0 +1,213 @@ +google.cloud.deploy.v1.CanaryDeployment + */ +class CanaryDeployment extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The percentage based deployments that will occur as a part of a + * `Rollout`. List is expected in ascending order and each integer n is + * 0 <= n < 100. + * If the GatewayServiceMesh is configured for Kubernetes, then the range for + * n is 0 <= n <= 100. + * + * Generated from protobuf field repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $percentages; + /** + * Whether to run verify tests after each percentage deployment. + * + * Generated from protobuf field bool verify = 2; + */ + protected $verify = false; + /** + * Optional. Configuration for the predeploy job of the first phase. If this + * is not configured, there will be no predeploy job for this phase. + * + * Generated from protobuf field .google.cloud.deploy.v1.Predeploy predeploy = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $predeploy = null; + /** + * Optional. Configuration for the postdeploy job of the last phase. If this + * is not configured, there will be no postdeploy job for this phase. + * + * Generated from protobuf field .google.cloud.deploy.v1.Postdeploy postdeploy = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $postdeploy = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $percentages + * Required. The percentage based deployments that will occur as a part of a + * `Rollout`. List is expected in ascending order and each integer n is + * 0 <= n < 100. + * If the GatewayServiceMesh is configured for Kubernetes, then the range for + * n is 0 <= n <= 100. + * @type bool $verify + * Whether to run verify tests after each percentage deployment. + * @type \Google\Cloud\Deploy\V1\Predeploy $predeploy + * Optional. Configuration for the predeploy job of the first phase. If this + * is not configured, there will be no predeploy job for this phase. + * @type \Google\Cloud\Deploy\V1\Postdeploy $postdeploy + * Optional. Configuration for the postdeploy job of the last phase. If this + * is not configured, there will be no postdeploy job for this phase. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. The percentage based deployments that will occur as a part of a + * `Rollout`. List is expected in ascending order and each integer n is + * 0 <= n < 100. + * If the GatewayServiceMesh is configured for Kubernetes, then the range for + * n is 0 <= n <= 100. + * + * Generated from protobuf field repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPercentages() + { + return $this->percentages; + } + + /** + * Required. The percentage based deployments that will occur as a part of a + * `Rollout`. List is expected in ascending order and each integer n is + * 0 <= n < 100. + * If the GatewayServiceMesh is configured for Kubernetes, then the range for + * n is 0 <= n <= 100. + * + * Generated from protobuf field repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPercentages($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32); + $this->percentages = $arr; + + return $this; + } + + /** + * Whether to run verify tests after each percentage deployment. + * + * Generated from protobuf field bool verify = 2; + * @return bool + */ + public function getVerify() + { + return $this->verify; + } + + /** + * Whether to run verify tests after each percentage deployment. + * + * Generated from protobuf field bool verify = 2; + * @param bool $var + * @return $this + */ + public function setVerify($var) + { + GPBUtil::checkBool($var); + $this->verify = $var; + + return $this; + } + + /** + * Optional. Configuration for the predeploy job of the first phase. If this + * is not configured, there will be no predeploy job for this phase. + * + * Generated from protobuf field .google.cloud.deploy.v1.Predeploy predeploy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Deploy\V1\Predeploy|null + */ + public function getPredeploy() + { + return $this->predeploy; + } + + public function hasPredeploy() + { + return isset($this->predeploy); + } + + public function clearPredeploy() + { + unset($this->predeploy); + } + + /** + * Optional. Configuration for the predeploy job of the first phase. If this + * is not configured, there will be no predeploy job for this phase. + * + * Generated from protobuf field .google.cloud.deploy.v1.Predeploy predeploy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Deploy\V1\Predeploy $var + * @return $this + */ + public function setPredeploy($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Predeploy::class); + $this->predeploy = $var; + + return $this; + } + + /** + * Optional. Configuration for the postdeploy job of the last phase. If this + * is not configured, there will be no postdeploy job for this phase. + * + * Generated from protobuf field .google.cloud.deploy.v1.Postdeploy postdeploy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Deploy\V1\Postdeploy|null + */ + public function getPostdeploy() + { + return $this->postdeploy; + } + + public function hasPostdeploy() + { + return isset($this->postdeploy); + } + + public function clearPostdeploy() + { + unset($this->postdeploy); + } + + /** + * Optional. Configuration for the postdeploy job of the last phase. If this + * is not configured, there will be no postdeploy job for this phase. + * + * Generated from protobuf field .google.cloud.deploy.v1.Postdeploy postdeploy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Deploy\V1\Postdeploy $var + * @return $this + */ + public function setPostdeploy($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Postdeploy::class); + $this->postdeploy = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelAutomationRunRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelAutomationRunRequest.php new file mode 100644 index 000000000000..9b97433df290 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelAutomationRunRequest.php @@ -0,0 +1,86 @@ +google.cloud.deploy.v1.CancelAutomationRunRequest + */ +class CancelAutomationRunRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the `AutomationRun`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Name of the `AutomationRun`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`. Please see + * {@see CloudDeployClient::automationRunName()} for help formatting this field. + * + * @return \Google\Cloud\Deploy\V1\CancelAutomationRunRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Name of the `AutomationRun`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the `AutomationRun`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Name of the `AutomationRun`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelAutomationRunResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelAutomationRunResponse.php new file mode 100644 index 000000000000..c68cf6577c3f --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelAutomationRunResponse.php @@ -0,0 +1,33 @@ +google.cloud.deploy.v1.CancelAutomationRunResponse + */ +class CancelAutomationRunResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelRolloutRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelRolloutRequest.php new file mode 100644 index 000000000000..540f9ddb48dd --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelRolloutRequest.php @@ -0,0 +1,124 @@ +google.cloud.deploy.v1.CancelRolloutRequest + */ +class CancelRolloutRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the Rollout. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. Deploy policies to override. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. + * + * Generated from protobuf field repeated string override_deploy_policy = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $override_deploy_policy; + + /** + * @param string $name Required. Name of the Rollout. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. Please see + * {@see CloudDeployClient::rolloutName()} for help formatting this field. + * + * @return \Google\Cloud\Deploy\V1\CancelRolloutRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Name of the Rollout. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. + * @type array|\Google\Protobuf\Internal\RepeatedField $override_deploy_policy + * Optional. Deploy policies to override. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the Rollout. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Name of the Rollout. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. Deploy policies to override. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. + * + * Generated from protobuf field repeated string override_deploy_policy = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOverrideDeployPolicy() + { + return $this->override_deploy_policy; + } + + /** + * Optional. Deploy policies to override. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. + * + * Generated from protobuf field repeated string override_deploy_policy = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOverrideDeployPolicy($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->override_deploy_policy = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelRolloutResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelRolloutResponse.php new file mode 100644 index 000000000000..c7b2af7c39ac --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelRolloutResponse.php @@ -0,0 +1,33 @@ +google.cloud.deploy.v1.CancelRolloutResponse + */ +class CancelRolloutResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ChildRolloutJobs.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ChildRolloutJobs.php new file mode 100644 index 000000000000..a5fb687936dd --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ChildRolloutJobs.php @@ -0,0 +1,101 @@ +google.cloud.deploy.v1.ChildRolloutJobs + */ +class ChildRolloutJobs extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. List of CreateChildRolloutJobs + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.Job create_rollout_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $create_rollout_jobs; + /** + * Output only. List of AdvanceChildRolloutJobs + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.Job advance_rollout_jobs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $advance_rollout_jobs; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\Deploy\V1\Job>|\Google\Protobuf\Internal\RepeatedField $create_rollout_jobs + * Output only. List of CreateChildRolloutJobs + * @type array<\Google\Cloud\Deploy\V1\Job>|\Google\Protobuf\Internal\RepeatedField $advance_rollout_jobs + * Output only. List of AdvanceChildRolloutJobs + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Output only. List of CreateChildRolloutJobs + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.Job create_rollout_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCreateRolloutJobs() + { + return $this->create_rollout_jobs; + } + + /** + * Output only. List of CreateChildRolloutJobs + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.Job create_rollout_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\Deploy\V1\Job>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCreateRolloutJobs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\Job::class); + $this->create_rollout_jobs = $arr; + + return $this; + } + + /** + * Output only. List of AdvanceChildRolloutJobs + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.Job advance_rollout_jobs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAdvanceRolloutJobs() + { + return $this->advance_rollout_jobs; + } + + /** + * Output only. List of AdvanceChildRolloutJobs + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.Job advance_rollout_jobs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\Deploy\V1\Job>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAdvanceRolloutJobs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\Job::class); + $this->advance_rollout_jobs = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunConfig.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunConfig.php new file mode 100644 index 000000000000..030fbfbdf261 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunConfig.php @@ -0,0 +1,193 @@ +google.cloud.deploy.v1.CloudRunConfig + */ +class CloudRunConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Whether Cloud Deploy should update the traffic stanza in a Cloud Run + * Service on the user's behalf to facilitate traffic splitting. This is + * required to be true for CanaryDeployments, but optional for + * CustomCanaryDeployments. + * + * Generated from protobuf field bool automatic_traffic_control = 1; + */ + protected $automatic_traffic_control = false; + /** + * Optional. A list of tags that are added to the canary revision while the + * canary phase is in progress. + * + * Generated from protobuf field repeated string canary_revision_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $canary_revision_tags; + /** + * Optional. A list of tags that are added to the prior revision while the + * canary phase is in progress. + * + * Generated from protobuf field repeated string prior_revision_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $prior_revision_tags; + /** + * Optional. A list of tags that are added to the final stable revision when + * the stable phase is applied. + * + * Generated from protobuf field repeated string stable_revision_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $stable_revision_tags; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $automatic_traffic_control + * Whether Cloud Deploy should update the traffic stanza in a Cloud Run + * Service on the user's behalf to facilitate traffic splitting. This is + * required to be true for CanaryDeployments, but optional for + * CustomCanaryDeployments. + * @type array|\Google\Protobuf\Internal\RepeatedField $canary_revision_tags + * Optional. A list of tags that are added to the canary revision while the + * canary phase is in progress. + * @type array|\Google\Protobuf\Internal\RepeatedField $prior_revision_tags + * Optional. A list of tags that are added to the prior revision while the + * canary phase is in progress. + * @type array|\Google\Protobuf\Internal\RepeatedField $stable_revision_tags + * Optional. A list of tags that are added to the final stable revision when + * the stable phase is applied. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Whether Cloud Deploy should update the traffic stanza in a Cloud Run + * Service on the user's behalf to facilitate traffic splitting. This is + * required to be true for CanaryDeployments, but optional for + * CustomCanaryDeployments. + * + * Generated from protobuf field bool automatic_traffic_control = 1; + * @return bool + */ + public function getAutomaticTrafficControl() + { + return $this->automatic_traffic_control; + } + + /** + * Whether Cloud Deploy should update the traffic stanza in a Cloud Run + * Service on the user's behalf to facilitate traffic splitting. This is + * required to be true for CanaryDeployments, but optional for + * CustomCanaryDeployments. + * + * Generated from protobuf field bool automatic_traffic_control = 1; + * @param bool $var + * @return $this + */ + public function setAutomaticTrafficControl($var) + { + GPBUtil::checkBool($var); + $this->automatic_traffic_control = $var; + + return $this; + } + + /** + * Optional. A list of tags that are added to the canary revision while the + * canary phase is in progress. + * + * Generated from protobuf field repeated string canary_revision_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCanaryRevisionTags() + { + return $this->canary_revision_tags; + } + + /** + * Optional. A list of tags that are added to the canary revision while the + * canary phase is in progress. + * + * Generated from protobuf field repeated string canary_revision_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCanaryRevisionTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->canary_revision_tags = $arr; + + return $this; + } + + /** + * Optional. A list of tags that are added to the prior revision while the + * canary phase is in progress. + * + * Generated from protobuf field repeated string prior_revision_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPriorRevisionTags() + { + return $this->prior_revision_tags; + } + + /** + * Optional. A list of tags that are added to the prior revision while the + * canary phase is in progress. + * + * Generated from protobuf field repeated string prior_revision_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPriorRevisionTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->prior_revision_tags = $arr; + + return $this; + } + + /** + * Optional. A list of tags that are added to the final stable revision when + * the stable phase is applied. + * + * Generated from protobuf field repeated string stable_revision_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getStableRevisionTags() + { + return $this->stable_revision_tags; + } + + /** + * Optional. A list of tags that are added to the final stable revision when + * the stable phase is applied. + * + * Generated from protobuf field repeated string stable_revision_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setStableRevisionTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->stable_revision_tags = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunLocation.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunLocation.php new file mode 100644 index 000000000000..ff0ebad3a710 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunLocation.php @@ -0,0 +1,71 @@ +google.cloud.deploy.v1.CloudRunLocation + */ +class CloudRunLocation extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The location for the Cloud Run Service. Format must be + * `projects/{project}/locations/{location}`. + * + * Generated from protobuf field string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $location = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $location + * Required. The location for the Cloud Run Service. Format must be + * `projects/{project}/locations/{location}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. The location for the Cloud Run Service. Format must be + * `projects/{project}/locations/{location}`. + * + * Generated from protobuf field string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getLocation() + { + return $this->location; + } + + /** + * Required. The location for the Cloud Run Service. Format must be + * `projects/{project}/locations/{location}`. + * + * Generated from protobuf field string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkString($var, True); + $this->location = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunMetadata.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunMetadata.php new file mode 100644 index 000000000000..ce57bad75b8c --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunMetadata.php @@ -0,0 +1,189 @@ +google.cloud.deploy.v1.CloudRunMetadata + */ +class CloudRunMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The name of the Cloud Run Service that is associated with a + * `Rollout`. Format is + * `projects/{project}/locations/{location}/services/{service}`. + * + * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $service = ''; + /** + * Output only. The Cloud Run Service urls that are associated with a + * `Rollout`. + * + * Generated from protobuf field repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $service_urls; + /** + * Output only. The Cloud Run Revision id associated with a `Rollout`. + * + * Generated from protobuf field string revision = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $revision = ''; + /** + * Output only. The name of the Cloud Run job that is associated with a + * `Rollout`. Format is + * `projects/{project}/locations/{location}/jobs/{job_name}`. + * + * Generated from protobuf field string job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $job = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $service + * Output only. The name of the Cloud Run Service that is associated with a + * `Rollout`. Format is + * `projects/{project}/locations/{location}/services/{service}`. + * @type array|\Google\Protobuf\Internal\RepeatedField $service_urls + * Output only. The Cloud Run Service urls that are associated with a + * `Rollout`. + * @type string $revision + * Output only. The Cloud Run Revision id associated with a `Rollout`. + * @type string $job + * Output only. The name of the Cloud Run job that is associated with a + * `Rollout`. Format is + * `projects/{project}/locations/{location}/jobs/{job_name}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The name of the Cloud Run Service that is associated with a + * `Rollout`. Format is + * `projects/{project}/locations/{location}/services/{service}`. + * + * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getService() + { + return $this->service; + } + + /** + * Output only. The name of the Cloud Run Service that is associated with a + * `Rollout`. Format is + * `projects/{project}/locations/{location}/services/{service}`. + * + * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setService($var) + { + GPBUtil::checkString($var, True); + $this->service = $var; + + return $this; + } + + /** + * Output only. The Cloud Run Service urls that are associated with a + * `Rollout`. + * + * Generated from protobuf field repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getServiceUrls() + { + return $this->service_urls; + } + + /** + * Output only. The Cloud Run Service urls that are associated with a + * `Rollout`. + * + * Generated from protobuf field repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setServiceUrls($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->service_urls = $arr; + + return $this; + } + + /** + * Output only. The Cloud Run Revision id associated with a `Rollout`. + * + * Generated from protobuf field string revision = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getRevision() + { + return $this->revision; + } + + /** + * Output only. The Cloud Run Revision id associated with a `Rollout`. + * + * Generated from protobuf field string revision = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setRevision($var) + { + GPBUtil::checkString($var, True); + $this->revision = $var; + + return $this; + } + + /** + * Output only. The name of the Cloud Run job that is associated with a + * `Rollout`. Format is + * `projects/{project}/locations/{location}/jobs/{job_name}`. + * + * Generated from protobuf field string job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getJob() + { + return $this->job; + } + + /** + * Output only. The name of the Cloud Run job that is associated with a + * `Rollout`. Format is + * `projects/{project}/locations/{location}/jobs/{job_name}`. + * + * Generated from protobuf field string job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setJob($var) + { + GPBUtil::checkString($var, True); + $this->job = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunRenderMetadata.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunRenderMetadata.php new file mode 100644 index 000000000000..8695f4611f63 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunRenderMetadata.php @@ -0,0 +1,72 @@ +google.cloud.deploy.v1.CloudRunRenderMetadata + */ +class CloudRunRenderMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The name of the Cloud Run Service in the rendered manifest. + * Format is `projects/{project}/locations/{location}/services/{service}`. + * + * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $service = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $service + * Output only. The name of the Cloud Run Service in the rendered manifest. + * Format is `projects/{project}/locations/{location}/services/{service}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The name of the Cloud Run Service in the rendered manifest. + * Format is `projects/{project}/locations/{location}/services/{service}`. + * + * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getService() + { + return $this->service; + } + + /** + * Output only. The name of the Cloud Run Service in the rendered manifest. + * Format is `projects/{project}/locations/{location}/services/{service}`. + * + * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setService($var) + { + GPBUtil::checkString($var, True); + $this->service = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Config.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Config.php new file mode 100644 index 000000000000..d3401ecb99a3 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Config.php @@ -0,0 +1,139 @@ +google.cloud.deploy.v1.Config + */ +class Config extends \Google\Protobuf\Internal\Message +{ + /** + * Name of the configuration. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * All supported versions of Skaffold. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2; + */ + private $supported_versions; + /** + * Default Skaffold version that is assigned when a Release is created without + * specifying a Skaffold version. + * + * Generated from protobuf field string default_skaffold_version = 3; + */ + protected $default_skaffold_version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Name of the configuration. + * @type array<\Google\Cloud\Deploy\V1\SkaffoldVersion>|\Google\Protobuf\Internal\RepeatedField $supported_versions + * All supported versions of Skaffold. + * @type string $default_skaffold_version + * Default Skaffold version that is assigned when a Release is created without + * specifying a Skaffold version. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Name of the configuration. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Name of the configuration. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * All supported versions of Skaffold. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSupportedVersions() + { + return $this->supported_versions; + } + + /** + * All supported versions of Skaffold. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2; + * @param array<\Google\Cloud\Deploy\V1\SkaffoldVersion>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSupportedVersions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\SkaffoldVersion::class); + $this->supported_versions = $arr; + + return $this; + } + + /** + * Default Skaffold version that is assigned when a Release is created without + * specifying a Skaffold version. + * + * Generated from protobuf field string default_skaffold_version = 3; + * @return string + */ + public function getDefaultSkaffoldVersion() + { + return $this->default_skaffold_version; + } + + /** + * Default Skaffold version that is assigned when a Release is created without + * specifying a Skaffold version. + * + * Generated from protobuf field string default_skaffold_version = 3; + * @param string $var + * @return $this + */ + public function setDefaultSkaffoldVersion($var) + { + GPBUtil::checkString($var, True); + $this->default_skaffold_version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateAutomationRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateAutomationRequest.php new file mode 100644 index 000000000000..80216192162f --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateAutomationRequest.php @@ -0,0 +1,285 @@ +google.cloud.deploy.v1.CreateAutomationRequest + */ +class CreateAutomationRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent collection in which the `Automation` must be created. + * The format is + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. ID of the `Automation`. + * + * Generated from protobuf field string automation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $automation_id = ''; + /** + * Required. The `Automation` to create. + * + * Generated from protobuf field .google.cloud.deploy.v1.Automation automation = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $automation = null; + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $request_id = ''; + /** + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * + * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param string $parent Required. The parent collection in which the `Automation` must be created. + * The format is + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. Please see + * {@see CloudDeployClient::deliveryPipelineName()} for help formatting this field. + * @param \Google\Cloud\Deploy\V1\Automation $automation Required. The `Automation` to create. + * @param string $automationId Required. ID of the `Automation`. + * + * @return \Google\Cloud\Deploy\V1\CreateAutomationRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Deploy\V1\Automation $automation, string $automationId): self + { + return (new self()) + ->setParent($parent) + ->setAutomation($automation) + ->setAutomationId($automationId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent collection in which the `Automation` must be created. + * The format is + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. + * @type string $automation_id + * Required. ID of the `Automation`. + * @type \Google\Cloud\Deploy\V1\Automation $automation + * Required. The `Automation` to create. + * @type string $request_id + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * @type bool $validate_only + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent collection in which the `Automation` must be created. + * The format is + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent collection in which the `Automation` must be created. + * The format is + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. ID of the `Automation`. + * + * Generated from protobuf field string automation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAutomationId() + { + return $this->automation_id; + } + + /** + * Required. ID of the `Automation`. + * + * Generated from protobuf field string automation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAutomationId($var) + { + GPBUtil::checkString($var, True); + $this->automation_id = $var; + + return $this; + } + + /** + * Required. The `Automation` to create. + * + * Generated from protobuf field .google.cloud.deploy.v1.Automation automation = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Deploy\V1\Automation|null + */ + public function getAutomation() + { + return $this->automation; + } + + public function hasAutomation() + { + return isset($this->automation); + } + + public function clearAutomation() + { + unset($this->automation); + } + + /** + * Required. The `Automation` to create. + * + * Generated from protobuf field .google.cloud.deploy.v1.Automation automation = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Deploy\V1\Automation $var + * @return $this + */ + public function setAutomation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Automation::class); + $this->automation = $var; + + return $this; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + + /** + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * + * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * + * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateChildRolloutJob.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateChildRolloutJob.php new file mode 100644 index 000000000000..ba7b1ce944b0 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateChildRolloutJob.php @@ -0,0 +1,33 @@ +google.cloud.deploy.v1.CreateChildRolloutJob + */ +class CreateChildRolloutJob extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateChildRolloutJobRun.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateChildRolloutJobRun.php new file mode 100644 index 000000000000..2207026b617e --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateChildRolloutJobRun.php @@ -0,0 +1,106 @@ +google.cloud.deploy.v1.CreateChildRolloutJobRun + */ +class CreateChildRolloutJobRun extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Name of the `ChildRollout`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. + * + * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $rollout = ''; + /** + * Output only. The ID of the childRollout Phase initiated by this JobRun. + * + * Generated from protobuf field string rollout_phase_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $rollout_phase_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $rollout + * Output only. Name of the `ChildRollout`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. + * @type string $rollout_phase_id + * Output only. The ID of the childRollout Phase initiated by this JobRun. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Name of the `ChildRollout`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. + * + * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getRollout() + { + return $this->rollout; + } + + /** + * Output only. Name of the `ChildRollout`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. + * + * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setRollout($var) + { + GPBUtil::checkString($var, True); + $this->rollout = $var; + + return $this; + } + + /** + * Output only. The ID of the childRollout Phase initiated by this JobRun. + * + * Generated from protobuf field string rollout_phase_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getRolloutPhaseId() + { + return $this->rollout_phase_id; + } + + /** + * Output only. The ID of the childRollout Phase initiated by this JobRun. + * + * Generated from protobuf field string rollout_phase_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setRolloutPhaseId($var) + { + GPBUtil::checkString($var, True); + $this->rollout_phase_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateCustomTargetTypeRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateCustomTargetTypeRequest.php new file mode 100644 index 000000000000..1db9157a497c --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateCustomTargetTypeRequest.php @@ -0,0 +1,280 @@ +google.cloud.deploy.v1.CreateCustomTargetTypeRequest + */ +class CreateCustomTargetTypeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent collection in which the `CustomTargetType` must be + * created. The format is `projects/{project_id}/locations/{location_name}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. ID of the `CustomTargetType`. + * + * Generated from protobuf field string custom_target_type_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $custom_target_type_id = ''; + /** + * Required. The `CustomTargetType` to create. + * + * Generated from protobuf field .google.cloud.deploy.v1.CustomTargetType custom_target_type = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $custom_target_type = null; + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $request_id = ''; + /** + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * + * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param string $parent Required. The parent collection in which the `CustomTargetType` must be + * created. The format is `projects/{project_id}/locations/{location_name}`. Please see + * {@see CloudDeployClient::locationName()} for help formatting this field. + * @param \Google\Cloud\Deploy\V1\CustomTargetType $customTargetType Required. The `CustomTargetType` to create. + * @param string $customTargetTypeId Required. ID of the `CustomTargetType`. + * + * @return \Google\Cloud\Deploy\V1\CreateCustomTargetTypeRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Deploy\V1\CustomTargetType $customTargetType, string $customTargetTypeId): self + { + return (new self()) + ->setParent($parent) + ->setCustomTargetType($customTargetType) + ->setCustomTargetTypeId($customTargetTypeId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent collection in which the `CustomTargetType` must be + * created. The format is `projects/{project_id}/locations/{location_name}`. + * @type string $custom_target_type_id + * Required. ID of the `CustomTargetType`. + * @type \Google\Cloud\Deploy\V1\CustomTargetType $custom_target_type + * Required. The `CustomTargetType` to create. + * @type string $request_id + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * @type bool $validate_only + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent collection in which the `CustomTargetType` must be + * created. The format is `projects/{project_id}/locations/{location_name}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent collection in which the `CustomTargetType` must be + * created. The format is `projects/{project_id}/locations/{location_name}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. ID of the `CustomTargetType`. + * + * Generated from protobuf field string custom_target_type_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getCustomTargetTypeId() + { + return $this->custom_target_type_id; + } + + /** + * Required. ID of the `CustomTargetType`. + * + * Generated from protobuf field string custom_target_type_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setCustomTargetTypeId($var) + { + GPBUtil::checkString($var, True); + $this->custom_target_type_id = $var; + + return $this; + } + + /** + * Required. The `CustomTargetType` to create. + * + * Generated from protobuf field .google.cloud.deploy.v1.CustomTargetType custom_target_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Deploy\V1\CustomTargetType|null + */ + public function getCustomTargetType() + { + return $this->custom_target_type; + } + + public function hasCustomTargetType() + { + return isset($this->custom_target_type); + } + + public function clearCustomTargetType() + { + unset($this->custom_target_type); + } + + /** + * Required. The `CustomTargetType` to create. + * + * Generated from protobuf field .google.cloud.deploy.v1.CustomTargetType custom_target_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Deploy\V1\CustomTargetType $var + * @return $this + */ + public function setCustomTargetType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CustomTargetType::class); + $this->custom_target_type = $var; + + return $this; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + + /** + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * + * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * + * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateDeliveryPipelineRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateDeliveryPipelineRequest.php new file mode 100644 index 000000000000..468be305acc0 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateDeliveryPipelineRequest.php @@ -0,0 +1,280 @@ +google.cloud.deploy.v1.CreateDeliveryPipelineRequest + */ +class CreateDeliveryPipelineRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent collection in which the `DeliveryPipeline` must be + * created. The format is `projects/{project_id}/locations/{location_name}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. ID of the `DeliveryPipeline`. + * + * Generated from protobuf field string delivery_pipeline_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $delivery_pipeline_id = ''; + /** + * Required. The `DeliveryPipeline` to create. + * + * Generated from protobuf field .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $delivery_pipeline = null; + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $request_id = ''; + /** + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * + * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param string $parent Required. The parent collection in which the `DeliveryPipeline` must be + * created. The format is `projects/{project_id}/locations/{location_name}`. Please see + * {@see CloudDeployClient::locationName()} for help formatting this field. + * @param \Google\Cloud\Deploy\V1\DeliveryPipeline $deliveryPipeline Required. The `DeliveryPipeline` to create. + * @param string $deliveryPipelineId Required. ID of the `DeliveryPipeline`. + * + * @return \Google\Cloud\Deploy\V1\CreateDeliveryPipelineRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Deploy\V1\DeliveryPipeline $deliveryPipeline, string $deliveryPipelineId): self + { + return (new self()) + ->setParent($parent) + ->setDeliveryPipeline($deliveryPipeline) + ->setDeliveryPipelineId($deliveryPipelineId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent collection in which the `DeliveryPipeline` must be + * created. The format is `projects/{project_id}/locations/{location_name}`. + * @type string $delivery_pipeline_id + * Required. ID of the `DeliveryPipeline`. + * @type \Google\Cloud\Deploy\V1\DeliveryPipeline $delivery_pipeline + * Required. The `DeliveryPipeline` to create. + * @type string $request_id + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * @type bool $validate_only + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent collection in which the `DeliveryPipeline` must be + * created. The format is `projects/{project_id}/locations/{location_name}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent collection in which the `DeliveryPipeline` must be + * created. The format is `projects/{project_id}/locations/{location_name}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. ID of the `DeliveryPipeline`. + * + * Generated from protobuf field string delivery_pipeline_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDeliveryPipelineId() + { + return $this->delivery_pipeline_id; + } + + /** + * Required. ID of the `DeliveryPipeline`. + * + * Generated from protobuf field string delivery_pipeline_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDeliveryPipelineId($var) + { + GPBUtil::checkString($var, True); + $this->delivery_pipeline_id = $var; + + return $this; + } + + /** + * Required. The `DeliveryPipeline` to create. + * + * Generated from protobuf field .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Deploy\V1\DeliveryPipeline|null + */ + public function getDeliveryPipeline() + { + return $this->delivery_pipeline; + } + + public function hasDeliveryPipeline() + { + return isset($this->delivery_pipeline); + } + + public function clearDeliveryPipeline() + { + unset($this->delivery_pipeline); + } + + /** + * Required. The `DeliveryPipeline` to create. + * + * Generated from protobuf field .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Deploy\V1\DeliveryPipeline $var + * @return $this + */ + public function setDeliveryPipeline($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\DeliveryPipeline::class); + $this->delivery_pipeline = $var; + + return $this; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + + /** + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * + * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * + * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateDeployPolicyRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateDeployPolicyRequest.php new file mode 100644 index 000000000000..19f257bdbdf4 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateDeployPolicyRequest.php @@ -0,0 +1,280 @@ +google.cloud.deploy.v1.CreateDeployPolicyRequest + */ +class CreateDeployPolicyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent collection in which the `DeployPolicy` must be + * created. The format is `projects/{project_id}/locations/{location_name}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. ID of the `DeployPolicy`. + * + * Generated from protobuf field string deploy_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $deploy_policy_id = ''; + /** + * Required. The `DeployPolicy` to create. + * + * Generated from protobuf field .google.cloud.deploy.v1.DeployPolicy deploy_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $deploy_policy = null; + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $request_id = ''; + /** + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * + * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param string $parent Required. The parent collection in which the `DeployPolicy` must be + * created. The format is `projects/{project_id}/locations/{location_name}`. Please see + * {@see CloudDeployClient::locationName()} for help formatting this field. + * @param \Google\Cloud\Deploy\V1\DeployPolicy $deployPolicy Required. The `DeployPolicy` to create. + * @param string $deployPolicyId Required. ID of the `DeployPolicy`. + * + * @return \Google\Cloud\Deploy\V1\CreateDeployPolicyRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Deploy\V1\DeployPolicy $deployPolicy, string $deployPolicyId): self + { + return (new self()) + ->setParent($parent) + ->setDeployPolicy($deployPolicy) + ->setDeployPolicyId($deployPolicyId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent collection in which the `DeployPolicy` must be + * created. The format is `projects/{project_id}/locations/{location_name}`. + * @type string $deploy_policy_id + * Required. ID of the `DeployPolicy`. + * @type \Google\Cloud\Deploy\V1\DeployPolicy $deploy_policy + * Required. The `DeployPolicy` to create. + * @type string $request_id + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * @type bool $validate_only + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent collection in which the `DeployPolicy` must be + * created. The format is `projects/{project_id}/locations/{location_name}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent collection in which the `DeployPolicy` must be + * created. The format is `projects/{project_id}/locations/{location_name}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. ID of the `DeployPolicy`. + * + * Generated from protobuf field string deploy_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDeployPolicyId() + { + return $this->deploy_policy_id; + } + + /** + * Required. ID of the `DeployPolicy`. + * + * Generated from protobuf field string deploy_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDeployPolicyId($var) + { + GPBUtil::checkString($var, True); + $this->deploy_policy_id = $var; + + return $this; + } + + /** + * Required. The `DeployPolicy` to create. + * + * Generated from protobuf field .google.cloud.deploy.v1.DeployPolicy deploy_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Deploy\V1\DeployPolicy|null + */ + public function getDeployPolicy() + { + return $this->deploy_policy; + } + + public function hasDeployPolicy() + { + return isset($this->deploy_policy); + } + + public function clearDeployPolicy() + { + unset($this->deploy_policy); + } + + /** + * Required. The `DeployPolicy` to create. + * + * Generated from protobuf field .google.cloud.deploy.v1.DeployPolicy deploy_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Deploy\V1\DeployPolicy $var + * @return $this + */ + public function setDeployPolicy($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\DeployPolicy::class); + $this->deploy_policy = $var; + + return $this; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + + /** + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * + * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * + * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateReleaseRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateReleaseRequest.php new file mode 100644 index 000000000000..06f287273d32 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateReleaseRequest.php @@ -0,0 +1,323 @@ +google.cloud.deploy.v1.CreateReleaseRequest + */ +class CreateReleaseRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent collection in which the `Release` is created. + * The format is + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. ID of the `Release`. + * + * Generated from protobuf field string release_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $release_id = ''; + /** + * Required. The `Release` to create. + * + * Generated from protobuf field .google.cloud.deploy.v1.Release release = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $release = null; + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $request_id = ''; + /** + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * + * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + /** + * Optional. Deploy policies to override. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. + * + * Generated from protobuf field repeated string override_deploy_policy = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $override_deploy_policy; + + /** + * @param string $parent Required. The parent collection in which the `Release` is created. + * The format is + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. Please see + * {@see CloudDeployClient::deliveryPipelineName()} for help formatting this field. + * @param \Google\Cloud\Deploy\V1\Release $release Required. The `Release` to create. + * @param string $releaseId Required. ID of the `Release`. + * + * @return \Google\Cloud\Deploy\V1\CreateReleaseRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Deploy\V1\Release $release, string $releaseId): self + { + return (new self()) + ->setParent($parent) + ->setRelease($release) + ->setReleaseId($releaseId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent collection in which the `Release` is created. + * The format is + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. + * @type string $release_id + * Required. ID of the `Release`. + * @type \Google\Cloud\Deploy\V1\Release $release + * Required. The `Release` to create. + * @type string $request_id + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * @type bool $validate_only + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * @type array|\Google\Protobuf\Internal\RepeatedField $override_deploy_policy + * Optional. Deploy policies to override. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent collection in which the `Release` is created. + * The format is + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent collection in which the `Release` is created. + * The format is + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. ID of the `Release`. + * + * Generated from protobuf field string release_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getReleaseId() + { + return $this->release_id; + } + + /** + * Required. ID of the `Release`. + * + * Generated from protobuf field string release_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setReleaseId($var) + { + GPBUtil::checkString($var, True); + $this->release_id = $var; + + return $this; + } + + /** + * Required. The `Release` to create. + * + * Generated from protobuf field .google.cloud.deploy.v1.Release release = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Deploy\V1\Release|null + */ + public function getRelease() + { + return $this->release; + } + + public function hasRelease() + { + return isset($this->release); + } + + public function clearRelease() + { + unset($this->release); + } + + /** + * Required. The `Release` to create. + * + * Generated from protobuf field .google.cloud.deploy.v1.Release release = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Deploy\V1\Release $var + * @return $this + */ + public function setRelease($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Release::class); + $this->release = $var; + + return $this; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + + /** + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * + * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * + * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + + /** + * Optional. Deploy policies to override. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. + * + * Generated from protobuf field repeated string override_deploy_policy = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOverrideDeployPolicy() + { + return $this->override_deploy_policy; + } + + /** + * Optional. Deploy policies to override. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. + * + * Generated from protobuf field repeated string override_deploy_policy = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOverrideDeployPolicy($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->override_deploy_policy = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateRolloutRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateRolloutRequest.php new file mode 100644 index 000000000000..f8ce1968ee03 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateRolloutRequest.php @@ -0,0 +1,361 @@ +google.cloud.deploy.v1.CreateRolloutRequest + */ +class CreateRolloutRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent collection in which the `Rollout` must be created. + * The format is + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. ID of the `Rollout`. + * + * Generated from protobuf field string rollout_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $rollout_id = ''; + /** + * Required. The `Rollout` to create. + * + * Generated from protobuf field .google.cloud.deploy.v1.Rollout rollout = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $rollout = null; + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $request_id = ''; + /** + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * + * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + /** + * Optional. Deploy policies to override. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. + * + * Generated from protobuf field repeated string override_deploy_policy = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $override_deploy_policy; + /** + * Optional. The starting phase ID for the `Rollout`. If empty the `Rollout` + * will start at the first phase. + * + * Generated from protobuf field string starting_phase_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $starting_phase_id = ''; + + /** + * @param string $parent Required. The parent collection in which the `Rollout` must be created. + * The format is + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`. Please see + * {@see CloudDeployClient::releaseName()} for help formatting this field. + * @param \Google\Cloud\Deploy\V1\Rollout $rollout Required. The `Rollout` to create. + * @param string $rolloutId Required. ID of the `Rollout`. + * + * @return \Google\Cloud\Deploy\V1\CreateRolloutRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Deploy\V1\Rollout $rollout, string $rolloutId): self + { + return (new self()) + ->setParent($parent) + ->setRollout($rollout) + ->setRolloutId($rolloutId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent collection in which the `Rollout` must be created. + * The format is + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`. + * @type string $rollout_id + * Required. ID of the `Rollout`. + * @type \Google\Cloud\Deploy\V1\Rollout $rollout + * Required. The `Rollout` to create. + * @type string $request_id + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * @type bool $validate_only + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * @type array|\Google\Protobuf\Internal\RepeatedField $override_deploy_policy + * Optional. Deploy policies to override. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. + * @type string $starting_phase_id + * Optional. The starting phase ID for the `Rollout`. If empty the `Rollout` + * will start at the first phase. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent collection in which the `Rollout` must be created. + * The format is + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent collection in which the `Rollout` must be created. + * The format is + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. ID of the `Rollout`. + * + * Generated from protobuf field string rollout_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getRolloutId() + { + return $this->rollout_id; + } + + /** + * Required. ID of the `Rollout`. + * + * Generated from protobuf field string rollout_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setRolloutId($var) + { + GPBUtil::checkString($var, True); + $this->rollout_id = $var; + + return $this; + } + + /** + * Required. The `Rollout` to create. + * + * Generated from protobuf field .google.cloud.deploy.v1.Rollout rollout = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Deploy\V1\Rollout|null + */ + public function getRollout() + { + return $this->rollout; + } + + public function hasRollout() + { + return isset($this->rollout); + } + + public function clearRollout() + { + unset($this->rollout); + } + + /** + * Required. The `Rollout` to create. + * + * Generated from protobuf field .google.cloud.deploy.v1.Rollout rollout = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Deploy\V1\Rollout $var + * @return $this + */ + public function setRollout($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Rollout::class); + $this->rollout = $var; + + return $this; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + + /** + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * + * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * + * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + + /** + * Optional. Deploy policies to override. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. + * + * Generated from protobuf field repeated string override_deploy_policy = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOverrideDeployPolicy() + { + return $this->override_deploy_policy; + } + + /** + * Optional. Deploy policies to override. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. + * + * Generated from protobuf field repeated string override_deploy_policy = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOverrideDeployPolicy($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->override_deploy_policy = $arr; + + return $this; + } + + /** + * Optional. The starting phase ID for the `Rollout`. If empty the `Rollout` + * will start at the first phase. + * + * Generated from protobuf field string starting_phase_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getStartingPhaseId() + { + return $this->starting_phase_id; + } + + /** + * Optional. The starting phase ID for the `Rollout`. If empty the `Rollout` + * will start at the first phase. + * + * Generated from protobuf field string starting_phase_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setStartingPhaseId($var) + { + GPBUtil::checkString($var, True); + $this->starting_phase_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateTargetRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateTargetRequest.php new file mode 100644 index 000000000000..70ac518604fc --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateTargetRequest.php @@ -0,0 +1,285 @@ +google.cloud.deploy.v1.CreateTargetRequest + */ +class CreateTargetRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent collection in which the `Target` must be created. + * The format is + * `projects/{project_id}/locations/{location_name}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. ID of the `Target`. + * + * Generated from protobuf field string target_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $target_id = ''; + /** + * Required. The `Target` to create. + * + * Generated from protobuf field .google.cloud.deploy.v1.Target target = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $target = null; + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $request_id = ''; + /** + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * + * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param string $parent Required. The parent collection in which the `Target` must be created. + * The format is + * `projects/{project_id}/locations/{location_name}`. Please see + * {@see CloudDeployClient::locationName()} for help formatting this field. + * @param \Google\Cloud\Deploy\V1\Target $target Required. The `Target` to create. + * @param string $targetId Required. ID of the `Target`. + * + * @return \Google\Cloud\Deploy\V1\CreateTargetRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Deploy\V1\Target $target, string $targetId): self + { + return (new self()) + ->setParent($parent) + ->setTarget($target) + ->setTargetId($targetId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent collection in which the `Target` must be created. + * The format is + * `projects/{project_id}/locations/{location_name}`. + * @type string $target_id + * Required. ID of the `Target`. + * @type \Google\Cloud\Deploy\V1\Target $target + * Required. The `Target` to create. + * @type string $request_id + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * @type bool $validate_only + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent collection in which the `Target` must be created. + * The format is + * `projects/{project_id}/locations/{location_name}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent collection in which the `Target` must be created. + * The format is + * `projects/{project_id}/locations/{location_name}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. ID of the `Target`. + * + * Generated from protobuf field string target_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getTargetId() + { + return $this->target_id; + } + + /** + * Required. ID of the `Target`. + * + * Generated from protobuf field string target_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setTargetId($var) + { + GPBUtil::checkString($var, True); + $this->target_id = $var; + + return $this; + } + + /** + * Required. The `Target` to create. + * + * Generated from protobuf field .google.cloud.deploy.v1.Target target = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Deploy\V1\Target|null + */ + public function getTarget() + { + return $this->target; + } + + public function hasTarget() + { + return isset($this->target); + } + + public function clearTarget() + { + unset($this->target); + } + + /** + * Required. The `Target` to create. + * + * Generated from protobuf field .google.cloud.deploy.v1.Target target = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Deploy\V1\Target $var + * @return $this + */ + public function setTarget($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Target::class); + $this->target = $var; + + return $this; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + + /** + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * + * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * + * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomCanaryDeployment.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomCanaryDeployment.php new file mode 100644 index 000000000000..7564e1c85ac6 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomCanaryDeployment.php @@ -0,0 +1,72 @@ +google.cloud.deploy.v1.CustomCanaryDeployment + */ +class CustomCanaryDeployment extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Configuration for each phase in the canary deployment in the + * order executed. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.CustomCanaryDeployment.PhaseConfig phase_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $phase_configs; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\Deploy\V1\CustomCanaryDeployment\PhaseConfig>|\Google\Protobuf\Internal\RepeatedField $phase_configs + * Required. Configuration for each phase in the canary deployment in the + * order executed. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. Configuration for each phase in the canary deployment in the + * order executed. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.CustomCanaryDeployment.PhaseConfig phase_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPhaseConfigs() + { + return $this->phase_configs; + } + + /** + * Required. Configuration for each phase in the canary deployment in the + * order executed. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.CustomCanaryDeployment.PhaseConfig phase_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Cloud\Deploy\V1\CustomCanaryDeployment\PhaseConfig>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPhaseConfigs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\CustomCanaryDeployment\PhaseConfig::class); + $this->phase_configs = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomCanaryDeployment/PhaseConfig.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomCanaryDeployment/PhaseConfig.php new file mode 100644 index 000000000000..b491f4297665 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomCanaryDeployment/PhaseConfig.php @@ -0,0 +1,293 @@ +google.cloud.deploy.v1.CustomCanaryDeployment.PhaseConfig + */ +class PhaseConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The ID to assign to the `Rollout` phase. + * This value must consist of lower-case letters, numbers, and hyphens, + * start with a letter and end with a letter or a number, and have a max + * length of 63 characters. In other words, it must match the following + * regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * + * Generated from protobuf field string phase_id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $phase_id = ''; + /** + * Required. Percentage deployment for the phase. + * + * Generated from protobuf field int32 percentage = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $percentage = 0; + /** + * Skaffold profiles to use when rendering the manifest for this phase. + * These are in addition to the profiles list specified in the + * `DeliveryPipeline` stage. + * + * Generated from protobuf field repeated string profiles = 3; + */ + private $profiles; + /** + * Whether to run verify tests after the deployment. + * + * Generated from protobuf field bool verify = 4; + */ + protected $verify = false; + /** + * Optional. Configuration for the predeploy job of this phase. If this is + * not configured, there will be no predeploy job for this phase. + * + * Generated from protobuf field .google.cloud.deploy.v1.Predeploy predeploy = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $predeploy = null; + /** + * Optional. Configuration for the postdeploy job of this phase. If this is + * not configured, there will be no postdeploy job for this phase. + * + * Generated from protobuf field .google.cloud.deploy.v1.Postdeploy postdeploy = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $postdeploy = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $phase_id + * Required. The ID to assign to the `Rollout` phase. + * This value must consist of lower-case letters, numbers, and hyphens, + * start with a letter and end with a letter or a number, and have a max + * length of 63 characters. In other words, it must match the following + * regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * @type int $percentage + * Required. Percentage deployment for the phase. + * @type array|\Google\Protobuf\Internal\RepeatedField $profiles + * Skaffold profiles to use when rendering the manifest for this phase. + * These are in addition to the profiles list specified in the + * `DeliveryPipeline` stage. + * @type bool $verify + * Whether to run verify tests after the deployment. + * @type \Google\Cloud\Deploy\V1\Predeploy $predeploy + * Optional. Configuration for the predeploy job of this phase. If this is + * not configured, there will be no predeploy job for this phase. + * @type \Google\Cloud\Deploy\V1\Postdeploy $postdeploy + * Optional. Configuration for the postdeploy job of this phase. If this is + * not configured, there will be no postdeploy job for this phase. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. The ID to assign to the `Rollout` phase. + * This value must consist of lower-case letters, numbers, and hyphens, + * start with a letter and end with a letter or a number, and have a max + * length of 63 characters. In other words, it must match the following + * regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * + * Generated from protobuf field string phase_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getPhaseId() + { + return $this->phase_id; + } + + /** + * Required. The ID to assign to the `Rollout` phase. + * This value must consist of lower-case letters, numbers, and hyphens, + * start with a letter and end with a letter or a number, and have a max + * length of 63 characters. In other words, it must match the following + * regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * + * Generated from protobuf field string phase_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setPhaseId($var) + { + GPBUtil::checkString($var, True); + $this->phase_id = $var; + + return $this; + } + + /** + * Required. Percentage deployment for the phase. + * + * Generated from protobuf field int32 percentage = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getPercentage() + { + return $this->percentage; + } + + /** + * Required. Percentage deployment for the phase. + * + * Generated from protobuf field int32 percentage = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setPercentage($var) + { + GPBUtil::checkInt32($var); + $this->percentage = $var; + + return $this; + } + + /** + * Skaffold profiles to use when rendering the manifest for this phase. + * These are in addition to the profiles list specified in the + * `DeliveryPipeline` stage. + * + * Generated from protobuf field repeated string profiles = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getProfiles() + { + return $this->profiles; + } + + /** + * Skaffold profiles to use when rendering the manifest for this phase. + * These are in addition to the profiles list specified in the + * `DeliveryPipeline` stage. + * + * Generated from protobuf field repeated string profiles = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setProfiles($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->profiles = $arr; + + return $this; + } + + /** + * Whether to run verify tests after the deployment. + * + * Generated from protobuf field bool verify = 4; + * @return bool + */ + public function getVerify() + { + return $this->verify; + } + + /** + * Whether to run verify tests after the deployment. + * + * Generated from protobuf field bool verify = 4; + * @param bool $var + * @return $this + */ + public function setVerify($var) + { + GPBUtil::checkBool($var); + $this->verify = $var; + + return $this; + } + + /** + * Optional. Configuration for the predeploy job of this phase. If this is + * not configured, there will be no predeploy job for this phase. + * + * Generated from protobuf field .google.cloud.deploy.v1.Predeploy predeploy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Deploy\V1\Predeploy|null + */ + public function getPredeploy() + { + return $this->predeploy; + } + + public function hasPredeploy() + { + return isset($this->predeploy); + } + + public function clearPredeploy() + { + unset($this->predeploy); + } + + /** + * Optional. Configuration for the predeploy job of this phase. If this is + * not configured, there will be no predeploy job for this phase. + * + * Generated from protobuf field .google.cloud.deploy.v1.Predeploy predeploy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Deploy\V1\Predeploy $var + * @return $this + */ + public function setPredeploy($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Predeploy::class); + $this->predeploy = $var; + + return $this; + } + + /** + * Optional. Configuration for the postdeploy job of this phase. If this is + * not configured, there will be no postdeploy job for this phase. + * + * Generated from protobuf field .google.cloud.deploy.v1.Postdeploy postdeploy = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Deploy\V1\Postdeploy|null + */ + public function getPostdeploy() + { + return $this->postdeploy; + } + + public function hasPostdeploy() + { + return isset($this->postdeploy); + } + + public function clearPostdeploy() + { + unset($this->postdeploy); + } + + /** + * Optional. Configuration for the postdeploy job of this phase. If this is + * not configured, there will be no postdeploy job for this phase. + * + * Generated from protobuf field .google.cloud.deploy.v1.Postdeploy postdeploy = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Deploy\V1\Postdeploy $var + * @return $this + */ + public function setPostdeploy($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Postdeploy::class); + $this->postdeploy = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(PhaseConfig::class, \Google\Cloud\Deploy\V1\CustomCanaryDeployment_PhaseConfig::class); + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomMetadata.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomMetadata.php new file mode 100644 index 000000000000..0542e47d8caf --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomMetadata.php @@ -0,0 +1,67 @@ +google.cloud.deploy.v1.CustomMetadata + */ +class CustomMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Key-value pairs provided by the user-defined operation. + * + * Generated from protobuf field map values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\MapField $values + * Output only. Key-value pairs provided by the user-defined operation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Key-value pairs provided by the user-defined operation. + * + * Generated from protobuf field map values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getValues() + { + return $this->values; + } + + /** + * Output only. Key-value pairs provided by the user-defined operation. + * + * Generated from protobuf field map values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setValues($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->values = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTarget.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTarget.php new file mode 100644 index 000000000000..cd56d0f9ff5a --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTarget.php @@ -0,0 +1,71 @@ +google.cloud.deploy.v1.CustomTarget + */ +class CustomTarget extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the CustomTargetType. Format must be + * `projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}`. + * + * Generated from protobuf field string custom_target_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $custom_target_type = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $custom_target_type + * Required. The name of the CustomTargetType. Format must be + * `projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the CustomTargetType. Format must be + * `projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}`. + * + * Generated from protobuf field string custom_target_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getCustomTargetType() + { + return $this->custom_target_type; + } + + /** + * Required. The name of the CustomTargetType. Format must be + * `projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}`. + * + * Generated from protobuf field string custom_target_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setCustomTargetType($var) + { + GPBUtil::checkString($var, True); + $this->custom_target_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetDeployMetadata.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetDeployMetadata.php new file mode 100644 index 000000000000..84f7747119b7 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetDeployMetadata.php @@ -0,0 +1,72 @@ +google.cloud.deploy.v1.CustomTargetDeployMetadata + */ +class CustomTargetDeployMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Skip message provided in the results of a custom deploy + * operation. + * + * Generated from protobuf field string skip_message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $skip_message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $skip_message + * Output only. Skip message provided in the results of a custom deploy + * operation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Skip message provided in the results of a custom deploy + * operation. + * + * Generated from protobuf field string skip_message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getSkipMessage() + { + return $this->skip_message; + } + + /** + * Output only. Skip message provided in the results of a custom deploy + * operation. + * + * Generated from protobuf field string skip_message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setSkipMessage($var) + { + GPBUtil::checkString($var, True); + $this->skip_message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetSkaffoldActions.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetSkaffoldActions.php new file mode 100644 index 000000000000..bd8698c053a8 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetSkaffoldActions.php @@ -0,0 +1,148 @@ +google.cloud.deploy.v1.CustomTargetSkaffoldActions + */ +class CustomTargetSkaffoldActions extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The Skaffold custom action responsible for render operations. If + * not provided then Cloud Deploy will perform the render operations via + * `skaffold render`. + * + * Generated from protobuf field string render_action = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $render_action = ''; + /** + * Required. The Skaffold custom action responsible for deploy operations. + * + * Generated from protobuf field string deploy_action = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $deploy_action = ''; + /** + * Optional. List of Skaffold modules Cloud Deploy will include in the + * Skaffold Config as required before performing diagnose. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.SkaffoldModules include_skaffold_modules = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $include_skaffold_modules; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $render_action + * Optional. The Skaffold custom action responsible for render operations. If + * not provided then Cloud Deploy will perform the render operations via + * `skaffold render`. + * @type string $deploy_action + * Required. The Skaffold custom action responsible for deploy operations. + * @type array<\Google\Cloud\Deploy\V1\SkaffoldModules>|\Google\Protobuf\Internal\RepeatedField $include_skaffold_modules + * Optional. List of Skaffold modules Cloud Deploy will include in the + * Skaffold Config as required before performing diagnose. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The Skaffold custom action responsible for render operations. If + * not provided then Cloud Deploy will perform the render operations via + * `skaffold render`. + * + * Generated from protobuf field string render_action = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRenderAction() + { + return $this->render_action; + } + + /** + * Optional. The Skaffold custom action responsible for render operations. If + * not provided then Cloud Deploy will perform the render operations via + * `skaffold render`. + * + * Generated from protobuf field string render_action = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRenderAction($var) + { + GPBUtil::checkString($var, True); + $this->render_action = $var; + + return $this; + } + + /** + * Required. The Skaffold custom action responsible for deploy operations. + * + * Generated from protobuf field string deploy_action = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDeployAction() + { + return $this->deploy_action; + } + + /** + * Required. The Skaffold custom action responsible for deploy operations. + * + * Generated from protobuf field string deploy_action = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDeployAction($var) + { + GPBUtil::checkString($var, True); + $this->deploy_action = $var; + + return $this; + } + + /** + * Optional. List of Skaffold modules Cloud Deploy will include in the + * Skaffold Config as required before performing diagnose. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.SkaffoldModules include_skaffold_modules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getIncludeSkaffoldModules() + { + return $this->include_skaffold_modules; + } + + /** + * Optional. List of Skaffold modules Cloud Deploy will include in the + * Skaffold Config as required before performing diagnose. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.SkaffoldModules include_skaffold_modules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Cloud\Deploy\V1\SkaffoldModules>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setIncludeSkaffoldModules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\SkaffoldModules::class); + $this->include_skaffold_modules = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetType.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetType.php new file mode 100644 index 000000000000..8b54d063c81f --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetType.php @@ -0,0 +1,475 @@ +google.cloud.deploy.v1.CustomTargetType + */ +class CustomTargetType extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Name of the `CustomTargetType`. Format is + * `projects/{project}/locations/{location}/customTargetTypes/{customTargetType}`. + * The `customTargetType` component must match + * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $name = ''; + /** + * Output only. Resource id of the `CustomTargetType`. + * + * Generated from protobuf field string custom_target_type_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $custom_target_type_id = ''; + /** + * Output only. Unique identifier of the `CustomTargetType`. + * + * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $uid = ''; + /** + * Optional. Description of the `CustomTargetType`. Max length is 255 + * characters. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Optional. User annotations. These attributes can only be set and used by + * the user, and not by Cloud Deploy. See + * https://google.aip.dev/128#annotations for more details such as format and + * size limitations. + * + * Generated from protobuf field map annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $annotations; + /** + * Optional. Labels are attributes that can be set and used by both the + * user and by Cloud Deploy. Labels must meet the following constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Output only. Time at which the `CustomTargetType` was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Most recent time at which the `CustomTargetType` was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + protected $definition; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Optional. Name of the `CustomTargetType`. Format is + * `projects/{project}/locations/{location}/customTargetTypes/{customTargetType}`. + * The `customTargetType` component must match + * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` + * @type string $custom_target_type_id + * Output only. Resource id of the `CustomTargetType`. + * @type string $uid + * Output only. Unique identifier of the `CustomTargetType`. + * @type string $description + * Optional. Description of the `CustomTargetType`. Max length is 255 + * characters. + * @type array|\Google\Protobuf\Internal\MapField $annotations + * Optional. User annotations. These attributes can only be set and used by + * the user, and not by Cloud Deploy. See + * https://google.aip.dev/128#annotations for more details such as format and + * size limitations. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. Labels are attributes that can be set and used by both the + * user and by Cloud Deploy. Labels must meet the following constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time at which the `CustomTargetType` was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Most recent time at which the `CustomTargetType` was updated. + * @type string $etag + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * @type \Google\Cloud\Deploy\V1\CustomTargetSkaffoldActions $custom_actions + * Configures render and deploy for the `CustomTargetType` using Skaffold + * custom actions. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Name of the `CustomTargetType`. Format is + * `projects/{project}/locations/{location}/customTargetTypes/{customTargetType}`. + * The `customTargetType` component must match + * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Optional. Name of the `CustomTargetType`. Format is + * `projects/{project}/locations/{location}/customTargetTypes/{customTargetType}`. + * The `customTargetType` component must match + * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. Resource id of the `CustomTargetType`. + * + * Generated from protobuf field string custom_target_type_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getCustomTargetTypeId() + { + return $this->custom_target_type_id; + } + + /** + * Output only. Resource id of the `CustomTargetType`. + * + * Generated from protobuf field string custom_target_type_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setCustomTargetTypeId($var) + { + GPBUtil::checkString($var, True); + $this->custom_target_type_id = $var; + + return $this; + } + + /** + * Output only. Unique identifier of the `CustomTargetType`. + * + * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. Unique identifier of the `CustomTargetType`. + * + * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Optional. Description of the `CustomTargetType`. Max length is 255 + * characters. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description of the `CustomTargetType`. Max length is 255 + * characters. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Optional. User annotations. These attributes can only be set and used by + * the user, and not by Cloud Deploy. See + * https://google.aip.dev/128#annotations for more details such as format and + * size limitations. + * + * Generated from protobuf field map annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getAnnotations() + { + return $this->annotations; + } + + /** + * Optional. User annotations. These attributes can only be set and used by + * the user, and not by Cloud Deploy. See + * https://google.aip.dev/128#annotations for more details such as format and + * size limitations. + * + * Generated from protobuf field map annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setAnnotations($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->annotations = $arr; + + return $this; + } + + /** + * Optional. Labels are attributes that can be set and used by both the + * user and by Cloud Deploy. Labels must meet the following constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. Labels are attributes that can be set and used by both the + * user and by Cloud Deploy. Labels must meet the following constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Output only. Time at which the `CustomTargetType` was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Time at which the `CustomTargetType` was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Most recent time at which the `CustomTargetType` was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Most recent time at which the `CustomTargetType` was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Configures render and deploy for the `CustomTargetType` using Skaffold + * custom actions. + * + * Generated from protobuf field .google.cloud.deploy.v1.CustomTargetSkaffoldActions custom_actions = 10; + * @return \Google\Cloud\Deploy\V1\CustomTargetSkaffoldActions|null + */ + public function getCustomActions() + { + return $this->readOneof(10); + } + + public function hasCustomActions() + { + return $this->hasOneof(10); + } + + /** + * Configures render and deploy for the `CustomTargetType` using Skaffold + * custom actions. + * + * Generated from protobuf field .google.cloud.deploy.v1.CustomTargetSkaffoldActions custom_actions = 10; + * @param \Google\Cloud\Deploy\V1\CustomTargetSkaffoldActions $var + * @return $this + */ + public function setCustomActions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CustomTargetSkaffoldActions::class); + $this->writeOneof(10, $var); + + return $this; + } + + /** + * @return string + */ + public function getDefinition() + { + return $this->whichOneof("definition"); + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetTypeNotificationEvent.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetTypeNotificationEvent.php new file mode 100644 index 000000000000..a4653f510059 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetTypeNotificationEvent.php @@ -0,0 +1,171 @@ +google.cloud.deploy.v1.CustomTargetTypeNotificationEvent + */ +class CustomTargetTypeNotificationEvent extends \Google\Protobuf\Internal\Message +{ + /** + * Debug message for when a notification fails to send. + * + * Generated from protobuf field string message = 1; + */ + protected $message = ''; + /** + * Unique identifier of the `CustomTargetType`. + * + * Generated from protobuf field string custom_target_type_uid = 4; + */ + protected $custom_target_type_uid = ''; + /** + * The name of the `CustomTargetType`. + * + * Generated from protobuf field string custom_target_type = 2; + */ + protected $custom_target_type = ''; + /** + * Type of this notification, e.g. for a Pub/Sub failure. + * + * Generated from protobuf field .google.cloud.deploy.v1.Type type = 3; + */ + protected $type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $message + * Debug message for when a notification fails to send. + * @type string $custom_target_type_uid + * Unique identifier of the `CustomTargetType`. + * @type string $custom_target_type + * The name of the `CustomTargetType`. + * @type int $type + * Type of this notification, e.g. for a Pub/Sub failure. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CustomtargettypeNotificationPayload::initOnce(); + parent::__construct($data); + } + + /** + * Debug message for when a notification fails to send. + * + * Generated from protobuf field string message = 1; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Debug message for when a notification fails to send. + * + * Generated from protobuf field string message = 1; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + + /** + * Unique identifier of the `CustomTargetType`. + * + * Generated from protobuf field string custom_target_type_uid = 4; + * @return string + */ + public function getCustomTargetTypeUid() + { + return $this->custom_target_type_uid; + } + + /** + * Unique identifier of the `CustomTargetType`. + * + * Generated from protobuf field string custom_target_type_uid = 4; + * @param string $var + * @return $this + */ + public function setCustomTargetTypeUid($var) + { + GPBUtil::checkString($var, True); + $this->custom_target_type_uid = $var; + + return $this; + } + + /** + * The name of the `CustomTargetType`. + * + * Generated from protobuf field string custom_target_type = 2; + * @return string + */ + public function getCustomTargetType() + { + return $this->custom_target_type; + } + + /** + * The name of the `CustomTargetType`. + * + * Generated from protobuf field string custom_target_type = 2; + * @param string $var + * @return $this + */ + public function setCustomTargetType($var) + { + GPBUtil::checkString($var, True); + $this->custom_target_type = $var; + + return $this; + } + + /** + * Type of this notification, e.g. for a Pub/Sub failure. + * + * Generated from protobuf field .google.cloud.deploy.v1.Type type = 3; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Type of this notification, e.g. for a Pub/Sub failure. + * + * Generated from protobuf field .google.cloud.deploy.v1.Type type = 3; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Type::class); + $this->type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DefaultPool.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DefaultPool.php new file mode 100644 index 000000000000..8e6bc4524fa3 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DefaultPool.php @@ -0,0 +1,121 @@ +google.cloud.deploy.v1.DefaultPool + */ +class DefaultPool extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Google service account to use for execution. If unspecified, + * the project execution service account + * (-compute@developer.gserviceaccount.com) will be used. + * + * Generated from protobuf field string service_account = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $service_account = ''; + /** + * Optional. Cloud Storage location where execution outputs should be stored. + * This can either be a bucket ("gs://my-bucket") or a path within a bucket + * ("gs://my-bucket/my-dir"). + * If unspecified, a default bucket located in the same region will be used. + * + * Generated from protobuf field string artifact_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $artifact_storage = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $service_account + * Optional. Google service account to use for execution. If unspecified, + * the project execution service account + * (-compute@developer.gserviceaccount.com) will be used. + * @type string $artifact_storage + * Optional. Cloud Storage location where execution outputs should be stored. + * This can either be a bucket ("gs://my-bucket") or a path within a bucket + * ("gs://my-bucket/my-dir"). + * If unspecified, a default bucket located in the same region will be used. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Google service account to use for execution. If unspecified, + * the project execution service account + * (-compute@developer.gserviceaccount.com) will be used. + * + * Generated from protobuf field string service_account = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getServiceAccount() + { + return $this->service_account; + } + + /** + * Optional. Google service account to use for execution. If unspecified, + * the project execution service account + * (-compute@developer.gserviceaccount.com) will be used. + * + * Generated from protobuf field string service_account = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setServiceAccount($var) + { + GPBUtil::checkString($var, True); + $this->service_account = $var; + + return $this; + } + + /** + * Optional. Cloud Storage location where execution outputs should be stored. + * This can either be a bucket ("gs://my-bucket") or a path within a bucket + * ("gs://my-bucket/my-dir"). + * If unspecified, a default bucket located in the same region will be used. + * + * Generated from protobuf field string artifact_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getArtifactStorage() + { + return $this->artifact_storage; + } + + /** + * Optional. Cloud Storage location where execution outputs should be stored. + * This can either be a bucket ("gs://my-bucket") or a path within a bucket + * ("gs://my-bucket/my-dir"). + * If unspecified, a default bucket located in the same region will be used. + * + * Generated from protobuf field string artifact_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setArtifactStorage($var) + { + GPBUtil::checkString($var, True); + $this->artifact_storage = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteAutomationRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteAutomationRequest.php new file mode 100644 index 000000000000..ee28d5549e58 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteAutomationRequest.php @@ -0,0 +1,282 @@ +google.cloud.deploy.v1.DeleteAutomationRequest + */ +class DeleteAutomationRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the `Automation` to delete. The format is + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $request_id = ''; + /** + * Optional. If set to true, then deleting an already deleted or non-existing + * `Automation` will succeed. + * + * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $allow_missing = false; + /** + * Optional. If set, validate the request and verify whether the resource + * exists, but do not actually post it. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + /** + * Optional. The weak etag of the request. + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + + /** + * @param string $name Required. The name of the `Automation` to delete. The format is + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`. Please see + * {@see CloudDeployClient::automationName()} for help formatting this field. + * + * @return \Google\Cloud\Deploy\V1\DeleteAutomationRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the `Automation` to delete. The format is + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`. + * @type string $request_id + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * @type bool $allow_missing + * Optional. If set to true, then deleting an already deleted or non-existing + * `Automation` will succeed. + * @type bool $validate_only + * Optional. If set, validate the request and verify whether the resource + * exists, but do not actually post it. + * @type string $etag + * Optional. The weak etag of the request. + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the `Automation` to delete. The format is + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the `Automation` to delete. The format is + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + + /** + * Optional. If set to true, then deleting an already deleted or non-existing + * `Automation` will succeed. + * + * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getAllowMissing() + { + return $this->allow_missing; + } + + /** + * Optional. If set to true, then deleting an already deleted or non-existing + * `Automation` will succeed. + * + * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setAllowMissing($var) + { + GPBUtil::checkBool($var); + $this->allow_missing = $var; + + return $this; + } + + /** + * Optional. If set, validate the request and verify whether the resource + * exists, but do not actually post it. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. If set, validate the request and verify whether the resource + * exists, but do not actually post it. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + + /** + * Optional. The weak etag of the request. + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. The weak etag of the request. + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteCustomTargetTypeRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteCustomTargetTypeRequest.php new file mode 100644 index 000000000000..47939212ecd7 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteCustomTargetTypeRequest.php @@ -0,0 +1,278 @@ +google.cloud.deploy.v1.DeleteCustomTargetTypeRequest + */ +class DeleteCustomTargetTypeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the `CustomTargetType` to delete. Format must be + * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $request_id = ''; + /** + * Optional. If set to true, then deleting an already deleted or non-existing + * `CustomTargetType` will succeed. + * + * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $allow_missing = false; + /** + * Optional. If set to true, the request is validated but no actual change is + * made. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + + /** + * @param string $name Required. The name of the `CustomTargetType` to delete. Format must be + * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`. Please see + * {@see CloudDeployClient::customTargetTypeName()} for help formatting this field. + * + * @return \Google\Cloud\Deploy\V1\DeleteCustomTargetTypeRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the `CustomTargetType` to delete. Format must be + * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`. + * @type string $request_id + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * @type bool $allow_missing + * Optional. If set to true, then deleting an already deleted or non-existing + * `CustomTargetType` will succeed. + * @type bool $validate_only + * Optional. If set to true, the request is validated but no actual change is + * made. + * @type string $etag + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the `CustomTargetType` to delete. Format must be + * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the `CustomTargetType` to delete. Format must be + * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + + /** + * Optional. If set to true, then deleting an already deleted or non-existing + * `CustomTargetType` will succeed. + * + * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getAllowMissing() + { + return $this->allow_missing; + } + + /** + * Optional. If set to true, then deleting an already deleted or non-existing + * `CustomTargetType` will succeed. + * + * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setAllowMissing($var) + { + GPBUtil::checkBool($var); + $this->allow_missing = $var; + + return $this; + } + + /** + * Optional. If set to true, the request is validated but no actual change is + * made. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. If set to true, the request is validated but no actual change is + * made. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteDeliveryPipelineRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteDeliveryPipelineRequest.php new file mode 100644 index 000000000000..7de0022bbbc3 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteDeliveryPipelineRequest.php @@ -0,0 +1,320 @@ +google.cloud.deploy.v1.DeleteDeliveryPipelineRequest + */ +class DeleteDeliveryPipelineRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the `DeliveryPipeline` to delete. The format is + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $request_id = ''; + /** + * Optional. If set to true, then deleting an already deleted or non-existing + * `DeliveryPipeline` will succeed. + * + * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $allow_missing = false; + /** + * Optional. If set, validate the request and preview the review, but do not + * actually post it. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + /** + * Optional. If set to true, all child resources under this pipeline will also + * be deleted. Otherwise, the request will only work if the pipeline has no + * child resources. + * + * Generated from protobuf field bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $force = false; + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + + /** + * @param string $name Required. The name of the `DeliveryPipeline` to delete. The format is + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. Please see + * {@see CloudDeployClient::deliveryPipelineName()} for help formatting this field. + * + * @return \Google\Cloud\Deploy\V1\DeleteDeliveryPipelineRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the `DeliveryPipeline` to delete. The format is + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. + * @type string $request_id + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * @type bool $allow_missing + * Optional. If set to true, then deleting an already deleted or non-existing + * `DeliveryPipeline` will succeed. + * @type bool $validate_only + * Optional. If set, validate the request and preview the review, but do not + * actually post it. + * @type bool $force + * Optional. If set to true, all child resources under this pipeline will also + * be deleted. Otherwise, the request will only work if the pipeline has no + * child resources. + * @type string $etag + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the `DeliveryPipeline` to delete. The format is + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the `DeliveryPipeline` to delete. The format is + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + + /** + * Optional. If set to true, then deleting an already deleted or non-existing + * `DeliveryPipeline` will succeed. + * + * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getAllowMissing() + { + return $this->allow_missing; + } + + /** + * Optional. If set to true, then deleting an already deleted or non-existing + * `DeliveryPipeline` will succeed. + * + * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setAllowMissing($var) + { + GPBUtil::checkBool($var); + $this->allow_missing = $var; + + return $this; + } + + /** + * Optional. If set, validate the request and preview the review, but do not + * actually post it. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. If set, validate the request and preview the review, but do not + * actually post it. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + + /** + * Optional. If set to true, all child resources under this pipeline will also + * be deleted. Otherwise, the request will only work if the pipeline has no + * child resources. + * + * Generated from protobuf field bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getForce() + { + return $this->force; + } + + /** + * Optional. If set to true, all child resources under this pipeline will also + * be deleted. Otherwise, the request will only work if the pipeline has no + * child resources. + * + * Generated from protobuf field bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setForce($var) + { + GPBUtil::checkBool($var); + $this->force = $var; + + return $this; + } + + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteDeployPolicyRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteDeployPolicyRequest.php new file mode 100644 index 000000000000..e77cc81e7544 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteDeployPolicyRequest.php @@ -0,0 +1,278 @@ +google.cloud.deploy.v1.DeleteDeployPolicyRequest + */ +class DeleteDeployPolicyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the `DeployPolicy` to delete. The format is + * `projects/{project_id}/locations/{location_name}/deployPolicies/{deploy_policy_name}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $request_id = ''; + /** + * Optional. If set to true, then deleting an already deleted or non-existing + * `DeployPolicy` will succeed. + * + * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $allow_missing = false; + /** + * Optional. If set, validate the request and preview the review, but do not + * actually post it. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + + /** + * @param string $name Required. The name of the `DeployPolicy` to delete. The format is + * `projects/{project_id}/locations/{location_name}/deployPolicies/{deploy_policy_name}`. Please see + * {@see CloudDeployClient::deployPolicyName()} for help formatting this field. + * + * @return \Google\Cloud\Deploy\V1\DeleteDeployPolicyRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the `DeployPolicy` to delete. The format is + * `projects/{project_id}/locations/{location_name}/deployPolicies/{deploy_policy_name}`. + * @type string $request_id + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * @type bool $allow_missing + * Optional. If set to true, then deleting an already deleted or non-existing + * `DeployPolicy` will succeed. + * @type bool $validate_only + * Optional. If set, validate the request and preview the review, but do not + * actually post it. + * @type string $etag + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the `DeployPolicy` to delete. The format is + * `projects/{project_id}/locations/{location_name}/deployPolicies/{deploy_policy_name}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the `DeployPolicy` to delete. The format is + * `projects/{project_id}/locations/{location_name}/deployPolicies/{deploy_policy_name}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + + /** + * Optional. If set to true, then deleting an already deleted or non-existing + * `DeployPolicy` will succeed. + * + * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getAllowMissing() + { + return $this->allow_missing; + } + + /** + * Optional. If set to true, then deleting an already deleted or non-existing + * `DeployPolicy` will succeed. + * + * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setAllowMissing($var) + { + GPBUtil::checkBool($var); + $this->allow_missing = $var; + + return $this; + } + + /** + * Optional. If set, validate the request and preview the review, but do not + * actually post it. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. If set, validate the request and preview the review, but do not + * actually post it. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteTargetRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteTargetRequest.php new file mode 100644 index 000000000000..fd4363c8cdb6 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteTargetRequest.php @@ -0,0 +1,278 @@ +google.cloud.deploy.v1.DeleteTargetRequest + */ +class DeleteTargetRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the `Target` to delete. The format is + * `projects/{project_id}/locations/{location_name}/targets/{target_name}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $request_id = ''; + /** + * Optional. If set to true, then deleting an already deleted or non-existing + * `Target` will succeed. + * + * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $allow_missing = false; + /** + * Optional. If set, validate the request and preview the review, but do not + * actually post it. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + + /** + * @param string $name Required. The name of the `Target` to delete. The format is + * `projects/{project_id}/locations/{location_name}/targets/{target_name}`. Please see + * {@see CloudDeployClient::targetName()} for help formatting this field. + * + * @return \Google\Cloud\Deploy\V1\DeleteTargetRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the `Target` to delete. The format is + * `projects/{project_id}/locations/{location_name}/targets/{target_name}`. + * @type string $request_id + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * @type bool $allow_missing + * Optional. If set to true, then deleting an already deleted or non-existing + * `Target` will succeed. + * @type bool $validate_only + * Optional. If set, validate the request and preview the review, but do not + * actually post it. + * @type string $etag + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the `Target` to delete. The format is + * `projects/{project_id}/locations/{location_name}/targets/{target_name}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the `Target` to delete. The format is + * `projects/{project_id}/locations/{location_name}/targets/{target_name}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + + /** + * Optional. If set to true, then deleting an already deleted or non-existing + * `Target` will succeed. + * + * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getAllowMissing() + { + return $this->allow_missing; + } + + /** + * Optional. If set to true, then deleting an already deleted or non-existing + * `Target` will succeed. + * + * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setAllowMissing($var) + { + GPBUtil::checkBool($var); + $this->allow_missing = $var; + + return $this; + } + + /** + * Optional. If set, validate the request and preview the review, but do not + * actually post it. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. If set, validate the request and preview the review, but do not + * actually post it. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeliveryPipeline.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeliveryPipeline.php new file mode 100644 index 000000000000..46ae0b0ad9a8 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeliveryPipeline.php @@ -0,0 +1,510 @@ +google.cloud.deploy.v1.DeliveryPipeline + */ +class DeliveryPipeline extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Name of the `DeliveryPipeline`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}`. + * The `deliveryPipeline` component must match + * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $name = ''; + /** + * Output only. Unique identifier of the `DeliveryPipeline`. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $uid = ''; + /** + * Description of the `DeliveryPipeline`. Max length is 255 characters. + * + * Generated from protobuf field string description = 3; + */ + protected $description = ''; + /** + * User annotations. These attributes can only be set and used by the + * user, and not by Cloud Deploy. + * + * Generated from protobuf field map annotations = 4; + */ + private $annotations; + /** + * Labels are attributes that can be set and used by both the + * user and by Cloud Deploy. Labels must meet the following constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. + * + * Generated from protobuf field map labels = 5; + */ + private $labels; + /** + * Output only. Time at which the pipeline was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Most recent time at which the pipeline was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Output only. Information around the state of the Delivery Pipeline. + * + * Generated from protobuf field .google.cloud.deploy.v1.PipelineCondition condition = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $condition = null; + /** + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 10; + */ + protected $etag = ''; + /** + * When suspended, no new releases or rollouts can be created, + * but in-progress ones will complete. + * + * Generated from protobuf field bool suspended = 12; + */ + protected $suspended = false; + protected $pipeline; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Optional. Name of the `DeliveryPipeline`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}`. + * The `deliveryPipeline` component must match + * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` + * @type string $uid + * Output only. Unique identifier of the `DeliveryPipeline`. + * @type string $description + * Description of the `DeliveryPipeline`. Max length is 255 characters. + * @type array|\Google\Protobuf\Internal\MapField $annotations + * User annotations. These attributes can only be set and used by the + * user, and not by Cloud Deploy. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Labels are attributes that can be set and used by both the + * user and by Cloud Deploy. Labels must meet the following constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time at which the pipeline was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Most recent time at which the pipeline was updated. + * @type \Google\Cloud\Deploy\V1\SerialPipeline $serial_pipeline + * SerialPipeline defines a sequential set of stages for a + * `DeliveryPipeline`. + * @type \Google\Cloud\Deploy\V1\PipelineCondition $condition + * Output only. Information around the state of the Delivery Pipeline. + * @type string $etag + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * @type bool $suspended + * When suspended, no new releases or rollouts can be created, + * but in-progress ones will complete. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Name of the `DeliveryPipeline`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}`. + * The `deliveryPipeline` component must match + * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Optional. Name of the `DeliveryPipeline`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}`. + * The `deliveryPipeline` component must match + * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. Unique identifier of the `DeliveryPipeline`. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. Unique identifier of the `DeliveryPipeline`. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Description of the `DeliveryPipeline`. Max length is 255 characters. + * + * Generated from protobuf field string description = 3; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Description of the `DeliveryPipeline`. Max length is 255 characters. + * + * Generated from protobuf field string description = 3; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * User annotations. These attributes can only be set and used by the + * user, and not by Cloud Deploy. + * + * Generated from protobuf field map annotations = 4; + * @return \Google\Protobuf\Internal\MapField + */ + public function getAnnotations() + { + return $this->annotations; + } + + /** + * User annotations. These attributes can only be set and used by the + * user, and not by Cloud Deploy. + * + * Generated from protobuf field map annotations = 4; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setAnnotations($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->annotations = $arr; + + return $this; + } + + /** + * Labels are attributes that can be set and used by both the + * user and by Cloud Deploy. Labels must meet the following constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. + * + * Generated from protobuf field map labels = 5; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Labels are attributes that can be set and used by both the + * user and by Cloud Deploy. Labels must meet the following constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. + * + * Generated from protobuf field map labels = 5; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Output only. Time at which the pipeline was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Time at which the pipeline was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Most recent time at which the pipeline was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Most recent time at which the pipeline was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * SerialPipeline defines a sequential set of stages for a + * `DeliveryPipeline`. + * + * Generated from protobuf field .google.cloud.deploy.v1.SerialPipeline serial_pipeline = 8; + * @return \Google\Cloud\Deploy\V1\SerialPipeline|null + */ + public function getSerialPipeline() + { + return $this->readOneof(8); + } + + public function hasSerialPipeline() + { + return $this->hasOneof(8); + } + + /** + * SerialPipeline defines a sequential set of stages for a + * `DeliveryPipeline`. + * + * Generated from protobuf field .google.cloud.deploy.v1.SerialPipeline serial_pipeline = 8; + * @param \Google\Cloud\Deploy\V1\SerialPipeline $var + * @return $this + */ + public function setSerialPipeline($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\SerialPipeline::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * Output only. Information around the state of the Delivery Pipeline. + * + * Generated from protobuf field .google.cloud.deploy.v1.PipelineCondition condition = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\PipelineCondition|null + */ + public function getCondition() + { + return $this->condition; + } + + public function hasCondition() + { + return isset($this->condition); + } + + public function clearCondition() + { + unset($this->condition); + } + + /** + * Output only. Information around the state of the Delivery Pipeline. + * + * Generated from protobuf field .google.cloud.deploy.v1.PipelineCondition condition = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\PipelineCondition $var + * @return $this + */ + public function setCondition($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\PipelineCondition::class); + $this->condition = $var; + + return $this; + } + + /** + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 10; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 10; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * When suspended, no new releases or rollouts can be created, + * but in-progress ones will complete. + * + * Generated from protobuf field bool suspended = 12; + * @return bool + */ + public function getSuspended() + { + return $this->suspended; + } + + /** + * When suspended, no new releases or rollouts can be created, + * but in-progress ones will complete. + * + * Generated from protobuf field bool suspended = 12; + * @param bool $var + * @return $this + */ + public function setSuspended($var) + { + GPBUtil::checkBool($var); + $this->suspended = $var; + + return $this; + } + + /** + * @return string + */ + public function getPipeline() + { + return $this->whichOneof("pipeline"); + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeliveryPipelineAttribute.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeliveryPipelineAttribute.php new file mode 100644 index 000000000000..ef1ee797ee72 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeliveryPipelineAttribute.php @@ -0,0 +1,113 @@ +google.cloud.deploy.v1.DeliveryPipelineAttribute + */ +class DeliveryPipelineAttribute extends \Google\Protobuf\Internal\Message +{ + /** + * ID of the `DeliveryPipeline`. The value of this field could be one of the + * following: + * * The last segment of a pipeline name + * * "*", all delivery pipelines in a location + * + * Generated from protobuf field string id = 1; + */ + protected $id = ''; + /** + * DeliveryPipeline labels. + * + * Generated from protobuf field map labels = 2; + */ + private $labels; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * ID of the `DeliveryPipeline`. The value of this field could be one of the + * following: + * * The last segment of a pipeline name + * * "*", all delivery pipelines in a location + * @type array|\Google\Protobuf\Internal\MapField $labels + * DeliveryPipeline labels. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * ID of the `DeliveryPipeline`. The value of this field could be one of the + * following: + * * The last segment of a pipeline name + * * "*", all delivery pipelines in a location + * + * Generated from protobuf field string id = 1; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * ID of the `DeliveryPipeline`. The value of this field could be one of the + * following: + * * The last segment of a pipeline name + * * "*", all delivery pipelines in a location + * + * Generated from protobuf field string id = 1; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * DeliveryPipeline labels. + * + * Generated from protobuf field map labels = 2; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * DeliveryPipeline labels. + * + * Generated from protobuf field map labels = 2; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeliveryPipelineNotificationEvent.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeliveryPipelineNotificationEvent.php new file mode 100644 index 000000000000..835a16910e9e --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeliveryPipelineNotificationEvent.php @@ -0,0 +1,171 @@ +google.cloud.deploy.v1.DeliveryPipelineNotificationEvent + */ +class DeliveryPipelineNotificationEvent extends \Google\Protobuf\Internal\Message +{ + /** + * Debug message for when a notification fails to send. + * + * Generated from protobuf field string message = 1; + */ + protected $message = ''; + /** + * Unique identifier of the `DeliveryPipeline`. + * + * Generated from protobuf field string pipeline_uid = 4; + */ + protected $pipeline_uid = ''; + /** + * The name of the `Delivery Pipeline`. + * + * Generated from protobuf field string delivery_pipeline = 2; + */ + protected $delivery_pipeline = ''; + /** + * Type of this notification, e.g. for a Pub/Sub failure. + * + * Generated from protobuf field .google.cloud.deploy.v1.Type type = 3; + */ + protected $type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $message + * Debug message for when a notification fails to send. + * @type string $pipeline_uid + * Unique identifier of the `DeliveryPipeline`. + * @type string $delivery_pipeline + * The name of the `Delivery Pipeline`. + * @type int $type + * Type of this notification, e.g. for a Pub/Sub failure. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\DeliverypipelineNotificationPayload::initOnce(); + parent::__construct($data); + } + + /** + * Debug message for when a notification fails to send. + * + * Generated from protobuf field string message = 1; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Debug message for when a notification fails to send. + * + * Generated from protobuf field string message = 1; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + + /** + * Unique identifier of the `DeliveryPipeline`. + * + * Generated from protobuf field string pipeline_uid = 4; + * @return string + */ + public function getPipelineUid() + { + return $this->pipeline_uid; + } + + /** + * Unique identifier of the `DeliveryPipeline`. + * + * Generated from protobuf field string pipeline_uid = 4; + * @param string $var + * @return $this + */ + public function setPipelineUid($var) + { + GPBUtil::checkString($var, True); + $this->pipeline_uid = $var; + + return $this; + } + + /** + * The name of the `Delivery Pipeline`. + * + * Generated from protobuf field string delivery_pipeline = 2; + * @return string + */ + public function getDeliveryPipeline() + { + return $this->delivery_pipeline; + } + + /** + * The name of the `Delivery Pipeline`. + * + * Generated from protobuf field string delivery_pipeline = 2; + * @param string $var + * @return $this + */ + public function setDeliveryPipeline($var) + { + GPBUtil::checkString($var, True); + $this->delivery_pipeline = $var; + + return $this; + } + + /** + * Type of this notification, e.g. for a Pub/Sub failure. + * + * Generated from protobuf field .google.cloud.deploy.v1.Type type = 3; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Type of this notification, e.g. for a Pub/Sub failure. + * + * Generated from protobuf field .google.cloud.deploy.v1.Type type = 3; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Type::class); + $this->type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployArtifact.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployArtifact.php new file mode 100644 index 000000000000..f7b78f40dd51 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployArtifact.php @@ -0,0 +1,109 @@ +google.cloud.deploy.v1.DeployArtifact + */ +class DeployArtifact extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. URI of a directory containing the artifacts. All paths are + * relative to this location. + * + * Generated from protobuf field string artifact_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $artifact_uri = ''; + /** + * Output only. File paths of the manifests applied during the deploy + * operation relative to the URI. + * + * Generated from protobuf field repeated string manifest_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $manifest_paths; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $artifact_uri + * Output only. URI of a directory containing the artifacts. All paths are + * relative to this location. + * @type array|\Google\Protobuf\Internal\RepeatedField $manifest_paths + * Output only. File paths of the manifests applied during the deploy + * operation relative to the URI. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Output only. URI of a directory containing the artifacts. All paths are + * relative to this location. + * + * Generated from protobuf field string artifact_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getArtifactUri() + { + return $this->artifact_uri; + } + + /** + * Output only. URI of a directory containing the artifacts. All paths are + * relative to this location. + * + * Generated from protobuf field string artifact_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setArtifactUri($var) + { + GPBUtil::checkString($var, True); + $this->artifact_uri = $var; + + return $this; + } + + /** + * Output only. File paths of the manifests applied during the deploy + * operation relative to the URI. + * + * Generated from protobuf field repeated string manifest_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getManifestPaths() + { + return $this->manifest_paths; + } + + /** + * Output only. File paths of the manifests applied during the deploy + * operation relative to the URI. + * + * Generated from protobuf field repeated string manifest_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setManifestPaths($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->manifest_paths = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJob.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJob.php new file mode 100644 index 000000000000..10225c0936ea --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJob.php @@ -0,0 +1,33 @@ +google.cloud.deploy.v1.DeployJob + */ +class DeployJob extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJobRun.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJobRun.php new file mode 100644 index 000000000000..87d81854fcbb --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJobRun.php @@ -0,0 +1,235 @@ +google.cloud.deploy.v1.DeployJobRun + */ +class DeployJobRun extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The resource name of the Cloud Build `Build` object that is + * used to deploy. Format is + * `projects/{project}/locations/{location}/builds/{build}`. + * + * Generated from protobuf field string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $build = ''; + /** + * Output only. The reason the deploy failed. This will always be unspecified + * while the deploy is in progress or if it succeeded. + * + * Generated from protobuf field .google.cloud.deploy.v1.DeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $failure_cause = 0; + /** + * Output only. Additional information about the deploy failure, if available. + * + * Generated from protobuf field string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $failure_message = ''; + /** + * Output only. Metadata containing information about the deploy job run. + * + * Generated from protobuf field .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $metadata = null; + /** + * Output only. The artifact of a deploy job run, if available. + * + * Generated from protobuf field .google.cloud.deploy.v1.DeployArtifact artifact = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $artifact = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $build + * Output only. The resource name of the Cloud Build `Build` object that is + * used to deploy. Format is + * `projects/{project}/locations/{location}/builds/{build}`. + * @type int $failure_cause + * Output only. The reason the deploy failed. This will always be unspecified + * while the deploy is in progress or if it succeeded. + * @type string $failure_message + * Output only. Additional information about the deploy failure, if available. + * @type \Google\Cloud\Deploy\V1\DeployJobRunMetadata $metadata + * Output only. Metadata containing information about the deploy job run. + * @type \Google\Cloud\Deploy\V1\DeployArtifact $artifact + * Output only. The artifact of a deploy job run, if available. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The resource name of the Cloud Build `Build` object that is + * used to deploy. Format is + * `projects/{project}/locations/{location}/builds/{build}`. + * + * Generated from protobuf field string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getBuild() + { + return $this->build; + } + + /** + * Output only. The resource name of the Cloud Build `Build` object that is + * used to deploy. Format is + * `projects/{project}/locations/{location}/builds/{build}`. + * + * Generated from protobuf field string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setBuild($var) + { + GPBUtil::checkString($var, True); + $this->build = $var; + + return $this; + } + + /** + * Output only. The reason the deploy failed. This will always be unspecified + * while the deploy is in progress or if it succeeded. + * + * Generated from protobuf field .google.cloud.deploy.v1.DeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getFailureCause() + { + return $this->failure_cause; + } + + /** + * Output only. The reason the deploy failed. This will always be unspecified + * while the deploy is in progress or if it succeeded. + * + * Generated from protobuf field .google.cloud.deploy.v1.DeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setFailureCause($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\DeployJobRun\FailureCause::class); + $this->failure_cause = $var; + + return $this; + } + + /** + * Output only. Additional information about the deploy failure, if available. + * + * Generated from protobuf field string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getFailureMessage() + { + return $this->failure_message; + } + + /** + * Output only. Additional information about the deploy failure, if available. + * + * Generated from protobuf field string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setFailureMessage($var) + { + GPBUtil::checkString($var, True); + $this->failure_message = $var; + + return $this; + } + + /** + * Output only. Metadata containing information about the deploy job run. + * + * Generated from protobuf field .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\DeployJobRunMetadata|null + */ + public function getMetadata() + { + return $this->metadata; + } + + public function hasMetadata() + { + return isset($this->metadata); + } + + public function clearMetadata() + { + unset($this->metadata); + } + + /** + * Output only. Metadata containing information about the deploy job run. + * + * Generated from protobuf field .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\DeployJobRunMetadata $var + * @return $this + */ + public function setMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\DeployJobRunMetadata::class); + $this->metadata = $var; + + return $this; + } + + /** + * Output only. The artifact of a deploy job run, if available. + * + * Generated from protobuf field .google.cloud.deploy.v1.DeployArtifact artifact = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\DeployArtifact|null + */ + public function getArtifact() + { + return $this->artifact; + } + + public function hasArtifact() + { + return isset($this->artifact); + } + + public function clearArtifact() + { + unset($this->artifact); + } + + /** + * Output only. The artifact of a deploy job run, if available. + * + * Generated from protobuf field .google.cloud.deploy.v1.DeployArtifact artifact = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\DeployArtifact $var + * @return $this + */ + public function setArtifact($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\DeployArtifact::class); + $this->artifact = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJobRun/FailureCause.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJobRun/FailureCause.php new file mode 100644 index 000000000000..fa77a22b0e5a --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJobRun/FailureCause.php @@ -0,0 +1,97 @@ +google.cloud.deploy.v1.DeployJobRun.FailureCause + */ +class FailureCause +{ + /** + * No reason for failure is specified. + * + * Generated from protobuf enum FAILURE_CAUSE_UNSPECIFIED = 0; + */ + const FAILURE_CAUSE_UNSPECIFIED = 0; + /** + * Cloud Build is not available, either because it is not enabled or because + * Cloud Deploy has insufficient permissions. See [Required + * permission](https://cloud.google.com/deploy/docs/cloud-deploy-service-account#required_permissions). + * + * Generated from protobuf enum CLOUD_BUILD_UNAVAILABLE = 1; + */ + const CLOUD_BUILD_UNAVAILABLE = 1; + /** + * The deploy operation did not complete successfully; check Cloud Build + * logs. + * + * Generated from protobuf enum EXECUTION_FAILED = 2; + */ + const EXECUTION_FAILED = 2; + /** + * The deploy job run did not complete within the alloted time. + * + * Generated from protobuf enum DEADLINE_EXCEEDED = 3; + */ + const DEADLINE_EXCEEDED = 3; + /** + * There were missing resources in the runtime environment required for a + * canary deployment. Check the Cloud Build logs for more information. + * + * Generated from protobuf enum MISSING_RESOURCES_FOR_CANARY = 4; + */ + const MISSING_RESOURCES_FOR_CANARY = 4; + /** + * Cloud Build failed to fulfill Cloud Deploy's request. See failure_message + * for additional details. + * + * Generated from protobuf enum CLOUD_BUILD_REQUEST_FAILED = 5; + */ + const CLOUD_BUILD_REQUEST_FAILED = 5; + /** + * The deploy operation had a feature configured that is not supported. + * + * Generated from protobuf enum DEPLOY_FEATURE_NOT_SUPPORTED = 6; + */ + const DEPLOY_FEATURE_NOT_SUPPORTED = 6; + + private static $valueToName = [ + self::FAILURE_CAUSE_UNSPECIFIED => 'FAILURE_CAUSE_UNSPECIFIED', + self::CLOUD_BUILD_UNAVAILABLE => 'CLOUD_BUILD_UNAVAILABLE', + self::EXECUTION_FAILED => 'EXECUTION_FAILED', + self::DEADLINE_EXCEEDED => 'DEADLINE_EXCEEDED', + self::MISSING_RESOURCES_FOR_CANARY => 'MISSING_RESOURCES_FOR_CANARY', + self::CLOUD_BUILD_REQUEST_FAILED => 'CLOUD_BUILD_REQUEST_FAILED', + self::DEPLOY_FEATURE_NOT_SUPPORTED => 'DEPLOY_FEATURE_NOT_SUPPORTED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(FailureCause::class, \Google\Cloud\Deploy\V1\DeployJobRun_FailureCause::class); + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJobRunMetadata.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJobRunMetadata.php new file mode 100644 index 000000000000..b1a4c47c9cbd --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJobRunMetadata.php @@ -0,0 +1,170 @@ +google.cloud.deploy.v1.DeployJobRunMetadata + */ +class DeployJobRunMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The name of the Cloud Run Service that is associated with a + * `DeployJobRun`. + * + * Generated from protobuf field .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $cloud_run = null; + /** + * Output only. Custom Target metadata associated with a `DeployJobRun`. + * + * Generated from protobuf field .google.cloud.deploy.v1.CustomTargetDeployMetadata custom_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $custom_target = null; + /** + * Output only. Custom metadata provided by user-defined deploy operation. + * + * Generated from protobuf field .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $custom = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Deploy\V1\CloudRunMetadata $cloud_run + * Output only. The name of the Cloud Run Service that is associated with a + * `DeployJobRun`. + * @type \Google\Cloud\Deploy\V1\CustomTargetDeployMetadata $custom_target + * Output only. Custom Target metadata associated with a `DeployJobRun`. + * @type \Google\Cloud\Deploy\V1\CustomMetadata $custom + * Output only. Custom metadata provided by user-defined deploy operation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The name of the Cloud Run Service that is associated with a + * `DeployJobRun`. + * + * Generated from protobuf field .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\CloudRunMetadata|null + */ + public function getCloudRun() + { + return $this->cloud_run; + } + + public function hasCloudRun() + { + return isset($this->cloud_run); + } + + public function clearCloudRun() + { + unset($this->cloud_run); + } + + /** + * Output only. The name of the Cloud Run Service that is associated with a + * `DeployJobRun`. + * + * Generated from protobuf field .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\CloudRunMetadata $var + * @return $this + */ + public function setCloudRun($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CloudRunMetadata::class); + $this->cloud_run = $var; + + return $this; + } + + /** + * Output only. Custom Target metadata associated with a `DeployJobRun`. + * + * Generated from protobuf field .google.cloud.deploy.v1.CustomTargetDeployMetadata custom_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\CustomTargetDeployMetadata|null + */ + public function getCustomTarget() + { + return $this->custom_target; + } + + public function hasCustomTarget() + { + return isset($this->custom_target); + } + + public function clearCustomTarget() + { + unset($this->custom_target); + } + + /** + * Output only. Custom Target metadata associated with a `DeployJobRun`. + * + * Generated from protobuf field .google.cloud.deploy.v1.CustomTargetDeployMetadata custom_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\CustomTargetDeployMetadata $var + * @return $this + */ + public function setCustomTarget($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CustomTargetDeployMetadata::class); + $this->custom_target = $var; + + return $this; + } + + /** + * Output only. Custom metadata provided by user-defined deploy operation. + * + * Generated from protobuf field .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\CustomMetadata|null + */ + public function getCustom() + { + return $this->custom; + } + + public function hasCustom() + { + return isset($this->custom); + } + + public function clearCustom() + { + unset($this->custom); + } + + /** + * Output only. Custom metadata provided by user-defined deploy operation. + * + * Generated from protobuf field .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\CustomMetadata $var + * @return $this + */ + public function setCustom($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CustomMetadata::class); + $this->custom = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployParameters.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployParameters.php new file mode 100644 index 000000000000..858f6f734f62 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployParameters.php @@ -0,0 +1,109 @@ +google.cloud.deploy.v1.DeployParameters + */ +class DeployParameters extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Values are deploy parameters in key-value pairs. + * + * Generated from protobuf field map values = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $values; + /** + * Optional. Deploy parameters are applied to targets with match labels. + * If unspecified, deploy parameters are applied to all targets (including + * child targets of a multi-target). + * + * Generated from protobuf field map match_target_labels = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $match_target_labels; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\MapField $values + * Required. Values are deploy parameters in key-value pairs. + * @type array|\Google\Protobuf\Internal\MapField $match_target_labels + * Optional. Deploy parameters are applied to targets with match labels. + * If unspecified, deploy parameters are applied to all targets (including + * child targets of a multi-target). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. Values are deploy parameters in key-value pairs. + * + * Generated from protobuf field map values = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getValues() + { + return $this->values; + } + + /** + * Required. Values are deploy parameters in key-value pairs. + * + * Generated from protobuf field map values = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setValues($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->values = $arr; + + return $this; + } + + /** + * Optional. Deploy parameters are applied to targets with match labels. + * If unspecified, deploy parameters are applied to all targets (including + * child targets of a multi-target). + * + * Generated from protobuf field map match_target_labels = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getMatchTargetLabels() + { + return $this->match_target_labels; + } + + /** + * Optional. Deploy parameters are applied to targets with match labels. + * If unspecified, deploy parameters are applied to all targets (including + * child targets of a multi-target). + * + * Generated from protobuf field map match_target_labels = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setMatchTargetLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->match_target_labels = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicy.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicy.php new file mode 100644 index 000000000000..0076a6bc9779 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicy.php @@ -0,0 +1,553 @@ +google.cloud.deploy.v1.DeployPolicy + */ +class DeployPolicy extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Name of the `DeployPolicy`. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. + * The `deployPolicy` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Output only. Unique identifier of the `DeployPolicy`. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $uid = ''; + /** + * Description of the `DeployPolicy`. Max length is 255 characters. + * + * Generated from protobuf field string description = 3; + */ + protected $description = ''; + /** + * User annotations. These attributes can only be set and used by the + * user, and not by Cloud Deploy. Annotations must meet the following + * constraints: + * * Annotations are key/value pairs. + * * Valid annotation keys have two segments: an optional prefix and name, + * separated by a slash (`/`). + * * The name segment is required and must be 63 characters or less, + * beginning and ending with an alphanumeric character (`[a-z0-9A-Z]`) with + * dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between. + * * The prefix is optional. If specified, the prefix must be a DNS subdomain: + * a series of DNS labels separated by dots(`.`), not longer than 253 + * characters in total, followed by a slash (`/`). + * See + * https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set + * for more details. + * + * Generated from protobuf field map annotations = 4; + */ + private $annotations; + /** + * Labels are attributes that can be set and used by both the + * user and by Cloud Deploy. Labels must meet the following constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. + * + * Generated from protobuf field map labels = 5; + */ + private $labels; + /** + * Output only. Time at which the deploy policy was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Most recent time at which the deploy policy was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * When suspended, the policy will not prevent actions from occurring, even + * if the action violates the policy. + * + * Generated from protobuf field bool suspended = 8; + */ + protected $suspended = false; + /** + * Required. Selected resources to which the policy will be applied. At least + * one selector is required. If one selector matches the resource the policy + * applies. For example, if there are two selectors and the action being + * attempted matches one of them, the policy will apply to that action. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.DeployPolicyResourceSelector selectors = 12 [(.google.api.field_behavior) = REQUIRED]; + */ + private $selectors; + /** + * Required. Rules to apply. At least one rule must be present. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.PolicyRule rules = 10 [(.google.api.field_behavior) = REQUIRED]; + */ + private $rules; + /** + * The weak etag of the `Automation` resource. + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 11; + */ + protected $etag = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Name of the `DeployPolicy`. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. + * The `deployPolicy` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` + * @type string $uid + * Output only. Unique identifier of the `DeployPolicy`. + * @type string $description + * Description of the `DeployPolicy`. Max length is 255 characters. + * @type array|\Google\Protobuf\Internal\MapField $annotations + * User annotations. These attributes can only be set and used by the + * user, and not by Cloud Deploy. Annotations must meet the following + * constraints: + * * Annotations are key/value pairs. + * * Valid annotation keys have two segments: an optional prefix and name, + * separated by a slash (`/`). + * * The name segment is required and must be 63 characters or less, + * beginning and ending with an alphanumeric character (`[a-z0-9A-Z]`) with + * dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between. + * * The prefix is optional. If specified, the prefix must be a DNS subdomain: + * a series of DNS labels separated by dots(`.`), not longer than 253 + * characters in total, followed by a slash (`/`). + * See + * https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set + * for more details. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Labels are attributes that can be set and used by both the + * user and by Cloud Deploy. Labels must meet the following constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time at which the deploy policy was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Most recent time at which the deploy policy was updated. + * @type bool $suspended + * When suspended, the policy will not prevent actions from occurring, even + * if the action violates the policy. + * @type array<\Google\Cloud\Deploy\V1\DeployPolicyResourceSelector>|\Google\Protobuf\Internal\RepeatedField $selectors + * Required. Selected resources to which the policy will be applied. At least + * one selector is required. If one selector matches the resource the policy + * applies. For example, if there are two selectors and the action being + * attempted matches one of them, the policy will apply to that action. + * @type array<\Google\Cloud\Deploy\V1\PolicyRule>|\Google\Protobuf\Internal\RepeatedField $rules + * Required. Rules to apply. At least one rule must be present. + * @type string $etag + * The weak etag of the `Automation` resource. + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Name of the `DeployPolicy`. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. + * The `deployPolicy` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Name of the `DeployPolicy`. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. + * The `deployPolicy` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. Unique identifier of the `DeployPolicy`. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. Unique identifier of the `DeployPolicy`. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Description of the `DeployPolicy`. Max length is 255 characters. + * + * Generated from protobuf field string description = 3; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Description of the `DeployPolicy`. Max length is 255 characters. + * + * Generated from protobuf field string description = 3; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * User annotations. These attributes can only be set and used by the + * user, and not by Cloud Deploy. Annotations must meet the following + * constraints: + * * Annotations are key/value pairs. + * * Valid annotation keys have two segments: an optional prefix and name, + * separated by a slash (`/`). + * * The name segment is required and must be 63 characters or less, + * beginning and ending with an alphanumeric character (`[a-z0-9A-Z]`) with + * dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between. + * * The prefix is optional. If specified, the prefix must be a DNS subdomain: + * a series of DNS labels separated by dots(`.`), not longer than 253 + * characters in total, followed by a slash (`/`). + * See + * https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set + * for more details. + * + * Generated from protobuf field map annotations = 4; + * @return \Google\Protobuf\Internal\MapField + */ + public function getAnnotations() + { + return $this->annotations; + } + + /** + * User annotations. These attributes can only be set and used by the + * user, and not by Cloud Deploy. Annotations must meet the following + * constraints: + * * Annotations are key/value pairs. + * * Valid annotation keys have two segments: an optional prefix and name, + * separated by a slash (`/`). + * * The name segment is required and must be 63 characters or less, + * beginning and ending with an alphanumeric character (`[a-z0-9A-Z]`) with + * dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between. + * * The prefix is optional. If specified, the prefix must be a DNS subdomain: + * a series of DNS labels separated by dots(`.`), not longer than 253 + * characters in total, followed by a slash (`/`). + * See + * https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set + * for more details. + * + * Generated from protobuf field map annotations = 4; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setAnnotations($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->annotations = $arr; + + return $this; + } + + /** + * Labels are attributes that can be set and used by both the + * user and by Cloud Deploy. Labels must meet the following constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. + * + * Generated from protobuf field map labels = 5; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Labels are attributes that can be set and used by both the + * user and by Cloud Deploy. Labels must meet the following constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. + * + * Generated from protobuf field map labels = 5; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Output only. Time at which the deploy policy was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Time at which the deploy policy was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Most recent time at which the deploy policy was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Most recent time at which the deploy policy was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * When suspended, the policy will not prevent actions from occurring, even + * if the action violates the policy. + * + * Generated from protobuf field bool suspended = 8; + * @return bool + */ + public function getSuspended() + { + return $this->suspended; + } + + /** + * When suspended, the policy will not prevent actions from occurring, even + * if the action violates the policy. + * + * Generated from protobuf field bool suspended = 8; + * @param bool $var + * @return $this + */ + public function setSuspended($var) + { + GPBUtil::checkBool($var); + $this->suspended = $var; + + return $this; + } + + /** + * Required. Selected resources to which the policy will be applied. At least + * one selector is required. If one selector matches the resource the policy + * applies. For example, if there are two selectors and the action being + * attempted matches one of them, the policy will apply to that action. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.DeployPolicyResourceSelector selectors = 12 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSelectors() + { + return $this->selectors; + } + + /** + * Required. Selected resources to which the policy will be applied. At least + * one selector is required. If one selector matches the resource the policy + * applies. For example, if there are two selectors and the action being + * attempted matches one of them, the policy will apply to that action. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.DeployPolicyResourceSelector selectors = 12 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Cloud\Deploy\V1\DeployPolicyResourceSelector>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSelectors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\DeployPolicyResourceSelector::class); + $this->selectors = $arr; + + return $this; + } + + /** + * Required. Rules to apply. At least one rule must be present. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.PolicyRule rules = 10 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRules() + { + return $this->rules; + } + + /** + * Required. Rules to apply. At least one rule must be present. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.PolicyRule rules = 10 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Cloud\Deploy\V1\PolicyRule>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\PolicyRule::class); + $this->rules = $arr; + + return $this; + } + + /** + * The weak etag of the `Automation` resource. + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 11; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * The weak etag of the `Automation` resource. + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 11; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicy/Invoker.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicy/Invoker.php new file mode 100644 index 000000000000..2d9a877bcf26 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicy/Invoker.php @@ -0,0 +1,66 @@ +google.cloud.deploy.v1.DeployPolicy.Invoker + */ +class Invoker +{ + /** + * Unspecified. + * + * Generated from protobuf enum INVOKER_UNSPECIFIED = 0; + */ + const INVOKER_UNSPECIFIED = 0; + /** + * The action is user-driven. For example, creating a rollout manually via a + * gcloud create command. + * + * Generated from protobuf enum USER = 1; + */ + const USER = 1; + /** + * Automated action by Cloud Deploy. + * + * Generated from protobuf enum DEPLOY_AUTOMATION = 2; + */ + const DEPLOY_AUTOMATION = 2; + + private static $valueToName = [ + self::INVOKER_UNSPECIFIED => 'INVOKER_UNSPECIFIED', + self::USER => 'USER', + self::DEPLOY_AUTOMATION => 'DEPLOY_AUTOMATION', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Invoker::class, \Google\Cloud\Deploy\V1\DeployPolicy_Invoker::class); + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicyEvaluationEvent.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicyEvaluationEvent.php new file mode 100644 index 000000000000..e898cdbc27a8 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicyEvaluationEvent.php @@ -0,0 +1,504 @@ +google.cloud.deploy.v1.DeployPolicyEvaluationEvent + */ +class DeployPolicyEvaluationEvent extends \Google\Protobuf\Internal\Message +{ + /** + * Debug message for when a deploy policy event occurs. + * + * Generated from protobuf field string message = 1; + */ + protected $message = ''; + /** + * Rule type (e.g. Restrict Rollouts). + * + * Generated from protobuf field string rule_type = 2; + */ + protected $rule_type = ''; + /** + * Rule id. + * + * Generated from protobuf field string rule = 3; + */ + protected $rule = ''; + /** + * Unique identifier of the `Delivery Pipeline`. + * + * Generated from protobuf field string pipeline_uid = 4; + */ + protected $pipeline_uid = ''; + /** + * The name of the `Delivery Pipeline`. + * + * Generated from protobuf field string delivery_pipeline = 5; + */ + protected $delivery_pipeline = ''; + /** + * Unique identifier of the `Target`. This is an optional field, as a `Target` + * may not always be applicable to a policy. + * + * Generated from protobuf field string target_uid = 6; + */ + protected $target_uid = ''; + /** + * The name of the `Target`. This is an optional field, as a `Target` may not + * always be applicable to a policy. + * + * Generated from protobuf field string target = 7; + */ + protected $target = ''; + /** + * What invoked the action (e.g. a user or automation). + * + * Generated from protobuf field .google.cloud.deploy.v1.DeployPolicy.Invoker invoker = 8; + */ + protected $invoker = 0; + /** + * The name of the `DeployPolicy`. + * + * Generated from protobuf field string deploy_policy = 9; + */ + protected $deploy_policy = ''; + /** + * Unique identifier of the `DeployPolicy`. + * + * Generated from protobuf field string deploy_policy_uid = 10; + */ + protected $deploy_policy_uid = ''; + /** + * Whether the request is allowed. Allowed is set as true if: + * (1) the request complies with the policy; or + * (2) the request doesn't comply with the policy but the policy was + * overridden; or + * (3) the request doesn't comply with the policy but the policy was suspended + * + * Generated from protobuf field bool allowed = 11; + */ + protected $allowed = false; + /** + * The policy verdict of the request. + * + * Generated from protobuf field .google.cloud.deploy.v1.DeployPolicyEvaluationEvent.PolicyVerdict verdict = 12; + */ + protected $verdict = 0; + /** + * Things that could have overridden the policy verdict. Overrides together + * with verdict decide whether the request is allowed. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.DeployPolicyEvaluationEvent.PolicyVerdictOverride overrides = 13; + */ + private $overrides; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $message + * Debug message for when a deploy policy event occurs. + * @type string $rule_type + * Rule type (e.g. Restrict Rollouts). + * @type string $rule + * Rule id. + * @type string $pipeline_uid + * Unique identifier of the `Delivery Pipeline`. + * @type string $delivery_pipeline + * The name of the `Delivery Pipeline`. + * @type string $target_uid + * Unique identifier of the `Target`. This is an optional field, as a `Target` + * may not always be applicable to a policy. + * @type string $target + * The name of the `Target`. This is an optional field, as a `Target` may not + * always be applicable to a policy. + * @type int $invoker + * What invoked the action (e.g. a user or automation). + * @type string $deploy_policy + * The name of the `DeployPolicy`. + * @type string $deploy_policy_uid + * Unique identifier of the `DeployPolicy`. + * @type bool $allowed + * Whether the request is allowed. Allowed is set as true if: + * (1) the request complies with the policy; or + * (2) the request doesn't comply with the policy but the policy was + * overridden; or + * (3) the request doesn't comply with the policy but the policy was suspended + * @type int $verdict + * The policy verdict of the request. + * @type array|\Google\Protobuf\Internal\RepeatedField $overrides + * Things that could have overridden the policy verdict. Overrides together + * with verdict decide whether the request is allowed. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\DeploypolicyEvaluationPayload::initOnce(); + parent::__construct($data); + } + + /** + * Debug message for when a deploy policy event occurs. + * + * Generated from protobuf field string message = 1; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Debug message for when a deploy policy event occurs. + * + * Generated from protobuf field string message = 1; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + + /** + * Rule type (e.g. Restrict Rollouts). + * + * Generated from protobuf field string rule_type = 2; + * @return string + */ + public function getRuleType() + { + return $this->rule_type; + } + + /** + * Rule type (e.g. Restrict Rollouts). + * + * Generated from protobuf field string rule_type = 2; + * @param string $var + * @return $this + */ + public function setRuleType($var) + { + GPBUtil::checkString($var, True); + $this->rule_type = $var; + + return $this; + } + + /** + * Rule id. + * + * Generated from protobuf field string rule = 3; + * @return string + */ + public function getRule() + { + return $this->rule; + } + + /** + * Rule id. + * + * Generated from protobuf field string rule = 3; + * @param string $var + * @return $this + */ + public function setRule($var) + { + GPBUtil::checkString($var, True); + $this->rule = $var; + + return $this; + } + + /** + * Unique identifier of the `Delivery Pipeline`. + * + * Generated from protobuf field string pipeline_uid = 4; + * @return string + */ + public function getPipelineUid() + { + return $this->pipeline_uid; + } + + /** + * Unique identifier of the `Delivery Pipeline`. + * + * Generated from protobuf field string pipeline_uid = 4; + * @param string $var + * @return $this + */ + public function setPipelineUid($var) + { + GPBUtil::checkString($var, True); + $this->pipeline_uid = $var; + + return $this; + } + + /** + * The name of the `Delivery Pipeline`. + * + * Generated from protobuf field string delivery_pipeline = 5; + * @return string + */ + public function getDeliveryPipeline() + { + return $this->delivery_pipeline; + } + + /** + * The name of the `Delivery Pipeline`. + * + * Generated from protobuf field string delivery_pipeline = 5; + * @param string $var + * @return $this + */ + public function setDeliveryPipeline($var) + { + GPBUtil::checkString($var, True); + $this->delivery_pipeline = $var; + + return $this; + } + + /** + * Unique identifier of the `Target`. This is an optional field, as a `Target` + * may not always be applicable to a policy. + * + * Generated from protobuf field string target_uid = 6; + * @return string + */ + public function getTargetUid() + { + return $this->target_uid; + } + + /** + * Unique identifier of the `Target`. This is an optional field, as a `Target` + * may not always be applicable to a policy. + * + * Generated from protobuf field string target_uid = 6; + * @param string $var + * @return $this + */ + public function setTargetUid($var) + { + GPBUtil::checkString($var, True); + $this->target_uid = $var; + + return $this; + } + + /** + * The name of the `Target`. This is an optional field, as a `Target` may not + * always be applicable to a policy. + * + * Generated from protobuf field string target = 7; + * @return string + */ + public function getTarget() + { + return $this->target; + } + + /** + * The name of the `Target`. This is an optional field, as a `Target` may not + * always be applicable to a policy. + * + * Generated from protobuf field string target = 7; + * @param string $var + * @return $this + */ + public function setTarget($var) + { + GPBUtil::checkString($var, True); + $this->target = $var; + + return $this; + } + + /** + * What invoked the action (e.g. a user or automation). + * + * Generated from protobuf field .google.cloud.deploy.v1.DeployPolicy.Invoker invoker = 8; + * @return int + */ + public function getInvoker() + { + return $this->invoker; + } + + /** + * What invoked the action (e.g. a user or automation). + * + * Generated from protobuf field .google.cloud.deploy.v1.DeployPolicy.Invoker invoker = 8; + * @param int $var + * @return $this + */ + public function setInvoker($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\DeployPolicy\Invoker::class); + $this->invoker = $var; + + return $this; + } + + /** + * The name of the `DeployPolicy`. + * + * Generated from protobuf field string deploy_policy = 9; + * @return string + */ + public function getDeployPolicy() + { + return $this->deploy_policy; + } + + /** + * The name of the `DeployPolicy`. + * + * Generated from protobuf field string deploy_policy = 9; + * @param string $var + * @return $this + */ + public function setDeployPolicy($var) + { + GPBUtil::checkString($var, True); + $this->deploy_policy = $var; + + return $this; + } + + /** + * Unique identifier of the `DeployPolicy`. + * + * Generated from protobuf field string deploy_policy_uid = 10; + * @return string + */ + public function getDeployPolicyUid() + { + return $this->deploy_policy_uid; + } + + /** + * Unique identifier of the `DeployPolicy`. + * + * Generated from protobuf field string deploy_policy_uid = 10; + * @param string $var + * @return $this + */ + public function setDeployPolicyUid($var) + { + GPBUtil::checkString($var, True); + $this->deploy_policy_uid = $var; + + return $this; + } + + /** + * Whether the request is allowed. Allowed is set as true if: + * (1) the request complies with the policy; or + * (2) the request doesn't comply with the policy but the policy was + * overridden; or + * (3) the request doesn't comply with the policy but the policy was suspended + * + * Generated from protobuf field bool allowed = 11; + * @return bool + */ + public function getAllowed() + { + return $this->allowed; + } + + /** + * Whether the request is allowed. Allowed is set as true if: + * (1) the request complies with the policy; or + * (2) the request doesn't comply with the policy but the policy was + * overridden; or + * (3) the request doesn't comply with the policy but the policy was suspended + * + * Generated from protobuf field bool allowed = 11; + * @param bool $var + * @return $this + */ + public function setAllowed($var) + { + GPBUtil::checkBool($var); + $this->allowed = $var; + + return $this; + } + + /** + * The policy verdict of the request. + * + * Generated from protobuf field .google.cloud.deploy.v1.DeployPolicyEvaluationEvent.PolicyVerdict verdict = 12; + * @return int + */ + public function getVerdict() + { + return $this->verdict; + } + + /** + * The policy verdict of the request. + * + * Generated from protobuf field .google.cloud.deploy.v1.DeployPolicyEvaluationEvent.PolicyVerdict verdict = 12; + * @param int $var + * @return $this + */ + public function setVerdict($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\DeployPolicyEvaluationEvent\PolicyVerdict::class); + $this->verdict = $var; + + return $this; + } + + /** + * Things that could have overridden the policy verdict. Overrides together + * with verdict decide whether the request is allowed. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.DeployPolicyEvaluationEvent.PolicyVerdictOverride overrides = 13; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOverrides() + { + return $this->overrides; + } + + /** + * Things that could have overridden the policy verdict. Overrides together + * with verdict decide whether the request is allowed. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.DeployPolicyEvaluationEvent.PolicyVerdictOverride overrides = 13; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOverrides($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Deploy\V1\DeployPolicyEvaluationEvent\PolicyVerdictOverride::class); + $this->overrides = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicyEvaluationEvent/PolicyVerdict.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicyEvaluationEvent/PolicyVerdict.php new file mode 100644 index 000000000000..24fad195a9c8 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicyEvaluationEvent/PolicyVerdict.php @@ -0,0 +1,66 @@ +google.cloud.deploy.v1.DeployPolicyEvaluationEvent.PolicyVerdict + */ +class PolicyVerdict +{ + /** + * This should never happen. + * + * Generated from protobuf enum POLICY_VERDICT_UNSPECIFIED = 0; + */ + const POLICY_VERDICT_UNSPECIFIED = 0; + /** + * Allowed by policy. This enum value is not currently used but may be used + * in the future. Currently logs are only generated when a request is denied + * by policy. + * + * Generated from protobuf enum ALLOWED_BY_POLICY = 1; + */ + const ALLOWED_BY_POLICY = 1; + /** + * Denied by policy. + * + * Generated from protobuf enum DENIED_BY_POLICY = 2; + */ + const DENIED_BY_POLICY = 2; + + private static $valueToName = [ + self::POLICY_VERDICT_UNSPECIFIED => 'POLICY_VERDICT_UNSPECIFIED', + self::ALLOWED_BY_POLICY => 'ALLOWED_BY_POLICY', + self::DENIED_BY_POLICY => 'DENIED_BY_POLICY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(PolicyVerdict::class, \Google\Cloud\Deploy\V1\DeployPolicyEvaluationEvent_PolicyVerdict::class); + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicyEvaluationEvent/PolicyVerdictOverride.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicyEvaluationEvent/PolicyVerdictOverride.php new file mode 100644 index 000000000000..16aa69e67465 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicyEvaluationEvent/PolicyVerdictOverride.php @@ -0,0 +1,65 @@ +google.cloud.deploy.v1.DeployPolicyEvaluationEvent.PolicyVerdictOverride + */ +class PolicyVerdictOverride +{ + /** + * This should never happen. + * + * Generated from protobuf enum POLICY_VERDICT_OVERRIDE_UNSPECIFIED = 0; + */ + const POLICY_VERDICT_OVERRIDE_UNSPECIFIED = 0; + /** + * The policy was overridden. + * + * Generated from protobuf enum POLICY_OVERRIDDEN = 1; + */ + const POLICY_OVERRIDDEN = 1; + /** + * The policy was suspended. + * + * Generated from protobuf enum POLICY_SUSPENDED = 2; + */ + const POLICY_SUSPENDED = 2; + + private static $valueToName = [ + self::POLICY_VERDICT_OVERRIDE_UNSPECIFIED => 'POLICY_VERDICT_OVERRIDE_UNSPECIFIED', + self::POLICY_OVERRIDDEN => 'POLICY_OVERRIDDEN', + self::POLICY_SUSPENDED => 'POLICY_SUSPENDED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(PolicyVerdictOverride::class, \Google\Cloud\Deploy\V1\DeployPolicyEvaluationEvent_PolicyVerdictOverride::class); + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicyNotificationEvent.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicyNotificationEvent.php new file mode 100644 index 000000000000..8b42ca6866e4 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicyNotificationEvent.php @@ -0,0 +1,175 @@ +google.cloud.deploy.v1.DeployPolicyNotificationEvent + */ +class DeployPolicyNotificationEvent extends \Google\Protobuf\Internal\Message +{ + /** + * Debug message for when a deploy policy fails to send a pub/sub + * notification. + * + * Generated from protobuf field string message = 1; + */ + protected $message = ''; + /** + * The name of the `DeployPolicy`. + * + * Generated from protobuf field string deploy_policy = 2; + */ + protected $deploy_policy = ''; + /** + * Unique identifier of the deploy policy. + * + * Generated from protobuf field string deploy_policy_uid = 3; + */ + protected $deploy_policy_uid = ''; + /** + * Type of this notification, e.g. for a Pub/Sub failure. + * + * Generated from protobuf field .google.cloud.deploy.v1.Type type = 4; + */ + protected $type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $message + * Debug message for when a deploy policy fails to send a pub/sub + * notification. + * @type string $deploy_policy + * The name of the `DeployPolicy`. + * @type string $deploy_policy_uid + * Unique identifier of the deploy policy. + * @type int $type + * Type of this notification, e.g. for a Pub/Sub failure. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\DeploypolicyNotificationPayload::initOnce(); + parent::__construct($data); + } + + /** + * Debug message for when a deploy policy fails to send a pub/sub + * notification. + * + * Generated from protobuf field string message = 1; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Debug message for when a deploy policy fails to send a pub/sub + * notification. + * + * Generated from protobuf field string message = 1; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + + /** + * The name of the `DeployPolicy`. + * + * Generated from protobuf field string deploy_policy = 2; + * @return string + */ + public function getDeployPolicy() + { + return $this->deploy_policy; + } + + /** + * The name of the `DeployPolicy`. + * + * Generated from protobuf field string deploy_policy = 2; + * @param string $var + * @return $this + */ + public function setDeployPolicy($var) + { + GPBUtil::checkString($var, True); + $this->deploy_policy = $var; + + return $this; + } + + /** + * Unique identifier of the deploy policy. + * + * Generated from protobuf field string deploy_policy_uid = 3; + * @return string + */ + public function getDeployPolicyUid() + { + return $this->deploy_policy_uid; + } + + /** + * Unique identifier of the deploy policy. + * + * Generated from protobuf field string deploy_policy_uid = 3; + * @param string $var + * @return $this + */ + public function setDeployPolicyUid($var) + { + GPBUtil::checkString($var, True); + $this->deploy_policy_uid = $var; + + return $this; + } + + /** + * Type of this notification, e.g. for a Pub/Sub failure. + * + * Generated from protobuf field .google.cloud.deploy.v1.Type type = 4; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Type of this notification, e.g. for a Pub/Sub failure. + * + * Generated from protobuf field .google.cloud.deploy.v1.Type type = 4; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Type::class); + $this->type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicyResourceSelector.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicyResourceSelector.php new file mode 100644 index 000000000000..e494158a745a --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicyResourceSelector.php @@ -0,0 +1,125 @@ +google.cloud.deploy.v1.DeployPolicyResourceSelector + */ +class DeployPolicyResourceSelector extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Contains attributes about a delivery pipeline. + * + * Generated from protobuf field .google.cloud.deploy.v1.DeliveryPipelineAttribute delivery_pipeline = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $delivery_pipeline = null; + /** + * Optional. Contains attributes about a target. + * + * Generated from protobuf field .google.cloud.deploy.v1.TargetAttribute target = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $target = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Deploy\V1\DeliveryPipelineAttribute $delivery_pipeline + * Optional. Contains attributes about a delivery pipeline. + * @type \Google\Cloud\Deploy\V1\TargetAttribute $target + * Optional. Contains attributes about a target. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Contains attributes about a delivery pipeline. + * + * Generated from protobuf field .google.cloud.deploy.v1.DeliveryPipelineAttribute delivery_pipeline = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Deploy\V1\DeliveryPipelineAttribute|null + */ + public function getDeliveryPipeline() + { + return $this->delivery_pipeline; + } + + public function hasDeliveryPipeline() + { + return isset($this->delivery_pipeline); + } + + public function clearDeliveryPipeline() + { + unset($this->delivery_pipeline); + } + + /** + * Optional. Contains attributes about a delivery pipeline. + * + * Generated from protobuf field .google.cloud.deploy.v1.DeliveryPipelineAttribute delivery_pipeline = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Deploy\V1\DeliveryPipelineAttribute $var + * @return $this + */ + public function setDeliveryPipeline($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\DeliveryPipelineAttribute::class); + $this->delivery_pipeline = $var; + + return $this; + } + + /** + * Optional. Contains attributes about a target. + * + * Generated from protobuf field .google.cloud.deploy.v1.TargetAttribute target = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Deploy\V1\TargetAttribute|null + */ + public function getTarget() + { + return $this->target; + } + + public function hasTarget() + { + return isset($this->target); + } + + public function clearTarget() + { + unset($this->target); + } + + /** + * Optional. Contains attributes about a target. + * + * Generated from protobuf field .google.cloud.deploy.v1.TargetAttribute target = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Deploy\V1\TargetAttribute $var + * @return $this + */ + public function setTarget($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\TargetAttribute::class); + $this->target = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeploymentJobs.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeploymentJobs.php new file mode 100644 index 000000000000..a4335b13b770 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeploymentJobs.php @@ -0,0 +1,209 @@ +google.cloud.deploy.v1.DeploymentJobs + */ +class DeploymentJobs extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The deploy Job. This is the deploy job in the phase. + * + * Generated from protobuf field .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $deploy_job = null; + /** + * Output only. The verify Job. Runs after a deploy if the deploy succeeds. + * + * Generated from protobuf field .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $verify_job = null; + /** + * Output only. The predeploy Job, which is the first job on the phase. + * + * Generated from protobuf field .google.cloud.deploy.v1.Job predeploy_job = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $predeploy_job = null; + /** + * Output only. The postdeploy Job, which is the last job on the phase. + * + * Generated from protobuf field .google.cloud.deploy.v1.Job postdeploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $postdeploy_job = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Deploy\V1\Job $deploy_job + * Output only. The deploy Job. This is the deploy job in the phase. + * @type \Google\Cloud\Deploy\V1\Job $verify_job + * Output only. The verify Job. Runs after a deploy if the deploy succeeds. + * @type \Google\Cloud\Deploy\V1\Job $predeploy_job + * Output only. The predeploy Job, which is the first job on the phase. + * @type \Google\Cloud\Deploy\V1\Job $postdeploy_job + * Output only. The postdeploy Job, which is the last job on the phase. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The deploy Job. This is the deploy job in the phase. + * + * Generated from protobuf field .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\Job|null + */ + public function getDeployJob() + { + return $this->deploy_job; + } + + public function hasDeployJob() + { + return isset($this->deploy_job); + } + + public function clearDeployJob() + { + unset($this->deploy_job); + } + + /** + * Output only. The deploy Job. This is the deploy job in the phase. + * + * Generated from protobuf field .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\Job $var + * @return $this + */ + public function setDeployJob($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Job::class); + $this->deploy_job = $var; + + return $this; + } + + /** + * Output only. The verify Job. Runs after a deploy if the deploy succeeds. + * + * Generated from protobuf field .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\Job|null + */ + public function getVerifyJob() + { + return $this->verify_job; + } + + public function hasVerifyJob() + { + return isset($this->verify_job); + } + + public function clearVerifyJob() + { + unset($this->verify_job); + } + + /** + * Output only. The verify Job. Runs after a deploy if the deploy succeeds. + * + * Generated from protobuf field .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\Job $var + * @return $this + */ + public function setVerifyJob($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Job::class); + $this->verify_job = $var; + + return $this; + } + + /** + * Output only. The predeploy Job, which is the first job on the phase. + * + * Generated from protobuf field .google.cloud.deploy.v1.Job predeploy_job = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\Job|null + */ + public function getPredeployJob() + { + return $this->predeploy_job; + } + + public function hasPredeployJob() + { + return isset($this->predeploy_job); + } + + public function clearPredeployJob() + { + unset($this->predeploy_job); + } + + /** + * Output only. The predeploy Job, which is the first job on the phase. + * + * Generated from protobuf field .google.cloud.deploy.v1.Job predeploy_job = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\Job $var + * @return $this + */ + public function setPredeployJob($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Job::class); + $this->predeploy_job = $var; + + return $this; + } + + /** + * Output only. The postdeploy Job, which is the last job on the phase. + * + * Generated from protobuf field .google.cloud.deploy.v1.Job postdeploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\Job|null + */ + public function getPostdeployJob() + { + return $this->postdeploy_job; + } + + public function hasPostdeployJob() + { + return isset($this->postdeploy_job); + } + + public function clearPostdeployJob() + { + unset($this->postdeploy_job); + } + + /** + * Output only. The postdeploy Job, which is the last job on the phase. + * + * Generated from protobuf field .google.cloud.deploy.v1.Job postdeploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\Job $var + * @return $this + */ + public function setPostdeployJob($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Job::class); + $this->postdeploy_job = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ExecutionConfig.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ExecutionConfig.php new file mode 100644 index 000000000000..3596cd3fcfa4 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ExecutionConfig.php @@ -0,0 +1,366 @@ +google.cloud.deploy.v1.ExecutionConfig + */ +class ExecutionConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Usages when this configuration should be applied. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage usages = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $usages; + /** + * Optional. The resource name of the `WorkerPool`, with the format + * `projects/{project}/locations/{location}/workerPools/{worker_pool}`. + * If this optional field is unspecified, the default Cloud Build pool will be + * used. + * + * Generated from protobuf field string worker_pool = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $worker_pool = ''; + /** + * Optional. Google service account to use for execution. If unspecified, + * the project execution service account + * (-compute@developer.gserviceaccount.com) is used. + * + * Generated from protobuf field string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $service_account = ''; + /** + * Optional. Cloud Storage location in which to store execution outputs. This + * can either be a bucket ("gs://my-bucket") or a path within a bucket + * ("gs://my-bucket/my-dir"). + * If unspecified, a default bucket located in the same region will be used. + * + * Generated from protobuf field string artifact_storage = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $artifact_storage = ''; + /** + * Optional. Execution timeout for a Cloud Build Execution. This must be + * between 10m and 24h in seconds format. If unspecified, a default timeout of + * 1h is used. + * + * Generated from protobuf field .google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $execution_timeout = null; + /** + * Optional. If true, additional logging will be enabled when running builds + * in this execution environment. + * + * Generated from protobuf field bool verbose = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $verbose = false; + protected $execution_environment; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $usages + * Required. Usages when this configuration should be applied. + * @type \Google\Cloud\Deploy\V1\DefaultPool $default_pool + * Optional. Use default Cloud Build pool. + * @type \Google\Cloud\Deploy\V1\PrivatePool $private_pool + * Optional. Use private Cloud Build pool. + * @type string $worker_pool + * Optional. The resource name of the `WorkerPool`, with the format + * `projects/{project}/locations/{location}/workerPools/{worker_pool}`. + * If this optional field is unspecified, the default Cloud Build pool will be + * used. + * @type string $service_account + * Optional. Google service account to use for execution. If unspecified, + * the project execution service account + * (-compute@developer.gserviceaccount.com) is used. + * @type string $artifact_storage + * Optional. Cloud Storage location in which to store execution outputs. This + * can either be a bucket ("gs://my-bucket") or a path within a bucket + * ("gs://my-bucket/my-dir"). + * If unspecified, a default bucket located in the same region will be used. + * @type \Google\Protobuf\Duration $execution_timeout + * Optional. Execution timeout for a Cloud Build Execution. This must be + * between 10m and 24h in seconds format. If unspecified, a default timeout of + * 1h is used. + * @type bool $verbose + * Optional. If true, additional logging will be enabled when running builds + * in this execution environment. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. Usages when this configuration should be applied. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage usages = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getUsages() + { + return $this->usages; + } + + /** + * Required. Usages when this configuration should be applied. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage usages = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setUsages($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Deploy\V1\ExecutionConfig\ExecutionEnvironmentUsage::class); + $this->usages = $arr; + + return $this; + } + + /** + * Optional. Use default Cloud Build pool. + * + * Generated from protobuf field .google.cloud.deploy.v1.DefaultPool default_pool = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Deploy\V1\DefaultPool|null + */ + public function getDefaultPool() + { + return $this->readOneof(2); + } + + public function hasDefaultPool() + { + return $this->hasOneof(2); + } + + /** + * Optional. Use default Cloud Build pool. + * + * Generated from protobuf field .google.cloud.deploy.v1.DefaultPool default_pool = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Deploy\V1\DefaultPool $var + * @return $this + */ + public function setDefaultPool($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\DefaultPool::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Optional. Use private Cloud Build pool. + * + * Generated from protobuf field .google.cloud.deploy.v1.PrivatePool private_pool = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Deploy\V1\PrivatePool|null + */ + public function getPrivatePool() + { + return $this->readOneof(3); + } + + public function hasPrivatePool() + { + return $this->hasOneof(3); + } + + /** + * Optional. Use private Cloud Build pool. + * + * Generated from protobuf field .google.cloud.deploy.v1.PrivatePool private_pool = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Deploy\V1\PrivatePool $var + * @return $this + */ + public function setPrivatePool($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\PrivatePool::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Optional. The resource name of the `WorkerPool`, with the format + * `projects/{project}/locations/{location}/workerPools/{worker_pool}`. + * If this optional field is unspecified, the default Cloud Build pool will be + * used. + * + * Generated from protobuf field string worker_pool = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getWorkerPool() + { + return $this->worker_pool; + } + + /** + * Optional. The resource name of the `WorkerPool`, with the format + * `projects/{project}/locations/{location}/workerPools/{worker_pool}`. + * If this optional field is unspecified, the default Cloud Build pool will be + * used. + * + * Generated from protobuf field string worker_pool = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setWorkerPool($var) + { + GPBUtil::checkString($var, True); + $this->worker_pool = $var; + + return $this; + } + + /** + * Optional. Google service account to use for execution. If unspecified, + * the project execution service account + * (-compute@developer.gserviceaccount.com) is used. + * + * Generated from protobuf field string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getServiceAccount() + { + return $this->service_account; + } + + /** + * Optional. Google service account to use for execution. If unspecified, + * the project execution service account + * (-compute@developer.gserviceaccount.com) is used. + * + * Generated from protobuf field string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setServiceAccount($var) + { + GPBUtil::checkString($var, True); + $this->service_account = $var; + + return $this; + } + + /** + * Optional. Cloud Storage location in which to store execution outputs. This + * can either be a bucket ("gs://my-bucket") or a path within a bucket + * ("gs://my-bucket/my-dir"). + * If unspecified, a default bucket located in the same region will be used. + * + * Generated from protobuf field string artifact_storage = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getArtifactStorage() + { + return $this->artifact_storage; + } + + /** + * Optional. Cloud Storage location in which to store execution outputs. This + * can either be a bucket ("gs://my-bucket") or a path within a bucket + * ("gs://my-bucket/my-dir"). + * If unspecified, a default bucket located in the same region will be used. + * + * Generated from protobuf field string artifact_storage = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setArtifactStorage($var) + { + GPBUtil::checkString($var, True); + $this->artifact_storage = $var; + + return $this; + } + + /** + * Optional. Execution timeout for a Cloud Build Execution. This must be + * between 10m and 24h in seconds format. If unspecified, a default timeout of + * 1h is used. + * + * Generated from protobuf field .google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Duration|null + */ + public function getExecutionTimeout() + { + return $this->execution_timeout; + } + + public function hasExecutionTimeout() + { + return isset($this->execution_timeout); + } + + public function clearExecutionTimeout() + { + unset($this->execution_timeout); + } + + /** + * Optional. Execution timeout for a Cloud Build Execution. This must be + * between 10m and 24h in seconds format. If unspecified, a default timeout of + * 1h is used. + * + * Generated from protobuf field .google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setExecutionTimeout($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->execution_timeout = $var; + + return $this; + } + + /** + * Optional. If true, additional logging will be enabled when running builds + * in this execution environment. + * + * Generated from protobuf field bool verbose = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getVerbose() + { + return $this->verbose; + } + + /** + * Optional. If true, additional logging will be enabled when running builds + * in this execution environment. + * + * Generated from protobuf field bool verbose = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setVerbose($var) + { + GPBUtil::checkBool($var); + $this->verbose = $var; + + return $this; + } + + /** + * @return string + */ + public function getExecutionEnvironment() + { + return $this->whichOneof("execution_environment"); + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ExecutionConfig/ExecutionEnvironmentUsage.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ExecutionConfig/ExecutionEnvironmentUsage.php new file mode 100644 index 000000000000..cab2e9f5b440 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ExecutionConfig/ExecutionEnvironmentUsage.php @@ -0,0 +1,85 @@ +google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage + */ +class ExecutionEnvironmentUsage +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum EXECUTION_ENVIRONMENT_USAGE_UNSPECIFIED = 0; + */ + const EXECUTION_ENVIRONMENT_USAGE_UNSPECIFIED = 0; + /** + * Use for rendering. + * + * Generated from protobuf enum RENDER = 1; + */ + const RENDER = 1; + /** + * Use for deploying and deployment hooks. + * + * Generated from protobuf enum DEPLOY = 2; + */ + const DEPLOY = 2; + /** + * Use for deployment verification. + * + * Generated from protobuf enum VERIFY = 3; + */ + const VERIFY = 3; + /** + * Use for predeploy job execution. + * + * Generated from protobuf enum PREDEPLOY = 4; + */ + const PREDEPLOY = 4; + /** + * Use for postdeploy job execution. + * + * Generated from protobuf enum POSTDEPLOY = 5; + */ + const POSTDEPLOY = 5; + + private static $valueToName = [ + self::EXECUTION_ENVIRONMENT_USAGE_UNSPECIFIED => 'EXECUTION_ENVIRONMENT_USAGE_UNSPECIFIED', + self::RENDER => 'RENDER', + self::DEPLOY => 'DEPLOY', + self::VERIFY => 'VERIFY', + self::PREDEPLOY => 'PREDEPLOY', + self::POSTDEPLOY => 'POSTDEPLOY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ExecutionEnvironmentUsage::class, \Google\Cloud\Deploy\V1\ExecutionConfig_ExecutionEnvironmentUsage::class); + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetAutomationRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetAutomationRequest.php new file mode 100644 index 000000000000..f124bb5f99e0 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetAutomationRequest.php @@ -0,0 +1,86 @@ +google.cloud.deploy.v1.GetAutomationRequest + */ +class GetAutomationRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the `Automation`. Format must be + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Name of the `Automation`. Format must be + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`. Please see + * {@see CloudDeployClient::automationName()} for help formatting this field. + * + * @return \Google\Cloud\Deploy\V1\GetAutomationRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Name of the `Automation`. Format must be + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the `Automation`. Format must be + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Name of the `Automation`. Format must be + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetAutomationRunRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetAutomationRunRequest.php new file mode 100644 index 000000000000..015abd5ea426 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetAutomationRunRequest.php @@ -0,0 +1,86 @@ +google.cloud.deploy.v1.GetAutomationRunRequest + */ +class GetAutomationRunRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the `AutomationRun`. Format must be + * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Name of the `AutomationRun`. Format must be + * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`. Please see + * {@see CloudDeployClient::automationRunName()} for help formatting this field. + * + * @return \Google\Cloud\Deploy\V1\GetAutomationRunRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Name of the `AutomationRun`. Format must be + * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the `AutomationRun`. Format must be + * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Name of the `AutomationRun`. Format must be + * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetConfigRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetConfigRequest.php new file mode 100644 index 000000000000..affb901f5728 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetConfigRequest.php @@ -0,0 +1,81 @@ +google.cloud.deploy.v1.GetConfigRequest + */ +class GetConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of requested configuration. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Name of requested configuration. Please see + * {@see CloudDeployClient::configName()} for help formatting this field. + * + * @return \Google\Cloud\Deploy\V1\GetConfigRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Name of requested configuration. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of requested configuration. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Name of requested configuration. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetCustomTargetTypeRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetCustomTargetTypeRequest.php new file mode 100644 index 000000000000..6ebe118b5a26 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetCustomTargetTypeRequest.php @@ -0,0 +1,86 @@ +google.cloud.deploy.v1.GetCustomTargetTypeRequest + */ +class GetCustomTargetTypeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the `CustomTargetType`. Format must be + * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Name of the `CustomTargetType`. Format must be + * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`. Please see + * {@see CloudDeployClient::customTargetTypeName()} for help formatting this field. + * + * @return \Google\Cloud\Deploy\V1\GetCustomTargetTypeRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Name of the `CustomTargetType`. Format must be + * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the `CustomTargetType`. Format must be + * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Name of the `CustomTargetType`. Format must be + * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetDeliveryPipelineRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetDeliveryPipelineRequest.php new file mode 100644 index 000000000000..739f790fa5f3 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetDeliveryPipelineRequest.php @@ -0,0 +1,86 @@ +google.cloud.deploy.v1.GetDeliveryPipelineRequest + */ +class GetDeliveryPipelineRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the `DeliveryPipeline`. Format must be + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Name of the `DeliveryPipeline`. Format must be + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. Please see + * {@see CloudDeployClient::deliveryPipelineName()} for help formatting this field. + * + * @return \Google\Cloud\Deploy\V1\GetDeliveryPipelineRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Name of the `DeliveryPipeline`. Format must be + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the `DeliveryPipeline`. Format must be + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Name of the `DeliveryPipeline`. Format must be + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetDeployPolicyRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetDeployPolicyRequest.php new file mode 100644 index 000000000000..2cc0c666cd17 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetDeployPolicyRequest.php @@ -0,0 +1,86 @@ +google.cloud.deploy.v1.GetDeployPolicyRequest + */ +class GetDeployPolicyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the `DeployPolicy`. Format must be + * `projects/{project_id}/locations/{location_name}/deployPolicies/{deploy_policy_name}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Name of the `DeployPolicy`. Format must be + * `projects/{project_id}/locations/{location_name}/deployPolicies/{deploy_policy_name}`. Please see + * {@see CloudDeployClient::deployPolicyName()} for help formatting this field. + * + * @return \Google\Cloud\Deploy\V1\GetDeployPolicyRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Name of the `DeployPolicy`. Format must be + * `projects/{project_id}/locations/{location_name}/deployPolicies/{deploy_policy_name}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the `DeployPolicy`. Format must be + * `projects/{project_id}/locations/{location_name}/deployPolicies/{deploy_policy_name}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Name of the `DeployPolicy`. Format must be + * `projects/{project_id}/locations/{location_name}/deployPolicies/{deploy_policy_name}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetJobRunRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetJobRunRequest.php new file mode 100644 index 000000000000..8e935669dd16 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetJobRunRequest.php @@ -0,0 +1,86 @@ +google.cloud.deploy.v1.GetJobRunRequest + */ +class GetJobRunRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the `JobRun`. Format must be + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Name of the `JobRun`. Format must be + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}`. Please see + * {@see CloudDeployClient::jobRunName()} for help formatting this field. + * + * @return \Google\Cloud\Deploy\V1\GetJobRunRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Name of the `JobRun`. Format must be + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the `JobRun`. Format must be + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Name of the `JobRun`. Format must be + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetReleaseRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetReleaseRequest.php new file mode 100644 index 000000000000..ee0d72b371ac --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetReleaseRequest.php @@ -0,0 +1,86 @@ +google.cloud.deploy.v1.GetReleaseRequest + */ +class GetReleaseRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the `Release`. Format must be + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Name of the `Release`. Format must be + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`. Please see + * {@see CloudDeployClient::releaseName()} for help formatting this field. + * + * @return \Google\Cloud\Deploy\V1\GetReleaseRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Name of the `Release`. Format must be + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the `Release`. Format must be + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Name of the `Release`. Format must be + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetRolloutRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetRolloutRequest.php new file mode 100644 index 000000000000..9ff5d3af52af --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetRolloutRequest.php @@ -0,0 +1,86 @@ +google.cloud.deploy.v1.GetRolloutRequest + */ +class GetRolloutRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the `Rollout`. Format must be + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Name of the `Rollout`. Format must be + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}`. Please see + * {@see CloudDeployClient::rolloutName()} for help formatting this field. + * + * @return \Google\Cloud\Deploy\V1\GetRolloutRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Name of the `Rollout`. Format must be + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the `Rollout`. Format must be + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Name of the `Rollout`. Format must be + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetTargetRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetTargetRequest.php new file mode 100644 index 000000000000..e88f8c170dd1 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetTargetRequest.php @@ -0,0 +1,86 @@ +google.cloud.deploy.v1.GetTargetRequest + */ +class GetTargetRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the `Target`. Format must be + * `projects/{project_id}/locations/{location_name}/targets/{target_name}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. Name of the `Target`. Format must be + * `projects/{project_id}/locations/{location_name}/targets/{target_name}`. Please see + * {@see CloudDeployClient::targetName()} for help formatting this field. + * + * @return \Google\Cloud\Deploy\V1\GetTargetRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Name of the `Target`. Format must be + * `projects/{project_id}/locations/{location_name}/targets/{target_name}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the `Target`. Format must be + * `projects/{project_id}/locations/{location_name}/targets/{target_name}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Name of the `Target`. Format must be + * `projects/{project_id}/locations/{location_name}/targets/{target_name}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GkeCluster.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GkeCluster.php new file mode 100644 index 000000000000..8910be4d6f79 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GkeCluster.php @@ -0,0 +1,171 @@ +google.cloud.deploy.v1.GkeCluster + */ +class GkeCluster extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Information specifying a GKE Cluster. Format is + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`. + * + * Generated from protobuf field string cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $cluster = ''; + /** + * Optional. If true, `cluster` is accessed using the private IP address of + * the control plane endpoint. Otherwise, the default IP address of the + * control plane endpoint is used. The default IP address is the private IP + * address for clusters with private control-plane endpoints and the public IP + * address otherwise. + * Only specify this option when `cluster` is a [private GKE + * cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept). + * + * Generated from protobuf field bool internal_ip = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $internal_ip = false; + /** + * Optional. If set, used to configure a + * [proxy](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#proxy) + * to the Kubernetes server. + * + * Generated from protobuf field string proxy_url = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $proxy_url = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $cluster + * Optional. Information specifying a GKE Cluster. Format is + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`. + * @type bool $internal_ip + * Optional. If true, `cluster` is accessed using the private IP address of + * the control plane endpoint. Otherwise, the default IP address of the + * control plane endpoint is used. The default IP address is the private IP + * address for clusters with private control-plane endpoints and the public IP + * address otherwise. + * Only specify this option when `cluster` is a [private GKE + * cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept). + * @type string $proxy_url + * Optional. If set, used to configure a + * [proxy](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#proxy) + * to the Kubernetes server. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Information specifying a GKE Cluster. Format is + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`. + * + * Generated from protobuf field string cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getCluster() + { + return $this->cluster; + } + + /** + * Optional. Information specifying a GKE Cluster. Format is + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`. + * + * Generated from protobuf field string cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setCluster($var) + { + GPBUtil::checkString($var, True); + $this->cluster = $var; + + return $this; + } + + /** + * Optional. If true, `cluster` is accessed using the private IP address of + * the control plane endpoint. Otherwise, the default IP address of the + * control plane endpoint is used. The default IP address is the private IP + * address for clusters with private control-plane endpoints and the public IP + * address otherwise. + * Only specify this option when `cluster` is a [private GKE + * cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept). + * + * Generated from protobuf field bool internal_ip = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getInternalIp() + { + return $this->internal_ip; + } + + /** + * Optional. If true, `cluster` is accessed using the private IP address of + * the control plane endpoint. Otherwise, the default IP address of the + * control plane endpoint is used. The default IP address is the private IP + * address for clusters with private control-plane endpoints and the public IP + * address otherwise. + * Only specify this option when `cluster` is a [private GKE + * cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept). + * + * Generated from protobuf field bool internal_ip = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setInternalIp($var) + { + GPBUtil::checkBool($var); + $this->internal_ip = $var; + + return $this; + } + + /** + * Optional. If set, used to configure a + * [proxy](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#proxy) + * to the Kubernetes server. + * + * Generated from protobuf field string proxy_url = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getProxyUrl() + { + return $this->proxy_url; + } + + /** + * Optional. If set, used to configure a + * [proxy](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#proxy) + * to the Kubernetes server. + * + * Generated from protobuf field string proxy_url = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setProxyUrl($var) + { + GPBUtil::checkString($var, True); + $this->proxy_url = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/IgnoreJobRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/IgnoreJobRequest.php new file mode 100644 index 000000000000..d191c4db127a --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/IgnoreJobRequest.php @@ -0,0 +1,196 @@ +google.cloud.deploy.v1.IgnoreJobRequest + */ +class IgnoreJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the Rollout. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. + * + * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $rollout = ''; + /** + * Required. The phase ID the Job to ignore belongs to. + * + * Generated from protobuf field string phase_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $phase_id = ''; + /** + * Required. The job ID for the Job to ignore. + * + * Generated from protobuf field string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $job_id = ''; + /** + * Optional. Deploy policies to override. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. + * + * Generated from protobuf field repeated string override_deploy_policy = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $override_deploy_policy; + + /** + * @param string $rollout Required. Name of the Rollout. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. Please see + * {@see CloudDeployClient::rolloutName()} for help formatting this field. + * @param string $phaseId Required. The phase ID the Job to ignore belongs to. + * @param string $jobId Required. The job ID for the Job to ignore. + * + * @return \Google\Cloud\Deploy\V1\IgnoreJobRequest + * + * @experimental + */ + public static function build(string $rollout, string $phaseId, string $jobId): self + { + return (new self()) + ->setRollout($rollout) + ->setPhaseId($phaseId) + ->setJobId($jobId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $rollout + * Required. Name of the Rollout. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. + * @type string $phase_id + * Required. The phase ID the Job to ignore belongs to. + * @type string $job_id + * Required. The job ID for the Job to ignore. + * @type array|\Google\Protobuf\Internal\RepeatedField $override_deploy_policy + * Optional. Deploy policies to override. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the Rollout. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. + * + * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getRollout() + { + return $this->rollout; + } + + /** + * Required. Name of the Rollout. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. + * + * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setRollout($var) + { + GPBUtil::checkString($var, True); + $this->rollout = $var; + + return $this; + } + + /** + * Required. The phase ID the Job to ignore belongs to. + * + * Generated from protobuf field string phase_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getPhaseId() + { + return $this->phase_id; + } + + /** + * Required. The phase ID the Job to ignore belongs to. + * + * Generated from protobuf field string phase_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setPhaseId($var) + { + GPBUtil::checkString($var, True); + $this->phase_id = $var; + + return $this; + } + + /** + * Required. The job ID for the Job to ignore. + * + * Generated from protobuf field string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getJobId() + { + return $this->job_id; + } + + /** + * Required. The job ID for the Job to ignore. + * + * Generated from protobuf field string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setJobId($var) + { + GPBUtil::checkString($var, True); + $this->job_id = $var; + + return $this; + } + + /** + * Optional. Deploy policies to override. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. + * + * Generated from protobuf field repeated string override_deploy_policy = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOverrideDeployPolicy() + { + return $this->override_deploy_policy; + } + + /** + * Optional. Deploy policies to override. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. + * + * Generated from protobuf field repeated string override_deploy_policy = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOverrideDeployPolicy($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->override_deploy_policy = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/IgnoreJobResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/IgnoreJobResponse.php new file mode 100644 index 000000000000..a48bda5ffdf9 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/IgnoreJobResponse.php @@ -0,0 +1,33 @@ +google.cloud.deploy.v1.IgnoreJobResponse + */ +class IgnoreJobResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Job.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Job.php new file mode 100644 index 000000000000..894b8658f331 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Job.php @@ -0,0 +1,384 @@ +google.cloud.deploy.v1.Job + */ +class Job extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The ID of the Job. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $id = ''; + /** + * Output only. The current state of the Job. + * + * Generated from protobuf field .google.cloud.deploy.v1.Job.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. Additional information on why the Job was skipped, if + * available. + * + * Generated from protobuf field string skip_message = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $skip_message = ''; + /** + * Output only. The name of the `JobRun` responsible for the most recent + * invocation of this Job. + * + * Generated from protobuf field string job_run = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $job_run = ''; + protected $job_type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * Output only. The ID of the Job. + * @type int $state + * Output only. The current state of the Job. + * @type string $skip_message + * Output only. Additional information on why the Job was skipped, if + * available. + * @type string $job_run + * Output only. The name of the `JobRun` responsible for the most recent + * invocation of this Job. + * @type \Google\Cloud\Deploy\V1\DeployJob $deploy_job + * Output only. A deploy Job. + * @type \Google\Cloud\Deploy\V1\VerifyJob $verify_job + * Output only. A verify Job. + * @type \Google\Cloud\Deploy\V1\PredeployJob $predeploy_job + * Output only. A predeploy Job. + * @type \Google\Cloud\Deploy\V1\PostdeployJob $postdeploy_job + * Output only. A postdeploy Job. + * @type \Google\Cloud\Deploy\V1\CreateChildRolloutJob $create_child_rollout_job + * Output only. A createChildRollout Job. + * @type \Google\Cloud\Deploy\V1\AdvanceChildRolloutJob $advance_child_rollout_job + * Output only. An advanceChildRollout Job. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The ID of the Job. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * Output only. The ID of the Job. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * Output only. The current state of the Job. + * + * Generated from protobuf field .google.cloud.deploy.v1.Job.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. The current state of the Job. + * + * Generated from protobuf field .google.cloud.deploy.v1.Job.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Job\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. Additional information on why the Job was skipped, if + * available. + * + * Generated from protobuf field string skip_message = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getSkipMessage() + { + return $this->skip_message; + } + + /** + * Output only. Additional information on why the Job was skipped, if + * available. + * + * Generated from protobuf field string skip_message = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setSkipMessage($var) + { + GPBUtil::checkString($var, True); + $this->skip_message = $var; + + return $this; + } + + /** + * Output only. The name of the `JobRun` responsible for the most recent + * invocation of this Job. + * + * Generated from protobuf field string job_run = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getJobRun() + { + return $this->job_run; + } + + /** + * Output only. The name of the `JobRun` responsible for the most recent + * invocation of this Job. + * + * Generated from protobuf field string job_run = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setJobRun($var) + { + GPBUtil::checkString($var, True); + $this->job_run = $var; + + return $this; + } + + /** + * Output only. A deploy Job. + * + * Generated from protobuf field .google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\DeployJob|null + */ + public function getDeployJob() + { + return $this->readOneof(4); + } + + public function hasDeployJob() + { + return $this->hasOneof(4); + } + + /** + * Output only. A deploy Job. + * + * Generated from protobuf field .google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\DeployJob $var + * @return $this + */ + public function setDeployJob($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\DeployJob::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Output only. A verify Job. + * + * Generated from protobuf field .google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\VerifyJob|null + */ + public function getVerifyJob() + { + return $this->readOneof(5); + } + + public function hasVerifyJob() + { + return $this->hasOneof(5); + } + + /** + * Output only. A verify Job. + * + * Generated from protobuf field .google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\VerifyJob $var + * @return $this + */ + public function setVerifyJob($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\VerifyJob::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Output only. A predeploy Job. + * + * Generated from protobuf field .google.cloud.deploy.v1.PredeployJob predeploy_job = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\PredeployJob|null + */ + public function getPredeployJob() + { + return $this->readOneof(9); + } + + public function hasPredeployJob() + { + return $this->hasOneof(9); + } + + /** + * Output only. A predeploy Job. + * + * Generated from protobuf field .google.cloud.deploy.v1.PredeployJob predeploy_job = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\PredeployJob $var + * @return $this + */ + public function setPredeployJob($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\PredeployJob::class); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * Output only. A postdeploy Job. + * + * Generated from protobuf field .google.cloud.deploy.v1.PostdeployJob postdeploy_job = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\PostdeployJob|null + */ + public function getPostdeployJob() + { + return $this->readOneof(10); + } + + public function hasPostdeployJob() + { + return $this->hasOneof(10); + } + + /** + * Output only. A postdeploy Job. + * + * Generated from protobuf field .google.cloud.deploy.v1.PostdeployJob postdeploy_job = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\PostdeployJob $var + * @return $this + */ + public function setPostdeployJob($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\PostdeployJob::class); + $this->writeOneof(10, $var); + + return $this; + } + + /** + * Output only. A createChildRollout Job. + * + * Generated from protobuf field .google.cloud.deploy.v1.CreateChildRolloutJob create_child_rollout_job = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\CreateChildRolloutJob|null + */ + public function getCreateChildRolloutJob() + { + return $this->readOneof(6); + } + + public function hasCreateChildRolloutJob() + { + return $this->hasOneof(6); + } + + /** + * Output only. A createChildRollout Job. + * + * Generated from protobuf field .google.cloud.deploy.v1.CreateChildRolloutJob create_child_rollout_job = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\CreateChildRolloutJob $var + * @return $this + */ + public function setCreateChildRolloutJob($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CreateChildRolloutJob::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * Output only. An advanceChildRollout Job. + * + * Generated from protobuf field .google.cloud.deploy.v1.AdvanceChildRolloutJob advance_child_rollout_job = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\AdvanceChildRolloutJob|null + */ + public function getAdvanceChildRolloutJob() + { + return $this->readOneof(7); + } + + public function hasAdvanceChildRolloutJob() + { + return $this->hasOneof(7); + } + + /** + * Output only. An advanceChildRollout Job. + * + * Generated from protobuf field .google.cloud.deploy.v1.AdvanceChildRolloutJob advance_child_rollout_job = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\AdvanceChildRolloutJob $var + * @return $this + */ + public function setAdvanceChildRolloutJob($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\AdvanceChildRolloutJob::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * @return string + */ + public function getJobType() + { + return $this->whichOneof("job_type"); + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Job/State.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Job/State.php new file mode 100644 index 000000000000..de523dfefaa6 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Job/State.php @@ -0,0 +1,106 @@ +google.cloud.deploy.v1.Job.State + */ +class State +{ + /** + * The Job has an unspecified state. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The Job is waiting for an earlier Phase(s) or Job(s) to complete. + * + * Generated from protobuf enum PENDING = 1; + */ + const PENDING = 1; + /** + * The Job is disabled. + * + * Generated from protobuf enum DISABLED = 2; + */ + const DISABLED = 2; + /** + * The Job is in progress. + * + * Generated from protobuf enum IN_PROGRESS = 3; + */ + const IN_PROGRESS = 3; + /** + * The Job succeeded. + * + * Generated from protobuf enum SUCCEEDED = 4; + */ + const SUCCEEDED = 4; + /** + * The Job failed. + * + * Generated from protobuf enum FAILED = 5; + */ + const FAILED = 5; + /** + * The Job was aborted. + * + * Generated from protobuf enum ABORTED = 6; + */ + const ABORTED = 6; + /** + * The Job was skipped. + * + * Generated from protobuf enum SKIPPED = 7; + */ + const SKIPPED = 7; + /** + * The Job was ignored. + * + * Generated from protobuf enum IGNORED = 8; + */ + const IGNORED = 8; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::PENDING => 'PENDING', + self::DISABLED => 'DISABLED', + self::IN_PROGRESS => 'IN_PROGRESS', + self::SUCCEEDED => 'SUCCEEDED', + self::FAILED => 'FAILED', + self::ABORTED => 'ABORTED', + self::SKIPPED => 'SKIPPED', + self::IGNORED => 'IGNORED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(State::class, \Google\Cloud\Deploy\V1\Job_State::class); + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/JobRun.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/JobRun.php new file mode 100644 index 000000000000..2a9a5fa9bc5e --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/JobRun.php @@ -0,0 +1,589 @@ +google.cloud.deploy.v1.JobRun + */ +class JobRun extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Name of the `JobRun`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{releases}/rollouts/{rollouts}/jobRuns/{uuid}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $name = ''; + /** + * Output only. Unique identifier of the `JobRun`. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $uid = ''; + /** + * Output only. ID of the `Rollout` phase this `JobRun` belongs in. + * + * Generated from protobuf field string phase_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $phase_id = ''; + /** + * Output only. ID of the `Rollout` job this `JobRun` corresponds to. + * + * Generated from protobuf field string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $job_id = ''; + /** + * Output only. Time at which the `JobRun` was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Time at which the `JobRun` was started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $start_time = null; + /** + * Output only. Time at which the `JobRun` ended. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $end_time = null; + /** + * Output only. The current state of the `JobRun`. + * + * Generated from protobuf field .google.cloud.deploy.v1.JobRun.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $etag = ''; + protected $job_run; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Optional. Name of the `JobRun`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{releases}/rollouts/{rollouts}/jobRuns/{uuid}`. + * @type string $uid + * Output only. Unique identifier of the `JobRun`. + * @type string $phase_id + * Output only. ID of the `Rollout` phase this `JobRun` belongs in. + * @type string $job_id + * Output only. ID of the `Rollout` job this `JobRun` corresponds to. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time at which the `JobRun` was created. + * @type \Google\Protobuf\Timestamp $start_time + * Output only. Time at which the `JobRun` was started. + * @type \Google\Protobuf\Timestamp $end_time + * Output only. Time at which the `JobRun` ended. + * @type int $state + * Output only. The current state of the `JobRun`. + * @type \Google\Cloud\Deploy\V1\DeployJobRun $deploy_job_run + * Output only. Information specific to a deploy `JobRun`. + * @type \Google\Cloud\Deploy\V1\VerifyJobRun $verify_job_run + * Output only. Information specific to a verify `JobRun`. + * @type \Google\Cloud\Deploy\V1\PredeployJobRun $predeploy_job_run + * Output only. Information specific to a predeploy `JobRun`. + * @type \Google\Cloud\Deploy\V1\PostdeployJobRun $postdeploy_job_run + * Output only. Information specific to a postdeploy `JobRun`. + * @type \Google\Cloud\Deploy\V1\CreateChildRolloutJobRun $create_child_rollout_job_run + * Output only. Information specific to a createChildRollout `JobRun`. + * @type \Google\Cloud\Deploy\V1\AdvanceChildRolloutJobRun $advance_child_rollout_job_run + * Output only. Information specific to an advanceChildRollout `JobRun` + * @type string $etag + * Output only. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Name of the `JobRun`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{releases}/rollouts/{rollouts}/jobRuns/{uuid}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Optional. Name of the `JobRun`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{releases}/rollouts/{rollouts}/jobRuns/{uuid}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. Unique identifier of the `JobRun`. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. Unique identifier of the `JobRun`. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Output only. ID of the `Rollout` phase this `JobRun` belongs in. + * + * Generated from protobuf field string phase_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getPhaseId() + { + return $this->phase_id; + } + + /** + * Output only. ID of the `Rollout` phase this `JobRun` belongs in. + * + * Generated from protobuf field string phase_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setPhaseId($var) + { + GPBUtil::checkString($var, True); + $this->phase_id = $var; + + return $this; + } + + /** + * Output only. ID of the `Rollout` job this `JobRun` corresponds to. + * + * Generated from protobuf field string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getJobId() + { + return $this->job_id; + } + + /** + * Output only. ID of the `Rollout` job this `JobRun` corresponds to. + * + * Generated from protobuf field string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setJobId($var) + { + GPBUtil::checkString($var, True); + $this->job_id = $var; + + return $this; + } + + /** + * Output only. Time at which the `JobRun` was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Time at which the `JobRun` was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Time at which the `JobRun` was started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getStartTime() + { + return $this->start_time; + } + + public function hasStartTime() + { + return isset($this->start_time); + } + + public function clearStartTime() + { + unset($this->start_time); + } + + /** + * Output only. Time at which the `JobRun` was started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + + /** + * Output only. Time at which the `JobRun` ended. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEndTime() + { + return $this->end_time; + } + + public function hasEndTime() + { + return isset($this->end_time); + } + + public function clearEndTime() + { + unset($this->end_time); + } + + /** + * Output only. Time at which the `JobRun` ended. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + + /** + * Output only. The current state of the `JobRun`. + * + * Generated from protobuf field .google.cloud.deploy.v1.JobRun.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. The current state of the `JobRun`. + * + * Generated from protobuf field .google.cloud.deploy.v1.JobRun.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\JobRun\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. Information specific to a deploy `JobRun`. + * + * Generated from protobuf field .google.cloud.deploy.v1.DeployJobRun deploy_job_run = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\DeployJobRun|null + */ + public function getDeployJobRun() + { + return $this->readOneof(9); + } + + public function hasDeployJobRun() + { + return $this->hasOneof(9); + } + + /** + * Output only. Information specific to a deploy `JobRun`. + * + * Generated from protobuf field .google.cloud.deploy.v1.DeployJobRun deploy_job_run = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\DeployJobRun $var + * @return $this + */ + public function setDeployJobRun($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\DeployJobRun::class); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * Output only. Information specific to a verify `JobRun`. + * + * Generated from protobuf field .google.cloud.deploy.v1.VerifyJobRun verify_job_run = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\VerifyJobRun|null + */ + public function getVerifyJobRun() + { + return $this->readOneof(10); + } + + public function hasVerifyJobRun() + { + return $this->hasOneof(10); + } + + /** + * Output only. Information specific to a verify `JobRun`. + * + * Generated from protobuf field .google.cloud.deploy.v1.VerifyJobRun verify_job_run = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\VerifyJobRun $var + * @return $this + */ + public function setVerifyJobRun($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\VerifyJobRun::class); + $this->writeOneof(10, $var); + + return $this; + } + + /** + * Output only. Information specific to a predeploy `JobRun`. + * + * Generated from protobuf field .google.cloud.deploy.v1.PredeployJobRun predeploy_job_run = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\PredeployJobRun|null + */ + public function getPredeployJobRun() + { + return $this->readOneof(14); + } + + public function hasPredeployJobRun() + { + return $this->hasOneof(14); + } + + /** + * Output only. Information specific to a predeploy `JobRun`. + * + * Generated from protobuf field .google.cloud.deploy.v1.PredeployJobRun predeploy_job_run = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\PredeployJobRun $var + * @return $this + */ + public function setPredeployJobRun($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\PredeployJobRun::class); + $this->writeOneof(14, $var); + + return $this; + } + + /** + * Output only. Information specific to a postdeploy `JobRun`. + * + * Generated from protobuf field .google.cloud.deploy.v1.PostdeployJobRun postdeploy_job_run = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\PostdeployJobRun|null + */ + public function getPostdeployJobRun() + { + return $this->readOneof(15); + } + + public function hasPostdeployJobRun() + { + return $this->hasOneof(15); + } + + /** + * Output only. Information specific to a postdeploy `JobRun`. + * + * Generated from protobuf field .google.cloud.deploy.v1.PostdeployJobRun postdeploy_job_run = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\PostdeployJobRun $var + * @return $this + */ + public function setPostdeployJobRun($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\PostdeployJobRun::class); + $this->writeOneof(15, $var); + + return $this; + } + + /** + * Output only. Information specific to a createChildRollout `JobRun`. + * + * Generated from protobuf field .google.cloud.deploy.v1.CreateChildRolloutJobRun create_child_rollout_job_run = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\CreateChildRolloutJobRun|null + */ + public function getCreateChildRolloutJobRun() + { + return $this->readOneof(12); + } + + public function hasCreateChildRolloutJobRun() + { + return $this->hasOneof(12); + } + + /** + * Output only. Information specific to a createChildRollout `JobRun`. + * + * Generated from protobuf field .google.cloud.deploy.v1.CreateChildRolloutJobRun create_child_rollout_job_run = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\CreateChildRolloutJobRun $var + * @return $this + */ + public function setCreateChildRolloutJobRun($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CreateChildRolloutJobRun::class); + $this->writeOneof(12, $var); + + return $this; + } + + /** + * Output only. Information specific to an advanceChildRollout `JobRun` + * + * Generated from protobuf field .google.cloud.deploy.v1.AdvanceChildRolloutJobRun advance_child_rollout_job_run = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\AdvanceChildRolloutJobRun|null + */ + public function getAdvanceChildRolloutJobRun() + { + return $this->readOneof(13); + } + + public function hasAdvanceChildRolloutJobRun() + { + return $this->hasOneof(13); + } + + /** + * Output only. Information specific to an advanceChildRollout `JobRun` + * + * Generated from protobuf field .google.cloud.deploy.v1.AdvanceChildRolloutJobRun advance_child_rollout_job_run = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\AdvanceChildRolloutJobRun $var + * @return $this + */ + public function setAdvanceChildRolloutJobRun($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\AdvanceChildRolloutJobRun::class); + $this->writeOneof(13, $var); + + return $this; + } + + /** + * Output only. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Output only. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * @return string + */ + public function getJobRun() + { + return $this->whichOneof("job_run"); + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/JobRun/State.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/JobRun/State.php new file mode 100644 index 000000000000..df8b7b7d61cf --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/JobRun/State.php @@ -0,0 +1,85 @@ +google.cloud.deploy.v1.JobRun.State + */ +class State +{ + /** + * The `JobRun` has an unspecified state. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The `JobRun` is in progress. + * + * Generated from protobuf enum IN_PROGRESS = 1; + */ + const IN_PROGRESS = 1; + /** + * The `JobRun` has succeeded. + * + * Generated from protobuf enum SUCCEEDED = 2; + */ + const SUCCEEDED = 2; + /** + * The `JobRun` has failed. + * + * Generated from protobuf enum FAILED = 3; + */ + const FAILED = 3; + /** + * The `JobRun` is terminating. + * + * Generated from protobuf enum TERMINATING = 4; + */ + const TERMINATING = 4; + /** + * The `JobRun` was terminated. + * + * Generated from protobuf enum TERMINATED = 5; + */ + const TERMINATED = 5; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::IN_PROGRESS => 'IN_PROGRESS', + self::SUCCEEDED => 'SUCCEEDED', + self::FAILED => 'FAILED', + self::TERMINATING => 'TERMINATING', + self::TERMINATED => 'TERMINATED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(State::class, \Google\Cloud\Deploy\V1\JobRun_State::class); + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/JobRunNotificationEvent.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/JobRunNotificationEvent.php new file mode 100644 index 000000000000..74416dde71d6 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/JobRunNotificationEvent.php @@ -0,0 +1,341 @@ +google.cloud.deploy.v1.JobRunNotificationEvent + */ +class JobRunNotificationEvent extends \Google\Protobuf\Internal\Message +{ + /** + * Debug message for when a notification fails to send. + * + * Generated from protobuf field string message = 1; + */ + protected $message = ''; + /** + * The name of the `JobRun`. + * + * Generated from protobuf field string job_run = 2; + */ + protected $job_run = ''; + /** + * Unique identifier of the `DeliveryPipeline`. + * + * Generated from protobuf field string pipeline_uid = 3; + */ + protected $pipeline_uid = ''; + /** + * Unique identifier of the `Release`. + * + * Generated from protobuf field string release_uid = 4; + */ + protected $release_uid = ''; + /** + * The name of the `Release`. + * + * Generated from protobuf field string release = 8; + */ + protected $release = ''; + /** + * Unique identifier of the `Rollout`. + * + * Generated from protobuf field string rollout_uid = 5; + */ + protected $rollout_uid = ''; + /** + * The name of the `Rollout`. + * + * Generated from protobuf field string rollout = 9; + */ + protected $rollout = ''; + /** + * ID of the `Target`. + * + * Generated from protobuf field string target_id = 6; + */ + protected $target_id = ''; + /** + * Type of this notification, e.g. for a Pub/Sub failure. + * + * Generated from protobuf field .google.cloud.deploy.v1.Type type = 7; + */ + protected $type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $message + * Debug message for when a notification fails to send. + * @type string $job_run + * The name of the `JobRun`. + * @type string $pipeline_uid + * Unique identifier of the `DeliveryPipeline`. + * @type string $release_uid + * Unique identifier of the `Release`. + * @type string $release + * The name of the `Release`. + * @type string $rollout_uid + * Unique identifier of the `Rollout`. + * @type string $rollout + * The name of the `Rollout`. + * @type string $target_id + * ID of the `Target`. + * @type int $type + * Type of this notification, e.g. for a Pub/Sub failure. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\JobrunNotificationPayload::initOnce(); + parent::__construct($data); + } + + /** + * Debug message for when a notification fails to send. + * + * Generated from protobuf field string message = 1; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Debug message for when a notification fails to send. + * + * Generated from protobuf field string message = 1; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + + /** + * The name of the `JobRun`. + * + * Generated from protobuf field string job_run = 2; + * @return string + */ + public function getJobRun() + { + return $this->job_run; + } + + /** + * The name of the `JobRun`. + * + * Generated from protobuf field string job_run = 2; + * @param string $var + * @return $this + */ + public function setJobRun($var) + { + GPBUtil::checkString($var, True); + $this->job_run = $var; + + return $this; + } + + /** + * Unique identifier of the `DeliveryPipeline`. + * + * Generated from protobuf field string pipeline_uid = 3; + * @return string + */ + public function getPipelineUid() + { + return $this->pipeline_uid; + } + + /** + * Unique identifier of the `DeliveryPipeline`. + * + * Generated from protobuf field string pipeline_uid = 3; + * @param string $var + * @return $this + */ + public function setPipelineUid($var) + { + GPBUtil::checkString($var, True); + $this->pipeline_uid = $var; + + return $this; + } + + /** + * Unique identifier of the `Release`. + * + * Generated from protobuf field string release_uid = 4; + * @return string + */ + public function getReleaseUid() + { + return $this->release_uid; + } + + /** + * Unique identifier of the `Release`. + * + * Generated from protobuf field string release_uid = 4; + * @param string $var + * @return $this + */ + public function setReleaseUid($var) + { + GPBUtil::checkString($var, True); + $this->release_uid = $var; + + return $this; + } + + /** + * The name of the `Release`. + * + * Generated from protobuf field string release = 8; + * @return string + */ + public function getRelease() + { + return $this->release; + } + + /** + * The name of the `Release`. + * + * Generated from protobuf field string release = 8; + * @param string $var + * @return $this + */ + public function setRelease($var) + { + GPBUtil::checkString($var, True); + $this->release = $var; + + return $this; + } + + /** + * Unique identifier of the `Rollout`. + * + * Generated from protobuf field string rollout_uid = 5; + * @return string + */ + public function getRolloutUid() + { + return $this->rollout_uid; + } + + /** + * Unique identifier of the `Rollout`. + * + * Generated from protobuf field string rollout_uid = 5; + * @param string $var + * @return $this + */ + public function setRolloutUid($var) + { + GPBUtil::checkString($var, True); + $this->rollout_uid = $var; + + return $this; + } + + /** + * The name of the `Rollout`. + * + * Generated from protobuf field string rollout = 9; + * @return string + */ + public function getRollout() + { + return $this->rollout; + } + + /** + * The name of the `Rollout`. + * + * Generated from protobuf field string rollout = 9; + * @param string $var + * @return $this + */ + public function setRollout($var) + { + GPBUtil::checkString($var, True); + $this->rollout = $var; + + return $this; + } + + /** + * ID of the `Target`. + * + * Generated from protobuf field string target_id = 6; + * @return string + */ + public function getTargetId() + { + return $this->target_id; + } + + /** + * ID of the `Target`. + * + * Generated from protobuf field string target_id = 6; + * @param string $var + * @return $this + */ + public function setTargetId($var) + { + GPBUtil::checkString($var, True); + $this->target_id = $var; + + return $this; + } + + /** + * Type of this notification, e.g. for a Pub/Sub failure. + * + * Generated from protobuf field .google.cloud.deploy.v1.Type type = 7; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Type of this notification, e.g. for a Pub/Sub failure. + * + * Generated from protobuf field .google.cloud.deploy.v1.Type type = 7; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Type::class); + $this->type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig.php new file mode 100644 index 000000000000..d262b60c61bd --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig.php @@ -0,0 +1,108 @@ +google.cloud.deploy.v1.KubernetesConfig + */ +class KubernetesConfig extends \Google\Protobuf\Internal\Message +{ + protected $service_definition; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Deploy\V1\KubernetesConfig\GatewayServiceMesh $gateway_service_mesh + * Kubernetes Gateway API service mesh configuration. + * @type \Google\Cloud\Deploy\V1\KubernetesConfig\ServiceNetworking $service_networking + * Kubernetes Service networking configuration. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Kubernetes Gateway API service mesh configuration. + * + * Generated from protobuf field .google.cloud.deploy.v1.KubernetesConfig.GatewayServiceMesh gateway_service_mesh = 1; + * @return \Google\Cloud\Deploy\V1\KubernetesConfig\GatewayServiceMesh|null + */ + public function getGatewayServiceMesh() + { + return $this->readOneof(1); + } + + public function hasGatewayServiceMesh() + { + return $this->hasOneof(1); + } + + /** + * Kubernetes Gateway API service mesh configuration. + * + * Generated from protobuf field .google.cloud.deploy.v1.KubernetesConfig.GatewayServiceMesh gateway_service_mesh = 1; + * @param \Google\Cloud\Deploy\V1\KubernetesConfig\GatewayServiceMesh $var + * @return $this + */ + public function setGatewayServiceMesh($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\KubernetesConfig\GatewayServiceMesh::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Kubernetes Service networking configuration. + * + * Generated from protobuf field .google.cloud.deploy.v1.KubernetesConfig.ServiceNetworking service_networking = 2; + * @return \Google\Cloud\Deploy\V1\KubernetesConfig\ServiceNetworking|null + */ + public function getServiceNetworking() + { + return $this->readOneof(2); + } + + public function hasServiceNetworking() + { + return $this->hasOneof(2); + } + + /** + * Kubernetes Service networking configuration. + * + * Generated from protobuf field .google.cloud.deploy.v1.KubernetesConfig.ServiceNetworking service_networking = 2; + * @param \Google\Cloud\Deploy\V1\KubernetesConfig\ServiceNetworking $var + * @return $this + */ + public function setServiceNetworking($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\KubernetesConfig\ServiceNetworking::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getServiceDefinition() + { + return $this->whichOneof("service_definition"); + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig/GatewayServiceMesh.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig/GatewayServiceMesh.php new file mode 100644 index 000000000000..389ccee6e253 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig/GatewayServiceMesh.php @@ -0,0 +1,348 @@ +google.cloud.deploy.v1.KubernetesConfig.GatewayServiceMesh + */ +class GatewayServiceMesh extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the Gateway API HTTPRoute. + * + * Generated from protobuf field string http_route = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $http_route = ''; + /** + * Required. Name of the Kubernetes Service. + * + * Generated from protobuf field string service = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $service = ''; + /** + * Required. Name of the Kubernetes Deployment whose traffic is managed by + * the specified HTTPRoute and Service. + * + * Generated from protobuf field string deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $deployment = ''; + /** + * Optional. The time to wait for route updates to propagate. The maximum + * configurable time is 3 hours, in seconds format. If unspecified, there is + * no wait time. + * + * Generated from protobuf field .google.protobuf.Duration route_update_wait_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $route_update_wait_time = null; + /** + * Optional. The amount of time to migrate traffic back from the canary + * Service to the original Service during the stable phase deployment. If + * specified, must be between 15s and 3600s. If unspecified, there is no + * cutback time. + * + * Generated from protobuf field .google.protobuf.Duration stable_cutback_duration = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $stable_cutback_duration = null; + /** + * Optional. The label to use when selecting Pods for the Deployment and + * Service resources. This label must already be present in both resources. + * + * Generated from protobuf field string pod_selector_label = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $pod_selector_label = ''; + /** + * Optional. Route destinations allow configuring the Gateway API HTTPRoute + * to be deployed to additional clusters. This option is available for + * multi-cluster service mesh set ups that require the route to exist in the + * clusters that call the service. If unspecified, the HTTPRoute will only + * be deployed to the Target cluster. + * + * Generated from protobuf field .google.cloud.deploy.v1.KubernetesConfig.GatewayServiceMesh.RouteDestinations route_destinations = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $route_destinations = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $http_route + * Required. Name of the Gateway API HTTPRoute. + * @type string $service + * Required. Name of the Kubernetes Service. + * @type string $deployment + * Required. Name of the Kubernetes Deployment whose traffic is managed by + * the specified HTTPRoute and Service. + * @type \Google\Protobuf\Duration $route_update_wait_time + * Optional. The time to wait for route updates to propagate. The maximum + * configurable time is 3 hours, in seconds format. If unspecified, there is + * no wait time. + * @type \Google\Protobuf\Duration $stable_cutback_duration + * Optional. The amount of time to migrate traffic back from the canary + * Service to the original Service during the stable phase deployment. If + * specified, must be between 15s and 3600s. If unspecified, there is no + * cutback time. + * @type string $pod_selector_label + * Optional. The label to use when selecting Pods for the Deployment and + * Service resources. This label must already be present in both resources. + * @type \Google\Cloud\Deploy\V1\KubernetesConfig\GatewayServiceMesh\RouteDestinations $route_destinations + * Optional. Route destinations allow configuring the Gateway API HTTPRoute + * to be deployed to additional clusters. This option is available for + * multi-cluster service mesh set ups that require the route to exist in the + * clusters that call the service. If unspecified, the HTTPRoute will only + * be deployed to the Target cluster. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the Gateway API HTTPRoute. + * + * Generated from protobuf field string http_route = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getHttpRoute() + { + return $this->http_route; + } + + /** + * Required. Name of the Gateway API HTTPRoute. + * + * Generated from protobuf field string http_route = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setHttpRoute($var) + { + GPBUtil::checkString($var, True); + $this->http_route = $var; + + return $this; + } + + /** + * Required. Name of the Kubernetes Service. + * + * Generated from protobuf field string service = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getService() + { + return $this->service; + } + + /** + * Required. Name of the Kubernetes Service. + * + * Generated from protobuf field string service = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setService($var) + { + GPBUtil::checkString($var, True); + $this->service = $var; + + return $this; + } + + /** + * Required. Name of the Kubernetes Deployment whose traffic is managed by + * the specified HTTPRoute and Service. + * + * Generated from protobuf field string deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDeployment() + { + return $this->deployment; + } + + /** + * Required. Name of the Kubernetes Deployment whose traffic is managed by + * the specified HTTPRoute and Service. + * + * Generated from protobuf field string deployment = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDeployment($var) + { + GPBUtil::checkString($var, True); + $this->deployment = $var; + + return $this; + } + + /** + * Optional. The time to wait for route updates to propagate. The maximum + * configurable time is 3 hours, in seconds format. If unspecified, there is + * no wait time. + * + * Generated from protobuf field .google.protobuf.Duration route_update_wait_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Duration|null + */ + public function getRouteUpdateWaitTime() + { + return $this->route_update_wait_time; + } + + public function hasRouteUpdateWaitTime() + { + return isset($this->route_update_wait_time); + } + + public function clearRouteUpdateWaitTime() + { + unset($this->route_update_wait_time); + } + + /** + * Optional. The time to wait for route updates to propagate. The maximum + * configurable time is 3 hours, in seconds format. If unspecified, there is + * no wait time. + * + * Generated from protobuf field .google.protobuf.Duration route_update_wait_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setRouteUpdateWaitTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->route_update_wait_time = $var; + + return $this; + } + + /** + * Optional. The amount of time to migrate traffic back from the canary + * Service to the original Service during the stable phase deployment. If + * specified, must be between 15s and 3600s. If unspecified, there is no + * cutback time. + * + * Generated from protobuf field .google.protobuf.Duration stable_cutback_duration = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Duration|null + */ + public function getStableCutbackDuration() + { + return $this->stable_cutback_duration; + } + + public function hasStableCutbackDuration() + { + return isset($this->stable_cutback_duration); + } + + public function clearStableCutbackDuration() + { + unset($this->stable_cutback_duration); + } + + /** + * Optional. The amount of time to migrate traffic back from the canary + * Service to the original Service during the stable phase deployment. If + * specified, must be between 15s and 3600s. If unspecified, there is no + * cutback time. + * + * Generated from protobuf field .google.protobuf.Duration stable_cutback_duration = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setStableCutbackDuration($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->stable_cutback_duration = $var; + + return $this; + } + + /** + * Optional. The label to use when selecting Pods for the Deployment and + * Service resources. This label must already be present in both resources. + * + * Generated from protobuf field string pod_selector_label = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPodSelectorLabel() + { + return $this->pod_selector_label; + } + + /** + * Optional. The label to use when selecting Pods for the Deployment and + * Service resources. This label must already be present in both resources. + * + * Generated from protobuf field string pod_selector_label = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPodSelectorLabel($var) + { + GPBUtil::checkString($var, True); + $this->pod_selector_label = $var; + + return $this; + } + + /** + * Optional. Route destinations allow configuring the Gateway API HTTPRoute + * to be deployed to additional clusters. This option is available for + * multi-cluster service mesh set ups that require the route to exist in the + * clusters that call the service. If unspecified, the HTTPRoute will only + * be deployed to the Target cluster. + * + * Generated from protobuf field .google.cloud.deploy.v1.KubernetesConfig.GatewayServiceMesh.RouteDestinations route_destinations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Deploy\V1\KubernetesConfig\GatewayServiceMesh\RouteDestinations|null + */ + public function getRouteDestinations() + { + return $this->route_destinations; + } + + public function hasRouteDestinations() + { + return isset($this->route_destinations); + } + + public function clearRouteDestinations() + { + unset($this->route_destinations); + } + + /** + * Optional. Route destinations allow configuring the Gateway API HTTPRoute + * to be deployed to additional clusters. This option is available for + * multi-cluster service mesh set ups that require the route to exist in the + * clusters that call the service. If unspecified, the HTTPRoute will only + * be deployed to the Target cluster. + * + * Generated from protobuf field .google.cloud.deploy.v1.KubernetesConfig.GatewayServiceMesh.RouteDestinations route_destinations = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Deploy\V1\KubernetesConfig\GatewayServiceMesh\RouteDestinations $var + * @return $this + */ + public function setRouteDestinations($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\KubernetesConfig\GatewayServiceMesh\RouteDestinations::class); + $this->route_destinations = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GatewayServiceMesh::class, \Google\Cloud\Deploy\V1\KubernetesConfig_GatewayServiceMesh::class); + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig/GatewayServiceMesh/RouteDestinations.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig/GatewayServiceMesh/RouteDestinations.php new file mode 100644 index 000000000000..32712520e1ae --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig/GatewayServiceMesh/RouteDestinations.php @@ -0,0 +1,132 @@ +google.cloud.deploy.v1.KubernetesConfig.GatewayServiceMesh.RouteDestinations + */ +class RouteDestinations extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The clusters where the Gateway API HTTPRoute resource will be + * deployed to. Valid entries include the associated entities IDs + * configured in the Target resource and "@self" to include the Target + * cluster. + * + * Generated from protobuf field repeated string destination_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $destination_ids; + /** + * Optional. Whether to propagate the Kubernetes Service to the route + * destination clusters. The Service will always be deployed to the Target + * cluster even if the HTTPRoute is not. This option may be used to + * facilitiate successful DNS lookup in the route destination clusters. + * Can only be set to true if destinations are specified. + * + * Generated from protobuf field bool propagate_service = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $propagate_service = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $destination_ids + * Required. The clusters where the Gateway API HTTPRoute resource will be + * deployed to. Valid entries include the associated entities IDs + * configured in the Target resource and "@self" to include the Target + * cluster. + * @type bool $propagate_service + * Optional. Whether to propagate the Kubernetes Service to the route + * destination clusters. The Service will always be deployed to the Target + * cluster even if the HTTPRoute is not. This option may be used to + * facilitiate successful DNS lookup in the route destination clusters. + * Can only be set to true if destinations are specified. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. The clusters where the Gateway API HTTPRoute resource will be + * deployed to. Valid entries include the associated entities IDs + * configured in the Target resource and "@self" to include the Target + * cluster. + * + * Generated from protobuf field repeated string destination_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDestinationIds() + { + return $this->destination_ids; + } + + /** + * Required. The clusters where the Gateway API HTTPRoute resource will be + * deployed to. Valid entries include the associated entities IDs + * configured in the Target resource and "@self" to include the Target + * cluster. + * + * Generated from protobuf field repeated string destination_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDestinationIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->destination_ids = $arr; + + return $this; + } + + /** + * Optional. Whether to propagate the Kubernetes Service to the route + * destination clusters. The Service will always be deployed to the Target + * cluster even if the HTTPRoute is not. This option may be used to + * facilitiate successful DNS lookup in the route destination clusters. + * Can only be set to true if destinations are specified. + * + * Generated from protobuf field bool propagate_service = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getPropagateService() + { + return $this->propagate_service; + } + + /** + * Optional. Whether to propagate the Kubernetes Service to the route + * destination clusters. The Service will always be deployed to the Target + * cluster even if the HTTPRoute is not. This option may be used to + * facilitiate successful DNS lookup in the route destination clusters. + * Can only be set to true if destinations are specified. + * + * Generated from protobuf field bool propagate_service = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setPropagateService($var) + { + GPBUtil::checkBool($var); + $this->propagate_service = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(RouteDestinations::class, \Google\Cloud\Deploy\V1\KubernetesConfig_GatewayServiceMesh_RouteDestinations::class); + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig/ServiceNetworking.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig/ServiceNetworking.php new file mode 100644 index 000000000000..451f3de98923 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig/ServiceNetworking.php @@ -0,0 +1,192 @@ +google.cloud.deploy.v1.KubernetesConfig.ServiceNetworking + */ +class ServiceNetworking extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the Kubernetes Service. + * + * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $service = ''; + /** + * Required. Name of the Kubernetes Deployment whose traffic is managed by + * the specified Service. + * + * Generated from protobuf field string deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $deployment = ''; + /** + * Optional. Whether to disable Pod overprovisioning. If Pod + * overprovisioning is disabled then Cloud Deploy will limit the number of + * total Pods used for the deployment strategy to the number of Pods the + * Deployment has on the cluster. + * + * Generated from protobuf field bool disable_pod_overprovisioning = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $disable_pod_overprovisioning = false; + /** + * Optional. The label to use when selecting Pods for the Deployment + * resource. This label must already be present in the Deployment. + * + * Generated from protobuf field string pod_selector_label = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $pod_selector_label = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $service + * Required. Name of the Kubernetes Service. + * @type string $deployment + * Required. Name of the Kubernetes Deployment whose traffic is managed by + * the specified Service. + * @type bool $disable_pod_overprovisioning + * Optional. Whether to disable Pod overprovisioning. If Pod + * overprovisioning is disabled then Cloud Deploy will limit the number of + * total Pods used for the deployment strategy to the number of Pods the + * Deployment has on the cluster. + * @type string $pod_selector_label + * Optional. The label to use when selecting Pods for the Deployment + * resource. This label must already be present in the Deployment. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the Kubernetes Service. + * + * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getService() + { + return $this->service; + } + + /** + * Required. Name of the Kubernetes Service. + * + * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setService($var) + { + GPBUtil::checkString($var, True); + $this->service = $var; + + return $this; + } + + /** + * Required. Name of the Kubernetes Deployment whose traffic is managed by + * the specified Service. + * + * Generated from protobuf field string deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDeployment() + { + return $this->deployment; + } + + /** + * Required. Name of the Kubernetes Deployment whose traffic is managed by + * the specified Service. + * + * Generated from protobuf field string deployment = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDeployment($var) + { + GPBUtil::checkString($var, True); + $this->deployment = $var; + + return $this; + } + + /** + * Optional. Whether to disable Pod overprovisioning. If Pod + * overprovisioning is disabled then Cloud Deploy will limit the number of + * total Pods used for the deployment strategy to the number of Pods the + * Deployment has on the cluster. + * + * Generated from protobuf field bool disable_pod_overprovisioning = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getDisablePodOverprovisioning() + { + return $this->disable_pod_overprovisioning; + } + + /** + * Optional. Whether to disable Pod overprovisioning. If Pod + * overprovisioning is disabled then Cloud Deploy will limit the number of + * total Pods used for the deployment strategy to the number of Pods the + * Deployment has on the cluster. + * + * Generated from protobuf field bool disable_pod_overprovisioning = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setDisablePodOverprovisioning($var) + { + GPBUtil::checkBool($var); + $this->disable_pod_overprovisioning = $var; + + return $this; + } + + /** + * Optional. The label to use when selecting Pods for the Deployment + * resource. This label must already be present in the Deployment. + * + * Generated from protobuf field string pod_selector_label = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPodSelectorLabel() + { + return $this->pod_selector_label; + } + + /** + * Optional. The label to use when selecting Pods for the Deployment + * resource. This label must already be present in the Deployment. + * + * Generated from protobuf field string pod_selector_label = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPodSelectorLabel($var) + { + GPBUtil::checkString($var, True); + $this->pod_selector_label = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ServiceNetworking::class, \Google\Cloud\Deploy\V1\KubernetesConfig_ServiceNetworking::class); + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationRunsRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationRunsRequest.php new file mode 100644 index 000000000000..de808a00b4a8 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationRunsRequest.php @@ -0,0 +1,255 @@ +google.cloud.deploy.v1.ListAutomationRunsRequest + */ +class ListAutomationRunsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent `Delivery Pipeline`, which owns this collection of + * automationRuns. Format must be + * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of automationRuns to return. The service may return + * fewer than this value. If unspecified, at most 50 automationRuns will + * be returned. The maximum value is 1000; values above 1000 will be set + * to 1000. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListAutomationRuns` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other provided parameters match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * Filter automationRuns to be returned. All fields can be used in the + * filter. + * + * Generated from protobuf field string filter = 4; + */ + protected $filter = ''; + /** + * Field to sort by. + * + * Generated from protobuf field string order_by = 5; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The parent `Delivery Pipeline`, which owns this collection of + * automationRuns. Format must be + * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}`. Please see + * {@see CloudDeployClient::deliveryPipelineName()} for help formatting this field. + * + * @return \Google\Cloud\Deploy\V1\ListAutomationRunsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent `Delivery Pipeline`, which owns this collection of + * automationRuns. Format must be + * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}`. + * @type int $page_size + * The maximum number of automationRuns to return. The service may return + * fewer than this value. If unspecified, at most 50 automationRuns will + * be returned. The maximum value is 1000; values above 1000 will be set + * to 1000. + * @type string $page_token + * A page token, received from a previous `ListAutomationRuns` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other provided parameters match + * the call that provided the page token. + * @type string $filter + * Filter automationRuns to be returned. All fields can be used in the + * filter. + * @type string $order_by + * Field to sort by. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent `Delivery Pipeline`, which owns this collection of + * automationRuns. Format must be + * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent `Delivery Pipeline`, which owns this collection of + * automationRuns. Format must be + * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of automationRuns to return. The service may return + * fewer than this value. If unspecified, at most 50 automationRuns will + * be returned. The maximum value is 1000; values above 1000 will be set + * to 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of automationRuns to return. The service may return + * fewer than this value. If unspecified, at most 50 automationRuns will + * be returned. The maximum value is 1000; values above 1000 will be set + * to 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListAutomationRuns` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other provided parameters match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListAutomationRuns` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other provided parameters match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Filter automationRuns to be returned. All fields can be used in the + * filter. + * + * Generated from protobuf field string filter = 4; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Filter automationRuns to be returned. All fields can be used in the + * filter. + * + * Generated from protobuf field string filter = 4; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Field to sort by. + * + * Generated from protobuf field string order_by = 5; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Field to sort by. + * + * Generated from protobuf field string order_by = 5; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationRunsResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationRunsResponse.php new file mode 100644 index 000000000000..9a672c0fe1de --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationRunsResponse.php @@ -0,0 +1,139 @@ +google.cloud.deploy.v1.ListAutomationRunsResponse + */ +class ListAutomationRunsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `AutomationRuns` objects. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.AutomationRun automation_runs = 1; + */ + private $automation_runs; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\Deploy\V1\AutomationRun>|\Google\Protobuf\Internal\RepeatedField $automation_runs + * The `AutomationRuns` objects. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable + * Locations that could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * The `AutomationRuns` objects. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.AutomationRun automation_runs = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAutomationRuns() + { + return $this->automation_runs; + } + + /** + * The `AutomationRuns` objects. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.AutomationRun automation_runs = 1; + * @param array<\Google\Cloud\Deploy\V1\AutomationRun>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAutomationRuns($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\AutomationRun::class); + $this->automation_runs = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationsRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationsRequest.php new file mode 100644 index 000000000000..beacb32f80d0 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationsRequest.php @@ -0,0 +1,255 @@ +google.cloud.deploy.v1.ListAutomationsRequest + */ +class ListAutomationsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent `Delivery Pipeline`, which owns this collection of + * automations. Format must be + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of automations to return. The service may return + * fewer than this value. If unspecified, at most 50 automations will + * be returned. The maximum value is 1000; values above 1000 will be set + * to 1000. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListAutomations` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other provided parameters match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * Filter automations to be returned. All fields can be used in the + * filter. + * + * Generated from protobuf field string filter = 4; + */ + protected $filter = ''; + /** + * Field to sort by. + * + * Generated from protobuf field string order_by = 5; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The parent `Delivery Pipeline`, which owns this collection of + * automations. Format must be + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. Please see + * {@see CloudDeployClient::deliveryPipelineName()} for help formatting this field. + * + * @return \Google\Cloud\Deploy\V1\ListAutomationsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent `Delivery Pipeline`, which owns this collection of + * automations. Format must be + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. + * @type int $page_size + * The maximum number of automations to return. The service may return + * fewer than this value. If unspecified, at most 50 automations will + * be returned. The maximum value is 1000; values above 1000 will be set + * to 1000. + * @type string $page_token + * A page token, received from a previous `ListAutomations` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other provided parameters match + * the call that provided the page token. + * @type string $filter + * Filter automations to be returned. All fields can be used in the + * filter. + * @type string $order_by + * Field to sort by. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent `Delivery Pipeline`, which owns this collection of + * automations. Format must be + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent `Delivery Pipeline`, which owns this collection of + * automations. Format must be + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of automations to return. The service may return + * fewer than this value. If unspecified, at most 50 automations will + * be returned. The maximum value is 1000; values above 1000 will be set + * to 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of automations to return. The service may return + * fewer than this value. If unspecified, at most 50 automations will + * be returned. The maximum value is 1000; values above 1000 will be set + * to 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListAutomations` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other provided parameters match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListAutomations` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other provided parameters match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Filter automations to be returned. All fields can be used in the + * filter. + * + * Generated from protobuf field string filter = 4; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Filter automations to be returned. All fields can be used in the + * filter. + * + * Generated from protobuf field string filter = 4; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Field to sort by. + * + * Generated from protobuf field string order_by = 5; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Field to sort by. + * + * Generated from protobuf field string order_by = 5; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationsResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationsResponse.php new file mode 100644 index 000000000000..c14853d6404e --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationsResponse.php @@ -0,0 +1,139 @@ +google.cloud.deploy.v1.ListAutomationsResponse + */ +class ListAutomationsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `Automation` objects. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.Automation automations = 1; + */ + private $automations; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\Deploy\V1\Automation>|\Google\Protobuf\Internal\RepeatedField $automations + * The `Automation` objects. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable + * Locations that could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * The `Automation` objects. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.Automation automations = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAutomations() + { + return $this->automations; + } + + /** + * The `Automation` objects. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.Automation automations = 1; + * @param array<\Google\Cloud\Deploy\V1\Automation>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAutomations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\Automation::class); + $this->automations = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListCustomTargetTypesRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListCustomTargetTypesRequest.php new file mode 100644 index 000000000000..375fe11940d1 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListCustomTargetTypesRequest.php @@ -0,0 +1,254 @@ +google.cloud.deploy.v1.ListCustomTargetTypesRequest + */ +class ListCustomTargetTypesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent that owns this collection of custom target types. + * Format must be `projects/{project_id}/locations/{location_name}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `CustomTargetType` objects to return. The + * service may return fewer than this value. If unspecified, at most 50 + * `CustomTargetType` objects will be returned. The maximum value is 1000; + * values above 1000 will be set to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListCustomTargetTypes` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other provided parameters match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Filter custom target types to be returned. See + * https://google.aip.dev/160 for more details. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Field to sort by. See https://google.aip.dev/132#ordering for + * more details. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The parent that owns this collection of custom target types. + * Format must be `projects/{project_id}/locations/{location_name}`. Please see + * {@see CloudDeployClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\Deploy\V1\ListCustomTargetTypesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent that owns this collection of custom target types. + * Format must be `projects/{project_id}/locations/{location_name}`. + * @type int $page_size + * Optional. The maximum number of `CustomTargetType` objects to return. The + * service may return fewer than this value. If unspecified, at most 50 + * `CustomTargetType` objects will be returned. The maximum value is 1000; + * values above 1000 will be set to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListCustomTargetTypes` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other provided parameters match + * the call that provided the page token. + * @type string $filter + * Optional. Filter custom target types to be returned. See + * https://google.aip.dev/160 for more details. + * @type string $order_by + * Optional. Field to sort by. See https://google.aip.dev/132#ordering for + * more details. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent that owns this collection of custom target types. + * Format must be `projects/{project_id}/locations/{location_name}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent that owns this collection of custom target types. + * Format must be `projects/{project_id}/locations/{location_name}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `CustomTargetType` objects to return. The + * service may return fewer than this value. If unspecified, at most 50 + * `CustomTargetType` objects will be returned. The maximum value is 1000; + * values above 1000 will be set to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `CustomTargetType` objects to return. The + * service may return fewer than this value. If unspecified, at most 50 + * `CustomTargetType` objects will be returned. The maximum value is 1000; + * values above 1000 will be set to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListCustomTargetTypes` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other provided parameters match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListCustomTargetTypes` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other provided parameters match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Filter custom target types to be returned. See + * https://google.aip.dev/160 for more details. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filter custom target types to be returned. See + * https://google.aip.dev/160 for more details. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Field to sort by. See https://google.aip.dev/132#ordering for + * more details. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Field to sort by. See https://google.aip.dev/132#ordering for + * more details. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListCustomTargetTypesResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListCustomTargetTypesResponse.php new file mode 100644 index 000000000000..0b7aed0e438f --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListCustomTargetTypesResponse.php @@ -0,0 +1,139 @@ +google.cloud.deploy.v1.ListCustomTargetTypesResponse + */ +class ListCustomTargetTypesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `CustomTargetType` objects. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.CustomTargetType custom_target_types = 1; + */ + private $custom_target_types; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\Deploy\V1\CustomTargetType>|\Google\Protobuf\Internal\RepeatedField $custom_target_types + * The `CustomTargetType` objects. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable + * Locations that could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * The `CustomTargetType` objects. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.CustomTargetType custom_target_types = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCustomTargetTypes() + { + return $this->custom_target_types; + } + + /** + * The `CustomTargetType` objects. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.CustomTargetType custom_target_types = 1; + * @param array<\Google\Cloud\Deploy\V1\CustomTargetType>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCustomTargetTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\CustomTargetType::class); + $this->custom_target_types = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListDeliveryPipelinesRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListDeliveryPipelinesRequest.php new file mode 100644 index 000000000000..5718d4cb4190 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListDeliveryPipelinesRequest.php @@ -0,0 +1,250 @@ +google.cloud.deploy.v1.ListDeliveryPipelinesRequest + */ +class ListDeliveryPipelinesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of pipelines. Format must + * be `projects/{project_id}/locations/{location_name}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of pipelines to return. The service may return + * fewer than this value. If unspecified, at most 50 pipelines will + * be returned. The maximum value is 1000; values above 1000 will be set + * to 1000. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListDeliveryPipelines` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other provided parameters match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * Filter pipelines to be returned. See https://google.aip.dev/160 for more + * details. + * + * Generated from protobuf field string filter = 4; + */ + protected $filter = ''; + /** + * Field to sort by. See https://google.aip.dev/132#ordering for more details. + * + * Generated from protobuf field string order_by = 5; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The parent, which owns this collection of pipelines. Format must + * be `projects/{project_id}/locations/{location_name}`. Please see + * {@see CloudDeployClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\Deploy\V1\ListDeliveryPipelinesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of pipelines. Format must + * be `projects/{project_id}/locations/{location_name}`. + * @type int $page_size + * The maximum number of pipelines to return. The service may return + * fewer than this value. If unspecified, at most 50 pipelines will + * be returned. The maximum value is 1000; values above 1000 will be set + * to 1000. + * @type string $page_token + * A page token, received from a previous `ListDeliveryPipelines` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other provided parameters match + * the call that provided the page token. + * @type string $filter + * Filter pipelines to be returned. See https://google.aip.dev/160 for more + * details. + * @type string $order_by + * Field to sort by. See https://google.aip.dev/132#ordering for more details. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of pipelines. Format must + * be `projects/{project_id}/locations/{location_name}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of pipelines. Format must + * be `projects/{project_id}/locations/{location_name}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of pipelines to return. The service may return + * fewer than this value. If unspecified, at most 50 pipelines will + * be returned. The maximum value is 1000; values above 1000 will be set + * to 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of pipelines to return. The service may return + * fewer than this value. If unspecified, at most 50 pipelines will + * be returned. The maximum value is 1000; values above 1000 will be set + * to 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListDeliveryPipelines` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other provided parameters match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListDeliveryPipelines` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other provided parameters match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Filter pipelines to be returned. See https://google.aip.dev/160 for more + * details. + * + * Generated from protobuf field string filter = 4; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Filter pipelines to be returned. See https://google.aip.dev/160 for more + * details. + * + * Generated from protobuf field string filter = 4; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Field to sort by. See https://google.aip.dev/132#ordering for more details. + * + * Generated from protobuf field string order_by = 5; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Field to sort by. See https://google.aip.dev/132#ordering for more details. + * + * Generated from protobuf field string order_by = 5; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListDeliveryPipelinesResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListDeliveryPipelinesResponse.php new file mode 100644 index 000000000000..aade7781c825 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListDeliveryPipelinesResponse.php @@ -0,0 +1,139 @@ +google.cloud.deploy.v1.ListDeliveryPipelinesResponse + */ +class ListDeliveryPipelinesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `DeliveryPipeline` objects. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.DeliveryPipeline delivery_pipelines = 1; + */ + private $delivery_pipelines; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\Deploy\V1\DeliveryPipeline>|\Google\Protobuf\Internal\RepeatedField $delivery_pipelines + * The `DeliveryPipeline` objects. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable + * Locations that could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * The `DeliveryPipeline` objects. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.DeliveryPipeline delivery_pipelines = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDeliveryPipelines() + { + return $this->delivery_pipelines; + } + + /** + * The `DeliveryPipeline` objects. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.DeliveryPipeline delivery_pipelines = 1; + * @param array<\Google\Cloud\Deploy\V1\DeliveryPipeline>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDeliveryPipelines($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\DeliveryPipeline::class); + $this->delivery_pipelines = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListDeployPoliciesRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListDeployPoliciesRequest.php new file mode 100644 index 000000000000..9076ebd4a6df --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListDeployPoliciesRequest.php @@ -0,0 +1,250 @@ +google.cloud.deploy.v1.ListDeployPoliciesRequest + */ +class ListDeployPoliciesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of deploy policies. Format + * must be `projects/{project_id}/locations/{location_name}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * The maximum number of deploy policies to return. The service may return + * fewer than this value. If unspecified, at most 50 deploy policies will + * be returned. The maximum value is 1000; values above 1000 will be set + * to 1000. + * + * Generated from protobuf field int32 page_size = 2; + */ + protected $page_size = 0; + /** + * A page token, received from a previous `ListDeployPolicies` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other provided parameters match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + */ + protected $page_token = ''; + /** + * Filter deploy policies to be returned. See https://google.aip.dev/160 for + * more details. All fields can be used in the filter. + * + * Generated from protobuf field string filter = 4; + */ + protected $filter = ''; + /** + * Field to sort by. See https://google.aip.dev/132#ordering for more details. + * + * Generated from protobuf field string order_by = 5; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The parent, which owns this collection of deploy policies. Format + * must be `projects/{project_id}/locations/{location_name}`. Please see + * {@see CloudDeployClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\Deploy\V1\ListDeployPoliciesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of deploy policies. Format + * must be `projects/{project_id}/locations/{location_name}`. + * @type int $page_size + * The maximum number of deploy policies to return. The service may return + * fewer than this value. If unspecified, at most 50 deploy policies will + * be returned. The maximum value is 1000; values above 1000 will be set + * to 1000. + * @type string $page_token + * A page token, received from a previous `ListDeployPolicies` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other provided parameters match + * the call that provided the page token. + * @type string $filter + * Filter deploy policies to be returned. See https://google.aip.dev/160 for + * more details. All fields can be used in the filter. + * @type string $order_by + * Field to sort by. See https://google.aip.dev/132#ordering for more details. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of deploy policies. Format + * must be `projects/{project_id}/locations/{location_name}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of deploy policies. Format + * must be `projects/{project_id}/locations/{location_name}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * The maximum number of deploy policies to return. The service may return + * fewer than this value. If unspecified, at most 50 deploy policies will + * be returned. The maximum value is 1000; values above 1000 will be set + * to 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * The maximum number of deploy policies to return. The service may return + * fewer than this value. If unspecified, at most 50 deploy policies will + * be returned. The maximum value is 1000; values above 1000 will be set + * to 1000. + * + * Generated from protobuf field int32 page_size = 2; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * A page token, received from a previous `ListDeployPolicies` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other provided parameters match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * A page token, received from a previous `ListDeployPolicies` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other provided parameters match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Filter deploy policies to be returned. See https://google.aip.dev/160 for + * more details. All fields can be used in the filter. + * + * Generated from protobuf field string filter = 4; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Filter deploy policies to be returned. See https://google.aip.dev/160 for + * more details. All fields can be used in the filter. + * + * Generated from protobuf field string filter = 4; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Field to sort by. See https://google.aip.dev/132#ordering for more details. + * + * Generated from protobuf field string order_by = 5; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Field to sort by. See https://google.aip.dev/132#ordering for more details. + * + * Generated from protobuf field string order_by = 5; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListDeployPoliciesResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListDeployPoliciesResponse.php new file mode 100644 index 000000000000..4e5dda202341 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListDeployPoliciesResponse.php @@ -0,0 +1,139 @@ +google.cloud.deploy.v1.ListDeployPoliciesResponse + */ +class ListDeployPoliciesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `DeployPolicy` objects. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.DeployPolicy deploy_policies = 1; + */ + private $deploy_policies; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\Deploy\V1\DeployPolicy>|\Google\Protobuf\Internal\RepeatedField $deploy_policies + * The `DeployPolicy` objects. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable + * Locations that could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * The `DeployPolicy` objects. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.DeployPolicy deploy_policies = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDeployPolicies() + { + return $this->deploy_policies; + } + + /** + * The `DeployPolicy` objects. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.DeployPolicy deploy_policies = 1; + * @param array<\Google\Cloud\Deploy\V1\DeployPolicy>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDeployPolicies($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\DeployPolicy::class); + $this->deploy_policies = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListJobRunsRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListJobRunsRequest.php new file mode 100644 index 000000000000..de678b046e48 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListJobRunsRequest.php @@ -0,0 +1,249 @@ +google.cloud.deploy.v1.ListJobRunsRequest + */ +class ListJobRunsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The `Rollout` which owns this collection of `JobRun` objects. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `JobRun` objects to return. The service may + * return fewer than this value. If unspecified, at most 50 `JobRun` objects + * will be returned. The maximum value is 1000; values above 1000 will be set + * to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListJobRuns` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other provided parameters match the call that provided + * the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Filter results to be returned. See https://google.aip.dev/160 for + * more details. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Field to sort by. See https://google.aip.dev/132#ordering for + * more details. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The `Rollout` which owns this collection of `JobRun` objects. Please see + * {@see CloudDeployClient::rolloutName()} for help formatting this field. + * + * @return \Google\Cloud\Deploy\V1\ListJobRunsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The `Rollout` which owns this collection of `JobRun` objects. + * @type int $page_size + * Optional. The maximum number of `JobRun` objects to return. The service may + * return fewer than this value. If unspecified, at most 50 `JobRun` objects + * will be returned. The maximum value is 1000; values above 1000 will be set + * to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListJobRuns` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other provided parameters match the call that provided + * the page token. + * @type string $filter + * Optional. Filter results to be returned. See https://google.aip.dev/160 for + * more details. + * @type string $order_by + * Optional. Field to sort by. See https://google.aip.dev/132#ordering for + * more details. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. The `Rollout` which owns this collection of `JobRun` objects. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The `Rollout` which owns this collection of `JobRun` objects. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `JobRun` objects to return. The service may + * return fewer than this value. If unspecified, at most 50 `JobRun` objects + * will be returned. The maximum value is 1000; values above 1000 will be set + * to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `JobRun` objects to return. The service may + * return fewer than this value. If unspecified, at most 50 `JobRun` objects + * will be returned. The maximum value is 1000; values above 1000 will be set + * to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListJobRuns` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other provided parameters match the call that provided + * the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListJobRuns` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other provided parameters match the call that provided + * the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Filter results to be returned. See https://google.aip.dev/160 for + * more details. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filter results to be returned. See https://google.aip.dev/160 for + * more details. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Field to sort by. See https://google.aip.dev/132#ordering for + * more details. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Field to sort by. See https://google.aip.dev/132#ordering for + * more details. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListJobRunsResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListJobRunsResponse.php new file mode 100644 index 000000000000..c62986ce2dbe --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListJobRunsResponse.php @@ -0,0 +1,139 @@ +google.cloud.deploy.v1.ListJobRunsResponse + */ +class ListJobRunsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `JobRun` objects. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.JobRun job_runs = 1; + */ + private $job_runs; + /** + * A token, which can be sent as `page_token` to retrieve the next page. If + * this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations that could not be reached + * + * Generated from protobuf field repeated string unreachable = 3; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\Deploy\V1\JobRun>|\Google\Protobuf\Internal\RepeatedField $job_runs + * The `JobRun` objects. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. If + * this field is omitted, there are no subsequent pages. + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable + * Locations that could not be reached + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * The `JobRun` objects. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.JobRun job_runs = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getJobRuns() + { + return $this->job_runs; + } + + /** + * The `JobRun` objects. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.JobRun job_runs = 1; + * @param array<\Google\Cloud\Deploy\V1\JobRun>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setJobRuns($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\JobRun::class); + $this->job_runs = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If + * this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If + * this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations that could not be reached + * + * Generated from protobuf field repeated string unreachable = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Locations that could not be reached + * + * Generated from protobuf field repeated string unreachable = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListReleasesRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListReleasesRequest.php new file mode 100644 index 000000000000..a133cfc5e498 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListReleasesRequest.php @@ -0,0 +1,254 @@ +google.cloud.deploy.v1.ListReleasesRequest + */ +class ListReleasesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The `DeliveryPipeline` which owns this collection of `Release` + * objects. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `Release` objects to return. The service + * may return fewer than this value. If unspecified, at most 50 `Release` + * objects will be returned. The maximum value is 1000; values above 1000 will + * be set to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListReleases` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other provided parameters match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Filter releases to be returned. See https://google.aip.dev/160 + * for more details. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Field to sort by. See https://google.aip.dev/132#ordering for + * more details. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The `DeliveryPipeline` which owns this collection of `Release` + * objects. Please see + * {@see CloudDeployClient::deliveryPipelineName()} for help formatting this field. + * + * @return \Google\Cloud\Deploy\V1\ListReleasesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The `DeliveryPipeline` which owns this collection of `Release` + * objects. + * @type int $page_size + * Optional. The maximum number of `Release` objects to return. The service + * may return fewer than this value. If unspecified, at most 50 `Release` + * objects will be returned. The maximum value is 1000; values above 1000 will + * be set to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListReleases` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other provided parameters match + * the call that provided the page token. + * @type string $filter + * Optional. Filter releases to be returned. See https://google.aip.dev/160 + * for more details. + * @type string $order_by + * Optional. Field to sort by. See https://google.aip.dev/132#ordering for + * more details. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. The `DeliveryPipeline` which owns this collection of `Release` + * objects. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The `DeliveryPipeline` which owns this collection of `Release` + * objects. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `Release` objects to return. The service + * may return fewer than this value. If unspecified, at most 50 `Release` + * objects will be returned. The maximum value is 1000; values above 1000 will + * be set to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `Release` objects to return. The service + * may return fewer than this value. If unspecified, at most 50 `Release` + * objects will be returned. The maximum value is 1000; values above 1000 will + * be set to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListReleases` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other provided parameters match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListReleases` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other provided parameters match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Filter releases to be returned. See https://google.aip.dev/160 + * for more details. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filter releases to be returned. See https://google.aip.dev/160 + * for more details. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Field to sort by. See https://google.aip.dev/132#ordering for + * more details. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Field to sort by. See https://google.aip.dev/132#ordering for + * more details. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListReleasesResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListReleasesResponse.php new file mode 100644 index 000000000000..72798b69fe4c --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListReleasesResponse.php @@ -0,0 +1,139 @@ +google.cloud.deploy.v1.ListReleasesResponse + */ +class ListReleasesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `Release` objects. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.Release releases = 1; + */ + private $releases; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\Deploy\V1\Release>|\Google\Protobuf\Internal\RepeatedField $releases + * The `Release` objects. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable + * Locations that could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * The `Release` objects. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.Release releases = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getReleases() + { + return $this->releases; + } + + /** + * The `Release` objects. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.Release releases = 1; + * @param array<\Google\Cloud\Deploy\V1\Release>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setReleases($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\Release::class); + $this->releases = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListRolloutsRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListRolloutsRequest.php new file mode 100644 index 000000000000..6209b04be8b5 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListRolloutsRequest.php @@ -0,0 +1,249 @@ +google.cloud.deploy.v1.ListRolloutsRequest + */ +class ListRolloutsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The `Release` which owns this collection of `Rollout` objects. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `Rollout` objects to return. The service + * may return fewer than this value. If unspecified, at most 50 `Rollout` + * objects will be returned. The maximum value is 1000; values above 1000 will + * be set to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListRollouts` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other provided parameters match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Filter rollouts to be returned. See https://google.aip.dev/160 + * for more details. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Field to sort by. See https://google.aip.dev/132#ordering for + * more details. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The `Release` which owns this collection of `Rollout` objects. Please see + * {@see CloudDeployClient::releaseName()} for help formatting this field. + * + * @return \Google\Cloud\Deploy\V1\ListRolloutsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The `Release` which owns this collection of `Rollout` objects. + * @type int $page_size + * Optional. The maximum number of `Rollout` objects to return. The service + * may return fewer than this value. If unspecified, at most 50 `Rollout` + * objects will be returned. The maximum value is 1000; values above 1000 will + * be set to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListRollouts` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other provided parameters match + * the call that provided the page token. + * @type string $filter + * Optional. Filter rollouts to be returned. See https://google.aip.dev/160 + * for more details. + * @type string $order_by + * Optional. Field to sort by. See https://google.aip.dev/132#ordering for + * more details. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. The `Release` which owns this collection of `Rollout` objects. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The `Release` which owns this collection of `Rollout` objects. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `Rollout` objects to return. The service + * may return fewer than this value. If unspecified, at most 50 `Rollout` + * objects will be returned. The maximum value is 1000; values above 1000 will + * be set to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `Rollout` objects to return. The service + * may return fewer than this value. If unspecified, at most 50 `Rollout` + * objects will be returned. The maximum value is 1000; values above 1000 will + * be set to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListRollouts` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other provided parameters match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListRollouts` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other provided parameters match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Filter rollouts to be returned. See https://google.aip.dev/160 + * for more details. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filter rollouts to be returned. See https://google.aip.dev/160 + * for more details. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Field to sort by. See https://google.aip.dev/132#ordering for + * more details. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Field to sort by. See https://google.aip.dev/132#ordering for + * more details. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListRolloutsResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListRolloutsResponse.php new file mode 100644 index 000000000000..fc25e3092666 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListRolloutsResponse.php @@ -0,0 +1,139 @@ +google.cloud.deploy.v1.ListRolloutsResponse + */ +class ListRolloutsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `Rollout` objects. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.Rollout rollouts = 1; + */ + private $rollouts; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\Deploy\V1\Rollout>|\Google\Protobuf\Internal\RepeatedField $rollouts + * The `Rollout` objects. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable + * Locations that could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * The `Rollout` objects. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.Rollout rollouts = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRollouts() + { + return $this->rollouts; + } + + /** + * The `Rollout` objects. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.Rollout rollouts = 1; + * @param array<\Google\Cloud\Deploy\V1\Rollout>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRollouts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\Rollout::class); + $this->rollouts = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListTargetsRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListTargetsRequest.php new file mode 100644 index 000000000000..2aa7809d0875 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListTargetsRequest.php @@ -0,0 +1,254 @@ +google.cloud.deploy.v1.ListTargetsRequest + */ +class ListTargetsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of targets. Format must be + * `projects/{project_id}/locations/{location_name}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `Target` objects to return. The service may + * return fewer than this value. If unspecified, at most 50 `Target` objects + * will be returned. The maximum value is 1000; values above 1000 will be set + * to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListTargets` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other provided parameters match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Filter targets to be returned. See https://google.aip.dev/160 for + * more details. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Field to sort by. See https://google.aip.dev/132#ordering for + * more details. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The parent, which owns this collection of targets. Format must be + * `projects/{project_id}/locations/{location_name}`. Please see + * {@see CloudDeployClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\Deploy\V1\ListTargetsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of targets. Format must be + * `projects/{project_id}/locations/{location_name}`. + * @type int $page_size + * Optional. The maximum number of `Target` objects to return. The service may + * return fewer than this value. If unspecified, at most 50 `Target` objects + * will be returned. The maximum value is 1000; values above 1000 will be set + * to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListTargets` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other provided parameters match + * the call that provided the page token. + * @type string $filter + * Optional. Filter targets to be returned. See https://google.aip.dev/160 for + * more details. + * @type string $order_by + * Optional. Field to sort by. See https://google.aip.dev/132#ordering for + * more details. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of targets. Format must be + * `projects/{project_id}/locations/{location_name}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of targets. Format must be + * `projects/{project_id}/locations/{location_name}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `Target` objects to return. The service may + * return fewer than this value. If unspecified, at most 50 `Target` objects + * will be returned. The maximum value is 1000; values above 1000 will be set + * to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `Target` objects to return. The service may + * return fewer than this value. If unspecified, at most 50 `Target` objects + * will be returned. The maximum value is 1000; values above 1000 will be set + * to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListTargets` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other provided parameters match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListTargets` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other provided parameters match + * the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Filter targets to be returned. See https://google.aip.dev/160 for + * more details. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filter targets to be returned. See https://google.aip.dev/160 for + * more details. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Field to sort by. See https://google.aip.dev/132#ordering for + * more details. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Field to sort by. See https://google.aip.dev/132#ordering for + * more details. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListTargetsResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListTargetsResponse.php new file mode 100644 index 000000000000..4c648ae25fd5 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListTargetsResponse.php @@ -0,0 +1,139 @@ +google.cloud.deploy.v1.ListTargetsResponse + */ +class ListTargetsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `Target` objects. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.Target targets = 1; + */ + private $targets; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\Deploy\V1\Target>|\Google\Protobuf\Internal\RepeatedField $targets + * The `Target` objects. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable + * Locations that could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * The `Target` objects. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.Target targets = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTargets() + { + return $this->targets; + } + + /** + * The `Target` objects. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.Target targets = 1; + * @param array<\Google\Cloud\Deploy\V1\Target>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTargets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\Target::class); + $this->targets = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Metadata.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Metadata.php new file mode 100644 index 000000000000..f9940ac35423 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Metadata.php @@ -0,0 +1,173 @@ +google.cloud.deploy.v1.Metadata + */ +class Metadata extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The name of the Cloud Run Service that is associated with a + * `Rollout`. + * + * Generated from protobuf field .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $cloud_run = null; + /** + * Output only. AutomationRolloutMetadata contains the information about the + * interactions between Automation service and this rollout. + * + * Generated from protobuf field .google.cloud.deploy.v1.AutomationRolloutMetadata automation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $automation = null; + /** + * Output only. Custom metadata provided by user-defined `Rollout` operations. + * + * Generated from protobuf field .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $custom = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Deploy\V1\CloudRunMetadata $cloud_run + * Output only. The name of the Cloud Run Service that is associated with a + * `Rollout`. + * @type \Google\Cloud\Deploy\V1\AutomationRolloutMetadata $automation + * Output only. AutomationRolloutMetadata contains the information about the + * interactions between Automation service and this rollout. + * @type \Google\Cloud\Deploy\V1\CustomMetadata $custom + * Output only. Custom metadata provided by user-defined `Rollout` operations. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The name of the Cloud Run Service that is associated with a + * `Rollout`. + * + * Generated from protobuf field .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\CloudRunMetadata|null + */ + public function getCloudRun() + { + return $this->cloud_run; + } + + public function hasCloudRun() + { + return isset($this->cloud_run); + } + + public function clearCloudRun() + { + unset($this->cloud_run); + } + + /** + * Output only. The name of the Cloud Run Service that is associated with a + * `Rollout`. + * + * Generated from protobuf field .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\CloudRunMetadata $var + * @return $this + */ + public function setCloudRun($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CloudRunMetadata::class); + $this->cloud_run = $var; + + return $this; + } + + /** + * Output only. AutomationRolloutMetadata contains the information about the + * interactions between Automation service and this rollout. + * + * Generated from protobuf field .google.cloud.deploy.v1.AutomationRolloutMetadata automation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\AutomationRolloutMetadata|null + */ + public function getAutomation() + { + return $this->automation; + } + + public function hasAutomation() + { + return isset($this->automation); + } + + public function clearAutomation() + { + unset($this->automation); + } + + /** + * Output only. AutomationRolloutMetadata contains the information about the + * interactions between Automation service and this rollout. + * + * Generated from protobuf field .google.cloud.deploy.v1.AutomationRolloutMetadata automation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\AutomationRolloutMetadata $var + * @return $this + */ + public function setAutomation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\AutomationRolloutMetadata::class); + $this->automation = $var; + + return $this; + } + + /** + * Output only. Custom metadata provided by user-defined `Rollout` operations. + * + * Generated from protobuf field .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\CustomMetadata|null + */ + public function getCustom() + { + return $this->custom; + } + + public function hasCustom() + { + return isset($this->custom); + } + + public function clearCustom() + { + unset($this->custom); + } + + /** + * Output only. Custom metadata provided by user-defined `Rollout` operations. + * + * Generated from protobuf field .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\CustomMetadata $var + * @return $this + */ + public function setCustom($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CustomMetadata::class); + $this->custom = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/MultiTarget.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/MultiTarget.php new file mode 100644 index 000000000000..339eb1798208 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/MultiTarget.php @@ -0,0 +1,67 @@ +google.cloud.deploy.v1.MultiTarget + */ +class MultiTarget extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The target_ids of this multiTarget. + * + * Generated from protobuf field repeated string target_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $target_ids; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $target_ids + * Required. The target_ids of this multiTarget. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. The target_ids of this multiTarget. + * + * Generated from protobuf field repeated string target_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTargetIds() + { + return $this->target_ids; + } + + /** + * Required. The target_ids of this multiTarget. + * + * Generated from protobuf field repeated string target_ids = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTargetIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->target_ids = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/OneTimeWindow.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/OneTimeWindow.php new file mode 100644 index 000000000000..46893dbebc01 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/OneTimeWindow.php @@ -0,0 +1,210 @@ +google.cloud.deploy.v1.OneTimeWindow + */ +class OneTimeWindow extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Start date. + * + * Generated from protobuf field .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $start_date = null; + /** + * Required. Start time (inclusive). Use 00:00 for the beginning of the day. + * + * Generated from protobuf field .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $start_time = null; + /** + * Required. End date. + * + * Generated from protobuf field .google.type.Date end_date = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $end_date = null; + /** + * Required. End time (exclusive). You may use 24:00 for the end of the day. + * + * Generated from protobuf field .google.type.TimeOfDay end_time = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $end_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Type\Date $start_date + * Required. Start date. + * @type \Google\Type\TimeOfDay $start_time + * Required. Start time (inclusive). Use 00:00 for the beginning of the day. + * @type \Google\Type\Date $end_date + * Required. End date. + * @type \Google\Type\TimeOfDay $end_time + * Required. End time (exclusive). You may use 24:00 for the end of the day. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. Start date. + * + * Generated from protobuf field .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Type\Date|null + */ + public function getStartDate() + { + return $this->start_date; + } + + public function hasStartDate() + { + return isset($this->start_date); + } + + public function clearStartDate() + { + unset($this->start_date); + } + + /** + * Required. Start date. + * + * Generated from protobuf field .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Type\Date $var + * @return $this + */ + public function setStartDate($var) + { + GPBUtil::checkMessage($var, \Google\Type\Date::class); + $this->start_date = $var; + + return $this; + } + + /** + * Required. Start time (inclusive). Use 00:00 for the beginning of the day. + * + * Generated from protobuf field .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Type\TimeOfDay|null + */ + public function getStartTime() + { + return $this->start_time; + } + + public function hasStartTime() + { + return isset($this->start_time); + } + + public function clearStartTime() + { + unset($this->start_time); + } + + /** + * Required. Start time (inclusive). Use 00:00 for the beginning of the day. + * + * Generated from protobuf field .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Type\TimeOfDay $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Type\TimeOfDay::class); + $this->start_time = $var; + + return $this; + } + + /** + * Required. End date. + * + * Generated from protobuf field .google.type.Date end_date = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Type\Date|null + */ + public function getEndDate() + { + return $this->end_date; + } + + public function hasEndDate() + { + return isset($this->end_date); + } + + public function clearEndDate() + { + unset($this->end_date); + } + + /** + * Required. End date. + * + * Generated from protobuf field .google.type.Date end_date = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Type\Date $var + * @return $this + */ + public function setEndDate($var) + { + GPBUtil::checkMessage($var, \Google\Type\Date::class); + $this->end_date = $var; + + return $this; + } + + /** + * Required. End time (exclusive). You may use 24:00 for the end of the day. + * + * Generated from protobuf field .google.type.TimeOfDay end_time = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Type\TimeOfDay|null + */ + public function getEndTime() + { + return $this->end_time; + } + + public function hasEndTime() + { + return isset($this->end_time); + } + + public function clearEndTime() + { + unset($this->end_time); + } + + /** + * Required. End time (exclusive). You may use 24:00 for the end of the day. + * + * Generated from protobuf field .google.type.TimeOfDay end_time = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Type\TimeOfDay $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Type\TimeOfDay::class); + $this->end_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/OperationMetadata.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/OperationMetadata.php new file mode 100644 index 000000000000..2565328b1fe3 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/OperationMetadata.php @@ -0,0 +1,307 @@ +google.cloud.deploy.v1.OperationMetadata + */ +class OperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The time the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time the operation finished running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $end_time = null; + /** + * Output only. Server-defined resource path for the target of the operation. + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $target = ''; + /** + * Output only. Name of the verb executed by the operation. + * + * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $verb = ''; + /** + * Output only. Human-readable status of the operation, if any. + * + * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $status_message = ''; + /** + * Output only. Identifies whether the user has requested cancellation + * of the operation. Operations that have successfully been cancelled + * have [Operation.error][] value with a + * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + * `Code.CANCELLED`. + * + * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $requested_cancellation = false; + /** + * Output only. API version used to start the operation. + * + * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $api_version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time the operation was created. + * @type \Google\Protobuf\Timestamp $end_time + * Output only. The time the operation finished running. + * @type string $target + * Output only. Server-defined resource path for the target of the operation. + * @type string $verb + * Output only. Name of the verb executed by the operation. + * @type string $status_message + * Output only. Human-readable status of the operation, if any. + * @type bool $requested_cancellation + * Output only. Identifies whether the user has requested cancellation + * of the operation. Operations that have successfully been cancelled + * have [Operation.error][] value with a + * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + * `Code.CANCELLED`. + * @type string $api_version + * Output only. API version used to start the operation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The time the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The time the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The time the operation finished running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEndTime() + { + return $this->end_time; + } + + public function hasEndTime() + { + return isset($this->end_time); + } + + public function clearEndTime() + { + unset($this->end_time); + } + + /** + * Output only. The time the operation finished running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTarget() + { + return $this->target; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setTarget($var) + { + GPBUtil::checkString($var, True); + $this->target = $var; + + return $this; + } + + /** + * Output only. Name of the verb executed by the operation. + * + * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getVerb() + { + return $this->verb; + } + + /** + * Output only. Name of the verb executed by the operation. + * + * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setVerb($var) + { + GPBUtil::checkString($var, True); + $this->verb = $var; + + return $this; + } + + /** + * Output only. Human-readable status of the operation, if any. + * + * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getStatusMessage() + { + return $this->status_message; + } + + /** + * Output only. Human-readable status of the operation, if any. + * + * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setStatusMessage($var) + { + GPBUtil::checkString($var, True); + $this->status_message = $var; + + return $this; + } + + /** + * Output only. Identifies whether the user has requested cancellation + * of the operation. Operations that have successfully been cancelled + * have [Operation.error][] value with a + * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + * `Code.CANCELLED`. + * + * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getRequestedCancellation() + { + return $this->requested_cancellation; + } + + /** + * Output only. Identifies whether the user has requested cancellation + * of the operation. Operations that have successfully been cancelled + * have [Operation.error][] value with a + * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + * `Code.CANCELLED`. + * + * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setRequestedCancellation($var) + { + GPBUtil::checkBool($var); + $this->requested_cancellation = $var; + + return $this; + } + + /** + * Output only. API version used to start the operation. + * + * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getApiVersion() + { + return $this->api_version; + } + + /** + * Output only. API version used to start the operation. + * + * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setApiVersion($var) + { + GPBUtil::checkString($var, True); + $this->api_version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Phase.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Phase.php new file mode 100644 index 000000000000..d4eb8041827c --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Phase.php @@ -0,0 +1,215 @@ +google.cloud.deploy.v1.Phase + */ +class Phase extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The ID of the Phase. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $id = ''; + /** + * Output only. Current state of the Phase. + * + * Generated from protobuf field .google.cloud.deploy.v1.Phase.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. Additional information on why the Phase was skipped, if + * available. + * + * Generated from protobuf field string skip_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $skip_message = ''; + protected $jobs; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * Output only. The ID of the Phase. + * @type int $state + * Output only. Current state of the Phase. + * @type string $skip_message + * Output only. Additional information on why the Phase was skipped, if + * available. + * @type \Google\Cloud\Deploy\V1\DeploymentJobs $deployment_jobs + * Output only. Deployment job composition. + * @type \Google\Cloud\Deploy\V1\ChildRolloutJobs $child_rollout_jobs + * Output only. ChildRollout job composition. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The ID of the Phase. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * Output only. The ID of the Phase. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * Output only. Current state of the Phase. + * + * Generated from protobuf field .google.cloud.deploy.v1.Phase.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. Current state of the Phase. + * + * Generated from protobuf field .google.cloud.deploy.v1.Phase.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Phase\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. Additional information on why the Phase was skipped, if + * available. + * + * Generated from protobuf field string skip_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getSkipMessage() + { + return $this->skip_message; + } + + /** + * Output only. Additional information on why the Phase was skipped, if + * available. + * + * Generated from protobuf field string skip_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setSkipMessage($var) + { + GPBUtil::checkString($var, True); + $this->skip_message = $var; + + return $this; + } + + /** + * Output only. Deployment job composition. + * + * Generated from protobuf field .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\DeploymentJobs|null + */ + public function getDeploymentJobs() + { + return $this->readOneof(4); + } + + public function hasDeploymentJobs() + { + return $this->hasOneof(4); + } + + /** + * Output only. Deployment job composition. + * + * Generated from protobuf field .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\DeploymentJobs $var + * @return $this + */ + public function setDeploymentJobs($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\DeploymentJobs::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Output only. ChildRollout job composition. + * + * Generated from protobuf field .google.cloud.deploy.v1.ChildRolloutJobs child_rollout_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\ChildRolloutJobs|null + */ + public function getChildRolloutJobs() + { + return $this->readOneof(5); + } + + public function hasChildRolloutJobs() + { + return $this->hasOneof(5); + } + + /** + * Output only. ChildRollout job composition. + * + * Generated from protobuf field .google.cloud.deploy.v1.ChildRolloutJobs child_rollout_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\ChildRolloutJobs $var + * @return $this + */ + public function setChildRolloutJobs($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\ChildRolloutJobs::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * @return string + */ + public function getJobs() + { + return $this->whichOneof("jobs"); + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Phase/State.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Phase/State.php new file mode 100644 index 000000000000..0685882739b8 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Phase/State.php @@ -0,0 +1,92 @@ +google.cloud.deploy.v1.Phase.State + */ +class State +{ + /** + * The Phase has an unspecified state. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The Phase is waiting for an earlier Phase(s) to complete. + * + * Generated from protobuf enum PENDING = 1; + */ + const PENDING = 1; + /** + * The Phase is in progress. + * + * Generated from protobuf enum IN_PROGRESS = 2; + */ + const IN_PROGRESS = 2; + /** + * The Phase has succeeded. + * + * Generated from protobuf enum SUCCEEDED = 3; + */ + const SUCCEEDED = 3; + /** + * The Phase has failed. + * + * Generated from protobuf enum FAILED = 4; + */ + const FAILED = 4; + /** + * The Phase was aborted. + * + * Generated from protobuf enum ABORTED = 5; + */ + const ABORTED = 5; + /** + * The Phase was skipped. + * + * Generated from protobuf enum SKIPPED = 6; + */ + const SKIPPED = 6; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::PENDING => 'PENDING', + self::IN_PROGRESS => 'IN_PROGRESS', + self::SUCCEEDED => 'SUCCEEDED', + self::FAILED => 'FAILED', + self::ABORTED => 'ABORTED', + self::SKIPPED => 'SKIPPED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(State::class, \Google\Cloud\Deploy\V1\Phase_State::class); + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PipelineCondition.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PipelineCondition.php new file mode 100644 index 000000000000..9b2a718bb204 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PipelineCondition.php @@ -0,0 +1,169 @@ +google.cloud.deploy.v1.PipelineCondition + */ +class PipelineCondition extends \Google\Protobuf\Internal\Message +{ + /** + * Details around the Pipeline's overall status. + * + * Generated from protobuf field .google.cloud.deploy.v1.PipelineReadyCondition pipeline_ready_condition = 1; + */ + protected $pipeline_ready_condition = null; + /** + * Details around targets enumerated in the pipeline. + * + * Generated from protobuf field .google.cloud.deploy.v1.TargetsPresentCondition targets_present_condition = 3; + */ + protected $targets_present_condition = null; + /** + * Details on the whether the targets enumerated in the pipeline are of the + * same type. + * + * Generated from protobuf field .google.cloud.deploy.v1.TargetsTypeCondition targets_type_condition = 4; + */ + protected $targets_type_condition = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Deploy\V1\PipelineReadyCondition $pipeline_ready_condition + * Details around the Pipeline's overall status. + * @type \Google\Cloud\Deploy\V1\TargetsPresentCondition $targets_present_condition + * Details around targets enumerated in the pipeline. + * @type \Google\Cloud\Deploy\V1\TargetsTypeCondition $targets_type_condition + * Details on the whether the targets enumerated in the pipeline are of the + * same type. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Details around the Pipeline's overall status. + * + * Generated from protobuf field .google.cloud.deploy.v1.PipelineReadyCondition pipeline_ready_condition = 1; + * @return \Google\Cloud\Deploy\V1\PipelineReadyCondition|null + */ + public function getPipelineReadyCondition() + { + return $this->pipeline_ready_condition; + } + + public function hasPipelineReadyCondition() + { + return isset($this->pipeline_ready_condition); + } + + public function clearPipelineReadyCondition() + { + unset($this->pipeline_ready_condition); + } + + /** + * Details around the Pipeline's overall status. + * + * Generated from protobuf field .google.cloud.deploy.v1.PipelineReadyCondition pipeline_ready_condition = 1; + * @param \Google\Cloud\Deploy\V1\PipelineReadyCondition $var + * @return $this + */ + public function setPipelineReadyCondition($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\PipelineReadyCondition::class); + $this->pipeline_ready_condition = $var; + + return $this; + } + + /** + * Details around targets enumerated in the pipeline. + * + * Generated from protobuf field .google.cloud.deploy.v1.TargetsPresentCondition targets_present_condition = 3; + * @return \Google\Cloud\Deploy\V1\TargetsPresentCondition|null + */ + public function getTargetsPresentCondition() + { + return $this->targets_present_condition; + } + + public function hasTargetsPresentCondition() + { + return isset($this->targets_present_condition); + } + + public function clearTargetsPresentCondition() + { + unset($this->targets_present_condition); + } + + /** + * Details around targets enumerated in the pipeline. + * + * Generated from protobuf field .google.cloud.deploy.v1.TargetsPresentCondition targets_present_condition = 3; + * @param \Google\Cloud\Deploy\V1\TargetsPresentCondition $var + * @return $this + */ + public function setTargetsPresentCondition($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\TargetsPresentCondition::class); + $this->targets_present_condition = $var; + + return $this; + } + + /** + * Details on the whether the targets enumerated in the pipeline are of the + * same type. + * + * Generated from protobuf field .google.cloud.deploy.v1.TargetsTypeCondition targets_type_condition = 4; + * @return \Google\Cloud\Deploy\V1\TargetsTypeCondition|null + */ + public function getTargetsTypeCondition() + { + return $this->targets_type_condition; + } + + public function hasTargetsTypeCondition() + { + return isset($this->targets_type_condition); + } + + public function clearTargetsTypeCondition() + { + unset($this->targets_type_condition); + } + + /** + * Details on the whether the targets enumerated in the pipeline are of the + * same type. + * + * Generated from protobuf field .google.cloud.deploy.v1.TargetsTypeCondition targets_type_condition = 4; + * @param \Google\Cloud\Deploy\V1\TargetsTypeCondition $var + * @return $this + */ + public function setTargetsTypeCondition($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\TargetsTypeCondition::class); + $this->targets_type_condition = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PipelineReadyCondition.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PipelineReadyCondition.php new file mode 100644 index 000000000000..5ed4775bcce0 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PipelineReadyCondition.php @@ -0,0 +1,124 @@ +google.cloud.deploy.v1.PipelineReadyCondition + */ +class PipelineReadyCondition extends \Google\Protobuf\Internal\Message +{ + /** + * True if the Pipeline is in a valid state. Otherwise at least one condition + * in `PipelineCondition` is in an invalid state. Iterate over those + * conditions and see which condition(s) has status = false to find out what + * is wrong with the Pipeline. + * + * Generated from protobuf field bool status = 3; + */ + protected $status = false; + /** + * Last time the condition was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4; + */ + protected $update_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $status + * True if the Pipeline is in a valid state. Otherwise at least one condition + * in `PipelineCondition` is in an invalid state. Iterate over those + * conditions and see which condition(s) has status = false to find out what + * is wrong with the Pipeline. + * @type \Google\Protobuf\Timestamp $update_time + * Last time the condition was updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * True if the Pipeline is in a valid state. Otherwise at least one condition + * in `PipelineCondition` is in an invalid state. Iterate over those + * conditions and see which condition(s) has status = false to find out what + * is wrong with the Pipeline. + * + * Generated from protobuf field bool status = 3; + * @return bool + */ + public function getStatus() + { + return $this->status; + } + + /** + * True if the Pipeline is in a valid state. Otherwise at least one condition + * in `PipelineCondition` is in an invalid state. Iterate over those + * conditions and see which condition(s) has status = false to find out what + * is wrong with the Pipeline. + * + * Generated from protobuf field bool status = 3; + * @param bool $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkBool($var); + $this->status = $var; + + return $this; + } + + /** + * Last time the condition was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Last time the condition was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PolicyRule.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PolicyRule.php new file mode 100644 index 000000000000..24b46dc234e1 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PolicyRule.php @@ -0,0 +1,75 @@ +google.cloud.deploy.v1.PolicyRule + */ +class PolicyRule extends \Google\Protobuf\Internal\Message +{ + protected $rule; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Deploy\V1\RolloutRestriction $rollout_restriction + * Rollout restrictions. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Rollout restrictions. + * + * Generated from protobuf field .google.cloud.deploy.v1.RolloutRestriction rollout_restriction = 2; + * @return \Google\Cloud\Deploy\V1\RolloutRestriction|null + */ + public function getRolloutRestriction() + { + return $this->readOneof(2); + } + + public function hasRolloutRestriction() + { + return $this->hasOneof(2); + } + + /** + * Rollout restrictions. + * + * Generated from protobuf field .google.cloud.deploy.v1.RolloutRestriction rollout_restriction = 2; + * @param \Google\Cloud\Deploy\V1\RolloutRestriction $var + * @return $this + */ + public function setRolloutRestriction($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\RolloutRestriction::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getRule() + { + return $this->whichOneof("rule"); + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PolicyViolation.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PolicyViolation.php new file mode 100644 index 000000000000..cc6f290964e6 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PolicyViolation.php @@ -0,0 +1,69 @@ +google.cloud.deploy.v1.PolicyViolation + */ +class PolicyViolation extends \Google\Protobuf\Internal\Message +{ + /** + * Policy violation details. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.PolicyViolationDetails policy_violation_details = 1; + */ + private $policy_violation_details; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\Deploy\V1\PolicyViolationDetails>|\Google\Protobuf\Internal\RepeatedField $policy_violation_details + * Policy violation details. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Policy violation details. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.PolicyViolationDetails policy_violation_details = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPolicyViolationDetails() + { + return $this->policy_violation_details; + } + + /** + * Policy violation details. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.PolicyViolationDetails policy_violation_details = 1; + * @param array<\Google\Cloud\Deploy\V1\PolicyViolationDetails>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPolicyViolationDetails($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\PolicyViolationDetails::class); + $this->policy_violation_details = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PolicyViolationDetails.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PolicyViolationDetails.php new file mode 100644 index 000000000000..53a3ac965baf --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PolicyViolationDetails.php @@ -0,0 +1,147 @@ +google.cloud.deploy.v1.PolicyViolationDetails + */ +class PolicyViolationDetails extends \Google\Protobuf\Internal\Message +{ + /** + * Name of the policy that was violated. + * Policy resource will be in the format of + * `projects/{project}/locations/{location}/policies/{policy}`. + * + * Generated from protobuf field string policy = 1; + */ + protected $policy = ''; + /** + * Id of the rule that triggered the policy violation. + * + * Generated from protobuf field string rule_id = 2; + */ + protected $rule_id = ''; + /** + * User readable message about why the request violated a policy. This is not + * intended for machine parsing. + * + * Generated from protobuf field string failure_message = 3; + */ + protected $failure_message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $policy + * Name of the policy that was violated. + * Policy resource will be in the format of + * `projects/{project}/locations/{location}/policies/{policy}`. + * @type string $rule_id + * Id of the rule that triggered the policy violation. + * @type string $failure_message + * User readable message about why the request violated a policy. This is not + * intended for machine parsing. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Name of the policy that was violated. + * Policy resource will be in the format of + * `projects/{project}/locations/{location}/policies/{policy}`. + * + * Generated from protobuf field string policy = 1; + * @return string + */ + public function getPolicy() + { + return $this->policy; + } + + /** + * Name of the policy that was violated. + * Policy resource will be in the format of + * `projects/{project}/locations/{location}/policies/{policy}`. + * + * Generated from protobuf field string policy = 1; + * @param string $var + * @return $this + */ + public function setPolicy($var) + { + GPBUtil::checkString($var, True); + $this->policy = $var; + + return $this; + } + + /** + * Id of the rule that triggered the policy violation. + * + * Generated from protobuf field string rule_id = 2; + * @return string + */ + public function getRuleId() + { + return $this->rule_id; + } + + /** + * Id of the rule that triggered the policy violation. + * + * Generated from protobuf field string rule_id = 2; + * @param string $var + * @return $this + */ + public function setRuleId($var) + { + GPBUtil::checkString($var, True); + $this->rule_id = $var; + + return $this; + } + + /** + * User readable message about why the request violated a policy. This is not + * intended for machine parsing. + * + * Generated from protobuf field string failure_message = 3; + * @return string + */ + public function getFailureMessage() + { + return $this->failure_message; + } + + /** + * User readable message about why the request violated a policy. This is not + * intended for machine parsing. + * + * Generated from protobuf field string failure_message = 3; + * @param string $var + * @return $this + */ + public function setFailureMessage($var) + { + GPBUtil::checkString($var, True); + $this->failure_message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Postdeploy.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Postdeploy.php new file mode 100644 index 000000000000..9d9352935c0e --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Postdeploy.php @@ -0,0 +1,71 @@ +google.cloud.deploy.v1.Postdeploy + */ +class Postdeploy extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. A sequence of Skaffold custom actions to invoke during execution + * of the postdeploy job. + * + * Generated from protobuf field repeated string actions = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $actions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $actions + * Optional. A sequence of Skaffold custom actions to invoke during execution + * of the postdeploy job. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Optional. A sequence of Skaffold custom actions to invoke during execution + * of the postdeploy job. + * + * Generated from protobuf field repeated string actions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getActions() + { + return $this->actions; + } + + /** + * Optional. A sequence of Skaffold custom actions to invoke during execution + * of the postdeploy job. + * + * Generated from protobuf field repeated string actions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setActions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->actions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PostdeployJob.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PostdeployJob.php new file mode 100644 index 000000000000..44bcfbac945d --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PostdeployJob.php @@ -0,0 +1,67 @@ +google.cloud.deploy.v1.PostdeployJob + */ +class PostdeployJob extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The custom actions that the postdeploy Job executes. + * + * Generated from protobuf field repeated string actions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $actions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $actions + * Output only. The custom actions that the postdeploy Job executes. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The custom actions that the postdeploy Job executes. + * + * Generated from protobuf field repeated string actions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getActions() + { + return $this->actions; + } + + /** + * Output only. The custom actions that the postdeploy Job executes. + * + * Generated from protobuf field repeated string actions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setActions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->actions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PostdeployJobRun.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PostdeployJobRun.php new file mode 100644 index 000000000000..1f75d56505ec --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PostdeployJobRun.php @@ -0,0 +1,151 @@ +google.cloud.deploy.v1.PostdeployJobRun + */ +class PostdeployJobRun extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The resource name of the Cloud Build `Build` object that is + * used to execute the custom actions associated with the postdeploy Job. + * Format is `projects/{project}/locations/{location}/builds/{build}`. + * + * Generated from protobuf field string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $build = ''; + /** + * Output only. The reason the postdeploy failed. This will always be + * unspecified while the postdeploy is in progress or if it succeeded. + * + * Generated from protobuf field .google.cloud.deploy.v1.PostdeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $failure_cause = 0; + /** + * Output only. Additional information about the postdeploy failure, if + * available. + * + * Generated from protobuf field string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $failure_message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $build + * Output only. The resource name of the Cloud Build `Build` object that is + * used to execute the custom actions associated with the postdeploy Job. + * Format is `projects/{project}/locations/{location}/builds/{build}`. + * @type int $failure_cause + * Output only. The reason the postdeploy failed. This will always be + * unspecified while the postdeploy is in progress or if it succeeded. + * @type string $failure_message + * Output only. Additional information about the postdeploy failure, if + * available. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The resource name of the Cloud Build `Build` object that is + * used to execute the custom actions associated with the postdeploy Job. + * Format is `projects/{project}/locations/{location}/builds/{build}`. + * + * Generated from protobuf field string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getBuild() + { + return $this->build; + } + + /** + * Output only. The resource name of the Cloud Build `Build` object that is + * used to execute the custom actions associated with the postdeploy Job. + * Format is `projects/{project}/locations/{location}/builds/{build}`. + * + * Generated from protobuf field string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setBuild($var) + { + GPBUtil::checkString($var, True); + $this->build = $var; + + return $this; + } + + /** + * Output only. The reason the postdeploy failed. This will always be + * unspecified while the postdeploy is in progress or if it succeeded. + * + * Generated from protobuf field .google.cloud.deploy.v1.PostdeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getFailureCause() + { + return $this->failure_cause; + } + + /** + * Output only. The reason the postdeploy failed. This will always be + * unspecified while the postdeploy is in progress or if it succeeded. + * + * Generated from protobuf field .google.cloud.deploy.v1.PostdeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setFailureCause($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\PostdeployJobRun\FailureCause::class); + $this->failure_cause = $var; + + return $this; + } + + /** + * Output only. Additional information about the postdeploy failure, if + * available. + * + * Generated from protobuf field string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getFailureMessage() + { + return $this->failure_message; + } + + /** + * Output only. Additional information about the postdeploy failure, if + * available. + * + * Generated from protobuf field string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setFailureMessage($var) + { + GPBUtil::checkString($var, True); + $this->failure_message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PostdeployJobRun/FailureCause.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PostdeployJobRun/FailureCause.php new file mode 100644 index 000000000000..c8b36d03b38b --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PostdeployJobRun/FailureCause.php @@ -0,0 +1,82 @@ +google.cloud.deploy.v1.PostdeployJobRun.FailureCause + */ +class FailureCause +{ + /** + * No reason for failure is specified. + * + * Generated from protobuf enum FAILURE_CAUSE_UNSPECIFIED = 0; + */ + const FAILURE_CAUSE_UNSPECIFIED = 0; + /** + * Cloud Build is not available, either because it is not enabled or because + * Cloud Deploy has insufficient permissions. See [required + * permission](https://cloud.google.com/deploy/docs/cloud-deploy-service-account#required_permissions). + * + * Generated from protobuf enum CLOUD_BUILD_UNAVAILABLE = 1; + */ + const CLOUD_BUILD_UNAVAILABLE = 1; + /** + * The postdeploy operation did not complete successfully; check Cloud Build + * logs. + * + * Generated from protobuf enum EXECUTION_FAILED = 2; + */ + const EXECUTION_FAILED = 2; + /** + * The postdeploy job run did not complete within the alloted time. + * + * Generated from protobuf enum DEADLINE_EXCEEDED = 3; + */ + const DEADLINE_EXCEEDED = 3; + /** + * Cloud Build failed to fulfill Cloud Deploy's request. See failure_message + * for additional details. + * + * Generated from protobuf enum CLOUD_BUILD_REQUEST_FAILED = 4; + */ + const CLOUD_BUILD_REQUEST_FAILED = 4; + + private static $valueToName = [ + self::FAILURE_CAUSE_UNSPECIFIED => 'FAILURE_CAUSE_UNSPECIFIED', + self::CLOUD_BUILD_UNAVAILABLE => 'CLOUD_BUILD_UNAVAILABLE', + self::EXECUTION_FAILED => 'EXECUTION_FAILED', + self::DEADLINE_EXCEEDED => 'DEADLINE_EXCEEDED', + self::CLOUD_BUILD_REQUEST_FAILED => 'CLOUD_BUILD_REQUEST_FAILED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(FailureCause::class, \Google\Cloud\Deploy\V1\PostdeployJobRun_FailureCause::class); + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Predeploy.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Predeploy.php new file mode 100644 index 000000000000..cb69743fa87d --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Predeploy.php @@ -0,0 +1,71 @@ +google.cloud.deploy.v1.Predeploy + */ +class Predeploy extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. A sequence of Skaffold custom actions to invoke during execution + * of the predeploy job. + * + * Generated from protobuf field repeated string actions = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $actions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $actions + * Optional. A sequence of Skaffold custom actions to invoke during execution + * of the predeploy job. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Optional. A sequence of Skaffold custom actions to invoke during execution + * of the predeploy job. + * + * Generated from protobuf field repeated string actions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getActions() + { + return $this->actions; + } + + /** + * Optional. A sequence of Skaffold custom actions to invoke during execution + * of the predeploy job. + * + * Generated from protobuf field repeated string actions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setActions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->actions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PredeployJob.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PredeployJob.php new file mode 100644 index 000000000000..d11e91272b59 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PredeployJob.php @@ -0,0 +1,67 @@ +google.cloud.deploy.v1.PredeployJob + */ +class PredeployJob extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The custom actions that the predeploy Job executes. + * + * Generated from protobuf field repeated string actions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $actions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $actions + * Output only. The custom actions that the predeploy Job executes. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The custom actions that the predeploy Job executes. + * + * Generated from protobuf field repeated string actions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getActions() + { + return $this->actions; + } + + /** + * Output only. The custom actions that the predeploy Job executes. + * + * Generated from protobuf field repeated string actions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setActions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->actions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PredeployJobRun.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PredeployJobRun.php new file mode 100644 index 000000000000..ad155d70502c --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PredeployJobRun.php @@ -0,0 +1,151 @@ +google.cloud.deploy.v1.PredeployJobRun + */ +class PredeployJobRun extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The resource name of the Cloud Build `Build` object that is + * used to execute the custom actions associated with the predeploy Job. + * Format is `projects/{project}/locations/{location}/builds/{build}`. + * + * Generated from protobuf field string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $build = ''; + /** + * Output only. The reason the predeploy failed. This will always be + * unspecified while the predeploy is in progress or if it succeeded. + * + * Generated from protobuf field .google.cloud.deploy.v1.PredeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $failure_cause = 0; + /** + * Output only. Additional information about the predeploy failure, if + * available. + * + * Generated from protobuf field string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $failure_message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $build + * Output only. The resource name of the Cloud Build `Build` object that is + * used to execute the custom actions associated with the predeploy Job. + * Format is `projects/{project}/locations/{location}/builds/{build}`. + * @type int $failure_cause + * Output only. The reason the predeploy failed. This will always be + * unspecified while the predeploy is in progress or if it succeeded. + * @type string $failure_message + * Output only. Additional information about the predeploy failure, if + * available. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The resource name of the Cloud Build `Build` object that is + * used to execute the custom actions associated with the predeploy Job. + * Format is `projects/{project}/locations/{location}/builds/{build}`. + * + * Generated from protobuf field string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getBuild() + { + return $this->build; + } + + /** + * Output only. The resource name of the Cloud Build `Build` object that is + * used to execute the custom actions associated with the predeploy Job. + * Format is `projects/{project}/locations/{location}/builds/{build}`. + * + * Generated from protobuf field string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setBuild($var) + { + GPBUtil::checkString($var, True); + $this->build = $var; + + return $this; + } + + /** + * Output only. The reason the predeploy failed. This will always be + * unspecified while the predeploy is in progress or if it succeeded. + * + * Generated from protobuf field .google.cloud.deploy.v1.PredeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getFailureCause() + { + return $this->failure_cause; + } + + /** + * Output only. The reason the predeploy failed. This will always be + * unspecified while the predeploy is in progress or if it succeeded. + * + * Generated from protobuf field .google.cloud.deploy.v1.PredeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setFailureCause($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\PredeployJobRun\FailureCause::class); + $this->failure_cause = $var; + + return $this; + } + + /** + * Output only. Additional information about the predeploy failure, if + * available. + * + * Generated from protobuf field string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getFailureMessage() + { + return $this->failure_message; + } + + /** + * Output only. Additional information about the predeploy failure, if + * available. + * + * Generated from protobuf field string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setFailureMessage($var) + { + GPBUtil::checkString($var, True); + $this->failure_message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PredeployJobRun/FailureCause.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PredeployJobRun/FailureCause.php new file mode 100644 index 000000000000..4859716a18b2 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PredeployJobRun/FailureCause.php @@ -0,0 +1,82 @@ +google.cloud.deploy.v1.PredeployJobRun.FailureCause + */ +class FailureCause +{ + /** + * No reason for failure is specified. + * + * Generated from protobuf enum FAILURE_CAUSE_UNSPECIFIED = 0; + */ + const FAILURE_CAUSE_UNSPECIFIED = 0; + /** + * Cloud Build is not available, either because it is not enabled or because + * Cloud Deploy has insufficient permissions. See [required + * permission](https://cloud.google.com/deploy/docs/cloud-deploy-service-account#required_permissions). + * + * Generated from protobuf enum CLOUD_BUILD_UNAVAILABLE = 1; + */ + const CLOUD_BUILD_UNAVAILABLE = 1; + /** + * The predeploy operation did not complete successfully; check Cloud Build + * logs. + * + * Generated from protobuf enum EXECUTION_FAILED = 2; + */ + const EXECUTION_FAILED = 2; + /** + * The predeploy job run did not complete within the alloted time. + * + * Generated from protobuf enum DEADLINE_EXCEEDED = 3; + */ + const DEADLINE_EXCEEDED = 3; + /** + * Cloud Build failed to fulfill Cloud Deploy's request. See failure_message + * for additional details. + * + * Generated from protobuf enum CLOUD_BUILD_REQUEST_FAILED = 4; + */ + const CLOUD_BUILD_REQUEST_FAILED = 4; + + private static $valueToName = [ + self::FAILURE_CAUSE_UNSPECIFIED => 'FAILURE_CAUSE_UNSPECIFIED', + self::CLOUD_BUILD_UNAVAILABLE => 'CLOUD_BUILD_UNAVAILABLE', + self::EXECUTION_FAILED => 'EXECUTION_FAILED', + self::DEADLINE_EXCEEDED => 'DEADLINE_EXCEEDED', + self::CLOUD_BUILD_REQUEST_FAILED => 'CLOUD_BUILD_REQUEST_FAILED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(FailureCause::class, \Google\Cloud\Deploy\V1\PredeployJobRun_FailureCause::class); + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PrivatePool.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PrivatePool.php new file mode 100644 index 000000000000..b7a8ae63ba44 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PrivatePool.php @@ -0,0 +1,159 @@ +google.cloud.deploy.v1.PrivatePool + */ +class PrivatePool extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Resource name of the Cloud Build worker pool to use. The format + * is `projects/{project}/locations/{location}/workerPools/{pool}`. + * + * Generated from protobuf field string worker_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $worker_pool = ''; + /** + * Optional. Google service account to use for execution. If unspecified, + * the project execution service account + * (-compute@developer.gserviceaccount.com) will be used. + * + * Generated from protobuf field string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $service_account = ''; + /** + * Optional. Cloud Storage location where execution outputs should be stored. + * This can either be a bucket ("gs://my-bucket") or a path within a bucket + * ("gs://my-bucket/my-dir"). + * If unspecified, a default bucket located in the same region will be used. + * + * Generated from protobuf field string artifact_storage = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $artifact_storage = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $worker_pool + * Required. Resource name of the Cloud Build worker pool to use. The format + * is `projects/{project}/locations/{location}/workerPools/{pool}`. + * @type string $service_account + * Optional. Google service account to use for execution. If unspecified, + * the project execution service account + * (-compute@developer.gserviceaccount.com) will be used. + * @type string $artifact_storage + * Optional. Cloud Storage location where execution outputs should be stored. + * This can either be a bucket ("gs://my-bucket") or a path within a bucket + * ("gs://my-bucket/my-dir"). + * If unspecified, a default bucket located in the same region will be used. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. Resource name of the Cloud Build worker pool to use. The format + * is `projects/{project}/locations/{location}/workerPools/{pool}`. + * + * Generated from protobuf field string worker_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getWorkerPool() + { + return $this->worker_pool; + } + + /** + * Required. Resource name of the Cloud Build worker pool to use. The format + * is `projects/{project}/locations/{location}/workerPools/{pool}`. + * + * Generated from protobuf field string worker_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setWorkerPool($var) + { + GPBUtil::checkString($var, True); + $this->worker_pool = $var; + + return $this; + } + + /** + * Optional. Google service account to use for execution. If unspecified, + * the project execution service account + * (-compute@developer.gserviceaccount.com) will be used. + * + * Generated from protobuf field string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getServiceAccount() + { + return $this->service_account; + } + + /** + * Optional. Google service account to use for execution. If unspecified, + * the project execution service account + * (-compute@developer.gserviceaccount.com) will be used. + * + * Generated from protobuf field string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setServiceAccount($var) + { + GPBUtil::checkString($var, True); + $this->service_account = $var; + + return $this; + } + + /** + * Optional. Cloud Storage location where execution outputs should be stored. + * This can either be a bucket ("gs://my-bucket") or a path within a bucket + * ("gs://my-bucket/my-dir"). + * If unspecified, a default bucket located in the same region will be used. + * + * Generated from protobuf field string artifact_storage = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getArtifactStorage() + { + return $this->artifact_storage; + } + + /** + * Optional. Cloud Storage location where execution outputs should be stored. + * This can either be a bucket ("gs://my-bucket") or a path within a bucket + * ("gs://my-bucket/my-dir"). + * If unspecified, a default bucket located in the same region will be used. + * + * Generated from protobuf field string artifact_storage = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setArtifactStorage($var) + { + GPBUtil::checkString($var, True); + $this->artifact_storage = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PromoteReleaseOperation.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PromoteReleaseOperation.php new file mode 100644 index 000000000000..5dec2ed45fe3 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PromoteReleaseOperation.php @@ -0,0 +1,187 @@ +google.cloud.deploy.v1.PromoteReleaseOperation + */ +class PromoteReleaseOperation extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The ID of the target that represents the promotion stage to + * which the release will be promoted. The value of this field is the last + * segment of a target name. + * + * Generated from protobuf field string target_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $target_id = ''; + /** + * Output only. How long the operation will be paused. + * + * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $wait = null; + /** + * Output only. The name of the rollout that initiates the `AutomationRun`. + * + * Generated from protobuf field string rollout = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $rollout = ''; + /** + * Output only. The starting phase of the rollout created by this operation. + * + * Generated from protobuf field string phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $phase = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $target_id + * Output only. The ID of the target that represents the promotion stage to + * which the release will be promoted. The value of this field is the last + * segment of a target name. + * @type \Google\Protobuf\Duration $wait + * Output only. How long the operation will be paused. + * @type string $rollout + * Output only. The name of the rollout that initiates the `AutomationRun`. + * @type string $phase + * Output only. The starting phase of the rollout created by this operation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The ID of the target that represents the promotion stage to + * which the release will be promoted. The value of this field is the last + * segment of a target name. + * + * Generated from protobuf field string target_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTargetId() + { + return $this->target_id; + } + + /** + * Output only. The ID of the target that represents the promotion stage to + * which the release will be promoted. The value of this field is the last + * segment of a target name. + * + * Generated from protobuf field string target_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setTargetId($var) + { + GPBUtil::checkString($var, True); + $this->target_id = $var; + + return $this; + } + + /** + * Output only. How long the operation will be paused. + * + * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Duration|null + */ + public function getWait() + { + return $this->wait; + } + + public function hasWait() + { + return isset($this->wait); + } + + public function clearWait() + { + unset($this->wait); + } + + /** + * Output only. How long the operation will be paused. + * + * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setWait($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->wait = $var; + + return $this; + } + + /** + * Output only. The name of the rollout that initiates the `AutomationRun`. + * + * Generated from protobuf field string rollout = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getRollout() + { + return $this->rollout; + } + + /** + * Output only. The name of the rollout that initiates the `AutomationRun`. + * + * Generated from protobuf field string rollout = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setRollout($var) + { + GPBUtil::checkString($var, True); + $this->rollout = $var; + + return $this; + } + + /** + * Output only. The starting phase of the rollout created by this operation. + * + * Generated from protobuf field string phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getPhase() + { + return $this->phase; + } + + /** + * Output only. The starting phase of the rollout created by this operation. + * + * Generated from protobuf field string phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setPhase($var) + { + GPBUtil::checkString($var, True); + $this->phase = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PromoteReleaseRule.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PromoteReleaseRule.php new file mode 100644 index 000000000000..e07f786ba393 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PromoteReleaseRule.php @@ -0,0 +1,256 @@ +google.cloud.deploy.v1.PromoteReleaseRule + */ +class PromoteReleaseRule extends \Google\Protobuf\Internal\Message +{ + /** + * Required. ID of the rule. This id must be unique in the `Automation` + * resource to which this rule belongs. The format is + * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $id = ''; + /** + * Optional. How long the release need to be paused until being promoted to + * the next target. + * + * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $wait = null; + /** + * Optional. The ID of the stage in the pipeline to which this `Release` is + * deploying. If unspecified, default it to the next stage in the promotion + * flow. The value of this field could be one of the following: + * * The last segment of a target name + * * "@next", the next target in the promotion sequence + * + * Generated from protobuf field string destination_target_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $destination_target_id = ''; + /** + * Output only. Information around the state of the Automation rule. + * + * Generated from protobuf field .google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $condition = null; + /** + * Optional. The starting phase of the rollout created by this operation. + * Default to the first phase. + * + * Generated from protobuf field string destination_phase = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $destination_phase = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * Required. ID of the rule. This id must be unique in the `Automation` + * resource to which this rule belongs. The format is + * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. + * @type \Google\Protobuf\Duration $wait + * Optional. How long the release need to be paused until being promoted to + * the next target. + * @type string $destination_target_id + * Optional. The ID of the stage in the pipeline to which this `Release` is + * deploying. If unspecified, default it to the next stage in the promotion + * flow. The value of this field could be one of the following: + * * The last segment of a target name + * * "@next", the next target in the promotion sequence + * @type \Google\Cloud\Deploy\V1\AutomationRuleCondition $condition + * Output only. Information around the state of the Automation rule. + * @type string $destination_phase + * Optional. The starting phase of the rollout created by this operation. + * Default to the first phase. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. ID of the rule. This id must be unique in the `Automation` + * resource to which this rule belongs. The format is + * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * Required. ID of the rule. This id must be unique in the `Automation` + * resource to which this rule belongs. The format is + * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * Optional. How long the release need to be paused until being promoted to + * the next target. + * + * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Duration|null + */ + public function getWait() + { + return $this->wait; + } + + public function hasWait() + { + return isset($this->wait); + } + + public function clearWait() + { + unset($this->wait); + } + + /** + * Optional. How long the release need to be paused until being promoted to + * the next target. + * + * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setWait($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->wait = $var; + + return $this; + } + + /** + * Optional. The ID of the stage in the pipeline to which this `Release` is + * deploying. If unspecified, default it to the next stage in the promotion + * flow. The value of this field could be one of the following: + * * The last segment of a target name + * * "@next", the next target in the promotion sequence + * + * Generated from protobuf field string destination_target_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDestinationTargetId() + { + return $this->destination_target_id; + } + + /** + * Optional. The ID of the stage in the pipeline to which this `Release` is + * deploying. If unspecified, default it to the next stage in the promotion + * flow. The value of this field could be one of the following: + * * The last segment of a target name + * * "@next", the next target in the promotion sequence + * + * Generated from protobuf field string destination_target_id = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDestinationTargetId($var) + { + GPBUtil::checkString($var, True); + $this->destination_target_id = $var; + + return $this; + } + + /** + * Output only. Information around the state of the Automation rule. + * + * Generated from protobuf field .google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\AutomationRuleCondition|null + */ + public function getCondition() + { + return $this->condition; + } + + public function hasCondition() + { + return isset($this->condition); + } + + public function clearCondition() + { + unset($this->condition); + } + + /** + * Output only. Information around the state of the Automation rule. + * + * Generated from protobuf field .google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\AutomationRuleCondition $var + * @return $this + */ + public function setCondition($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\AutomationRuleCondition::class); + $this->condition = $var; + + return $this; + } + + /** + * Optional. The starting phase of the rollout created by this operation. + * Default to the first phase. + * + * Generated from protobuf field string destination_phase = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDestinationPhase() + { + return $this->destination_phase; + } + + /** + * Optional. The starting phase of the rollout created by this operation. + * Default to the first phase. + * + * Generated from protobuf field string destination_phase = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDestinationPhase($var) + { + GPBUtil::checkString($var, True); + $this->destination_phase = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release.php new file mode 100644 index 000000000000..2842c336a4e7 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release.php @@ -0,0 +1,917 @@ +google.cloud.deploy.v1.Release + */ +class Release extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Name of the `Release`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`. + * The `release` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $name = ''; + /** + * Output only. Unique identifier of the `Release`. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $uid = ''; + /** + * Description of the `Release`. Max length is 255 characters. + * + * Generated from protobuf field string description = 3; + */ + protected $description = ''; + /** + * User annotations. These attributes can only be set and used by the + * user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations + * for more details such as format and size limitations. + * + * Generated from protobuf field map annotations = 4; + */ + private $annotations; + /** + * Labels are attributes that can be set and used by both the + * user and by Cloud Deploy. Labels must meet the following constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. + * + * Generated from protobuf field map labels = 5; + */ + private $labels; + /** + * Output only. Indicates whether this is an abandoned release. + * + * Generated from protobuf field bool abandoned = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $abandoned = false; + /** + * Output only. Time at which the `Release` was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Time at which the render began. + * + * Generated from protobuf field .google.protobuf.Timestamp render_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $render_start_time = null; + /** + * Output only. Time at which the render completed. + * + * Generated from protobuf field .google.protobuf.Timestamp render_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $render_end_time = null; + /** + * Cloud Storage URI of tar.gz archive containing Skaffold configuration. + * + * Generated from protobuf field string skaffold_config_uri = 17; + */ + protected $skaffold_config_uri = ''; + /** + * Filepath of the Skaffold config inside of the config URI. + * + * Generated from protobuf field string skaffold_config_path = 9; + */ + protected $skaffold_config_path = ''; + /** + * List of artifacts to pass through to Skaffold command. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10; + */ + private $build_artifacts; + /** + * Output only. Snapshot of the parent pipeline taken at release creation + * time. + * + * Generated from protobuf field .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline_snapshot = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $delivery_pipeline_snapshot = null; + /** + * Output only. Snapshot of the targets taken at release creation time. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $target_snapshots; + /** + * Output only. Snapshot of the custom target types referenced by the targets + * taken at release creation time. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $custom_target_type_snapshots; + /** + * Output only. Current state of the render operation. + * + * Generated from protobuf field .google.cloud.deploy.v1.Release.RenderState render_state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $render_state = 0; + /** + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 16; + */ + protected $etag = ''; + /** + * The Skaffold version to use when operating on this release, such as + * "1.20.0". Not all versions are valid; Cloud Deploy supports a specific set + * of versions. + * If unset, the most recent supported Skaffold version will be used. + * + * Generated from protobuf field string skaffold_version = 19; + */ + protected $skaffold_version = ''; + /** + * Output only. Map from target ID to the target artifacts created + * during the render operation. + * + * Generated from protobuf field map target_artifacts = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $target_artifacts; + /** + * Output only. Map from target ID to details of the render operation for that + * target. + * + * Generated from protobuf field map target_renders = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $target_renders; + /** + * Output only. Information around the state of the Release. + * + * Generated from protobuf field .google.cloud.deploy.v1.Release.ReleaseCondition condition = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $condition = null; + /** + * Optional. The deploy parameters to use for all targets in this release. + * + * Generated from protobuf field map deploy_parameters = 25 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $deploy_parameters; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Optional. Name of the `Release`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`. + * The `release` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` + * @type string $uid + * Output only. Unique identifier of the `Release`. + * @type string $description + * Description of the `Release`. Max length is 255 characters. + * @type array|\Google\Protobuf\Internal\MapField $annotations + * User annotations. These attributes can only be set and used by the + * user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations + * for more details such as format and size limitations. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Labels are attributes that can be set and used by both the + * user and by Cloud Deploy. Labels must meet the following constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. + * @type bool $abandoned + * Output only. Indicates whether this is an abandoned release. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time at which the `Release` was created. + * @type \Google\Protobuf\Timestamp $render_start_time + * Output only. Time at which the render began. + * @type \Google\Protobuf\Timestamp $render_end_time + * Output only. Time at which the render completed. + * @type string $skaffold_config_uri + * Cloud Storage URI of tar.gz archive containing Skaffold configuration. + * @type string $skaffold_config_path + * Filepath of the Skaffold config inside of the config URI. + * @type array<\Google\Cloud\Deploy\V1\BuildArtifact>|\Google\Protobuf\Internal\RepeatedField $build_artifacts + * List of artifacts to pass through to Skaffold command. + * @type \Google\Cloud\Deploy\V1\DeliveryPipeline $delivery_pipeline_snapshot + * Output only. Snapshot of the parent pipeline taken at release creation + * time. + * @type array<\Google\Cloud\Deploy\V1\Target>|\Google\Protobuf\Internal\RepeatedField $target_snapshots + * Output only. Snapshot of the targets taken at release creation time. + * @type array<\Google\Cloud\Deploy\V1\CustomTargetType>|\Google\Protobuf\Internal\RepeatedField $custom_target_type_snapshots + * Output only. Snapshot of the custom target types referenced by the targets + * taken at release creation time. + * @type int $render_state + * Output only. Current state of the render operation. + * @type string $etag + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * @type string $skaffold_version + * The Skaffold version to use when operating on this release, such as + * "1.20.0". Not all versions are valid; Cloud Deploy supports a specific set + * of versions. + * If unset, the most recent supported Skaffold version will be used. + * @type array|\Google\Protobuf\Internal\MapField $target_artifacts + * Output only. Map from target ID to the target artifacts created + * during the render operation. + * @type array|\Google\Protobuf\Internal\MapField $target_renders + * Output only. Map from target ID to details of the render operation for that + * target. + * @type \Google\Cloud\Deploy\V1\Release\ReleaseCondition $condition + * Output only. Information around the state of the Release. + * @type array|\Google\Protobuf\Internal\MapField $deploy_parameters + * Optional. The deploy parameters to use for all targets in this release. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Name of the `Release`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`. + * The `release` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Optional. Name of the `Release`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`. + * The `release` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. Unique identifier of the `Release`. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. Unique identifier of the `Release`. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Description of the `Release`. Max length is 255 characters. + * + * Generated from protobuf field string description = 3; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Description of the `Release`. Max length is 255 characters. + * + * Generated from protobuf field string description = 3; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * User annotations. These attributes can only be set and used by the + * user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations + * for more details such as format and size limitations. + * + * Generated from protobuf field map annotations = 4; + * @return \Google\Protobuf\Internal\MapField + */ + public function getAnnotations() + { + return $this->annotations; + } + + /** + * User annotations. These attributes can only be set and used by the + * user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations + * for more details such as format and size limitations. + * + * Generated from protobuf field map annotations = 4; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setAnnotations($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->annotations = $arr; + + return $this; + } + + /** + * Labels are attributes that can be set and used by both the + * user and by Cloud Deploy. Labels must meet the following constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. + * + * Generated from protobuf field map labels = 5; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Labels are attributes that can be set and used by both the + * user and by Cloud Deploy. Labels must meet the following constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. + * + * Generated from protobuf field map labels = 5; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Output only. Indicates whether this is an abandoned release. + * + * Generated from protobuf field bool abandoned = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getAbandoned() + { + return $this->abandoned; + } + + /** + * Output only. Indicates whether this is an abandoned release. + * + * Generated from protobuf field bool abandoned = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setAbandoned($var) + { + GPBUtil::checkBool($var); + $this->abandoned = $var; + + return $this; + } + + /** + * Output only. Time at which the `Release` was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Time at which the `Release` was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Time at which the render began. + * + * Generated from protobuf field .google.protobuf.Timestamp render_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getRenderStartTime() + { + return $this->render_start_time; + } + + public function hasRenderStartTime() + { + return isset($this->render_start_time); + } + + public function clearRenderStartTime() + { + unset($this->render_start_time); + } + + /** + * Output only. Time at which the render began. + * + * Generated from protobuf field .google.protobuf.Timestamp render_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setRenderStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->render_start_time = $var; + + return $this; + } + + /** + * Output only. Time at which the render completed. + * + * Generated from protobuf field .google.protobuf.Timestamp render_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getRenderEndTime() + { + return $this->render_end_time; + } + + public function hasRenderEndTime() + { + return isset($this->render_end_time); + } + + public function clearRenderEndTime() + { + unset($this->render_end_time); + } + + /** + * Output only. Time at which the render completed. + * + * Generated from protobuf field .google.protobuf.Timestamp render_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setRenderEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->render_end_time = $var; + + return $this; + } + + /** + * Cloud Storage URI of tar.gz archive containing Skaffold configuration. + * + * Generated from protobuf field string skaffold_config_uri = 17; + * @return string + */ + public function getSkaffoldConfigUri() + { + return $this->skaffold_config_uri; + } + + /** + * Cloud Storage URI of tar.gz archive containing Skaffold configuration. + * + * Generated from protobuf field string skaffold_config_uri = 17; + * @param string $var + * @return $this + */ + public function setSkaffoldConfigUri($var) + { + GPBUtil::checkString($var, True); + $this->skaffold_config_uri = $var; + + return $this; + } + + /** + * Filepath of the Skaffold config inside of the config URI. + * + * Generated from protobuf field string skaffold_config_path = 9; + * @return string + */ + public function getSkaffoldConfigPath() + { + return $this->skaffold_config_path; + } + + /** + * Filepath of the Skaffold config inside of the config URI. + * + * Generated from protobuf field string skaffold_config_path = 9; + * @param string $var + * @return $this + */ + public function setSkaffoldConfigPath($var) + { + GPBUtil::checkString($var, True); + $this->skaffold_config_path = $var; + + return $this; + } + + /** + * List of artifacts to pass through to Skaffold command. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getBuildArtifacts() + { + return $this->build_artifacts; + } + + /** + * List of artifacts to pass through to Skaffold command. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10; + * @param array<\Google\Cloud\Deploy\V1\BuildArtifact>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setBuildArtifacts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\BuildArtifact::class); + $this->build_artifacts = $arr; + + return $this; + } + + /** + * Output only. Snapshot of the parent pipeline taken at release creation + * time. + * + * Generated from protobuf field .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline_snapshot = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\DeliveryPipeline|null + */ + public function getDeliveryPipelineSnapshot() + { + return $this->delivery_pipeline_snapshot; + } + + public function hasDeliveryPipelineSnapshot() + { + return isset($this->delivery_pipeline_snapshot); + } + + public function clearDeliveryPipelineSnapshot() + { + unset($this->delivery_pipeline_snapshot); + } + + /** + * Output only. Snapshot of the parent pipeline taken at release creation + * time. + * + * Generated from protobuf field .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline_snapshot = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\DeliveryPipeline $var + * @return $this + */ + public function setDeliveryPipelineSnapshot($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\DeliveryPipeline::class); + $this->delivery_pipeline_snapshot = $var; + + return $this; + } + + /** + * Output only. Snapshot of the targets taken at release creation time. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTargetSnapshots() + { + return $this->target_snapshots; + } + + /** + * Output only. Snapshot of the targets taken at release creation time. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\Deploy\V1\Target>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTargetSnapshots($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\Target::class); + $this->target_snapshots = $arr; + + return $this; + } + + /** + * Output only. Snapshot of the custom target types referenced by the targets + * taken at release creation time. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCustomTargetTypeSnapshots() + { + return $this->custom_target_type_snapshots; + } + + /** + * Output only. Snapshot of the custom target types referenced by the targets + * taken at release creation time. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\Deploy\V1\CustomTargetType>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCustomTargetTypeSnapshots($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\CustomTargetType::class); + $this->custom_target_type_snapshots = $arr; + + return $this; + } + + /** + * Output only. Current state of the render operation. + * + * Generated from protobuf field .google.cloud.deploy.v1.Release.RenderState render_state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getRenderState() + { + return $this->render_state; + } + + /** + * Output only. Current state of the render operation. + * + * Generated from protobuf field .google.cloud.deploy.v1.Release.RenderState render_state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setRenderState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Release\RenderState::class); + $this->render_state = $var; + + return $this; + } + + /** + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 16; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 16; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * The Skaffold version to use when operating on this release, such as + * "1.20.0". Not all versions are valid; Cloud Deploy supports a specific set + * of versions. + * If unset, the most recent supported Skaffold version will be used. + * + * Generated from protobuf field string skaffold_version = 19; + * @return string + */ + public function getSkaffoldVersion() + { + return $this->skaffold_version; + } + + /** + * The Skaffold version to use when operating on this release, such as + * "1.20.0". Not all versions are valid; Cloud Deploy supports a specific set + * of versions. + * If unset, the most recent supported Skaffold version will be used. + * + * Generated from protobuf field string skaffold_version = 19; + * @param string $var + * @return $this + */ + public function setSkaffoldVersion($var) + { + GPBUtil::checkString($var, True); + $this->skaffold_version = $var; + + return $this; + } + + /** + * Output only. Map from target ID to the target artifacts created + * during the render operation. + * + * Generated from protobuf field map target_artifacts = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getTargetArtifacts() + { + return $this->target_artifacts; + } + + /** + * Output only. Map from target ID to the target artifacts created + * during the render operation. + * + * Generated from protobuf field map target_artifacts = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setTargetArtifacts($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\TargetArtifact::class); + $this->target_artifacts = $arr; + + return $this; + } + + /** + * Output only. Map from target ID to details of the render operation for that + * target. + * + * Generated from protobuf field map target_renders = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getTargetRenders() + { + return $this->target_renders; + } + + /** + * Output only. Map from target ID to details of the render operation for that + * target. + * + * Generated from protobuf field map target_renders = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setTargetRenders($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\Release\TargetRender::class); + $this->target_renders = $arr; + + return $this; + } + + /** + * Output only. Information around the state of the Release. + * + * Generated from protobuf field .google.cloud.deploy.v1.Release.ReleaseCondition condition = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\Release\ReleaseCondition|null + */ + public function getCondition() + { + return $this->condition; + } + + public function hasCondition() + { + return isset($this->condition); + } + + public function clearCondition() + { + unset($this->condition); + } + + /** + * Output only. Information around the state of the Release. + * + * Generated from protobuf field .google.cloud.deploy.v1.Release.ReleaseCondition condition = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\Release\ReleaseCondition $var + * @return $this + */ + public function setCondition($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Release\ReleaseCondition::class); + $this->condition = $var; + + return $this; + } + + /** + * Optional. The deploy parameters to use for all targets in this release. + * + * Generated from protobuf field map deploy_parameters = 25 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getDeployParameters() + { + return $this->deploy_parameters; + } + + /** + * Optional. The deploy parameters to use for all targets in this release. + * + * Generated from protobuf field map deploy_parameters = 25 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setDeployParameters($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->deploy_parameters = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/ReleaseCondition.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/ReleaseCondition.php new file mode 100644 index 000000000000..5312fff399f3 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/ReleaseCondition.php @@ -0,0 +1,128 @@ +google.cloud.deploy.v1.Release.ReleaseCondition + */ +class ReleaseCondition extends \Google\Protobuf\Internal\Message +{ + /** + * Details around the Releases's overall status. + * + * Generated from protobuf field .google.cloud.deploy.v1.Release.ReleaseReadyCondition release_ready_condition = 1; + */ + protected $release_ready_condition = null; + /** + * Details around the support state of the release's Skaffold + * version. + * + * Generated from protobuf field .google.cloud.deploy.v1.Release.SkaffoldSupportedCondition skaffold_supported_condition = 2; + */ + protected $skaffold_supported_condition = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Deploy\V1\Release\ReleaseReadyCondition $release_ready_condition + * Details around the Releases's overall status. + * @type \Google\Cloud\Deploy\V1\Release\SkaffoldSupportedCondition $skaffold_supported_condition + * Details around the support state of the release's Skaffold + * version. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Details around the Releases's overall status. + * + * Generated from protobuf field .google.cloud.deploy.v1.Release.ReleaseReadyCondition release_ready_condition = 1; + * @return \Google\Cloud\Deploy\V1\Release\ReleaseReadyCondition|null + */ + public function getReleaseReadyCondition() + { + return $this->release_ready_condition; + } + + public function hasReleaseReadyCondition() + { + return isset($this->release_ready_condition); + } + + public function clearReleaseReadyCondition() + { + unset($this->release_ready_condition); + } + + /** + * Details around the Releases's overall status. + * + * Generated from protobuf field .google.cloud.deploy.v1.Release.ReleaseReadyCondition release_ready_condition = 1; + * @param \Google\Cloud\Deploy\V1\Release\ReleaseReadyCondition $var + * @return $this + */ + public function setReleaseReadyCondition($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Release\ReleaseReadyCondition::class); + $this->release_ready_condition = $var; + + return $this; + } + + /** + * Details around the support state of the release's Skaffold + * version. + * + * Generated from protobuf field .google.cloud.deploy.v1.Release.SkaffoldSupportedCondition skaffold_supported_condition = 2; + * @return \Google\Cloud\Deploy\V1\Release\SkaffoldSupportedCondition|null + */ + public function getSkaffoldSupportedCondition() + { + return $this->skaffold_supported_condition; + } + + public function hasSkaffoldSupportedCondition() + { + return isset($this->skaffold_supported_condition); + } + + public function clearSkaffoldSupportedCondition() + { + unset($this->skaffold_supported_condition); + } + + /** + * Details around the support state of the release's Skaffold + * version. + * + * Generated from protobuf field .google.cloud.deploy.v1.Release.SkaffoldSupportedCondition skaffold_supported_condition = 2; + * @param \Google\Cloud\Deploy\V1\Release\SkaffoldSupportedCondition $var + * @return $this + */ + public function setSkaffoldSupportedCondition($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Release\SkaffoldSupportedCondition::class); + $this->skaffold_supported_condition = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ReleaseCondition::class, \Google\Cloud\Deploy\V1\Release_ReleaseCondition::class); + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/ReleaseReadyCondition.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/ReleaseReadyCondition.php new file mode 100644 index 000000000000..067f272f1658 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/ReleaseReadyCondition.php @@ -0,0 +1,84 @@ +google.cloud.deploy.v1.Release.ReleaseReadyCondition + */ +class ReleaseReadyCondition extends \Google\Protobuf\Internal\Message +{ + /** + * True if the Release is in a valid state. Otherwise at least one condition + * in `ReleaseCondition` is in an invalid state. Iterate over those + * conditions and see which condition(s) has status = false to find out what + * is wrong with the Release. + * + * Generated from protobuf field bool status = 1; + */ + protected $status = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $status + * True if the Release is in a valid state. Otherwise at least one condition + * in `ReleaseCondition` is in an invalid state. Iterate over those + * conditions and see which condition(s) has status = false to find out what + * is wrong with the Release. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * True if the Release is in a valid state. Otherwise at least one condition + * in `ReleaseCondition` is in an invalid state. Iterate over those + * conditions and see which condition(s) has status = false to find out what + * is wrong with the Release. + * + * Generated from protobuf field bool status = 1; + * @return bool + */ + public function getStatus() + { + return $this->status; + } + + /** + * True if the Release is in a valid state. Otherwise at least one condition + * in `ReleaseCondition` is in an invalid state. Iterate over those + * conditions and see which condition(s) has status = false to find out what + * is wrong with the Release. + * + * Generated from protobuf field bool status = 1; + * @param bool $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkBool($var); + $this->status = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ReleaseReadyCondition::class, \Google\Cloud\Deploy\V1\Release_ReleaseReadyCondition::class); + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/RenderState.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/RenderState.php new file mode 100644 index 000000000000..37282c517e76 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/RenderState.php @@ -0,0 +1,71 @@ +google.cloud.deploy.v1.Release.RenderState + */ +class RenderState +{ + /** + * The render state is unspecified. + * + * Generated from protobuf enum RENDER_STATE_UNSPECIFIED = 0; + */ + const RENDER_STATE_UNSPECIFIED = 0; + /** + * All rendering operations have completed successfully. + * + * Generated from protobuf enum SUCCEEDED = 1; + */ + const SUCCEEDED = 1; + /** + * All rendering operations have completed, and one or more have failed. + * + * Generated from protobuf enum FAILED = 2; + */ + const FAILED = 2; + /** + * Rendering has started and is not complete. + * + * Generated from protobuf enum IN_PROGRESS = 3; + */ + const IN_PROGRESS = 3; + + private static $valueToName = [ + self::RENDER_STATE_UNSPECIFIED => 'RENDER_STATE_UNSPECIFIED', + self::SUCCEEDED => 'SUCCEEDED', + self::FAILED => 'FAILED', + self::IN_PROGRESS => 'IN_PROGRESS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(RenderState::class, \Google\Cloud\Deploy\V1\Release_RenderState::class); + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/SkaffoldSupportedCondition.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/SkaffoldSupportedCondition.php new file mode 100644 index 000000000000..282e3fa25ab1 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/SkaffoldSupportedCondition.php @@ -0,0 +1,201 @@ +google.cloud.deploy.v1.Release.SkaffoldSupportedCondition + */ +class SkaffoldSupportedCondition extends \Google\Protobuf\Internal\Message +{ + /** + * True if the version of Skaffold used by this release is supported. + * + * Generated from protobuf field bool status = 1; + */ + protected $status = false; + /** + * The Skaffold support state for this release's version of Skaffold. + * + * Generated from protobuf field .google.cloud.deploy.v1.SkaffoldSupportState skaffold_support_state = 2; + */ + protected $skaffold_support_state = 0; + /** + * The time at which this release's version of Skaffold will enter + * maintenance mode. + * + * Generated from protobuf field .google.protobuf.Timestamp maintenance_mode_time = 3; + */ + protected $maintenance_mode_time = null; + /** + * The time at which this release's version of Skaffold will no longer be + * supported. + * + * Generated from protobuf field .google.protobuf.Timestamp support_expiration_time = 4; + */ + protected $support_expiration_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $status + * True if the version of Skaffold used by this release is supported. + * @type int $skaffold_support_state + * The Skaffold support state for this release's version of Skaffold. + * @type \Google\Protobuf\Timestamp $maintenance_mode_time + * The time at which this release's version of Skaffold will enter + * maintenance mode. + * @type \Google\Protobuf\Timestamp $support_expiration_time + * The time at which this release's version of Skaffold will no longer be + * supported. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * True if the version of Skaffold used by this release is supported. + * + * Generated from protobuf field bool status = 1; + * @return bool + */ + public function getStatus() + { + return $this->status; + } + + /** + * True if the version of Skaffold used by this release is supported. + * + * Generated from protobuf field bool status = 1; + * @param bool $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkBool($var); + $this->status = $var; + + return $this; + } + + /** + * The Skaffold support state for this release's version of Skaffold. + * + * Generated from protobuf field .google.cloud.deploy.v1.SkaffoldSupportState skaffold_support_state = 2; + * @return int + */ + public function getSkaffoldSupportState() + { + return $this->skaffold_support_state; + } + + /** + * The Skaffold support state for this release's version of Skaffold. + * + * Generated from protobuf field .google.cloud.deploy.v1.SkaffoldSupportState skaffold_support_state = 2; + * @param int $var + * @return $this + */ + public function setSkaffoldSupportState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\SkaffoldSupportState::class); + $this->skaffold_support_state = $var; + + return $this; + } + + /** + * The time at which this release's version of Skaffold will enter + * maintenance mode. + * + * Generated from protobuf field .google.protobuf.Timestamp maintenance_mode_time = 3; + * @return \Google\Protobuf\Timestamp|null + */ + public function getMaintenanceModeTime() + { + return $this->maintenance_mode_time; + } + + public function hasMaintenanceModeTime() + { + return isset($this->maintenance_mode_time); + } + + public function clearMaintenanceModeTime() + { + unset($this->maintenance_mode_time); + } + + /** + * The time at which this release's version of Skaffold will enter + * maintenance mode. + * + * Generated from protobuf field .google.protobuf.Timestamp maintenance_mode_time = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setMaintenanceModeTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->maintenance_mode_time = $var; + + return $this; + } + + /** + * The time at which this release's version of Skaffold will no longer be + * supported. + * + * Generated from protobuf field .google.protobuf.Timestamp support_expiration_time = 4; + * @return \Google\Protobuf\Timestamp|null + */ + public function getSupportExpirationTime() + { + return $this->support_expiration_time; + } + + public function hasSupportExpirationTime() + { + return isset($this->support_expiration_time); + } + + public function clearSupportExpirationTime() + { + unset($this->support_expiration_time); + } + + /** + * The time at which this release's version of Skaffold will no longer be + * supported. + * + * Generated from protobuf field .google.protobuf.Timestamp support_expiration_time = 4; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setSupportExpirationTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->support_expiration_time = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SkaffoldSupportedCondition::class, \Google\Cloud\Deploy\V1\Release_SkaffoldSupportedCondition::class); + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/TargetRender.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/TargetRender.php new file mode 100644 index 000000000000..6042ed840749 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/TargetRender.php @@ -0,0 +1,232 @@ +google.cloud.deploy.v1.Release.TargetRender + */ +class TargetRender extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The resource name of the Cloud Build `Build` object that is + * used to render the manifest for this target. Format is + * `projects/{project}/locations/{location}/builds/{build}`. + * + * Generated from protobuf field string rendering_build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $rendering_build = ''; + /** + * Output only. Current state of the render operation for this Target. + * + * Generated from protobuf field .google.cloud.deploy.v1.Release.TargetRender.TargetRenderState rendering_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $rendering_state = 0; + /** + * Output only. Metadata related to the `Release` render for this Target. + * + * Generated from protobuf field .google.cloud.deploy.v1.RenderMetadata metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $metadata = null; + /** + * Output only. Reason this render failed. This will always be unspecified + * while the render in progress. + * + * Generated from protobuf field .google.cloud.deploy.v1.Release.TargetRender.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $failure_cause = 0; + /** + * Output only. Additional information about the render failure, if + * available. + * + * Generated from protobuf field string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $failure_message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $rendering_build + * Output only. The resource name of the Cloud Build `Build` object that is + * used to render the manifest for this target. Format is + * `projects/{project}/locations/{location}/builds/{build}`. + * @type int $rendering_state + * Output only. Current state of the render operation for this Target. + * @type \Google\Cloud\Deploy\V1\RenderMetadata $metadata + * Output only. Metadata related to the `Release` render for this Target. + * @type int $failure_cause + * Output only. Reason this render failed. This will always be unspecified + * while the render in progress. + * @type string $failure_message + * Output only. Additional information about the render failure, if + * available. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The resource name of the Cloud Build `Build` object that is + * used to render the manifest for this target. Format is + * `projects/{project}/locations/{location}/builds/{build}`. + * + * Generated from protobuf field string rendering_build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getRenderingBuild() + { + return $this->rendering_build; + } + + /** + * Output only. The resource name of the Cloud Build `Build` object that is + * used to render the manifest for this target. Format is + * `projects/{project}/locations/{location}/builds/{build}`. + * + * Generated from protobuf field string rendering_build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setRenderingBuild($var) + { + GPBUtil::checkString($var, True); + $this->rendering_build = $var; + + return $this; + } + + /** + * Output only. Current state of the render operation for this Target. + * + * Generated from protobuf field .google.cloud.deploy.v1.Release.TargetRender.TargetRenderState rendering_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getRenderingState() + { + return $this->rendering_state; + } + + /** + * Output only. Current state of the render operation for this Target. + * + * Generated from protobuf field .google.cloud.deploy.v1.Release.TargetRender.TargetRenderState rendering_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setRenderingState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Release\TargetRender\TargetRenderState::class); + $this->rendering_state = $var; + + return $this; + } + + /** + * Output only. Metadata related to the `Release` render for this Target. + * + * Generated from protobuf field .google.cloud.deploy.v1.RenderMetadata metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\RenderMetadata|null + */ + public function getMetadata() + { + return $this->metadata; + } + + public function hasMetadata() + { + return isset($this->metadata); + } + + public function clearMetadata() + { + unset($this->metadata); + } + + /** + * Output only. Metadata related to the `Release` render for this Target. + * + * Generated from protobuf field .google.cloud.deploy.v1.RenderMetadata metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\RenderMetadata $var + * @return $this + */ + public function setMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\RenderMetadata::class); + $this->metadata = $var; + + return $this; + } + + /** + * Output only. Reason this render failed. This will always be unspecified + * while the render in progress. + * + * Generated from protobuf field .google.cloud.deploy.v1.Release.TargetRender.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getFailureCause() + { + return $this->failure_cause; + } + + /** + * Output only. Reason this render failed. This will always be unspecified + * while the render in progress. + * + * Generated from protobuf field .google.cloud.deploy.v1.Release.TargetRender.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setFailureCause($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Release\TargetRender\FailureCause::class); + $this->failure_cause = $var; + + return $this; + } + + /** + * Output only. Additional information about the render failure, if + * available. + * + * Generated from protobuf field string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getFailureMessage() + { + return $this->failure_message; + } + + /** + * Output only. Additional information about the render failure, if + * available. + * + * Generated from protobuf field string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setFailureMessage($var) + { + GPBUtil::checkString($var, True); + $this->failure_message = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(TargetRender::class, \Google\Cloud\Deploy\V1\Release_TargetRender::class); + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/TargetRender/FailureCause.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/TargetRender/FailureCause.php new file mode 100644 index 000000000000..b5c87f038ed3 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/TargetRender/FailureCause.php @@ -0,0 +1,108 @@ +google.cloud.deploy.v1.Release.TargetRender.FailureCause + */ +class FailureCause +{ + /** + * No reason for failure is specified. + * + * Generated from protobuf enum FAILURE_CAUSE_UNSPECIFIED = 0; + */ + const FAILURE_CAUSE_UNSPECIFIED = 0; + /** + * Cloud Build is not available, either because it is not enabled or + * because Cloud Deploy has insufficient permissions. See [required + * permission](https://cloud.google.com/deploy/docs/cloud-deploy-service-account#required_permissions). + * + * Generated from protobuf enum CLOUD_BUILD_UNAVAILABLE = 1; + */ + const CLOUD_BUILD_UNAVAILABLE = 1; + /** + * The render operation did not complete successfully; check Cloud Build + * logs. + * + * Generated from protobuf enum EXECUTION_FAILED = 2; + */ + const EXECUTION_FAILED = 2; + /** + * Cloud Build failed to fulfill Cloud Deploy's request. See + * failure_message for additional details. + * + * Generated from protobuf enum CLOUD_BUILD_REQUEST_FAILED = 3; + */ + const CLOUD_BUILD_REQUEST_FAILED = 3; + /** + * The render operation did not complete successfully because the + * verification stanza required for verify was not found on the Skaffold + * configuration. + * + * Generated from protobuf enum VERIFICATION_CONFIG_NOT_FOUND = 4; + */ + const VERIFICATION_CONFIG_NOT_FOUND = 4; + /** + * The render operation did not complete successfully because the custom + * action required for predeploy or postdeploy was not found in the + * Skaffold configuration. See failure_message for additional details. + * + * Generated from protobuf enum CUSTOM_ACTION_NOT_FOUND = 5; + */ + const CUSTOM_ACTION_NOT_FOUND = 5; + /** + * Release failed during rendering because the release configuration is + * not supported with the specified deployment strategy. + * + * Generated from protobuf enum DEPLOYMENT_STRATEGY_NOT_SUPPORTED = 6; + */ + const DEPLOYMENT_STRATEGY_NOT_SUPPORTED = 6; + /** + * The render operation had a feature configured that is not supported. + * + * Generated from protobuf enum RENDER_FEATURE_NOT_SUPPORTED = 7; + */ + const RENDER_FEATURE_NOT_SUPPORTED = 7; + + private static $valueToName = [ + self::FAILURE_CAUSE_UNSPECIFIED => 'FAILURE_CAUSE_UNSPECIFIED', + self::CLOUD_BUILD_UNAVAILABLE => 'CLOUD_BUILD_UNAVAILABLE', + self::EXECUTION_FAILED => 'EXECUTION_FAILED', + self::CLOUD_BUILD_REQUEST_FAILED => 'CLOUD_BUILD_REQUEST_FAILED', + self::VERIFICATION_CONFIG_NOT_FOUND => 'VERIFICATION_CONFIG_NOT_FOUND', + self::CUSTOM_ACTION_NOT_FOUND => 'CUSTOM_ACTION_NOT_FOUND', + self::DEPLOYMENT_STRATEGY_NOT_SUPPORTED => 'DEPLOYMENT_STRATEGY_NOT_SUPPORTED', + self::RENDER_FEATURE_NOT_SUPPORTED => 'RENDER_FEATURE_NOT_SUPPORTED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(FailureCause::class, \Google\Cloud\Deploy\V1\Release_TargetRender_FailureCause::class); + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/TargetRender/TargetRenderState.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/TargetRender/TargetRenderState.php new file mode 100644 index 000000000000..3f4840b1272f --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/TargetRender/TargetRenderState.php @@ -0,0 +1,71 @@ +google.cloud.deploy.v1.Release.TargetRender.TargetRenderState + */ +class TargetRenderState +{ + /** + * The render operation state is unspecified. + * + * Generated from protobuf enum TARGET_RENDER_STATE_UNSPECIFIED = 0; + */ + const TARGET_RENDER_STATE_UNSPECIFIED = 0; + /** + * The render operation has completed successfully. + * + * Generated from protobuf enum SUCCEEDED = 1; + */ + const SUCCEEDED = 1; + /** + * The render operation has failed. + * + * Generated from protobuf enum FAILED = 2; + */ + const FAILED = 2; + /** + * The render operation is in progress. + * + * Generated from protobuf enum IN_PROGRESS = 3; + */ + const IN_PROGRESS = 3; + + private static $valueToName = [ + self::TARGET_RENDER_STATE_UNSPECIFIED => 'TARGET_RENDER_STATE_UNSPECIFIED', + self::SUCCEEDED => 'SUCCEEDED', + self::FAILED => 'FAILED', + self::IN_PROGRESS => 'IN_PROGRESS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(TargetRenderState::class, \Google\Cloud\Deploy\V1\Release_TargetRender_TargetRenderState::class); + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ReleaseNotificationEvent.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ReleaseNotificationEvent.php new file mode 100644 index 000000000000..564707b255ce --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ReleaseNotificationEvent.php @@ -0,0 +1,205 @@ +google.cloud.deploy.v1.ReleaseNotificationEvent + */ +class ReleaseNotificationEvent extends \Google\Protobuf\Internal\Message +{ + /** + * Debug message for when a notification fails to send. + * + * Generated from protobuf field string message = 1; + */ + protected $message = ''; + /** + * Unique identifier of the `DeliveryPipeline`. + * + * Generated from protobuf field string pipeline_uid = 4; + */ + protected $pipeline_uid = ''; + /** + * Unique identifier of the `Release`. + * + * Generated from protobuf field string release_uid = 5; + */ + protected $release_uid = ''; + /** + * The name of the `Release`. + * + * Generated from protobuf field string release = 2; + */ + protected $release = ''; + /** + * Type of this notification, e.g. for a Pub/Sub failure. + * + * Generated from protobuf field .google.cloud.deploy.v1.Type type = 3; + */ + protected $type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $message + * Debug message for when a notification fails to send. + * @type string $pipeline_uid + * Unique identifier of the `DeliveryPipeline`. + * @type string $release_uid + * Unique identifier of the `Release`. + * @type string $release + * The name of the `Release`. + * @type int $type + * Type of this notification, e.g. for a Pub/Sub failure. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\ReleaseNotificationPayload::initOnce(); + parent::__construct($data); + } + + /** + * Debug message for when a notification fails to send. + * + * Generated from protobuf field string message = 1; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Debug message for when a notification fails to send. + * + * Generated from protobuf field string message = 1; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + + /** + * Unique identifier of the `DeliveryPipeline`. + * + * Generated from protobuf field string pipeline_uid = 4; + * @return string + */ + public function getPipelineUid() + { + return $this->pipeline_uid; + } + + /** + * Unique identifier of the `DeliveryPipeline`. + * + * Generated from protobuf field string pipeline_uid = 4; + * @param string $var + * @return $this + */ + public function setPipelineUid($var) + { + GPBUtil::checkString($var, True); + $this->pipeline_uid = $var; + + return $this; + } + + /** + * Unique identifier of the `Release`. + * + * Generated from protobuf field string release_uid = 5; + * @return string + */ + public function getReleaseUid() + { + return $this->release_uid; + } + + /** + * Unique identifier of the `Release`. + * + * Generated from protobuf field string release_uid = 5; + * @param string $var + * @return $this + */ + public function setReleaseUid($var) + { + GPBUtil::checkString($var, True); + $this->release_uid = $var; + + return $this; + } + + /** + * The name of the `Release`. + * + * Generated from protobuf field string release = 2; + * @return string + */ + public function getRelease() + { + return $this->release; + } + + /** + * The name of the `Release`. + * + * Generated from protobuf field string release = 2; + * @param string $var + * @return $this + */ + public function setRelease($var) + { + GPBUtil::checkString($var, True); + $this->release = $var; + + return $this; + } + + /** + * Type of this notification, e.g. for a Pub/Sub failure. + * + * Generated from protobuf field .google.cloud.deploy.v1.Type type = 3; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Type of this notification, e.g. for a Pub/Sub failure. + * + * Generated from protobuf field .google.cloud.deploy.v1.Type type = 3; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Type::class); + $this->type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ReleaseRenderEvent.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ReleaseRenderEvent.php new file mode 100644 index 000000000000..59933d460f13 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ReleaseRenderEvent.php @@ -0,0 +1,216 @@ +google.cloud.deploy.v1.ReleaseRenderEvent + */ +class ReleaseRenderEvent extends \Google\Protobuf\Internal\Message +{ + /** + * Debug message for when a render transition occurs. Provides further + * details as rendering progresses through render states. + * + * Generated from protobuf field string message = 1; + */ + protected $message = ''; + /** + * Unique identifier of the `DeliveryPipeline`. + * + * Generated from protobuf field string pipeline_uid = 4; + */ + protected $pipeline_uid = ''; + /** + * The name of the release. + * release_uid is not in this log message because we write some of these log + * messages at release creation time, before we've generated the uid. + * + * Generated from protobuf field string release = 2; + */ + protected $release = ''; + /** + * Type of this notification, e.g. for a release render state change event. + * + * Generated from protobuf field .google.cloud.deploy.v1.Type type = 5; + */ + protected $type = 0; + /** + * The state of the release render. + * + * Generated from protobuf field .google.cloud.deploy.v1.Release.RenderState release_render_state = 3; + */ + protected $release_render_state = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $message + * Debug message for when a render transition occurs. Provides further + * details as rendering progresses through render states. + * @type string $pipeline_uid + * Unique identifier of the `DeliveryPipeline`. + * @type string $release + * The name of the release. + * release_uid is not in this log message because we write some of these log + * messages at release creation time, before we've generated the uid. + * @type int $type + * Type of this notification, e.g. for a release render state change event. + * @type int $release_render_state + * The state of the release render. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\ReleaseRenderPayload::initOnce(); + parent::__construct($data); + } + + /** + * Debug message for when a render transition occurs. Provides further + * details as rendering progresses through render states. + * + * Generated from protobuf field string message = 1; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Debug message for when a render transition occurs. Provides further + * details as rendering progresses through render states. + * + * Generated from protobuf field string message = 1; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + + /** + * Unique identifier of the `DeliveryPipeline`. + * + * Generated from protobuf field string pipeline_uid = 4; + * @return string + */ + public function getPipelineUid() + { + return $this->pipeline_uid; + } + + /** + * Unique identifier of the `DeliveryPipeline`. + * + * Generated from protobuf field string pipeline_uid = 4; + * @param string $var + * @return $this + */ + public function setPipelineUid($var) + { + GPBUtil::checkString($var, True); + $this->pipeline_uid = $var; + + return $this; + } + + /** + * The name of the release. + * release_uid is not in this log message because we write some of these log + * messages at release creation time, before we've generated the uid. + * + * Generated from protobuf field string release = 2; + * @return string + */ + public function getRelease() + { + return $this->release; + } + + /** + * The name of the release. + * release_uid is not in this log message because we write some of these log + * messages at release creation time, before we've generated the uid. + * + * Generated from protobuf field string release = 2; + * @param string $var + * @return $this + */ + public function setRelease($var) + { + GPBUtil::checkString($var, True); + $this->release = $var; + + return $this; + } + + /** + * Type of this notification, e.g. for a release render state change event. + * + * Generated from protobuf field .google.cloud.deploy.v1.Type type = 5; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Type of this notification, e.g. for a release render state change event. + * + * Generated from protobuf field .google.cloud.deploy.v1.Type type = 5; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Type::class); + $this->type = $var; + + return $this; + } + + /** + * The state of the release render. + * + * Generated from protobuf field .google.cloud.deploy.v1.Release.RenderState release_render_state = 3; + * @return int + */ + public function getReleaseRenderState() + { + return $this->release_render_state; + } + + /** + * The state of the release render. + * + * Generated from protobuf field .google.cloud.deploy.v1.Release.RenderState release_render_state = 3; + * @param int $var + * @return $this + */ + public function setReleaseRenderState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Release\RenderState::class); + $this->release_render_state = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RenderMetadata.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RenderMetadata.php new file mode 100644 index 000000000000..a4ef9c53a1d1 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RenderMetadata.php @@ -0,0 +1,121 @@ +google.cloud.deploy.v1.RenderMetadata + */ +class RenderMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Metadata associated with rendering for Cloud Run. + * + * Generated from protobuf field .google.cloud.deploy.v1.CloudRunRenderMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $cloud_run = null; + /** + * Output only. Custom metadata provided by user-defined render operation. + * + * Generated from protobuf field .google.cloud.deploy.v1.CustomMetadata custom = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $custom = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Deploy\V1\CloudRunRenderMetadata $cloud_run + * Output only. Metadata associated with rendering for Cloud Run. + * @type \Google\Cloud\Deploy\V1\CustomMetadata $custom + * Output only. Custom metadata provided by user-defined render operation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Metadata associated with rendering for Cloud Run. + * + * Generated from protobuf field .google.cloud.deploy.v1.CloudRunRenderMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\CloudRunRenderMetadata|null + */ + public function getCloudRun() + { + return $this->cloud_run; + } + + public function hasCloudRun() + { + return isset($this->cloud_run); + } + + public function clearCloudRun() + { + unset($this->cloud_run); + } + + /** + * Output only. Metadata associated with rendering for Cloud Run. + * + * Generated from protobuf field .google.cloud.deploy.v1.CloudRunRenderMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\CloudRunRenderMetadata $var + * @return $this + */ + public function setCloudRun($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CloudRunRenderMetadata::class); + $this->cloud_run = $var; + + return $this; + } + + /** + * Output only. Custom metadata provided by user-defined render operation. + * + * Generated from protobuf field .google.cloud.deploy.v1.CustomMetadata custom = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\CustomMetadata|null + */ + public function getCustom() + { + return $this->custom; + } + + public function hasCustom() + { + return isset($this->custom); + } + + public function clearCustom() + { + unset($this->custom); + } + + /** + * Output only. Custom metadata provided by user-defined render operation. + * + * Generated from protobuf field .google.cloud.deploy.v1.CustomMetadata custom = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\CustomMetadata $var + * @return $this + */ + public function setCustom($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CustomMetadata::class); + $this->custom = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairPhase.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairPhase.php new file mode 100644 index 000000000000..a82b00878400 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairPhase.php @@ -0,0 +1,109 @@ +google.cloud.deploy.v1.RepairPhase + */ +class RepairPhase extends \Google\Protobuf\Internal\Message +{ + protected $repair_phase; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Deploy\V1\RetryPhase $retry + * Output only. Records of the retry attempts for retry repair mode. + * @type \Google\Cloud\Deploy\V1\RollbackAttempt $rollback + * Output only. Rollback attempt for rollback repair mode . + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Records of the retry attempts for retry repair mode. + * + * Generated from protobuf field .google.cloud.deploy.v1.RetryPhase retry = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\RetryPhase|null + */ + public function getRetry() + { + return $this->readOneof(1); + } + + public function hasRetry() + { + return $this->hasOneof(1); + } + + /** + * Output only. Records of the retry attempts for retry repair mode. + * + * Generated from protobuf field .google.cloud.deploy.v1.RetryPhase retry = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\RetryPhase $var + * @return $this + */ + public function setRetry($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\RetryPhase::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Output only. Rollback attempt for rollback repair mode . + * + * Generated from protobuf field .google.cloud.deploy.v1.RollbackAttempt rollback = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\RollbackAttempt|null + */ + public function getRollback() + { + return $this->readOneof(2); + } + + public function hasRollback() + { + return $this->hasOneof(2); + } + + /** + * Output only. Rollback attempt for rollback repair mode . + * + * Generated from protobuf field .google.cloud.deploy.v1.RollbackAttempt rollback = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\RollbackAttempt $var + * @return $this + */ + public function setRollback($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\RollbackAttempt::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getRepairPhase() + { + return $this->whichOneof("repair_phase"); + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairPhaseConfig.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairPhaseConfig.php new file mode 100644 index 000000000000..073057c13470 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairPhaseConfig.php @@ -0,0 +1,108 @@ +google.cloud.deploy.v1.RepairPhaseConfig + */ +class RepairPhaseConfig extends \Google\Protobuf\Internal\Message +{ + protected $repair_phase; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Deploy\V1\Retry $retry + * Optional. Retries a failed job. + * @type \Google\Cloud\Deploy\V1\Rollback $rollback + * Optional. Rolls back a `Rollout`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Retries a failed job. + * + * Generated from protobuf field .google.cloud.deploy.v1.Retry retry = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Deploy\V1\Retry|null + */ + public function getRetry() + { + return $this->readOneof(1); + } + + public function hasRetry() + { + return $this->hasOneof(1); + } + + /** + * Optional. Retries a failed job. + * + * Generated from protobuf field .google.cloud.deploy.v1.Retry retry = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Deploy\V1\Retry $var + * @return $this + */ + public function setRetry($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Retry::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Optional. Rolls back a `Rollout`. + * + * Generated from protobuf field .google.cloud.deploy.v1.Rollback rollback = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Deploy\V1\Rollback|null + */ + public function getRollback() + { + return $this->readOneof(2); + } + + public function hasRollback() + { + return $this->hasOneof(2); + } + + /** + * Optional. Rolls back a `Rollout`. + * + * Generated from protobuf field .google.cloud.deploy.v1.Rollback rollback = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Deploy\V1\Rollback $var + * @return $this + */ + public function setRollback($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Rollback::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getRepairPhase() + { + return $this->whichOneof("repair_phase"); + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairRolloutOperation.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairRolloutOperation.php new file mode 100644 index 000000000000..070ec32be411 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairRolloutOperation.php @@ -0,0 +1,211 @@ +google.cloud.deploy.v1.RepairRolloutOperation + */ +class RepairRolloutOperation extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The name of the rollout that initiates the `AutomationRun`. + * + * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $rollout = ''; + /** + * Output only. The index of the current repair action in the repair sequence. + * + * Generated from protobuf field int64 current_repair_phase_index = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $current_repair_phase_index = 0; + /** + * Output only. Records of the repair attempts. Each repair phase may have + * multiple retry attempts or single rollback attempt. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.RepairPhase repair_phases = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $repair_phases; + /** + * Output only. The phase ID of the phase that includes the job being + * repaired. + * + * Generated from protobuf field string phase_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $phase_id = ''; + /** + * Output only. The job ID for the Job to repair. + * + * Generated from protobuf field string job_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $job_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $rollout + * Output only. The name of the rollout that initiates the `AutomationRun`. + * @type int|string $current_repair_phase_index + * Output only. The index of the current repair action in the repair sequence. + * @type array<\Google\Cloud\Deploy\V1\RepairPhase>|\Google\Protobuf\Internal\RepeatedField $repair_phases + * Output only. Records of the repair attempts. Each repair phase may have + * multiple retry attempts or single rollback attempt. + * @type string $phase_id + * Output only. The phase ID of the phase that includes the job being + * repaired. + * @type string $job_id + * Output only. The job ID for the Job to repair. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The name of the rollout that initiates the `AutomationRun`. + * + * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getRollout() + { + return $this->rollout; + } + + /** + * Output only. The name of the rollout that initiates the `AutomationRun`. + * + * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setRollout($var) + { + GPBUtil::checkString($var, True); + $this->rollout = $var; + + return $this; + } + + /** + * Output only. The index of the current repair action in the repair sequence. + * + * Generated from protobuf field int64 current_repair_phase_index = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getCurrentRepairPhaseIndex() + { + return $this->current_repair_phase_index; + } + + /** + * Output only. The index of the current repair action in the repair sequence. + * + * Generated from protobuf field int64 current_repair_phase_index = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setCurrentRepairPhaseIndex($var) + { + GPBUtil::checkInt64($var); + $this->current_repair_phase_index = $var; + + return $this; + } + + /** + * Output only. Records of the repair attempts. Each repair phase may have + * multiple retry attempts or single rollback attempt. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.RepairPhase repair_phases = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRepairPhases() + { + return $this->repair_phases; + } + + /** + * Output only. Records of the repair attempts. Each repair phase may have + * multiple retry attempts or single rollback attempt. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.RepairPhase repair_phases = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\Deploy\V1\RepairPhase>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRepairPhases($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\RepairPhase::class); + $this->repair_phases = $arr; + + return $this; + } + + /** + * Output only. The phase ID of the phase that includes the job being + * repaired. + * + * Generated from protobuf field string phase_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getPhaseId() + { + return $this->phase_id; + } + + /** + * Output only. The phase ID of the phase that includes the job being + * repaired. + * + * Generated from protobuf field string phase_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setPhaseId($var) + { + GPBUtil::checkString($var, True); + $this->phase_id = $var; + + return $this; + } + + /** + * Output only. The job ID for the Job to repair. + * + * Generated from protobuf field string job_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getJobId() + { + return $this->job_id; + } + + /** + * Output only. The job ID for the Job to repair. + * + * Generated from protobuf field string job_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setJobId($var) + { + GPBUtil::checkString($var, True); + $this->job_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairRolloutRule.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairRolloutRule.php new file mode 100644 index 000000000000..86ab43ecfc5d --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairRolloutRule.php @@ -0,0 +1,266 @@ +google.cloud.deploy.v1.RepairRolloutRule + */ +class RepairRolloutRule extends \Google\Protobuf\Internal\Message +{ + /** + * Required. ID of the rule. This id must be unique in the `Automation` + * resource to which this rule belongs. The format is + * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $id = ''; + /** + * Optional. Phases within which jobs are subject to automatic repair actions + * on failure. Proceeds only after phase name matched any one in the list, or + * for all phases if unspecified. This value must consist of lower-case + * letters, numbers, and hyphens, start with a letter and end with a letter or + * a number, and have a max length of 63 characters. In other words, it must + * match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * + * Generated from protobuf field repeated string phases = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $phases; + /** + * Optional. Jobs to repair. Proceeds only after job name matched any one in + * the list, or for all jobs if unspecified or empty. The phase that includes + * the job must match the phase ID specified in `source_phase`. This value + * must consist of lower-case letters, numbers, and hyphens, start with a + * letter and end with a letter or a number, and have a max length of 63 + * characters. In other words, it must match the following regex: + * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * + * Generated from protobuf field repeated string jobs = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $jobs; + /** + * Output only. Information around the state of the 'Automation' rule. + * + * Generated from protobuf field .google.cloud.deploy.v1.AutomationRuleCondition condition = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $condition = null; + /** + * Required. Defines the types of automatic repair phases for failed jobs. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.RepairPhaseConfig repair_phases = 8 [(.google.api.field_behavior) = REQUIRED]; + */ + private $repair_phases; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * Required. ID of the rule. This id must be unique in the `Automation` + * resource to which this rule belongs. The format is + * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. + * @type array|\Google\Protobuf\Internal\RepeatedField $phases + * Optional. Phases within which jobs are subject to automatic repair actions + * on failure. Proceeds only after phase name matched any one in the list, or + * for all phases if unspecified. This value must consist of lower-case + * letters, numbers, and hyphens, start with a letter and end with a letter or + * a number, and have a max length of 63 characters. In other words, it must + * match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * @type array|\Google\Protobuf\Internal\RepeatedField $jobs + * Optional. Jobs to repair. Proceeds only after job name matched any one in + * the list, or for all jobs if unspecified or empty. The phase that includes + * the job must match the phase ID specified in `source_phase`. This value + * must consist of lower-case letters, numbers, and hyphens, start with a + * letter and end with a letter or a number, and have a max length of 63 + * characters. In other words, it must match the following regex: + * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * @type \Google\Cloud\Deploy\V1\AutomationRuleCondition $condition + * Output only. Information around the state of the 'Automation' rule. + * @type array<\Google\Cloud\Deploy\V1\RepairPhaseConfig>|\Google\Protobuf\Internal\RepeatedField $repair_phases + * Required. Defines the types of automatic repair phases for failed jobs. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. ID of the rule. This id must be unique in the `Automation` + * resource to which this rule belongs. The format is + * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * Required. ID of the rule. This id must be unique in the `Automation` + * resource to which this rule belongs. The format is + * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * Optional. Phases within which jobs are subject to automatic repair actions + * on failure. Proceeds only after phase name matched any one in the list, or + * for all phases if unspecified. This value must consist of lower-case + * letters, numbers, and hyphens, start with a letter and end with a letter or + * a number, and have a max length of 63 characters. In other words, it must + * match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * + * Generated from protobuf field repeated string phases = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPhases() + { + return $this->phases; + } + + /** + * Optional. Phases within which jobs are subject to automatic repair actions + * on failure. Proceeds only after phase name matched any one in the list, or + * for all phases if unspecified. This value must consist of lower-case + * letters, numbers, and hyphens, start with a letter and end with a letter or + * a number, and have a max length of 63 characters. In other words, it must + * match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * + * Generated from protobuf field repeated string phases = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPhases($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->phases = $arr; + + return $this; + } + + /** + * Optional. Jobs to repair. Proceeds only after job name matched any one in + * the list, or for all jobs if unspecified or empty. The phase that includes + * the job must match the phase ID specified in `source_phase`. This value + * must consist of lower-case letters, numbers, and hyphens, start with a + * letter and end with a letter or a number, and have a max length of 63 + * characters. In other words, it must match the following regex: + * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * + * Generated from protobuf field repeated string jobs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getJobs() + { + return $this->jobs; + } + + /** + * Optional. Jobs to repair. Proceeds only after job name matched any one in + * the list, or for all jobs if unspecified or empty. The phase that includes + * the job must match the phase ID specified in `source_phase`. This value + * must consist of lower-case letters, numbers, and hyphens, start with a + * letter and end with a letter or a number, and have a max length of 63 + * characters. In other words, it must match the following regex: + * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * + * Generated from protobuf field repeated string jobs = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setJobs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->jobs = $arr; + + return $this; + } + + /** + * Output only. Information around the state of the 'Automation' rule. + * + * Generated from protobuf field .google.cloud.deploy.v1.AutomationRuleCondition condition = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\AutomationRuleCondition|null + */ + public function getCondition() + { + return $this->condition; + } + + public function hasCondition() + { + return isset($this->condition); + } + + public function clearCondition() + { + unset($this->condition); + } + + /** + * Output only. Information around the state of the 'Automation' rule. + * + * Generated from protobuf field .google.cloud.deploy.v1.AutomationRuleCondition condition = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\AutomationRuleCondition $var + * @return $this + */ + public function setCondition($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\AutomationRuleCondition::class); + $this->condition = $var; + + return $this; + } + + /** + * Required. Defines the types of automatic repair phases for failed jobs. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.RepairPhaseConfig repair_phases = 8 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRepairPhases() + { + return $this->repair_phases; + } + + /** + * Required. Defines the types of automatic repair phases for failed jobs. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.RepairPhaseConfig repair_phases = 8 [(.google.api.field_behavior) = REQUIRED]; + * @param array<\Google\Cloud\Deploy\V1\RepairPhaseConfig>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRepairPhases($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\RepairPhaseConfig::class); + $this->repair_phases = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairState.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairState.php new file mode 100644 index 000000000000..fabd2dd44dcb --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairState.php @@ -0,0 +1,89 @@ +google.cloud.deploy.v1.RepairState + */ +class RepairState +{ + /** + * The `repair` has an unspecified state. + * + * Generated from protobuf enum REPAIR_STATE_UNSPECIFIED = 0; + */ + const REPAIR_STATE_UNSPECIFIED = 0; + /** + * The `repair` action has succeeded. + * + * Generated from protobuf enum REPAIR_STATE_SUCCEEDED = 1; + */ + const REPAIR_STATE_SUCCEEDED = 1; + /** + * The `repair` action was cancelled. + * + * Generated from protobuf enum REPAIR_STATE_CANCELLED = 2; + */ + const REPAIR_STATE_CANCELLED = 2; + /** + * The `repair` action has failed. + * + * Generated from protobuf enum REPAIR_STATE_FAILED = 3; + */ + const REPAIR_STATE_FAILED = 3; + /** + * The `repair` action is in progress. + * + * Generated from protobuf enum REPAIR_STATE_IN_PROGRESS = 4; + */ + const REPAIR_STATE_IN_PROGRESS = 4; + /** + * The `repair` action is pending. + * + * Generated from protobuf enum REPAIR_STATE_PENDING = 5; + */ + const REPAIR_STATE_PENDING = 5; + /** + * The `repair` action was aborted. + * + * Generated from protobuf enum REPAIR_STATE_ABORTED = 7; + */ + const REPAIR_STATE_ABORTED = 7; + + private static $valueToName = [ + self::REPAIR_STATE_UNSPECIFIED => 'REPAIR_STATE_UNSPECIFIED', + self::REPAIR_STATE_SUCCEEDED => 'REPAIR_STATE_SUCCEEDED', + self::REPAIR_STATE_CANCELLED => 'REPAIR_STATE_CANCELLED', + self::REPAIR_STATE_FAILED => 'REPAIR_STATE_FAILED', + self::REPAIR_STATE_IN_PROGRESS => 'REPAIR_STATE_IN_PROGRESS', + self::REPAIR_STATE_PENDING => 'REPAIR_STATE_PENDING', + self::REPAIR_STATE_ABORTED => 'REPAIR_STATE_ABORTED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Retry.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Retry.php new file mode 100644 index 000000000000..75f2e79026fd --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Retry.php @@ -0,0 +1,157 @@ +google.cloud.deploy.v1.Retry + */ +class Retry extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Total number of retries. Retry is skipped if set to 0; The + * minimum value is 1, and the maximum value is 10. + * + * Generated from protobuf field int64 attempts = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $attempts = 0; + /** + * Optional. How long to wait for the first retry. Default is 0, and the + * maximum value is 14d. + * + * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $wait = null; + /** + * Optional. The pattern of how wait time will be increased. Default is + * linear. Backoff mode will be ignored if `wait` is 0. + * + * Generated from protobuf field .google.cloud.deploy.v1.BackoffMode backoff_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $backoff_mode = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $attempts + * Required. Total number of retries. Retry is skipped if set to 0; The + * minimum value is 1, and the maximum value is 10. + * @type \Google\Protobuf\Duration $wait + * Optional. How long to wait for the first retry. Default is 0, and the + * maximum value is 14d. + * @type int $backoff_mode + * Optional. The pattern of how wait time will be increased. Default is + * linear. Backoff mode will be ignored if `wait` is 0. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. Total number of retries. Retry is skipped if set to 0; The + * minimum value is 1, and the maximum value is 10. + * + * Generated from protobuf field int64 attempts = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int|string + */ + public function getAttempts() + { + return $this->attempts; + } + + /** + * Required. Total number of retries. Retry is skipped if set to 0; The + * minimum value is 1, and the maximum value is 10. + * + * Generated from protobuf field int64 attempts = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int|string $var + * @return $this + */ + public function setAttempts($var) + { + GPBUtil::checkInt64($var); + $this->attempts = $var; + + return $this; + } + + /** + * Optional. How long to wait for the first retry. Default is 0, and the + * maximum value is 14d. + * + * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Duration|null + */ + public function getWait() + { + return $this->wait; + } + + public function hasWait() + { + return isset($this->wait); + } + + public function clearWait() + { + unset($this->wait); + } + + /** + * Optional. How long to wait for the first retry. Default is 0, and the + * maximum value is 14d. + * + * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setWait($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->wait = $var; + + return $this; + } + + /** + * Optional. The pattern of how wait time will be increased. Default is + * linear. Backoff mode will be ignored if `wait` is 0. + * + * Generated from protobuf field .google.cloud.deploy.v1.BackoffMode backoff_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getBackoffMode() + { + return $this->backoff_mode; + } + + /** + * Optional. The pattern of how wait time will be increased. Default is + * linear. Backoff mode will be ignored if `wait` is 0. + * + * Generated from protobuf field .google.cloud.deploy.v1.BackoffMode backoff_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setBackoffMode($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\BackoffMode::class); + $this->backoff_mode = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryAttempt.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryAttempt.php new file mode 100644 index 000000000000..469c65d247e7 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryAttempt.php @@ -0,0 +1,179 @@ +google.cloud.deploy.v1.RetryAttempt + */ +class RetryAttempt extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The index of this retry attempt. + * + * Generated from protobuf field int64 attempt = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $attempt = 0; + /** + * Output only. How long the operation will be paused. + * + * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $wait = null; + /** + * Output only. Valid state of this retry action. + * + * Generated from protobuf field .google.cloud.deploy.v1.RepairState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. Description of the state of the Retry. + * + * Generated from protobuf field string state_desc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state_desc = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $attempt + * Output only. The index of this retry attempt. + * @type \Google\Protobuf\Duration $wait + * Output only. How long the operation will be paused. + * @type int $state + * Output only. Valid state of this retry action. + * @type string $state_desc + * Output only. Description of the state of the Retry. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The index of this retry attempt. + * + * Generated from protobuf field int64 attempt = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getAttempt() + { + return $this->attempt; + } + + /** + * Output only. The index of this retry attempt. + * + * Generated from protobuf field int64 attempt = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setAttempt($var) + { + GPBUtil::checkInt64($var); + $this->attempt = $var; + + return $this; + } + + /** + * Output only. How long the operation will be paused. + * + * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Duration|null + */ + public function getWait() + { + return $this->wait; + } + + public function hasWait() + { + return isset($this->wait); + } + + public function clearWait() + { + unset($this->wait); + } + + /** + * Output only. How long the operation will be paused. + * + * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setWait($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->wait = $var; + + return $this; + } + + /** + * Output only. Valid state of this retry action. + * + * Generated from protobuf field .google.cloud.deploy.v1.RepairState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. Valid state of this retry action. + * + * Generated from protobuf field .google.cloud.deploy.v1.RepairState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\RepairState::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. Description of the state of the Retry. + * + * Generated from protobuf field string state_desc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getStateDesc() + { + return $this->state_desc; + } + + /** + * Output only. Description of the state of the Retry. + * + * Generated from protobuf field string state_desc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setStateDesc($var) + { + GPBUtil::checkString($var, True); + $this->state_desc = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryJobRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryJobRequest.php new file mode 100644 index 000000000000..398162c57ca6 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryJobRequest.php @@ -0,0 +1,196 @@ +google.cloud.deploy.v1.RetryJobRequest + */ +class RetryJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the Rollout. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. + * + * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $rollout = ''; + /** + * Required. The phase ID the Job to retry belongs to. + * + * Generated from protobuf field string phase_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $phase_id = ''; + /** + * Required. The job ID for the Job to retry. + * + * Generated from protobuf field string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $job_id = ''; + /** + * Optional. Deploy policies to override. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. + * + * Generated from protobuf field repeated string override_deploy_policy = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $override_deploy_policy; + + /** + * @param string $rollout Required. Name of the Rollout. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. Please see + * {@see CloudDeployClient::rolloutName()} for help formatting this field. + * @param string $phaseId Required. The phase ID the Job to retry belongs to. + * @param string $jobId Required. The job ID for the Job to retry. + * + * @return \Google\Cloud\Deploy\V1\RetryJobRequest + * + * @experimental + */ + public static function build(string $rollout, string $phaseId, string $jobId): self + { + return (new self()) + ->setRollout($rollout) + ->setPhaseId($phaseId) + ->setJobId($jobId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $rollout + * Required. Name of the Rollout. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. + * @type string $phase_id + * Required. The phase ID the Job to retry belongs to. + * @type string $job_id + * Required. The job ID for the Job to retry. + * @type array|\Google\Protobuf\Internal\RepeatedField $override_deploy_policy + * Optional. Deploy policies to override. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the Rollout. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. + * + * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getRollout() + { + return $this->rollout; + } + + /** + * Required. Name of the Rollout. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. + * + * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setRollout($var) + { + GPBUtil::checkString($var, True); + $this->rollout = $var; + + return $this; + } + + /** + * Required. The phase ID the Job to retry belongs to. + * + * Generated from protobuf field string phase_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getPhaseId() + { + return $this->phase_id; + } + + /** + * Required. The phase ID the Job to retry belongs to. + * + * Generated from protobuf field string phase_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setPhaseId($var) + { + GPBUtil::checkString($var, True); + $this->phase_id = $var; + + return $this; + } + + /** + * Required. The job ID for the Job to retry. + * + * Generated from protobuf field string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getJobId() + { + return $this->job_id; + } + + /** + * Required. The job ID for the Job to retry. + * + * Generated from protobuf field string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setJobId($var) + { + GPBUtil::checkString($var, True); + $this->job_id = $var; + + return $this; + } + + /** + * Optional. Deploy policies to override. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. + * + * Generated from protobuf field repeated string override_deploy_policy = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOverrideDeployPolicy() + { + return $this->override_deploy_policy; + } + + /** + * Optional. Deploy policies to override. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. + * + * Generated from protobuf field repeated string override_deploy_policy = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOverrideDeployPolicy($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->override_deploy_policy = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryJobResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryJobResponse.php new file mode 100644 index 000000000000..3058f4b1d9e7 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryJobResponse.php @@ -0,0 +1,33 @@ +google.cloud.deploy.v1.RetryJobResponse + */ +class RetryJobResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryPhase.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryPhase.php new file mode 100644 index 000000000000..f8efa1208a0c --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryPhase.php @@ -0,0 +1,140 @@ +google.cloud.deploy.v1.RetryPhase + */ +class RetryPhase extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The number of attempts that have been made. + * + * Generated from protobuf field int64 total_attempts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $total_attempts = 0; + /** + * Output only. The pattern of how the wait time of the retry attempt is + * calculated. + * + * Generated from protobuf field .google.cloud.deploy.v1.BackoffMode backoff_mode = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $backoff_mode = 0; + /** + * Output only. Detail of a retry action. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $attempts; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $total_attempts + * Output only. The number of attempts that have been made. + * @type int $backoff_mode + * Output only. The pattern of how the wait time of the retry attempt is + * calculated. + * @type array<\Google\Cloud\Deploy\V1\RetryAttempt>|\Google\Protobuf\Internal\RepeatedField $attempts + * Output only. Detail of a retry action. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The number of attempts that have been made. + * + * Generated from protobuf field int64 total_attempts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getTotalAttempts() + { + return $this->total_attempts; + } + + /** + * Output only. The number of attempts that have been made. + * + * Generated from protobuf field int64 total_attempts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setTotalAttempts($var) + { + GPBUtil::checkInt64($var); + $this->total_attempts = $var; + + return $this; + } + + /** + * Output only. The pattern of how the wait time of the retry attempt is + * calculated. + * + * Generated from protobuf field .google.cloud.deploy.v1.BackoffMode backoff_mode = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getBackoffMode() + { + return $this->backoff_mode; + } + + /** + * Output only. The pattern of how the wait time of the retry attempt is + * calculated. + * + * Generated from protobuf field .google.cloud.deploy.v1.BackoffMode backoff_mode = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setBackoffMode($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\BackoffMode::class); + $this->backoff_mode = $var; + + return $this; + } + + /** + * Output only. Detail of a retry action. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAttempts() + { + return $this->attempts; + } + + /** + * Output only. Detail of a retry action. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\Deploy\V1\RetryAttempt>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAttempts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\RetryAttempt::class); + $this->attempts = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollback.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollback.php new file mode 100644 index 000000000000..6d1360a23bcd --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollback.php @@ -0,0 +1,109 @@ +google.cloud.deploy.v1.Rollback + */ +class Rollback extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The starting phase ID for the `Rollout`. If unspecified, the + * `Rollout` will start in the stable phase. + * + * Generated from protobuf field string destination_phase = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $destination_phase = ''; + /** + * Optional. If pending rollout exists on the target, the rollback operation + * will be aborted. + * + * Generated from protobuf field bool disable_rollback_if_rollout_pending = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $disable_rollback_if_rollout_pending = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $destination_phase + * Optional. The starting phase ID for the `Rollout`. If unspecified, the + * `Rollout` will start in the stable phase. + * @type bool $disable_rollback_if_rollout_pending + * Optional. If pending rollout exists on the target, the rollback operation + * will be aborted. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The starting phase ID for the `Rollout`. If unspecified, the + * `Rollout` will start in the stable phase. + * + * Generated from protobuf field string destination_phase = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDestinationPhase() + { + return $this->destination_phase; + } + + /** + * Optional. The starting phase ID for the `Rollout`. If unspecified, the + * `Rollout` will start in the stable phase. + * + * Generated from protobuf field string destination_phase = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDestinationPhase($var) + { + GPBUtil::checkString($var, True); + $this->destination_phase = $var; + + return $this; + } + + /** + * Optional. If pending rollout exists on the target, the rollback operation + * will be aborted. + * + * Generated from protobuf field bool disable_rollback_if_rollout_pending = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getDisableRollbackIfRolloutPending() + { + return $this->disable_rollback_if_rollout_pending; + } + + /** + * Optional. If pending rollout exists on the target, the rollback operation + * will be aborted. + * + * Generated from protobuf field bool disable_rollback_if_rollout_pending = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setDisableRollbackIfRolloutPending($var) + { + GPBUtil::checkBool($var); + $this->disable_rollback_if_rollout_pending = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackAttempt.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackAttempt.php new file mode 100644 index 000000000000..06b230ee7b7f --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackAttempt.php @@ -0,0 +1,203 @@ +google.cloud.deploy.v1.RollbackAttempt + */ +class RollbackAttempt extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The phase to which the rollout will be rolled back to. + * + * Generated from protobuf field string destination_phase = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $destination_phase = ''; + /** + * Output only. ID of the rollback `Rollout` to create. + * + * Generated from protobuf field string rollout_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $rollout_id = ''; + /** + * Output only. Valid state of this rollback action. + * + * Generated from protobuf field .google.cloud.deploy.v1.RepairState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. Description of the state of the Rollback. + * + * Generated from protobuf field string state_desc = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state_desc = ''; + /** + * Output only. If active rollout exists on the target, abort this rollback. + * + * Generated from protobuf field bool disable_rollback_if_rollout_pending = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $disable_rollback_if_rollout_pending = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $destination_phase + * Output only. The phase to which the rollout will be rolled back to. + * @type string $rollout_id + * Output only. ID of the rollback `Rollout` to create. + * @type int $state + * Output only. Valid state of this rollback action. + * @type string $state_desc + * Output only. Description of the state of the Rollback. + * @type bool $disable_rollback_if_rollout_pending + * Output only. If active rollout exists on the target, abort this rollback. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The phase to which the rollout will be rolled back to. + * + * Generated from protobuf field string destination_phase = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDestinationPhase() + { + return $this->destination_phase; + } + + /** + * Output only. The phase to which the rollout will be rolled back to. + * + * Generated from protobuf field string destination_phase = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDestinationPhase($var) + { + GPBUtil::checkString($var, True); + $this->destination_phase = $var; + + return $this; + } + + /** + * Output only. ID of the rollback `Rollout` to create. + * + * Generated from protobuf field string rollout_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getRolloutId() + { + return $this->rollout_id; + } + + /** + * Output only. ID of the rollback `Rollout` to create. + * + * Generated from protobuf field string rollout_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setRolloutId($var) + { + GPBUtil::checkString($var, True); + $this->rollout_id = $var; + + return $this; + } + + /** + * Output only. Valid state of this rollback action. + * + * Generated from protobuf field .google.cloud.deploy.v1.RepairState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. Valid state of this rollback action. + * + * Generated from protobuf field .google.cloud.deploy.v1.RepairState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\RepairState::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. Description of the state of the Rollback. + * + * Generated from protobuf field string state_desc = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getStateDesc() + { + return $this->state_desc; + } + + /** + * Output only. Description of the state of the Rollback. + * + * Generated from protobuf field string state_desc = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setStateDesc($var) + { + GPBUtil::checkString($var, True); + $this->state_desc = $var; + + return $this; + } + + /** + * Output only. If active rollout exists on the target, abort this rollback. + * + * Generated from protobuf field bool disable_rollback_if_rollout_pending = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getDisableRollbackIfRolloutPending() + { + return $this->disable_rollback_if_rollout_pending; + } + + /** + * Output only. If active rollout exists on the target, abort this rollback. + * + * Generated from protobuf field bool disable_rollback_if_rollout_pending = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setDisableRollbackIfRolloutPending($var) + { + GPBUtil::checkBool($var); + $this->disable_rollback_if_rollout_pending = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackTargetConfig.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackTargetConfig.php new file mode 100644 index 000000000000..0993a0b5efbe --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackTargetConfig.php @@ -0,0 +1,115 @@ +google.cloud.deploy.v1.RollbackTargetConfig + */ +class RollbackTargetConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The rollback `Rollout` to create. + * + * Generated from protobuf field .google.cloud.deploy.v1.Rollout rollout = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $rollout = null; + /** + * Optional. The starting phase ID for the `Rollout`. If unspecified, the + * `Rollout` will start in the stable phase. + * + * Generated from protobuf field string starting_phase_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $starting_phase_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Deploy\V1\Rollout $rollout + * Optional. The rollback `Rollout` to create. + * @type string $starting_phase_id + * Optional. The starting phase ID for the `Rollout`. If unspecified, the + * `Rollout` will start in the stable phase. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The rollback `Rollout` to create. + * + * Generated from protobuf field .google.cloud.deploy.v1.Rollout rollout = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Deploy\V1\Rollout|null + */ + public function getRollout() + { + return $this->rollout; + } + + public function hasRollout() + { + return isset($this->rollout); + } + + public function clearRollout() + { + unset($this->rollout); + } + + /** + * Optional. The rollback `Rollout` to create. + * + * Generated from protobuf field .google.cloud.deploy.v1.Rollout rollout = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Deploy\V1\Rollout $var + * @return $this + */ + public function setRollout($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Rollout::class); + $this->rollout = $var; + + return $this; + } + + /** + * Optional. The starting phase ID for the `Rollout`. If unspecified, the + * `Rollout` will start in the stable phase. + * + * Generated from protobuf field string starting_phase_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getStartingPhaseId() + { + return $this->starting_phase_id; + } + + /** + * Optional. The starting phase ID for the `Rollout`. If unspecified, the + * `Rollout` will start in the stable phase. + * + * Generated from protobuf field string starting_phase_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setStartingPhaseId($var) + { + GPBUtil::checkString($var, True); + $this->starting_phase_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackTargetRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackTargetRequest.php new file mode 100644 index 000000000000..f7208f661a50 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackTargetRequest.php @@ -0,0 +1,363 @@ +google.cloud.deploy.v1.RollbackTargetRequest + */ +class RollbackTargetRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The `DeliveryPipeline` for which the rollback `Rollout` must be + * created. The format is + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. ID of the `Target` that is being rolled back. + * + * Generated from protobuf field string target_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $target_id = ''; + /** + * Required. ID of the rollback `Rollout` to create. + * + * Generated from protobuf field string rollout_id = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $rollout_id = ''; + /** + * Optional. ID of the `Release` to roll back to. If this isn't specified, the + * previous successful `Rollout` to the specified target will be used to + * determine the `Release`. + * + * Generated from protobuf field string release_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $release_id = ''; + /** + * Optional. If provided, this must be the latest `Rollout` that is on the + * `Target`. + * + * Generated from protobuf field string rollout_to_roll_back = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $rollout_to_roll_back = ''; + /** + * Optional. Configs for the rollback `Rollout`. + * + * Generated from protobuf field .google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $rollback_config = null; + /** + * Optional. If set to true, the request is validated and the user is provided + * with a `RollbackTargetResponse`. + * + * Generated from protobuf field bool validate_only = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + /** + * Optional. Deploy policies to override. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deploy_policy}`. + * + * Generated from protobuf field repeated string override_deploy_policy = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $override_deploy_policy; + + /** + * @param string $name Required. The `DeliveryPipeline` for which the rollback `Rollout` must be + * created. The format is + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. Please see + * {@see CloudDeployClient::deliveryPipelineName()} for help formatting this field. + * @param string $targetId Required. ID of the `Target` that is being rolled back. + * @param string $rolloutId Required. ID of the rollback `Rollout` to create. + * + * @return \Google\Cloud\Deploy\V1\RollbackTargetRequest + * + * @experimental + */ + public static function build(string $name, string $targetId, string $rolloutId): self + { + return (new self()) + ->setName($name) + ->setTargetId($targetId) + ->setRolloutId($rolloutId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The `DeliveryPipeline` for which the rollback `Rollout` must be + * created. The format is + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. + * @type string $target_id + * Required. ID of the `Target` that is being rolled back. + * @type string $rollout_id + * Required. ID of the rollback `Rollout` to create. + * @type string $release_id + * Optional. ID of the `Release` to roll back to. If this isn't specified, the + * previous successful `Rollout` to the specified target will be used to + * determine the `Release`. + * @type string $rollout_to_roll_back + * Optional. If provided, this must be the latest `Rollout` that is on the + * `Target`. + * @type \Google\Cloud\Deploy\V1\RollbackTargetConfig $rollback_config + * Optional. Configs for the rollback `Rollout`. + * @type bool $validate_only + * Optional. If set to true, the request is validated and the user is provided + * with a `RollbackTargetResponse`. + * @type array|\Google\Protobuf\Internal\RepeatedField $override_deploy_policy + * Optional. Deploy policies to override. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deploy_policy}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. The `DeliveryPipeline` for which the rollback `Rollout` must be + * created. The format is + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The `DeliveryPipeline` for which the rollback `Rollout` must be + * created. The format is + * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. ID of the `Target` that is being rolled back. + * + * Generated from protobuf field string target_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getTargetId() + { + return $this->target_id; + } + + /** + * Required. ID of the `Target` that is being rolled back. + * + * Generated from protobuf field string target_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setTargetId($var) + { + GPBUtil::checkString($var, True); + $this->target_id = $var; + + return $this; + } + + /** + * Required. ID of the rollback `Rollout` to create. + * + * Generated from protobuf field string rollout_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getRolloutId() + { + return $this->rollout_id; + } + + /** + * Required. ID of the rollback `Rollout` to create. + * + * Generated from protobuf field string rollout_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setRolloutId($var) + { + GPBUtil::checkString($var, True); + $this->rollout_id = $var; + + return $this; + } + + /** + * Optional. ID of the `Release` to roll back to. If this isn't specified, the + * previous successful `Rollout` to the specified target will be used to + * determine the `Release`. + * + * Generated from protobuf field string release_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getReleaseId() + { + return $this->release_id; + } + + /** + * Optional. ID of the `Release` to roll back to. If this isn't specified, the + * previous successful `Rollout` to the specified target will be used to + * determine the `Release`. + * + * Generated from protobuf field string release_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setReleaseId($var) + { + GPBUtil::checkString($var, True); + $this->release_id = $var; + + return $this; + } + + /** + * Optional. If provided, this must be the latest `Rollout` that is on the + * `Target`. + * + * Generated from protobuf field string rollout_to_roll_back = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRolloutToRollBack() + { + return $this->rollout_to_roll_back; + } + + /** + * Optional. If provided, this must be the latest `Rollout` that is on the + * `Target`. + * + * Generated from protobuf field string rollout_to_roll_back = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRolloutToRollBack($var) + { + GPBUtil::checkString($var, True); + $this->rollout_to_roll_back = $var; + + return $this; + } + + /** + * Optional. Configs for the rollback `Rollout`. + * + * Generated from protobuf field .google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Deploy\V1\RollbackTargetConfig|null + */ + public function getRollbackConfig() + { + return $this->rollback_config; + } + + public function hasRollbackConfig() + { + return isset($this->rollback_config); + } + + public function clearRollbackConfig() + { + unset($this->rollback_config); + } + + /** + * Optional. Configs for the rollback `Rollout`. + * + * Generated from protobuf field .google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Deploy\V1\RollbackTargetConfig $var + * @return $this + */ + public function setRollbackConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\RollbackTargetConfig::class); + $this->rollback_config = $var; + + return $this; + } + + /** + * Optional. If set to true, the request is validated and the user is provided + * with a `RollbackTargetResponse`. + * + * Generated from protobuf field bool validate_only = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. If set to true, the request is validated and the user is provided + * with a `RollbackTargetResponse`. + * + * Generated from protobuf field bool validate_only = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + + /** + * Optional. Deploy policies to override. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deploy_policy}`. + * + * Generated from protobuf field repeated string override_deploy_policy = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOverrideDeployPolicy() + { + return $this->override_deploy_policy; + } + + /** + * Optional. Deploy policies to override. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deploy_policy}`. + * + * Generated from protobuf field repeated string override_deploy_policy = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOverrideDeployPolicy($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->override_deploy_policy = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackTargetResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackTargetResponse.php new file mode 100644 index 000000000000..0c2baf18351b --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackTargetResponse.php @@ -0,0 +1,77 @@ +google.cloud.deploy.v1.RollbackTargetResponse + */ +class RollbackTargetResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The config of the rollback `Rollout` created or will be created. + * + * Generated from protobuf field .google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 1; + */ + protected $rollback_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Deploy\V1\RollbackTargetConfig $rollback_config + * The config of the rollback `Rollout` created or will be created. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * The config of the rollback `Rollout` created or will be created. + * + * Generated from protobuf field .google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 1; + * @return \Google\Cloud\Deploy\V1\RollbackTargetConfig|null + */ + public function getRollbackConfig() + { + return $this->rollback_config; + } + + public function hasRollbackConfig() + { + return isset($this->rollback_config); + } + + public function clearRollbackConfig() + { + unset($this->rollback_config); + } + + /** + * The config of the rollback `Rollout` created or will be created. + * + * Generated from protobuf field .google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 1; + * @param \Google\Cloud\Deploy\V1\RollbackTargetConfig $var + * @return $this + */ + public function setRollbackConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\RollbackTargetConfig::class); + $this->rollback_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout.php new file mode 100644 index 000000000000..889163f01844 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout.php @@ -0,0 +1,960 @@ +google.cloud.deploy.v1.Rollout + */ +class Rollout extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Name of the `Rollout`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. + * The `rollout` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $name = ''; + /** + * Output only. Unique identifier of the `Rollout`. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $uid = ''; + /** + * Description of the `Rollout` for user purposes. Max length is 255 + * characters. + * + * Generated from protobuf field string description = 3; + */ + protected $description = ''; + /** + * User annotations. These attributes can only be set and used by the + * user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations + * for more details such as format and size limitations. + * + * Generated from protobuf field map annotations = 4; + */ + private $annotations; + /** + * Labels are attributes that can be set and used by both the + * user and by Cloud Deploy. Labels must meet the following constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. + * + * Generated from protobuf field map labels = 5; + */ + private $labels; + /** + * Output only. Time at which the `Rollout` was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Time at which the `Rollout` was approved. + * + * Generated from protobuf field .google.protobuf.Timestamp approve_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $approve_time = null; + /** + * Output only. Time at which the `Rollout` was enqueued. + * + * Generated from protobuf field .google.protobuf.Timestamp enqueue_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $enqueue_time = null; + /** + * Output only. Time at which the `Rollout` started deploying. + * + * Generated from protobuf field .google.protobuf.Timestamp deploy_start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $deploy_start_time = null; + /** + * Output only. Time at which the `Rollout` finished deploying. + * + * Generated from protobuf field .google.protobuf.Timestamp deploy_end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $deploy_end_time = null; + /** + * Required. The ID of Target to which this `Rollout` is deploying. + * + * Generated from protobuf field string target_id = 18 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $target_id = ''; + /** + * Output only. Approval state of the `Rollout`. + * + * Generated from protobuf field .google.cloud.deploy.v1.Rollout.ApprovalState approval_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $approval_state = 0; + /** + * Output only. Current state of the `Rollout`. + * + * Generated from protobuf field .google.cloud.deploy.v1.Rollout.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. Additional information about the rollout failure, if + * available. + * + * Generated from protobuf field string failure_reason = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $failure_reason = ''; + /** + * Output only. The resource name of the Cloud Build `Build` object that is + * used to deploy the Rollout. Format is + * `projects/{project}/locations/{location}/builds/{build}`. + * + * Generated from protobuf field string deploying_build = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $deploying_build = ''; + /** + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 16; + */ + protected $etag = ''; + /** + * Output only. The reason this rollout failed. This will always be + * unspecified while the rollout is in progress. + * + * Generated from protobuf field .google.cloud.deploy.v1.Rollout.FailureCause deploy_failure_cause = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $deploy_failure_cause = 0; + /** + * Output only. The phases that represent the workflows of this `Rollout`. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $phases; + /** + * Output only. Metadata contains information about the rollout. + * + * Generated from protobuf field .google.cloud.deploy.v1.Metadata metadata = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $metadata = null; + /** + * Output only. Name of the `ControllerRollout`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. + * + * Generated from protobuf field string controller_rollout = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $controller_rollout = ''; + /** + * Output only. Name of the `Rollout` that is rolled back by this `Rollout`. + * Empty if this `Rollout` wasn't created as a rollback. + * + * Generated from protobuf field string rollback_of_rollout = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $rollback_of_rollout = ''; + /** + * Output only. Names of `Rollouts` that rolled back this `Rollout`. + * + * Generated from protobuf field repeated string rolled_back_by_rollouts = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $rolled_back_by_rollouts; + /** + * Output only. The AutomationRun actively repairing the rollout. + * + * Generated from protobuf field string active_repair_automation_run = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $active_repair_automation_run = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Optional. Name of the `Rollout`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. + * The `rollout` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` + * @type string $uid + * Output only. Unique identifier of the `Rollout`. + * @type string $description + * Description of the `Rollout` for user purposes. Max length is 255 + * characters. + * @type array|\Google\Protobuf\Internal\MapField $annotations + * User annotations. These attributes can only be set and used by the + * user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations + * for more details such as format and size limitations. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Labels are attributes that can be set and used by both the + * user and by Cloud Deploy. Labels must meet the following constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time at which the `Rollout` was created. + * @type \Google\Protobuf\Timestamp $approve_time + * Output only. Time at which the `Rollout` was approved. + * @type \Google\Protobuf\Timestamp $enqueue_time + * Output only. Time at which the `Rollout` was enqueued. + * @type \Google\Protobuf\Timestamp $deploy_start_time + * Output only. Time at which the `Rollout` started deploying. + * @type \Google\Protobuf\Timestamp $deploy_end_time + * Output only. Time at which the `Rollout` finished deploying. + * @type string $target_id + * Required. The ID of Target to which this `Rollout` is deploying. + * @type int $approval_state + * Output only. Approval state of the `Rollout`. + * @type int $state + * Output only. Current state of the `Rollout`. + * @type string $failure_reason + * Output only. Additional information about the rollout failure, if + * available. + * @type string $deploying_build + * Output only. The resource name of the Cloud Build `Build` object that is + * used to deploy the Rollout. Format is + * `projects/{project}/locations/{location}/builds/{build}`. + * @type string $etag + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * @type int $deploy_failure_cause + * Output only. The reason this rollout failed. This will always be + * unspecified while the rollout is in progress. + * @type array<\Google\Cloud\Deploy\V1\Phase>|\Google\Protobuf\Internal\RepeatedField $phases + * Output only. The phases that represent the workflows of this `Rollout`. + * @type \Google\Cloud\Deploy\V1\Metadata $metadata + * Output only. Metadata contains information about the rollout. + * @type string $controller_rollout + * Output only. Name of the `ControllerRollout`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. + * @type string $rollback_of_rollout + * Output only. Name of the `Rollout` that is rolled back by this `Rollout`. + * Empty if this `Rollout` wasn't created as a rollback. + * @type array|\Google\Protobuf\Internal\RepeatedField $rolled_back_by_rollouts + * Output only. Names of `Rollouts` that rolled back this `Rollout`. + * @type string $active_repair_automation_run + * Output only. The AutomationRun actively repairing the rollout. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Name of the `Rollout`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. + * The `rollout` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Optional. Name of the `Rollout`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. + * The `rollout` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. Unique identifier of the `Rollout`. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. Unique identifier of the `Rollout`. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Description of the `Rollout` for user purposes. Max length is 255 + * characters. + * + * Generated from protobuf field string description = 3; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Description of the `Rollout` for user purposes. Max length is 255 + * characters. + * + * Generated from protobuf field string description = 3; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * User annotations. These attributes can only be set and used by the + * user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations + * for more details such as format and size limitations. + * + * Generated from protobuf field map annotations = 4; + * @return \Google\Protobuf\Internal\MapField + */ + public function getAnnotations() + { + return $this->annotations; + } + + /** + * User annotations. These attributes can only be set and used by the + * user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations + * for more details such as format and size limitations. + * + * Generated from protobuf field map annotations = 4; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setAnnotations($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->annotations = $arr; + + return $this; + } + + /** + * Labels are attributes that can be set and used by both the + * user and by Cloud Deploy. Labels must meet the following constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. + * + * Generated from protobuf field map labels = 5; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Labels are attributes that can be set and used by both the + * user and by Cloud Deploy. Labels must meet the following constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. + * + * Generated from protobuf field map labels = 5; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Output only. Time at which the `Rollout` was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Time at which the `Rollout` was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Time at which the `Rollout` was approved. + * + * Generated from protobuf field .google.protobuf.Timestamp approve_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getApproveTime() + { + return $this->approve_time; + } + + public function hasApproveTime() + { + return isset($this->approve_time); + } + + public function clearApproveTime() + { + unset($this->approve_time); + } + + /** + * Output only. Time at which the `Rollout` was approved. + * + * Generated from protobuf field .google.protobuf.Timestamp approve_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setApproveTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->approve_time = $var; + + return $this; + } + + /** + * Output only. Time at which the `Rollout` was enqueued. + * + * Generated from protobuf field .google.protobuf.Timestamp enqueue_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEnqueueTime() + { + return $this->enqueue_time; + } + + public function hasEnqueueTime() + { + return isset($this->enqueue_time); + } + + public function clearEnqueueTime() + { + unset($this->enqueue_time); + } + + /** + * Output only. Time at which the `Rollout` was enqueued. + * + * Generated from protobuf field .google.protobuf.Timestamp enqueue_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEnqueueTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->enqueue_time = $var; + + return $this; + } + + /** + * Output only. Time at which the `Rollout` started deploying. + * + * Generated from protobuf field .google.protobuf.Timestamp deploy_start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getDeployStartTime() + { + return $this->deploy_start_time; + } + + public function hasDeployStartTime() + { + return isset($this->deploy_start_time); + } + + public function clearDeployStartTime() + { + unset($this->deploy_start_time); + } + + /** + * Output only. Time at which the `Rollout` started deploying. + * + * Generated from protobuf field .google.protobuf.Timestamp deploy_start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setDeployStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->deploy_start_time = $var; + + return $this; + } + + /** + * Output only. Time at which the `Rollout` finished deploying. + * + * Generated from protobuf field .google.protobuf.Timestamp deploy_end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getDeployEndTime() + { + return $this->deploy_end_time; + } + + public function hasDeployEndTime() + { + return isset($this->deploy_end_time); + } + + public function clearDeployEndTime() + { + unset($this->deploy_end_time); + } + + /** + * Output only. Time at which the `Rollout` finished deploying. + * + * Generated from protobuf field .google.protobuf.Timestamp deploy_end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setDeployEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->deploy_end_time = $var; + + return $this; + } + + /** + * Required. The ID of Target to which this `Rollout` is deploying. + * + * Generated from protobuf field string target_id = 18 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getTargetId() + { + return $this->target_id; + } + + /** + * Required. The ID of Target to which this `Rollout` is deploying. + * + * Generated from protobuf field string target_id = 18 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setTargetId($var) + { + GPBUtil::checkString($var, True); + $this->target_id = $var; + + return $this; + } + + /** + * Output only. Approval state of the `Rollout`. + * + * Generated from protobuf field .google.cloud.deploy.v1.Rollout.ApprovalState approval_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getApprovalState() + { + return $this->approval_state; + } + + /** + * Output only. Approval state of the `Rollout`. + * + * Generated from protobuf field .google.cloud.deploy.v1.Rollout.ApprovalState approval_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setApprovalState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Rollout\ApprovalState::class); + $this->approval_state = $var; + + return $this; + } + + /** + * Output only. Current state of the `Rollout`. + * + * Generated from protobuf field .google.cloud.deploy.v1.Rollout.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. Current state of the `Rollout`. + * + * Generated from protobuf field .google.cloud.deploy.v1.Rollout.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Rollout\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. Additional information about the rollout failure, if + * available. + * + * Generated from protobuf field string failure_reason = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getFailureReason() + { + return $this->failure_reason; + } + + /** + * Output only. Additional information about the rollout failure, if + * available. + * + * Generated from protobuf field string failure_reason = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setFailureReason($var) + { + GPBUtil::checkString($var, True); + $this->failure_reason = $var; + + return $this; + } + + /** + * Output only. The resource name of the Cloud Build `Build` object that is + * used to deploy the Rollout. Format is + * `projects/{project}/locations/{location}/builds/{build}`. + * + * Generated from protobuf field string deploying_build = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getDeployingBuild() + { + return $this->deploying_build; + } + + /** + * Output only. The resource name of the Cloud Build `Build` object that is + * used to deploy the Rollout. Format is + * `projects/{project}/locations/{location}/builds/{build}`. + * + * Generated from protobuf field string deploying_build = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setDeployingBuild($var) + { + GPBUtil::checkString($var, True); + $this->deploying_build = $var; + + return $this; + } + + /** + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 16; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 16; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Output only. The reason this rollout failed. This will always be + * unspecified while the rollout is in progress. + * + * Generated from protobuf field .google.cloud.deploy.v1.Rollout.FailureCause deploy_failure_cause = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getDeployFailureCause() + { + return $this->deploy_failure_cause; + } + + /** + * Output only. The reason this rollout failed. This will always be + * unspecified while the rollout is in progress. + * + * Generated from protobuf field .google.cloud.deploy.v1.Rollout.FailureCause deploy_failure_cause = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setDeployFailureCause($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Rollout\FailureCause::class); + $this->deploy_failure_cause = $var; + + return $this; + } + + /** + * Output only. The phases that represent the workflows of this `Rollout`. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPhases() + { + return $this->phases; + } + + /** + * Output only. The phases that represent the workflows of this `Rollout`. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\Deploy\V1\Phase>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPhases($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\Phase::class); + $this->phases = $arr; + + return $this; + } + + /** + * Output only. Metadata contains information about the rollout. + * + * Generated from protobuf field .google.cloud.deploy.v1.Metadata metadata = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\Metadata|null + */ + public function getMetadata() + { + return $this->metadata; + } + + public function hasMetadata() + { + return isset($this->metadata); + } + + public function clearMetadata() + { + unset($this->metadata); + } + + /** + * Output only. Metadata contains information about the rollout. + * + * Generated from protobuf field .google.cloud.deploy.v1.Metadata metadata = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\Metadata $var + * @return $this + */ + public function setMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Metadata::class); + $this->metadata = $var; + + return $this; + } + + /** + * Output only. Name of the `ControllerRollout`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. + * + * Generated from protobuf field string controller_rollout = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getControllerRollout() + { + return $this->controller_rollout; + } + + /** + * Output only. Name of the `ControllerRollout`. Format is + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. + * + * Generated from protobuf field string controller_rollout = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setControllerRollout($var) + { + GPBUtil::checkString($var, True); + $this->controller_rollout = $var; + + return $this; + } + + /** + * Output only. Name of the `Rollout` that is rolled back by this `Rollout`. + * Empty if this `Rollout` wasn't created as a rollback. + * + * Generated from protobuf field string rollback_of_rollout = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getRollbackOfRollout() + { + return $this->rollback_of_rollout; + } + + /** + * Output only. Name of the `Rollout` that is rolled back by this `Rollout`. + * Empty if this `Rollout` wasn't created as a rollback. + * + * Generated from protobuf field string rollback_of_rollout = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setRollbackOfRollout($var) + { + GPBUtil::checkString($var, True); + $this->rollback_of_rollout = $var; + + return $this; + } + + /** + * Output only. Names of `Rollouts` that rolled back this `Rollout`. + * + * Generated from protobuf field repeated string rolled_back_by_rollouts = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRolledBackByRollouts() + { + return $this->rolled_back_by_rollouts; + } + + /** + * Output only. Names of `Rollouts` that rolled back this `Rollout`. + * + * Generated from protobuf field repeated string rolled_back_by_rollouts = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRolledBackByRollouts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->rolled_back_by_rollouts = $arr; + + return $this; + } + + /** + * Output only. The AutomationRun actively repairing the rollout. + * + * Generated from protobuf field string active_repair_automation_run = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getActiveRepairAutomationRun() + { + return $this->active_repair_automation_run; + } + + /** + * Output only. The AutomationRun actively repairing the rollout. + * + * Generated from protobuf field string active_repair_automation_run = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setActiveRepairAutomationRun($var) + { + GPBUtil::checkString($var, True); + $this->active_repair_automation_run = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout/ApprovalState.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout/ApprovalState.php new file mode 100644 index 000000000000..c0fb8336f4e8 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout/ApprovalState.php @@ -0,0 +1,78 @@ +google.cloud.deploy.v1.Rollout.ApprovalState + */ +class ApprovalState +{ + /** + * The `Rollout` has an unspecified approval state. + * + * Generated from protobuf enum APPROVAL_STATE_UNSPECIFIED = 0; + */ + const APPROVAL_STATE_UNSPECIFIED = 0; + /** + * The `Rollout` requires approval. + * + * Generated from protobuf enum NEEDS_APPROVAL = 1; + */ + const NEEDS_APPROVAL = 1; + /** + * The `Rollout` does not require approval. + * + * Generated from protobuf enum DOES_NOT_NEED_APPROVAL = 2; + */ + const DOES_NOT_NEED_APPROVAL = 2; + /** + * The `Rollout` has been approved. + * + * Generated from protobuf enum APPROVED = 3; + */ + const APPROVED = 3; + /** + * The `Rollout` has been rejected. + * + * Generated from protobuf enum REJECTED = 4; + */ + const REJECTED = 4; + + private static $valueToName = [ + self::APPROVAL_STATE_UNSPECIFIED => 'APPROVAL_STATE_UNSPECIFIED', + self::NEEDS_APPROVAL => 'NEEDS_APPROVAL', + self::DOES_NOT_NEED_APPROVAL => 'DOES_NOT_NEED_APPROVAL', + self::APPROVED => 'APPROVED', + self::REJECTED => 'REJECTED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ApprovalState::class, \Google\Cloud\Deploy\V1\Rollout_ApprovalState::class); + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout/FailureCause.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout/FailureCause.php new file mode 100644 index 000000000000..4b398b758ecb --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout/FailureCause.php @@ -0,0 +1,110 @@ +google.cloud.deploy.v1.Rollout.FailureCause + */ +class FailureCause +{ + /** + * No reason for failure is specified. + * + * Generated from protobuf enum FAILURE_CAUSE_UNSPECIFIED = 0; + */ + const FAILURE_CAUSE_UNSPECIFIED = 0; + /** + * Cloud Build is not available, either because it is not enabled or because + * Cloud Deploy has insufficient permissions. See [required + * permission](https://cloud.google.com/deploy/docs/cloud-deploy-service-account#required_permissions). + * + * Generated from protobuf enum CLOUD_BUILD_UNAVAILABLE = 1; + */ + const CLOUD_BUILD_UNAVAILABLE = 1; + /** + * The deploy operation did not complete successfully; check Cloud Build + * logs. + * + * Generated from protobuf enum EXECUTION_FAILED = 2; + */ + const EXECUTION_FAILED = 2; + /** + * Deployment did not complete within the alloted time. + * + * Generated from protobuf enum DEADLINE_EXCEEDED = 3; + */ + const DEADLINE_EXCEEDED = 3; + /** + * Release is in a failed state. + * + * Generated from protobuf enum RELEASE_FAILED = 4; + */ + const RELEASE_FAILED = 4; + /** + * Release is abandoned. + * + * Generated from protobuf enum RELEASE_ABANDONED = 5; + */ + const RELEASE_ABANDONED = 5; + /** + * No Skaffold verify configuration was found. + * + * Generated from protobuf enum VERIFICATION_CONFIG_NOT_FOUND = 6; + */ + const VERIFICATION_CONFIG_NOT_FOUND = 6; + /** + * Cloud Build failed to fulfill Cloud Deploy's request. See failure_message + * for additional details. + * + * Generated from protobuf enum CLOUD_BUILD_REQUEST_FAILED = 7; + */ + const CLOUD_BUILD_REQUEST_FAILED = 7; + /** + * A Rollout operation had a feature configured that is not supported. + * + * Generated from protobuf enum OPERATION_FEATURE_NOT_SUPPORTED = 8; + */ + const OPERATION_FEATURE_NOT_SUPPORTED = 8; + + private static $valueToName = [ + self::FAILURE_CAUSE_UNSPECIFIED => 'FAILURE_CAUSE_UNSPECIFIED', + self::CLOUD_BUILD_UNAVAILABLE => 'CLOUD_BUILD_UNAVAILABLE', + self::EXECUTION_FAILED => 'EXECUTION_FAILED', + self::DEADLINE_EXCEEDED => 'DEADLINE_EXCEEDED', + self::RELEASE_FAILED => 'RELEASE_FAILED', + self::RELEASE_ABANDONED => 'RELEASE_ABANDONED', + self::VERIFICATION_CONFIG_NOT_FOUND => 'VERIFICATION_CONFIG_NOT_FOUND', + self::CLOUD_BUILD_REQUEST_FAILED => 'CLOUD_BUILD_REQUEST_FAILED', + self::OPERATION_FEATURE_NOT_SUPPORTED => 'OPERATION_FEATURE_NOT_SUPPORTED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(FailureCause::class, \Google\Cloud\Deploy\V1\Rollout_FailureCause::class); + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout/State.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout/State.php new file mode 100644 index 000000000000..d92e91477504 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout/State.php @@ -0,0 +1,121 @@ +google.cloud.deploy.v1.Rollout.State + */ +class State +{ + /** + * The `Rollout` has an unspecified state. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The `Rollout` has completed successfully. + * + * Generated from protobuf enum SUCCEEDED = 1; + */ + const SUCCEEDED = 1; + /** + * The `Rollout` has failed. + * + * Generated from protobuf enum FAILED = 2; + */ + const FAILED = 2; + /** + * The `Rollout` is being deployed. + * + * Generated from protobuf enum IN_PROGRESS = 3; + */ + const IN_PROGRESS = 3; + /** + * The `Rollout` needs approval. + * + * Generated from protobuf enum PENDING_APPROVAL = 4; + */ + const PENDING_APPROVAL = 4; + /** + * An approver rejected the `Rollout`. + * + * Generated from protobuf enum APPROVAL_REJECTED = 5; + */ + const APPROVAL_REJECTED = 5; + /** + * The `Rollout` is waiting for an earlier Rollout(s) to complete on this + * `Target`. + * + * Generated from protobuf enum PENDING = 6; + */ + const PENDING = 6; + /** + * The `Rollout` is waiting for the `Release` to be fully rendered. + * + * Generated from protobuf enum PENDING_RELEASE = 7; + */ + const PENDING_RELEASE = 7; + /** + * The `Rollout` is in the process of being cancelled. + * + * Generated from protobuf enum CANCELLING = 8; + */ + const CANCELLING = 8; + /** + * The `Rollout` has been cancelled. + * + * Generated from protobuf enum CANCELLED = 9; + */ + const CANCELLED = 9; + /** + * The `Rollout` is halted. + * + * Generated from protobuf enum HALTED = 10; + */ + const HALTED = 10; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::SUCCEEDED => 'SUCCEEDED', + self::FAILED => 'FAILED', + self::IN_PROGRESS => 'IN_PROGRESS', + self::PENDING_APPROVAL => 'PENDING_APPROVAL', + self::APPROVAL_REJECTED => 'APPROVAL_REJECTED', + self::PENDING => 'PENDING', + self::PENDING_RELEASE => 'PENDING_RELEASE', + self::CANCELLING => 'CANCELLING', + self::CANCELLED => 'CANCELLED', + self::HALTED => 'HALTED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(State::class, \Google\Cloud\Deploy\V1\Rollout_State::class); + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutNotificationEvent.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutNotificationEvent.php new file mode 100644 index 000000000000..98651e6feff8 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutNotificationEvent.php @@ -0,0 +1,307 @@ +google.cloud.deploy.v1.RolloutNotificationEvent + */ +class RolloutNotificationEvent extends \Google\Protobuf\Internal\Message +{ + /** + * Debug message for when a notification fails to send. + * + * Generated from protobuf field string message = 1; + */ + protected $message = ''; + /** + * Unique identifier of the `DeliveryPipeline`. + * + * Generated from protobuf field string pipeline_uid = 2; + */ + protected $pipeline_uid = ''; + /** + * Unique identifier of the `Release`. + * + * Generated from protobuf field string release_uid = 3; + */ + protected $release_uid = ''; + /** + * The name of the `Release`. + * + * Generated from protobuf field string release = 7; + */ + protected $release = ''; + /** + * Unique identifier of the `Rollout`. + * + * Generated from protobuf field string rollout_uid = 8; + */ + protected $rollout_uid = ''; + /** + * The name of the `Rollout`. + * + * Generated from protobuf field string rollout = 4; + */ + protected $rollout = ''; + /** + * ID of the `Target` that the rollout is deployed to. + * + * Generated from protobuf field string target_id = 6; + */ + protected $target_id = ''; + /** + * Type of this notification, e.g. for a Pub/Sub failure. + * + * Generated from protobuf field .google.cloud.deploy.v1.Type type = 5; + */ + protected $type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $message + * Debug message for when a notification fails to send. + * @type string $pipeline_uid + * Unique identifier of the `DeliveryPipeline`. + * @type string $release_uid + * Unique identifier of the `Release`. + * @type string $release + * The name of the `Release`. + * @type string $rollout_uid + * Unique identifier of the `Rollout`. + * @type string $rollout + * The name of the `Rollout`. + * @type string $target_id + * ID of the `Target` that the rollout is deployed to. + * @type int $type + * Type of this notification, e.g. for a Pub/Sub failure. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\RolloutNotificationPayload::initOnce(); + parent::__construct($data); + } + + /** + * Debug message for when a notification fails to send. + * + * Generated from protobuf field string message = 1; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Debug message for when a notification fails to send. + * + * Generated from protobuf field string message = 1; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + + /** + * Unique identifier of the `DeliveryPipeline`. + * + * Generated from protobuf field string pipeline_uid = 2; + * @return string + */ + public function getPipelineUid() + { + return $this->pipeline_uid; + } + + /** + * Unique identifier of the `DeliveryPipeline`. + * + * Generated from protobuf field string pipeline_uid = 2; + * @param string $var + * @return $this + */ + public function setPipelineUid($var) + { + GPBUtil::checkString($var, True); + $this->pipeline_uid = $var; + + return $this; + } + + /** + * Unique identifier of the `Release`. + * + * Generated from protobuf field string release_uid = 3; + * @return string + */ + public function getReleaseUid() + { + return $this->release_uid; + } + + /** + * Unique identifier of the `Release`. + * + * Generated from protobuf field string release_uid = 3; + * @param string $var + * @return $this + */ + public function setReleaseUid($var) + { + GPBUtil::checkString($var, True); + $this->release_uid = $var; + + return $this; + } + + /** + * The name of the `Release`. + * + * Generated from protobuf field string release = 7; + * @return string + */ + public function getRelease() + { + return $this->release; + } + + /** + * The name of the `Release`. + * + * Generated from protobuf field string release = 7; + * @param string $var + * @return $this + */ + public function setRelease($var) + { + GPBUtil::checkString($var, True); + $this->release = $var; + + return $this; + } + + /** + * Unique identifier of the `Rollout`. + * + * Generated from protobuf field string rollout_uid = 8; + * @return string + */ + public function getRolloutUid() + { + return $this->rollout_uid; + } + + /** + * Unique identifier of the `Rollout`. + * + * Generated from protobuf field string rollout_uid = 8; + * @param string $var + * @return $this + */ + public function setRolloutUid($var) + { + GPBUtil::checkString($var, True); + $this->rollout_uid = $var; + + return $this; + } + + /** + * The name of the `Rollout`. + * + * Generated from protobuf field string rollout = 4; + * @return string + */ + public function getRollout() + { + return $this->rollout; + } + + /** + * The name of the `Rollout`. + * + * Generated from protobuf field string rollout = 4; + * @param string $var + * @return $this + */ + public function setRollout($var) + { + GPBUtil::checkString($var, True); + $this->rollout = $var; + + return $this; + } + + /** + * ID of the `Target` that the rollout is deployed to. + * + * Generated from protobuf field string target_id = 6; + * @return string + */ + public function getTargetId() + { + return $this->target_id; + } + + /** + * ID of the `Target` that the rollout is deployed to. + * + * Generated from protobuf field string target_id = 6; + * @param string $var + * @return $this + */ + public function setTargetId($var) + { + GPBUtil::checkString($var, True); + $this->target_id = $var; + + return $this; + } + + /** + * Type of this notification, e.g. for a Pub/Sub failure. + * + * Generated from protobuf field .google.cloud.deploy.v1.Type type = 5; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Type of this notification, e.g. for a Pub/Sub failure. + * + * Generated from protobuf field .google.cloud.deploy.v1.Type type = 5; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Type::class); + $this->type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutRestriction.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutRestriction.php new file mode 100644 index 000000000000..77c06e34fd09 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutRestriction.php @@ -0,0 +1,191 @@ +google.cloud.deploy.v1.RolloutRestriction + */ +class RolloutRestriction extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Restriction rule ID. Required and must be unique within a + * DeployPolicy. The format is `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $id = ''; + /** + * Optional. What invoked the action. If left empty, all invoker types will be + * restricted. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.DeployPolicy.Invoker invokers = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $invokers; + /** + * Optional. Rollout actions to be restricted as part of the policy. If left + * empty, all actions will be restricted. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.RolloutRestriction.RolloutActions actions = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $actions; + /** + * Required. Time window within which actions are restricted. + * + * Generated from protobuf field .google.cloud.deploy.v1.TimeWindows time_windows = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $time_windows = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * Required. Restriction rule ID. Required and must be unique within a + * DeployPolicy. The format is `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. + * @type array|\Google\Protobuf\Internal\RepeatedField $invokers + * Optional. What invoked the action. If left empty, all invoker types will be + * restricted. + * @type array|\Google\Protobuf\Internal\RepeatedField $actions + * Optional. Rollout actions to be restricted as part of the policy. If left + * empty, all actions will be restricted. + * @type \Google\Cloud\Deploy\V1\TimeWindows $time_windows + * Required. Time window within which actions are restricted. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. Restriction rule ID. Required and must be unique within a + * DeployPolicy. The format is `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * Required. Restriction rule ID. Required and must be unique within a + * DeployPolicy. The format is `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * Optional. What invoked the action. If left empty, all invoker types will be + * restricted. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.DeployPolicy.Invoker invokers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getInvokers() + { + return $this->invokers; + } + + /** + * Optional. What invoked the action. If left empty, all invoker types will be + * restricted. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.DeployPolicy.Invoker invokers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setInvokers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Deploy\V1\DeployPolicy\Invoker::class); + $this->invokers = $arr; + + return $this; + } + + /** + * Optional. Rollout actions to be restricted as part of the policy. If left + * empty, all actions will be restricted. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.RolloutRestriction.RolloutActions actions = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getActions() + { + return $this->actions; + } + + /** + * Optional. Rollout actions to be restricted as part of the policy. If left + * empty, all actions will be restricted. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.RolloutRestriction.RolloutActions actions = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setActions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Deploy\V1\RolloutRestriction\RolloutActions::class); + $this->actions = $arr; + + return $this; + } + + /** + * Required. Time window within which actions are restricted. + * + * Generated from protobuf field .google.cloud.deploy.v1.TimeWindows time_windows = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Deploy\V1\TimeWindows|null + */ + public function getTimeWindows() + { + return $this->time_windows; + } + + public function hasTimeWindows() + { + return isset($this->time_windows); + } + + public function clearTimeWindows() + { + unset($this->time_windows); + } + + /** + * Required. Time window within which actions are restricted. + * + * Generated from protobuf field .google.cloud.deploy.v1.TimeWindows time_windows = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Deploy\V1\TimeWindows $var + * @return $this + */ + public function setTimeWindows($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\TimeWindows::class); + $this->time_windows = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutRestriction/RolloutActions.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutRestriction/RolloutActions.php new file mode 100644 index 000000000000..277c451406b7 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutRestriction/RolloutActions.php @@ -0,0 +1,106 @@ +google.cloud.deploy.v1.RolloutRestriction.RolloutActions + */ +class RolloutActions +{ + /** + * Unspecified. + * + * Generated from protobuf enum ROLLOUT_ACTIONS_UNSPECIFIED = 0; + */ + const ROLLOUT_ACTIONS_UNSPECIFIED = 0; + /** + * Advance the rollout to the next phase. + * + * Generated from protobuf enum ADVANCE = 1; + */ + const ADVANCE = 1; + /** + * Approve the rollout. + * + * Generated from protobuf enum APPROVE = 2; + */ + const APPROVE = 2; + /** + * Cancel the rollout. + * + * Generated from protobuf enum CANCEL = 3; + */ + const CANCEL = 3; + /** + * Create a rollout. + * + * Generated from protobuf enum CREATE = 4; + */ + const CREATE = 4; + /** + * Ignore a job result on the rollout. + * + * Generated from protobuf enum IGNORE_JOB = 5; + */ + const IGNORE_JOB = 5; + /** + * Retry a job for a rollout. + * + * Generated from protobuf enum RETRY_JOB = 6; + */ + const RETRY_JOB = 6; + /** + * Rollback a rollout. + * + * Generated from protobuf enum ROLLBACK = 7; + */ + const ROLLBACK = 7; + /** + * Terminate a jobrun. + * + * Generated from protobuf enum TERMINATE_JOBRUN = 8; + */ + const TERMINATE_JOBRUN = 8; + + private static $valueToName = [ + self::ROLLOUT_ACTIONS_UNSPECIFIED => 'ROLLOUT_ACTIONS_UNSPECIFIED', + self::ADVANCE => 'ADVANCE', + self::APPROVE => 'APPROVE', + self::CANCEL => 'CANCEL', + self::CREATE => 'CREATE', + self::IGNORE_JOB => 'IGNORE_JOB', + self::RETRY_JOB => 'RETRY_JOB', + self::ROLLBACK => 'ROLLBACK', + self::TERMINATE_JOBRUN => 'TERMINATE_JOBRUN', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(RolloutActions::class, \Google\Cloud\Deploy\V1\RolloutRestriction_RolloutActions::class); + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutUpdateEvent.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutUpdateEvent.php new file mode 100644 index 000000000000..6595c48a0d0f --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutUpdateEvent.php @@ -0,0 +1,314 @@ +google.cloud.deploy.v1.RolloutUpdateEvent + */ +class RolloutUpdateEvent extends \Google\Protobuf\Internal\Message +{ + /** + * Debug message for when a rollout update event occurs. + * + * Generated from protobuf field string message = 6; + */ + protected $message = ''; + /** + * Unique identifier of the pipeline. + * + * Generated from protobuf field string pipeline_uid = 1; + */ + protected $pipeline_uid = ''; + /** + * Unique identifier of the release. + * + * Generated from protobuf field string release_uid = 2; + */ + protected $release_uid = ''; + /** + * The name of the `Release`. + * + * Generated from protobuf field string release = 8; + */ + protected $release = ''; + /** + * The name of the rollout. + * rollout_uid is not in this log message because we write some of these log + * messages at rollout creation time, before we've generated the uid. + * + * Generated from protobuf field string rollout = 3; + */ + protected $rollout = ''; + /** + * ID of the target. + * + * Generated from protobuf field string target_id = 4; + */ + protected $target_id = ''; + /** + * Type of this notification, e.g. for a rollout update event. + * + * Generated from protobuf field .google.cloud.deploy.v1.Type type = 7; + */ + protected $type = 0; + /** + * The type of the rollout update. + * + * Generated from protobuf field .google.cloud.deploy.v1.RolloutUpdateEvent.RolloutUpdateType rollout_update_type = 5; + */ + protected $rollout_update_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $message + * Debug message for when a rollout update event occurs. + * @type string $pipeline_uid + * Unique identifier of the pipeline. + * @type string $release_uid + * Unique identifier of the release. + * @type string $release + * The name of the `Release`. + * @type string $rollout + * The name of the rollout. + * rollout_uid is not in this log message because we write some of these log + * messages at rollout creation time, before we've generated the uid. + * @type string $target_id + * ID of the target. + * @type int $type + * Type of this notification, e.g. for a rollout update event. + * @type int $rollout_update_type + * The type of the rollout update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\RolloutUpdatePayload::initOnce(); + parent::__construct($data); + } + + /** + * Debug message for when a rollout update event occurs. + * + * Generated from protobuf field string message = 6; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Debug message for when a rollout update event occurs. + * + * Generated from protobuf field string message = 6; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + + /** + * Unique identifier of the pipeline. + * + * Generated from protobuf field string pipeline_uid = 1; + * @return string + */ + public function getPipelineUid() + { + return $this->pipeline_uid; + } + + /** + * Unique identifier of the pipeline. + * + * Generated from protobuf field string pipeline_uid = 1; + * @param string $var + * @return $this + */ + public function setPipelineUid($var) + { + GPBUtil::checkString($var, True); + $this->pipeline_uid = $var; + + return $this; + } + + /** + * Unique identifier of the release. + * + * Generated from protobuf field string release_uid = 2; + * @return string + */ + public function getReleaseUid() + { + return $this->release_uid; + } + + /** + * Unique identifier of the release. + * + * Generated from protobuf field string release_uid = 2; + * @param string $var + * @return $this + */ + public function setReleaseUid($var) + { + GPBUtil::checkString($var, True); + $this->release_uid = $var; + + return $this; + } + + /** + * The name of the `Release`. + * + * Generated from protobuf field string release = 8; + * @return string + */ + public function getRelease() + { + return $this->release; + } + + /** + * The name of the `Release`. + * + * Generated from protobuf field string release = 8; + * @param string $var + * @return $this + */ + public function setRelease($var) + { + GPBUtil::checkString($var, True); + $this->release = $var; + + return $this; + } + + /** + * The name of the rollout. + * rollout_uid is not in this log message because we write some of these log + * messages at rollout creation time, before we've generated the uid. + * + * Generated from protobuf field string rollout = 3; + * @return string + */ + public function getRollout() + { + return $this->rollout; + } + + /** + * The name of the rollout. + * rollout_uid is not in this log message because we write some of these log + * messages at rollout creation time, before we've generated the uid. + * + * Generated from protobuf field string rollout = 3; + * @param string $var + * @return $this + */ + public function setRollout($var) + { + GPBUtil::checkString($var, True); + $this->rollout = $var; + + return $this; + } + + /** + * ID of the target. + * + * Generated from protobuf field string target_id = 4; + * @return string + */ + public function getTargetId() + { + return $this->target_id; + } + + /** + * ID of the target. + * + * Generated from protobuf field string target_id = 4; + * @param string $var + * @return $this + */ + public function setTargetId($var) + { + GPBUtil::checkString($var, True); + $this->target_id = $var; + + return $this; + } + + /** + * Type of this notification, e.g. for a rollout update event. + * + * Generated from protobuf field .google.cloud.deploy.v1.Type type = 7; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Type of this notification, e.g. for a rollout update event. + * + * Generated from protobuf field .google.cloud.deploy.v1.Type type = 7; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Type::class); + $this->type = $var; + + return $this; + } + + /** + * The type of the rollout update. + * + * Generated from protobuf field .google.cloud.deploy.v1.RolloutUpdateEvent.RolloutUpdateType rollout_update_type = 5; + * @return int + */ + public function getRolloutUpdateType() + { + return $this->rollout_update_type; + } + + /** + * The type of the rollout update. + * + * Generated from protobuf field .google.cloud.deploy.v1.RolloutUpdateEvent.RolloutUpdateType rollout_update_type = 5; + * @param int $var + * @return $this + */ + public function setRolloutUpdateType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\RolloutUpdateEvent\RolloutUpdateType::class); + $this->rollout_update_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutUpdateEvent/RolloutUpdateType.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutUpdateEvent/RolloutUpdateType.php new file mode 100644 index 000000000000..2bb121e5eae8 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutUpdateEvent/RolloutUpdateType.php @@ -0,0 +1,141 @@ +google.cloud.deploy.v1.RolloutUpdateEvent.RolloutUpdateType + */ +class RolloutUpdateType +{ + /** + * Rollout update type unspecified. + * + * Generated from protobuf enum ROLLOUT_UPDATE_TYPE_UNSPECIFIED = 0; + */ + const ROLLOUT_UPDATE_TYPE_UNSPECIFIED = 0; + /** + * rollout state updated to pending. + * + * Generated from protobuf enum PENDING = 1; + */ + const PENDING = 1; + /** + * Rollout state updated to pending release. + * + * Generated from protobuf enum PENDING_RELEASE = 2; + */ + const PENDING_RELEASE = 2; + /** + * Rollout state updated to in progress. + * + * Generated from protobuf enum IN_PROGRESS = 3; + */ + const IN_PROGRESS = 3; + /** + * Rollout state updated to cancelling. + * + * Generated from protobuf enum CANCELLING = 4; + */ + const CANCELLING = 4; + /** + * Rollout state updated to cancelled. + * + * Generated from protobuf enum CANCELLED = 5; + */ + const CANCELLED = 5; + /** + * Rollout state updated to halted. + * + * Generated from protobuf enum HALTED = 6; + */ + const HALTED = 6; + /** + * Rollout state updated to succeeded. + * + * Generated from protobuf enum SUCCEEDED = 7; + */ + const SUCCEEDED = 7; + /** + * Rollout state updated to failed. + * + * Generated from protobuf enum FAILED = 8; + */ + const FAILED = 8; + /** + * Rollout requires approval. + * + * Generated from protobuf enum APPROVAL_REQUIRED = 9; + */ + const APPROVAL_REQUIRED = 9; + /** + * Rollout has been approved. + * + * Generated from protobuf enum APPROVED = 10; + */ + const APPROVED = 10; + /** + * Rollout has been rejected. + * + * Generated from protobuf enum REJECTED = 11; + */ + const REJECTED = 11; + /** + * Rollout requires advance to the next phase. + * + * Generated from protobuf enum ADVANCE_REQUIRED = 12; + */ + const ADVANCE_REQUIRED = 12; + /** + * Rollout has been advanced. + * + * Generated from protobuf enum ADVANCED = 13; + */ + const ADVANCED = 13; + + private static $valueToName = [ + self::ROLLOUT_UPDATE_TYPE_UNSPECIFIED => 'ROLLOUT_UPDATE_TYPE_UNSPECIFIED', + self::PENDING => 'PENDING', + self::PENDING_RELEASE => 'PENDING_RELEASE', + self::IN_PROGRESS => 'IN_PROGRESS', + self::CANCELLING => 'CANCELLING', + self::CANCELLED => 'CANCELLED', + self::HALTED => 'HALTED', + self::SUCCEEDED => 'SUCCEEDED', + self::FAILED => 'FAILED', + self::APPROVAL_REQUIRED => 'APPROVAL_REQUIRED', + self::APPROVED => 'APPROVED', + self::REJECTED => 'REJECTED', + self::ADVANCE_REQUIRED => 'ADVANCE_REQUIRED', + self::ADVANCED => 'ADVANCED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(RolloutUpdateType::class, \Google\Cloud\Deploy\V1\RolloutUpdateEvent_RolloutUpdateType::class); + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RuntimeConfig.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RuntimeConfig.php new file mode 100644 index 000000000000..21cbabe4279b --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RuntimeConfig.php @@ -0,0 +1,109 @@ +google.cloud.deploy.v1.RuntimeConfig + */ +class RuntimeConfig extends \Google\Protobuf\Internal\Message +{ + protected $runtime_config; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Deploy\V1\KubernetesConfig $kubernetes + * Kubernetes runtime configuration. + * @type \Google\Cloud\Deploy\V1\CloudRunConfig $cloud_run + * Cloud Run runtime configuration. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Kubernetes runtime configuration. + * + * Generated from protobuf field .google.cloud.deploy.v1.KubernetesConfig kubernetes = 1; + * @return \Google\Cloud\Deploy\V1\KubernetesConfig|null + */ + public function getKubernetes() + { + return $this->readOneof(1); + } + + public function hasKubernetes() + { + return $this->hasOneof(1); + } + + /** + * Kubernetes runtime configuration. + * + * Generated from protobuf field .google.cloud.deploy.v1.KubernetesConfig kubernetes = 1; + * @param \Google\Cloud\Deploy\V1\KubernetesConfig $var + * @return $this + */ + public function setKubernetes($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\KubernetesConfig::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Cloud Run runtime configuration. + * + * Generated from protobuf field .google.cloud.deploy.v1.CloudRunConfig cloud_run = 2; + * @return \Google\Cloud\Deploy\V1\CloudRunConfig|null + */ + public function getCloudRun() + { + return $this->readOneof(2); + } + + public function hasCloudRun() + { + return $this->hasOneof(2); + } + + /** + * Cloud Run runtime configuration. + * + * Generated from protobuf field .google.cloud.deploy.v1.CloudRunConfig cloud_run = 2; + * @param \Google\Cloud\Deploy\V1\CloudRunConfig $var + * @return $this + */ + public function setCloudRun($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CloudRunConfig::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getRuntimeConfig() + { + return $this->whichOneof("runtime_config"); + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SerialPipeline.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SerialPipeline.php new file mode 100644 index 000000000000..df68b2ffa1d9 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SerialPipeline.php @@ -0,0 +1,71 @@ +google.cloud.deploy.v1.SerialPipeline + */ +class SerialPipeline extends \Google\Protobuf\Internal\Message +{ + /** + * Each stage specifies configuration for a `Target`. The ordering + * of this list defines the promotion flow. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.Stage stages = 1; + */ + private $stages; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\Deploy\V1\Stage>|\Google\Protobuf\Internal\RepeatedField $stages + * Each stage specifies configuration for a `Target`. The ordering + * of this list defines the promotion flow. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Each stage specifies configuration for a `Target`. The ordering + * of this list defines the promotion flow. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.Stage stages = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getStages() + { + return $this->stages; + } + + /** + * Each stage specifies configuration for a `Target`. The ordering + * of this list defines the promotion flow. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.Stage stages = 1; + * @param array<\Google\Cloud\Deploy\V1\Stage>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setStages($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\Stage::class); + $this->stages = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules.php new file mode 100644 index 000000000000..80cd38b13c24 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules.php @@ -0,0 +1,175 @@ +google.cloud.deploy.v1.SkaffoldModules + */ +class SkaffoldModules extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The Skaffold Config modules to use from the specified source. + * + * Generated from protobuf field repeated string configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $configs; + protected $source; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $configs + * Optional. The Skaffold Config modules to use from the specified source. + * @type \Google\Cloud\Deploy\V1\SkaffoldModules\SkaffoldGitSource $git + * Remote git repository containing the Skaffold Config modules. + * @type \Google\Cloud\Deploy\V1\SkaffoldModules\SkaffoldGCSSource $google_cloud_storage + * Cloud Storage bucket containing the Skaffold Config modules. + * @type \Google\Cloud\Deploy\V1\SkaffoldModules\SkaffoldGCBRepoSource $google_cloud_build_repo + * Cloud Build V2 repository containing the Skaffold Config modules. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The Skaffold Config modules to use from the specified source. + * + * Generated from protobuf field repeated string configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getConfigs() + { + return $this->configs; + } + + /** + * Optional. The Skaffold Config modules to use from the specified source. + * + * Generated from protobuf field repeated string configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setConfigs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->configs = $arr; + + return $this; + } + + /** + * Remote git repository containing the Skaffold Config modules. + * + * Generated from protobuf field .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource git = 2; + * @return \Google\Cloud\Deploy\V1\SkaffoldModules\SkaffoldGitSource|null + */ + public function getGit() + { + return $this->readOneof(2); + } + + public function hasGit() + { + return $this->hasOneof(2); + } + + /** + * Remote git repository containing the Skaffold Config modules. + * + * Generated from protobuf field .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource git = 2; + * @param \Google\Cloud\Deploy\V1\SkaffoldModules\SkaffoldGitSource $var + * @return $this + */ + public function setGit($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\SkaffoldModules\SkaffoldGitSource::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Cloud Storage bucket containing the Skaffold Config modules. + * + * Generated from protobuf field .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource google_cloud_storage = 3; + * @return \Google\Cloud\Deploy\V1\SkaffoldModules\SkaffoldGCSSource|null + */ + public function getGoogleCloudStorage() + { + return $this->readOneof(3); + } + + public function hasGoogleCloudStorage() + { + return $this->hasOneof(3); + } + + /** + * Cloud Storage bucket containing the Skaffold Config modules. + * + * Generated from protobuf field .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource google_cloud_storage = 3; + * @param \Google\Cloud\Deploy\V1\SkaffoldModules\SkaffoldGCSSource $var + * @return $this + */ + public function setGoogleCloudStorage($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\SkaffoldModules\SkaffoldGCSSource::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Cloud Build V2 repository containing the Skaffold Config modules. + * + * Generated from protobuf field .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource google_cloud_build_repo = 4; + * @return \Google\Cloud\Deploy\V1\SkaffoldModules\SkaffoldGCBRepoSource|null + */ + public function getGoogleCloudBuildRepo() + { + return $this->readOneof(4); + } + + public function hasGoogleCloudBuildRepo() + { + return $this->hasOneof(4); + } + + /** + * Cloud Build V2 repository containing the Skaffold Config modules. + * + * Generated from protobuf field .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource google_cloud_build_repo = 4; + * @param \Google\Cloud\Deploy\V1\SkaffoldModules\SkaffoldGCBRepoSource $var + * @return $this + */ + public function setGoogleCloudBuildRepo($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\SkaffoldModules\SkaffoldGCBRepoSource::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * @return string + */ + public function getSource() + { + return $this->whichOneof("source"); + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules/SkaffoldGCBRepoSource.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules/SkaffoldGCBRepoSource.php new file mode 100644 index 000000000000..fa3d408ca365 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules/SkaffoldGCBRepoSource.php @@ -0,0 +1,150 @@ +google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource + */ +class SkaffoldGCBRepoSource extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the Cloud Build V2 Repository. + * Format is + * projects/{project}/locations/{location}/connections/{connection}/repositories/{repository}. + * + * Generated from protobuf field string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $repository = ''; + /** + * Optional. Relative path from the repository root to the Skaffold Config + * file. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $path = ''; + /** + * Optional. Branch or tag to use when cloning the repository. + * + * Generated from protobuf field string ref = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $ref = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $repository + * Required. Name of the Cloud Build V2 Repository. + * Format is + * projects/{project}/locations/{location}/connections/{connection}/repositories/{repository}. + * @type string $path + * Optional. Relative path from the repository root to the Skaffold Config + * file. + * @type string $ref + * Optional. Branch or tag to use when cloning the repository. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the Cloud Build V2 Repository. + * Format is + * projects/{project}/locations/{location}/connections/{connection}/repositories/{repository}. + * + * Generated from protobuf field string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getRepository() + { + return $this->repository; + } + + /** + * Required. Name of the Cloud Build V2 Repository. + * Format is + * projects/{project}/locations/{location}/connections/{connection}/repositories/{repository}. + * + * Generated from protobuf field string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setRepository($var) + { + GPBUtil::checkString($var, True); + $this->repository = $var; + + return $this; + } + + /** + * Optional. Relative path from the repository root to the Skaffold Config + * file. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * Optional. Relative path from the repository root to the Skaffold Config + * file. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + + /** + * Optional. Branch or tag to use when cloning the repository. + * + * Generated from protobuf field string ref = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRef() + { + return $this->ref; + } + + /** + * Optional. Branch or tag to use when cloning the repository. + * + * Generated from protobuf field string ref = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRef($var) + { + GPBUtil::checkString($var, True); + $this->ref = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SkaffoldGCBRepoSource::class, \Google\Cloud\Deploy\V1\SkaffoldModules_SkaffoldGCBRepoSource::class); + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules/SkaffoldGCSSource.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules/SkaffoldGCSSource.php new file mode 100644 index 000000000000..30506470d3ce --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules/SkaffoldGCSSource.php @@ -0,0 +1,112 @@ +google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource + */ +class SkaffoldGCSSource extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Cloud Storage source paths to copy recursively. For example, + * providing "gs://my-bucket/dir/configs/*" will result in Skaffold copying + * all files within the "dir/configs" directory in the bucket "my-bucket". + * + * Generated from protobuf field string source = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $source = ''; + /** + * Optional. Relative path from the source to the Skaffold file. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $path = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $source + * Required. Cloud Storage source paths to copy recursively. For example, + * providing "gs://my-bucket/dir/configs/*" will result in Skaffold copying + * all files within the "dir/configs" directory in the bucket "my-bucket". + * @type string $path + * Optional. Relative path from the source to the Skaffold file. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. Cloud Storage source paths to copy recursively. For example, + * providing "gs://my-bucket/dir/configs/*" will result in Skaffold copying + * all files within the "dir/configs" directory in the bucket "my-bucket". + * + * Generated from protobuf field string source = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getSource() + { + return $this->source; + } + + /** + * Required. Cloud Storage source paths to copy recursively. For example, + * providing "gs://my-bucket/dir/configs/*" will result in Skaffold copying + * all files within the "dir/configs" directory in the bucket "my-bucket". + * + * Generated from protobuf field string source = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setSource($var) + { + GPBUtil::checkString($var, True); + $this->source = $var; + + return $this; + } + + /** + * Optional. Relative path from the source to the Skaffold file. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * Optional. Relative path from the source to the Skaffold file. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SkaffoldGCSSource::class, \Google\Cloud\Deploy\V1\SkaffoldModules_SkaffoldGCSSource::class); + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules/SkaffoldGitSource.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules/SkaffoldGitSource.php new file mode 100644 index 000000000000..38bc7ae988de --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules/SkaffoldGitSource.php @@ -0,0 +1,138 @@ +google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource + */ +class SkaffoldGitSource extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Git repository the package should be cloned from. + * + * Generated from protobuf field string repo = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $repo = ''; + /** + * Optional. Relative path from the repository root to the Skaffold file. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $path = ''; + /** + * Optional. Git branch or tag to use when cloning the repository. + * + * Generated from protobuf field string ref = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $ref = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $repo + * Required. Git repository the package should be cloned from. + * @type string $path + * Optional. Relative path from the repository root to the Skaffold file. + * @type string $ref + * Optional. Git branch or tag to use when cloning the repository. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. Git repository the package should be cloned from. + * + * Generated from protobuf field string repo = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getRepo() + { + return $this->repo; + } + + /** + * Required. Git repository the package should be cloned from. + * + * Generated from protobuf field string repo = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setRepo($var) + { + GPBUtil::checkString($var, True); + $this->repo = $var; + + return $this; + } + + /** + * Optional. Relative path from the repository root to the Skaffold file. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * Optional. Relative path from the repository root to the Skaffold file. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + + /** + * Optional. Git branch or tag to use when cloning the repository. + * + * Generated from protobuf field string ref = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRef() + { + return $this->ref; + } + + /** + * Optional. Git branch or tag to use when cloning the repository. + * + * Generated from protobuf field string ref = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRef($var) + { + GPBUtil::checkString($var, True); + $this->ref = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SkaffoldGitSource::class, \Google\Cloud\Deploy\V1\SkaffoldModules_SkaffoldGitSource::class); + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldSupportState.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldSupportState.php new file mode 100644 index 000000000000..ddeaf2ac9f3a --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldSupportState.php @@ -0,0 +1,68 @@ +google.cloud.deploy.v1.SkaffoldSupportState + */ +class SkaffoldSupportState +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum SKAFFOLD_SUPPORT_STATE_UNSPECIFIED = 0; + */ + const SKAFFOLD_SUPPORT_STATE_UNSPECIFIED = 0; + /** + * This Skaffold version is currently supported. + * + * Generated from protobuf enum SKAFFOLD_SUPPORT_STATE_SUPPORTED = 1; + */ + const SKAFFOLD_SUPPORT_STATE_SUPPORTED = 1; + /** + * This Skaffold version is in maintenance mode. + * + * Generated from protobuf enum SKAFFOLD_SUPPORT_STATE_MAINTENANCE_MODE = 2; + */ + const SKAFFOLD_SUPPORT_STATE_MAINTENANCE_MODE = 2; + /** + * This Skaffold version is no longer supported. + * + * Generated from protobuf enum SKAFFOLD_SUPPORT_STATE_UNSUPPORTED = 3; + */ + const SKAFFOLD_SUPPORT_STATE_UNSUPPORTED = 3; + + private static $valueToName = [ + self::SKAFFOLD_SUPPORT_STATE_UNSPECIFIED => 'SKAFFOLD_SUPPORT_STATE_UNSPECIFIED', + self::SKAFFOLD_SUPPORT_STATE_SUPPORTED => 'SKAFFOLD_SUPPORT_STATE_SUPPORTED', + self::SKAFFOLD_SUPPORT_STATE_MAINTENANCE_MODE => 'SKAFFOLD_SUPPORT_STATE_MAINTENANCE_MODE', + self::SKAFFOLD_SUPPORT_STATE_UNSUPPORTED => 'SKAFFOLD_SUPPORT_STATE_UNSUPPORTED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldVersion.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldVersion.php new file mode 100644 index 000000000000..025ceb464b68 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldVersion.php @@ -0,0 +1,199 @@ +google.cloud.deploy.v1.SkaffoldVersion + */ +class SkaffoldVersion extends \Google\Protobuf\Internal\Message +{ + /** + * Release version number. For example, "1.20.3". + * + * Generated from protobuf field string version = 1; + */ + protected $version = ''; + /** + * The time at which this version of Skaffold will enter maintenance mode. + * + * Generated from protobuf field .google.protobuf.Timestamp maintenance_mode_time = 3; + */ + protected $maintenance_mode_time = null; + /** + * The time at which this version of Skaffold will no longer be supported. + * + * Generated from protobuf field .google.protobuf.Timestamp support_expiration_time = 4; + */ + protected $support_expiration_time = null; + /** + * Date when this version is expected to no longer be supported. + * + * Generated from protobuf field .google.type.Date support_end_date = 2; + */ + protected $support_end_date = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $version + * Release version number. For example, "1.20.3". + * @type \Google\Protobuf\Timestamp $maintenance_mode_time + * The time at which this version of Skaffold will enter maintenance mode. + * @type \Google\Protobuf\Timestamp $support_expiration_time + * The time at which this version of Skaffold will no longer be supported. + * @type \Google\Type\Date $support_end_date + * Date when this version is expected to no longer be supported. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Release version number. For example, "1.20.3". + * + * Generated from protobuf field string version = 1; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * Release version number. For example, "1.20.3". + * + * Generated from protobuf field string version = 1; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + + /** + * The time at which this version of Skaffold will enter maintenance mode. + * + * Generated from protobuf field .google.protobuf.Timestamp maintenance_mode_time = 3; + * @return \Google\Protobuf\Timestamp|null + */ + public function getMaintenanceModeTime() + { + return $this->maintenance_mode_time; + } + + public function hasMaintenanceModeTime() + { + return isset($this->maintenance_mode_time); + } + + public function clearMaintenanceModeTime() + { + unset($this->maintenance_mode_time); + } + + /** + * The time at which this version of Skaffold will enter maintenance mode. + * + * Generated from protobuf field .google.protobuf.Timestamp maintenance_mode_time = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setMaintenanceModeTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->maintenance_mode_time = $var; + + return $this; + } + + /** + * The time at which this version of Skaffold will no longer be supported. + * + * Generated from protobuf field .google.protobuf.Timestamp support_expiration_time = 4; + * @return \Google\Protobuf\Timestamp|null + */ + public function getSupportExpirationTime() + { + return $this->support_expiration_time; + } + + public function hasSupportExpirationTime() + { + return isset($this->support_expiration_time); + } + + public function clearSupportExpirationTime() + { + unset($this->support_expiration_time); + } + + /** + * The time at which this version of Skaffold will no longer be supported. + * + * Generated from protobuf field .google.protobuf.Timestamp support_expiration_time = 4; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setSupportExpirationTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->support_expiration_time = $var; + + return $this; + } + + /** + * Date when this version is expected to no longer be supported. + * + * Generated from protobuf field .google.type.Date support_end_date = 2; + * @return \Google\Type\Date|null + */ + public function getSupportEndDate() + { + return $this->support_end_date; + } + + public function hasSupportEndDate() + { + return isset($this->support_end_date); + } + + public function clearSupportEndDate() + { + unset($this->support_end_date); + } + + /** + * Date when this version is expected to no longer be supported. + * + * Generated from protobuf field .google.type.Date support_end_date = 2; + * @param \Google\Type\Date $var + * @return $this + */ + public function setSupportEndDate($var) + { + GPBUtil::checkMessage($var, \Google\Type\Date::class); + $this->support_end_date = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Stage.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Stage.php new file mode 100644 index 000000000000..ffd1b986043b --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Stage.php @@ -0,0 +1,203 @@ +google.cloud.deploy.v1.Stage + */ +class Stage extends \Google\Protobuf\Internal\Message +{ + /** + * The target_id to which this stage points. This field refers exclusively to + * the last segment of a target name. For example, this field would just be + * `my-target` (rather than + * `projects/project/locations/location/targets/my-target`). The location of + * the `Target` is inferred to be the same as the location of the + * `DeliveryPipeline` that contains this `Stage`. + * + * Generated from protobuf field string target_id = 1; + */ + protected $target_id = ''; + /** + * Skaffold profiles to use when rendering the manifest for this stage's + * `Target`. + * + * Generated from protobuf field repeated string profiles = 2; + */ + private $profiles; + /** + * Optional. The strategy to use for a `Rollout` to this stage. + * + * Generated from protobuf field .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $strategy = null; + /** + * Optional. The deploy parameters to use for the target in this stage. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $deploy_parameters; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $target_id + * The target_id to which this stage points. This field refers exclusively to + * the last segment of a target name. For example, this field would just be + * `my-target` (rather than + * `projects/project/locations/location/targets/my-target`). The location of + * the `Target` is inferred to be the same as the location of the + * `DeliveryPipeline` that contains this `Stage`. + * @type array|\Google\Protobuf\Internal\RepeatedField $profiles + * Skaffold profiles to use when rendering the manifest for this stage's + * `Target`. + * @type \Google\Cloud\Deploy\V1\Strategy $strategy + * Optional. The strategy to use for a `Rollout` to this stage. + * @type array<\Google\Cloud\Deploy\V1\DeployParameters>|\Google\Protobuf\Internal\RepeatedField $deploy_parameters + * Optional. The deploy parameters to use for the target in this stage. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * The target_id to which this stage points. This field refers exclusively to + * the last segment of a target name. For example, this field would just be + * `my-target` (rather than + * `projects/project/locations/location/targets/my-target`). The location of + * the `Target` is inferred to be the same as the location of the + * `DeliveryPipeline` that contains this `Stage`. + * + * Generated from protobuf field string target_id = 1; + * @return string + */ + public function getTargetId() + { + return $this->target_id; + } + + /** + * The target_id to which this stage points. This field refers exclusively to + * the last segment of a target name. For example, this field would just be + * `my-target` (rather than + * `projects/project/locations/location/targets/my-target`). The location of + * the `Target` is inferred to be the same as the location of the + * `DeliveryPipeline` that contains this `Stage`. + * + * Generated from protobuf field string target_id = 1; + * @param string $var + * @return $this + */ + public function setTargetId($var) + { + GPBUtil::checkString($var, True); + $this->target_id = $var; + + return $this; + } + + /** + * Skaffold profiles to use when rendering the manifest for this stage's + * `Target`. + * + * Generated from protobuf field repeated string profiles = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getProfiles() + { + return $this->profiles; + } + + /** + * Skaffold profiles to use when rendering the manifest for this stage's + * `Target`. + * + * Generated from protobuf field repeated string profiles = 2; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setProfiles($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->profiles = $arr; + + return $this; + } + + /** + * Optional. The strategy to use for a `Rollout` to this stage. + * + * Generated from protobuf field .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Deploy\V1\Strategy|null + */ + public function getStrategy() + { + return $this->strategy; + } + + public function hasStrategy() + { + return isset($this->strategy); + } + + public function clearStrategy() + { + unset($this->strategy); + } + + /** + * Optional. The strategy to use for a `Rollout` to this stage. + * + * Generated from protobuf field .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Deploy\V1\Strategy $var + * @return $this + */ + public function setStrategy($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Strategy::class); + $this->strategy = $var; + + return $this; + } + + /** + * Optional. The deploy parameters to use for the target in this stage. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDeployParameters() + { + return $this->deploy_parameters; + } + + /** + * Optional. The deploy parameters to use for the target in this stage. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Cloud\Deploy\V1\DeployParameters>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDeployParameters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\DeployParameters::class); + $this->deploy_parameters = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Standard.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Standard.php new file mode 100644 index 000000000000..5dfce8ecc950 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Standard.php @@ -0,0 +1,163 @@ +google.cloud.deploy.v1.Standard + */ +class Standard extends \Google\Protobuf\Internal\Message +{ + /** + * Whether to verify a deployment. + * + * Generated from protobuf field bool verify = 1; + */ + protected $verify = false; + /** + * Optional. Configuration for the predeploy job. If this is not configured, + * predeploy job will not be present. + * + * Generated from protobuf field .google.cloud.deploy.v1.Predeploy predeploy = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $predeploy = null; + /** + * Optional. Configuration for the postdeploy job. If this is not configured, + * postdeploy job will not be present. + * + * Generated from protobuf field .google.cloud.deploy.v1.Postdeploy postdeploy = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $postdeploy = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $verify + * Whether to verify a deployment. + * @type \Google\Cloud\Deploy\V1\Predeploy $predeploy + * Optional. Configuration for the predeploy job. If this is not configured, + * predeploy job will not be present. + * @type \Google\Cloud\Deploy\V1\Postdeploy $postdeploy + * Optional. Configuration for the postdeploy job. If this is not configured, + * postdeploy job will not be present. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Whether to verify a deployment. + * + * Generated from protobuf field bool verify = 1; + * @return bool + */ + public function getVerify() + { + return $this->verify; + } + + /** + * Whether to verify a deployment. + * + * Generated from protobuf field bool verify = 1; + * @param bool $var + * @return $this + */ + public function setVerify($var) + { + GPBUtil::checkBool($var); + $this->verify = $var; + + return $this; + } + + /** + * Optional. Configuration for the predeploy job. If this is not configured, + * predeploy job will not be present. + * + * Generated from protobuf field .google.cloud.deploy.v1.Predeploy predeploy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Deploy\V1\Predeploy|null + */ + public function getPredeploy() + { + return $this->predeploy; + } + + public function hasPredeploy() + { + return isset($this->predeploy); + } + + public function clearPredeploy() + { + unset($this->predeploy); + } + + /** + * Optional. Configuration for the predeploy job. If this is not configured, + * predeploy job will not be present. + * + * Generated from protobuf field .google.cloud.deploy.v1.Predeploy predeploy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Deploy\V1\Predeploy $var + * @return $this + */ + public function setPredeploy($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Predeploy::class); + $this->predeploy = $var; + + return $this; + } + + /** + * Optional. Configuration for the postdeploy job. If this is not configured, + * postdeploy job will not be present. + * + * Generated from protobuf field .google.cloud.deploy.v1.Postdeploy postdeploy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Deploy\V1\Postdeploy|null + */ + public function getPostdeploy() + { + return $this->postdeploy; + } + + public function hasPostdeploy() + { + return isset($this->postdeploy); + } + + public function clearPostdeploy() + { + unset($this->postdeploy); + } + + /** + * Optional. Configuration for the postdeploy job. If this is not configured, + * postdeploy job will not be present. + * + * Generated from protobuf field .google.cloud.deploy.v1.Postdeploy postdeploy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Deploy\V1\Postdeploy $var + * @return $this + */ + public function setPostdeploy($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Postdeploy::class); + $this->postdeploy = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Strategy.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Strategy.php new file mode 100644 index 000000000000..3d4f9641a71f --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Strategy.php @@ -0,0 +1,114 @@ +google.cloud.deploy.v1.Strategy + */ +class Strategy extends \Google\Protobuf\Internal\Message +{ + protected $deployment_strategy; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Deploy\V1\Standard $standard + * Standard deployment strategy executes a single deploy and allows + * verifying the deployment. + * @type \Google\Cloud\Deploy\V1\Canary $canary + * Canary deployment strategy provides progressive percentage based + * deployments to a Target. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Standard deployment strategy executes a single deploy and allows + * verifying the deployment. + * + * Generated from protobuf field .google.cloud.deploy.v1.Standard standard = 1; + * @return \Google\Cloud\Deploy\V1\Standard|null + */ + public function getStandard() + { + return $this->readOneof(1); + } + + public function hasStandard() + { + return $this->hasOneof(1); + } + + /** + * Standard deployment strategy executes a single deploy and allows + * verifying the deployment. + * + * Generated from protobuf field .google.cloud.deploy.v1.Standard standard = 1; + * @param \Google\Cloud\Deploy\V1\Standard $var + * @return $this + */ + public function setStandard($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Standard::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Canary deployment strategy provides progressive percentage based + * deployments to a Target. + * + * Generated from protobuf field .google.cloud.deploy.v1.Canary canary = 2; + * @return \Google\Cloud\Deploy\V1\Canary|null + */ + public function getCanary() + { + return $this->readOneof(2); + } + + public function hasCanary() + { + return $this->hasOneof(2); + } + + /** + * Canary deployment strategy provides progressive percentage based + * deployments to a Target. + * + * Generated from protobuf field .google.cloud.deploy.v1.Canary canary = 2; + * @param \Google\Cloud\Deploy\V1\Canary $var + * @return $this + */ + public function setCanary($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Canary::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getDeploymentStrategy() + { + return $this->whichOneof("deployment_strategy"); + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Target.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Target.php new file mode 100644 index 000000000000..70f1b0a03e49 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Target.php @@ -0,0 +1,783 @@ +google.cloud.deploy.v1.Target + */ +class Target extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Name of the `Target`. Format is + * `projects/{project}/locations/{location}/targets/{target}`. + * The `target` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $name = ''; + /** + * Output only. Resource id of the `Target`. + * + * Generated from protobuf field string target_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $target_id = ''; + /** + * Output only. Unique identifier of the `Target`. + * + * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $uid = ''; + /** + * Optional. Description of the `Target`. Max length is 255 characters. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Optional. User annotations. These attributes can only be set and used by + * the user, and not by Cloud Deploy. See + * https://google.aip.dev/128#annotations for more details such as format and + * size limitations. + * + * Generated from protobuf field map annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $annotations; + /** + * Optional. Labels are attributes that can be set and used by both the + * user and by Cloud Deploy. Labels must meet the following constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Optional. Whether or not the `Target` requires approval. + * + * Generated from protobuf field bool require_approval = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $require_approval = false; + /** + * Output only. Time at which the `Target` was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. Most recent time at which the `Target` was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. Map of entity IDs to their associated entities. Associated + * entities allows specifying places other than the deployment target for + * specific features. For example, the Gateway API canary can be configured to + * deploy the HTTPRoute to a different cluster(s) than the deployment cluster + * using associated entities. An entity ID must consist of lower-case letters, + * numbers, and hyphens, start with a letter and end with a letter or a + * number, and have a max length of 63 characters. In other words, it must + * match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * + * Generated from protobuf field map associated_entities = 23 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $associated_entities; + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + /** + * Configurations for all execution that relates to this `Target`. + * Each `ExecutionEnvironmentUsage` value may only be used in a single + * configuration; using the same value multiple times is an error. + * When one or more configurations are specified, they must include the + * `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values. + * When no configurations are specified, execution will use the default + * specified in `DefaultPool`. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16; + */ + private $execution_configs; + /** + * Optional. The deploy parameters to use for this target. + * + * Generated from protobuf field map deploy_parameters = 20 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $deploy_parameters; + protected $deployment_target; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Optional. Name of the `Target`. Format is + * `projects/{project}/locations/{location}/targets/{target}`. + * The `target` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` + * @type string $target_id + * Output only. Resource id of the `Target`. + * @type string $uid + * Output only. Unique identifier of the `Target`. + * @type string $description + * Optional. Description of the `Target`. Max length is 255 characters. + * @type array|\Google\Protobuf\Internal\MapField $annotations + * Optional. User annotations. These attributes can only be set and used by + * the user, and not by Cloud Deploy. See + * https://google.aip.dev/128#annotations for more details such as format and + * size limitations. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. Labels are attributes that can be set and used by both the + * user and by Cloud Deploy. Labels must meet the following constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. + * @type bool $require_approval + * Optional. Whether or not the `Target` requires approval. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Time at which the `Target` was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Most recent time at which the `Target` was updated. + * @type \Google\Cloud\Deploy\V1\GkeCluster $gke + * Optional. Information specifying a GKE Cluster. + * @type \Google\Cloud\Deploy\V1\AnthosCluster $anthos_cluster + * Optional. Information specifying an Anthos Cluster. + * @type \Google\Cloud\Deploy\V1\CloudRunLocation $run + * Optional. Information specifying a Cloud Run deployment target. + * @type \Google\Cloud\Deploy\V1\MultiTarget $multi_target + * Optional. Information specifying a multiTarget. + * @type \Google\Cloud\Deploy\V1\CustomTarget $custom_target + * Optional. Information specifying a Custom Target. + * @type array|\Google\Protobuf\Internal\MapField $associated_entities + * Optional. Map of entity IDs to their associated entities. Associated + * entities allows specifying places other than the deployment target for + * specific features. For example, the Gateway API canary can be configured to + * deploy the HTTPRoute to a different cluster(s) than the deployment cluster + * using associated entities. An entity ID must consist of lower-case letters, + * numbers, and hyphens, start with a letter and end with a letter or a + * number, and have a max length of 63 characters. In other words, it must + * match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * @type string $etag + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * @type array<\Google\Cloud\Deploy\V1\ExecutionConfig>|\Google\Protobuf\Internal\RepeatedField $execution_configs + * Configurations for all execution that relates to this `Target`. + * Each `ExecutionEnvironmentUsage` value may only be used in a single + * configuration; using the same value multiple times is an error. + * When one or more configurations are specified, they must include the + * `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values. + * When no configurations are specified, execution will use the default + * specified in `DefaultPool`. + * @type array|\Google\Protobuf\Internal\MapField $deploy_parameters + * Optional. The deploy parameters to use for this target. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Name of the `Target`. Format is + * `projects/{project}/locations/{location}/targets/{target}`. + * The `target` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Optional. Name of the `Target`. Format is + * `projects/{project}/locations/{location}/targets/{target}`. + * The `target` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. Resource id of the `Target`. + * + * Generated from protobuf field string target_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTargetId() + { + return $this->target_id; + } + + /** + * Output only. Resource id of the `Target`. + * + * Generated from protobuf field string target_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setTargetId($var) + { + GPBUtil::checkString($var, True); + $this->target_id = $var; + + return $this; + } + + /** + * Output only. Unique identifier of the `Target`. + * + * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. Unique identifier of the `Target`. + * + * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Optional. Description of the `Target`. Max length is 255 characters. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description of the `Target`. Max length is 255 characters. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Optional. User annotations. These attributes can only be set and used by + * the user, and not by Cloud Deploy. See + * https://google.aip.dev/128#annotations for more details such as format and + * size limitations. + * + * Generated from protobuf field map annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getAnnotations() + { + return $this->annotations; + } + + /** + * Optional. User annotations. These attributes can only be set and used by + * the user, and not by Cloud Deploy. See + * https://google.aip.dev/128#annotations for more details such as format and + * size limitations. + * + * Generated from protobuf field map annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setAnnotations($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->annotations = $arr; + + return $this; + } + + /** + * Optional. Labels are attributes that can be set and used by both the + * user and by Cloud Deploy. Labels must meet the following constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. Labels are attributes that can be set and used by both the + * user and by Cloud Deploy. Labels must meet the following constraints: + * * Keys and values can contain only lowercase letters, numeric characters, + * underscores, and dashes. + * * All characters must use UTF-8 encoding, and international characters are + * allowed. + * * Keys must start with a lowercase letter or international character. + * * Each resource is limited to a maximum of 64 labels. + * Both keys and values are additionally constrained to be <= 128 bytes. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Optional. Whether or not the `Target` requires approval. + * + * Generated from protobuf field bool require_approval = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getRequireApproval() + { + return $this->require_approval; + } + + /** + * Optional. Whether or not the `Target` requires approval. + * + * Generated from protobuf field bool require_approval = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setRequireApproval($var) + { + GPBUtil::checkBool($var); + $this->require_approval = $var; + + return $this; + } + + /** + * Output only. Time at which the `Target` was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Time at which the `Target` was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. Most recent time at which the `Target` was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. Most recent time at which the `Target` was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Optional. Information specifying a GKE Cluster. + * + * Generated from protobuf field .google.cloud.deploy.v1.GkeCluster gke = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Deploy\V1\GkeCluster|null + */ + public function getGke() + { + return $this->readOneof(15); + } + + public function hasGke() + { + return $this->hasOneof(15); + } + + /** + * Optional. Information specifying a GKE Cluster. + * + * Generated from protobuf field .google.cloud.deploy.v1.GkeCluster gke = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Deploy\V1\GkeCluster $var + * @return $this + */ + public function setGke($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\GkeCluster::class); + $this->writeOneof(15, $var); + + return $this; + } + + /** + * Optional. Information specifying an Anthos Cluster. + * + * Generated from protobuf field .google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Deploy\V1\AnthosCluster|null + */ + public function getAnthosCluster() + { + return $this->readOneof(17); + } + + public function hasAnthosCluster() + { + return $this->hasOneof(17); + } + + /** + * Optional. Information specifying an Anthos Cluster. + * + * Generated from protobuf field .google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Deploy\V1\AnthosCluster $var + * @return $this + */ + public function setAnthosCluster($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\AnthosCluster::class); + $this->writeOneof(17, $var); + + return $this; + } + + /** + * Optional. Information specifying a Cloud Run deployment target. + * + * Generated from protobuf field .google.cloud.deploy.v1.CloudRunLocation run = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Deploy\V1\CloudRunLocation|null + */ + public function getRun() + { + return $this->readOneof(18); + } + + public function hasRun() + { + return $this->hasOneof(18); + } + + /** + * Optional. Information specifying a Cloud Run deployment target. + * + * Generated from protobuf field .google.cloud.deploy.v1.CloudRunLocation run = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Deploy\V1\CloudRunLocation $var + * @return $this + */ + public function setRun($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CloudRunLocation::class); + $this->writeOneof(18, $var); + + return $this; + } + + /** + * Optional. Information specifying a multiTarget. + * + * Generated from protobuf field .google.cloud.deploy.v1.MultiTarget multi_target = 19 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Deploy\V1\MultiTarget|null + */ + public function getMultiTarget() + { + return $this->readOneof(19); + } + + public function hasMultiTarget() + { + return $this->hasOneof(19); + } + + /** + * Optional. Information specifying a multiTarget. + * + * Generated from protobuf field .google.cloud.deploy.v1.MultiTarget multi_target = 19 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Deploy\V1\MultiTarget $var + * @return $this + */ + public function setMultiTarget($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\MultiTarget::class); + $this->writeOneof(19, $var); + + return $this; + } + + /** + * Optional. Information specifying a Custom Target. + * + * Generated from protobuf field .google.cloud.deploy.v1.CustomTarget custom_target = 21 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Deploy\V1\CustomTarget|null + */ + public function getCustomTarget() + { + return $this->readOneof(21); + } + + public function hasCustomTarget() + { + return $this->hasOneof(21); + } + + /** + * Optional. Information specifying a Custom Target. + * + * Generated from protobuf field .google.cloud.deploy.v1.CustomTarget custom_target = 21 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Deploy\V1\CustomTarget $var + * @return $this + */ + public function setCustomTarget($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CustomTarget::class); + $this->writeOneof(21, $var); + + return $this; + } + + /** + * Optional. Map of entity IDs to their associated entities. Associated + * entities allows specifying places other than the deployment target for + * specific features. For example, the Gateway API canary can be configured to + * deploy the HTTPRoute to a different cluster(s) than the deployment cluster + * using associated entities. An entity ID must consist of lower-case letters, + * numbers, and hyphens, start with a letter and end with a letter or a + * number, and have a max length of 63 characters. In other words, it must + * match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * + * Generated from protobuf field map associated_entities = 23 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getAssociatedEntities() + { + return $this->associated_entities; + } + + /** + * Optional. Map of entity IDs to their associated entities. Associated + * entities allows specifying places other than the deployment target for + * specific features. For example, the Gateway API canary can be configured to + * deploy the HTTPRoute to a different cluster(s) than the deployment cluster + * using associated entities. An entity ID must consist of lower-case letters, + * numbers, and hyphens, start with a letter and end with a letter or a + * number, and have a max length of 63 characters. In other words, it must + * match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * + * Generated from protobuf field map associated_entities = 23 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setAssociatedEntities($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\AssociatedEntities::class); + $this->associated_entities = $arr; + + return $this; + } + + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Configurations for all execution that relates to this `Target`. + * Each `ExecutionEnvironmentUsage` value may only be used in a single + * configuration; using the same value multiple times is an error. + * When one or more configurations are specified, they must include the + * `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values. + * When no configurations are specified, execution will use the default + * specified in `DefaultPool`. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getExecutionConfigs() + { + return $this->execution_configs; + } + + /** + * Configurations for all execution that relates to this `Target`. + * Each `ExecutionEnvironmentUsage` value may only be used in a single + * configuration; using the same value multiple times is an error. + * When one or more configurations are specified, they must include the + * `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values. + * When no configurations are specified, execution will use the default + * specified in `DefaultPool`. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16; + * @param array<\Google\Cloud\Deploy\V1\ExecutionConfig>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setExecutionConfigs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\ExecutionConfig::class); + $this->execution_configs = $arr; + + return $this; + } + + /** + * Optional. The deploy parameters to use for this target. + * + * Generated from protobuf field map deploy_parameters = 20 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getDeployParameters() + { + return $this->deploy_parameters; + } + + /** + * Optional. The deploy parameters to use for this target. + * + * Generated from protobuf field map deploy_parameters = 20 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setDeployParameters($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->deploy_parameters = $arr; + + return $this; + } + + /** + * @return string + */ + public function getDeploymentTarget() + { + return $this->whichOneof("deployment_target"); + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetArtifact.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetArtifact.php new file mode 100644 index 000000000000..dcca9ff5bfa5 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetArtifact.php @@ -0,0 +1,187 @@ +google.cloud.deploy.v1.TargetArtifact + */ +class TargetArtifact extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. File path of the resolved Skaffold configuration relative to + * the URI. + * + * Generated from protobuf field string skaffold_config_path = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $skaffold_config_path = ''; + /** + * Output only. File path of the rendered manifest relative to the URI. + * + * Generated from protobuf field string manifest_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $manifest_path = ''; + /** + * Output only. Map from the phase ID to the phase artifacts for the `Target`. + * + * Generated from protobuf field map phase_artifacts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $phase_artifacts; + protected $uri; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $artifact_uri + * Output only. URI of a directory containing the artifacts. This contains + * deployment configuration used by Skaffold during a rollout, and all + * paths are relative to this location. + * @type string $skaffold_config_path + * Output only. File path of the resolved Skaffold configuration relative to + * the URI. + * @type string $manifest_path + * Output only. File path of the rendered manifest relative to the URI. + * @type array|\Google\Protobuf\Internal\MapField $phase_artifacts + * Output only. Map from the phase ID to the phase artifacts for the `Target`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Output only. URI of a directory containing the artifacts. This contains + * deployment configuration used by Skaffold during a rollout, and all + * paths are relative to this location. + * + * Generated from protobuf field string artifact_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getArtifactUri() + { + return $this->readOneof(4); + } + + public function hasArtifactUri() + { + return $this->hasOneof(4); + } + + /** + * Output only. URI of a directory containing the artifacts. This contains + * deployment configuration used by Skaffold during a rollout, and all + * paths are relative to this location. + * + * Generated from protobuf field string artifact_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setArtifactUri($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Output only. File path of the resolved Skaffold configuration relative to + * the URI. + * + * Generated from protobuf field string skaffold_config_path = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getSkaffoldConfigPath() + { + return $this->skaffold_config_path; + } + + /** + * Output only. File path of the resolved Skaffold configuration relative to + * the URI. + * + * Generated from protobuf field string skaffold_config_path = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setSkaffoldConfigPath($var) + { + GPBUtil::checkString($var, True); + $this->skaffold_config_path = $var; + + return $this; + } + + /** + * Output only. File path of the rendered manifest relative to the URI. + * + * Generated from protobuf field string manifest_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getManifestPath() + { + return $this->manifest_path; + } + + /** + * Output only. File path of the rendered manifest relative to the URI. + * + * Generated from protobuf field string manifest_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setManifestPath($var) + { + GPBUtil::checkString($var, True); + $this->manifest_path = $var; + + return $this; + } + + /** + * Output only. Map from the phase ID to the phase artifacts for the `Target`. + * + * Generated from protobuf field map phase_artifacts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getPhaseArtifacts() + { + return $this->phase_artifacts; + } + + /** + * Output only. Map from the phase ID to the phase artifacts for the `Target`. + * + * Generated from protobuf field map phase_artifacts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setPhaseArtifacts($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\TargetArtifact\PhaseArtifact::class); + $this->phase_artifacts = $arr; + + return $this; + } + + /** + * @return string + */ + public function getUri() + { + return $this->whichOneof("uri"); + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetArtifact/PhaseArtifact.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetArtifact/PhaseArtifact.php new file mode 100644 index 000000000000..27736c6008e0 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetArtifact/PhaseArtifact.php @@ -0,0 +1,146 @@ +google.cloud.deploy.v1.TargetArtifact.PhaseArtifact + */ +class PhaseArtifact extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. File path of the resolved Skaffold configuration relative to + * the URI. + * + * Generated from protobuf field string skaffold_config_path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $skaffold_config_path = ''; + /** + * Output only. File path of the rendered manifest relative to the URI. + * + * Generated from protobuf field string manifest_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $manifest_path = ''; + /** + * Output only. File path of the directory of rendered job manifests + * relative to the URI. This is only set if it is applicable. + * + * Generated from protobuf field string job_manifests_path = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $job_manifests_path = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $skaffold_config_path + * Output only. File path of the resolved Skaffold configuration relative to + * the URI. + * @type string $manifest_path + * Output only. File path of the rendered manifest relative to the URI. + * @type string $job_manifests_path + * Output only. File path of the directory of rendered job manifests + * relative to the URI. This is only set if it is applicable. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Output only. File path of the resolved Skaffold configuration relative to + * the URI. + * + * Generated from protobuf field string skaffold_config_path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getSkaffoldConfigPath() + { + return $this->skaffold_config_path; + } + + /** + * Output only. File path of the resolved Skaffold configuration relative to + * the URI. + * + * Generated from protobuf field string skaffold_config_path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setSkaffoldConfigPath($var) + { + GPBUtil::checkString($var, True); + $this->skaffold_config_path = $var; + + return $this; + } + + /** + * Output only. File path of the rendered manifest relative to the URI. + * + * Generated from protobuf field string manifest_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getManifestPath() + { + return $this->manifest_path; + } + + /** + * Output only. File path of the rendered manifest relative to the URI. + * + * Generated from protobuf field string manifest_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setManifestPath($var) + { + GPBUtil::checkString($var, True); + $this->manifest_path = $var; + + return $this; + } + + /** + * Output only. File path of the directory of rendered job manifests + * relative to the URI. This is only set if it is applicable. + * + * Generated from protobuf field string job_manifests_path = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getJobManifestsPath() + { + return $this->job_manifests_path; + } + + /** + * Output only. File path of the directory of rendered job manifests + * relative to the URI. This is only set if it is applicable. + * + * Generated from protobuf field string job_manifests_path = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setJobManifestsPath($var) + { + GPBUtil::checkString($var, True); + $this->job_manifests_path = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(PhaseArtifact::class, \Google\Cloud\Deploy\V1\TargetArtifact_PhaseArtifact::class); + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetAttribute.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetAttribute.php new file mode 100644 index 000000000000..21ab6a0e6ce3 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetAttribute.php @@ -0,0 +1,114 @@ +google.cloud.deploy.v1.TargetAttribute + */ +class TargetAttribute extends \Google\Protobuf\Internal\Message +{ + /** + * ID of the `Target`. The value of this field could be one of the + * following: + * * The last segment of a target name + * * "*", all targets in a location + * + * Generated from protobuf field string id = 1; + */ + protected $id = ''; + /** + * Target labels. + * + * Generated from protobuf field map labels = 2; + */ + private $labels; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * ID of the `Target`. The value of this field could be one of the + * following: + * * The last segment of a target name + * * "*", all targets in a location + * @type array|\Google\Protobuf\Internal\MapField $labels + * Target labels. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * ID of the `Target`. The value of this field could be one of the + * following: + * * The last segment of a target name + * * "*", all targets in a location + * + * Generated from protobuf field string id = 1; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * ID of the `Target`. The value of this field could be one of the + * following: + * * The last segment of a target name + * * "*", all targets in a location + * + * Generated from protobuf field string id = 1; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * Target labels. + * + * Generated from protobuf field map labels = 2; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Target labels. + * + * Generated from protobuf field map labels = 2; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetNotificationEvent.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetNotificationEvent.php new file mode 100644 index 000000000000..60f2044019f6 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetNotificationEvent.php @@ -0,0 +1,137 @@ +google.cloud.deploy.v1.TargetNotificationEvent + */ +class TargetNotificationEvent extends \Google\Protobuf\Internal\Message +{ + /** + * Debug message for when a notification fails to send. + * + * Generated from protobuf field string message = 1; + */ + protected $message = ''; + /** + * The name of the `Target`. + * + * Generated from protobuf field string target = 2; + */ + protected $target = ''; + /** + * Type of this notification, e.g. for a Pub/Sub failure. + * + * Generated from protobuf field .google.cloud.deploy.v1.Type type = 3; + */ + protected $type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $message + * Debug message for when a notification fails to send. + * @type string $target + * The name of the `Target`. + * @type int $type + * Type of this notification, e.g. for a Pub/Sub failure. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\TargetNotificationPayload::initOnce(); + parent::__construct($data); + } + + /** + * Debug message for when a notification fails to send. + * + * Generated from protobuf field string message = 1; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Debug message for when a notification fails to send. + * + * Generated from protobuf field string message = 1; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + + /** + * The name of the `Target`. + * + * Generated from protobuf field string target = 2; + * @return string + */ + public function getTarget() + { + return $this->target; + } + + /** + * The name of the `Target`. + * + * Generated from protobuf field string target = 2; + * @param string $var + * @return $this + */ + public function setTarget($var) + { + GPBUtil::checkString($var, True); + $this->target = $var; + + return $this; + } + + /** + * Type of this notification, e.g. for a Pub/Sub failure. + * + * Generated from protobuf field .google.cloud.deploy.v1.Type type = 3; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Type of this notification, e.g. for a Pub/Sub failure. + * + * Generated from protobuf field .google.cloud.deploy.v1.Type type = 3; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Type::class); + $this->type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetsPresentCondition.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetsPresentCondition.php new file mode 100644 index 000000000000..7dba90cabb9d --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetsPresentCondition.php @@ -0,0 +1,150 @@ +google.cloud.deploy.v1.TargetsPresentCondition + */ +class TargetsPresentCondition extends \Google\Protobuf\Internal\Message +{ + /** + * True if there aren't any missing Targets. + * + * Generated from protobuf field bool status = 1; + */ + protected $status = false; + /** + * The list of Target names that do not exist. For example, + * `projects/{project_id}/locations/{location_name}/targets/{target_name}`. + * + * Generated from protobuf field repeated string missing_targets = 2 [(.google.api.resource_reference) = { + */ + private $missing_targets; + /** + * Last time the condition was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4; + */ + protected $update_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $status + * True if there aren't any missing Targets. + * @type array|\Google\Protobuf\Internal\RepeatedField $missing_targets + * The list of Target names that do not exist. For example, + * `projects/{project_id}/locations/{location_name}/targets/{target_name}`. + * @type \Google\Protobuf\Timestamp $update_time + * Last time the condition was updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * True if there aren't any missing Targets. + * + * Generated from protobuf field bool status = 1; + * @return bool + */ + public function getStatus() + { + return $this->status; + } + + /** + * True if there aren't any missing Targets. + * + * Generated from protobuf field bool status = 1; + * @param bool $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkBool($var); + $this->status = $var; + + return $this; + } + + /** + * The list of Target names that do not exist. For example, + * `projects/{project_id}/locations/{location_name}/targets/{target_name}`. + * + * Generated from protobuf field repeated string missing_targets = 2 [(.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMissingTargets() + { + return $this->missing_targets; + } + + /** + * The list of Target names that do not exist. For example, + * `projects/{project_id}/locations/{location_name}/targets/{target_name}`. + * + * Generated from protobuf field repeated string missing_targets = 2 [(.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMissingTargets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->missing_targets = $arr; + + return $this; + } + + /** + * Last time the condition was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Last time the condition was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetsTypeCondition.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetsTypeCondition.php new file mode 100644 index 000000000000..34705dbf6df7 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetsTypeCondition.php @@ -0,0 +1,110 @@ +google.cloud.deploy.v1.TargetsTypeCondition + */ +class TargetsTypeCondition extends \Google\Protobuf\Internal\Message +{ + /** + * True if the targets are all a comparable type. For example this is true if + * all targets are GKE clusters. This is false if some targets are Cloud Run + * targets and others are GKE clusters. + * + * Generated from protobuf field bool status = 1; + */ + protected $status = false; + /** + * Human readable error message. + * + * Generated from protobuf field string error_details = 2; + */ + protected $error_details = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $status + * True if the targets are all a comparable type. For example this is true if + * all targets are GKE clusters. This is false if some targets are Cloud Run + * targets and others are GKE clusters. + * @type string $error_details + * Human readable error message. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * True if the targets are all a comparable type. For example this is true if + * all targets are GKE clusters. This is false if some targets are Cloud Run + * targets and others are GKE clusters. + * + * Generated from protobuf field bool status = 1; + * @return bool + */ + public function getStatus() + { + return $this->status; + } + + /** + * True if the targets are all a comparable type. For example this is true if + * all targets are GKE clusters. This is false if some targets are Cloud Run + * targets and others are GKE clusters. + * + * Generated from protobuf field bool status = 1; + * @param bool $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkBool($var); + $this->status = $var; + + return $this; + } + + /** + * Human readable error message. + * + * Generated from protobuf field string error_details = 2; + * @return string + */ + public function getErrorDetails() + { + return $this->error_details; + } + + /** + * Human readable error message. + * + * Generated from protobuf field string error_details = 2; + * @param string $var + * @return $this + */ + public function setErrorDetails($var) + { + GPBUtil::checkString($var, True); + $this->error_details = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TerminateJobRunRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TerminateJobRunRequest.php new file mode 100644 index 000000000000..ce381fdbb945 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TerminateJobRunRequest.php @@ -0,0 +1,124 @@ +google.cloud.deploy.v1.TerminateJobRunRequest + */ +class TerminateJobRunRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Name of the `JobRun`. Format must be + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}/jobRuns/{jobRun}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. Deploy policies to override. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. + * + * Generated from protobuf field repeated string override_deploy_policy = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $override_deploy_policy; + + /** + * @param string $name Required. Name of the `JobRun`. Format must be + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}/jobRuns/{jobRun}`. Please see + * {@see CloudDeployClient::jobRunName()} for help formatting this field. + * + * @return \Google\Cloud\Deploy\V1\TerminateJobRunRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Name of the `JobRun`. Format must be + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}/jobRuns/{jobRun}`. + * @type array|\Google\Protobuf\Internal\RepeatedField $override_deploy_policy + * Optional. Deploy policies to override. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. Name of the `JobRun`. Format must be + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}/jobRuns/{jobRun}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Name of the `JobRun`. Format must be + * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}/jobRuns/{jobRun}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. Deploy policies to override. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. + * + * Generated from protobuf field repeated string override_deploy_policy = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOverrideDeployPolicy() + { + return $this->override_deploy_policy; + } + + /** + * Optional. Deploy policies to override. Format is + * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. + * + * Generated from protobuf field repeated string override_deploy_policy = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOverrideDeployPolicy($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->override_deploy_policy = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TerminateJobRunResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TerminateJobRunResponse.php new file mode 100644 index 000000000000..7053edb3af40 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TerminateJobRunResponse.php @@ -0,0 +1,33 @@ +google.cloud.deploy.v1.TerminateJobRunResponse + */ +class TerminateJobRunResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TimeWindows.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TimeWindows.php new file mode 100644 index 000000000000..ba6e360cdb88 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TimeWindows.php @@ -0,0 +1,141 @@ +google.cloud.deploy.v1.TimeWindows + */ +class TimeWindows extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The time zone in IANA format [IANA Time Zone + * Database](https://www.iana.org/time-zones) (e.g. America/New_York). + * + * Generated from protobuf field string time_zone = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $time_zone = ''; + /** + * Optional. One-time windows within which actions are restricted. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $one_time_windows; + /** + * Optional. Recurring weekly windows within which actions are restricted. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $weekly_windows; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $time_zone + * Required. The time zone in IANA format [IANA Time Zone + * Database](https://www.iana.org/time-zones) (e.g. America/New_York). + * @type array<\Google\Cloud\Deploy\V1\OneTimeWindow>|\Google\Protobuf\Internal\RepeatedField $one_time_windows + * Optional. One-time windows within which actions are restricted. + * @type array<\Google\Cloud\Deploy\V1\WeeklyWindow>|\Google\Protobuf\Internal\RepeatedField $weekly_windows + * Optional. Recurring weekly windows within which actions are restricted. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. The time zone in IANA format [IANA Time Zone + * Database](https://www.iana.org/time-zones) (e.g. America/New_York). + * + * Generated from protobuf field string time_zone = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getTimeZone() + { + return $this->time_zone; + } + + /** + * Required. The time zone in IANA format [IANA Time Zone + * Database](https://www.iana.org/time-zones) (e.g. America/New_York). + * + * Generated from protobuf field string time_zone = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setTimeZone($var) + { + GPBUtil::checkString($var, True); + $this->time_zone = $var; + + return $this; + } + + /** + * Optional. One-time windows within which actions are restricted. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOneTimeWindows() + { + return $this->one_time_windows; + } + + /** + * Optional. One-time windows within which actions are restricted. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Cloud\Deploy\V1\OneTimeWindow>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOneTimeWindows($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\OneTimeWindow::class); + $this->one_time_windows = $arr; + + return $this; + } + + /** + * Optional. Recurring weekly windows within which actions are restricted. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getWeeklyWindows() + { + return $this->weekly_windows; + } + + /** + * Optional. Recurring weekly windows within which actions are restricted. + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Cloud\Deploy\V1\WeeklyWindow>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setWeeklyWindows($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\WeeklyWindow::class); + $this->weekly_windows = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TimedPromoteReleaseCondition.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TimedPromoteReleaseCondition.php new file mode 100644 index 000000000000..02fd93e60c81 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TimedPromoteReleaseCondition.php @@ -0,0 +1,112 @@ +google.cloud.deploy.v1.TimedPromoteReleaseCondition + */ +class TimedPromoteReleaseCondition extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. When the next scheduled promotion(s) will occur. + * + * Generated from protobuf field .google.protobuf.Timestamp next_promotion_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $next_promotion_time = null; + /** + * Output only. A list of targets involved in the upcoming timed promotion(s). + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.TimedPromoteReleaseCondition.Targets targets_list = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $targets_list; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $next_promotion_time + * Output only. When the next scheduled promotion(s) will occur. + * @type array<\Google\Cloud\Deploy\V1\TimedPromoteReleaseCondition\Targets>|\Google\Protobuf\Internal\RepeatedField $targets_list + * Output only. A list of targets involved in the upcoming timed promotion(s). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Output only. When the next scheduled promotion(s) will occur. + * + * Generated from protobuf field .google.protobuf.Timestamp next_promotion_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getNextPromotionTime() + { + return $this->next_promotion_time; + } + + public function hasNextPromotionTime() + { + return isset($this->next_promotion_time); + } + + public function clearNextPromotionTime() + { + unset($this->next_promotion_time); + } + + /** + * Output only. When the next scheduled promotion(s) will occur. + * + * Generated from protobuf field .google.protobuf.Timestamp next_promotion_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setNextPromotionTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->next_promotion_time = $var; + + return $this; + } + + /** + * Output only. A list of targets involved in the upcoming timed promotion(s). + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.TimedPromoteReleaseCondition.Targets targets_list = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTargetsList() + { + return $this->targets_list; + } + + /** + * Output only. A list of targets involved in the upcoming timed promotion(s). + * + * Generated from protobuf field repeated .google.cloud.deploy.v1.TimedPromoteReleaseCondition.Targets targets_list = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\Deploy\V1\TimedPromoteReleaseCondition\Targets>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTargetsList($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\TimedPromoteReleaseCondition\Targets::class); + $this->targets_list = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TimedPromoteReleaseCondition/Targets.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TimedPromoteReleaseCondition/Targets.php new file mode 100644 index 000000000000..27f2301a2fc7 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TimedPromoteReleaseCondition/Targets.php @@ -0,0 +1,104 @@ +google.cloud.deploy.v1.TimedPromoteReleaseCondition.Targets + */ +class Targets extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The source target ID. + * + * Generated from protobuf field string source_target_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $source_target_id = ''; + /** + * Optional. The destination target ID. + * + * Generated from protobuf field string destination_target_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $destination_target_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $source_target_id + * Optional. The source target ID. + * @type string $destination_target_id + * Optional. The destination target ID. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The source target ID. + * + * Generated from protobuf field string source_target_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSourceTargetId() + { + return $this->source_target_id; + } + + /** + * Optional. The source target ID. + * + * Generated from protobuf field string source_target_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSourceTargetId($var) + { + GPBUtil::checkString($var, True); + $this->source_target_id = $var; + + return $this; + } + + /** + * Optional. The destination target ID. + * + * Generated from protobuf field string destination_target_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDestinationTargetId() + { + return $this->destination_target_id; + } + + /** + * Optional. The destination target ID. + * + * Generated from protobuf field string destination_target_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDestinationTargetId($var) + { + GPBUtil::checkString($var, True); + $this->destination_target_id = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Targets::class, \Google\Cloud\Deploy\V1\TimedPromoteReleaseCondition_Targets::class); + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TimedPromoteReleaseOperation.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TimedPromoteReleaseOperation.php new file mode 100644 index 000000000000..da71968ef094 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TimedPromoteReleaseOperation.php @@ -0,0 +1,143 @@ +google.cloud.deploy.v1.TimedPromoteReleaseOperation + */ +class TimedPromoteReleaseOperation extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The ID of the target that represents the promotion stage to + * which the release will be promoted. The value of this field is the last + * segment of a target name. + * + * Generated from protobuf field string target_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $target_id = ''; + /** + * Output only. The name of the release to be promoted. + * + * Generated from protobuf field string release = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $release = ''; + /** + * Output only. The starting phase of the rollout created by this operation. + * + * Generated from protobuf field string phase = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $phase = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $target_id + * Output only. The ID of the target that represents the promotion stage to + * which the release will be promoted. The value of this field is the last + * segment of a target name. + * @type string $release + * Output only. The name of the release to be promoted. + * @type string $phase + * Output only. The starting phase of the rollout created by this operation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The ID of the target that represents the promotion stage to + * which the release will be promoted. The value of this field is the last + * segment of a target name. + * + * Generated from protobuf field string target_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTargetId() + { + return $this->target_id; + } + + /** + * Output only. The ID of the target that represents the promotion stage to + * which the release will be promoted. The value of this field is the last + * segment of a target name. + * + * Generated from protobuf field string target_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setTargetId($var) + { + GPBUtil::checkString($var, True); + $this->target_id = $var; + + return $this; + } + + /** + * Output only. The name of the release to be promoted. + * + * Generated from protobuf field string release = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getRelease() + { + return $this->release; + } + + /** + * Output only. The name of the release to be promoted. + * + * Generated from protobuf field string release = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setRelease($var) + { + GPBUtil::checkString($var, True); + $this->release = $var; + + return $this; + } + + /** + * Output only. The starting phase of the rollout created by this operation. + * + * Generated from protobuf field string phase = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getPhase() + { + return $this->phase; + } + + /** + * Output only. The starting phase of the rollout created by this operation. + * + * Generated from protobuf field string phase = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setPhase($var) + { + GPBUtil::checkString($var, True); + $this->phase = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TimedPromoteReleaseRule.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TimedPromoteReleaseRule.php new file mode 100644 index 000000000000..1b2f2cc66a25 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TimedPromoteReleaseRule.php @@ -0,0 +1,284 @@ +google.cloud.deploy.v1.TimedPromoteReleaseRule + */ +class TimedPromoteReleaseRule extends \Google\Protobuf\Internal\Message +{ + /** + * Required. ID of the rule. This ID must be unique in the `Automation` + * resource to which this rule belongs. The format is + * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $id = ''; + /** + * Optional. The ID of the stage in the pipeline to which this `Release` is + * deploying. If unspecified, default it to the next stage in the promotion + * flow. The value of this field could be one of the following: + * * The last segment of a target name + * * "@next", the next target in the promotion sequence + * + * Generated from protobuf field string destination_target_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $destination_target_id = ''; + /** + * Required. Schedule in crontab format. e.g. "0 9 * * 1" for every Monday at + * 9am. + * + * Generated from protobuf field string schedule = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $schedule = ''; + /** + * Required. The time zone in IANA format [IANA Time Zone + * Database](https://www.iana.org/time-zones) (e.g. America/New_York). + * + * Generated from protobuf field string time_zone = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $time_zone = ''; + /** + * Output only. Information around the state of the Automation rule. + * + * Generated from protobuf field .google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $condition = null; + /** + * Optional. The starting phase of the rollout created by this rule. Default + * to the first phase. + * + * Generated from protobuf field string destination_phase = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $destination_phase = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * Required. ID of the rule. This ID must be unique in the `Automation` + * resource to which this rule belongs. The format is + * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. + * @type string $destination_target_id + * Optional. The ID of the stage in the pipeline to which this `Release` is + * deploying. If unspecified, default it to the next stage in the promotion + * flow. The value of this field could be one of the following: + * * The last segment of a target name + * * "@next", the next target in the promotion sequence + * @type string $schedule + * Required. Schedule in crontab format. e.g. "0 9 * * 1" for every Monday at + * 9am. + * @type string $time_zone + * Required. The time zone in IANA format [IANA Time Zone + * Database](https://www.iana.org/time-zones) (e.g. America/New_York). + * @type \Google\Cloud\Deploy\V1\AutomationRuleCondition $condition + * Output only. Information around the state of the Automation rule. + * @type string $destination_phase + * Optional. The starting phase of the rollout created by this rule. Default + * to the first phase. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. ID of the rule. This ID must be unique in the `Automation` + * resource to which this rule belongs. The format is + * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * Required. ID of the rule. This ID must be unique in the `Automation` + * resource to which this rule belongs. The format is + * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * Optional. The ID of the stage in the pipeline to which this `Release` is + * deploying. If unspecified, default it to the next stage in the promotion + * flow. The value of this field could be one of the following: + * * The last segment of a target name + * * "@next", the next target in the promotion sequence + * + * Generated from protobuf field string destination_target_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDestinationTargetId() + { + return $this->destination_target_id; + } + + /** + * Optional. The ID of the stage in the pipeline to which this `Release` is + * deploying. If unspecified, default it to the next stage in the promotion + * flow. The value of this field could be one of the following: + * * The last segment of a target name + * * "@next", the next target in the promotion sequence + * + * Generated from protobuf field string destination_target_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDestinationTargetId($var) + { + GPBUtil::checkString($var, True); + $this->destination_target_id = $var; + + return $this; + } + + /** + * Required. Schedule in crontab format. e.g. "0 9 * * 1" for every Monday at + * 9am. + * + * Generated from protobuf field string schedule = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getSchedule() + { + return $this->schedule; + } + + /** + * Required. Schedule in crontab format. e.g. "0 9 * * 1" for every Monday at + * 9am. + * + * Generated from protobuf field string schedule = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setSchedule($var) + { + GPBUtil::checkString($var, True); + $this->schedule = $var; + + return $this; + } + + /** + * Required. The time zone in IANA format [IANA Time Zone + * Database](https://www.iana.org/time-zones) (e.g. America/New_York). + * + * Generated from protobuf field string time_zone = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getTimeZone() + { + return $this->time_zone; + } + + /** + * Required. The time zone in IANA format [IANA Time Zone + * Database](https://www.iana.org/time-zones) (e.g. America/New_York). + * + * Generated from protobuf field string time_zone = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setTimeZone($var) + { + GPBUtil::checkString($var, True); + $this->time_zone = $var; + + return $this; + } + + /** + * Output only. Information around the state of the Automation rule. + * + * Generated from protobuf field .google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\AutomationRuleCondition|null + */ + public function getCondition() + { + return $this->condition; + } + + public function hasCondition() + { + return isset($this->condition); + } + + public function clearCondition() + { + unset($this->condition); + } + + /** + * Output only. Information around the state of the Automation rule. + * + * Generated from protobuf field .google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\AutomationRuleCondition $var + * @return $this + */ + public function setCondition($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\AutomationRuleCondition::class); + $this->condition = $var; + + return $this; + } + + /** + * Optional. The starting phase of the rollout created by this rule. Default + * to the first phase. + * + * Generated from protobuf field string destination_phase = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDestinationPhase() + { + return $this->destination_phase; + } + + /** + * Optional. The starting phase of the rollout created by this rule. Default + * to the first phase. + * + * Generated from protobuf field string destination_phase = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDestinationPhase($var) + { + GPBUtil::checkString($var, True); + $this->destination_phase = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Type.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Type.php new file mode 100644 index 000000000000..613d3aa26e49 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Type.php @@ -0,0 +1,103 @@ +google.cloud.deploy.v1.Type + */ +class Type +{ + /** + * Type is unspecified. + * + * Generated from protobuf enum TYPE_UNSPECIFIED = 0; + */ + const TYPE_UNSPECIFIED = 0; + /** + * A Pub/Sub notification failed to be sent. + * + * Generated from protobuf enum TYPE_PUBSUB_NOTIFICATION_FAILURE = 1; + */ + const TYPE_PUBSUB_NOTIFICATION_FAILURE = 1; + /** + * Resource state changed. + * + * Generated from protobuf enum TYPE_RESOURCE_STATE_CHANGE = 3; + */ + const TYPE_RESOURCE_STATE_CHANGE = 3; + /** + * A process aborted. + * + * Generated from protobuf enum TYPE_PROCESS_ABORTED = 4; + */ + const TYPE_PROCESS_ABORTED = 4; + /** + * Restriction check failed. + * + * Generated from protobuf enum TYPE_RESTRICTION_VIOLATED = 5; + */ + const TYPE_RESTRICTION_VIOLATED = 5; + /** + * Resource deleted. + * + * Generated from protobuf enum TYPE_RESOURCE_DELETED = 6; + */ + const TYPE_RESOURCE_DELETED = 6; + /** + * Rollout updated. + * + * Generated from protobuf enum TYPE_ROLLOUT_UPDATE = 7; + */ + const TYPE_ROLLOUT_UPDATE = 7; + /** + * Deploy Policy evaluation. + * + * Generated from protobuf enum TYPE_DEPLOY_POLICY_EVALUATION = 8; + */ + const TYPE_DEPLOY_POLICY_EVALUATION = 8; + /** + * Deprecated: This field is never used. Use release_render log type instead. + * + * Generated from protobuf enum TYPE_RENDER_STATUES_CHANGE = 2 [deprecated = true]; + */ + const TYPE_RENDER_STATUES_CHANGE = 2; + + private static $valueToName = [ + self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', + self::TYPE_PUBSUB_NOTIFICATION_FAILURE => 'TYPE_PUBSUB_NOTIFICATION_FAILURE', + self::TYPE_RESOURCE_STATE_CHANGE => 'TYPE_RESOURCE_STATE_CHANGE', + self::TYPE_PROCESS_ABORTED => 'TYPE_PROCESS_ABORTED', + self::TYPE_RESTRICTION_VIOLATED => 'TYPE_RESTRICTION_VIOLATED', + self::TYPE_RESOURCE_DELETED => 'TYPE_RESOURCE_DELETED', + self::TYPE_ROLLOUT_UPDATE => 'TYPE_ROLLOUT_UPDATE', + self::TYPE_DEPLOY_POLICY_EVALUATION => 'TYPE_DEPLOY_POLICY_EVALUATION', + self::TYPE_RENDER_STATUES_CHANGE => 'TYPE_RENDER_STATUES_CHANGE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateAutomationRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateAutomationRequest.php new file mode 100644 index 000000000000..d9b4b0efdb4a --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateAutomationRequest.php @@ -0,0 +1,306 @@ +google.cloud.deploy.v1.UpdateAutomationRequest + */ +class UpdateAutomationRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Field mask is used to specify the fields to be overwritten by the + * update in the `Automation` resource. The fields specified in the + * update_mask are relative to the resource, not the full request. A field + * will be overwritten if it's in the mask. If the user doesn't provide a mask + * then all fields are overwritten. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + /** + * Required. The `Automation` to update. + * + * Generated from protobuf field .google.cloud.deploy.v1.Automation automation = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $automation = null; + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $request_id = ''; + /** + * Optional. If set to true, updating a `Automation` that does not exist will + * result in the creation of a new `Automation`. + * + * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $allow_missing = false; + /** + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * + * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param \Google\Cloud\Deploy\V1\Automation $automation Required. The `Automation` to update. + * @param \Google\Protobuf\FieldMask $updateMask Required. Field mask is used to specify the fields to be overwritten by the + * update in the `Automation` resource. The fields specified in the + * update_mask are relative to the resource, not the full request. A field + * will be overwritten if it's in the mask. If the user doesn't provide a mask + * then all fields are overwritten. + * + * @return \Google\Cloud\Deploy\V1\UpdateAutomationRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Deploy\V1\Automation $automation, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setAutomation($automation) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\FieldMask $update_mask + * Required. Field mask is used to specify the fields to be overwritten by the + * update in the `Automation` resource. The fields specified in the + * update_mask are relative to the resource, not the full request. A field + * will be overwritten if it's in the mask. If the user doesn't provide a mask + * then all fields are overwritten. + * @type \Google\Cloud\Deploy\V1\Automation $automation + * Required. The `Automation` to update. + * @type string $request_id + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * @type bool $allow_missing + * Optional. If set to true, updating a `Automation` that does not exist will + * result in the creation of a new `Automation`. + * @type bool $validate_only + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. Field mask is used to specify the fields to be overwritten by the + * update in the `Automation` resource. The fields specified in the + * update_mask are relative to the resource, not the full request. A field + * will be overwritten if it's in the mask. If the user doesn't provide a mask + * then all fields are overwritten. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. Field mask is used to specify the fields to be overwritten by the + * update in the `Automation` resource. The fields specified in the + * update_mask are relative to the resource, not the full request. A field + * will be overwritten if it's in the mask. If the user doesn't provide a mask + * then all fields are overwritten. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + + /** + * Required. The `Automation` to update. + * + * Generated from protobuf field .google.cloud.deploy.v1.Automation automation = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Deploy\V1\Automation|null + */ + public function getAutomation() + { + return $this->automation; + } + + public function hasAutomation() + { + return isset($this->automation); + } + + public function clearAutomation() + { + unset($this->automation); + } + + /** + * Required. The `Automation` to update. + * + * Generated from protobuf field .google.cloud.deploy.v1.Automation automation = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Deploy\V1\Automation $var + * @return $this + */ + public function setAutomation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Automation::class); + $this->automation = $var; + + return $this; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + + /** + * Optional. If set to true, updating a `Automation` that does not exist will + * result in the creation of a new `Automation`. + * + * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getAllowMissing() + { + return $this->allow_missing; + } + + /** + * Optional. If set to true, updating a `Automation` that does not exist will + * result in the creation of a new `Automation`. + * + * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setAllowMissing($var) + { + GPBUtil::checkBool($var); + $this->allow_missing = $var; + + return $this; + } + + /** + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * + * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * + * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateCustomTargetTypeRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateCustomTargetTypeRequest.php new file mode 100644 index 000000000000..d4a90a7076a5 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateCustomTargetTypeRequest.php @@ -0,0 +1,306 @@ +google.cloud.deploy.v1.UpdateCustomTargetTypeRequest + */ +class UpdateCustomTargetTypeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Field mask is used to specify the fields to be overwritten by the + * update in the `CustomTargetType` resource. The fields specified in the + * update_mask are relative to the resource, not the full request. A field + * will be overwritten if it's in the mask. If the user doesn't provide a mask + * then all fields are overwritten. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + /** + * Required. The `CustomTargetType` to update. + * + * Generated from protobuf field .google.cloud.deploy.v1.CustomTargetType custom_target_type = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $custom_target_type = null; + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $request_id = ''; + /** + * Optional. If set to true, updating a `CustomTargetType` that does not exist + * will result in the creation of a new `CustomTargetType`. + * + * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $allow_missing = false; + /** + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * + * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param \Google\Cloud\Deploy\V1\CustomTargetType $customTargetType Required. The `CustomTargetType` to update. + * @param \Google\Protobuf\FieldMask $updateMask Required. Field mask is used to specify the fields to be overwritten by the + * update in the `CustomTargetType` resource. The fields specified in the + * update_mask are relative to the resource, not the full request. A field + * will be overwritten if it's in the mask. If the user doesn't provide a mask + * then all fields are overwritten. + * + * @return \Google\Cloud\Deploy\V1\UpdateCustomTargetTypeRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Deploy\V1\CustomTargetType $customTargetType, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setCustomTargetType($customTargetType) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\FieldMask $update_mask + * Required. Field mask is used to specify the fields to be overwritten by the + * update in the `CustomTargetType` resource. The fields specified in the + * update_mask are relative to the resource, not the full request. A field + * will be overwritten if it's in the mask. If the user doesn't provide a mask + * then all fields are overwritten. + * @type \Google\Cloud\Deploy\V1\CustomTargetType $custom_target_type + * Required. The `CustomTargetType` to update. + * @type string $request_id + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * @type bool $allow_missing + * Optional. If set to true, updating a `CustomTargetType` that does not exist + * will result in the creation of a new `CustomTargetType`. + * @type bool $validate_only + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. Field mask is used to specify the fields to be overwritten by the + * update in the `CustomTargetType` resource. The fields specified in the + * update_mask are relative to the resource, not the full request. A field + * will be overwritten if it's in the mask. If the user doesn't provide a mask + * then all fields are overwritten. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. Field mask is used to specify the fields to be overwritten by the + * update in the `CustomTargetType` resource. The fields specified in the + * update_mask are relative to the resource, not the full request. A field + * will be overwritten if it's in the mask. If the user doesn't provide a mask + * then all fields are overwritten. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + + /** + * Required. The `CustomTargetType` to update. + * + * Generated from protobuf field .google.cloud.deploy.v1.CustomTargetType custom_target_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Deploy\V1\CustomTargetType|null + */ + public function getCustomTargetType() + { + return $this->custom_target_type; + } + + public function hasCustomTargetType() + { + return isset($this->custom_target_type); + } + + public function clearCustomTargetType() + { + unset($this->custom_target_type); + } + + /** + * Required. The `CustomTargetType` to update. + * + * Generated from protobuf field .google.cloud.deploy.v1.CustomTargetType custom_target_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Deploy\V1\CustomTargetType $var + * @return $this + */ + public function setCustomTargetType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CustomTargetType::class); + $this->custom_target_type = $var; + + return $this; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + + /** + * Optional. If set to true, updating a `CustomTargetType` that does not exist + * will result in the creation of a new `CustomTargetType`. + * + * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getAllowMissing() + { + return $this->allow_missing; + } + + /** + * Optional. If set to true, updating a `CustomTargetType` that does not exist + * will result in the creation of a new `CustomTargetType`. + * + * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setAllowMissing($var) + { + GPBUtil::checkBool($var); + $this->allow_missing = $var; + + return $this; + } + + /** + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * + * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * + * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateDeliveryPipelineRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateDeliveryPipelineRequest.php new file mode 100644 index 000000000000..9cf63f2d69a4 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateDeliveryPipelineRequest.php @@ -0,0 +1,306 @@ +google.cloud.deploy.v1.UpdateDeliveryPipelineRequest + */ +class UpdateDeliveryPipelineRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Field mask is used to specify the fields to be overwritten by the + * update in the `DeliveryPipeline` resource. The fields specified in the + * update_mask are relative to the resource, not the full request. A field + * will be overwritten if it's in the mask. If the user doesn't provide a mask + * then all fields are overwritten. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + /** + * Required. The `DeliveryPipeline` to update. + * + * Generated from protobuf field .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $delivery_pipeline = null; + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $request_id = ''; + /** + * Optional. If set to true, updating a `DeliveryPipeline` that does not exist + * will result in the creation of a new `DeliveryPipeline`. + * + * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $allow_missing = false; + /** + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * + * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param \Google\Cloud\Deploy\V1\DeliveryPipeline $deliveryPipeline Required. The `DeliveryPipeline` to update. + * @param \Google\Protobuf\FieldMask $updateMask Required. Field mask is used to specify the fields to be overwritten by the + * update in the `DeliveryPipeline` resource. The fields specified in the + * update_mask are relative to the resource, not the full request. A field + * will be overwritten if it's in the mask. If the user doesn't provide a mask + * then all fields are overwritten. + * + * @return \Google\Cloud\Deploy\V1\UpdateDeliveryPipelineRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Deploy\V1\DeliveryPipeline $deliveryPipeline, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setDeliveryPipeline($deliveryPipeline) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\FieldMask $update_mask + * Required. Field mask is used to specify the fields to be overwritten by the + * update in the `DeliveryPipeline` resource. The fields specified in the + * update_mask are relative to the resource, not the full request. A field + * will be overwritten if it's in the mask. If the user doesn't provide a mask + * then all fields are overwritten. + * @type \Google\Cloud\Deploy\V1\DeliveryPipeline $delivery_pipeline + * Required. The `DeliveryPipeline` to update. + * @type string $request_id + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * @type bool $allow_missing + * Optional. If set to true, updating a `DeliveryPipeline` that does not exist + * will result in the creation of a new `DeliveryPipeline`. + * @type bool $validate_only + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. Field mask is used to specify the fields to be overwritten by the + * update in the `DeliveryPipeline` resource. The fields specified in the + * update_mask are relative to the resource, not the full request. A field + * will be overwritten if it's in the mask. If the user doesn't provide a mask + * then all fields are overwritten. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. Field mask is used to specify the fields to be overwritten by the + * update in the `DeliveryPipeline` resource. The fields specified in the + * update_mask are relative to the resource, not the full request. A field + * will be overwritten if it's in the mask. If the user doesn't provide a mask + * then all fields are overwritten. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + + /** + * Required. The `DeliveryPipeline` to update. + * + * Generated from protobuf field .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Deploy\V1\DeliveryPipeline|null + */ + public function getDeliveryPipeline() + { + return $this->delivery_pipeline; + } + + public function hasDeliveryPipeline() + { + return isset($this->delivery_pipeline); + } + + public function clearDeliveryPipeline() + { + unset($this->delivery_pipeline); + } + + /** + * Required. The `DeliveryPipeline` to update. + * + * Generated from protobuf field .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Deploy\V1\DeliveryPipeline $var + * @return $this + */ + public function setDeliveryPipeline($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\DeliveryPipeline::class); + $this->delivery_pipeline = $var; + + return $this; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + + /** + * Optional. If set to true, updating a `DeliveryPipeline` that does not exist + * will result in the creation of a new `DeliveryPipeline`. + * + * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getAllowMissing() + { + return $this->allow_missing; + } + + /** + * Optional. If set to true, updating a `DeliveryPipeline` that does not exist + * will result in the creation of a new `DeliveryPipeline`. + * + * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setAllowMissing($var) + { + GPBUtil::checkBool($var); + $this->allow_missing = $var; + + return $this; + } + + /** + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * + * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * + * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateDeployPolicyRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateDeployPolicyRequest.php new file mode 100644 index 000000000000..7dc920059100 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateDeployPolicyRequest.php @@ -0,0 +1,306 @@ +google.cloud.deploy.v1.UpdateDeployPolicyRequest + */ +class UpdateDeployPolicyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Field mask is used to specify the fields to be overwritten by the + * update in the `DeployPolicy` resource. The fields specified in the + * update_mask are relative to the resource, not the full request. A field + * will be overwritten if it's in the mask. If the user doesn't provide a mask + * then all fields are overwritten. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + /** + * Required. The `DeployPolicy` to update. + * + * Generated from protobuf field .google.cloud.deploy.v1.DeployPolicy deploy_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $deploy_policy = null; + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $request_id = ''; + /** + * Optional. If set to true, updating a `DeployPolicy` that does not exist + * will result in the creation of a new `DeployPolicy`. + * + * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $allow_missing = false; + /** + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * + * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param \Google\Cloud\Deploy\V1\DeployPolicy $deployPolicy Required. The `DeployPolicy` to update. + * @param \Google\Protobuf\FieldMask $updateMask Required. Field mask is used to specify the fields to be overwritten by the + * update in the `DeployPolicy` resource. The fields specified in the + * update_mask are relative to the resource, not the full request. A field + * will be overwritten if it's in the mask. If the user doesn't provide a mask + * then all fields are overwritten. + * + * @return \Google\Cloud\Deploy\V1\UpdateDeployPolicyRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Deploy\V1\DeployPolicy $deployPolicy, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setDeployPolicy($deployPolicy) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\FieldMask $update_mask + * Required. Field mask is used to specify the fields to be overwritten by the + * update in the `DeployPolicy` resource. The fields specified in the + * update_mask are relative to the resource, not the full request. A field + * will be overwritten if it's in the mask. If the user doesn't provide a mask + * then all fields are overwritten. + * @type \Google\Cloud\Deploy\V1\DeployPolicy $deploy_policy + * Required. The `DeployPolicy` to update. + * @type string $request_id + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * @type bool $allow_missing + * Optional. If set to true, updating a `DeployPolicy` that does not exist + * will result in the creation of a new `DeployPolicy`. + * @type bool $validate_only + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. Field mask is used to specify the fields to be overwritten by the + * update in the `DeployPolicy` resource. The fields specified in the + * update_mask are relative to the resource, not the full request. A field + * will be overwritten if it's in the mask. If the user doesn't provide a mask + * then all fields are overwritten. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. Field mask is used to specify the fields to be overwritten by the + * update in the `DeployPolicy` resource. The fields specified in the + * update_mask are relative to the resource, not the full request. A field + * will be overwritten if it's in the mask. If the user doesn't provide a mask + * then all fields are overwritten. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + + /** + * Required. The `DeployPolicy` to update. + * + * Generated from protobuf field .google.cloud.deploy.v1.DeployPolicy deploy_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Deploy\V1\DeployPolicy|null + */ + public function getDeployPolicy() + { + return $this->deploy_policy; + } + + public function hasDeployPolicy() + { + return isset($this->deploy_policy); + } + + public function clearDeployPolicy() + { + unset($this->deploy_policy); + } + + /** + * Required. The `DeployPolicy` to update. + * + * Generated from protobuf field .google.cloud.deploy.v1.DeployPolicy deploy_policy = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Deploy\V1\DeployPolicy $var + * @return $this + */ + public function setDeployPolicy($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\DeployPolicy::class); + $this->deploy_policy = $var; + + return $this; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + + /** + * Optional. If set to true, updating a `DeployPolicy` that does not exist + * will result in the creation of a new `DeployPolicy`. + * + * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getAllowMissing() + { + return $this->allow_missing; + } + + /** + * Optional. If set to true, updating a `DeployPolicy` that does not exist + * will result in the creation of a new `DeployPolicy`. + * + * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setAllowMissing($var) + { + GPBUtil::checkBool($var); + $this->allow_missing = $var; + + return $this; + } + + /** + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * + * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * + * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateTargetRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateTargetRequest.php new file mode 100644 index 000000000000..e1f546265c21 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateTargetRequest.php @@ -0,0 +1,306 @@ +google.cloud.deploy.v1.UpdateTargetRequest + */ +class UpdateTargetRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Field mask is used to specify the fields to be overwritten by the + * update in the `Target` resource. The fields specified in the update_mask + * are relative to the resource, not the full request. A field will be + * overwritten if it's in the mask. If the user doesn't provide a mask then + * all fields are overwritten. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + /** + * Required. The `Target` to update. + * + * Generated from protobuf field .google.cloud.deploy.v1.Target target = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $target = null; + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $request_id = ''; + /** + * Optional. If set to true, updating a `Target` that does not exist will + * result in the creation of a new `Target`. + * + * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $allow_missing = false; + /** + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * + * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param \Google\Cloud\Deploy\V1\Target $target Required. The `Target` to update. + * @param \Google\Protobuf\FieldMask $updateMask Required. Field mask is used to specify the fields to be overwritten by the + * update in the `Target` resource. The fields specified in the update_mask + * are relative to the resource, not the full request. A field will be + * overwritten if it's in the mask. If the user doesn't provide a mask then + * all fields are overwritten. + * + * @return \Google\Cloud\Deploy\V1\UpdateTargetRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Deploy\V1\Target $target, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setTarget($target) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\FieldMask $update_mask + * Required. Field mask is used to specify the fields to be overwritten by the + * update in the `Target` resource. The fields specified in the update_mask + * are relative to the resource, not the full request. A field will be + * overwritten if it's in the mask. If the user doesn't provide a mask then + * all fields are overwritten. + * @type \Google\Cloud\Deploy\V1\Target $target + * Required. The `Target` to update. + * @type string $request_id + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * @type bool $allow_missing + * Optional. If set to true, updating a `Target` that does not exist will + * result in the creation of a new `Target`. + * @type bool $validate_only + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Required. Field mask is used to specify the fields to be overwritten by the + * update in the `Target` resource. The fields specified in the update_mask + * are relative to the resource, not the full request. A field will be + * overwritten if it's in the mask. If the user doesn't provide a mask then + * all fields are overwritten. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Required. Field mask is used to specify the fields to be overwritten by the + * update in the `Target` resource. The fields specified in the update_mask + * are relative to the resource, not the full request. A field will be + * overwritten if it's in the mask. If the user doesn't provide a mask then + * all fields are overwritten. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + + /** + * Required. The `Target` to update. + * + * Generated from protobuf field .google.cloud.deploy.v1.Target target = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Deploy\V1\Target|null + */ + public function getTarget() + { + return $this->target; + } + + public function hasTarget() + { + return isset($this->target); + } + + public function clearTarget() + { + unset($this->target); + } + + /** + * Required. The `Target` to update. + * + * Generated from protobuf field .google.cloud.deploy.v1.Target target = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Deploy\V1\Target $var + * @return $this + */ + public function setTarget($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Target::class); + $this->target = $var; + + return $this; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * Optional. A request ID to identify requests. Specify a unique request ID + * so that if you must retry your request, the server knows to ignore the + * request if it has already been completed. The server guarantees that for + * at least 60 minutes after the first request. + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + * + * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + + /** + * Optional. If set to true, updating a `Target` that does not exist will + * result in the creation of a new `Target`. + * + * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getAllowMissing() + { + return $this->allow_missing; + } + + /** + * Optional. If set to true, updating a `Target` that does not exist will + * result in the creation of a new `Target`. + * + * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setAllowMissing($var) + { + GPBUtil::checkBool($var); + $this->allow_missing = $var; + + return $this; + } + + /** + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * + * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. If set to true, the request is validated and the user is provided + * with an expected result, but no actual change is made. + * + * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/VerifyJob.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/VerifyJob.php new file mode 100644 index 000000000000..acbf1fc38199 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/VerifyJob.php @@ -0,0 +1,33 @@ +google.cloud.deploy.v1.VerifyJob + */ +class VerifyJob extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/VerifyJobRun.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/VerifyJobRun.php new file mode 100644 index 000000000000..71c2c05ff0a9 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/VerifyJobRun.php @@ -0,0 +1,223 @@ +google.cloud.deploy.v1.VerifyJobRun + */ +class VerifyJobRun extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The resource name of the Cloud Build `Build` object that is + * used to verify. Format is + * `projects/{project}/locations/{location}/builds/{build}`. + * + * Generated from protobuf field string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $build = ''; + /** + * Output only. URI of a directory containing the verify artifacts. This + * contains the Skaffold event log. + * + * Generated from protobuf field string artifact_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $artifact_uri = ''; + /** + * Output only. File path of the Skaffold event log relative to the artifact + * URI. + * + * Generated from protobuf field string event_log_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $event_log_path = ''; + /** + * Output only. The reason the verify failed. This will always be unspecified + * while the verify is in progress or if it succeeded. + * + * Generated from protobuf field .google.cloud.deploy.v1.VerifyJobRun.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $failure_cause = 0; + /** + * Output only. Additional information about the verify failure, if available. + * + * Generated from protobuf field string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $failure_message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $build + * Output only. The resource name of the Cloud Build `Build` object that is + * used to verify. Format is + * `projects/{project}/locations/{location}/builds/{build}`. + * @type string $artifact_uri + * Output only. URI of a directory containing the verify artifacts. This + * contains the Skaffold event log. + * @type string $event_log_path + * Output only. File path of the Skaffold event log relative to the artifact + * URI. + * @type int $failure_cause + * Output only. The reason the verify failed. This will always be unspecified + * while the verify is in progress or if it succeeded. + * @type string $failure_message + * Output only. Additional information about the verify failure, if available. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The resource name of the Cloud Build `Build` object that is + * used to verify. Format is + * `projects/{project}/locations/{location}/builds/{build}`. + * + * Generated from protobuf field string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getBuild() + { + return $this->build; + } + + /** + * Output only. The resource name of the Cloud Build `Build` object that is + * used to verify. Format is + * `projects/{project}/locations/{location}/builds/{build}`. + * + * Generated from protobuf field string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setBuild($var) + { + GPBUtil::checkString($var, True); + $this->build = $var; + + return $this; + } + + /** + * Output only. URI of a directory containing the verify artifacts. This + * contains the Skaffold event log. + * + * Generated from protobuf field string artifact_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getArtifactUri() + { + return $this->artifact_uri; + } + + /** + * Output only. URI of a directory containing the verify artifacts. This + * contains the Skaffold event log. + * + * Generated from protobuf field string artifact_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setArtifactUri($var) + { + GPBUtil::checkString($var, True); + $this->artifact_uri = $var; + + return $this; + } + + /** + * Output only. File path of the Skaffold event log relative to the artifact + * URI. + * + * Generated from protobuf field string event_log_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getEventLogPath() + { + return $this->event_log_path; + } + + /** + * Output only. File path of the Skaffold event log relative to the artifact + * URI. + * + * Generated from protobuf field string event_log_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setEventLogPath($var) + { + GPBUtil::checkString($var, True); + $this->event_log_path = $var; + + return $this; + } + + /** + * Output only. The reason the verify failed. This will always be unspecified + * while the verify is in progress or if it succeeded. + * + * Generated from protobuf field .google.cloud.deploy.v1.VerifyJobRun.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getFailureCause() + { + return $this->failure_cause; + } + + /** + * Output only. The reason the verify failed. This will always be unspecified + * while the verify is in progress or if it succeeded. + * + * Generated from protobuf field .google.cloud.deploy.v1.VerifyJobRun.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setFailureCause($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\VerifyJobRun\FailureCause::class); + $this->failure_cause = $var; + + return $this; + } + + /** + * Output only. Additional information about the verify failure, if available. + * + * Generated from protobuf field string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getFailureMessage() + { + return $this->failure_message; + } + + /** + * Output only. Additional information about the verify failure, if available. + * + * Generated from protobuf field string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setFailureMessage($var) + { + GPBUtil::checkString($var, True); + $this->failure_message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/VerifyJobRun/FailureCause.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/VerifyJobRun/FailureCause.php new file mode 100644 index 000000000000..84d3ba2506c5 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/VerifyJobRun/FailureCause.php @@ -0,0 +1,89 @@ +google.cloud.deploy.v1.VerifyJobRun.FailureCause + */ +class FailureCause +{ + /** + * No reason for failure is specified. + * + * Generated from protobuf enum FAILURE_CAUSE_UNSPECIFIED = 0; + */ + const FAILURE_CAUSE_UNSPECIFIED = 0; + /** + * Cloud Build is not available, either because it is not enabled or because + * Cloud Deploy has insufficient permissions. See [required + * permission](https://cloud.google.com/deploy/docs/cloud-deploy-service-account#required_permissions). + * + * Generated from protobuf enum CLOUD_BUILD_UNAVAILABLE = 1; + */ + const CLOUD_BUILD_UNAVAILABLE = 1; + /** + * The verify operation did not complete successfully; check Cloud Build + * logs. + * + * Generated from protobuf enum EXECUTION_FAILED = 2; + */ + const EXECUTION_FAILED = 2; + /** + * The verify job run did not complete within the alloted time. + * + * Generated from protobuf enum DEADLINE_EXCEEDED = 3; + */ + const DEADLINE_EXCEEDED = 3; + /** + * No Skaffold verify configuration was found. + * + * Generated from protobuf enum VERIFICATION_CONFIG_NOT_FOUND = 4; + */ + const VERIFICATION_CONFIG_NOT_FOUND = 4; + /** + * Cloud Build failed to fulfill Cloud Deploy's request. See failure_message + * for additional details. + * + * Generated from protobuf enum CLOUD_BUILD_REQUEST_FAILED = 5; + */ + const CLOUD_BUILD_REQUEST_FAILED = 5; + + private static $valueToName = [ + self::FAILURE_CAUSE_UNSPECIFIED => 'FAILURE_CAUSE_UNSPECIFIED', + self::CLOUD_BUILD_UNAVAILABLE => 'CLOUD_BUILD_UNAVAILABLE', + self::EXECUTION_FAILED => 'EXECUTION_FAILED', + self::DEADLINE_EXCEEDED => 'DEADLINE_EXCEEDED', + self::VERIFICATION_CONFIG_NOT_FOUND => 'VERIFICATION_CONFIG_NOT_FOUND', + self::CLOUD_BUILD_REQUEST_FAILED => 'CLOUD_BUILD_REQUEST_FAILED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(FailureCause::class, \Google\Cloud\Deploy\V1\VerifyJobRun_FailureCause::class); + diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/WeeklyWindow.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/WeeklyWindow.php new file mode 100644 index 000000000000..a0212780dd12 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/WeeklyWindow.php @@ -0,0 +1,176 @@ +google.cloud.deploy.v1.WeeklyWindow + */ +class WeeklyWindow extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Days of week. If left empty, all days of the week will be + * included. + * + * Generated from protobuf field repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $days_of_week; + /** + * Optional. Start time (inclusive). Use 00:00 for the beginning of the day. + * If you specify start_time you must also specify end_time. If left empty, + * this will block for the entire day for the days specified in days_of_week. + * + * Generated from protobuf field .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $start_time = null; + /** + * Optional. End time (exclusive). Use 24:00 to indicate midnight. If you + * specify end_time you must also specify start_time. If left empty, this will + * block for the entire day for the days specified in days_of_week. + * + * Generated from protobuf field .google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $end_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $days_of_week + * Optional. Days of week. If left empty, all days of the week will be + * included. + * @type \Google\Type\TimeOfDay $start_time + * Optional. Start time (inclusive). Use 00:00 for the beginning of the day. + * If you specify start_time you must also specify end_time. If left empty, + * this will block for the entire day for the days specified in days_of_week. + * @type \Google\Type\TimeOfDay $end_time + * Optional. End time (exclusive). Use 24:00 to indicate midnight. If you + * specify end_time you must also specify start_time. If left empty, this will + * block for the entire day for the days specified in days_of_week. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Days of week. If left empty, all days of the week will be + * included. + * + * Generated from protobuf field repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDaysOfWeek() + { + return $this->days_of_week; + } + + /** + * Optional. Days of week. If left empty, all days of the week will be + * included. + * + * Generated from protobuf field repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDaysOfWeek($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Type\DayOfWeek::class); + $this->days_of_week = $arr; + + return $this; + } + + /** + * Optional. Start time (inclusive). Use 00:00 for the beginning of the day. + * If you specify start_time you must also specify end_time. If left empty, + * this will block for the entire day for the days specified in days_of_week. + * + * Generated from protobuf field .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Type\TimeOfDay|null + */ + public function getStartTime() + { + return $this->start_time; + } + + public function hasStartTime() + { + return isset($this->start_time); + } + + public function clearStartTime() + { + unset($this->start_time); + } + + /** + * Optional. Start time (inclusive). Use 00:00 for the beginning of the day. + * If you specify start_time you must also specify end_time. If left empty, + * this will block for the entire day for the days specified in days_of_week. + * + * Generated from protobuf field .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Type\TimeOfDay $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Type\TimeOfDay::class); + $this->start_time = $var; + + return $this; + } + + /** + * Optional. End time (exclusive). Use 24:00 to indicate midnight. If you + * specify end_time you must also specify start_time. If left empty, this will + * block for the entire day for the days specified in days_of_week. + * + * Generated from protobuf field .google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Type\TimeOfDay|null + */ + public function getEndTime() + { + return $this->end_time; + } + + public function hasEndTime() + { + return isset($this->end_time); + } + + public function clearEndTime() + { + unset($this->end_time); + } + + /** + * Optional. End time (exclusive). Use 24:00 to indicate midnight. If you + * specify end_time you must also specify start_time. If left empty, this will + * block for the entire day for the days specified in days_of_week. + * + * Generated from protobuf field .google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Type\TimeOfDay $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Type\TimeOfDay::class); + $this->end_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/abandon_release.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/abandon_release.php new file mode 100644 index 000000000000..93c54b196326 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/abandon_release.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var AbandonReleaseResponse $response */ + $response = $cloudDeployClient->abandonRelease($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CloudDeployClient::releaseName( + '[PROJECT]', + '[LOCATION]', + '[DELIVERY_PIPELINE]', + '[RELEASE]' + ); + + abandon_release_sample($formattedName); +} +// [END clouddeploy_v1_generated_CloudDeploy_AbandonRelease_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/advance_rollout.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/advance_rollout.php new file mode 100644 index 000000000000..988ef64288ef --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/advance_rollout.php @@ -0,0 +1,81 @@ +setName($formattedName) + ->setPhaseId($phaseId); + + // Call the API and handle any network failures. + try { + /** @var AdvanceRolloutResponse $response */ + $response = $cloudDeployClient->advanceRollout($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CloudDeployClient::rolloutName( + '[PROJECT]', + '[LOCATION]', + '[DELIVERY_PIPELINE]', + '[RELEASE]', + '[ROLLOUT]' + ); + $phaseId = '[PHASE_ID]'; + + advance_rollout_sample($formattedName, $phaseId); +} +// [END clouddeploy_v1_generated_CloudDeploy_AdvanceRollout_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/approve_rollout.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/approve_rollout.php new file mode 100644 index 000000000000..6fe35745c1d0 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/approve_rollout.php @@ -0,0 +1,81 @@ +setName($formattedName) + ->setApproved($approved); + + // Call the API and handle any network failures. + try { + /** @var ApproveRolloutResponse $response */ + $response = $cloudDeployClient->approveRollout($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CloudDeployClient::rolloutName( + '[PROJECT]', + '[LOCATION]', + '[DELIVERY_PIPELINE]', + '[RELEASE]', + '[ROLLOUT]' + ); + $approved = false; + + approve_rollout_sample($formattedName, $approved); +} +// [END clouddeploy_v1_generated_CloudDeploy_ApproveRollout_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/cancel_automation_run.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/cancel_automation_run.php new file mode 100644 index 000000000000..ce0d6a678314 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/cancel_automation_run.php @@ -0,0 +1,80 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var CancelAutomationRunResponse $response */ + $response = $cloudDeployClient->cancelAutomationRun($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CloudDeployClient::automationRunName( + '[PROJECT]', + '[LOCATION]', + '[DELIVERY_PIPELINE]', + '[AUTOMATION_RUN]' + ); + + cancel_automation_run_sample($formattedName); +} +// [END clouddeploy_v1_generated_CloudDeploy_CancelAutomationRun_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/cancel_rollout.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/cancel_rollout.php new file mode 100644 index 000000000000..27aeaad0cd0b --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/cancel_rollout.php @@ -0,0 +1,78 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var CancelRolloutResponse $response */ + $response = $cloudDeployClient->cancelRollout($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CloudDeployClient::rolloutName( + '[PROJECT]', + '[LOCATION]', + '[DELIVERY_PIPELINE]', + '[RELEASE]', + '[ROLLOUT]' + ); + + cancel_rollout_sample($formattedName); +} +// [END clouddeploy_v1_generated_CloudDeploy_CancelRollout_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_automation.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_automation.php new file mode 100644 index 000000000000..f3bf038aa1e6 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_automation.php @@ -0,0 +1,107 @@ +setServiceAccount($automationServiceAccount) + ->setSelector($automationSelector) + ->setRules($automationRules); + $request = (new CreateAutomationRequest()) + ->setParent($formattedParent) + ->setAutomationId($automationId) + ->setAutomation($automation); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $cloudDeployClient->createAutomation($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Automation $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CloudDeployClient::deliveryPipelineName( + '[PROJECT]', + '[LOCATION]', + '[DELIVERY_PIPELINE]' + ); + $automationId = '[AUTOMATION_ID]'; + $automationServiceAccount = '[SERVICE_ACCOUNT]'; + + create_automation_sample($formattedParent, $automationId, $automationServiceAccount); +} +// [END clouddeploy_v1_generated_CloudDeploy_CreateAutomation_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_custom_target_type.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_custom_target_type.php new file mode 100644 index 000000000000..4548f5f86742 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_custom_target_type.php @@ -0,0 +1,91 @@ +setParent($formattedParent) + ->setCustomTargetTypeId($customTargetTypeId) + ->setCustomTargetType($customTargetType); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $cloudDeployClient->createCustomTargetType($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var CustomTargetType $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CloudDeployClient::locationName('[PROJECT]', '[LOCATION]'); + $customTargetTypeId = '[CUSTOM_TARGET_TYPE_ID]'; + + create_custom_target_type_sample($formattedParent, $customTargetTypeId); +} +// [END clouddeploy_v1_generated_CloudDeploy_CreateCustomTargetType_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_delivery_pipeline.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_delivery_pipeline.php new file mode 100644 index 000000000000..8481b0b96bb2 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_delivery_pipeline.php @@ -0,0 +1,91 @@ +setParent($formattedParent) + ->setDeliveryPipelineId($deliveryPipelineId) + ->setDeliveryPipeline($deliveryPipeline); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $cloudDeployClient->createDeliveryPipeline($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var DeliveryPipeline $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CloudDeployClient::locationName('[PROJECT]', '[LOCATION]'); + $deliveryPipelineId = '[DELIVERY_PIPELINE_ID]'; + + create_delivery_pipeline_sample($formattedParent, $deliveryPipelineId); +} +// [END clouddeploy_v1_generated_CloudDeploy_CreateDeliveryPipeline_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_deploy_policy.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_deploy_policy.php new file mode 100644 index 000000000000..ec13a6f0147e --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_deploy_policy.php @@ -0,0 +1,95 @@ +setSelectors($deployPolicySelectors) + ->setRules($deployPolicyRules); + $request = (new CreateDeployPolicyRequest()) + ->setParent($formattedParent) + ->setDeployPolicyId($deployPolicyId) + ->setDeployPolicy($deployPolicy); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $cloudDeployClient->createDeployPolicy($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var DeployPolicy $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CloudDeployClient::locationName('[PROJECT]', '[LOCATION]'); + $deployPolicyId = '[DEPLOY_POLICY_ID]'; + + create_deploy_policy_sample($formattedParent, $deployPolicyId); +} +// [END clouddeploy_v1_generated_CloudDeploy_CreateDeployPolicy_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_release.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_release.php new file mode 100644 index 000000000000..07ed111f9de7 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_release.php @@ -0,0 +1,94 @@ +setParent($formattedParent) + ->setReleaseId($releaseId) + ->setRelease($release); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $cloudDeployClient->createRelease($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Release $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CloudDeployClient::deliveryPipelineName( + '[PROJECT]', + '[LOCATION]', + '[DELIVERY_PIPELINE]' + ); + $releaseId = '[RELEASE_ID]'; + + create_release_sample($formattedParent, $releaseId); +} +// [END clouddeploy_v1_generated_CloudDeploy_CreateRelease_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_rollout.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_rollout.php new file mode 100644 index 000000000000..83e2e6ee3323 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_rollout.php @@ -0,0 +1,101 @@ +setTargetId($rolloutTargetId); + $request = (new CreateRolloutRequest()) + ->setParent($formattedParent) + ->setRolloutId($rolloutId) + ->setRollout($rollout); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $cloudDeployClient->createRollout($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Rollout $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CloudDeployClient::releaseName( + '[PROJECT]', + '[LOCATION]', + '[DELIVERY_PIPELINE]', + '[RELEASE]' + ); + $rolloutId = '[ROLLOUT_ID]'; + $rolloutTargetId = '[TARGET_ID]'; + + create_rollout_sample($formattedParent, $rolloutId, $rolloutTargetId); +} +// [END clouddeploy_v1_generated_CloudDeploy_CreateRollout_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_target.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_target.php new file mode 100644 index 000000000000..18cda85ef614 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_target.php @@ -0,0 +1,90 @@ +setParent($formattedParent) + ->setTargetId($targetId) + ->setTarget($target); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $cloudDeployClient->createTarget($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Target $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CloudDeployClient::locationName('[PROJECT]', '[LOCATION]'); + $targetId = '[TARGET_ID]'; + + create_target_sample($formattedParent, $targetId); +} +// [END clouddeploy_v1_generated_CloudDeploy_CreateTarget_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_automation.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_automation.php new file mode 100644 index 000000000000..d897983ac94b --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_automation.php @@ -0,0 +1,86 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $cloudDeployClient->deleteAutomation($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + printf('Operation completed successfully.' . PHP_EOL); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CloudDeployClient::automationName( + '[PROJECT]', + '[LOCATION]', + '[DELIVERY_PIPELINE]', + '[AUTOMATION]' + ); + + delete_automation_sample($formattedName); +} +// [END clouddeploy_v1_generated_CloudDeploy_DeleteAutomation_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_custom_target_type.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_custom_target_type.php new file mode 100644 index 000000000000..f4e1e3664dc3 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_custom_target_type.php @@ -0,0 +1,85 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $cloudDeployClient->deleteCustomTargetType($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + printf('Operation completed successfully.' . PHP_EOL); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CloudDeployClient::customTargetTypeName( + '[PROJECT]', + '[LOCATION]', + '[CUSTOM_TARGET_TYPE]' + ); + + delete_custom_target_type_sample($formattedName); +} +// [END clouddeploy_v1_generated_CloudDeploy_DeleteCustomTargetType_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_delivery_pipeline.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_delivery_pipeline.php new file mode 100644 index 000000000000..b178be2bfba4 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_delivery_pipeline.php @@ -0,0 +1,85 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $cloudDeployClient->deleteDeliveryPipeline($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + printf('Operation completed successfully.' . PHP_EOL); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CloudDeployClient::deliveryPipelineName( + '[PROJECT]', + '[LOCATION]', + '[DELIVERY_PIPELINE]' + ); + + delete_delivery_pipeline_sample($formattedName); +} +// [END clouddeploy_v1_generated_CloudDeploy_DeleteDeliveryPipeline_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_deploy_policy.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_deploy_policy.php new file mode 100644 index 000000000000..2861396ee90a --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_deploy_policy.php @@ -0,0 +1,81 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $cloudDeployClient->deleteDeployPolicy($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + printf('Operation completed successfully.' . PHP_EOL); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CloudDeployClient::deployPolicyName('[PROJECT]', '[LOCATION]', '[DEPLOY_POLICY]'); + + delete_deploy_policy_sample($formattedName); +} +// [END clouddeploy_v1_generated_CloudDeploy_DeleteDeployPolicy_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_target.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_target.php new file mode 100644 index 000000000000..842dc6a88b94 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_target.php @@ -0,0 +1,81 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $cloudDeployClient->deleteTarget($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + printf('Operation completed successfully.' . PHP_EOL); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CloudDeployClient::targetName('[PROJECT]', '[LOCATION]', '[TARGET]'); + + delete_target_sample($formattedName); +} +// [END clouddeploy_v1_generated_CloudDeploy_DeleteTarget_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_automation.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_automation.php new file mode 100644 index 000000000000..d1ac732d1174 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_automation.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Automation $response */ + $response = $cloudDeployClient->getAutomation($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CloudDeployClient::automationName( + '[PROJECT]', + '[LOCATION]', + '[DELIVERY_PIPELINE]', + '[AUTOMATION]' + ); + + get_automation_sample($formattedName); +} +// [END clouddeploy_v1_generated_CloudDeploy_GetAutomation_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_automation_run.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_automation_run.php new file mode 100644 index 000000000000..c7bd635659c9 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_automation_run.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var AutomationRun $response */ + $response = $cloudDeployClient->getAutomationRun($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CloudDeployClient::automationRunName( + '[PROJECT]', + '[LOCATION]', + '[DELIVERY_PIPELINE]', + '[AUTOMATION_RUN]' + ); + + get_automation_run_sample($formattedName); +} +// [END clouddeploy_v1_generated_CloudDeploy_GetAutomationRun_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_config.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_config.php new file mode 100644 index 000000000000..fb2b635fc12a --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_config.php @@ -0,0 +1,71 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Config $response */ + $response = $cloudDeployClient->getConfig($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CloudDeployClient::configName('[PROJECT]', '[LOCATION]'); + + get_config_sample($formattedName); +} +// [END clouddeploy_v1_generated_CloudDeploy_GetConfig_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_custom_target_type.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_custom_target_type.php new file mode 100644 index 000000000000..b17cea5b245b --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_custom_target_type.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var CustomTargetType $response */ + $response = $cloudDeployClient->getCustomTargetType($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CloudDeployClient::customTargetTypeName( + '[PROJECT]', + '[LOCATION]', + '[CUSTOM_TARGET_TYPE]' + ); + + get_custom_target_type_sample($formattedName); +} +// [END clouddeploy_v1_generated_CloudDeploy_GetCustomTargetType_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_delivery_pipeline.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_delivery_pipeline.php new file mode 100644 index 000000000000..9b7b527629fe --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_delivery_pipeline.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var DeliveryPipeline $response */ + $response = $cloudDeployClient->getDeliveryPipeline($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CloudDeployClient::deliveryPipelineName( + '[PROJECT]', + '[LOCATION]', + '[DELIVERY_PIPELINE]' + ); + + get_delivery_pipeline_sample($formattedName); +} +// [END clouddeploy_v1_generated_CloudDeploy_GetDeliveryPipeline_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_deploy_policy.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_deploy_policy.php new file mode 100644 index 000000000000..49c50889b20b --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_deploy_policy.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var DeployPolicy $response */ + $response = $cloudDeployClient->getDeployPolicy($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CloudDeployClient::deployPolicyName('[PROJECT]', '[LOCATION]', '[DEPLOY_POLICY]'); + + get_deploy_policy_sample($formattedName); +} +// [END clouddeploy_v1_generated_CloudDeploy_GetDeployPolicy_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_iam_policy.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_iam_policy.php new file mode 100644 index 000000000000..712cc11c9bff --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_iam_policy.php @@ -0,0 +1,72 @@ +setResource($resource); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $cloudDeployClient->getIamPolicy($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $resource = '[RESOURCE]'; + + get_iam_policy_sample($resource); +} +// [END clouddeploy_v1_generated_CloudDeploy_GetIamPolicy_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_job_run.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_job_run.php new file mode 100644 index 000000000000..6a44b1f36fb9 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_job_run.php @@ -0,0 +1,79 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var JobRun $response */ + $response = $cloudDeployClient->getJobRun($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CloudDeployClient::jobRunName( + '[PROJECT]', + '[LOCATION]', + '[DELIVERY_PIPELINE]', + '[RELEASE]', + '[ROLLOUT]', + '[JOB_RUN]' + ); + + get_job_run_sample($formattedName); +} +// [END clouddeploy_v1_generated_CloudDeploy_GetJobRun_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_location.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_location.php new file mode 100644 index 000000000000..87b0ca5d002b --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_location.php @@ -0,0 +1,57 @@ +getLocation($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END clouddeploy_v1_generated_CloudDeploy_GetLocation_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_release.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_release.php new file mode 100644 index 000000000000..a704cb10281f --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_release.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Release $response */ + $response = $cloudDeployClient->getRelease($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CloudDeployClient::releaseName( + '[PROJECT]', + '[LOCATION]', + '[DELIVERY_PIPELINE]', + '[RELEASE]' + ); + + get_release_sample($formattedName); +} +// [END clouddeploy_v1_generated_CloudDeploy_GetRelease_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_rollout.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_rollout.php new file mode 100644 index 000000000000..6b3047a364fa --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_rollout.php @@ -0,0 +1,78 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Rollout $response */ + $response = $cloudDeployClient->getRollout($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CloudDeployClient::rolloutName( + '[PROJECT]', + '[LOCATION]', + '[DELIVERY_PIPELINE]', + '[RELEASE]', + '[ROLLOUT]' + ); + + get_rollout_sample($formattedName); +} +// [END clouddeploy_v1_generated_CloudDeploy_GetRollout_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_target.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_target.php new file mode 100644 index 000000000000..9b5a0a1bc287 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_target.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Target $response */ + $response = $cloudDeployClient->getTarget($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CloudDeployClient::targetName('[PROJECT]', '[LOCATION]', '[TARGET]'); + + get_target_sample($formattedName); +} +// [END clouddeploy_v1_generated_CloudDeploy_GetTarget_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/ignore_job.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/ignore_job.php new file mode 100644 index 000000000000..c18b0622c202 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/ignore_job.php @@ -0,0 +1,84 @@ +setRollout($formattedRollout) + ->setPhaseId($phaseId) + ->setJobId($jobId); + + // Call the API and handle any network failures. + try { + /** @var IgnoreJobResponse $response */ + $response = $cloudDeployClient->ignoreJob($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedRollout = CloudDeployClient::rolloutName( + '[PROJECT]', + '[LOCATION]', + '[DELIVERY_PIPELINE]', + '[RELEASE]', + '[ROLLOUT]' + ); + $phaseId = '[PHASE_ID]'; + $jobId = '[JOB_ID]'; + + ignore_job_sample($formattedRollout, $phaseId, $jobId); +} +// [END clouddeploy_v1_generated_CloudDeploy_IgnoreJob_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_automation_runs.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_automation_runs.php new file mode 100644 index 000000000000..30813b68d6f1 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_automation_runs.php @@ -0,0 +1,82 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $cloudDeployClient->listAutomationRuns($request); + + /** @var AutomationRun $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CloudDeployClient::deliveryPipelineName( + '[PROJECT]', + '[LOCATION]', + '[DELIVERY_PIPELINE]' + ); + + list_automation_runs_sample($formattedParent); +} +// [END clouddeploy_v1_generated_CloudDeploy_ListAutomationRuns_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_automations.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_automations.php new file mode 100644 index 000000000000..8c3b995f7858 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_automations.php @@ -0,0 +1,82 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $cloudDeployClient->listAutomations($request); + + /** @var Automation $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CloudDeployClient::deliveryPipelineName( + '[PROJECT]', + '[LOCATION]', + '[DELIVERY_PIPELINE]' + ); + + list_automations_sample($formattedParent); +} +// [END clouddeploy_v1_generated_CloudDeploy_ListAutomations_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_custom_target_types.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_custom_target_types.php new file mode 100644 index 000000000000..267cc5678e2c --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_custom_target_types.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $cloudDeployClient->listCustomTargetTypes($request); + + /** @var CustomTargetType $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CloudDeployClient::locationName('[PROJECT]', '[LOCATION]'); + + list_custom_target_types_sample($formattedParent); +} +// [END clouddeploy_v1_generated_CloudDeploy_ListCustomTargetTypes_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_delivery_pipelines.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_delivery_pipelines.php new file mode 100644 index 000000000000..2e784d091d01 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_delivery_pipelines.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $cloudDeployClient->listDeliveryPipelines($request); + + /** @var DeliveryPipeline $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CloudDeployClient::locationName('[PROJECT]', '[LOCATION]'); + + list_delivery_pipelines_sample($formattedParent); +} +// [END clouddeploy_v1_generated_CloudDeploy_ListDeliveryPipelines_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_deploy_policies.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_deploy_policies.php new file mode 100644 index 000000000000..d5c74724bedb --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_deploy_policies.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $cloudDeployClient->listDeployPolicies($request); + + /** @var DeployPolicy $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CloudDeployClient::locationName('[PROJECT]', '[LOCATION]'); + + list_deploy_policies_sample($formattedParent); +} +// [END clouddeploy_v1_generated_CloudDeploy_ListDeployPolicies_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_job_runs.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_job_runs.php new file mode 100644 index 000000000000..6ca3a42ad7d5 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_job_runs.php @@ -0,0 +1,82 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $cloudDeployClient->listJobRuns($request); + + /** @var JobRun $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CloudDeployClient::rolloutName( + '[PROJECT]', + '[LOCATION]', + '[DELIVERY_PIPELINE]', + '[RELEASE]', + '[ROLLOUT]' + ); + + list_job_runs_sample($formattedParent); +} +// [END clouddeploy_v1_generated_CloudDeploy_ListJobRuns_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_locations.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_locations.php new file mode 100644 index 000000000000..a5a9b23761df --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_locations.php @@ -0,0 +1,62 @@ +listLocations($request); + + /** @var Location $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END clouddeploy_v1_generated_CloudDeploy_ListLocations_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_releases.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_releases.php new file mode 100644 index 000000000000..da6f6702354c --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_releases.php @@ -0,0 +1,81 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $cloudDeployClient->listReleases($request); + + /** @var Release $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CloudDeployClient::deliveryPipelineName( + '[PROJECT]', + '[LOCATION]', + '[DELIVERY_PIPELINE]' + ); + + list_releases_sample($formattedParent); +} +// [END clouddeploy_v1_generated_CloudDeploy_ListReleases_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_rollouts.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_rollouts.php new file mode 100644 index 000000000000..5e4d6f18bfdb --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_rollouts.php @@ -0,0 +1,81 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $cloudDeployClient->listRollouts($request); + + /** @var Rollout $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CloudDeployClient::releaseName( + '[PROJECT]', + '[LOCATION]', + '[DELIVERY_PIPELINE]', + '[RELEASE]' + ); + + list_rollouts_sample($formattedParent); +} +// [END clouddeploy_v1_generated_CloudDeploy_ListRollouts_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_targets.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_targets.php new file mode 100644 index 000000000000..2e250fbaceba --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_targets.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $cloudDeployClient->listTargets($request); + + /** @var Target $element */ + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CloudDeployClient::locationName('[PROJECT]', '[LOCATION]'); + + list_targets_sample($formattedParent); +} +// [END clouddeploy_v1_generated_CloudDeploy_ListTargets_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/retry_job.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/retry_job.php new file mode 100644 index 000000000000..55e00cd6a97a --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/retry_job.php @@ -0,0 +1,84 @@ +setRollout($formattedRollout) + ->setPhaseId($phaseId) + ->setJobId($jobId); + + // Call the API and handle any network failures. + try { + /** @var RetryJobResponse $response */ + $response = $cloudDeployClient->retryJob($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedRollout = CloudDeployClient::rolloutName( + '[PROJECT]', + '[LOCATION]', + '[DELIVERY_PIPELINE]', + '[RELEASE]', + '[ROLLOUT]' + ); + $phaseId = '[PHASE_ID]'; + $jobId = '[JOB_ID]'; + + retry_job_sample($formattedRollout, $phaseId, $jobId); +} +// [END clouddeploy_v1_generated_CloudDeploy_RetryJob_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/rollback_target.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/rollback_target.php new file mode 100644 index 000000000000..91c117b16296 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/rollback_target.php @@ -0,0 +1,83 @@ +setName($formattedName) + ->setTargetId($targetId) + ->setRolloutId($rolloutId); + + // Call the API and handle any network failures. + try { + /** @var RollbackTargetResponse $response */ + $response = $cloudDeployClient->rollbackTarget($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CloudDeployClient::deliveryPipelineName( + '[PROJECT]', + '[LOCATION]', + '[DELIVERY_PIPELINE]' + ); + $targetId = '[TARGET_ID]'; + $rolloutId = '[ROLLOUT_ID]'; + + rollback_target_sample($formattedName, $targetId, $rolloutId); +} +// [END clouddeploy_v1_generated_CloudDeploy_RollbackTarget_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/set_iam_policy.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/set_iam_policy.php new file mode 100644 index 000000000000..1ba2a095ce60 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/set_iam_policy.php @@ -0,0 +1,77 @@ +setResource($resource) + ->setPolicy($policy); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $cloudDeployClient->setIamPolicy($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $resource = '[RESOURCE]'; + + set_iam_policy_sample($resource); +} +// [END clouddeploy_v1_generated_CloudDeploy_SetIamPolicy_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/terminate_job_run.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/terminate_job_run.php new file mode 100644 index 000000000000..2c0906752d36 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/terminate_job_run.php @@ -0,0 +1,79 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var TerminateJobRunResponse $response */ + $response = $cloudDeployClient->terminateJobRun($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CloudDeployClient::jobRunName( + '[PROJECT]', + '[LOCATION]', + '[DELIVERY_PIPELINE]', + '[RELEASE]', + '[ROLLOUT]', + '[JOB_RUN]' + ); + + terminate_job_run_sample($formattedName); +} +// [END clouddeploy_v1_generated_CloudDeploy_TerminateJobRun_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/test_iam_permissions.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/test_iam_permissions.php new file mode 100644 index 000000000000..20741898d747 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/test_iam_permissions.php @@ -0,0 +1,84 @@ +setResource($resource) + ->setPermissions($permissions); + + // Call the API and handle any network failures. + try { + /** @var TestIamPermissionsResponse $response */ + $response = $cloudDeployClient->testIamPermissions($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $resource = '[RESOURCE]'; + $permissionsElement = '[PERMISSIONS]'; + + test_iam_permissions_sample($resource, $permissionsElement); +} +// [END clouddeploy_v1_generated_CloudDeploy_TestIamPermissions_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_automation.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_automation.php new file mode 100644 index 000000000000..3072581159da --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_automation.php @@ -0,0 +1,94 @@ +setServiceAccount($automationServiceAccount) + ->setSelector($automationSelector) + ->setRules($automationRules); + $request = (new UpdateAutomationRequest()) + ->setUpdateMask($updateMask) + ->setAutomation($automation); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $cloudDeployClient->updateAutomation($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Automation $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $automationServiceAccount = '[SERVICE_ACCOUNT]'; + + update_automation_sample($automationServiceAccount); +} +// [END clouddeploy_v1_generated_CloudDeploy_UpdateAutomation_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_custom_target_type.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_custom_target_type.php new file mode 100644 index 000000000000..fd0272b9ccae --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_custom_target_type.php @@ -0,0 +1,74 @@ +setUpdateMask($updateMask) + ->setCustomTargetType($customTargetType); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $cloudDeployClient->updateCustomTargetType($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var CustomTargetType $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END clouddeploy_v1_generated_CloudDeploy_UpdateCustomTargetType_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_delivery_pipeline.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_delivery_pipeline.php new file mode 100644 index 000000000000..456f5d8f996c --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_delivery_pipeline.php @@ -0,0 +1,74 @@ +setUpdateMask($updateMask) + ->setDeliveryPipeline($deliveryPipeline); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $cloudDeployClient->updateDeliveryPipeline($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var DeliveryPipeline $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END clouddeploy_v1_generated_CloudDeploy_UpdateDeliveryPipeline_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_deploy_policy.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_deploy_policy.php new file mode 100644 index 000000000000..3e0df79c8024 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_deploy_policy.php @@ -0,0 +1,80 @@ +setSelectors($deployPolicySelectors) + ->setRules($deployPolicyRules); + $request = (new UpdateDeployPolicyRequest()) + ->setUpdateMask($updateMask) + ->setDeployPolicy($deployPolicy); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $cloudDeployClient->updateDeployPolicy($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var DeployPolicy $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END clouddeploy_v1_generated_CloudDeploy_UpdateDeployPolicy_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_target.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_target.php new file mode 100644 index 000000000000..fd188ed74fe0 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_target.php @@ -0,0 +1,74 @@ +setUpdateMask($updateMask) + ->setTarget($target); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $cloudDeployClient->updateTarget($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Target $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END clouddeploy_v1_generated_CloudDeploy_UpdateTarget_sync] diff --git a/owl-bot-staging/Deploy/v1/src/V1/Client/CloudDeployClient.php b/owl-bot-staging/Deploy/v1/src/V1/Client/CloudDeployClient.php new file mode 100644 index 000000000000..f7837ed8b57a --- /dev/null +++ b/owl-bot-staging/Deploy/v1/src/V1/Client/CloudDeployClient.php @@ -0,0 +1,2056 @@ + abandonReleaseAsync(AbandonReleaseRequest $request, array $optionalArgs = []) + * @method PromiseInterface advanceRolloutAsync(AdvanceRolloutRequest $request, array $optionalArgs = []) + * @method PromiseInterface approveRolloutAsync(ApproveRolloutRequest $request, array $optionalArgs = []) + * @method PromiseInterface cancelAutomationRunAsync(CancelAutomationRunRequest $request, array $optionalArgs = []) + * @method PromiseInterface cancelRolloutAsync(CancelRolloutRequest $request, array $optionalArgs = []) + * @method PromiseInterface createAutomationAsync(CreateAutomationRequest $request, array $optionalArgs = []) + * @method PromiseInterface createCustomTargetTypeAsync(CreateCustomTargetTypeRequest $request, array $optionalArgs = []) + * @method PromiseInterface createDeliveryPipelineAsync(CreateDeliveryPipelineRequest $request, array $optionalArgs = []) + * @method PromiseInterface createDeployPolicyAsync(CreateDeployPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface createReleaseAsync(CreateReleaseRequest $request, array $optionalArgs = []) + * @method PromiseInterface createRolloutAsync(CreateRolloutRequest $request, array $optionalArgs = []) + * @method PromiseInterface createTargetAsync(CreateTargetRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteAutomationAsync(DeleteAutomationRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteCustomTargetTypeAsync(DeleteCustomTargetTypeRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteDeliveryPipelineAsync(DeleteDeliveryPipelineRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteDeployPolicyAsync(DeleteDeployPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteTargetAsync(DeleteTargetRequest $request, array $optionalArgs = []) + * @method PromiseInterface getAutomationAsync(GetAutomationRequest $request, array $optionalArgs = []) + * @method PromiseInterface getAutomationRunAsync(GetAutomationRunRequest $request, array $optionalArgs = []) + * @method PromiseInterface getConfigAsync(GetConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface getCustomTargetTypeAsync(GetCustomTargetTypeRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDeliveryPipelineAsync(GetDeliveryPipelineRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDeployPolicyAsync(GetDeployPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface getJobRunAsync(GetJobRunRequest $request, array $optionalArgs = []) + * @method PromiseInterface getReleaseAsync(GetReleaseRequest $request, array $optionalArgs = []) + * @method PromiseInterface getRolloutAsync(GetRolloutRequest $request, array $optionalArgs = []) + * @method PromiseInterface getTargetAsync(GetTargetRequest $request, array $optionalArgs = []) + * @method PromiseInterface ignoreJobAsync(IgnoreJobRequest $request, array $optionalArgs = []) + * @method PromiseInterface listAutomationRunsAsync(ListAutomationRunsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listAutomationsAsync(ListAutomationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listCustomTargetTypesAsync(ListCustomTargetTypesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDeliveryPipelinesAsync(ListDeliveryPipelinesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDeployPoliciesAsync(ListDeployPoliciesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listJobRunsAsync(ListJobRunsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listReleasesAsync(ListReleasesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listRolloutsAsync(ListRolloutsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listTargetsAsync(ListTargetsRequest $request, array $optionalArgs = []) + * @method PromiseInterface retryJobAsync(RetryJobRequest $request, array $optionalArgs = []) + * @method PromiseInterface rollbackTargetAsync(RollbackTargetRequest $request, array $optionalArgs = []) + * @method PromiseInterface terminateJobRunAsync(TerminateJobRunRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateAutomationAsync(UpdateAutomationRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateCustomTargetTypeAsync(UpdateCustomTargetTypeRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateDeliveryPipelineAsync(UpdateDeliveryPipelineRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateDeployPolicyAsync(UpdateDeployPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateTargetAsync(UpdateTargetRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) + */ +final class CloudDeployClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.deploy.v1.CloudDeploy'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'clouddeploy.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'clouddeploy.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private $operationsClient; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/cloud_deploy_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/cloud_deploy_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/cloud_deploy_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/cloud_deploy_rest_client_config.php', + ], + ], + ]; + } + + /** + * Return an OperationsClient object with the same endpoint as $this. + * + * @return OperationsClient + */ + public function getOperationsClient() + { + return $this->operationsClient; + } + + /** + * Resume an existing long running operation that was previously started by a long + * running API method. If $methodName is not provided, or does not match a long + * running API method, then the operation can still be resumed, but the + * OperationResponse object will not deserialize the final response. + * + * @param string $operationName The name of the long running operation + * @param string $methodName The name of the method used to start the operation + * + * @return OperationResponse + */ + public function resumeOperation($operationName, $methodName = null) + { + $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; + $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); + $operation->reload(); + return $operation; + } + + /** + * Create the default operation client for the service. + * + * @param array $options ClientOptions for the client. + * + * @return OperationsClient + */ + private function createOperationsClient(array $options) + { + // Unset client-specific configuration options + unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); + + if (isset($options['operationsClient'])) { + return $options['operationsClient']; + } + + return new OperationsClient($options); + } + + /** + * Formats a string containing the fully-qualified path to represent a automation + * resource. + * + * @param string $project + * @param string $location + * @param string $deliveryPipeline + * @param string $automation + * + * @return string The formatted automation resource. + */ + public static function automationName(string $project, string $location, string $deliveryPipeline, string $automation): string + { + return self::getPathTemplate('automation')->render([ + 'project' => $project, + 'location' => $location, + 'delivery_pipeline' => $deliveryPipeline, + 'automation' => $automation, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * automation_run resource. + * + * @param string $project + * @param string $location + * @param string $deliveryPipeline + * @param string $automationRun + * + * @return string The formatted automation_run resource. + */ + public static function automationRunName(string $project, string $location, string $deliveryPipeline, string $automationRun): string + { + return self::getPathTemplate('automationRun')->render([ + 'project' => $project, + 'location' => $location, + 'delivery_pipeline' => $deliveryPipeline, + 'automation_run' => $automationRun, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a build + * resource. + * + * @param string $project + * @param string $location + * @param string $build + * + * @return string The formatted build resource. + */ + public static function buildName(string $project, string $location, string $build): string + { + return self::getPathTemplate('build')->render([ + 'project' => $project, + 'location' => $location, + 'build' => $build, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a cluster + * resource. + * + * @param string $project + * @param string $location + * @param string $cluster + * + * @return string The formatted cluster resource. + */ + public static function clusterName(string $project, string $location, string $cluster): string + { + return self::getPathTemplate('cluster')->render([ + 'project' => $project, + 'location' => $location, + 'cluster' => $cluster, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a config + * resource. + * + * @param string $project + * @param string $location + * + * @return string The formatted config resource. + */ + public static function configName(string $project, string $location): string + { + return self::getPathTemplate('config')->render([ + 'project' => $project, + 'location' => $location, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * custom_target_type resource. + * + * @param string $project + * @param string $location + * @param string $customTargetType + * + * @return string The formatted custom_target_type resource. + */ + public static function customTargetTypeName(string $project, string $location, string $customTargetType): string + { + return self::getPathTemplate('customTargetType')->render([ + 'project' => $project, + 'location' => $location, + 'custom_target_type' => $customTargetType, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * delivery_pipeline resource. + * + * @param string $project + * @param string $location + * @param string $deliveryPipeline + * + * @return string The formatted delivery_pipeline resource. + */ + public static function deliveryPipelineName(string $project, string $location, string $deliveryPipeline): string + { + return self::getPathTemplate('deliveryPipeline')->render([ + 'project' => $project, + 'location' => $location, + 'delivery_pipeline' => $deliveryPipeline, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * deploy_policy resource. + * + * @param string $project + * @param string $location + * @param string $deployPolicy + * + * @return string The formatted deploy_policy resource. + */ + public static function deployPolicyName(string $project, string $location, string $deployPolicy): string + { + return self::getPathTemplate('deployPolicy')->render([ + 'project' => $project, + 'location' => $location, + 'deploy_policy' => $deployPolicy, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a job + * resource. + * + * @param string $project + * @param string $location + * @param string $job + * + * @return string The formatted job resource. + */ + public static function jobName(string $project, string $location, string $job): string + { + return self::getPathTemplate('job')->render([ + 'project' => $project, + 'location' => $location, + 'job' => $job, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a job_run + * resource. + * + * @param string $project + * @param string $location + * @param string $deliveryPipeline + * @param string $release + * @param string $rollout + * @param string $jobRun + * + * @return string The formatted job_run resource. + */ + public static function jobRunName(string $project, string $location, string $deliveryPipeline, string $release, string $rollout, string $jobRun): string + { + return self::getPathTemplate('jobRun')->render([ + 'project' => $project, + 'location' => $location, + 'delivery_pipeline' => $deliveryPipeline, + 'release' => $release, + 'rollout' => $rollout, + 'job_run' => $jobRun, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a location + * resource. + * + * @param string $project + * @param string $location + * + * @return string The formatted location resource. + */ + public static function locationName(string $project, string $location): string + { + return self::getPathTemplate('location')->render([ + 'project' => $project, + 'location' => $location, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a membership + * resource. + * + * @param string $project + * @param string $location + * @param string $membership + * + * @return string The formatted membership resource. + */ + public static function membershipName(string $project, string $location, string $membership): string + { + return self::getPathTemplate('membership')->render([ + 'project' => $project, + 'location' => $location, + 'membership' => $membership, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a release + * resource. + * + * @param string $project + * @param string $location + * @param string $deliveryPipeline + * @param string $release + * + * @return string The formatted release resource. + */ + public static function releaseName(string $project, string $location, string $deliveryPipeline, string $release): string + { + return self::getPathTemplate('release')->render([ + 'project' => $project, + 'location' => $location, + 'delivery_pipeline' => $deliveryPipeline, + 'release' => $release, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a repository + * resource. + * + * @param string $project + * @param string $location + * @param string $connection + * @param string $repository + * + * @return string The formatted repository resource. + */ + public static function repositoryName(string $project, string $location, string $connection, string $repository): string + { + return self::getPathTemplate('repository')->render([ + 'project' => $project, + 'location' => $location, + 'connection' => $connection, + 'repository' => $repository, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a rollout + * resource. + * + * @param string $project + * @param string $location + * @param string $deliveryPipeline + * @param string $release + * @param string $rollout + * + * @return string The formatted rollout resource. + */ + public static function rolloutName(string $project, string $location, string $deliveryPipeline, string $release, string $rollout): string + { + return self::getPathTemplate('rollout')->render([ + 'project' => $project, + 'location' => $location, + 'delivery_pipeline' => $deliveryPipeline, + 'release' => $release, + 'rollout' => $rollout, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a service + * resource. + * + * @param string $project + * @param string $location + * @param string $service + * + * @return string The formatted service resource. + */ + public static function serviceName(string $project, string $location, string $service): string + { + return self::getPathTemplate('service')->render([ + 'project' => $project, + 'location' => $location, + 'service' => $service, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a target + * resource. + * + * @param string $project + * @param string $location + * @param string $target + * + * @return string The formatted target resource. + */ + public static function targetName(string $project, string $location, string $target): string + { + return self::getPathTemplate('target')->render([ + 'project' => $project, + 'location' => $location, + 'target' => $target, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a worker_pool + * resource. + * + * @param string $project + * @param string $location + * @param string $workerPool + * + * @return string The formatted worker_pool resource. + */ + public static function workerPoolName(string $project, string $location, string $workerPool): string + { + return self::getPathTemplate('workerPool')->render([ + 'project' => $project, + 'location' => $location, + 'worker_pool' => $workerPool, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - automation: projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automations/{automation} + * - automationRun: projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run} + * - build: projects/{project}/locations/{location}/builds/{build} + * - cluster: projects/{project}/locations/{location}/clusters/{cluster} + * - config: projects/{project}/locations/{location}/config + * - customTargetType: projects/{project}/locations/{location}/customTargetTypes/{custom_target_type} + * - deliveryPipeline: projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline} + * - deployPolicy: projects/{project}/locations/{location}/deployPolicies/{deploy_policy} + * - job: projects/{project}/locations/{location}/jobs/{job} + * - jobRun: projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/releases/{release}/rollouts/{rollout}/jobRuns/{job_run} + * - location: projects/{project}/locations/{location} + * - membership: projects/{project}/locations/{location}/memberships/{membership} + * - release: projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/releases/{release} + * - repository: projects/{project}/locations/{location}/connections/{connection}/repositories/{repository} + * - rollout: projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/releases/{release}/rollouts/{rollout} + * - service: projects/{project}/locations/{location}/services/{service} + * - target: projects/{project}/locations/{location}/targets/{target} + * - workerPool: projects/{project}/locations/{location}/workerPools/{worker_pool} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'clouddeploy.googleapis.com:443'. + * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials + * The credentials to be used by the client to authorize API calls. This option + * accepts either a path to a credentials file, or a decoded credentials file as a + * PHP array. + * *Advanced usage*: In addition, this option can also accept a pre-constructed + * {@see \Google\Auth\FetchAuthTokenInterface} object or + * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these + * objects are provided, any settings in $credentialsConfig will be ignored. + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * } + * + * @throws ValidationException + */ + public function __construct(array $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + $this->operationsClient = $this->createOperationsClient($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Abandons a Release in the Delivery Pipeline. + * + * The async variant is {@see CloudDeployClient::abandonReleaseAsync()} . + * + * @example samples/V1/CloudDeployClient/abandon_release.php + * + * @param AbandonReleaseRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return AbandonReleaseResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function abandonRelease(AbandonReleaseRequest $request, array $callOptions = []): AbandonReleaseResponse + { + return $this->startApiCall('AbandonRelease', $request, $callOptions)->wait(); + } + + /** + * Advances a Rollout in a given project and location. + * + * The async variant is {@see CloudDeployClient::advanceRolloutAsync()} . + * + * @example samples/V1/CloudDeployClient/advance_rollout.php + * + * @param AdvanceRolloutRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return AdvanceRolloutResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function advanceRollout(AdvanceRolloutRequest $request, array $callOptions = []): AdvanceRolloutResponse + { + return $this->startApiCall('AdvanceRollout', $request, $callOptions)->wait(); + } + + /** + * Approves a Rollout. + * + * The async variant is {@see CloudDeployClient::approveRolloutAsync()} . + * + * @example samples/V1/CloudDeployClient/approve_rollout.php + * + * @param ApproveRolloutRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ApproveRolloutResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function approveRollout(ApproveRolloutRequest $request, array $callOptions = []): ApproveRolloutResponse + { + return $this->startApiCall('ApproveRollout', $request, $callOptions)->wait(); + } + + /** + * Cancels an AutomationRun. The `state` of the `AutomationRun` after + * cancelling is `CANCELLED`. `CancelAutomationRun` can be called on + * AutomationRun in the state `IN_PROGRESS` and `PENDING`; AutomationRun + * in a different state returns an `FAILED_PRECONDITION` error. + * + * The async variant is {@see CloudDeployClient::cancelAutomationRunAsync()} . + * + * @example samples/V1/CloudDeployClient/cancel_automation_run.php + * + * @param CancelAutomationRunRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CancelAutomationRunResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function cancelAutomationRun(CancelAutomationRunRequest $request, array $callOptions = []): CancelAutomationRunResponse + { + return $this->startApiCall('CancelAutomationRun', $request, $callOptions)->wait(); + } + + /** + * Cancels a Rollout in a given project and location. + * + * The async variant is {@see CloudDeployClient::cancelRolloutAsync()} . + * + * @example samples/V1/CloudDeployClient/cancel_rollout.php + * + * @param CancelRolloutRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CancelRolloutResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function cancelRollout(CancelRolloutRequest $request, array $callOptions = []): CancelRolloutResponse + { + return $this->startApiCall('CancelRollout', $request, $callOptions)->wait(); + } + + /** + * Creates a new Automation in a given project and location. + * + * The async variant is {@see CloudDeployClient::createAutomationAsync()} . + * + * @example samples/V1/CloudDeployClient/create_automation.php + * + * @param CreateAutomationRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function createAutomation(CreateAutomationRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateAutomation', $request, $callOptions)->wait(); + } + + /** + * Creates a new CustomTargetType in a given project and location. + * + * The async variant is {@see CloudDeployClient::createCustomTargetTypeAsync()} . + * + * @example samples/V1/CloudDeployClient/create_custom_target_type.php + * + * @param CreateCustomTargetTypeRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function createCustomTargetType(CreateCustomTargetTypeRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateCustomTargetType', $request, $callOptions)->wait(); + } + + /** + * Creates a new DeliveryPipeline in a given project and location. + * + * The async variant is {@see CloudDeployClient::createDeliveryPipelineAsync()} . + * + * @example samples/V1/CloudDeployClient/create_delivery_pipeline.php + * + * @param CreateDeliveryPipelineRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function createDeliveryPipeline(CreateDeliveryPipelineRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateDeliveryPipeline', $request, $callOptions)->wait(); + } + + /** + * Creates a new DeployPolicy in a given project and location. + * + * The async variant is {@see CloudDeployClient::createDeployPolicyAsync()} . + * + * @example samples/V1/CloudDeployClient/create_deploy_policy.php + * + * @param CreateDeployPolicyRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function createDeployPolicy(CreateDeployPolicyRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateDeployPolicy', $request, $callOptions)->wait(); + } + + /** + * Creates a new Release in a given project and location. + * + * The async variant is {@see CloudDeployClient::createReleaseAsync()} . + * + * @example samples/V1/CloudDeployClient/create_release.php + * + * @param CreateReleaseRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function createRelease(CreateReleaseRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateRelease', $request, $callOptions)->wait(); + } + + /** + * Creates a new Rollout in a given project and location. + * + * The async variant is {@see CloudDeployClient::createRolloutAsync()} . + * + * @example samples/V1/CloudDeployClient/create_rollout.php + * + * @param CreateRolloutRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function createRollout(CreateRolloutRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateRollout', $request, $callOptions)->wait(); + } + + /** + * Creates a new Target in a given project and location. + * + * The async variant is {@see CloudDeployClient::createTargetAsync()} . + * + * @example samples/V1/CloudDeployClient/create_target.php + * + * @param CreateTargetRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function createTarget(CreateTargetRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateTarget', $request, $callOptions)->wait(); + } + + /** + * Deletes a single Automation resource. + * + * The async variant is {@see CloudDeployClient::deleteAutomationAsync()} . + * + * @example samples/V1/CloudDeployClient/delete_automation.php + * + * @param DeleteAutomationRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteAutomation(DeleteAutomationRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeleteAutomation', $request, $callOptions)->wait(); + } + + /** + * Deletes a single CustomTargetType. + * + * The async variant is {@see CloudDeployClient::deleteCustomTargetTypeAsync()} . + * + * @example samples/V1/CloudDeployClient/delete_custom_target_type.php + * + * @param DeleteCustomTargetTypeRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteCustomTargetType(DeleteCustomTargetTypeRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeleteCustomTargetType', $request, $callOptions)->wait(); + } + + /** + * Deletes a single DeliveryPipeline. + * + * The async variant is {@see CloudDeployClient::deleteDeliveryPipelineAsync()} . + * + * @example samples/V1/CloudDeployClient/delete_delivery_pipeline.php + * + * @param DeleteDeliveryPipelineRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteDeliveryPipeline(DeleteDeliveryPipelineRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeleteDeliveryPipeline', $request, $callOptions)->wait(); + } + + /** + * Deletes a single DeployPolicy. + * + * The async variant is {@see CloudDeployClient::deleteDeployPolicyAsync()} . + * + * @example samples/V1/CloudDeployClient/delete_deploy_policy.php + * + * @param DeleteDeployPolicyRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteDeployPolicy(DeleteDeployPolicyRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeleteDeployPolicy', $request, $callOptions)->wait(); + } + + /** + * Deletes a single Target. + * + * The async variant is {@see CloudDeployClient::deleteTargetAsync()} . + * + * @example samples/V1/CloudDeployClient/delete_target.php + * + * @param DeleteTargetRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteTarget(DeleteTargetRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeleteTarget', $request, $callOptions)->wait(); + } + + /** + * Gets details of a single Automation. + * + * The async variant is {@see CloudDeployClient::getAutomationAsync()} . + * + * @example samples/V1/CloudDeployClient/get_automation.php + * + * @param GetAutomationRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Automation + * + * @throws ApiException Thrown if the API call fails. + */ + public function getAutomation(GetAutomationRequest $request, array $callOptions = []): Automation + { + return $this->startApiCall('GetAutomation', $request, $callOptions)->wait(); + } + + /** + * Gets details of a single AutomationRun. + * + * The async variant is {@see CloudDeployClient::getAutomationRunAsync()} . + * + * @example samples/V1/CloudDeployClient/get_automation_run.php + * + * @param GetAutomationRunRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return AutomationRun + * + * @throws ApiException Thrown if the API call fails. + */ + public function getAutomationRun(GetAutomationRunRequest $request, array $callOptions = []): AutomationRun + { + return $this->startApiCall('GetAutomationRun', $request, $callOptions)->wait(); + } + + /** + * Gets the configuration for a location. + * + * The async variant is {@see CloudDeployClient::getConfigAsync()} . + * + * @example samples/V1/CloudDeployClient/get_config.php + * + * @param GetConfigRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Config + * + * @throws ApiException Thrown if the API call fails. + */ + public function getConfig(GetConfigRequest $request, array $callOptions = []): Config + { + return $this->startApiCall('GetConfig', $request, $callOptions)->wait(); + } + + /** + * Gets details of a single CustomTargetType. + * + * The async variant is {@see CloudDeployClient::getCustomTargetTypeAsync()} . + * + * @example samples/V1/CloudDeployClient/get_custom_target_type.php + * + * @param GetCustomTargetTypeRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CustomTargetType + * + * @throws ApiException Thrown if the API call fails. + */ + public function getCustomTargetType(GetCustomTargetTypeRequest $request, array $callOptions = []): CustomTargetType + { + return $this->startApiCall('GetCustomTargetType', $request, $callOptions)->wait(); + } + + /** + * Gets details of a single DeliveryPipeline. + * + * The async variant is {@see CloudDeployClient::getDeliveryPipelineAsync()} . + * + * @example samples/V1/CloudDeployClient/get_delivery_pipeline.php + * + * @param GetDeliveryPipelineRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DeliveryPipeline + * + * @throws ApiException Thrown if the API call fails. + */ + public function getDeliveryPipeline(GetDeliveryPipelineRequest $request, array $callOptions = []): DeliveryPipeline + { + return $this->startApiCall('GetDeliveryPipeline', $request, $callOptions)->wait(); + } + + /** + * Gets details of a single DeployPolicy. + * + * The async variant is {@see CloudDeployClient::getDeployPolicyAsync()} . + * + * @example samples/V1/CloudDeployClient/get_deploy_policy.php + * + * @param GetDeployPolicyRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DeployPolicy + * + * @throws ApiException Thrown if the API call fails. + */ + public function getDeployPolicy(GetDeployPolicyRequest $request, array $callOptions = []): DeployPolicy + { + return $this->startApiCall('GetDeployPolicy', $request, $callOptions)->wait(); + } + + /** + * Gets details of a single JobRun. + * + * The async variant is {@see CloudDeployClient::getJobRunAsync()} . + * + * @example samples/V1/CloudDeployClient/get_job_run.php + * + * @param GetJobRunRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return JobRun + * + * @throws ApiException Thrown if the API call fails. + */ + public function getJobRun(GetJobRunRequest $request, array $callOptions = []): JobRun + { + return $this->startApiCall('GetJobRun', $request, $callOptions)->wait(); + } + + /** + * Gets details of a single Release. + * + * The async variant is {@see CloudDeployClient::getReleaseAsync()} . + * + * @example samples/V1/CloudDeployClient/get_release.php + * + * @param GetReleaseRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Release + * + * @throws ApiException Thrown if the API call fails. + */ + public function getRelease(GetReleaseRequest $request, array $callOptions = []): Release + { + return $this->startApiCall('GetRelease', $request, $callOptions)->wait(); + } + + /** + * Gets details of a single Rollout. + * + * The async variant is {@see CloudDeployClient::getRolloutAsync()} . + * + * @example samples/V1/CloudDeployClient/get_rollout.php + * + * @param GetRolloutRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Rollout + * + * @throws ApiException Thrown if the API call fails. + */ + public function getRollout(GetRolloutRequest $request, array $callOptions = []): Rollout + { + return $this->startApiCall('GetRollout', $request, $callOptions)->wait(); + } + + /** + * Gets details of a single Target. + * + * The async variant is {@see CloudDeployClient::getTargetAsync()} . + * + * @example samples/V1/CloudDeployClient/get_target.php + * + * @param GetTargetRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Target + * + * @throws ApiException Thrown if the API call fails. + */ + public function getTarget(GetTargetRequest $request, array $callOptions = []): Target + { + return $this->startApiCall('GetTarget', $request, $callOptions)->wait(); + } + + /** + * Ignores the specified Job in a Rollout. + * + * The async variant is {@see CloudDeployClient::ignoreJobAsync()} . + * + * @example samples/V1/CloudDeployClient/ignore_job.php + * + * @param IgnoreJobRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return IgnoreJobResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function ignoreJob(IgnoreJobRequest $request, array $callOptions = []): IgnoreJobResponse + { + return $this->startApiCall('IgnoreJob', $request, $callOptions)->wait(); + } + + /** + * Lists AutomationRuns in a given project and location. + * + * The async variant is {@see CloudDeployClient::listAutomationRunsAsync()} . + * + * @example samples/V1/CloudDeployClient/list_automation_runs.php + * + * @param ListAutomationRunsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listAutomationRuns(ListAutomationRunsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListAutomationRuns', $request, $callOptions); + } + + /** + * Lists Automations in a given project and location. + * + * The async variant is {@see CloudDeployClient::listAutomationsAsync()} . + * + * @example samples/V1/CloudDeployClient/list_automations.php + * + * @param ListAutomationsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listAutomations(ListAutomationsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListAutomations', $request, $callOptions); + } + + /** + * Lists CustomTargetTypes in a given project and location. + * + * The async variant is {@see CloudDeployClient::listCustomTargetTypesAsync()} . + * + * @example samples/V1/CloudDeployClient/list_custom_target_types.php + * + * @param ListCustomTargetTypesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listCustomTargetTypes(ListCustomTargetTypesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListCustomTargetTypes', $request, $callOptions); + } + + /** + * Lists DeliveryPipelines in a given project and location. + * + * The async variant is {@see CloudDeployClient::listDeliveryPipelinesAsync()} . + * + * @example samples/V1/CloudDeployClient/list_delivery_pipelines.php + * + * @param ListDeliveryPipelinesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listDeliveryPipelines(ListDeliveryPipelinesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListDeliveryPipelines', $request, $callOptions); + } + + /** + * Lists DeployPolicies in a given project and location. + * + * The async variant is {@see CloudDeployClient::listDeployPoliciesAsync()} . + * + * @example samples/V1/CloudDeployClient/list_deploy_policies.php + * + * @param ListDeployPoliciesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listDeployPolicies(ListDeployPoliciesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListDeployPolicies', $request, $callOptions); + } + + /** + * Lists JobRuns in a given project and location. + * + * The async variant is {@see CloudDeployClient::listJobRunsAsync()} . + * + * @example samples/V1/CloudDeployClient/list_job_runs.php + * + * @param ListJobRunsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listJobRuns(ListJobRunsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListJobRuns', $request, $callOptions); + } + + /** + * Lists Releases in a given project and location. + * + * The async variant is {@see CloudDeployClient::listReleasesAsync()} . + * + * @example samples/V1/CloudDeployClient/list_releases.php + * + * @param ListReleasesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listReleases(ListReleasesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListReleases', $request, $callOptions); + } + + /** + * Lists Rollouts in a given project and location. + * + * The async variant is {@see CloudDeployClient::listRolloutsAsync()} . + * + * @example samples/V1/CloudDeployClient/list_rollouts.php + * + * @param ListRolloutsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listRollouts(ListRolloutsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListRollouts', $request, $callOptions); + } + + /** + * Lists Targets in a given project and location. + * + * The async variant is {@see CloudDeployClient::listTargetsAsync()} . + * + * @example samples/V1/CloudDeployClient/list_targets.php + * + * @param ListTargetsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listTargets(ListTargetsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListTargets', $request, $callOptions); + } + + /** + * Retries the specified Job in a Rollout. + * + * The async variant is {@see CloudDeployClient::retryJobAsync()} . + * + * @example samples/V1/CloudDeployClient/retry_job.php + * + * @param RetryJobRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return RetryJobResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function retryJob(RetryJobRequest $request, array $callOptions = []): RetryJobResponse + { + return $this->startApiCall('RetryJob', $request, $callOptions)->wait(); + } + + /** + * Creates a `Rollout` to roll back the specified target. + * + * The async variant is {@see CloudDeployClient::rollbackTargetAsync()} . + * + * @example samples/V1/CloudDeployClient/rollback_target.php + * + * @param RollbackTargetRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return RollbackTargetResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function rollbackTarget(RollbackTargetRequest $request, array $callOptions = []): RollbackTargetResponse + { + return $this->startApiCall('RollbackTarget', $request, $callOptions)->wait(); + } + + /** + * Terminates a Job Run in a given project and location. + * + * The async variant is {@see CloudDeployClient::terminateJobRunAsync()} . + * + * @example samples/V1/CloudDeployClient/terminate_job_run.php + * + * @param TerminateJobRunRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return TerminateJobRunResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function terminateJobRun(TerminateJobRunRequest $request, array $callOptions = []): TerminateJobRunResponse + { + return $this->startApiCall('TerminateJobRun', $request, $callOptions)->wait(); + } + + /** + * Updates the parameters of a single Automation resource. + * + * The async variant is {@see CloudDeployClient::updateAutomationAsync()} . + * + * @example samples/V1/CloudDeployClient/update_automation.php + * + * @param UpdateAutomationRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateAutomation(UpdateAutomationRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UpdateAutomation', $request, $callOptions)->wait(); + } + + /** + * Updates a single CustomTargetType. + * + * The async variant is {@see CloudDeployClient::updateCustomTargetTypeAsync()} . + * + * @example samples/V1/CloudDeployClient/update_custom_target_type.php + * + * @param UpdateCustomTargetTypeRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateCustomTargetType(UpdateCustomTargetTypeRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UpdateCustomTargetType', $request, $callOptions)->wait(); + } + + /** + * Updates the parameters of a single DeliveryPipeline. + * + * The async variant is {@see CloudDeployClient::updateDeliveryPipelineAsync()} . + * + * @example samples/V1/CloudDeployClient/update_delivery_pipeline.php + * + * @param UpdateDeliveryPipelineRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateDeliveryPipeline(UpdateDeliveryPipelineRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UpdateDeliveryPipeline', $request, $callOptions)->wait(); + } + + /** + * Updates the parameters of a single DeployPolicy. + * + * The async variant is {@see CloudDeployClient::updateDeployPolicyAsync()} . + * + * @example samples/V1/CloudDeployClient/update_deploy_policy.php + * + * @param UpdateDeployPolicyRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateDeployPolicy(UpdateDeployPolicyRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UpdateDeployPolicy', $request, $callOptions)->wait(); + } + + /** + * Updates the parameters of a single Target. + * + * The async variant is {@see CloudDeployClient::updateTargetAsync()} . + * + * @example samples/V1/CloudDeployClient/update_target.php + * + * @param UpdateTargetRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateTarget(UpdateTargetRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UpdateTarget', $request, $callOptions)->wait(); + } + + /** + * Gets information about a location. + * + * The async variant is {@see CloudDeployClient::getLocationAsync()} . + * + * @example samples/V1/CloudDeployClient/get_location.php + * + * @param GetLocationRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Location + * + * @throws ApiException Thrown if the API call fails. + */ + public function getLocation(GetLocationRequest $request, array $callOptions = []): Location + { + return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); + } + + /** + * Lists information about the supported locations for this service. + * + * The async variant is {@see CloudDeployClient::listLocationsAsync()} . + * + * @example samples/V1/CloudDeployClient/list_locations.php + * + * @param ListLocationsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListLocations', $request, $callOptions); + } + + /** + * Gets the access control policy for a resource. Returns an empty policy + if the resource exists and does not have a policy set. + * + * The async variant is {@see CloudDeployClient::getIamPolicyAsync()} . + * + * @example samples/V1/CloudDeployClient/get_iam_policy.php + * + * @param GetIamPolicyRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Policy + * + * @throws ApiException Thrown if the API call fails. + */ + public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * Sets the access control policy on the specified resource. Replaces + any existing policy. + + Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` + errors. + * + * The async variant is {@see CloudDeployClient::setIamPolicyAsync()} . + * + * @example samples/V1/CloudDeployClient/set_iam_policy.php + * + * @param SetIamPolicyRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Policy + * + * @throws ApiException Thrown if the API call fails. + */ + public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + resource does not exist, this will return an empty set of + permissions, not a `NOT_FOUND` error. + + Note: This operation is designed to be used for building + permission-aware UIs and command-line tools, not for authorization + checking. This operation may "fail open" without warning. + * + * The async variant is {@see CloudDeployClient::testIamPermissionsAsync()} . + * + * @example samples/V1/CloudDeployClient/test_iam_permissions.php + * + * @param TestIamPermissionsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return TestIamPermissionsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse + { + return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/Deploy/v1/src/V1/gapic_metadata.json b/owl-bot-staging/Deploy/v1/src/V1/gapic_metadata.json new file mode 100644 index 000000000000..cc25967ba57d --- /dev/null +++ b/owl-bot-staging/Deploy/v1/src/V1/gapic_metadata.json @@ -0,0 +1,268 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", + "language": "php", + "protoPackage": "google.cloud.deploy.v1", + "libraryPackage": "Google\\Cloud\\Deploy\\V1", + "services": { + "CloudDeploy": { + "clients": { + "grpc": { + "libraryClient": "CloudDeployGapicClient", + "rpcs": { + "AbandonRelease": { + "methods": [ + "abandonRelease" + ] + }, + "AdvanceRollout": { + "methods": [ + "advanceRollout" + ] + }, + "ApproveRollout": { + "methods": [ + "approveRollout" + ] + }, + "CancelAutomationRun": { + "methods": [ + "cancelAutomationRun" + ] + }, + "CancelRollout": { + "methods": [ + "cancelRollout" + ] + }, + "CreateAutomation": { + "methods": [ + "createAutomation" + ] + }, + "CreateCustomTargetType": { + "methods": [ + "createCustomTargetType" + ] + }, + "CreateDeliveryPipeline": { + "methods": [ + "createDeliveryPipeline" + ] + }, + "CreateDeployPolicy": { + "methods": [ + "createDeployPolicy" + ] + }, + "CreateRelease": { + "methods": [ + "createRelease" + ] + }, + "CreateRollout": { + "methods": [ + "createRollout" + ] + }, + "CreateTarget": { + "methods": [ + "createTarget" + ] + }, + "DeleteAutomation": { + "methods": [ + "deleteAutomation" + ] + }, + "DeleteCustomTargetType": { + "methods": [ + "deleteCustomTargetType" + ] + }, + "DeleteDeliveryPipeline": { + "methods": [ + "deleteDeliveryPipeline" + ] + }, + "DeleteDeployPolicy": { + "methods": [ + "deleteDeployPolicy" + ] + }, + "DeleteTarget": { + "methods": [ + "deleteTarget" + ] + }, + "GetAutomation": { + "methods": [ + "getAutomation" + ] + }, + "GetAutomationRun": { + "methods": [ + "getAutomationRun" + ] + }, + "GetConfig": { + "methods": [ + "getConfig" + ] + }, + "GetCustomTargetType": { + "methods": [ + "getCustomTargetType" + ] + }, + "GetDeliveryPipeline": { + "methods": [ + "getDeliveryPipeline" + ] + }, + "GetDeployPolicy": { + "methods": [ + "getDeployPolicy" + ] + }, + "GetJobRun": { + "methods": [ + "getJobRun" + ] + }, + "GetRelease": { + "methods": [ + "getRelease" + ] + }, + "GetRollout": { + "methods": [ + "getRollout" + ] + }, + "GetTarget": { + "methods": [ + "getTarget" + ] + }, + "IgnoreJob": { + "methods": [ + "ignoreJob" + ] + }, + "ListAutomationRuns": { + "methods": [ + "listAutomationRuns" + ] + }, + "ListAutomations": { + "methods": [ + "listAutomations" + ] + }, + "ListCustomTargetTypes": { + "methods": [ + "listCustomTargetTypes" + ] + }, + "ListDeliveryPipelines": { + "methods": [ + "listDeliveryPipelines" + ] + }, + "ListDeployPolicies": { + "methods": [ + "listDeployPolicies" + ] + }, + "ListJobRuns": { + "methods": [ + "listJobRuns" + ] + }, + "ListReleases": { + "methods": [ + "listReleases" + ] + }, + "ListRollouts": { + "methods": [ + "listRollouts" + ] + }, + "ListTargets": { + "methods": [ + "listTargets" + ] + }, + "RetryJob": { + "methods": [ + "retryJob" + ] + }, + "RollbackTarget": { + "methods": [ + "rollbackTarget" + ] + }, + "TerminateJobRun": { + "methods": [ + "terminateJobRun" + ] + }, + "UpdateAutomation": { + "methods": [ + "updateAutomation" + ] + }, + "UpdateCustomTargetType": { + "methods": [ + "updateCustomTargetType" + ] + }, + "UpdateDeliveryPipeline": { + "methods": [ + "updateDeliveryPipeline" + ] + }, + "UpdateDeployPolicy": { + "methods": [ + "updateDeployPolicy" + ] + }, + "UpdateTarget": { + "methods": [ + "updateTarget" + ] + }, + "GetLocation": { + "methods": [ + "getLocation" + ] + }, + "ListLocations": { + "methods": [ + "listLocations" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/Deploy/v1/src/V1/resources/cloud_deploy_client_config.json b/owl-bot-staging/Deploy/v1/src/V1/resources/cloud_deploy_client_config.json new file mode 100644 index 000000000000..89a03316253f --- /dev/null +++ b/owl-bot-staging/Deploy/v1/src/V1/resources/cloud_deploy_client_config.json @@ -0,0 +1,294 @@ +{ + "interfaces": { + "google.cloud.deploy.v1.CloudDeploy": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE" + ], + "no_retry_1_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + }, + "no_retry_1_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + } + }, + "methods": { + "AbandonRelease": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "AdvanceRollout": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "ApproveRollout": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CancelAutomationRun": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CancelRollout": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CreateAutomation": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CreateCustomTargetType": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CreateDeliveryPipeline": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CreateDeployPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CreateRelease": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CreateRollout": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CreateTarget": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeleteAutomation": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeleteCustomTargetType": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeleteDeliveryPipeline": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeleteDeployPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeleteTarget": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "GetAutomation": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetAutomationRun": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetConfig": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetCustomTargetType": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetDeliveryPipeline": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetDeployPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetJobRun": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetRelease": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetRollout": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetTarget": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "IgnoreJob": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "ListAutomationRuns": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListAutomations": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListCustomTargetTypes": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListDeliveryPipelines": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListDeployPolicies": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListJobRuns": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListReleases": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListRollouts": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListTargets": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "RetryJob": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "RollbackTarget": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "TerminateJobRun": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "UpdateAutomation": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "UpdateCustomTargetType": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "UpdateDeliveryPipeline": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "UpdateDeployPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "UpdateTarget": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "GetLocation": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListLocations": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "SetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "TestIamPermissions": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/Deploy/v1/src/V1/resources/cloud_deploy_descriptor_config.php b/owl-bot-staging/Deploy/v1/src/V1/resources/cloud_deploy_descriptor_config.php new file mode 100644 index 000000000000..9842887d33c3 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/src/V1/resources/cloud_deploy_descriptor_config.php @@ -0,0 +1,857 @@ + [ + 'google.cloud.deploy.v1.CloudDeploy' => [ + 'CreateAutomation' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Deploy\V1\Automation', + 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateCustomTargetType' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Deploy\V1\CustomTargetType', + 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateDeliveryPipeline' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Deploy\V1\DeliveryPipeline', + 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateDeployPolicy' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Deploy\V1\DeployPolicy', + 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateRelease' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Deploy\V1\Release', + 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateRollout' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Deploy\V1\Rollout', + 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateTarget' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Deploy\V1\Target', + 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteAutomation' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteCustomTargetType' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteDeliveryPipeline' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteDeployPolicy' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteTarget' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'UpdateAutomation' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Deploy\V1\Automation', + 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'automation.name', + 'fieldAccessors' => [ + 'getAutomation', + 'getName', + ], + ], + ], + ], + 'UpdateCustomTargetType' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Deploy\V1\CustomTargetType', + 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'custom_target_type.name', + 'fieldAccessors' => [ + 'getCustomTargetType', + 'getName', + ], + ], + ], + ], + 'UpdateDeliveryPipeline' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Deploy\V1\DeliveryPipeline', + 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'delivery_pipeline.name', + 'fieldAccessors' => [ + 'getDeliveryPipeline', + 'getName', + ], + ], + ], + ], + 'UpdateDeployPolicy' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Deploy\V1\DeployPolicy', + 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'deploy_policy.name', + 'fieldAccessors' => [ + 'getDeployPolicy', + 'getName', + ], + ], + ], + ], + 'UpdateTarget' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Deploy\V1\Target', + 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'target.name', + 'fieldAccessors' => [ + 'getTarget', + 'getName', + ], + ], + ], + ], + 'AbandonRelease' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Deploy\V1\AbandonReleaseResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'AdvanceRollout' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Deploy\V1\AdvanceRolloutResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ApproveRollout' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Deploy\V1\ApproveRolloutResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'CancelAutomationRun' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Deploy\V1\CancelAutomationRunResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'CancelRollout' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Deploy\V1\CancelRolloutResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetAutomation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Deploy\V1\Automation', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetAutomationRun' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Deploy\V1\AutomationRun', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Deploy\V1\Config', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetCustomTargetType' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Deploy\V1\CustomTargetType', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetDeliveryPipeline' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Deploy\V1\DeliveryPipeline', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetDeployPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Deploy\V1\DeployPolicy', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetJobRun' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Deploy\V1\JobRun', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetRelease' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Deploy\V1\Release', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetRollout' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Deploy\V1\Rollout', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetTarget' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Deploy\V1\Target', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'IgnoreJob' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Deploy\V1\IgnoreJobResponse', + 'headerParams' => [ + [ + 'keyName' => 'rollout', + 'fieldAccessors' => [ + 'getRollout', + ], + ], + ], + ], + 'ListAutomationRuns' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getAutomationRuns', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Deploy\V1\ListAutomationRunsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListAutomations' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getAutomations', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Deploy\V1\ListAutomationsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListCustomTargetTypes' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getCustomTargetTypes', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Deploy\V1\ListCustomTargetTypesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListDeliveryPipelines' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getDeliveryPipelines', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Deploy\V1\ListDeliveryPipelinesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListDeployPolicies' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getDeployPolicies', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Deploy\V1\ListDeployPoliciesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListJobRuns' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getJobRuns', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Deploy\V1\ListJobRunsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListReleases' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getReleases', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Deploy\V1\ListReleasesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListRollouts' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getRollouts', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Deploy\V1\ListRolloutsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListTargets' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getTargets', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Deploy\V1\ListTargetsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'RetryJob' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Deploy\V1\RetryJobResponse', + 'headerParams' => [ + [ + 'keyName' => 'rollout', + 'fieldAccessors' => [ + 'getRollout', + ], + ], + ], + ], + 'RollbackTarget' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Deploy\V1\RollbackTargetResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'TerminateJobRun' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Deploy\V1\TerminateJobRunResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetLocation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Location\Location', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'ListLocations' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getLocations', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'GetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'SetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'TestIamPermissions' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'templateMap' => [ + 'automation' => 'projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automations/{automation}', + 'automationRun' => 'projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}', + 'build' => 'projects/{project}/locations/{location}/builds/{build}', + 'cluster' => 'projects/{project}/locations/{location}/clusters/{cluster}', + 'config' => 'projects/{project}/locations/{location}/config', + 'customTargetType' => 'projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}', + 'deliveryPipeline' => 'projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}', + 'deployPolicy' => 'projects/{project}/locations/{location}/deployPolicies/{deploy_policy}', + 'job' => 'projects/{project}/locations/{location}/jobs/{job}', + 'jobRun' => 'projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/releases/{release}/rollouts/{rollout}/jobRuns/{job_run}', + 'location' => 'projects/{project}/locations/{location}', + 'membership' => 'projects/{project}/locations/{location}/memberships/{membership}', + 'release' => 'projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/releases/{release}', + 'repository' => 'projects/{project}/locations/{location}/connections/{connection}/repositories/{repository}', + 'rollout' => 'projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/releases/{release}/rollouts/{rollout}', + 'service' => 'projects/{project}/locations/{location}/services/{service}', + 'target' => 'projects/{project}/locations/{location}/targets/{target}', + 'workerPool' => 'projects/{project}/locations/{location}/workerPools/{worker_pool}', + ], + ], + ], +]; diff --git a/owl-bot-staging/Deploy/v1/src/V1/resources/cloud_deploy_rest_client_config.php b/owl-bot-staging/Deploy/v1/src/V1/resources/cloud_deploy_rest_client_config.php new file mode 100644 index 000000000000..0391c32a6344 --- /dev/null +++ b/owl-bot-staging/Deploy/v1/src/V1/resources/cloud_deploy_rest_client_config.php @@ -0,0 +1,723 @@ + [ + 'google.cloud.deploy.v1.CloudDeploy' => [ + 'AbandonRelease' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*}:abandon', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'AdvanceRollout' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*}:advance', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ApproveRollout' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*}:approve', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'CancelAutomationRun' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*/automationRuns/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'CancelRollout' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'CreateAutomation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/deliveryPipelines/*}/automations', + 'body' => 'automation', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'automation_id', + ], + ], + 'CreateCustomTargetType' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/customTargetTypes', + 'body' => 'custom_target_type', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'custom_target_type_id', + ], + ], + 'CreateDeliveryPipeline' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/deliveryPipelines', + 'body' => 'delivery_pipeline', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'delivery_pipeline_id', + ], + ], + 'CreateDeployPolicy' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/deployPolicies', + 'body' => 'deploy_policy', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'deploy_policy_id', + ], + ], + 'CreateRelease' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/deliveryPipelines/*}/releases', + 'body' => 'release', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'release_id', + ], + ], + 'CreateRollout' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/deliveryPipelines/*/releases/*}/rollouts', + 'body' => 'rollout', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'rollout_id', + ], + ], + 'CreateTarget' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/targets', + 'body' => 'target', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'target_id', + ], + ], + 'DeleteAutomation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*/automations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteCustomTargetType' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/customTargetTypes/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteDeliveryPipeline' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteDeployPolicy' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/deployPolicies/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteTarget' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/targets/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetAutomation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*/automations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetAutomationRun' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*/automationRuns/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetConfig' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/config}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetCustomTargetType' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/customTargetTypes/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetDeliveryPipeline' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetDeployPolicy' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/deployPolicies/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetJobRun' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*/jobRuns/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetRelease' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetRollout' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetTarget' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/targets/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'IgnoreJob' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{rollout=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*}:ignoreJob', + 'body' => '*', + 'placeholders' => [ + 'rollout' => [ + 'getters' => [ + 'getRollout', + ], + ], + ], + ], + 'ListAutomationRuns' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/deliveryPipelines/*}/automationRuns', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListAutomations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/deliveryPipelines/*}/automations', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListCustomTargetTypes' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/customTargetTypes', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListDeliveryPipelines' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/deliveryPipelines', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListDeployPolicies' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/deployPolicies', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListJobRuns' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*}/jobRuns', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListReleases' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/deliveryPipelines/*}/releases', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListRollouts' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/deliveryPipelines/*/releases/*}/rollouts', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListTargets' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/targets', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'RetryJob' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{rollout=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*}:retryJob', + 'body' => '*', + 'placeholders' => [ + 'rollout' => [ + 'getters' => [ + 'getRollout', + ], + ], + ], + ], + 'RollbackTarget' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*}:rollbackTarget', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'TerminateJobRun' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*/jobRuns/*}:terminate', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'UpdateAutomation' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{automation.name=projects/*/locations/*/deliveryPipelines/*/automations/*}', + 'body' => 'automation', + 'placeholders' => [ + 'automation.name' => [ + 'getters' => [ + 'getAutomation', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateCustomTargetType' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{custom_target_type.name=projects/*/locations/*/customTargetTypes/*}', + 'body' => 'custom_target_type', + 'placeholders' => [ + 'custom_target_type.name' => [ + 'getters' => [ + 'getCustomTargetType', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateDeliveryPipeline' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{delivery_pipeline.name=projects/*/locations/*/deliveryPipelines/*}', + 'body' => 'delivery_pipeline', + 'placeholders' => [ + 'delivery_pipeline.name' => [ + 'getters' => [ + 'getDeliveryPipeline', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateDeployPolicy' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{deploy_policy.name=projects/*/locations/*/deployPolicies/*}', + 'body' => 'deploy_policy', + 'placeholders' => [ + 'deploy_policy.name' => [ + 'getters' => [ + 'getDeployPolicy', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateTarget' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{target.name=projects/*/locations/*/targets/*}', + 'body' => 'target', + 'placeholders' => [ + 'target.name' => [ + 'getters' => [ + 'getTarget', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + ], + 'google.cloud.location.Locations' => [ + 'GetLocation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListLocations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*}/locations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + 'google.iam.v1.IAMPolicy' => [ + 'GetIamPolicy' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/deliveryPipelines/*}:getIamPolicy', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/targets/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/customTargetTypes/*}:getIamPolicy', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'SetIamPolicy' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/deliveryPipelines/*}:setIamPolicy', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/targets/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/customTargetTypes/*}:setIamPolicy', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'TestIamPermissions' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/deliveryPipelines/*}:testIamPermissions', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/targets/*}:testIamPermissions', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Deploy/v1/tests/Unit/V1/Client/CloudDeployClientTest.php b/owl-bot-staging/Deploy/v1/tests/Unit/V1/Client/CloudDeployClientTest.php new file mode 100644 index 000000000000..e0b90d0285ad --- /dev/null +++ b/owl-bot-staging/Deploy/v1/tests/Unit/V1/Client/CloudDeployClientTest.php @@ -0,0 +1,4857 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return CloudDeployClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new CloudDeployClient($options); + } + + /** @test */ + public function abandonReleaseTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new AbandonReleaseResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->releaseName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]'); + $request = (new AbandonReleaseRequest()) + ->setName($formattedName); + $response = $gapicClient->abandonRelease($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/AbandonRelease', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function abandonReleaseExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->releaseName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]'); + $request = (new AbandonReleaseRequest()) + ->setName($formattedName); + try { + $gapicClient->abandonRelease($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function advanceRolloutTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new AdvanceRolloutResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]'); + $phaseId = 'phaseId-1676299681'; + $request = (new AdvanceRolloutRequest()) + ->setName($formattedName) + ->setPhaseId($phaseId); + $response = $gapicClient->advanceRollout($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/AdvanceRollout', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getPhaseId(); + $this->assertProtobufEquals($phaseId, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function advanceRolloutExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]'); + $phaseId = 'phaseId-1676299681'; + $request = (new AdvanceRolloutRequest()) + ->setName($formattedName) + ->setPhaseId($phaseId); + try { + $gapicClient->advanceRollout($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function approveRolloutTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new ApproveRolloutResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]'); + $approved = false; + $request = (new ApproveRolloutRequest()) + ->setName($formattedName) + ->setApproved($approved); + $response = $gapicClient->approveRollout($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/ApproveRollout', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getApproved(); + $this->assertProtobufEquals($approved, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function approveRolloutExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]'); + $approved = false; + $request = (new ApproveRolloutRequest()) + ->setName($formattedName) + ->setApproved($approved); + try { + $gapicClient->approveRollout($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function cancelAutomationRunTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new CancelAutomationRunResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->automationRunName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[AUTOMATION_RUN]'); + $request = (new CancelAutomationRunRequest()) + ->setName($formattedName); + $response = $gapicClient->cancelAutomationRun($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/CancelAutomationRun', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function cancelAutomationRunExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->automationRunName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[AUTOMATION_RUN]'); + $request = (new CancelAutomationRunRequest()) + ->setName($formattedName); + try { + $gapicClient->cancelAutomationRun($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function cancelRolloutTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new CancelRolloutResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]'); + $request = (new CancelRolloutRequest()) + ->setName($formattedName); + $response = $gapicClient->cancelRollout($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/CancelRollout', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function cancelRolloutExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]'); + $request = (new CancelRolloutRequest()) + ->setName($formattedName); + try { + $gapicClient->cancelRollout($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createAutomationTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createAutomationTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $etag = 'etag3123477'; + $suspended = false; + $serviceAccount = 'serviceAccount-1948028253'; + $expectedResponse = new Automation(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setEtag($etag); + $expectedResponse->setSuspended($suspended); + $expectedResponse->setServiceAccount($serviceAccount); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createAutomationTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]'); + $automationId = 'automationId1989390659'; + $automation = new Automation(); + $automationServiceAccount = 'automationServiceAccount-192216401'; + $automation->setServiceAccount($automationServiceAccount); + $automationSelector = new AutomationResourceSelector(); + $automation->setSelector($automationSelector); + $automationRules = []; + $automation->setRules($automationRules); + $request = (new CreateAutomationRequest()) + ->setParent($formattedParent) + ->setAutomationId($automationId) + ->setAutomation($automation); + $response = $gapicClient->createAutomation($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/CreateAutomation', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getAutomationId(); + $this->assertProtobufEquals($automationId, $actualValue); + $actualValue = $actualApiRequestObject->getAutomation(); + $this->assertProtobufEquals($automation, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createAutomationTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createAutomationExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createAutomationTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]'); + $automationId = 'automationId1989390659'; + $automation = new Automation(); + $automationServiceAccount = 'automationServiceAccount-192216401'; + $automation->setServiceAccount($automationServiceAccount); + $automationSelector = new AutomationResourceSelector(); + $automation->setSelector($automationSelector); + $automationRules = []; + $automation->setRules($automationRules); + $request = (new CreateAutomationRequest()) + ->setParent($formattedParent) + ->setAutomationId($automationId) + ->setAutomation($automation); + $response = $gapicClient->createAutomation($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createAutomationTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createCustomTargetTypeTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createCustomTargetTypeTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $customTargetTypeId2 = 'customTargetTypeId2-1392620077'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $etag = 'etag3123477'; + $expectedResponse = new CustomTargetType(); + $expectedResponse->setName($name); + $expectedResponse->setCustomTargetTypeId($customTargetTypeId2); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setEtag($etag); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createCustomTargetTypeTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $customTargetTypeId = 'customTargetTypeId-2048374240'; + $customTargetType = new CustomTargetType(); + $request = (new CreateCustomTargetTypeRequest()) + ->setParent($formattedParent) + ->setCustomTargetTypeId($customTargetTypeId) + ->setCustomTargetType($customTargetType); + $response = $gapicClient->createCustomTargetType($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/CreateCustomTargetType', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getCustomTargetTypeId(); + $this->assertProtobufEquals($customTargetTypeId, $actualValue); + $actualValue = $actualApiRequestObject->getCustomTargetType(); + $this->assertProtobufEquals($customTargetType, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createCustomTargetTypeTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createCustomTargetTypeExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createCustomTargetTypeTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $customTargetTypeId = 'customTargetTypeId-2048374240'; + $customTargetType = new CustomTargetType(); + $request = (new CreateCustomTargetTypeRequest()) + ->setParent($formattedParent) + ->setCustomTargetTypeId($customTargetTypeId) + ->setCustomTargetType($customTargetType); + $response = $gapicClient->createCustomTargetType($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createCustomTargetTypeTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createDeliveryPipelineTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createDeliveryPipelineTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $etag = 'etag3123477'; + $suspended = false; + $expectedResponse = new DeliveryPipeline(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setEtag($etag); + $expectedResponse->setSuspended($suspended); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createDeliveryPipelineTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $deliveryPipelineId = 'deliveryPipelineId1972590605'; + $deliveryPipeline = new DeliveryPipeline(); + $request = (new CreateDeliveryPipelineRequest()) + ->setParent($formattedParent) + ->setDeliveryPipelineId($deliveryPipelineId) + ->setDeliveryPipeline($deliveryPipeline); + $response = $gapicClient->createDeliveryPipeline($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/CreateDeliveryPipeline', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getDeliveryPipelineId(); + $this->assertProtobufEquals($deliveryPipelineId, $actualValue); + $actualValue = $actualApiRequestObject->getDeliveryPipeline(); + $this->assertProtobufEquals($deliveryPipeline, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createDeliveryPipelineTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createDeliveryPipelineExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createDeliveryPipelineTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $deliveryPipelineId = 'deliveryPipelineId1972590605'; + $deliveryPipeline = new DeliveryPipeline(); + $request = (new CreateDeliveryPipelineRequest()) + ->setParent($formattedParent) + ->setDeliveryPipelineId($deliveryPipelineId) + ->setDeliveryPipeline($deliveryPipeline); + $response = $gapicClient->createDeliveryPipeline($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createDeliveryPipelineTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createDeployPolicyTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createDeployPolicyTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $suspended = false; + $etag = 'etag3123477'; + $expectedResponse = new DeployPolicy(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setSuspended($suspended); + $expectedResponse->setEtag($etag); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createDeployPolicyTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $deployPolicyId = 'deployPolicyId1355226608'; + $deployPolicy = new DeployPolicy(); + $deployPolicySelectors = []; + $deployPolicy->setSelectors($deployPolicySelectors); + $deployPolicyRules = []; + $deployPolicy->setRules($deployPolicyRules); + $request = (new CreateDeployPolicyRequest()) + ->setParent($formattedParent) + ->setDeployPolicyId($deployPolicyId) + ->setDeployPolicy($deployPolicy); + $response = $gapicClient->createDeployPolicy($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/CreateDeployPolicy', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getDeployPolicyId(); + $this->assertProtobufEquals($deployPolicyId, $actualValue); + $actualValue = $actualApiRequestObject->getDeployPolicy(); + $this->assertProtobufEquals($deployPolicy, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createDeployPolicyTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createDeployPolicyExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createDeployPolicyTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $deployPolicyId = 'deployPolicyId1355226608'; + $deployPolicy = new DeployPolicy(); + $deployPolicySelectors = []; + $deployPolicy->setSelectors($deployPolicySelectors); + $deployPolicyRules = []; + $deployPolicy->setRules($deployPolicyRules); + $request = (new CreateDeployPolicyRequest()) + ->setParent($formattedParent) + ->setDeployPolicyId($deployPolicyId) + ->setDeployPolicy($deployPolicy); + $response = $gapicClient->createDeployPolicy($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createDeployPolicyTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createReleaseTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createReleaseTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $abandoned = true; + $skaffoldConfigUri = 'skaffoldConfigUri-860592176'; + $skaffoldConfigPath = 'skaffoldConfigPath-908718527'; + $etag = 'etag3123477'; + $skaffoldVersion = 'skaffoldVersion-1146663017'; + $expectedResponse = new Release(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setAbandoned($abandoned); + $expectedResponse->setSkaffoldConfigUri($skaffoldConfigUri); + $expectedResponse->setSkaffoldConfigPath($skaffoldConfigPath); + $expectedResponse->setEtag($etag); + $expectedResponse->setSkaffoldVersion($skaffoldVersion); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createReleaseTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]'); + $releaseId = 'releaseId-1517127597'; + $release = new Release(); + $request = (new CreateReleaseRequest()) + ->setParent($formattedParent) + ->setReleaseId($releaseId) + ->setRelease($release); + $response = $gapicClient->createRelease($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/CreateRelease', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getReleaseId(); + $this->assertProtobufEquals($releaseId, $actualValue); + $actualValue = $actualApiRequestObject->getRelease(); + $this->assertProtobufEquals($release, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createReleaseTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createReleaseExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createReleaseTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]'); + $releaseId = 'releaseId-1517127597'; + $release = new Release(); + $request = (new CreateReleaseRequest()) + ->setParent($formattedParent) + ->setReleaseId($releaseId) + ->setRelease($release); + $response = $gapicClient->createRelease($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createReleaseTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createRolloutTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createRolloutTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $targetId = 'targetId-815576439'; + $failureReason = 'failureReason1743941273'; + $deployingBuild = 'deployingBuild931623626'; + $etag = 'etag3123477'; + $controllerRollout = 'controllerRollout-146558962'; + $rollbackOfRollout = 'rollbackOfRollout-1880699004'; + $activeRepairAutomationRun = 'activeRepairAutomationRun-2089265700'; + $expectedResponse = new Rollout(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setTargetId($targetId); + $expectedResponse->setFailureReason($failureReason); + $expectedResponse->setDeployingBuild($deployingBuild); + $expectedResponse->setEtag($etag); + $expectedResponse->setControllerRollout($controllerRollout); + $expectedResponse->setRollbackOfRollout($rollbackOfRollout); + $expectedResponse->setActiveRepairAutomationRun($activeRepairAutomationRun); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createRolloutTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->releaseName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]'); + $rolloutId = 'rolloutId-91142551'; + $rollout = new Rollout(); + $rolloutTargetId = 'rolloutTargetId509050717'; + $rollout->setTargetId($rolloutTargetId); + $request = (new CreateRolloutRequest()) + ->setParent($formattedParent) + ->setRolloutId($rolloutId) + ->setRollout($rollout); + $response = $gapicClient->createRollout($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/CreateRollout', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getRolloutId(); + $this->assertProtobufEquals($rolloutId, $actualValue); + $actualValue = $actualApiRequestObject->getRollout(); + $this->assertProtobufEquals($rollout, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createRolloutTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createRolloutExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createRolloutTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->releaseName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]'); + $rolloutId = 'rolloutId-91142551'; + $rollout = new Rollout(); + $rolloutTargetId = 'rolloutTargetId509050717'; + $rollout->setTargetId($rolloutTargetId); + $request = (new CreateRolloutRequest()) + ->setParent($formattedParent) + ->setRolloutId($rolloutId) + ->setRollout($rollout); + $response = $gapicClient->createRollout($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createRolloutTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createTargetTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createTargetTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $targetId2 = 'targetId2-2084907012'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $requireApproval = false; + $etag = 'etag3123477'; + $expectedResponse = new Target(); + $expectedResponse->setName($name); + $expectedResponse->setTargetId($targetId2); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setRequireApproval($requireApproval); + $expectedResponse->setEtag($etag); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createTargetTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $targetId = 'targetId-815576439'; + $target = new Target(); + $request = (new CreateTargetRequest()) + ->setParent($formattedParent) + ->setTargetId($targetId) + ->setTarget($target); + $response = $gapicClient->createTarget($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/CreateTarget', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getTargetId(); + $this->assertProtobufEquals($targetId, $actualValue); + $actualValue = $actualApiRequestObject->getTarget(); + $this->assertProtobufEquals($target, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createTargetTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createTargetExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createTargetTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $targetId = 'targetId-815576439'; + $target = new Target(); + $request = (new CreateTargetRequest()) + ->setParent($formattedParent) + ->setTargetId($targetId) + ->setTarget($target); + $response = $gapicClient->createTarget($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createTargetTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function deleteAutomationTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/deleteAutomationTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteAutomationTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->automationName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[AUTOMATION]'); + $request = (new DeleteAutomationRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteAutomation($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/DeleteAutomation', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteAutomationTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function deleteAutomationExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/deleteAutomationTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->automationName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[AUTOMATION]'); + $request = (new DeleteAutomationRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteAutomation($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteAutomationTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function deleteCustomTargetTypeTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/deleteCustomTargetTypeTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteCustomTargetTypeTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->customTargetTypeName('[PROJECT]', '[LOCATION]', '[CUSTOM_TARGET_TYPE]'); + $request = (new DeleteCustomTargetTypeRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteCustomTargetType($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/DeleteCustomTargetType', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteCustomTargetTypeTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function deleteCustomTargetTypeExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/deleteCustomTargetTypeTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->customTargetTypeName('[PROJECT]', '[LOCATION]', '[CUSTOM_TARGET_TYPE]'); + $request = (new DeleteCustomTargetTypeRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteCustomTargetType($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteCustomTargetTypeTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function deleteDeliveryPipelineTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/deleteDeliveryPipelineTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteDeliveryPipelineTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]'); + $request = (new DeleteDeliveryPipelineRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteDeliveryPipeline($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/DeleteDeliveryPipeline', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteDeliveryPipelineTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function deleteDeliveryPipelineExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/deleteDeliveryPipelineTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]'); + $request = (new DeleteDeliveryPipelineRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteDeliveryPipeline($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteDeliveryPipelineTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function deleteDeployPolicyTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/deleteDeployPolicyTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteDeployPolicyTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->deployPolicyName('[PROJECT]', '[LOCATION]', '[DEPLOY_POLICY]'); + $request = (new DeleteDeployPolicyRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteDeployPolicy($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/DeleteDeployPolicy', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteDeployPolicyTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function deleteDeployPolicyExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/deleteDeployPolicyTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->deployPolicyName('[PROJECT]', '[LOCATION]', '[DEPLOY_POLICY]'); + $request = (new DeleteDeployPolicyRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteDeployPolicy($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteDeployPolicyTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function deleteTargetTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/deleteTargetTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteTargetTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->targetName('[PROJECT]', '[LOCATION]', '[TARGET]'); + $request = (new DeleteTargetRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteTarget($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/DeleteTarget', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteTargetTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function deleteTargetExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/deleteTargetTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->targetName('[PROJECT]', '[LOCATION]', '[TARGET]'); + $request = (new DeleteTargetRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteTarget($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteTargetTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function getAutomationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $etag = 'etag3123477'; + $suspended = false; + $serviceAccount = 'serviceAccount-1948028253'; + $expectedResponse = new Automation(); + $expectedResponse->setName($name2); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setEtag($etag); + $expectedResponse->setSuspended($suspended); + $expectedResponse->setServiceAccount($serviceAccount); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->automationName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[AUTOMATION]'); + $request = (new GetAutomationRequest()) + ->setName($formattedName); + $response = $gapicClient->getAutomation($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/GetAutomation', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAutomationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->automationName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[AUTOMATION]'); + $request = (new GetAutomationRequest()) + ->setName($formattedName); + try { + $gapicClient->getAutomation($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAutomationRunTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $etag = 'etag3123477'; + $serviceAccount = 'serviceAccount-1948028253'; + $targetId = 'targetId-815576439'; + $stateDescription = 'stateDescription1692226894'; + $ruleId = 'ruleId1548659006'; + $automationId = 'automationId1989390659'; + $expectedResponse = new AutomationRun(); + $expectedResponse->setName($name2); + $expectedResponse->setEtag($etag); + $expectedResponse->setServiceAccount($serviceAccount); + $expectedResponse->setTargetId($targetId); + $expectedResponse->setStateDescription($stateDescription); + $expectedResponse->setRuleId($ruleId); + $expectedResponse->setAutomationId($automationId); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->automationRunName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[AUTOMATION_RUN]'); + $request = (new GetAutomationRunRequest()) + ->setName($formattedName); + $response = $gapicClient->getAutomationRun($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/GetAutomationRun', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAutomationRunExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->automationRunName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[AUTOMATION_RUN]'); + $request = (new GetAutomationRunRequest()) + ->setName($formattedName); + try { + $gapicClient->getAutomationRun($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $defaultSkaffoldVersion = 'defaultSkaffoldVersion1930298837'; + $expectedResponse = new Config(); + $expectedResponse->setName($name2); + $expectedResponse->setDefaultSkaffoldVersion($defaultSkaffoldVersion); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->configName('[PROJECT]', '[LOCATION]'); + $request = (new GetConfigRequest()) + ->setName($formattedName); + $response = $gapicClient->getConfig($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/GetConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getConfigExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->configName('[PROJECT]', '[LOCATION]'); + $request = (new GetConfigRequest()) + ->setName($formattedName); + try { + $gapicClient->getConfig($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCustomTargetTypeTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $customTargetTypeId = 'customTargetTypeId-2048374240'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $etag = 'etag3123477'; + $expectedResponse = new CustomTargetType(); + $expectedResponse->setName($name2); + $expectedResponse->setCustomTargetTypeId($customTargetTypeId); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->customTargetTypeName('[PROJECT]', '[LOCATION]', '[CUSTOM_TARGET_TYPE]'); + $request = (new GetCustomTargetTypeRequest()) + ->setName($formattedName); + $response = $gapicClient->getCustomTargetType($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/GetCustomTargetType', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCustomTargetTypeExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->customTargetTypeName('[PROJECT]', '[LOCATION]', '[CUSTOM_TARGET_TYPE]'); + $request = (new GetCustomTargetTypeRequest()) + ->setName($formattedName); + try { + $gapicClient->getCustomTargetType($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDeliveryPipelineTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $etag = 'etag3123477'; + $suspended = false; + $expectedResponse = new DeliveryPipeline(); + $expectedResponse->setName($name2); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setEtag($etag); + $expectedResponse->setSuspended($suspended); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]'); + $request = (new GetDeliveryPipelineRequest()) + ->setName($formattedName); + $response = $gapicClient->getDeliveryPipeline($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/GetDeliveryPipeline', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDeliveryPipelineExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]'); + $request = (new GetDeliveryPipelineRequest()) + ->setName($formattedName); + try { + $gapicClient->getDeliveryPipeline($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDeployPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $suspended = false; + $etag = 'etag3123477'; + $expectedResponse = new DeployPolicy(); + $expectedResponse->setName($name2); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setSuspended($suspended); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->deployPolicyName('[PROJECT]', '[LOCATION]', '[DEPLOY_POLICY]'); + $request = (new GetDeployPolicyRequest()) + ->setName($formattedName); + $response = $gapicClient->getDeployPolicy($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/GetDeployPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDeployPolicyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->deployPolicyName('[PROJECT]', '[LOCATION]', '[DEPLOY_POLICY]'); + $request = (new GetDeployPolicyRequest()) + ->setName($formattedName); + try { + $gapicClient->getDeployPolicy($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getJobRunTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $uid = 'uid115792'; + $phaseId = 'phaseId-1676299681'; + $jobId = 'jobId-1154752291'; + $etag = 'etag3123477'; + $expectedResponse = new JobRun(); + $expectedResponse->setName($name2); + $expectedResponse->setUid($uid); + $expectedResponse->setPhaseId($phaseId); + $expectedResponse->setJobId($jobId); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->jobRunName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]', '[JOB_RUN]'); + $request = (new GetJobRunRequest()) + ->setName($formattedName); + $response = $gapicClient->getJobRun($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/GetJobRun', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getJobRunExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->jobRunName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]', '[JOB_RUN]'); + $request = (new GetJobRunRequest()) + ->setName($formattedName); + try { + $gapicClient->getJobRun($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getReleaseTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $abandoned = true; + $skaffoldConfigUri = 'skaffoldConfigUri-860592176'; + $skaffoldConfigPath = 'skaffoldConfigPath-908718527'; + $etag = 'etag3123477'; + $skaffoldVersion = 'skaffoldVersion-1146663017'; + $expectedResponse = new Release(); + $expectedResponse->setName($name2); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setAbandoned($abandoned); + $expectedResponse->setSkaffoldConfigUri($skaffoldConfigUri); + $expectedResponse->setSkaffoldConfigPath($skaffoldConfigPath); + $expectedResponse->setEtag($etag); + $expectedResponse->setSkaffoldVersion($skaffoldVersion); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->releaseName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]'); + $request = (new GetReleaseRequest()) + ->setName($formattedName); + $response = $gapicClient->getRelease($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/GetRelease', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getReleaseExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->releaseName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]'); + $request = (new GetReleaseRequest()) + ->setName($formattedName); + try { + $gapicClient->getRelease($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getRolloutTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $targetId = 'targetId-815576439'; + $failureReason = 'failureReason1743941273'; + $deployingBuild = 'deployingBuild931623626'; + $etag = 'etag3123477'; + $controllerRollout = 'controllerRollout-146558962'; + $rollbackOfRollout = 'rollbackOfRollout-1880699004'; + $activeRepairAutomationRun = 'activeRepairAutomationRun-2089265700'; + $expectedResponse = new Rollout(); + $expectedResponse->setName($name2); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setTargetId($targetId); + $expectedResponse->setFailureReason($failureReason); + $expectedResponse->setDeployingBuild($deployingBuild); + $expectedResponse->setEtag($etag); + $expectedResponse->setControllerRollout($controllerRollout); + $expectedResponse->setRollbackOfRollout($rollbackOfRollout); + $expectedResponse->setActiveRepairAutomationRun($activeRepairAutomationRun); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]'); + $request = (new GetRolloutRequest()) + ->setName($formattedName); + $response = $gapicClient->getRollout($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/GetRollout', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getRolloutExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]'); + $request = (new GetRolloutRequest()) + ->setName($formattedName); + try { + $gapicClient->getRollout($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getTargetTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $targetId = 'targetId-815576439'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $requireApproval = false; + $etag = 'etag3123477'; + $expectedResponse = new Target(); + $expectedResponse->setName($name2); + $expectedResponse->setTargetId($targetId); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setRequireApproval($requireApproval); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->targetName('[PROJECT]', '[LOCATION]', '[TARGET]'); + $request = (new GetTargetRequest()) + ->setName($formattedName); + $response = $gapicClient->getTarget($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/GetTarget', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getTargetExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->targetName('[PROJECT]', '[LOCATION]', '[TARGET]'); + $request = (new GetTargetRequest()) + ->setName($formattedName); + try { + $gapicClient->getTarget($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function ignoreJobTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new IgnoreJobResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedRollout = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]'); + $phaseId = 'phaseId-1676299681'; + $jobId = 'jobId-1154752291'; + $request = (new IgnoreJobRequest()) + ->setRollout($formattedRollout) + ->setPhaseId($phaseId) + ->setJobId($jobId); + $response = $gapicClient->ignoreJob($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/IgnoreJob', $actualFuncCall); + $actualValue = $actualRequestObject->getRollout(); + $this->assertProtobufEquals($formattedRollout, $actualValue); + $actualValue = $actualRequestObject->getPhaseId(); + $this->assertProtobufEquals($phaseId, $actualValue); + $actualValue = $actualRequestObject->getJobId(); + $this->assertProtobufEquals($jobId, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function ignoreJobExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedRollout = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]'); + $phaseId = 'phaseId-1676299681'; + $jobId = 'jobId-1154752291'; + $request = (new IgnoreJobRequest()) + ->setRollout($formattedRollout) + ->setPhaseId($phaseId) + ->setJobId($jobId); + try { + $gapicClient->ignoreJob($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAutomationRunsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $automationRunsElement = new AutomationRun(); + $automationRuns = [ + $automationRunsElement, + ]; + $expectedResponse = new ListAutomationRunsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setAutomationRuns($automationRuns); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]'); + $request = (new ListAutomationRunsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listAutomationRuns($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAutomationRuns()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/ListAutomationRuns', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAutomationRunsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]'); + $request = (new ListAutomationRunsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listAutomationRuns($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAutomationsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $automationsElement = new Automation(); + $automations = [ + $automationsElement, + ]; + $expectedResponse = new ListAutomationsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setAutomations($automations); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]'); + $request = (new ListAutomationsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listAutomations($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAutomations()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/ListAutomations', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAutomationsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]'); + $request = (new ListAutomationsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listAutomations($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCustomTargetTypesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $customTargetTypesElement = new CustomTargetType(); + $customTargetTypes = [ + $customTargetTypesElement, + ]; + $expectedResponse = new ListCustomTargetTypesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setCustomTargetTypes($customTargetTypes); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListCustomTargetTypesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listCustomTargetTypes($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getCustomTargetTypes()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/ListCustomTargetTypes', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCustomTargetTypesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListCustomTargetTypesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listCustomTargetTypes($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDeliveryPipelinesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $deliveryPipelinesElement = new DeliveryPipeline(); + $deliveryPipelines = [ + $deliveryPipelinesElement, + ]; + $expectedResponse = new ListDeliveryPipelinesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setDeliveryPipelines($deliveryPipelines); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListDeliveryPipelinesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listDeliveryPipelines($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDeliveryPipelines()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/ListDeliveryPipelines', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDeliveryPipelinesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListDeliveryPipelinesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listDeliveryPipelines($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDeployPoliciesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $deployPoliciesElement = new DeployPolicy(); + $deployPolicies = [ + $deployPoliciesElement, + ]; + $expectedResponse = new ListDeployPoliciesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setDeployPolicies($deployPolicies); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListDeployPoliciesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listDeployPolicies($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDeployPolicies()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/ListDeployPolicies', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDeployPoliciesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListDeployPoliciesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listDeployPolicies($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listJobRunsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $jobRunsElement = new JobRun(); + $jobRuns = [ + $jobRunsElement, + ]; + $expectedResponse = new ListJobRunsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setJobRuns($jobRuns); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]'); + $request = (new ListJobRunsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listJobRuns($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getJobRuns()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/ListJobRuns', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listJobRunsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]'); + $request = (new ListJobRunsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listJobRuns($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listReleasesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $releasesElement = new Release(); + $releases = [ + $releasesElement, + ]; + $expectedResponse = new ListReleasesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setReleases($releases); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]'); + $request = (new ListReleasesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listReleases($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getReleases()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/ListReleases', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listReleasesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]'); + $request = (new ListReleasesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listReleases($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listRolloutsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $rolloutsElement = new Rollout(); + $rollouts = [ + $rolloutsElement, + ]; + $expectedResponse = new ListRolloutsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setRollouts($rollouts); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->releaseName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]'); + $request = (new ListRolloutsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listRollouts($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getRollouts()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/ListRollouts', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listRolloutsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->releaseName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]'); + $request = (new ListRolloutsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listRollouts($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listTargetsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $targetsElement = new Target(); + $targets = [ + $targetsElement, + ]; + $expectedResponse = new ListTargetsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTargets($targets); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListTargetsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listTargets($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getTargets()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/ListTargets', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listTargetsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListTargetsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listTargets($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function retryJobTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new RetryJobResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedRollout = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]'); + $phaseId = 'phaseId-1676299681'; + $jobId = 'jobId-1154752291'; + $request = (new RetryJobRequest()) + ->setRollout($formattedRollout) + ->setPhaseId($phaseId) + ->setJobId($jobId); + $response = $gapicClient->retryJob($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/RetryJob', $actualFuncCall); + $actualValue = $actualRequestObject->getRollout(); + $this->assertProtobufEquals($formattedRollout, $actualValue); + $actualValue = $actualRequestObject->getPhaseId(); + $this->assertProtobufEquals($phaseId, $actualValue); + $actualValue = $actualRequestObject->getJobId(); + $this->assertProtobufEquals($jobId, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function retryJobExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedRollout = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]'); + $phaseId = 'phaseId-1676299681'; + $jobId = 'jobId-1154752291'; + $request = (new RetryJobRequest()) + ->setRollout($formattedRollout) + ->setPhaseId($phaseId) + ->setJobId($jobId); + try { + $gapicClient->retryJob($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function rollbackTargetTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new RollbackTargetResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]'); + $targetId = 'targetId-815576439'; + $rolloutId = 'rolloutId-91142551'; + $request = (new RollbackTargetRequest()) + ->setName($formattedName) + ->setTargetId($targetId) + ->setRolloutId($rolloutId); + $response = $gapicClient->rollbackTarget($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/RollbackTarget', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getTargetId(); + $this->assertProtobufEquals($targetId, $actualValue); + $actualValue = $actualRequestObject->getRolloutId(); + $this->assertProtobufEquals($rolloutId, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function rollbackTargetExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]'); + $targetId = 'targetId-815576439'; + $rolloutId = 'rolloutId-91142551'; + $request = (new RollbackTargetRequest()) + ->setName($formattedName) + ->setTargetId($targetId) + ->setRolloutId($rolloutId); + try { + $gapicClient->rollbackTarget($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function terminateJobRunTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new TerminateJobRunResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->jobRunName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]', '[JOB_RUN]'); + $request = (new TerminateJobRunRequest()) + ->setName($formattedName); + $response = $gapicClient->terminateJobRun($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/TerminateJobRun', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function terminateJobRunExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->jobRunName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]', '[JOB_RUN]'); + $request = (new TerminateJobRunRequest()) + ->setName($formattedName); + try { + $gapicClient->terminateJobRun($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateAutomationTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/updateAutomationTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $etag = 'etag3123477'; + $suspended = false; + $serviceAccount = 'serviceAccount-1948028253'; + $expectedResponse = new Automation(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setEtag($etag); + $expectedResponse->setSuspended($suspended); + $expectedResponse->setServiceAccount($serviceAccount); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateAutomationTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $updateMask = new FieldMask(); + $automation = new Automation(); + $automationServiceAccount = 'automationServiceAccount-192216401'; + $automation->setServiceAccount($automationServiceAccount); + $automationSelector = new AutomationResourceSelector(); + $automation->setSelector($automationSelector); + $automationRules = []; + $automation->setRules($automationRules); + $request = (new UpdateAutomationRequest()) + ->setUpdateMask($updateMask) + ->setAutomation($automation); + $response = $gapicClient->updateAutomation($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/UpdateAutomation', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $actualValue = $actualApiRequestObject->getAutomation(); + $this->assertProtobufEquals($automation, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateAutomationTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function updateAutomationExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/updateAutomationTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $updateMask = new FieldMask(); + $automation = new Automation(); + $automationServiceAccount = 'automationServiceAccount-192216401'; + $automation->setServiceAccount($automationServiceAccount); + $automationSelector = new AutomationResourceSelector(); + $automation->setSelector($automationSelector); + $automationRules = []; + $automation->setRules($automationRules); + $request = (new UpdateAutomationRequest()) + ->setUpdateMask($updateMask) + ->setAutomation($automation); + $response = $gapicClient->updateAutomation($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateAutomationTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function updateCustomTargetTypeTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/updateCustomTargetTypeTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $customTargetTypeId = 'customTargetTypeId-2048374240'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $etag = 'etag3123477'; + $expectedResponse = new CustomTargetType(); + $expectedResponse->setName($name); + $expectedResponse->setCustomTargetTypeId($customTargetTypeId); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setEtag($etag); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateCustomTargetTypeTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $updateMask = new FieldMask(); + $customTargetType = new CustomTargetType(); + $request = (new UpdateCustomTargetTypeRequest()) + ->setUpdateMask($updateMask) + ->setCustomTargetType($customTargetType); + $response = $gapicClient->updateCustomTargetType($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/UpdateCustomTargetType', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $actualValue = $actualApiRequestObject->getCustomTargetType(); + $this->assertProtobufEquals($customTargetType, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateCustomTargetTypeTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function updateCustomTargetTypeExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/updateCustomTargetTypeTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $updateMask = new FieldMask(); + $customTargetType = new CustomTargetType(); + $request = (new UpdateCustomTargetTypeRequest()) + ->setUpdateMask($updateMask) + ->setCustomTargetType($customTargetType); + $response = $gapicClient->updateCustomTargetType($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateCustomTargetTypeTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function updateDeliveryPipelineTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/updateDeliveryPipelineTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $etag = 'etag3123477'; + $suspended = false; + $expectedResponse = new DeliveryPipeline(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setEtag($etag); + $expectedResponse->setSuspended($suspended); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateDeliveryPipelineTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $updateMask = new FieldMask(); + $deliveryPipeline = new DeliveryPipeline(); + $request = (new UpdateDeliveryPipelineRequest()) + ->setUpdateMask($updateMask) + ->setDeliveryPipeline($deliveryPipeline); + $response = $gapicClient->updateDeliveryPipeline($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/UpdateDeliveryPipeline', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $actualValue = $actualApiRequestObject->getDeliveryPipeline(); + $this->assertProtobufEquals($deliveryPipeline, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateDeliveryPipelineTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function updateDeliveryPipelineExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/updateDeliveryPipelineTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $updateMask = new FieldMask(); + $deliveryPipeline = new DeliveryPipeline(); + $request = (new UpdateDeliveryPipelineRequest()) + ->setUpdateMask($updateMask) + ->setDeliveryPipeline($deliveryPipeline); + $response = $gapicClient->updateDeliveryPipeline($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateDeliveryPipelineTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function updateDeployPolicyTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/updateDeployPolicyTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $suspended = false; + $etag = 'etag3123477'; + $expectedResponse = new DeployPolicy(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setSuspended($suspended); + $expectedResponse->setEtag($etag); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateDeployPolicyTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $updateMask = new FieldMask(); + $deployPolicy = new DeployPolicy(); + $deployPolicySelectors = []; + $deployPolicy->setSelectors($deployPolicySelectors); + $deployPolicyRules = []; + $deployPolicy->setRules($deployPolicyRules); + $request = (new UpdateDeployPolicyRequest()) + ->setUpdateMask($updateMask) + ->setDeployPolicy($deployPolicy); + $response = $gapicClient->updateDeployPolicy($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/UpdateDeployPolicy', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $actualValue = $actualApiRequestObject->getDeployPolicy(); + $this->assertProtobufEquals($deployPolicy, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateDeployPolicyTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function updateDeployPolicyExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/updateDeployPolicyTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $updateMask = new FieldMask(); + $deployPolicy = new DeployPolicy(); + $deployPolicySelectors = []; + $deployPolicy->setSelectors($deployPolicySelectors); + $deployPolicyRules = []; + $deployPolicy->setRules($deployPolicyRules); + $request = (new UpdateDeployPolicyRequest()) + ->setUpdateMask($updateMask) + ->setDeployPolicy($deployPolicy); + $response = $gapicClient->updateDeployPolicy($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateDeployPolicyTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function updateTargetTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/updateTargetTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $targetId = 'targetId-815576439'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $requireApproval = false; + $etag = 'etag3123477'; + $expectedResponse = new Target(); + $expectedResponse->setName($name); + $expectedResponse->setTargetId($targetId); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setRequireApproval($requireApproval); + $expectedResponse->setEtag($etag); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateTargetTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $updateMask = new FieldMask(); + $target = new Target(); + $request = (new UpdateTargetRequest()) + ->setUpdateMask($updateMask) + ->setTarget($target); + $response = $gapicClient->updateTarget($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/UpdateTarget', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $actualValue = $actualApiRequestObject->getTarget(); + $this->assertProtobufEquals($target, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateTargetTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function updateTargetExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/updateTargetTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $updateMask = new FieldMask(); + $target = new Target(); + $request = (new UpdateTargetRequest()) + ->setUpdateMask($updateMask) + ->setTarget($target); + $response = $gapicClient->updateTarget($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateTargetTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function getLocationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $locationId = 'locationId552319461'; + $displayName = 'displayName1615086568'; + $expectedResponse = new Location(); + $expectedResponse->setName($name2); + $expectedResponse->setLocationId($locationId); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + $request = new GetLocationRequest(); + $response = $gapicClient->getLocation($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.location.Locations/GetLocation', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getLocationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new GetLocationRequest(); + try { + $gapicClient->getLocation($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listLocationsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $locationsElement = new Location(); + $locations = [ + $locationsElement, + ]; + $expectedResponse = new ListLocationsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setLocations($locations); + $transport->addResponse($expectedResponse); + $request = new ListLocationsRequest(); + $response = $gapicClient->listLocations($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listLocationsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new ListLocationsRequest(); + try { + $gapicClient->listLocations($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getIamPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest()) + ->setResource($resource); + $response = $gapicClient->getIamPolicy($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.iam.v1.IAMPolicy/GetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getIamPolicyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest()) + ->setResource($resource); + try { + $gapicClient->getIamPolicy($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setIamPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest()) + ->setResource($resource) + ->setPolicy($policy); + $response = $gapicClient->setIamPolicy($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.iam.v1.IAMPolicy/SetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $actualValue = $actualRequestObject->getPolicy(); + $this->assertProtobufEquals($policy, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setIamPolicyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest()) + ->setResource($resource) + ->setPolicy($policy); + try { + $gapicClient->setIamPolicy($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function testIamPermissionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new TestIamPermissionsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $permissions = []; + $request = (new TestIamPermissionsRequest()) + ->setResource($resource) + ->setPermissions($permissions); + $response = $gapicClient->testIamPermissions($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.iam.v1.IAMPolicy/TestIamPermissions', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $actualValue = $actualRequestObject->getPermissions(); + $this->assertProtobufEquals($permissions, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function testIamPermissionsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $resource = 'resource-341064690'; + $permissions = []; + $request = (new TestIamPermissionsRequest()) + ->setResource($resource) + ->setPermissions($permissions); + try { + $gapicClient->testIamPermissions($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function abandonReleaseAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new AbandonReleaseResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->releaseName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]'); + $request = (new AbandonReleaseRequest()) + ->setName($formattedName); + $response = $gapicClient->abandonReleaseAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/AbandonRelease', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} From 0a3102fe44fda31d5cd6bfbb40408a581f7af2b9 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 14 Nov 2024 20:55:08 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- Deploy/metadata/V1/CloudDeploy.php | Bin 50152 -> 51065 bytes Deploy/src/V1/AutomationRule.php | 39 + Deploy/src/V1/AutomationRuleCondition.php | 45 + Deploy/src/V1/AutomationRun.php | 60 +- .../src}/V1/TimedPromoteReleaseCondition.php | 0 .../TimedPromoteReleaseCondition/Targets.php | 2 - .../src}/V1/TimedPromoteReleaseOperation.php | 0 .../src}/V1/TimedPromoteReleaseRule.php | 0 .../Cloud/Deploy/V1/AutomationPayload.php | 34 - .../Cloud/Deploy/V1/AutomationrunPayload.php | 36 - .../Google/Cloud/Deploy/V1/CloudDeploy.php | Bin 51065 -> 0 bytes .../CustomtargettypeNotificationPayload.php | 33 - .../DeliverypipelineNotificationPayload.php | 33 - .../V1/DeploypolicyEvaluationPayload.php | Bin 1552 -> 0 bytes .../V1/DeploypolicyNotificationPayload.php | 33 - .../Deploy/V1/JobrunNotificationPayload.php | 38 - .../Google/Cloud/Deploy/V1/LogEnums.php | Bin 995 -> 0 bytes .../Deploy/V1/ReleaseNotificationPayload.php | 34 - .../Cloud/Deploy/V1/ReleaseRenderPayload.php | 35 - .../Deploy/V1/RolloutNotificationPayload.php | 37 - .../Cloud/Deploy/V1/RolloutUpdatePayload.php | Bin 1368 -> 0 bytes .../Deploy/V1/TargetNotificationPayload.php | 32 - .../Cloud/Deploy/V1/AbandonReleaseRequest.php | 86 - .../Deploy/V1/AbandonReleaseResponse.php | 33 - .../Deploy/V1/AdvanceChildRolloutJob.php | 33 - .../Deploy/V1/AdvanceChildRolloutJobRun.php | 106 - .../Deploy/V1/AdvanceRolloutOperation.php | 179 - .../Cloud/Deploy/V1/AdvanceRolloutRequest.php | 160 - .../Deploy/V1/AdvanceRolloutResponse.php | 33 - .../Cloud/Deploy/V1/AdvanceRolloutRule.php | 214 - .../Google/Cloud/Deploy/V1/AnthosCluster.php | 75 - .../Cloud/Deploy/V1/ApproveRolloutRequest.php | 158 - .../Deploy/V1/ApproveRolloutResponse.php | 33 - .../Cloud/Deploy/V1/AssociatedEntities.php | 101 - .../src/Google/Cloud/Deploy/V1/Automation.php | 596 -- .../Cloud/Deploy/V1/AutomationEvent.php | 174 - .../Deploy/V1/AutomationResourceSelector.php | 68 - .../Deploy/V1/AutomationRolloutMetadata.php | 148 - .../Google/Cloud/Deploy/V1/AutomationRule.php | 189 - .../Deploy/V1/AutomationRuleCondition.php | 123 - .../Google/Cloud/Deploy/V1/AutomationRun.php | 763 --- .../Cloud/Deploy/V1/AutomationRun/State.php | 92 - .../Cloud/Deploy/V1/AutomationRunEvent.php | 276 - .../Google/Cloud/Deploy/V1/BackoffMode.php | 61 - .../Google/Cloud/Deploy/V1/BuildArtifact.php | 109 - .../src/Google/Cloud/Deploy/V1/Canary.php | 166 - .../Cloud/Deploy/V1/CanaryDeployment.php | 213 - .../Deploy/V1/CancelAutomationRunRequest.php | 86 - .../Deploy/V1/CancelAutomationRunResponse.php | 33 - .../Cloud/Deploy/V1/CancelRolloutRequest.php | 124 - .../Cloud/Deploy/V1/CancelRolloutResponse.php | 33 - .../Cloud/Deploy/V1/ChildRolloutJobs.php | 101 - .../Google/Cloud/Deploy/V1/CloudRunConfig.php | 193 - .../Cloud/Deploy/V1/CloudRunLocation.php | 71 - .../Cloud/Deploy/V1/CloudRunMetadata.php | 189 - .../Deploy/V1/CloudRunRenderMetadata.php | 72 - .../src/Google/Cloud/Deploy/V1/Config.php | 139 - .../Deploy/V1/CreateAutomationRequest.php | 285 - .../Cloud/Deploy/V1/CreateChildRolloutJob.php | 33 - .../Deploy/V1/CreateChildRolloutJobRun.php | 106 - .../V1/CreateCustomTargetTypeRequest.php | 280 - .../V1/CreateDeliveryPipelineRequest.php | 280 - .../Deploy/V1/CreateDeployPolicyRequest.php | 280 - .../Cloud/Deploy/V1/CreateReleaseRequest.php | 323 -- .../Cloud/Deploy/V1/CreateRolloutRequest.php | 361 -- .../Cloud/Deploy/V1/CreateTargetRequest.php | 285 - .../Deploy/V1/CustomCanaryDeployment.php | 72 - .../V1/CustomCanaryDeployment/PhaseConfig.php | 293 - .../Google/Cloud/Deploy/V1/CustomMetadata.php | 67 - .../Google/Cloud/Deploy/V1/CustomTarget.php | 71 - .../Deploy/V1/CustomTargetDeployMetadata.php | 72 - .../Deploy/V1/CustomTargetSkaffoldActions.php | 148 - .../Cloud/Deploy/V1/CustomTargetType.php | 475 -- .../V1/CustomTargetTypeNotificationEvent.php | 171 - .../Google/Cloud/Deploy/V1/DefaultPool.php | 121 - .../Deploy/V1/DeleteAutomationRequest.php | 282 - .../V1/DeleteCustomTargetTypeRequest.php | 278 - .../V1/DeleteDeliveryPipelineRequest.php | 320 -- .../Deploy/V1/DeleteDeployPolicyRequest.php | 278 - .../Cloud/Deploy/V1/DeleteTargetRequest.php | 278 - .../Cloud/Deploy/V1/DeliveryPipeline.php | 510 -- .../Deploy/V1/DeliveryPipelineAttribute.php | 113 - .../V1/DeliveryPipelineNotificationEvent.php | 171 - .../Google/Cloud/Deploy/V1/DeployArtifact.php | 109 - .../src/Google/Cloud/Deploy/V1/DeployJob.php | 33 - .../Google/Cloud/Deploy/V1/DeployJobRun.php | 235 - .../Deploy/V1/DeployJobRun/FailureCause.php | 97 - .../Cloud/Deploy/V1/DeployJobRunMetadata.php | 170 - .../Cloud/Deploy/V1/DeployParameters.php | 109 - .../Google/Cloud/Deploy/V1/DeployPolicy.php | 553 -- .../Cloud/Deploy/V1/DeployPolicy/Invoker.php | 66 - .../Deploy/V1/DeployPolicyEvaluationEvent.php | 504 -- .../PolicyVerdict.php | 66 - .../PolicyVerdictOverride.php | 65 - .../V1/DeployPolicyNotificationEvent.php | 175 - .../V1/DeployPolicyResourceSelector.php | 125 - .../Google/Cloud/Deploy/V1/DeploymentJobs.php | 209 - .../Cloud/Deploy/V1/ExecutionConfig.php | 366 -- .../ExecutionEnvironmentUsage.php | 85 - .../Cloud/Deploy/V1/GetAutomationRequest.php | 86 - .../Deploy/V1/GetAutomationRunRequest.php | 86 - .../Cloud/Deploy/V1/GetConfigRequest.php | 81 - .../Deploy/V1/GetCustomTargetTypeRequest.php | 86 - .../Deploy/V1/GetDeliveryPipelineRequest.php | 86 - .../Deploy/V1/GetDeployPolicyRequest.php | 86 - .../Cloud/Deploy/V1/GetJobRunRequest.php | 86 - .../Cloud/Deploy/V1/GetReleaseRequest.php | 86 - .../Cloud/Deploy/V1/GetRolloutRequest.php | 86 - .../Cloud/Deploy/V1/GetTargetRequest.php | 86 - .../src/Google/Cloud/Deploy/V1/GkeCluster.php | 171 - .../Cloud/Deploy/V1/IgnoreJobRequest.php | 196 - .../Cloud/Deploy/V1/IgnoreJobResponse.php | 33 - .../proto/src/Google/Cloud/Deploy/V1/Job.php | 384 -- .../src/Google/Cloud/Deploy/V1/Job/State.php | 106 - .../src/Google/Cloud/Deploy/V1/JobRun.php | 589 -- .../Google/Cloud/Deploy/V1/JobRun/State.php | 85 - .../Deploy/V1/JobRunNotificationEvent.php | 341 -- .../Cloud/Deploy/V1/KubernetesConfig.php | 108 - .../KubernetesConfig/GatewayServiceMesh.php | 348 -- .../GatewayServiceMesh/RouteDestinations.php | 132 - .../V1/KubernetesConfig/ServiceNetworking.php | 192 - .../Deploy/V1/ListAutomationRunsRequest.php | 255 - .../Deploy/V1/ListAutomationRunsResponse.php | 139 - .../Deploy/V1/ListAutomationsRequest.php | 255 - .../Deploy/V1/ListAutomationsResponse.php | 139 - .../V1/ListCustomTargetTypesRequest.php | 254 - .../V1/ListCustomTargetTypesResponse.php | 139 - .../V1/ListDeliveryPipelinesRequest.php | 250 - .../V1/ListDeliveryPipelinesResponse.php | 139 - .../Deploy/V1/ListDeployPoliciesRequest.php | 250 - .../Deploy/V1/ListDeployPoliciesResponse.php | 139 - .../Cloud/Deploy/V1/ListJobRunsRequest.php | 249 - .../Cloud/Deploy/V1/ListJobRunsResponse.php | 139 - .../Cloud/Deploy/V1/ListReleasesRequest.php | 254 - .../Cloud/Deploy/V1/ListReleasesResponse.php | 139 - .../Cloud/Deploy/V1/ListRolloutsRequest.php | 249 - .../Cloud/Deploy/V1/ListRolloutsResponse.php | 139 - .../Cloud/Deploy/V1/ListTargetsRequest.php | 254 - .../Cloud/Deploy/V1/ListTargetsResponse.php | 139 - .../src/Google/Cloud/Deploy/V1/Metadata.php | 173 - .../Google/Cloud/Deploy/V1/MultiTarget.php | 67 - .../Google/Cloud/Deploy/V1/OneTimeWindow.php | 210 - .../Cloud/Deploy/V1/OperationMetadata.php | 307 -- .../src/Google/Cloud/Deploy/V1/Phase.php | 215 - .../Google/Cloud/Deploy/V1/Phase/State.php | 92 - .../Cloud/Deploy/V1/PipelineCondition.php | 169 - .../Deploy/V1/PipelineReadyCondition.php | 124 - .../src/Google/Cloud/Deploy/V1/PolicyRule.php | 75 - .../Cloud/Deploy/V1/PolicyViolation.php | 69 - .../Deploy/V1/PolicyViolationDetails.php | 147 - .../src/Google/Cloud/Deploy/V1/Postdeploy.php | 71 - .../Google/Cloud/Deploy/V1/PostdeployJob.php | 67 - .../Cloud/Deploy/V1/PostdeployJobRun.php | 151 - .../V1/PostdeployJobRun/FailureCause.php | 82 - .../src/Google/Cloud/Deploy/V1/Predeploy.php | 71 - .../Google/Cloud/Deploy/V1/PredeployJob.php | 67 - .../Cloud/Deploy/V1/PredeployJobRun.php | 151 - .../V1/PredeployJobRun/FailureCause.php | 82 - .../Google/Cloud/Deploy/V1/PrivatePool.php | 159 - .../Deploy/V1/PromoteReleaseOperation.php | 187 - .../Cloud/Deploy/V1/PromoteReleaseRule.php | 256 - .../src/Google/Cloud/Deploy/V1/Release.php | 917 ---- .../Deploy/V1/Release/ReleaseCondition.php | 128 - .../V1/Release/ReleaseReadyCondition.php | 84 - .../Cloud/Deploy/V1/Release/RenderState.php | 71 - .../V1/Release/SkaffoldSupportedCondition.php | 201 - .../Cloud/Deploy/V1/Release/TargetRender.php | 232 - .../V1/Release/TargetRender/FailureCause.php | 108 - .../TargetRender/TargetRenderState.php | 71 - .../Deploy/V1/ReleaseNotificationEvent.php | 205 - .../Cloud/Deploy/V1/ReleaseRenderEvent.php | 216 - .../Google/Cloud/Deploy/V1/RenderMetadata.php | 121 - .../Google/Cloud/Deploy/V1/RepairPhase.php | 109 - .../Cloud/Deploy/V1/RepairPhaseConfig.php | 108 - .../Deploy/V1/RepairRolloutOperation.php | 211 - .../Cloud/Deploy/V1/RepairRolloutRule.php | 266 - .../Google/Cloud/Deploy/V1/RepairState.php | 89 - .../src/Google/Cloud/Deploy/V1/Retry.php | 157 - .../Google/Cloud/Deploy/V1/RetryAttempt.php | 179 - .../Cloud/Deploy/V1/RetryJobRequest.php | 196 - .../Cloud/Deploy/V1/RetryJobResponse.php | 33 - .../src/Google/Cloud/Deploy/V1/RetryPhase.php | 140 - .../src/Google/Cloud/Deploy/V1/Rollback.php | 109 - .../Cloud/Deploy/V1/RollbackAttempt.php | 203 - .../Cloud/Deploy/V1/RollbackTargetConfig.php | 115 - .../Cloud/Deploy/V1/RollbackTargetRequest.php | 363 -- .../Deploy/V1/RollbackTargetResponse.php | 77 - .../src/Google/Cloud/Deploy/V1/Rollout.php | 960 ---- .../Cloud/Deploy/V1/Rollout/ApprovalState.php | 78 - .../Cloud/Deploy/V1/Rollout/FailureCause.php | 110 - .../Google/Cloud/Deploy/V1/Rollout/State.php | 121 - .../Deploy/V1/RolloutNotificationEvent.php | 307 -- .../Cloud/Deploy/V1/RolloutRestriction.php | 191 - .../V1/RolloutRestriction/RolloutActions.php | 106 - .../Cloud/Deploy/V1/RolloutUpdateEvent.php | 314 -- .../RolloutUpdateEvent/RolloutUpdateType.php | 141 - .../Google/Cloud/Deploy/V1/RuntimeConfig.php | 109 - .../Google/Cloud/Deploy/V1/SerialPipeline.php | 71 - .../Cloud/Deploy/V1/SkaffoldModules.php | 175 - .../SkaffoldModules/SkaffoldGCBRepoSource.php | 150 - .../V1/SkaffoldModules/SkaffoldGCSSource.php | 112 - .../V1/SkaffoldModules/SkaffoldGitSource.php | 138 - .../Cloud/Deploy/V1/SkaffoldSupportState.php | 68 - .../Cloud/Deploy/V1/SkaffoldVersion.php | 199 - .../src/Google/Cloud/Deploy/V1/Stage.php | 203 - .../src/Google/Cloud/Deploy/V1/Standard.php | 163 - .../src/Google/Cloud/Deploy/V1/Strategy.php | 114 - .../src/Google/Cloud/Deploy/V1/Target.php | 783 --- .../Google/Cloud/Deploy/V1/TargetArtifact.php | 187 - .../V1/TargetArtifact/PhaseArtifact.php | 146 - .../Cloud/Deploy/V1/TargetAttribute.php | 114 - .../Deploy/V1/TargetNotificationEvent.php | 137 - .../Deploy/V1/TargetsPresentCondition.php | 150 - .../Cloud/Deploy/V1/TargetsTypeCondition.php | 110 - .../Deploy/V1/TerminateJobRunRequest.php | 124 - .../Deploy/V1/TerminateJobRunResponse.php | 33 - .../Google/Cloud/Deploy/V1/TimeWindows.php | 141 - .../proto/src/Google/Cloud/Deploy/V1/Type.php | 103 - .../Deploy/V1/UpdateAutomationRequest.php | 306 -- .../V1/UpdateCustomTargetTypeRequest.php | 306 -- .../V1/UpdateDeliveryPipelineRequest.php | 306 -- .../Deploy/V1/UpdateDeployPolicyRequest.php | 306 -- .../Cloud/Deploy/V1/UpdateTargetRequest.php | 306 -- .../src/Google/Cloud/Deploy/V1/VerifyJob.php | 33 - .../Google/Cloud/Deploy/V1/VerifyJobRun.php | 223 - .../Deploy/V1/VerifyJobRun/FailureCause.php | 89 - .../Google/Cloud/Deploy/V1/WeeklyWindow.php | 176 - .../V1/CloudDeployClient/abandon_release.php | 77 - .../V1/CloudDeployClient/advance_rollout.php | 81 - .../V1/CloudDeployClient/approve_rollout.php | 81 - .../cancel_automation_run.php | 80 - .../V1/CloudDeployClient/cancel_rollout.php | 78 - .../CloudDeployClient/create_automation.php | 107 - .../create_custom_target_type.php | 91 - .../create_delivery_pipeline.php | 91 - .../create_deploy_policy.php | 95 - .../V1/CloudDeployClient/create_release.php | 94 - .../V1/CloudDeployClient/create_rollout.php | 101 - .../V1/CloudDeployClient/create_target.php | 90 - .../CloudDeployClient/delete_automation.php | 86 - .../delete_custom_target_type.php | 85 - .../delete_delivery_pipeline.php | 85 - .../delete_deploy_policy.php | 81 - .../V1/CloudDeployClient/delete_target.php | 81 - .../V1/CloudDeployClient/get_automation.php | 77 - .../CloudDeployClient/get_automation_run.php | 77 - .../V1/CloudDeployClient/get_config.php | 71 - .../get_custom_target_type.php | 76 - .../get_delivery_pipeline.php | 76 - .../CloudDeployClient/get_deploy_policy.php | 72 - .../V1/CloudDeployClient/get_iam_policy.php | 72 - .../V1/CloudDeployClient/get_job_run.php | 79 - .../V1/CloudDeployClient/get_location.php | 57 - .../V1/CloudDeployClient/get_release.php | 77 - .../V1/CloudDeployClient/get_rollout.php | 78 - .../V1/CloudDeployClient/get_target.php | 72 - .../V1/CloudDeployClient/ignore_job.php | 84 - .../list_automation_runs.php | 82 - .../V1/CloudDeployClient/list_automations.php | 82 - .../list_custom_target_types.php | 77 - .../list_delivery_pipelines.php | 77 - .../list_deploy_policies.php | 77 - .../V1/CloudDeployClient/list_job_runs.php | 82 - .../V1/CloudDeployClient/list_locations.php | 62 - .../V1/CloudDeployClient/list_releases.php | 81 - .../V1/CloudDeployClient/list_rollouts.php | 81 - .../V1/CloudDeployClient/list_targets.php | 77 - .../V1/CloudDeployClient/retry_job.php | 84 - .../V1/CloudDeployClient/rollback_target.php | 83 - .../V1/CloudDeployClient/set_iam_policy.php | 77 - .../CloudDeployClient/terminate_job_run.php | 79 - .../test_iam_permissions.php | 84 - .../CloudDeployClient/update_automation.php | 94 - .../update_custom_target_type.php | 74 - .../update_delivery_pipeline.php | 74 - .../update_deploy_policy.php | 80 - .../V1/CloudDeployClient/update_target.php | 74 - .../v1/src/V1/Client/CloudDeployClient.php | 2056 ------- .../Deploy/v1/src/V1/gapic_metadata.json | 268 - .../resources/cloud_deploy_client_config.json | 294 - .../cloud_deploy_descriptor_config.php | 857 --- .../cloud_deploy_rest_client_config.php | 723 --- .../Unit/V1/Client/CloudDeployClientTest.php | 4857 ----------------- 283 files changed, 132 insertions(+), 50268 deletions(-) rename {owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy => Deploy/src}/V1/TimedPromoteReleaseCondition.php (100%) rename {owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy => Deploy/src}/V1/TimedPromoteReleaseCondition/Targets.php (94%) rename {owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy => Deploy/src}/V1/TimedPromoteReleaseOperation.php (100%) rename {owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy => Deploy/src}/V1/TimedPromoteReleaseRule.php (100%) delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/AutomationPayload.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/AutomationrunPayload.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/CloudDeploy.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/CustomtargettypeNotificationPayload.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/DeliverypipelineNotificationPayload.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/DeploypolicyEvaluationPayload.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/DeploypolicyNotificationPayload.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/JobrunNotificationPayload.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/LogEnums.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/ReleaseNotificationPayload.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/ReleaseRenderPayload.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/RolloutNotificationPayload.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/RolloutUpdatePayload.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/TargetNotificationPayload.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AbandonReleaseRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AbandonReleaseResponse.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceChildRolloutJob.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceChildRolloutJobRun.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutOperation.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutResponse.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutRule.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AnthosCluster.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ApproveRolloutRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ApproveRolloutResponse.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AssociatedEntities.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Automation.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationEvent.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationResourceSelector.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRolloutMetadata.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRule.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRuleCondition.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRun.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRun/State.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRunEvent.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/BackoffMode.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/BuildArtifact.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Canary.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CanaryDeployment.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelAutomationRunRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelAutomationRunResponse.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelRolloutRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelRolloutResponse.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ChildRolloutJobs.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunConfig.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunLocation.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunMetadata.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunRenderMetadata.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Config.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateAutomationRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateChildRolloutJob.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateChildRolloutJobRun.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateCustomTargetTypeRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateDeliveryPipelineRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateDeployPolicyRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateReleaseRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateRolloutRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateTargetRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomCanaryDeployment.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomCanaryDeployment/PhaseConfig.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomMetadata.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTarget.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetDeployMetadata.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetSkaffoldActions.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetType.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetTypeNotificationEvent.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DefaultPool.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteAutomationRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteCustomTargetTypeRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteDeliveryPipelineRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteDeployPolicyRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteTargetRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeliveryPipeline.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeliveryPipelineAttribute.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeliveryPipelineNotificationEvent.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployArtifact.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJob.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJobRun.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJobRun/FailureCause.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJobRunMetadata.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployParameters.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicy.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicy/Invoker.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicyEvaluationEvent.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicyEvaluationEvent/PolicyVerdict.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicyEvaluationEvent/PolicyVerdictOverride.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicyNotificationEvent.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicyResourceSelector.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeploymentJobs.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ExecutionConfig.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ExecutionConfig/ExecutionEnvironmentUsage.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetAutomationRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetAutomationRunRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetConfigRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetCustomTargetTypeRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetDeliveryPipelineRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetDeployPolicyRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetJobRunRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetReleaseRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetRolloutRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetTargetRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GkeCluster.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/IgnoreJobRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/IgnoreJobResponse.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Job.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Job/State.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/JobRun.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/JobRun/State.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/JobRunNotificationEvent.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig/GatewayServiceMesh.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig/GatewayServiceMesh/RouteDestinations.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig/ServiceNetworking.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationRunsRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationRunsResponse.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationsRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationsResponse.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListCustomTargetTypesRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListCustomTargetTypesResponse.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListDeliveryPipelinesRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListDeliveryPipelinesResponse.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListDeployPoliciesRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListDeployPoliciesResponse.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListJobRunsRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListJobRunsResponse.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListReleasesRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListReleasesResponse.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListRolloutsRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListRolloutsResponse.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListTargetsRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListTargetsResponse.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Metadata.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/MultiTarget.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/OneTimeWindow.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/OperationMetadata.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Phase.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Phase/State.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PipelineCondition.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PipelineReadyCondition.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PolicyRule.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PolicyViolation.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PolicyViolationDetails.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Postdeploy.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PostdeployJob.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PostdeployJobRun.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PostdeployJobRun/FailureCause.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Predeploy.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PredeployJob.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PredeployJobRun.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PredeployJobRun/FailureCause.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PrivatePool.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PromoteReleaseOperation.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PromoteReleaseRule.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/ReleaseCondition.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/ReleaseReadyCondition.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/RenderState.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/SkaffoldSupportedCondition.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/TargetRender.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/TargetRender/FailureCause.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/TargetRender/TargetRenderState.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ReleaseNotificationEvent.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ReleaseRenderEvent.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RenderMetadata.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairPhase.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairPhaseConfig.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairRolloutOperation.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairRolloutRule.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairState.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Retry.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryAttempt.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryJobRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryJobResponse.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryPhase.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollback.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackAttempt.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackTargetConfig.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackTargetRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackTargetResponse.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout/ApprovalState.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout/FailureCause.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout/State.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutNotificationEvent.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutRestriction.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutRestriction/RolloutActions.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutUpdateEvent.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutUpdateEvent/RolloutUpdateType.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RuntimeConfig.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SerialPipeline.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules/SkaffoldGCBRepoSource.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules/SkaffoldGCSSource.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules/SkaffoldGitSource.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldSupportState.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldVersion.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Stage.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Standard.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Strategy.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Target.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetArtifact.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetArtifact/PhaseArtifact.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetAttribute.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetNotificationEvent.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetsPresentCondition.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetsTypeCondition.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TerminateJobRunRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TerminateJobRunResponse.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TimeWindows.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Type.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateAutomationRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateCustomTargetTypeRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateDeliveryPipelineRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateDeployPolicyRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateTargetRequest.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/VerifyJob.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/VerifyJobRun.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/VerifyJobRun/FailureCause.php delete mode 100644 owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/WeeklyWindow.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/abandon_release.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/advance_rollout.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/approve_rollout.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/cancel_automation_run.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/cancel_rollout.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_automation.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_custom_target_type.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_delivery_pipeline.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_deploy_policy.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_release.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_rollout.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_target.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_automation.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_custom_target_type.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_delivery_pipeline.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_deploy_policy.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_target.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_automation.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_automation_run.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_config.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_custom_target_type.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_delivery_pipeline.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_deploy_policy.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_iam_policy.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_job_run.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_location.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_release.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_rollout.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_target.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/ignore_job.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_automation_runs.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_automations.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_custom_target_types.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_delivery_pipelines.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_deploy_policies.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_job_runs.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_locations.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_releases.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_rollouts.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_targets.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/retry_job.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/rollback_target.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/set_iam_policy.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/terminate_job_run.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/test_iam_permissions.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_automation.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_custom_target_type.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_delivery_pipeline.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_deploy_policy.php delete mode 100644 owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_target.php delete mode 100644 owl-bot-staging/Deploy/v1/src/V1/Client/CloudDeployClient.php delete mode 100644 owl-bot-staging/Deploy/v1/src/V1/gapic_metadata.json delete mode 100644 owl-bot-staging/Deploy/v1/src/V1/resources/cloud_deploy_client_config.json delete mode 100644 owl-bot-staging/Deploy/v1/src/V1/resources/cloud_deploy_descriptor_config.php delete mode 100644 owl-bot-staging/Deploy/v1/src/V1/resources/cloud_deploy_rest_client_config.php delete mode 100644 owl-bot-staging/Deploy/v1/tests/Unit/V1/Client/CloudDeployClientTest.php diff --git a/Deploy/metadata/V1/CloudDeploy.php b/Deploy/metadata/V1/CloudDeploy.php index e55a683f02bc7999cde6334d86447a37d2cd7d5b..10c4f71cf2d91363487662a67b8e02cdb3c978d4 100644 GIT binary patch delta 553 zcmaFS&iu2Fc|$J?^N$wh%@bHm>KLDHKH9{@s3sJ}B~_A{o0<||P?VpWUy>SMl$w*8 zSPY~~b5bQ(6c{zQjr1oga!Ig;fRs({L4iW@m2YG5NjaflRaDF zx!7RJ7&o79W@2G^542`-V5|7#*X@zYLMdGG*j=2QpO=yevU;*jpdvTOwE+-6O=ffv z@n!U2a1!Mb2Dv-Fq_QA292to!51aft3WwR880t5qc3Kx?u fhZmDEiCMD^iv|P%nX?p+Km)V7l1l@#XOS diff --git a/Deploy/src/V1/AutomationRule.php b/Deploy/src/V1/AutomationRule.php index b3a96930a309..190c5c4bf4da 100644 --- a/Deploy/src/V1/AutomationRule.php +++ b/Deploy/src/V1/AutomationRule.php @@ -32,6 +32,10 @@ class AutomationRule extends \Google\Protobuf\Internal\Message * @type \Google\Cloud\Deploy\V1\RepairRolloutRule $repair_rollout_rule * Optional. The `RepairRolloutRule` will automatically repair a failed * rollout. + * @type \Google\Cloud\Deploy\V1\TimedPromoteReleaseRule $timed_promote_release_rule + * Optional. The `TimedPromoteReleaseRule` will automatically promote a + * release from the current target(s) to the specified target(s) on a + * configured schedule. * } */ public function __construct($data = NULL) { @@ -138,6 +142,41 @@ public function setRepairRolloutRule($var) return $this; } + /** + * Optional. The `TimedPromoteReleaseRule` will automatically promote a + * release from the current target(s) to the specified target(s) on a + * configured schedule. + * + * Generated from protobuf field .google.cloud.deploy.v1.TimedPromoteReleaseRule timed_promote_release_rule = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Deploy\V1\TimedPromoteReleaseRule|null + */ + public function getTimedPromoteReleaseRule() + { + return $this->readOneof(4); + } + + public function hasTimedPromoteReleaseRule() + { + return $this->hasOneof(4); + } + + /** + * Optional. The `TimedPromoteReleaseRule` will automatically promote a + * release from the current target(s) to the specified target(s) on a + * configured schedule. + * + * Generated from protobuf field .google.cloud.deploy.v1.TimedPromoteReleaseRule timed_promote_release_rule = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Deploy\V1\TimedPromoteReleaseRule $var + * @return $this + */ + public function setTimedPromoteReleaseRule($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\TimedPromoteReleaseRule::class); + $this->writeOneof(4, $var); + + return $this; + } + /** * @return string */ diff --git a/Deploy/src/V1/AutomationRuleCondition.php b/Deploy/src/V1/AutomationRuleCondition.php index 2dac2539cdf3..7cb60714697b 100644 --- a/Deploy/src/V1/AutomationRuleCondition.php +++ b/Deploy/src/V1/AutomationRuleCondition.php @@ -22,6 +22,7 @@ class AutomationRuleCondition extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.cloud.deploy.v1.TargetsPresentCondition targets_present_condition = 1 [(.google.api.field_behavior) = OPTIONAL]; */ protected $targets_present_condition = null; + protected $rule_type_condition; /** * Constructor. @@ -31,6 +32,9 @@ class AutomationRuleCondition extends \Google\Protobuf\Internal\Message * * @type \Google\Cloud\Deploy\V1\TargetsPresentCondition $targets_present_condition * Optional. Details around targets enumerated in the rule. + * @type \Google\Cloud\Deploy\V1\TimedPromoteReleaseCondition $timed_promote_release_condition + * Optional. TimedPromoteReleaseCondition contains rule conditions specific + * to a an Automation with a timed promote release rule defined. * } */ public function __construct($data = NULL) { @@ -74,5 +78,46 @@ public function setTargetsPresentCondition($var) return $this; } + /** + * Optional. TimedPromoteReleaseCondition contains rule conditions specific + * to a an Automation with a timed promote release rule defined. + * + * Generated from protobuf field .google.cloud.deploy.v1.TimedPromoteReleaseCondition timed_promote_release_condition = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Deploy\V1\TimedPromoteReleaseCondition|null + */ + public function getTimedPromoteReleaseCondition() + { + return $this->readOneof(2); + } + + public function hasTimedPromoteReleaseCondition() + { + return $this->hasOneof(2); + } + + /** + * Optional. TimedPromoteReleaseCondition contains rule conditions specific + * to a an Automation with a timed promote release rule defined. + * + * Generated from protobuf field .google.cloud.deploy.v1.TimedPromoteReleaseCondition timed_promote_release_condition = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Deploy\V1\TimedPromoteReleaseCondition $var + * @return $this + */ + public function setTimedPromoteReleaseCondition($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\TimedPromoteReleaseCondition::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getRuleTypeCondition() + { + return $this->whichOneof("rule_type_condition"); + } + } diff --git a/Deploy/src/V1/AutomationRun.php b/Deploy/src/V1/AutomationRun.php index 8e58a483df78..4e381d495401 100644 --- a/Deploy/src/V1/AutomationRun.php +++ b/Deploy/src/V1/AutomationRun.php @@ -60,9 +60,9 @@ class AutomationRun extends \Google\Protobuf\Internal\Message */ protected $automation_snapshot = null; /** - * Output only. The ID of the target that represents the promotion stage that - * initiates the `AutomationRun`. The value of this field is the last segment - * of a target name. + * Output only. The ID of the source target that initiates the + * `AutomationRun`. The value of this field is the last segment of a target + * name. * * Generated from protobuf field string target_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @@ -140,9 +140,9 @@ class AutomationRun extends \Google\Protobuf\Internal\Message * Output only. Snapshot of the Automation taken at AutomationRun creation * time. * @type string $target_id - * Output only. The ID of the target that represents the promotion stage that - * initiates the `AutomationRun`. The value of this field is the last segment - * of a target name. + * Output only. The ID of the source target that initiates the + * `AutomationRun`. The value of this field is the last segment of a target + * name. * @type int $state * Output only. Current state of the `AutomationRun`. * @type string $state_description @@ -164,6 +164,9 @@ class AutomationRun extends \Google\Protobuf\Internal\Message * Output only. Advances a rollout to the next phase. * @type \Google\Cloud\Deploy\V1\RepairRolloutOperation $repair_rollout_operation * Output only. Repairs a failed 'Rollout'. + * @type \Google\Cloud\Deploy\V1\TimedPromoteReleaseOperation $timed_promote_release_operation + * Output only. Promotes a release to a specified 'Target' as defined in a + * Timed Promote Release rule. * @type \Google\Protobuf\Timestamp $wait_until_time * Output only. Earliest time the `AutomationRun` will attempt to resume. * Wait-time is configured by `wait` in automation rule. @@ -373,9 +376,9 @@ public function setAutomationSnapshot($var) } /** - * Output only. The ID of the target that represents the promotion stage that - * initiates the `AutomationRun`. The value of this field is the last segment - * of a target name. + * Output only. The ID of the source target that initiates the + * `AutomationRun`. The value of this field is the last segment of a target + * name. * * Generated from protobuf field string target_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return string @@ -386,9 +389,9 @@ public function getTargetId() } /** - * Output only. The ID of the target that represents the promotion stage that - * initiates the `AutomationRun`. The value of this field is the last segment - * of a target name. + * Output only. The ID of the source target that initiates the + * `AutomationRun`. The value of this field is the last segment of a target + * name. * * Generated from protobuf field string target_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param string $var @@ -677,6 +680,39 @@ public function setRepairRolloutOperation($var) return $this; } + /** + * Output only. Promotes a release to a specified 'Target' as defined in a + * Timed Promote Release rule. + * + * Generated from protobuf field .google.cloud.deploy.v1.TimedPromoteReleaseOperation timed_promote_release_operation = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Deploy\V1\TimedPromoteReleaseOperation|null + */ + public function getTimedPromoteReleaseOperation() + { + return $this->readOneof(19); + } + + public function hasTimedPromoteReleaseOperation() + { + return $this->hasOneof(19); + } + + /** + * Output only. Promotes a release to a specified 'Target' as defined in a + * Timed Promote Release rule. + * + * Generated from protobuf field .google.cloud.deploy.v1.TimedPromoteReleaseOperation timed_promote_release_operation = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Deploy\V1\TimedPromoteReleaseOperation $var + * @return $this + */ + public function setTimedPromoteReleaseOperation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\TimedPromoteReleaseOperation::class); + $this->writeOneof(19, $var); + + return $this; + } + /** * Output only. Earliest time the `AutomationRun` will attempt to resume. * Wait-time is configured by `wait` in automation rule. diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TimedPromoteReleaseCondition.php b/Deploy/src/V1/TimedPromoteReleaseCondition.php similarity index 100% rename from owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TimedPromoteReleaseCondition.php rename to Deploy/src/V1/TimedPromoteReleaseCondition.php diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TimedPromoteReleaseCondition/Targets.php b/Deploy/src/V1/TimedPromoteReleaseCondition/Targets.php similarity index 94% rename from owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TimedPromoteReleaseCondition/Targets.php rename to Deploy/src/V1/TimedPromoteReleaseCondition/Targets.php index 27f2301a2fc7..a5eac15e68e9 100644 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TimedPromoteReleaseCondition/Targets.php +++ b/Deploy/src/V1/TimedPromoteReleaseCondition/Targets.php @@ -99,6 +99,4 @@ public function setDestinationTargetId($var) } -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Targets::class, \Google\Cloud\Deploy\V1\TimedPromoteReleaseCondition_Targets::class); diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TimedPromoteReleaseOperation.php b/Deploy/src/V1/TimedPromoteReleaseOperation.php similarity index 100% rename from owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TimedPromoteReleaseOperation.php rename to Deploy/src/V1/TimedPromoteReleaseOperation.php diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TimedPromoteReleaseRule.php b/Deploy/src/V1/TimedPromoteReleaseRule.php similarity index 100% rename from owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TimedPromoteReleaseRule.php rename to Deploy/src/V1/TimedPromoteReleaseRule.php diff --git a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/AutomationPayload.php b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/AutomationPayload.php deleted file mode 100644 index f997f5e2423a..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/AutomationPayload.php +++ /dev/null @@ -1,34 +0,0 @@ -internalAddGeneratedFile( - ' -· -/google/cloud/deploy/v1/automation_payload.protogoogle.cloud.deploy.v1"x -AutomationEvent -message (  - -automation (  - pipeline_uid ( * -type (2.google.cloud.deploy.v1.TypeBj -com.google.cloud.deploy.v1BAutomationPayloadProtoPZ2cloud.google.com/go/deploy/apiv1/deploypb;deploypbbproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/AutomationrunPayload.php b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/AutomationrunPayload.php deleted file mode 100644 index a684c442631c..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/AutomationrunPayload.php +++ /dev/null @@ -1,36 +0,0 @@ -internalAddGeneratedFile( - ' -Œ -2google/cloud/deploy/v1/automationrun_payload.protogoogle.cloud.deploy.v1"Æ -AutomationRunEvent -message (  -automation_run (  - pipeline_uid (  - automation_id (  -rule_id (  -destination_target_id ( * -type (2.google.cloud.deploy.v1.TypeBm -com.google.cloud.deploy.v1BAutomationRunPayloadProtoPZ2cloud.google.com/go/deploy/apiv1/deploypb;deploypbbproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/CloudDeploy.php b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/CloudDeploy.php deleted file mode 100644 index 10c4f71cf2d91363487662a67b8e02cdb3c978d4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 51065 zcmdsgeQ;dYb)OeYg1`j{f{$MyL`l$-WKk3eSg>VDpeT6(EGS6ChZZ0yxv;t*x zVt2i}APp;MJZ_sNZjzbCaomiXOxsC2N!%pUjyrAIPABPS#_hC?lQc7GJ58r?|4{!( z+dtZlr_=U#?z#8A``+8T9{?nG;y)~K-@WIZbMCq4p09h}E3eh=)x?wIH-bt~FEoSV z_{Q#d^IkAst5=)V&1!jkV`pnCsE=<}w`-+xP@fndpIaVZT3#E^&MmAxfvJt^PJJ_& z9=}_y-Yo}{o8{_Gak3cH%GKS;2ha1r^Zf4#2~~(nVLNEl3Y)?Bjg^_jpjjvunuYZn z62ST_0a%}t0M>6me@%$Za-q=}m%sDR;$1P0|J8Oj%B9WmMzhewf1WBe@})|tSt^uE zUjiZ5$F~aQMu7Rrv0FQp&1R`u8K()$mCfMNv*Qet#y(Z6g7E9(8lx5B1^BSOP-zDB zN}&ww8k_Y}ty!(FVCeMp-JoeWNWWZqR=t+MmA1w&F^<#I2_&zNH|slr{r2(kdeGdd zSFTCC3BaEDYrO@(GPTlrrc$XA7pj%U^mIs52*NdSwpRqn1Y*GNWtBhswh+z!v}9$_;TOwVrDn!Ed$DtWb7Xx!h& z+_e&RNwctB>wfOqZY@}!!#?hL%5HV*VG#6yrhFBlSlucX9ITNW>FTQ`wQVxRqS+<$ zP$rj*T$7YPBmUQ)PK#%|RwLdy9y%d4&V@r+N%g24%Hw3!$fFwcm>MM292CZ6Q3;)T{z&|JKw_mHY6WU0Gm6^~ z9yLPaZ$>n=gs1_EBa=;t!6bBQ5PPrsU9EMihXheBC_nVScT|kb1?AF%puW3Os^PCn z;GGgjNP~~2##5IDXVQO=NqHk8y;CZV_UT{J-f1yZR9X@{b~H^-yd^PI2vybSk@57U zp{bWAm@V;zoQS`8!cueDO0&M}&58bUVIwFvMvqERpXeIYO*xIBd_oLu)&sCBPvnpG z1J$9aF%3#{dxC^r?nfdy?P1nVjhM`{j&(OHBThDgI?kwkO|f%yK+gQAeqT(SCsyTf z&HUFt;$_6(X0=kpNe8|T$;r>UChKXldIIBqTpYovdv{b|_8``Cu(8vq1(jk@96gSo z2F9kuNP^izB7HyDLwovlke(3_h5ZQB^DF(PloM#GeQjLHSk{( z!%;qaS4BS-`)<$x!6c=Rx>&qQqx@e>iKFr_;%2i@heeRbhLBqXyJG+dZ$afXz^^n| z{-PLYG|Aw)y9?1Jc^h}b=W)EzUKgjBTlrd{j!g)IqydQ~3@^DLu+g+)#!E>4FZI#Z zCNnL3;w^}NxvZM%HXABBbK*8hLql#Tg5T#A#OduqbMszaaYJoXqJL=WwQg~pSR@#0 zlA)G#NfJontk-%SByQ{_ajrGAPBZ-N{3pcVN(oopa4dmdQU# ziGHTvn-RmX`$!?@q3yOxcjaChntIv=E61au=`fga$%<3VbLD>!BNaK$&BCwejX~qF zbU87)xzlJ?xARG8bgm6eO}LPnmGhD?XZppF?P@Xbznu~z@yFh%7=mfBiMJaCbd)IS zvlfbu+So!dF8f=kBa)7;7wS8G;#_OmyxZbL?OvgwmrZMu>E2j0u|hDy#q1mV{gfE8 ze)P^lsmk|gHOm}25BW2^lZ&lbXDi{fRKlUu6ZJ7>vR2+7GueXZnwj737b9=(Y{0dI zI&Uz|-k%U>?&5rSSlG?OV0cj44Dv8P?x|gH&Be_)oQWF@1g9IpSOf@2^xMMIK=ICp z)%tz-S88WC7b*c-!CW#BUjNA0Z>EKpe5Hp~xz}vg^7ZOY(=r_UNP#I#!abJ z>SNoHSNBzMPJ+lQ)9YcO)MWdM1^9yIi?Q0Y-^Uu^HE|xgd!r2L+-YtUHt*-PiLQ>} zP5>SkUaeZhl9XYHRO@+ps!5YkS;7_JF@~^yo23dHC(6cK)Y!#syaa2LES$&@>kxP_ zKqWeJp6N+mw*pfk>YQ_I%N(|3Z zun3x8ZJH;RgBQu0jCwk})7tn)v@++}WNW}W zXy6=c1)QX4zZSPT_cKq5CnUwJ3)JQ@{sF(CckHfev|U#SEiQ%bl0XZyq{&A4##iWt?-1jGjHB(YOI8WGyYM$o`wtB?~Hn$qlT zKl#)Xs zk(~;JWAh%VMQko83qLQ$ZUhMyY7S;1p%%rzp1fxNNBYF0vv?~V9#OYgzvNJs2`Vwc zJMw_7BSHGEjDm5)rHX0myGC&){VPwMI?EWnB0MR)F>wO^Ye|M>s+BS?Js&gvf5rOW zk`WshBf^jlMctH&PAWPR)MaE^l0{@6kSyBc%BTQYg>t$2Ft1dlBw3xF?MQwPB!gI( zl`fJGE?{J=S&L!TJ4K5T#o9Xa6IjzCDvCUDbgK&YN19dYH^dxe#EQ&vb;53oGr4NH zOjaE0J7{CLe%=e>7>;|Kl&p4!rXF``HJXlLe5S)H!l_q>d385$9E*?||I2A{Hu^rj ze-43%=j@=7c_|AzBT0g8Btq?gazK7obO&G`D(aygVQ-hqdE$^XZx`<+&&-NGP%D&L(N%W49-o{9hNMpM|Mal)LpRrFHb%EKiy|csu%SX{d#0 z2%O{A9S-tD;G22>nu&gM0PwO)&Y7Z#c>K(JRE*HhE!Bg3p+?qup*(sbT)$Xcoa59< zb=W>GJ_vYSMAJVh(s%C%qbKEPr{{d*elS}`NF}IC4!|g$6T^i{^Io-)-{c3Qrz8kx zm?$Gh$Dq6-(qvS7a;o#B*GBbC6?4`&d`cYO-YGXr%77g`Ex|nLT8%{-%S)mm%!m^z z!UPS3(DCS53F0Xi2oAkOVZ1F)BTZi2Ea9Xt=3#UpL4bJkd2F?zsZY8fDbdK7nOQXv z|E=$`oN3)lsR5-zX2hxBivfIScynY$LWeX)N93#4pK-k_t7j-hz1Aw0eMSOt#+?eULp z=oUdDne6kh=MV}gU@PHFfpgFHmUGX|@mQ+O(0dLL;N?G{7>I;G+Iwiq31NlD+7L2g zh(c%ZF(d$1@>k@c_EGVaJkvIIO68&=**LCu1BHpQly+r9?nB{3S%MchLd@t+6ZK5iVtl6&!xl#C*Qs2a8PI8&d%Oi zTUcJoXP0g-Nh66kxRT4NM@JBM5G%{8YwF)eXU>bWfmRt%XhsbDH^h*&psko_ zB2+0lOeyaUya$danqv z9c&{o-M9w`F$8d2-`m-UzkSh+_m`2`P~ka!Vj_k$pwqMp-m{Xmi1g^+8*z|&vj0&r zWSyPlcd+7t1#HJRVI>~74@hrWc#+dJPqB|^NTRJvZ3CkSi2oN-!b|FG@47e+rf5Ti z<5+EyU*R(IF*_?xMok%tztQ2{gDpcb8IOV-YaBY#F3QWXNQ~mT*To@0(n67pF#f{m zg8f#6Ba~o-IU0|y;L5i zq~di1F-p3^#JO2wuqO1sZdIvqbYCwNZr~+99 zTDmC6S=FjCsysAx-6g{sQN^7Q@!6Rirt3G1y@~X(;=G}Wbe4RFvCRAEr&^(TFFfI7 z9cew-vW(KPYZfp~1(_IJNFEABD{y0fQk*rI*hs>CM9dm>N+ozzs-$tI3nQP%25 zM~}uFC(zpnxmXdN zu)U8wO<^!vnfe4(wK2)$j7<@V;O{0iT|P1??-CoDI+rA-9-7kDhF$ze4adZr(tWe0%}tp z_p53$@5@h$qjhPk2norV3gL`c4nujKF6pNW0fQfcLFvzmV+)lBsKBU0dQUGb-Clk( zn~Mbj2gH$Et1<+5R-EFvUOsbcZFw<6F~pI+>4)!Un%(FBy!mb|Qnn5ykB|hR@_#B< zSLw&STq;Ec`xo1-hKItsqAHjOs};z48Jc?DEuztCg-o+qFKwW1Pg;_Qr)mG4Rh!!o z<||k&H#_`4pAsiy1VpgIajD!u z#?I+9#ef_Hr#zL!Q|_5|49?NhlmSP)9EL9{>r2uTQ%MA8nub!(n1X$)XP~eSh1|4X z{a--gYjS{hGF%njr?X<9#M_1ggu_$L47Dwu6Kb!qAT5Vw|K!pPyYEmXQ9>c9Btv@Gn&> zIwUNkW^-Z$zsS_%slzJnN+s^!(sR!kYVa~fBF;H_{Me65J zcPk;9m#8OHcgycmTKpsmnV?!s6ptLEEmWfJpk4!a0Vo;Dp0fX|=f$xc%m|bNC9S%y zZ)av(S#?fxOua8@&|Nd?oejF@w7khsMtD(oLPM}^Iqb*625u!`^A%CMpn|vZw&gx- zylHVt#gKT%NI~c_R`?Psia7p68$!kjmD@!aKkcoGi<^mY#9#nm_n5_(vri9u}n*2 z^ql0yRHyyIAek5&;Oq9q;8CfPJMLbECMt5cSe^NMOP6=pw@fcc?3`YnCRkZ5tx9u# z_oz5-BM;wC?J+94l!DKyZ)W`&h~D=zPl(5*(vXi7TTB^+lzeY}-G+f}4sjssdU)#9 zUidg+<7G+6buoZTwz5HqDw1^Gx!?uS?MyTyPiT$3S=d3f1)Y@b%r#cx5o{*rS?A9Z z00xV)5e-%!1SV&c_KV_Ff*S8h@%UOMcO$!&=dz6a>KYkF(V`6)RI9gUXS1lunB%&Q z`OLyi{M`pbc4%QK4-4%^F1xxqlJWd6Ze3rkDPJ0BBc_LN-qty|gEwY++s#$BFAWi83Vtn?@Iv&&2K z3peuUPLrQszO^(5labzfYZV@+GD59~N4=-T6YP}ADwfr?95{009XVw6*2>CqZVjaO zd*kAw;@Lb5QKFCD5RN!Dw*CxigL&yZMPG~}5LjQ#hN7+Y0`!|G10R;{C2&+IWv(Z*upuZk{Uc5xqwi{oxVft9a5rEO>%Y{H6zWSQb5le%8IDw1#BC&Nra(r8NR1bNqASVw`2Dhr~IoZsV})J>5w; z#29ET(uWXS8T+ihqohxE*7MQIzZatAg-*r9%0NSsrG*>9vsFYZ=+~mqosyMl zRKDon5kss?S!yqe(Zf+$(_cjn^hZ*{Z&TEvsPR76eWWQG@@d&?Vp2&u9;(0gd}x9T zTsLC-`8uV5+V05JDb&iN0_|C^>sooLGb`FrFXKkg5kdu&CnAqkNr}@lwUJ~9(R&|U z{iw6E&PzCd2&(lZ9N9sFgEH#E*#5Ey2~v2A@0*lENE-YD4%NwvH%T(DM{14K()JJr zjdGr-RSD=sX$+B~s{RtCF;>}(u5d6$L`nu5`L>+FACc6<6VF4t)`#94W33QXImzpE z6*>(5Qb|1f?OlmSkGaS@;+(w9XIQqY8Fs)W_n#9dqMjbgzDwIC0zd}?t}$~e-Tziv z3`dnd?4aY?b&<}f*{*3+8_;#;n8O-P%%`auW4ll(Z6Wpvp8!dFvq{qECUBB3OzAi1 zc1+GgHi{hgdeG++pGDHn9jl5HvgLz*=EPKnz1cQyhbeBFf4;hr*OcI9Es+xPV(h*+ z9eH7^gK;)`FgkNR?TDlUa^@(SX4Omn>tdLdtD*8jY_Tlr9udPDdx^ZhElsXE3V6@W zs)}1aK(#Z1%0bg+fr0tbzq%;KaPKAVSgE`J{?{p}D_v#-XWqVpPLSH%Yi^ASFA`!z z92HP8NvG|?{=a^|ob3N?6!OuIS7)_RN{%#q+oGp<%;SSCp?E0HL=jg?>UlAsEd-^V z+;&X8bec}w;E-{dYvIO#YGj|)!@zy7A zb~5?OTIs|kl9&Bez#=;1y1YoWi-R-0Utatg;<+kE^5F$(IoETLAgzL62Wj`0aDM?> zP2Mu>tz#ah1r_uY*iqBE48kJxtImD+%XQTxrpwES2>q(LCiKhYoo$?4)@zhbGL_qO zolqKPecl_mrl@XMD*v4>(+y8ub-JN?;nXbY3h_H|s|+NWsHZa@rDScwnu^my$Bobt zpn>@2u*NY>!8oQm493x2%E2CjanX3{GPMMdrk8#x$H3@*WSg|7#@h}qG38Tmim2t2 zzSZdL$tTZno`X(%+d6>9F;Qoyy~rs;U1<!q*=mz#36RLe-m(QvO*DM!@eh z@_=e)E_*YZSaoQ3tvfZPOl>`x_01bXg!@-n zx6XQ@jM?cqMkfj@w30bM+mn_2y_7gJC)Mv8)s5UvMT0&B8kgeN)j8neOkCMXJVr?) z!#q0>ohUsq_Y5`Iefc{c+%A0?7dInq&x)E2>P}y_=lh&U!=F?R=!<9`*4ut27$yDkF(@ z&TyM+-DFSLCK3sOy$;kFMIF@h+CY+*-m&nyPRhA2d5vi}1fU^>9pRQYVOiWm)?Ql! zc?pVQZ*4jT&C(2|B`je67i8aI_lap8Y^it>ua6F~FySYQtyFUDh^)w(;S`uW9#`L7 zSXsfz(N86Bgt3oqt;10YQHrY?Hxf-Umpe4|h|9(W8NB~73;A}mpOv#%nRK4@A{veA zCbe=RE6L6iUlPM%i&{C8B0yarN|lWx@r6Kv#A#KUqRtcosiTaYv3XUT(OWYzpR3I} z&iDT(!bsp`atk0m#C`%Xba=|y$`q5^Z2x6w*i_F~H?G=M5EaC(FsZ;45t=Fi(`e5v$%5-=A$IqTFiJh3%o|HnI- zrb9f0%XmpAyIIHKgl$e2I{^r8>!;Ms(R;B*!qcp=il_A4h#_-cgk)M=05oH@Z0+T%V0D(yc;Qv+_n2drv2gbh1h`EojnDUv zQ*g(VLut0bjYK8R0c~+p(gT^TVLIk^8pd=sSY}4GEO#bzl)CS3-qBxwnHvqOVQ7nM%g@6K^K<#PL>xJMU^H zi?zOa#2s7rkrH6ZCbDE~F1AJ7Vf2HL6~kSTg%a~K=%tS}J~XP_=#zQ2pH-pLB#NWL zo{FRv?pCVx0QQ0wvun{_mV+~0ofz$x1RINv&}ctNH=*3qy7zPkT7+5TC?fwkt_I}- zbe8+$L8C`?ZJHWI;#*J|T)`g8jqPJ^ak5Jq8ZnUSW&avC%!!pSu%Q||f0fDJrEJ1W z9U6*6m#c{k*r3{N?2dFGDo;LM8Q&=Zl)Ob2(s z7@1(RHn;%<=Y?`vB@lK8oOl@H)B>_Vjri54T*zsZa3~`)H08b;XdAW`ECdyz{)q&} z{WP5+%!v7G0s9P!_8o4D1WU=Qp($r^c}sKI0-qO;I=vMMpX&MBT(fL#bz3jc^-S_I ztXwkxeup?otiCxF^;KlwI#YLyvHEHmqqoGafKtUB=4^_9}VTAnLmz1IK$!gM(eKX-O^#WSh=ke zeH_nmmaN+E(T1&*62x)_$RehWi|T_Q9b$XBW`~9B-{O*+owob{YT_MV|gfOisW5i)nG(R%7121tVVIL~@~G zOfctz2MCzv%T@H@j#Zi^1d0}V*nJ<{#IQyZ&$yzXxE?iSHuOUnXo^IzoJ@e@@_g#`fM~k>~q=B_+=a(P%#i4F9 z2CnB%rNq;1?zn}Rd0XA?dfin(f2^$aHMfFUOFR$%Asa5;MjfGf9A~ZfQoQ4{I{>mK z3v5l}BmaASV%UOA{e4h*3c_SfjH;_gSOK5h;%tSp!OsfM(Q!MqY$=p%0HBUoXrn^{ zWToN+s4Ng2j zYEF`(@&MgzcQ-)d%f?NnEv)Y<_uq1|B z)c-rw!9JQr!73z4#APaOQpYwne`;K=N6ORWv&?oP|FB5&{~f+gn%DC0v_*se9n zeMntO)093V4E&x>!hm*T^tS5OmTW>GcYm8Ay%`>hzQf!|&qvdb0gW={v6I_b+MjGh zd`vv4zeKCqkuRBg{d^6HY20{_yO?bWDr`IN&>-HOcAw?s^TjDYd~zkeiOOge#pA72 zI1KJc>jG!krG;{iXg(Zd^ig@)Q;G^`!lnrRpXw7A+f7IL)@lBzr95BYdT{RtCb*+T zdI#<0*CXhT0qR! zPPh8vl@XsbzKM7`WWQ;(rs_+(SO(H7X=#R=tBl4*P2+>zk;J>R=~{$`cK)5~&Tw4; zr}k#ORHJVQ;)|dr12iv2;w=}^1g}F*yX%a;J3{!3=34jR)&~d*r1kIHKPS8>N zJ^}iU7*!@7Sw++eH-yaJ&~%1uBIb7ju+xwU;qw%72zqeCS?t!UP_;4XC)mLa9H4Uy_99@}eVh7hU0`zqa&1CX{8Fy^$U+lxn~?__o4pl_|6cSy3lGbLN7 zvv(SPI`MGOY3W#mT9|IDo@>1oZ2Bx7p-tS_=1#p%>22G+%A=KX@I|Shr8`ARHs(xn z-(Y7$W=2DLjI8_YLaz{I`fv&yVA5^jdEujDS__NY>^SF=lcrSd7>pfcEn>K^KJI^_ zr5E{=5=BJ&BJQm7Op-2VNEH;~rxHG`J5Z=SM1%^-UsXCa;oIT@p$K0@^~B9;vrx_# z5^io9{aK@qE79G(=L9~!XS9oJbfCQ-6c_kRItar;-2G6gMk#d{Tfb5V{2q75m$ zd{!?37{c;;kvzu3@LAgbmsI1a;t2}>4nBGshF{AP`|j`YbwJPB0$qj!h#g!XPR-3P zL`_}Nq1xKS_bVcu+CC;7!^>Xxs{YVy@~^5^SP|0;h$^!j&4r_CUz_I6J4_KkJzD4Q zi1ShFJWSob8u7ps!$j8%qwvod7g0wL)GKmO@Q>odWU@p%2A$b>8J7ai=*;IT_vDn@ z!uzQ3SKrLc&o86Bsp<~evSY$iV%#w<>?xX(pWAf|Tg)sht!0;}MSgy9d5&7u;zP*C30!wQPnVTbhm!SZZ zwr9S`297J4gYZ!ejKw@ZNdC|8Kru@@;iU{wZ0d< z7bYJ(Klv_eqwB_gygX?>tvh*nZ!%#odJyQ-vTa=%O-SmyI>qNXQ=}~hYf_x0#&KTx zbMIwjJwya|Dv)qsoZ}|IL#A(F9dHKvsyl;Xxy4PlGX`Q@j zJ-$oc{BjSxc{G9Vm7N-W(E{E18uukH*4L+QNQq7io#<6gTCwLp!hD~TF+%)*RPvqd zX+6G6_I%+xnakoVf7g-9ZJO1Movn#1Ow(PjmH1fO<1$M{uVi~L8HY%T=peZ>Q*8~> z)HowMk+Dh_y%N<$SH0)D(M2jL;320cKOaL$Ax716-hf}64k>MzW3kD zTp(^`*m^TuRKAnX)6)+X`sU9#s_dSK6ENhTz0rq52jF4awPXj|38 z!!7QR5^BYu&}fPi?3N!^P4V$vGU$Ufnp)BA{e381(j=-5u;Dq6MthW|$9d~4I#}tX zx1x5_jQ6R|c2i4F$b4eJ`z6FPVM-|MJ!b(@I7XxHZeO7;A}`wphsL$tAyAB2);Qb@ zqNI-g3%+j0_Ju~*$-c-ijd2I%^W)fE7p+gD88=Sf`hyjybdHK-Us3-JwabAQWLihb zJ=}gDj@}J-o4L_(nqH@w8y~L3>(lmvE&8k*4zOU;1-^$)R_*^m4IwWIhei0ScAoQg zXL78js>3RN9jo|+zLTon(#oiO+PK?czyDph+Sb4Hvd;Q!mGKNm#DQWZrjvguXiP`H znBk#8ipR>oI|d}jcFBNmbjg4V5n2;x!&_4<%aKuSkA*1xbSA`D@NXaktlqn0L2_)D zEU4_;R{g|fUh4KzZ?7{crr!Wzq_8crAOUXSPL9=tIiqN;rl@T@8$A_1;q60OygnM>Ci@31N4 zcN2x*r8C@aY2&%iaC?}h&l%~705$7YwAby9pF7NT+m!ebQMlg5HXzr=bg}`}C{2=+ z0n!FEgVlnquSd80qW9+hj6h2q_l!Jx-&Xb@zqY+S$YV4aZhMf&`BC#iq1}GtMz$yH?=T=m4-0^N5SaH~^ru)Qre~$y${Cc-Y!ieA@niyvQn}_*PU9PY{ z6#b!5CryG*=qF?Mv)zVJY@nvZS!J0Rua@Qu_AyoT^KxMho3!bszIIMx_mjLzd=t6t zD)A6an{$aO=m|K#jX|S0~0R{kRrAx-=y*YeiMQgKOZLl05##=W`|T^CK(f!0Oh53}}ki?TX*)~v-~O_;MSMawx#;_~)#<^09N zS*~g0Gmb5NCo|@*@BeOQ;$E{^YfMj0K79C4*}Uds_7H=6lXCLa8afnjRqNX`KXDA@ z;?-@3c|5~kJyC%eswP=UeR@iQFf*##lXt5siaCjQp**Z8Lz=aXYxZtcgQ%&}+`fJasDtlKKnC(qU7-;?=|GW2o<|`@jlp8pzcB_q2vs&NvKHcpb zU|duJd@l>_awgvm{{e?r14E#WzO$@B1B=g!ag1!@+vh<&PT*`A3ErUYO?Qm|PoTH+ zUwFZmqLP^!e}%C}yjQz@NmXAU!fVXmcu}bxJMUEM_k;RMwOaNv-M;9dnS(d+Kk_v| zz`KfK{OL@i! Vg>vajL2>-L9C=NS+Y@_2{6AkIpgI5m diff --git a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/CustomtargettypeNotificationPayload.php b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/CustomtargettypeNotificationPayload.php deleted file mode 100644 index fff76df25001..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/CustomtargettypeNotificationPayload.php +++ /dev/null @@ -1,33 +0,0 @@ -internalAddGeneratedFile( - ' - -Bgoogle/cloud/deploy/v1/customtargettype_notification_payload.protogoogle.cloud.deploy.v1"œ -!CustomTargetTypeNotificationEvent -message (  -custom_target_type_uid (  -custom_target_type ( * -type (2.google.cloud.deploy.v1.TypeB| -com.google.cloud.deploy.v1B(CustomTargetTypeNotificationPayloadProtoPZ2cloud.google.com/go/deploy/apiv1/deploypb;deploypbbproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/DeliverypipelineNotificationPayload.php b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/DeliverypipelineNotificationPayload.php deleted file mode 100644 index f159037d9297..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/DeliverypipelineNotificationPayload.php +++ /dev/null @@ -1,33 +0,0 @@ -internalAddGeneratedFile( - ' -ö -Bgoogle/cloud/deploy/v1/deliverypipeline_notification_payload.protogoogle.cloud.deploy.v1"‘ -!DeliveryPipelineNotificationEvent -message (  - pipeline_uid (  -delivery_pipeline ( * -type (2.google.cloud.deploy.v1.TypeB| -com.google.cloud.deploy.v1B(DeliveryPipelineNotificationPayloadProtoPZ2cloud.google.com/go/deploy/apiv1/deploypb;deploypbbproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/DeploypolicyEvaluationPayload.php b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/DeploypolicyEvaluationPayload.php deleted file mode 100644 index e6b573ee865a03d5d57af5f9db34fb26acb65a7e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1552 zcmbtUYfsxS6kU0=)PoHom@+0!9w1R9mJ0T*&`q=nC=zQUUK3NK$W7d0Esd?j>C{d9 zoc+ydj-5V$p-m#6l9TIm&ON!gho9ID1Do&!M>s|t2e31Q{02i7Q%-#v!cN-l;u!k0 z&q#=4146S6TkQ*InfApyaWtW6?Bg2jQQ8Y})emVJR0GUHI;;-%@;gRD;txGMKw*kF zp^?YXFr+9jq!0iR>f?kVAHx%;@fmXzAdcJ<$>}yTPS=#2?$zD_0Dg#)1S&*vTVrZR zF@v7~ii@QkAq^8QWPP|r5|2cL6BLpkqT4#`qA>Ed z7!~Q%;mD(t1t!9B?TF(zLZR@R_%UIe#*Qeh)q0qZW6qGuPA;3#kuIz#kG0wZlXb}B z6i=%|7-OEs(Sh`x5!{aN+@flYLosZbh5qoA4%TKQ4oy1AB#DtjMXyjZScDY z4xcgr+ADS1kmF;h@i7K_8^7kk8|BlHBQ*KU)&NIbdkIQna1zwRdI1(HWo-qN<21w` zA2O`ZNN5qvWsp8ApH{&lBMgTm!d^-OeNLjU!Ac;o0gi{>=(RpCUughv6pODX%Zn0w z0g4LKOY*r6N+cT4Z#dQ$1n^>i*Z6xw#&k1=t?hN< zbH)upzjRmdEm(Kjr*`w&yRyzqyLsVVw$2@^X&>8`x%^Dzv~qNM+WumhUgO$RrOO3v z6)c-pOO#BZGaG%dc87hWtGU}?^PWsw=$+Z7^-wP_%nO8!(#zrVOJT2N3Uf1!0azDX z@{xEN8`B?t5_`U^internalAddGeneratedFile( - ' -ë ->google/cloud/deploy/v1/deploypolicy_notification_payload.protogoogle.cloud.deploy.v1"Ž -DeployPolicyNotificationEvent -message (  - deploy_policy (  -deploy_policy_uid ( * -type (2.google.cloud.deploy.v1.TypeBx -com.google.cloud.deploy.v1B$DeployPolicyNotificationPayloadProtoPZ2cloud.google.com/go/deploy/apiv1/deploypb;deploypbbproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/JobrunNotificationPayload.php b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/JobrunNotificationPayload.php deleted file mode 100644 index a2457623cd07..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/JobrunNotificationPayload.php +++ /dev/null @@ -1,38 +0,0 @@ -internalAddGeneratedFile( - ' -­ -8google/cloud/deploy/v1/jobrun_notification_payload.protogoogle.cloud.deploy.v1"Ü -JobRunNotificationEvent -message (  -job_run (  - pipeline_uid (  - release_uid (  -release (  - rollout_uid (  -rollout (  - target_id ( * -type (2.google.cloud.deploy.v1.TypeBr -com.google.cloud.deploy.v1BJobRunNotificationPayloadProtoPZ2cloud.google.com/go/deploy/apiv1/deploypb;deploypbbproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/LogEnums.php b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/LogEnums.php deleted file mode 100644 index 27693e1cb5e534cbe97029b803904d3dee091b36..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 995 zcma)5eQVP|9Jbq><3I>;zN|30X>pxsO7*|iDrs`9f!Kt+6e@*qO|M-b&4uJLsM4?D zC-Q@Nxh!Qc1@lji`#sO|d+zu0=}UT@g4b|N5|Uv?mT<9!?3%zdql|_$hKpjgA{h+n zCXHf}DG=%woLC-2y5U`LYEFwRBt5vMbRCmU7}H|eS&}rS+s;k56Vr7-l46r9LK1)k zZ%CfvkifA${6-jFVut5q!Jca+d#(%ieA?{;5XLyqp-I=M6aha07W;wXeU!;Jr0 zQ65A|#3CF=Kll>{aE0TXaPocZsz^c>(FB$RD+x*a3RapWwv|%;Vh*ku)X1?EP= zNS5H3Tg$^NN*T>;4(;{Ugzalr-n6f7)0T443brecz1}^O1IV(1+|3SQMp%(0ec`(l z*zHfk+56AYtq*m%+@~G!zO?til6DDxAA&dk*AV$xg;PZ1l&W#cP514u190SRQzD-N z$(z|I@F%W~G-G5SU3wt502H^jKXm!}_Jw6E%9jHE;P1vsr#97{v48>mCe@wonxd=AcPrso)%(488V$?3ZEP(A}s>u@Ek zBNLUOWBECFQiUwjw0tk{ZJm>(NAd+Y7XcmFrZo#}%QUoEfTpVH3*XX-{A%xaq9aGR z^^sfqJ!l@BG=>;7`8FtjFWc~OJ*r}M?8f&GRbgv5-E`Kp-VdBcd_}67r;C1lSR9L8 a`FOeS>bq)K?#$Ld=Sm=}5!!(r0Dl1Uqc7b6 diff --git a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/ReleaseNotificationPayload.php b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/ReleaseNotificationPayload.php deleted file mode 100644 index 1eabbab67893..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/ReleaseNotificationPayload.php +++ /dev/null @@ -1,34 +0,0 @@ -internalAddGeneratedFile( - ' -æ -9google/cloud/deploy/v1/release_notification_payload.protogoogle.cloud.deploy.v1"“ -ReleaseNotificationEvent -message (  - pipeline_uid (  - release_uid (  -release ( * -type (2.google.cloud.deploy.v1.TypeBs -com.google.cloud.deploy.v1BReleaseNotificationPayloadProtoPZ2cloud.google.com/go/deploy/apiv1/deploypb;deploypbbproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/ReleaseRenderPayload.php b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/ReleaseRenderPayload.php deleted file mode 100644 index bf80edd2a223..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/ReleaseRenderPayload.php +++ /dev/null @@ -1,35 +0,0 @@ -internalAddGeneratedFile( - ' -² -3google/cloud/deploy/v1/release_render_payload.protogoogle.cloud.deploy.v1&google/cloud/deploy/v1/log_enums.proto"à -ReleaseRenderEvent -message (  - pipeline_uid (  -release ( * -type (2.google.cloud.deploy.v1.TypeI -release_render_state (2+.google.cloud.deploy.v1.Release.RenderStateBm -com.google.cloud.deploy.v1BReleaseRenderPayloadProtoPZ2cloud.google.com/go/deploy/apiv1/deploypb;deploypbbproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/RolloutNotificationPayload.php b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/RolloutNotificationPayload.php deleted file mode 100644 index 7ea89d9a57da..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/RolloutNotificationPayload.php +++ /dev/null @@ -1,37 +0,0 @@ -internalAddGeneratedFile( - ' -Ÿ -9google/cloud/deploy/v1/rollout_notification_payload.protogoogle.cloud.deploy.v1"Ì -RolloutNotificationEvent -message (  - pipeline_uid (  - release_uid (  -release (  - rollout_uid (  -rollout (  - target_id ( * -type (2.google.cloud.deploy.v1.TypeBs -com.google.cloud.deploy.v1BRolloutNotificationPayloadProtoPZ2cloud.google.com/go/deploy/apiv1/deploypb;deploypbbproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/RolloutUpdatePayload.php b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/RolloutUpdatePayload.php deleted file mode 100644 index beba3f9c57a26ef6a48401370571048c5376dc79..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1368 zcmbVMZ%@-e7b^{qj%`_&SK*BKE1$Z|=Q`TeF)UECh31&%iYj2}T*SoY=l4*GF zH}Ko}S-f7i0ZwA#-t3-VpXc}de@;HID+YF8g9IeRoVai>f&7X<7E(?f>cc@i9Fh<^ zbj&=Tgeru33pQI_h;*a-T9`&O4jod1BT7d;sX9K5-KtBNPbbyugK9{9fp9x!uHd&B zp7<2Is^kYCz+)0I>=4+n&OQ^4g%a*JBvrqjQ1x|5)xS762Eg%g6v1{%*^`V`N(jCK zD1Iy+_?`nJj=A{T^&;B~JnmuN`zCTbg+uH|L=Y|N4&%V#9t~h(&7OIw0!x!S>HAQ0{dUU6X(-8z3)6Bf=w6&cRHjpgaL<%wxp& z0%FIWTh2&y3lu}*6C9=Bk_3hA6fCdKfplof%M#cG1&%|}BU>jUPzA* zU#fo(SM3TN`810k7IE(`@y+cF)qaF0#9q z7P5QIj)m&RxqpYhX2ng#;3*jXt4z!d4XBENS{h;`-KNO@mp6n{>1{pZB-vBHr2C2X|I#rYm&= HZUFcVSbUx$ diff --git a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/TargetNotificationPayload.php b/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/TargetNotificationPayload.php deleted file mode 100644 index 712c49b2d540..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/GPBMetadata/Google/Cloud/Deploy/V1/TargetNotificationPayload.php +++ /dev/null @@ -1,32 +0,0 @@ -internalAddGeneratedFile( - ' -¶ -8google/cloud/deploy/v1/target_notification_payload.protogoogle.cloud.deploy.v1"f -TargetNotificationEvent -message (  -target ( * -type (2.google.cloud.deploy.v1.TypeBr -com.google.cloud.deploy.v1BTargetNotificationPayloadProtoPZ2cloud.google.com/go/deploy/apiv1/deploypb;deploypbbproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AbandonReleaseRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AbandonReleaseRequest.php deleted file mode 100644 index 0b9a4e24b06f..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AbandonReleaseRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.deploy.v1.AbandonReleaseRequest - */ -class AbandonReleaseRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the Release. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Name of the Release. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`. Please see - * {@see CloudDeployClient::releaseName()} for help formatting this field. - * - * @return \Google\Cloud\Deploy\V1\AbandonReleaseRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the Release. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the Release. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the Release. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AbandonReleaseResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AbandonReleaseResponse.php deleted file mode 100644 index 0c9a99c6c1de..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AbandonReleaseResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.deploy.v1.AbandonReleaseResponse - */ -class AbandonReleaseResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceChildRolloutJob.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceChildRolloutJob.php deleted file mode 100644 index aecd9a83cdcf..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceChildRolloutJob.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.deploy.v1.AdvanceChildRolloutJob - */ -class AdvanceChildRolloutJob extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceChildRolloutJobRun.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceChildRolloutJobRun.php deleted file mode 100644 index b864bc78b9ed..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceChildRolloutJobRun.php +++ /dev/null @@ -1,106 +0,0 @@ -google.cloud.deploy.v1.AdvanceChildRolloutJobRun - */ -class AdvanceChildRolloutJobRun extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Name of the `ChildRollout`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. - * - * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $rollout = ''; - /** - * Output only. the ID of the ChildRollout's Phase. - * - * Generated from protobuf field string rollout_phase_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $rollout_phase_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $rollout - * Output only. Name of the `ChildRollout`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. - * @type string $rollout_phase_id - * Output only. the ID of the ChildRollout's Phase. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Name of the `ChildRollout`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. - * - * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getRollout() - { - return $this->rollout; - } - - /** - * Output only. Name of the `ChildRollout`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. - * - * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setRollout($var) - { - GPBUtil::checkString($var, True); - $this->rollout = $var; - - return $this; - } - - /** - * Output only. the ID of the ChildRollout's Phase. - * - * Generated from protobuf field string rollout_phase_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getRolloutPhaseId() - { - return $this->rollout_phase_id; - } - - /** - * Output only. the ID of the ChildRollout's Phase. - * - * Generated from protobuf field string rollout_phase_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setRolloutPhaseId($var) - { - GPBUtil::checkString($var, True); - $this->rollout_phase_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutOperation.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutOperation.php deleted file mode 100644 index 8c8cd04062da..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutOperation.php +++ /dev/null @@ -1,179 +0,0 @@ -google.cloud.deploy.v1.AdvanceRolloutOperation - */ -class AdvanceRolloutOperation extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The phase of a deployment that initiated the operation. - * - * Generated from protobuf field string source_phase = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $source_phase = ''; - /** - * Output only. How long the operation will be paused. - * - * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $wait = null; - /** - * Output only. The name of the rollout that initiates the `AutomationRun`. - * - * Generated from protobuf field string rollout = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $rollout = ''; - /** - * Output only. The phase the rollout will be advanced to. - * - * Generated from protobuf field string destination_phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $destination_phase = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $source_phase - * Output only. The phase of a deployment that initiated the operation. - * @type \Google\Protobuf\Duration $wait - * Output only. How long the operation will be paused. - * @type string $rollout - * Output only. The name of the rollout that initiates the `AutomationRun`. - * @type string $destination_phase - * Output only. The phase the rollout will be advanced to. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The phase of a deployment that initiated the operation. - * - * Generated from protobuf field string source_phase = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getSourcePhase() - { - return $this->source_phase; - } - - /** - * Output only. The phase of a deployment that initiated the operation. - * - * Generated from protobuf field string source_phase = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setSourcePhase($var) - { - GPBUtil::checkString($var, True); - $this->source_phase = $var; - - return $this; - } - - /** - * Output only. How long the operation will be paused. - * - * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Duration|null - */ - public function getWait() - { - return $this->wait; - } - - public function hasWait() - { - return isset($this->wait); - } - - public function clearWait() - { - unset($this->wait); - } - - /** - * Output only. How long the operation will be paused. - * - * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setWait($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->wait = $var; - - return $this; - } - - /** - * Output only. The name of the rollout that initiates the `AutomationRun`. - * - * Generated from protobuf field string rollout = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getRollout() - { - return $this->rollout; - } - - /** - * Output only. The name of the rollout that initiates the `AutomationRun`. - * - * Generated from protobuf field string rollout = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setRollout($var) - { - GPBUtil::checkString($var, True); - $this->rollout = $var; - - return $this; - } - - /** - * Output only. The phase the rollout will be advanced to. - * - * Generated from protobuf field string destination_phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDestinationPhase() - { - return $this->destination_phase; - } - - /** - * Output only. The phase the rollout will be advanced to. - * - * Generated from protobuf field string destination_phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDestinationPhase($var) - { - GPBUtil::checkString($var, True); - $this->destination_phase = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutRequest.php deleted file mode 100644 index dd584135c39b..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutRequest.php +++ /dev/null @@ -1,160 +0,0 @@ -google.cloud.deploy.v1.AdvanceRolloutRequest - */ -class AdvanceRolloutRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the Rollout. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. The phase ID to advance the `Rollout` to. - * - * Generated from protobuf field string phase_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $phase_id = ''; - /** - * Optional. Deploy policies to override. Format is - * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. - * - * Generated from protobuf field repeated string override_deploy_policy = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $override_deploy_policy; - - /** - * @param string $name Required. Name of the Rollout. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. Please see - * {@see CloudDeployClient::rolloutName()} for help formatting this field. - * @param string $phaseId Required. The phase ID to advance the `Rollout` to. - * - * @return \Google\Cloud\Deploy\V1\AdvanceRolloutRequest - * - * @experimental - */ - public static function build(string $name, string $phaseId): self - { - return (new self()) - ->setName($name) - ->setPhaseId($phaseId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the Rollout. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. - * @type string $phase_id - * Required. The phase ID to advance the `Rollout` to. - * @type array|\Google\Protobuf\Internal\RepeatedField $override_deploy_policy - * Optional. Deploy policies to override. Format is - * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the Rollout. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the Rollout. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The phase ID to advance the `Rollout` to. - * - * Generated from protobuf field string phase_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getPhaseId() - { - return $this->phase_id; - } - - /** - * Required. The phase ID to advance the `Rollout` to. - * - * Generated from protobuf field string phase_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setPhaseId($var) - { - GPBUtil::checkString($var, True); - $this->phase_id = $var; - - return $this; - } - - /** - * Optional. Deploy policies to override. Format is - * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. - * - * Generated from protobuf field repeated string override_deploy_policy = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOverrideDeployPolicy() - { - return $this->override_deploy_policy; - } - - /** - * Optional. Deploy policies to override. Format is - * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. - * - * Generated from protobuf field repeated string override_deploy_policy = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOverrideDeployPolicy($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->override_deploy_policy = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutResponse.php deleted file mode 100644 index 14f85ee02712..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.deploy.v1.AdvanceRolloutResponse - */ -class AdvanceRolloutResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutRule.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutRule.php deleted file mode 100644 index 798428be12f8..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AdvanceRolloutRule.php +++ /dev/null @@ -1,214 +0,0 @@ -google.cloud.deploy.v1.AdvanceRolloutRule - */ -class AdvanceRolloutRule extends \Google\Protobuf\Internal\Message -{ - /** - * Required. ID of the rule. This id must be unique in the `Automation` - * resource to which this rule belongs. The format is - * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. - * - * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $id = ''; - /** - * Optional. Proceeds only after phase name matched any one in the list. - * This value must consist of lower-case letters, numbers, and hyphens, - * start with a letter and end with a letter or a number, and have a max - * length of 63 characters. In other words, it must match the following - * regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * - * Generated from protobuf field repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $source_phases; - /** - * Optional. How long to wait after a rollout is finished. - * - * Generated from protobuf field .google.protobuf.Duration wait = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $wait = null; - /** - * Output only. Information around the state of the Automation rule. - * - * Generated from protobuf field .google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $condition = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * Required. ID of the rule. This id must be unique in the `Automation` - * resource to which this rule belongs. The format is - * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. - * @type array|\Google\Protobuf\Internal\RepeatedField $source_phases - * Optional. Proceeds only after phase name matched any one in the list. - * This value must consist of lower-case letters, numbers, and hyphens, - * start with a letter and end with a letter or a number, and have a max - * length of 63 characters. In other words, it must match the following - * regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * @type \Google\Protobuf\Duration $wait - * Optional. How long to wait after a rollout is finished. - * @type \Google\Cloud\Deploy\V1\AutomationRuleCondition $condition - * Output only. Information around the state of the Automation rule. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. ID of the rule. This id must be unique in the `Automation` - * resource to which this rule belongs. The format is - * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. - * - * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Required. ID of the rule. This id must be unique in the `Automation` - * resource to which this rule belongs. The format is - * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. - * - * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Optional. Proceeds only after phase name matched any one in the list. - * This value must consist of lower-case letters, numbers, and hyphens, - * start with a letter and end with a letter or a number, and have a max - * length of 63 characters. In other words, it must match the following - * regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * - * Generated from protobuf field repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSourcePhases() - { - return $this->source_phases; - } - - /** - * Optional. Proceeds only after phase name matched any one in the list. - * This value must consist of lower-case letters, numbers, and hyphens, - * start with a letter and end with a letter or a number, and have a max - * length of 63 characters. In other words, it must match the following - * regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * - * Generated from protobuf field repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSourcePhases($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->source_phases = $arr; - - return $this; - } - - /** - * Optional. How long to wait after a rollout is finished. - * - * Generated from protobuf field .google.protobuf.Duration wait = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Duration|null - */ - public function getWait() - { - return $this->wait; - } - - public function hasWait() - { - return isset($this->wait); - } - - public function clearWait() - { - unset($this->wait); - } - - /** - * Optional. How long to wait after a rollout is finished. - * - * Generated from protobuf field .google.protobuf.Duration wait = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setWait($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->wait = $var; - - return $this; - } - - /** - * Output only. Information around the state of the Automation rule. - * - * Generated from protobuf field .google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\AutomationRuleCondition|null - */ - public function getCondition() - { - return $this->condition; - } - - public function hasCondition() - { - return isset($this->condition); - } - - public function clearCondition() - { - unset($this->condition); - } - - /** - * Output only. Information around the state of the Automation rule. - * - * Generated from protobuf field .google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\AutomationRuleCondition $var - * @return $this - */ - public function setCondition($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\AutomationRuleCondition::class); - $this->condition = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AnthosCluster.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AnthosCluster.php deleted file mode 100644 index 4a94f019e63a..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AnthosCluster.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.deploy.v1.AnthosCluster - */ -class AnthosCluster extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Membership of the GKE Hub-registered cluster to which to apply - * the Skaffold configuration. Format is - * `projects/{project}/locations/{location}/memberships/{membership_name}`. - * - * Generated from protobuf field string membership = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $membership = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $membership - * Optional. Membership of the GKE Hub-registered cluster to which to apply - * the Skaffold configuration. Format is - * `projects/{project}/locations/{location}/memberships/{membership_name}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Membership of the GKE Hub-registered cluster to which to apply - * the Skaffold configuration. Format is - * `projects/{project}/locations/{location}/memberships/{membership_name}`. - * - * Generated from protobuf field string membership = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getMembership() - { - return $this->membership; - } - - /** - * Optional. Membership of the GKE Hub-registered cluster to which to apply - * the Skaffold configuration. Format is - * `projects/{project}/locations/{location}/memberships/{membership_name}`. - * - * Generated from protobuf field string membership = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setMembership($var) - { - GPBUtil::checkString($var, True); - $this->membership = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ApproveRolloutRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ApproveRolloutRequest.php deleted file mode 100644 index c0e44d90c61f..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ApproveRolloutRequest.php +++ /dev/null @@ -1,158 +0,0 @@ -google.cloud.deploy.v1.ApproveRolloutRequest - */ -class ApproveRolloutRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the Rollout. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. True = approve; false = reject - * - * Generated from protobuf field bool approved = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $approved = false; - /** - * Optional. Deploy policies to override. Format is - * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. - * - * Generated from protobuf field repeated string override_deploy_policy = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $override_deploy_policy; - - /** - * @param string $name Required. Name of the Rollout. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. Please see - * {@see CloudDeployClient::rolloutName()} for help formatting this field. - * - * @return \Google\Cloud\Deploy\V1\ApproveRolloutRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the Rollout. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. - * @type bool $approved - * Required. True = approve; false = reject - * @type array|\Google\Protobuf\Internal\RepeatedField $override_deploy_policy - * Optional. Deploy policies to override. Format is - * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the Rollout. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the Rollout. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. True = approve; false = reject - * - * Generated from protobuf field bool approved = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return bool - */ - public function getApproved() - { - return $this->approved; - } - - /** - * Required. True = approve; false = reject - * - * Generated from protobuf field bool approved = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param bool $var - * @return $this - */ - public function setApproved($var) - { - GPBUtil::checkBool($var); - $this->approved = $var; - - return $this; - } - - /** - * Optional. Deploy policies to override. Format is - * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. - * - * Generated from protobuf field repeated string override_deploy_policy = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOverrideDeployPolicy() - { - return $this->override_deploy_policy; - } - - /** - * Optional. Deploy policies to override. Format is - * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. - * - * Generated from protobuf field repeated string override_deploy_policy = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOverrideDeployPolicy($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->override_deploy_policy = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ApproveRolloutResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ApproveRolloutResponse.php deleted file mode 100644 index afac40c7146c..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ApproveRolloutResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.deploy.v1.ApproveRolloutResponse - */ -class ApproveRolloutResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AssociatedEntities.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AssociatedEntities.php deleted file mode 100644 index 3a6e382e89e5..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AssociatedEntities.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.deploy.v1.AssociatedEntities - */ -class AssociatedEntities extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Information specifying GKE clusters as associated entities. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.GkeCluster gke_clusters = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $gke_clusters; - /** - * Optional. Information specifying Anthos clusters as associated entities. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.AnthosCluster anthos_clusters = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $anthos_clusters; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Deploy\V1\GkeCluster>|\Google\Protobuf\Internal\RepeatedField $gke_clusters - * Optional. Information specifying GKE clusters as associated entities. - * @type array<\Google\Cloud\Deploy\V1\AnthosCluster>|\Google\Protobuf\Internal\RepeatedField $anthos_clusters - * Optional. Information specifying Anthos clusters as associated entities. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Information specifying GKE clusters as associated entities. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.GkeCluster gke_clusters = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getGkeClusters() - { - return $this->gke_clusters; - } - - /** - * Optional. Information specifying GKE clusters as associated entities. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.GkeCluster gke_clusters = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\Deploy\V1\GkeCluster>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setGkeClusters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\GkeCluster::class); - $this->gke_clusters = $arr; - - return $this; - } - - /** - * Optional. Information specifying Anthos clusters as associated entities. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.AnthosCluster anthos_clusters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAnthosClusters() - { - return $this->anthos_clusters; - } - - /** - * Optional. Information specifying Anthos clusters as associated entities. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.AnthosCluster anthos_clusters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\Deploy\V1\AnthosCluster>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAnthosClusters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\AnthosCluster::class); - $this->anthos_clusters = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Automation.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Automation.php deleted file mode 100644 index 443645ba2bbd..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Automation.php +++ /dev/null @@ -1,596 +0,0 @@ -google.cloud.deploy.v1.Automation - */ -class Automation extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Name of the `Automation`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automations/{automation}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Output only. Unique identifier of the `Automation`. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Optional. Description of the `Automation`. Max length is 255 characters. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Output only. Time at which the automation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Time at which the automation was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. User annotations. These attributes can only be set and used by - * the user, and not by Cloud Deploy. Annotations must meet the following - * constraints: - * * Annotations are key/value pairs. - * * Valid annotation keys have two segments: an optional prefix and name, - * separated by a slash (`/`). - * * The name segment is required and must be 63 characters or less, - * beginning and ending with an alphanumeric character (`[a-z0-9A-Z]`) with - * dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between. - * * The prefix is optional. If specified, the prefix must be a DNS subdomain: - * a series of DNS labels separated by dots(`.`), not longer than 253 - * characters in total, followed by a slash (`/`). - * See - * https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set - * for more details. - * - * Generated from protobuf field map annotations = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $annotations; - /** - * Optional. Labels are attributes that can be set and used by both the - * user and by Cloud Deploy. Labels must meet the following constraints: - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. - * * All characters must use UTF-8 encoding, and international characters are - * allowed. - * * Keys must start with a lowercase letter or international character. - * * Each resource is limited to a maximum of 64 labels. - * Both keys and values are additionally constrained to be <= 63 characters. - * - * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Optional. The weak etag of the `Automation` resource. - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - /** - * Optional. When Suspended, automation is deactivated from execution. - * - * Generated from protobuf field bool suspended = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $suspended = false; - /** - * Required. Email address of the user-managed IAM service account that - * creates Cloud Deploy release and rollout resources. - * - * Generated from protobuf field string service_account = 10 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $service_account = ''; - /** - * Required. Selected resources to which the automation will be applied. - * - * Generated from protobuf field .google.cloud.deploy.v1.AutomationResourceSelector selector = 11 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $selector = null; - /** - * Required. List of Automation rules associated with the Automation resource. - * Must have at least one rule and limited to 250 rules per Delivery Pipeline. - * Note: the order of the rules here is not the same as the order of - * execution. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.AutomationRule rules = 14 [(.google.api.field_behavior) = REQUIRED]; - */ - private $rules; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Name of the `Automation`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automations/{automation}`. - * @type string $uid - * Output only. Unique identifier of the `Automation`. - * @type string $description - * Optional. Description of the `Automation`. Max length is 255 characters. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time at which the automation was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Time at which the automation was updated. - * @type array|\Google\Protobuf\Internal\MapField $annotations - * Optional. User annotations. These attributes can only be set and used by - * the user, and not by Cloud Deploy. Annotations must meet the following - * constraints: - * * Annotations are key/value pairs. - * * Valid annotation keys have two segments: an optional prefix and name, - * separated by a slash (`/`). - * * The name segment is required and must be 63 characters or less, - * beginning and ending with an alphanumeric character (`[a-z0-9A-Z]`) with - * dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between. - * * The prefix is optional. If specified, the prefix must be a DNS subdomain: - * a series of DNS labels separated by dots(`.`), not longer than 253 - * characters in total, followed by a slash (`/`). - * See - * https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set - * for more details. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. Labels are attributes that can be set and used by both the - * user and by Cloud Deploy. Labels must meet the following constraints: - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. - * * All characters must use UTF-8 encoding, and international characters are - * allowed. - * * Keys must start with a lowercase letter or international character. - * * Each resource is limited to a maximum of 64 labels. - * Both keys and values are additionally constrained to be <= 63 characters. - * @type string $etag - * Optional. The weak etag of the `Automation` resource. - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * @type bool $suspended - * Optional. When Suspended, automation is deactivated from execution. - * @type string $service_account - * Required. Email address of the user-managed IAM service account that - * creates Cloud Deploy release and rollout resources. - * @type \Google\Cloud\Deploy\V1\AutomationResourceSelector $selector - * Required. Selected resources to which the automation will be applied. - * @type array<\Google\Cloud\Deploy\V1\AutomationRule>|\Google\Protobuf\Internal\RepeatedField $rules - * Required. List of Automation rules associated with the Automation resource. - * Must have at least one rule and limited to 250 rules per Delivery Pipeline. - * Note: the order of the rules here is not the same as the order of - * execution. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Name of the `Automation`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automations/{automation}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Name of the `Automation`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automations/{automation}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. Unique identifier of the `Automation`. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. Unique identifier of the `Automation`. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Optional. Description of the `Automation`. Max length is 255 characters. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description of the `Automation`. Max length is 255 characters. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. Time at which the automation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time at which the automation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. Time at which the automation was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. Time at which the automation was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Optional. User annotations. These attributes can only be set and used by - * the user, and not by Cloud Deploy. Annotations must meet the following - * constraints: - * * Annotations are key/value pairs. - * * Valid annotation keys have two segments: an optional prefix and name, - * separated by a slash (`/`). - * * The name segment is required and must be 63 characters or less, - * beginning and ending with an alphanumeric character (`[a-z0-9A-Z]`) with - * dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between. - * * The prefix is optional. If specified, the prefix must be a DNS subdomain: - * a series of DNS labels separated by dots(`.`), not longer than 253 - * characters in total, followed by a slash (`/`). - * See - * https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set - * for more details. - * - * Generated from protobuf field map annotations = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * Optional. User annotations. These attributes can only be set and used by - * the user, and not by Cloud Deploy. Annotations must meet the following - * constraints: - * * Annotations are key/value pairs. - * * Valid annotation keys have two segments: an optional prefix and name, - * separated by a slash (`/`). - * * The name segment is required and must be 63 characters or less, - * beginning and ending with an alphanumeric character (`[a-z0-9A-Z]`) with - * dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between. - * * The prefix is optional. If specified, the prefix must be a DNS subdomain: - * a series of DNS labels separated by dots(`.`), not longer than 253 - * characters in total, followed by a slash (`/`). - * See - * https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set - * for more details. - * - * Generated from protobuf field map annotations = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAnnotations($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->annotations = $arr; - - return $this; - } - - /** - * Optional. Labels are attributes that can be set and used by both the - * user and by Cloud Deploy. Labels must meet the following constraints: - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. - * * All characters must use UTF-8 encoding, and international characters are - * allowed. - * * Keys must start with a lowercase letter or international character. - * * Each resource is limited to a maximum of 64 labels. - * Both keys and values are additionally constrained to be <= 63 characters. - * - * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. Labels are attributes that can be set and used by both the - * user and by Cloud Deploy. Labels must meet the following constraints: - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. - * * All characters must use UTF-8 encoding, and international characters are - * allowed. - * * Keys must start with a lowercase letter or international character. - * * Each resource is limited to a maximum of 64 labels. - * Both keys and values are additionally constrained to be <= 63 characters. - * - * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Optional. The weak etag of the `Automation` resource. - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. The weak etag of the `Automation` resource. - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Optional. When Suspended, automation is deactivated from execution. - * - * Generated from protobuf field bool suspended = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getSuspended() - { - return $this->suspended; - } - - /** - * Optional. When Suspended, automation is deactivated from execution. - * - * Generated from protobuf field bool suspended = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setSuspended($var) - { - GPBUtil::checkBool($var); - $this->suspended = $var; - - return $this; - } - - /** - * Required. Email address of the user-managed IAM service account that - * creates Cloud Deploy release and rollout resources. - * - * Generated from protobuf field string service_account = 10 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getServiceAccount() - { - return $this->service_account; - } - - /** - * Required. Email address of the user-managed IAM service account that - * creates Cloud Deploy release and rollout resources. - * - * Generated from protobuf field string service_account = 10 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setServiceAccount($var) - { - GPBUtil::checkString($var, True); - $this->service_account = $var; - - return $this; - } - - /** - * Required. Selected resources to which the automation will be applied. - * - * Generated from protobuf field .google.cloud.deploy.v1.AutomationResourceSelector selector = 11 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Deploy\V1\AutomationResourceSelector|null - */ - public function getSelector() - { - return $this->selector; - } - - public function hasSelector() - { - return isset($this->selector); - } - - public function clearSelector() - { - unset($this->selector); - } - - /** - * Required. Selected resources to which the automation will be applied. - * - * Generated from protobuf field .google.cloud.deploy.v1.AutomationResourceSelector selector = 11 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Deploy\V1\AutomationResourceSelector $var - * @return $this - */ - public function setSelector($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\AutomationResourceSelector::class); - $this->selector = $var; - - return $this; - } - - /** - * Required. List of Automation rules associated with the Automation resource. - * Must have at least one rule and limited to 250 rules per Delivery Pipeline. - * Note: the order of the rules here is not the same as the order of - * execution. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.AutomationRule rules = 14 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRules() - { - return $this->rules; - } - - /** - * Required. List of Automation rules associated with the Automation resource. - * Must have at least one rule and limited to 250 rules per Delivery Pipeline. - * Note: the order of the rules here is not the same as the order of - * execution. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.AutomationRule rules = 14 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Cloud\Deploy\V1\AutomationRule>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\AutomationRule::class); - $this->rules = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationEvent.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationEvent.php deleted file mode 100644 index b12f4851332d..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationEvent.php +++ /dev/null @@ -1,174 +0,0 @@ -google.cloud.deploy.v1.AutomationEvent - */ -class AutomationEvent extends \Google\Protobuf\Internal\Message -{ - /** - * Debug message for when there is an update on the AutomationRun. - * Provides further details about the resource creation or state change. - * - * Generated from protobuf field string message = 1; - */ - protected $message = ''; - /** - * The name of the `AutomationRun`. - * - * Generated from protobuf field string automation = 2; - */ - protected $automation = ''; - /** - * Unique identifier of the `DeliveryPipeline`. - * - * Generated from protobuf field string pipeline_uid = 3; - */ - protected $pipeline_uid = ''; - /** - * Type of this notification, e.g. for a Pub/Sub failure. - * - * Generated from protobuf field .google.cloud.deploy.v1.Type type = 4; - */ - protected $type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $message - * Debug message for when there is an update on the AutomationRun. - * Provides further details about the resource creation or state change. - * @type string $automation - * The name of the `AutomationRun`. - * @type string $pipeline_uid - * Unique identifier of the `DeliveryPipeline`. - * @type int $type - * Type of this notification, e.g. for a Pub/Sub failure. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\AutomationPayload::initOnce(); - parent::__construct($data); - } - - /** - * Debug message for when there is an update on the AutomationRun. - * Provides further details about the resource creation or state change. - * - * Generated from protobuf field string message = 1; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Debug message for when there is an update on the AutomationRun. - * Provides further details about the resource creation or state change. - * - * Generated from protobuf field string message = 1; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * The name of the `AutomationRun`. - * - * Generated from protobuf field string automation = 2; - * @return string - */ - public function getAutomation() - { - return $this->automation; - } - - /** - * The name of the `AutomationRun`. - * - * Generated from protobuf field string automation = 2; - * @param string $var - * @return $this - */ - public function setAutomation($var) - { - GPBUtil::checkString($var, True); - $this->automation = $var; - - return $this; - } - - /** - * Unique identifier of the `DeliveryPipeline`. - * - * Generated from protobuf field string pipeline_uid = 3; - * @return string - */ - public function getPipelineUid() - { - return $this->pipeline_uid; - } - - /** - * Unique identifier of the `DeliveryPipeline`. - * - * Generated from protobuf field string pipeline_uid = 3; - * @param string $var - * @return $this - */ - public function setPipelineUid($var) - { - GPBUtil::checkString($var, True); - $this->pipeline_uid = $var; - - return $this; - } - - /** - * Type of this notification, e.g. for a Pub/Sub failure. - * - * Generated from protobuf field .google.cloud.deploy.v1.Type type = 4; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Type of this notification, e.g. for a Pub/Sub failure. - * - * Generated from protobuf field .google.cloud.deploy.v1.Type type = 4; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Type::class); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationResourceSelector.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationResourceSelector.php deleted file mode 100644 index dc60ab39a0d9..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationResourceSelector.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.deploy.v1.AutomationResourceSelector - */ -class AutomationResourceSelector extends \Google\Protobuf\Internal\Message -{ - /** - * Contains attributes about a target. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.TargetAttribute targets = 1; - */ - private $targets; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Deploy\V1\TargetAttribute>|\Google\Protobuf\Internal\RepeatedField $targets - * Contains attributes about a target. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Contains attributes about a target. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.TargetAttribute targets = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTargets() - { - return $this->targets; - } - - /** - * Contains attributes about a target. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.TargetAttribute targets = 1; - * @param array<\Google\Cloud\Deploy\V1\TargetAttribute>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTargets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\TargetAttribute::class); - $this->targets = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRolloutMetadata.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRolloutMetadata.php deleted file mode 100644 index fd48e1a5b7f9..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRolloutMetadata.php +++ /dev/null @@ -1,148 +0,0 @@ -google.cloud.deploy.v1.AutomationRolloutMetadata - */ -class AutomationRolloutMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The name of the AutomationRun initiated by a promote release - * rule. - * - * Generated from protobuf field string promote_automation_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $promote_automation_run = ''; - /** - * Output only. The names of the AutomationRuns initiated by an advance - * rollout rule. - * - * Generated from protobuf field repeated string advance_automation_runs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $advance_automation_runs; - /** - * Output only. The names of the AutomationRuns initiated by a repair rollout - * rule. - * - * Generated from protobuf field repeated string repair_automation_runs = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $repair_automation_runs; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $promote_automation_run - * Output only. The name of the AutomationRun initiated by a promote release - * rule. - * @type array|\Google\Protobuf\Internal\RepeatedField $advance_automation_runs - * Output only. The names of the AutomationRuns initiated by an advance - * rollout rule. - * @type array|\Google\Protobuf\Internal\RepeatedField $repair_automation_runs - * Output only. The names of the AutomationRuns initiated by a repair rollout - * rule. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The name of the AutomationRun initiated by a promote release - * rule. - * - * Generated from protobuf field string promote_automation_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getPromoteAutomationRun() - { - return $this->promote_automation_run; - } - - /** - * Output only. The name of the AutomationRun initiated by a promote release - * rule. - * - * Generated from protobuf field string promote_automation_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setPromoteAutomationRun($var) - { - GPBUtil::checkString($var, True); - $this->promote_automation_run = $var; - - return $this; - } - - /** - * Output only. The names of the AutomationRuns initiated by an advance - * rollout rule. - * - * Generated from protobuf field repeated string advance_automation_runs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAdvanceAutomationRuns() - { - return $this->advance_automation_runs; - } - - /** - * Output only. The names of the AutomationRuns initiated by an advance - * rollout rule. - * - * Generated from protobuf field repeated string advance_automation_runs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAdvanceAutomationRuns($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->advance_automation_runs = $arr; - - return $this; - } - - /** - * Output only. The names of the AutomationRuns initiated by a repair rollout - * rule. - * - * Generated from protobuf field repeated string repair_automation_runs = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRepairAutomationRuns() - { - return $this->repair_automation_runs; - } - - /** - * Output only. The names of the AutomationRuns initiated by a repair rollout - * rule. - * - * Generated from protobuf field repeated string repair_automation_runs = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRepairAutomationRuns($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->repair_automation_runs = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRule.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRule.php deleted file mode 100644 index 190c5c4bf4da..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRule.php +++ /dev/null @@ -1,189 +0,0 @@ -google.cloud.deploy.v1.AutomationRule - */ -class AutomationRule extends \Google\Protobuf\Internal\Message -{ - protected $rule; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Deploy\V1\PromoteReleaseRule $promote_release_rule - * Optional. `PromoteReleaseRule` will automatically promote a release from - * the current target to a specified target. - * @type \Google\Cloud\Deploy\V1\AdvanceRolloutRule $advance_rollout_rule - * Optional. The `AdvanceRolloutRule` will automatically advance a - * successful Rollout. - * @type \Google\Cloud\Deploy\V1\RepairRolloutRule $repair_rollout_rule - * Optional. The `RepairRolloutRule` will automatically repair a failed - * rollout. - * @type \Google\Cloud\Deploy\V1\TimedPromoteReleaseRule $timed_promote_release_rule - * Optional. The `TimedPromoteReleaseRule` will automatically promote a - * release from the current target(s) to the specified target(s) on a - * configured schedule. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Optional. `PromoteReleaseRule` will automatically promote a release from - * the current target to a specified target. - * - * Generated from protobuf field .google.cloud.deploy.v1.PromoteReleaseRule promote_release_rule = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Deploy\V1\PromoteReleaseRule|null - */ - public function getPromoteReleaseRule() - { - return $this->readOneof(1); - } - - public function hasPromoteReleaseRule() - { - return $this->hasOneof(1); - } - - /** - * Optional. `PromoteReleaseRule` will automatically promote a release from - * the current target to a specified target. - * - * Generated from protobuf field .google.cloud.deploy.v1.PromoteReleaseRule promote_release_rule = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Deploy\V1\PromoteReleaseRule $var - * @return $this - */ - public function setPromoteReleaseRule($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\PromoteReleaseRule::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Optional. The `AdvanceRolloutRule` will automatically advance a - * successful Rollout. - * - * Generated from protobuf field .google.cloud.deploy.v1.AdvanceRolloutRule advance_rollout_rule = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Deploy\V1\AdvanceRolloutRule|null - */ - public function getAdvanceRolloutRule() - { - return $this->readOneof(2); - } - - public function hasAdvanceRolloutRule() - { - return $this->hasOneof(2); - } - - /** - * Optional. The `AdvanceRolloutRule` will automatically advance a - * successful Rollout. - * - * Generated from protobuf field .google.cloud.deploy.v1.AdvanceRolloutRule advance_rollout_rule = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Deploy\V1\AdvanceRolloutRule $var - * @return $this - */ - public function setAdvanceRolloutRule($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\AdvanceRolloutRule::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Optional. The `RepairRolloutRule` will automatically repair a failed - * rollout. - * - * Generated from protobuf field .google.cloud.deploy.v1.RepairRolloutRule repair_rollout_rule = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Deploy\V1\RepairRolloutRule|null - */ - public function getRepairRolloutRule() - { - return $this->readOneof(3); - } - - public function hasRepairRolloutRule() - { - return $this->hasOneof(3); - } - - /** - * Optional. The `RepairRolloutRule` will automatically repair a failed - * rollout. - * - * Generated from protobuf field .google.cloud.deploy.v1.RepairRolloutRule repair_rollout_rule = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Deploy\V1\RepairRolloutRule $var - * @return $this - */ - public function setRepairRolloutRule($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\RepairRolloutRule::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Optional. The `TimedPromoteReleaseRule` will automatically promote a - * release from the current target(s) to the specified target(s) on a - * configured schedule. - * - * Generated from protobuf field .google.cloud.deploy.v1.TimedPromoteReleaseRule timed_promote_release_rule = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Deploy\V1\TimedPromoteReleaseRule|null - */ - public function getTimedPromoteReleaseRule() - { - return $this->readOneof(4); - } - - public function hasTimedPromoteReleaseRule() - { - return $this->hasOneof(4); - } - - /** - * Optional. The `TimedPromoteReleaseRule` will automatically promote a - * release from the current target(s) to the specified target(s) on a - * configured schedule. - * - * Generated from protobuf field .google.cloud.deploy.v1.TimedPromoteReleaseRule timed_promote_release_rule = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Deploy\V1\TimedPromoteReleaseRule $var - * @return $this - */ - public function setTimedPromoteReleaseRule($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\TimedPromoteReleaseRule::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getRule() - { - return $this->whichOneof("rule"); - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRuleCondition.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRuleCondition.php deleted file mode 100644 index 7cb60714697b..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRuleCondition.php +++ /dev/null @@ -1,123 +0,0 @@ -google.cloud.deploy.v1.AutomationRuleCondition - */ -class AutomationRuleCondition extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Details around targets enumerated in the rule. - * - * Generated from protobuf field .google.cloud.deploy.v1.TargetsPresentCondition targets_present_condition = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $targets_present_condition = null; - protected $rule_type_condition; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Deploy\V1\TargetsPresentCondition $targets_present_condition - * Optional. Details around targets enumerated in the rule. - * @type \Google\Cloud\Deploy\V1\TimedPromoteReleaseCondition $timed_promote_release_condition - * Optional. TimedPromoteReleaseCondition contains rule conditions specific - * to a an Automation with a timed promote release rule defined. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Details around targets enumerated in the rule. - * - * Generated from protobuf field .google.cloud.deploy.v1.TargetsPresentCondition targets_present_condition = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Deploy\V1\TargetsPresentCondition|null - */ - public function getTargetsPresentCondition() - { - return $this->targets_present_condition; - } - - public function hasTargetsPresentCondition() - { - return isset($this->targets_present_condition); - } - - public function clearTargetsPresentCondition() - { - unset($this->targets_present_condition); - } - - /** - * Optional. Details around targets enumerated in the rule. - * - * Generated from protobuf field .google.cloud.deploy.v1.TargetsPresentCondition targets_present_condition = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Deploy\V1\TargetsPresentCondition $var - * @return $this - */ - public function setTargetsPresentCondition($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\TargetsPresentCondition::class); - $this->targets_present_condition = $var; - - return $this; - } - - /** - * Optional. TimedPromoteReleaseCondition contains rule conditions specific - * to a an Automation with a timed promote release rule defined. - * - * Generated from protobuf field .google.cloud.deploy.v1.TimedPromoteReleaseCondition timed_promote_release_condition = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Deploy\V1\TimedPromoteReleaseCondition|null - */ - public function getTimedPromoteReleaseCondition() - { - return $this->readOneof(2); - } - - public function hasTimedPromoteReleaseCondition() - { - return $this->hasOneof(2); - } - - /** - * Optional. TimedPromoteReleaseCondition contains rule conditions specific - * to a an Automation with a timed promote release rule defined. - * - * Generated from protobuf field .google.cloud.deploy.v1.TimedPromoteReleaseCondition timed_promote_release_condition = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Deploy\V1\TimedPromoteReleaseCondition $var - * @return $this - */ - public function setTimedPromoteReleaseCondition($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\TimedPromoteReleaseCondition::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getRuleTypeCondition() - { - return $this->whichOneof("rule_type_condition"); - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRun.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRun.php deleted file mode 100644 index 4e381d495401..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRun.php +++ /dev/null @@ -1,763 +0,0 @@ -google.cloud.deploy.v1.AutomationRun - */ -class AutomationRun extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Name of the `AutomationRun`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Output only. Time at which the `AutomationRun` was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Time at which the automationRun was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. The weak etag of the `AutomationRun` resource. - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $etag = ''; - /** - * Output only. Email address of the user-managed IAM service account that - * performs the operations against Cloud Deploy resources. - * - * Generated from protobuf field string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $service_account = ''; - /** - * Output only. Snapshot of the Automation taken at AutomationRun creation - * time. - * - * Generated from protobuf field .google.cloud.deploy.v1.Automation automation_snapshot = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $automation_snapshot = null; - /** - * Output only. The ID of the source target that initiates the - * `AutomationRun`. The value of this field is the last segment of a target - * name. - * - * Generated from protobuf field string target_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $target_id = ''; - /** - * Output only. Current state of the `AutomationRun`. - * - * Generated from protobuf field .google.cloud.deploy.v1.AutomationRun.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. Explains the current state of the `AutomationRun`. Present - * only when an explanation is needed. - * - * Generated from protobuf field string state_description = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state_description = ''; - /** - * Output only. Contains information about what policies prevented the - * `AutomationRun` from proceeding. - * - * Generated from protobuf field .google.cloud.deploy.v1.PolicyViolation policy_violation = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $policy_violation = null; - /** - * Output only. Time the `AutomationRun` expires. An `AutomationRun` expires - * after 14 days from its creation date. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $expire_time = null; - /** - * Output only. The ID of the automation rule that initiated the operation. - * - * Generated from protobuf field string rule_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $rule_id = ''; - /** - * Output only. The ID of the automation that initiated the operation. - * - * Generated from protobuf field string automation_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $automation_id = ''; - /** - * Output only. Earliest time the `AutomationRun` will attempt to resume. - * Wait-time is configured by `wait` in automation rule. - * - * Generated from protobuf field .google.protobuf.Timestamp wait_until_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $wait_until_time = null; - protected $operation; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Name of the `AutomationRun`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time at which the `AutomationRun` was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Time at which the automationRun was updated. - * @type string $etag - * Output only. The weak etag of the `AutomationRun` resource. - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * @type string $service_account - * Output only. Email address of the user-managed IAM service account that - * performs the operations against Cloud Deploy resources. - * @type \Google\Cloud\Deploy\V1\Automation $automation_snapshot - * Output only. Snapshot of the Automation taken at AutomationRun creation - * time. - * @type string $target_id - * Output only. The ID of the source target that initiates the - * `AutomationRun`. The value of this field is the last segment of a target - * name. - * @type int $state - * Output only. Current state of the `AutomationRun`. - * @type string $state_description - * Output only. Explains the current state of the `AutomationRun`. Present - * only when an explanation is needed. - * @type \Google\Cloud\Deploy\V1\PolicyViolation $policy_violation - * Output only. Contains information about what policies prevented the - * `AutomationRun` from proceeding. - * @type \Google\Protobuf\Timestamp $expire_time - * Output only. Time the `AutomationRun` expires. An `AutomationRun` expires - * after 14 days from its creation date. - * @type string $rule_id - * Output only. The ID of the automation rule that initiated the operation. - * @type string $automation_id - * Output only. The ID of the automation that initiated the operation. - * @type \Google\Cloud\Deploy\V1\PromoteReleaseOperation $promote_release_operation - * Output only. Promotes a release to a specified 'Target'. - * @type \Google\Cloud\Deploy\V1\AdvanceRolloutOperation $advance_rollout_operation - * Output only. Advances a rollout to the next phase. - * @type \Google\Cloud\Deploy\V1\RepairRolloutOperation $repair_rollout_operation - * Output only. Repairs a failed 'Rollout'. - * @type \Google\Cloud\Deploy\V1\TimedPromoteReleaseOperation $timed_promote_release_operation - * Output only. Promotes a release to a specified 'Target' as defined in a - * Timed Promote Release rule. - * @type \Google\Protobuf\Timestamp $wait_until_time - * Output only. Earliest time the `AutomationRun` will attempt to resume. - * Wait-time is configured by `wait` in automation rule. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Name of the `AutomationRun`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Name of the `AutomationRun`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. Time at which the `AutomationRun` was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time at which the `AutomationRun` was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. Time at which the automationRun was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. Time at which the automationRun was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Output only. The weak etag of the `AutomationRun` resource. - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Output only. The weak etag of the `AutomationRun` resource. - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Output only. Email address of the user-managed IAM service account that - * performs the operations against Cloud Deploy resources. - * - * Generated from protobuf field string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getServiceAccount() - { - return $this->service_account; - } - - /** - * Output only. Email address of the user-managed IAM service account that - * performs the operations against Cloud Deploy resources. - * - * Generated from protobuf field string service_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setServiceAccount($var) - { - GPBUtil::checkString($var, True); - $this->service_account = $var; - - return $this; - } - - /** - * Output only. Snapshot of the Automation taken at AutomationRun creation - * time. - * - * Generated from protobuf field .google.cloud.deploy.v1.Automation automation_snapshot = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\Automation|null - */ - public function getAutomationSnapshot() - { - return $this->automation_snapshot; - } - - public function hasAutomationSnapshot() - { - return isset($this->automation_snapshot); - } - - public function clearAutomationSnapshot() - { - unset($this->automation_snapshot); - } - - /** - * Output only. Snapshot of the Automation taken at AutomationRun creation - * time. - * - * Generated from protobuf field .google.cloud.deploy.v1.Automation automation_snapshot = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\Automation $var - * @return $this - */ - public function setAutomationSnapshot($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Automation::class); - $this->automation_snapshot = $var; - - return $this; - } - - /** - * Output only. The ID of the source target that initiates the - * `AutomationRun`. The value of this field is the last segment of a target - * name. - * - * Generated from protobuf field string target_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getTargetId() - { - return $this->target_id; - } - - /** - * Output only. The ID of the source target that initiates the - * `AutomationRun`. The value of this field is the last segment of a target - * name. - * - * Generated from protobuf field string target_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setTargetId($var) - { - GPBUtil::checkString($var, True); - $this->target_id = $var; - - return $this; - } - - /** - * Output only. Current state of the `AutomationRun`. - * - * Generated from protobuf field .google.cloud.deploy.v1.AutomationRun.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. Current state of the `AutomationRun`. - * - * Generated from protobuf field .google.cloud.deploy.v1.AutomationRun.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\AutomationRun\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. Explains the current state of the `AutomationRun`. Present - * only when an explanation is needed. - * - * Generated from protobuf field string state_description = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getStateDescription() - { - return $this->state_description; - } - - /** - * Output only. Explains the current state of the `AutomationRun`. Present - * only when an explanation is needed. - * - * Generated from protobuf field string state_description = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setStateDescription($var) - { - GPBUtil::checkString($var, True); - $this->state_description = $var; - - return $this; - } - - /** - * Output only. Contains information about what policies prevented the - * `AutomationRun` from proceeding. - * - * Generated from protobuf field .google.cloud.deploy.v1.PolicyViolation policy_violation = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\PolicyViolation|null - */ - public function getPolicyViolation() - { - return $this->policy_violation; - } - - public function hasPolicyViolation() - { - return isset($this->policy_violation); - } - - public function clearPolicyViolation() - { - unset($this->policy_violation); - } - - /** - * Output only. Contains information about what policies prevented the - * `AutomationRun` from proceeding. - * - * Generated from protobuf field .google.cloud.deploy.v1.PolicyViolation policy_violation = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\PolicyViolation $var - * @return $this - */ - public function setPolicyViolation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\PolicyViolation::class); - $this->policy_violation = $var; - - return $this; - } - - /** - * Output only. Time the `AutomationRun` expires. An `AutomationRun` expires - * after 14 days from its creation date. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getExpireTime() - { - return $this->expire_time; - } - - public function hasExpireTime() - { - return isset($this->expire_time); - } - - public function clearExpireTime() - { - unset($this->expire_time); - } - - /** - * Output only. Time the `AutomationRun` expires. An `AutomationRun` expires - * after 14 days from its creation date. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setExpireTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->expire_time = $var; - - return $this; - } - - /** - * Output only. The ID of the automation rule that initiated the operation. - * - * Generated from protobuf field string rule_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getRuleId() - { - return $this->rule_id; - } - - /** - * Output only. The ID of the automation rule that initiated the operation. - * - * Generated from protobuf field string rule_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setRuleId($var) - { - GPBUtil::checkString($var, True); - $this->rule_id = $var; - - return $this; - } - - /** - * Output only. The ID of the automation that initiated the operation. - * - * Generated from protobuf field string automation_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getAutomationId() - { - return $this->automation_id; - } - - /** - * Output only. The ID of the automation that initiated the operation. - * - * Generated from protobuf field string automation_id = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setAutomationId($var) - { - GPBUtil::checkString($var, True); - $this->automation_id = $var; - - return $this; - } - - /** - * Output only. Promotes a release to a specified 'Target'. - * - * Generated from protobuf field .google.cloud.deploy.v1.PromoteReleaseOperation promote_release_operation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\PromoteReleaseOperation|null - */ - public function getPromoteReleaseOperation() - { - return $this->readOneof(13); - } - - public function hasPromoteReleaseOperation() - { - return $this->hasOneof(13); - } - - /** - * Output only. Promotes a release to a specified 'Target'. - * - * Generated from protobuf field .google.cloud.deploy.v1.PromoteReleaseOperation promote_release_operation = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\PromoteReleaseOperation $var - * @return $this - */ - public function setPromoteReleaseOperation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\PromoteReleaseOperation::class); - $this->writeOneof(13, $var); - - return $this; - } - - /** - * Output only. Advances a rollout to the next phase. - * - * Generated from protobuf field .google.cloud.deploy.v1.AdvanceRolloutOperation advance_rollout_operation = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\AdvanceRolloutOperation|null - */ - public function getAdvanceRolloutOperation() - { - return $this->readOneof(14); - } - - public function hasAdvanceRolloutOperation() - { - return $this->hasOneof(14); - } - - /** - * Output only. Advances a rollout to the next phase. - * - * Generated from protobuf field .google.cloud.deploy.v1.AdvanceRolloutOperation advance_rollout_operation = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\AdvanceRolloutOperation $var - * @return $this - */ - public function setAdvanceRolloutOperation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\AdvanceRolloutOperation::class); - $this->writeOneof(14, $var); - - return $this; - } - - /** - * Output only. Repairs a failed 'Rollout'. - * - * Generated from protobuf field .google.cloud.deploy.v1.RepairRolloutOperation repair_rollout_operation = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\RepairRolloutOperation|null - */ - public function getRepairRolloutOperation() - { - return $this->readOneof(17); - } - - public function hasRepairRolloutOperation() - { - return $this->hasOneof(17); - } - - /** - * Output only. Repairs a failed 'Rollout'. - * - * Generated from protobuf field .google.cloud.deploy.v1.RepairRolloutOperation repair_rollout_operation = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\RepairRolloutOperation $var - * @return $this - */ - public function setRepairRolloutOperation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\RepairRolloutOperation::class); - $this->writeOneof(17, $var); - - return $this; - } - - /** - * Output only. Promotes a release to a specified 'Target' as defined in a - * Timed Promote Release rule. - * - * Generated from protobuf field .google.cloud.deploy.v1.TimedPromoteReleaseOperation timed_promote_release_operation = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\TimedPromoteReleaseOperation|null - */ - public function getTimedPromoteReleaseOperation() - { - return $this->readOneof(19); - } - - public function hasTimedPromoteReleaseOperation() - { - return $this->hasOneof(19); - } - - /** - * Output only. Promotes a release to a specified 'Target' as defined in a - * Timed Promote Release rule. - * - * Generated from protobuf field .google.cloud.deploy.v1.TimedPromoteReleaseOperation timed_promote_release_operation = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\TimedPromoteReleaseOperation $var - * @return $this - */ - public function setTimedPromoteReleaseOperation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\TimedPromoteReleaseOperation::class); - $this->writeOneof(19, $var); - - return $this; - } - - /** - * Output only. Earliest time the `AutomationRun` will attempt to resume. - * Wait-time is configured by `wait` in automation rule. - * - * Generated from protobuf field .google.protobuf.Timestamp wait_until_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getWaitUntilTime() - { - return $this->wait_until_time; - } - - public function hasWaitUntilTime() - { - return isset($this->wait_until_time); - } - - public function clearWaitUntilTime() - { - unset($this->wait_until_time); - } - - /** - * Output only. Earliest time the `AutomationRun` will attempt to resume. - * Wait-time is configured by `wait` in automation rule. - * - * Generated from protobuf field .google.protobuf.Timestamp wait_until_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setWaitUntilTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->wait_until_time = $var; - - return $this; - } - - /** - * @return string - */ - public function getOperation() - { - return $this->whichOneof("operation"); - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRun/State.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRun/State.php deleted file mode 100644 index d0dd5cfd9f96..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRun/State.php +++ /dev/null @@ -1,92 +0,0 @@ -google.cloud.deploy.v1.AutomationRun.State - */ -class State -{ - /** - * The `AutomationRun` has an unspecified state. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The `AutomationRun` has succeeded. - * - * Generated from protobuf enum SUCCEEDED = 1; - */ - const SUCCEEDED = 1; - /** - * The `AutomationRun` was cancelled. - * - * Generated from protobuf enum CANCELLED = 2; - */ - const CANCELLED = 2; - /** - * The `AutomationRun` has failed. - * - * Generated from protobuf enum FAILED = 3; - */ - const FAILED = 3; - /** - * The `AutomationRun` is in progress. - * - * Generated from protobuf enum IN_PROGRESS = 4; - */ - const IN_PROGRESS = 4; - /** - * The `AutomationRun` is pending. - * - * Generated from protobuf enum PENDING = 5; - */ - const PENDING = 5; - /** - * The `AutomationRun` was aborted. - * - * Generated from protobuf enum ABORTED = 6; - */ - const ABORTED = 6; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::SUCCEEDED => 'SUCCEEDED', - self::CANCELLED => 'CANCELLED', - self::FAILED => 'FAILED', - self::IN_PROGRESS => 'IN_PROGRESS', - self::PENDING => 'PENDING', - self::ABORTED => 'ABORTED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Google\Cloud\Deploy\V1\AutomationRun_State::class); - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRunEvent.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRunEvent.php deleted file mode 100644 index 409f23c5f943..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/AutomationRunEvent.php +++ /dev/null @@ -1,276 +0,0 @@ -google.cloud.deploy.v1.AutomationRunEvent - */ -class AutomationRunEvent extends \Google\Protobuf\Internal\Message -{ - /** - * Debug message for when there is an update on the AutomationRun. - * Provides further details about the resource creation or state change. - * - * Generated from protobuf field string message = 1; - */ - protected $message = ''; - /** - * The name of the `AutomationRun`. - * - * Generated from protobuf field string automation_run = 2; - */ - protected $automation_run = ''; - /** - * Unique identifier of the `DeliveryPipeline`. - * - * Generated from protobuf field string pipeline_uid = 3; - */ - protected $pipeline_uid = ''; - /** - * Identifier of the `Automation`. - * - * Generated from protobuf field string automation_id = 4; - */ - protected $automation_id = ''; - /** - * Identifier of the `Automation` rule. - * - * Generated from protobuf field string rule_id = 5; - */ - protected $rule_id = ''; - /** - * ID of the `Target` to which the `AutomationRun` is created. - * - * Generated from protobuf field string destination_target_id = 6; - */ - protected $destination_target_id = ''; - /** - * Type of this notification, e.g. for a Pub/Sub failure. - * - * Generated from protobuf field .google.cloud.deploy.v1.Type type = 7; - */ - protected $type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $message - * Debug message for when there is an update on the AutomationRun. - * Provides further details about the resource creation or state change. - * @type string $automation_run - * The name of the `AutomationRun`. - * @type string $pipeline_uid - * Unique identifier of the `DeliveryPipeline`. - * @type string $automation_id - * Identifier of the `Automation`. - * @type string $rule_id - * Identifier of the `Automation` rule. - * @type string $destination_target_id - * ID of the `Target` to which the `AutomationRun` is created. - * @type int $type - * Type of this notification, e.g. for a Pub/Sub failure. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\AutomationrunPayload::initOnce(); - parent::__construct($data); - } - - /** - * Debug message for when there is an update on the AutomationRun. - * Provides further details about the resource creation or state change. - * - * Generated from protobuf field string message = 1; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Debug message for when there is an update on the AutomationRun. - * Provides further details about the resource creation or state change. - * - * Generated from protobuf field string message = 1; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * The name of the `AutomationRun`. - * - * Generated from protobuf field string automation_run = 2; - * @return string - */ - public function getAutomationRun() - { - return $this->automation_run; - } - - /** - * The name of the `AutomationRun`. - * - * Generated from protobuf field string automation_run = 2; - * @param string $var - * @return $this - */ - public function setAutomationRun($var) - { - GPBUtil::checkString($var, True); - $this->automation_run = $var; - - return $this; - } - - /** - * Unique identifier of the `DeliveryPipeline`. - * - * Generated from protobuf field string pipeline_uid = 3; - * @return string - */ - public function getPipelineUid() - { - return $this->pipeline_uid; - } - - /** - * Unique identifier of the `DeliveryPipeline`. - * - * Generated from protobuf field string pipeline_uid = 3; - * @param string $var - * @return $this - */ - public function setPipelineUid($var) - { - GPBUtil::checkString($var, True); - $this->pipeline_uid = $var; - - return $this; - } - - /** - * Identifier of the `Automation`. - * - * Generated from protobuf field string automation_id = 4; - * @return string - */ - public function getAutomationId() - { - return $this->automation_id; - } - - /** - * Identifier of the `Automation`. - * - * Generated from protobuf field string automation_id = 4; - * @param string $var - * @return $this - */ - public function setAutomationId($var) - { - GPBUtil::checkString($var, True); - $this->automation_id = $var; - - return $this; - } - - /** - * Identifier of the `Automation` rule. - * - * Generated from protobuf field string rule_id = 5; - * @return string - */ - public function getRuleId() - { - return $this->rule_id; - } - - /** - * Identifier of the `Automation` rule. - * - * Generated from protobuf field string rule_id = 5; - * @param string $var - * @return $this - */ - public function setRuleId($var) - { - GPBUtil::checkString($var, True); - $this->rule_id = $var; - - return $this; - } - - /** - * ID of the `Target` to which the `AutomationRun` is created. - * - * Generated from protobuf field string destination_target_id = 6; - * @return string - */ - public function getDestinationTargetId() - { - return $this->destination_target_id; - } - - /** - * ID of the `Target` to which the `AutomationRun` is created. - * - * Generated from protobuf field string destination_target_id = 6; - * @param string $var - * @return $this - */ - public function setDestinationTargetId($var) - { - GPBUtil::checkString($var, True); - $this->destination_target_id = $var; - - return $this; - } - - /** - * Type of this notification, e.g. for a Pub/Sub failure. - * - * Generated from protobuf field .google.cloud.deploy.v1.Type type = 7; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Type of this notification, e.g. for a Pub/Sub failure. - * - * Generated from protobuf field .google.cloud.deploy.v1.Type type = 7; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Type::class); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/BackoffMode.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/BackoffMode.php deleted file mode 100644 index ae0edaeec84e..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/BackoffMode.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.deploy.v1.BackoffMode - */ -class BackoffMode -{ - /** - * No WaitMode is specified. - * - * Generated from protobuf enum BACKOFF_MODE_UNSPECIFIED = 0; - */ - const BACKOFF_MODE_UNSPECIFIED = 0; - /** - * Increases the wait time linearly. - * - * Generated from protobuf enum BACKOFF_MODE_LINEAR = 1; - */ - const BACKOFF_MODE_LINEAR = 1; - /** - * Increases the wait time exponentially. - * - * Generated from protobuf enum BACKOFF_MODE_EXPONENTIAL = 2; - */ - const BACKOFF_MODE_EXPONENTIAL = 2; - - private static $valueToName = [ - self::BACKOFF_MODE_UNSPECIFIED => 'BACKOFF_MODE_UNSPECIFIED', - self::BACKOFF_MODE_LINEAR => 'BACKOFF_MODE_LINEAR', - self::BACKOFF_MODE_EXPONENTIAL => 'BACKOFF_MODE_EXPONENTIAL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/BuildArtifact.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/BuildArtifact.php deleted file mode 100644 index 23cd5da0a754..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/BuildArtifact.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.deploy.v1.BuildArtifact - */ -class BuildArtifact extends \Google\Protobuf\Internal\Message -{ - /** - * Image name in Skaffold configuration. - * - * Generated from protobuf field string image = 3; - */ - protected $image = ''; - /** - * Image tag to use. This will generally be the full path to an image, such - * as "gcr.io/my-project/busybox:1.2.3" or - * "gcr.io/my-project/busybox@sha256:abc123". - * - * Generated from protobuf field string tag = 2; - */ - protected $tag = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $image - * Image name in Skaffold configuration. - * @type string $tag - * Image tag to use. This will generally be the full path to an image, such - * as "gcr.io/my-project/busybox:1.2.3" or - * "gcr.io/my-project/busybox@sha256:abc123". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Image name in Skaffold configuration. - * - * Generated from protobuf field string image = 3; - * @return string - */ - public function getImage() - { - return $this->image; - } - - /** - * Image name in Skaffold configuration. - * - * Generated from protobuf field string image = 3; - * @param string $var - * @return $this - */ - public function setImage($var) - { - GPBUtil::checkString($var, True); - $this->image = $var; - - return $this; - } - - /** - * Image tag to use. This will generally be the full path to an image, such - * as "gcr.io/my-project/busybox:1.2.3" or - * "gcr.io/my-project/busybox@sha256:abc123". - * - * Generated from protobuf field string tag = 2; - * @return string - */ - public function getTag() - { - return $this->tag; - } - - /** - * Image tag to use. This will generally be the full path to an image, such - * as "gcr.io/my-project/busybox:1.2.3" or - * "gcr.io/my-project/busybox@sha256:abc123". - * - * Generated from protobuf field string tag = 2; - * @param string $var - * @return $this - */ - public function setTag($var) - { - GPBUtil::checkString($var, True); - $this->tag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Canary.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Canary.php deleted file mode 100644 index 929faf223233..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Canary.php +++ /dev/null @@ -1,166 +0,0 @@ -google.cloud.deploy.v1.Canary - */ -class Canary extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Runtime specific configurations for the deployment strategy. The - * runtime configuration is used to determine how Cloud Deploy will split - * traffic to enable a progressive deployment. - * - * Generated from protobuf field .google.cloud.deploy.v1.RuntimeConfig runtime_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $runtime_config = null; - protected $mode; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Deploy\V1\RuntimeConfig $runtime_config - * Optional. Runtime specific configurations for the deployment strategy. The - * runtime configuration is used to determine how Cloud Deploy will split - * traffic to enable a progressive deployment. - * @type \Google\Cloud\Deploy\V1\CanaryDeployment $canary_deployment - * Configures the progressive based deployment for a Target. - * @type \Google\Cloud\Deploy\V1\CustomCanaryDeployment $custom_canary_deployment - * Configures the progressive based deployment for a Target, but allows - * customizing at the phase level where a phase represents each of the - * percentage deployments. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Runtime specific configurations for the deployment strategy. The - * runtime configuration is used to determine how Cloud Deploy will split - * traffic to enable a progressive deployment. - * - * Generated from protobuf field .google.cloud.deploy.v1.RuntimeConfig runtime_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Deploy\V1\RuntimeConfig|null - */ - public function getRuntimeConfig() - { - return $this->runtime_config; - } - - public function hasRuntimeConfig() - { - return isset($this->runtime_config); - } - - public function clearRuntimeConfig() - { - unset($this->runtime_config); - } - - /** - * Optional. Runtime specific configurations for the deployment strategy. The - * runtime configuration is used to determine how Cloud Deploy will split - * traffic to enable a progressive deployment. - * - * Generated from protobuf field .google.cloud.deploy.v1.RuntimeConfig runtime_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Deploy\V1\RuntimeConfig $var - * @return $this - */ - public function setRuntimeConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\RuntimeConfig::class); - $this->runtime_config = $var; - - return $this; - } - - /** - * Configures the progressive based deployment for a Target. - * - * Generated from protobuf field .google.cloud.deploy.v1.CanaryDeployment canary_deployment = 2; - * @return \Google\Cloud\Deploy\V1\CanaryDeployment|null - */ - public function getCanaryDeployment() - { - return $this->readOneof(2); - } - - public function hasCanaryDeployment() - { - return $this->hasOneof(2); - } - - /** - * Configures the progressive based deployment for a Target. - * - * Generated from protobuf field .google.cloud.deploy.v1.CanaryDeployment canary_deployment = 2; - * @param \Google\Cloud\Deploy\V1\CanaryDeployment $var - * @return $this - */ - public function setCanaryDeployment($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CanaryDeployment::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Configures the progressive based deployment for a Target, but allows - * customizing at the phase level where a phase represents each of the - * percentage deployments. - * - * Generated from protobuf field .google.cloud.deploy.v1.CustomCanaryDeployment custom_canary_deployment = 3; - * @return \Google\Cloud\Deploy\V1\CustomCanaryDeployment|null - */ - public function getCustomCanaryDeployment() - { - return $this->readOneof(3); - } - - public function hasCustomCanaryDeployment() - { - return $this->hasOneof(3); - } - - /** - * Configures the progressive based deployment for a Target, but allows - * customizing at the phase level where a phase represents each of the - * percentage deployments. - * - * Generated from protobuf field .google.cloud.deploy.v1.CustomCanaryDeployment custom_canary_deployment = 3; - * @param \Google\Cloud\Deploy\V1\CustomCanaryDeployment $var - * @return $this - */ - public function setCustomCanaryDeployment($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CustomCanaryDeployment::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getMode() - { - return $this->whichOneof("mode"); - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CanaryDeployment.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CanaryDeployment.php deleted file mode 100644 index 924b28b6f372..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CanaryDeployment.php +++ /dev/null @@ -1,213 +0,0 @@ -google.cloud.deploy.v1.CanaryDeployment - */ -class CanaryDeployment extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The percentage based deployments that will occur as a part of a - * `Rollout`. List is expected in ascending order and each integer n is - * 0 <= n < 100. - * If the GatewayServiceMesh is configured for Kubernetes, then the range for - * n is 0 <= n <= 100. - * - * Generated from protobuf field repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $percentages; - /** - * Whether to run verify tests after each percentage deployment. - * - * Generated from protobuf field bool verify = 2; - */ - protected $verify = false; - /** - * Optional. Configuration for the predeploy job of the first phase. If this - * is not configured, there will be no predeploy job for this phase. - * - * Generated from protobuf field .google.cloud.deploy.v1.Predeploy predeploy = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $predeploy = null; - /** - * Optional. Configuration for the postdeploy job of the last phase. If this - * is not configured, there will be no postdeploy job for this phase. - * - * Generated from protobuf field .google.cloud.deploy.v1.Postdeploy postdeploy = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $postdeploy = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $percentages - * Required. The percentage based deployments that will occur as a part of a - * `Rollout`. List is expected in ascending order and each integer n is - * 0 <= n < 100. - * If the GatewayServiceMesh is configured for Kubernetes, then the range for - * n is 0 <= n <= 100. - * @type bool $verify - * Whether to run verify tests after each percentage deployment. - * @type \Google\Cloud\Deploy\V1\Predeploy $predeploy - * Optional. Configuration for the predeploy job of the first phase. If this - * is not configured, there will be no predeploy job for this phase. - * @type \Google\Cloud\Deploy\V1\Postdeploy $postdeploy - * Optional. Configuration for the postdeploy job of the last phase. If this - * is not configured, there will be no postdeploy job for this phase. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. The percentage based deployments that will occur as a part of a - * `Rollout`. List is expected in ascending order and each integer n is - * 0 <= n < 100. - * If the GatewayServiceMesh is configured for Kubernetes, then the range for - * n is 0 <= n <= 100. - * - * Generated from protobuf field repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPercentages() - { - return $this->percentages; - } - - /** - * Required. The percentage based deployments that will occur as a part of a - * `Rollout`. List is expected in ascending order and each integer n is - * 0 <= n < 100. - * If the GatewayServiceMesh is configured for Kubernetes, then the range for - * n is 0 <= n <= 100. - * - * Generated from protobuf field repeated int32 percentages = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPercentages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32); - $this->percentages = $arr; - - return $this; - } - - /** - * Whether to run verify tests after each percentage deployment. - * - * Generated from protobuf field bool verify = 2; - * @return bool - */ - public function getVerify() - { - return $this->verify; - } - - /** - * Whether to run verify tests after each percentage deployment. - * - * Generated from protobuf field bool verify = 2; - * @param bool $var - * @return $this - */ - public function setVerify($var) - { - GPBUtil::checkBool($var); - $this->verify = $var; - - return $this; - } - - /** - * Optional. Configuration for the predeploy job of the first phase. If this - * is not configured, there will be no predeploy job for this phase. - * - * Generated from protobuf field .google.cloud.deploy.v1.Predeploy predeploy = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Deploy\V1\Predeploy|null - */ - public function getPredeploy() - { - return $this->predeploy; - } - - public function hasPredeploy() - { - return isset($this->predeploy); - } - - public function clearPredeploy() - { - unset($this->predeploy); - } - - /** - * Optional. Configuration for the predeploy job of the first phase. If this - * is not configured, there will be no predeploy job for this phase. - * - * Generated from protobuf field .google.cloud.deploy.v1.Predeploy predeploy = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Deploy\V1\Predeploy $var - * @return $this - */ - public function setPredeploy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Predeploy::class); - $this->predeploy = $var; - - return $this; - } - - /** - * Optional. Configuration for the postdeploy job of the last phase. If this - * is not configured, there will be no postdeploy job for this phase. - * - * Generated from protobuf field .google.cloud.deploy.v1.Postdeploy postdeploy = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Deploy\V1\Postdeploy|null - */ - public function getPostdeploy() - { - return $this->postdeploy; - } - - public function hasPostdeploy() - { - return isset($this->postdeploy); - } - - public function clearPostdeploy() - { - unset($this->postdeploy); - } - - /** - * Optional. Configuration for the postdeploy job of the last phase. If this - * is not configured, there will be no postdeploy job for this phase. - * - * Generated from protobuf field .google.cloud.deploy.v1.Postdeploy postdeploy = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Deploy\V1\Postdeploy $var - * @return $this - */ - public function setPostdeploy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Postdeploy::class); - $this->postdeploy = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelAutomationRunRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelAutomationRunRequest.php deleted file mode 100644 index 9b97433df290..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelAutomationRunRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.deploy.v1.CancelAutomationRunRequest - */ -class CancelAutomationRunRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the `AutomationRun`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Name of the `AutomationRun`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`. Please see - * {@see CloudDeployClient::automationRunName()} for help formatting this field. - * - * @return \Google\Cloud\Deploy\V1\CancelAutomationRunRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the `AutomationRun`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the `AutomationRun`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the `AutomationRun`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelAutomationRunResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelAutomationRunResponse.php deleted file mode 100644 index c68cf6577c3f..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelAutomationRunResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.deploy.v1.CancelAutomationRunResponse - */ -class CancelAutomationRunResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelRolloutRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelRolloutRequest.php deleted file mode 100644 index 540f9ddb48dd..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelRolloutRequest.php +++ /dev/null @@ -1,124 +0,0 @@ -google.cloud.deploy.v1.CancelRolloutRequest - */ -class CancelRolloutRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the Rollout. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. Deploy policies to override. Format is - * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. - * - * Generated from protobuf field repeated string override_deploy_policy = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $override_deploy_policy; - - /** - * @param string $name Required. Name of the Rollout. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. Please see - * {@see CloudDeployClient::rolloutName()} for help formatting this field. - * - * @return \Google\Cloud\Deploy\V1\CancelRolloutRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the Rollout. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. - * @type array|\Google\Protobuf\Internal\RepeatedField $override_deploy_policy - * Optional. Deploy policies to override. Format is - * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the Rollout. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the Rollout. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. Deploy policies to override. Format is - * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. - * - * Generated from protobuf field repeated string override_deploy_policy = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOverrideDeployPolicy() - { - return $this->override_deploy_policy; - } - - /** - * Optional. Deploy policies to override. Format is - * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. - * - * Generated from protobuf field repeated string override_deploy_policy = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOverrideDeployPolicy($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->override_deploy_policy = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelRolloutResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelRolloutResponse.php deleted file mode 100644 index c7b2af7c39ac..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CancelRolloutResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.deploy.v1.CancelRolloutResponse - */ -class CancelRolloutResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ChildRolloutJobs.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ChildRolloutJobs.php deleted file mode 100644 index a5fb687936dd..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ChildRolloutJobs.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.deploy.v1.ChildRolloutJobs - */ -class ChildRolloutJobs extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. List of CreateChildRolloutJobs - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.Job create_rollout_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $create_rollout_jobs; - /** - * Output only. List of AdvanceChildRolloutJobs - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.Job advance_rollout_jobs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $advance_rollout_jobs; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Deploy\V1\Job>|\Google\Protobuf\Internal\RepeatedField $create_rollout_jobs - * Output only. List of CreateChildRolloutJobs - * @type array<\Google\Cloud\Deploy\V1\Job>|\Google\Protobuf\Internal\RepeatedField $advance_rollout_jobs - * Output only. List of AdvanceChildRolloutJobs - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Output only. List of CreateChildRolloutJobs - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.Job create_rollout_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCreateRolloutJobs() - { - return $this->create_rollout_jobs; - } - - /** - * Output only. List of CreateChildRolloutJobs - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.Job create_rollout_jobs = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\Deploy\V1\Job>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCreateRolloutJobs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\Job::class); - $this->create_rollout_jobs = $arr; - - return $this; - } - - /** - * Output only. List of AdvanceChildRolloutJobs - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.Job advance_rollout_jobs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAdvanceRolloutJobs() - { - return $this->advance_rollout_jobs; - } - - /** - * Output only. List of AdvanceChildRolloutJobs - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.Job advance_rollout_jobs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\Deploy\V1\Job>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAdvanceRolloutJobs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\Job::class); - $this->advance_rollout_jobs = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunConfig.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunConfig.php deleted file mode 100644 index 030fbfbdf261..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunConfig.php +++ /dev/null @@ -1,193 +0,0 @@ -google.cloud.deploy.v1.CloudRunConfig - */ -class CloudRunConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether Cloud Deploy should update the traffic stanza in a Cloud Run - * Service on the user's behalf to facilitate traffic splitting. This is - * required to be true for CanaryDeployments, but optional for - * CustomCanaryDeployments. - * - * Generated from protobuf field bool automatic_traffic_control = 1; - */ - protected $automatic_traffic_control = false; - /** - * Optional. A list of tags that are added to the canary revision while the - * canary phase is in progress. - * - * Generated from protobuf field repeated string canary_revision_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $canary_revision_tags; - /** - * Optional. A list of tags that are added to the prior revision while the - * canary phase is in progress. - * - * Generated from protobuf field repeated string prior_revision_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $prior_revision_tags; - /** - * Optional. A list of tags that are added to the final stable revision when - * the stable phase is applied. - * - * Generated from protobuf field repeated string stable_revision_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $stable_revision_tags; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $automatic_traffic_control - * Whether Cloud Deploy should update the traffic stanza in a Cloud Run - * Service on the user's behalf to facilitate traffic splitting. This is - * required to be true for CanaryDeployments, but optional for - * CustomCanaryDeployments. - * @type array|\Google\Protobuf\Internal\RepeatedField $canary_revision_tags - * Optional. A list of tags that are added to the canary revision while the - * canary phase is in progress. - * @type array|\Google\Protobuf\Internal\RepeatedField $prior_revision_tags - * Optional. A list of tags that are added to the prior revision while the - * canary phase is in progress. - * @type array|\Google\Protobuf\Internal\RepeatedField $stable_revision_tags - * Optional. A list of tags that are added to the final stable revision when - * the stable phase is applied. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Whether Cloud Deploy should update the traffic stanza in a Cloud Run - * Service on the user's behalf to facilitate traffic splitting. This is - * required to be true for CanaryDeployments, but optional for - * CustomCanaryDeployments. - * - * Generated from protobuf field bool automatic_traffic_control = 1; - * @return bool - */ - public function getAutomaticTrafficControl() - { - return $this->automatic_traffic_control; - } - - /** - * Whether Cloud Deploy should update the traffic stanza in a Cloud Run - * Service on the user's behalf to facilitate traffic splitting. This is - * required to be true for CanaryDeployments, but optional for - * CustomCanaryDeployments. - * - * Generated from protobuf field bool automatic_traffic_control = 1; - * @param bool $var - * @return $this - */ - public function setAutomaticTrafficControl($var) - { - GPBUtil::checkBool($var); - $this->automatic_traffic_control = $var; - - return $this; - } - - /** - * Optional. A list of tags that are added to the canary revision while the - * canary phase is in progress. - * - * Generated from protobuf field repeated string canary_revision_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCanaryRevisionTags() - { - return $this->canary_revision_tags; - } - - /** - * Optional. A list of tags that are added to the canary revision while the - * canary phase is in progress. - * - * Generated from protobuf field repeated string canary_revision_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCanaryRevisionTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->canary_revision_tags = $arr; - - return $this; - } - - /** - * Optional. A list of tags that are added to the prior revision while the - * canary phase is in progress. - * - * Generated from protobuf field repeated string prior_revision_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPriorRevisionTags() - { - return $this->prior_revision_tags; - } - - /** - * Optional. A list of tags that are added to the prior revision while the - * canary phase is in progress. - * - * Generated from protobuf field repeated string prior_revision_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPriorRevisionTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->prior_revision_tags = $arr; - - return $this; - } - - /** - * Optional. A list of tags that are added to the final stable revision when - * the stable phase is applied. - * - * Generated from protobuf field repeated string stable_revision_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getStableRevisionTags() - { - return $this->stable_revision_tags; - } - - /** - * Optional. A list of tags that are added to the final stable revision when - * the stable phase is applied. - * - * Generated from protobuf field repeated string stable_revision_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setStableRevisionTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->stable_revision_tags = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunLocation.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunLocation.php deleted file mode 100644 index ff0ebad3a710..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunLocation.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.deploy.v1.CloudRunLocation - */ -class CloudRunLocation extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The location for the Cloud Run Service. Format must be - * `projects/{project}/locations/{location}`. - * - * Generated from protobuf field string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $location = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $location - * Required. The location for the Cloud Run Service. Format must be - * `projects/{project}/locations/{location}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. The location for the Cloud Run Service. Format must be - * `projects/{project}/locations/{location}`. - * - * Generated from protobuf field string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * Required. The location for the Cloud Run Service. Format must be - * `projects/{project}/locations/{location}`. - * - * Generated from protobuf field string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunMetadata.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunMetadata.php deleted file mode 100644 index ce57bad75b8c..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunMetadata.php +++ /dev/null @@ -1,189 +0,0 @@ -google.cloud.deploy.v1.CloudRunMetadata - */ -class CloudRunMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The name of the Cloud Run Service that is associated with a - * `Rollout`. Format is - * `projects/{project}/locations/{location}/services/{service}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $service = ''; - /** - * Output only. The Cloud Run Service urls that are associated with a - * `Rollout`. - * - * Generated from protobuf field repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $service_urls; - /** - * Output only. The Cloud Run Revision id associated with a `Rollout`. - * - * Generated from protobuf field string revision = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $revision = ''; - /** - * Output only. The name of the Cloud Run job that is associated with a - * `Rollout`. Format is - * `projects/{project}/locations/{location}/jobs/{job_name}`. - * - * Generated from protobuf field string job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $job = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $service - * Output only. The name of the Cloud Run Service that is associated with a - * `Rollout`. Format is - * `projects/{project}/locations/{location}/services/{service}`. - * @type array|\Google\Protobuf\Internal\RepeatedField $service_urls - * Output only. The Cloud Run Service urls that are associated with a - * `Rollout`. - * @type string $revision - * Output only. The Cloud Run Revision id associated with a `Rollout`. - * @type string $job - * Output only. The name of the Cloud Run job that is associated with a - * `Rollout`. Format is - * `projects/{project}/locations/{location}/jobs/{job_name}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The name of the Cloud Run Service that is associated with a - * `Rollout`. Format is - * `projects/{project}/locations/{location}/services/{service}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getService() - { - return $this->service; - } - - /** - * Output only. The name of the Cloud Run Service that is associated with a - * `Rollout`. Format is - * `projects/{project}/locations/{location}/services/{service}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkString($var, True); - $this->service = $var; - - return $this; - } - - /** - * Output only. The Cloud Run Service urls that are associated with a - * `Rollout`. - * - * Generated from protobuf field repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getServiceUrls() - { - return $this->service_urls; - } - - /** - * Output only. The Cloud Run Service urls that are associated with a - * `Rollout`. - * - * Generated from protobuf field repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setServiceUrls($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->service_urls = $arr; - - return $this; - } - - /** - * Output only. The Cloud Run Revision id associated with a `Rollout`. - * - * Generated from protobuf field string revision = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getRevision() - { - return $this->revision; - } - - /** - * Output only. The Cloud Run Revision id associated with a `Rollout`. - * - * Generated from protobuf field string revision = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setRevision($var) - { - GPBUtil::checkString($var, True); - $this->revision = $var; - - return $this; - } - - /** - * Output only. The name of the Cloud Run job that is associated with a - * `Rollout`. Format is - * `projects/{project}/locations/{location}/jobs/{job_name}`. - * - * Generated from protobuf field string job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getJob() - { - return $this->job; - } - - /** - * Output only. The name of the Cloud Run job that is associated with a - * `Rollout`. Format is - * `projects/{project}/locations/{location}/jobs/{job_name}`. - * - * Generated from protobuf field string job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setJob($var) - { - GPBUtil::checkString($var, True); - $this->job = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunRenderMetadata.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunRenderMetadata.php deleted file mode 100644 index 8695f4611f63..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CloudRunRenderMetadata.php +++ /dev/null @@ -1,72 +0,0 @@ -google.cloud.deploy.v1.CloudRunRenderMetadata - */ -class CloudRunRenderMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The name of the Cloud Run Service in the rendered manifest. - * Format is `projects/{project}/locations/{location}/services/{service}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $service = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $service - * Output only. The name of the Cloud Run Service in the rendered manifest. - * Format is `projects/{project}/locations/{location}/services/{service}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The name of the Cloud Run Service in the rendered manifest. - * Format is `projects/{project}/locations/{location}/services/{service}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getService() - { - return $this->service; - } - - /** - * Output only. The name of the Cloud Run Service in the rendered manifest. - * Format is `projects/{project}/locations/{location}/services/{service}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkString($var, True); - $this->service = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Config.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Config.php deleted file mode 100644 index d3401ecb99a3..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Config.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.deploy.v1.Config - */ -class Config extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the configuration. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * All supported versions of Skaffold. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2; - */ - private $supported_versions; - /** - * Default Skaffold version that is assigned when a Release is created without - * specifying a Skaffold version. - * - * Generated from protobuf field string default_skaffold_version = 3; - */ - protected $default_skaffold_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the configuration. - * @type array<\Google\Cloud\Deploy\V1\SkaffoldVersion>|\Google\Protobuf\Internal\RepeatedField $supported_versions - * All supported versions of Skaffold. - * @type string $default_skaffold_version - * Default Skaffold version that is assigned when a Release is created without - * specifying a Skaffold version. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Name of the configuration. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the configuration. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * All supported versions of Skaffold. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSupportedVersions() - { - return $this->supported_versions; - } - - /** - * All supported versions of Skaffold. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2; - * @param array<\Google\Cloud\Deploy\V1\SkaffoldVersion>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSupportedVersions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\SkaffoldVersion::class); - $this->supported_versions = $arr; - - return $this; - } - - /** - * Default Skaffold version that is assigned when a Release is created without - * specifying a Skaffold version. - * - * Generated from protobuf field string default_skaffold_version = 3; - * @return string - */ - public function getDefaultSkaffoldVersion() - { - return $this->default_skaffold_version; - } - - /** - * Default Skaffold version that is assigned when a Release is created without - * specifying a Skaffold version. - * - * Generated from protobuf field string default_skaffold_version = 3; - * @param string $var - * @return $this - */ - public function setDefaultSkaffoldVersion($var) - { - GPBUtil::checkString($var, True); - $this->default_skaffold_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateAutomationRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateAutomationRequest.php deleted file mode 100644 index 80216192162f..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateAutomationRequest.php +++ /dev/null @@ -1,285 +0,0 @@ -google.cloud.deploy.v1.CreateAutomationRequest - */ -class CreateAutomationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent collection in which the `Automation` must be created. - * The format is - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. ID of the `Automation`. - * - * Generated from protobuf field string automation_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $automation_id = ''; - /** - * Required. The `Automation` to create. - * - * Generated from protobuf field .google.cloud.deploy.v1.Automation automation = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $automation = null; - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $parent Required. The parent collection in which the `Automation` must be created. - * The format is - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. Please see - * {@see CloudDeployClient::deliveryPipelineName()} for help formatting this field. - * @param \Google\Cloud\Deploy\V1\Automation $automation Required. The `Automation` to create. - * @param string $automationId Required. ID of the `Automation`. - * - * @return \Google\Cloud\Deploy\V1\CreateAutomationRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Deploy\V1\Automation $automation, string $automationId): self - { - return (new self()) - ->setParent($parent) - ->setAutomation($automation) - ->setAutomationId($automationId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent collection in which the `Automation` must be created. - * The format is - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. - * @type string $automation_id - * Required. ID of the `Automation`. - * @type \Google\Cloud\Deploy\V1\Automation $automation - * Required. The `Automation` to create. - * @type string $request_id - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type bool $validate_only - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent collection in which the `Automation` must be created. - * The format is - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent collection in which the `Automation` must be created. - * The format is - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. ID of the `Automation`. - * - * Generated from protobuf field string automation_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAutomationId() - { - return $this->automation_id; - } - - /** - * Required. ID of the `Automation`. - * - * Generated from protobuf field string automation_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAutomationId($var) - { - GPBUtil::checkString($var, True); - $this->automation_id = $var; - - return $this; - } - - /** - * Required. The `Automation` to create. - * - * Generated from protobuf field .google.cloud.deploy.v1.Automation automation = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Deploy\V1\Automation|null - */ - public function getAutomation() - { - return $this->automation; - } - - public function hasAutomation() - { - return isset($this->automation); - } - - public function clearAutomation() - { - unset($this->automation); - } - - /** - * Required. The `Automation` to create. - * - * Generated from protobuf field .google.cloud.deploy.v1.Automation automation = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Deploy\V1\Automation $var - * @return $this - */ - public function setAutomation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Automation::class); - $this->automation = $var; - - return $this; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateChildRolloutJob.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateChildRolloutJob.php deleted file mode 100644 index ba7b1ce944b0..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateChildRolloutJob.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.deploy.v1.CreateChildRolloutJob - */ -class CreateChildRolloutJob extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateChildRolloutJobRun.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateChildRolloutJobRun.php deleted file mode 100644 index 2207026b617e..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateChildRolloutJobRun.php +++ /dev/null @@ -1,106 +0,0 @@ -google.cloud.deploy.v1.CreateChildRolloutJobRun - */ -class CreateChildRolloutJobRun extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Name of the `ChildRollout`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. - * - * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $rollout = ''; - /** - * Output only. The ID of the childRollout Phase initiated by this JobRun. - * - * Generated from protobuf field string rollout_phase_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $rollout_phase_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $rollout - * Output only. Name of the `ChildRollout`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. - * @type string $rollout_phase_id - * Output only. The ID of the childRollout Phase initiated by this JobRun. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Name of the `ChildRollout`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. - * - * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getRollout() - { - return $this->rollout; - } - - /** - * Output only. Name of the `ChildRollout`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. - * - * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setRollout($var) - { - GPBUtil::checkString($var, True); - $this->rollout = $var; - - return $this; - } - - /** - * Output only. The ID of the childRollout Phase initiated by this JobRun. - * - * Generated from protobuf field string rollout_phase_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getRolloutPhaseId() - { - return $this->rollout_phase_id; - } - - /** - * Output only. The ID of the childRollout Phase initiated by this JobRun. - * - * Generated from protobuf field string rollout_phase_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setRolloutPhaseId($var) - { - GPBUtil::checkString($var, True); - $this->rollout_phase_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateCustomTargetTypeRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateCustomTargetTypeRequest.php deleted file mode 100644 index 1db9157a497c..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateCustomTargetTypeRequest.php +++ /dev/null @@ -1,280 +0,0 @@ -google.cloud.deploy.v1.CreateCustomTargetTypeRequest - */ -class CreateCustomTargetTypeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent collection in which the `CustomTargetType` must be - * created. The format is `projects/{project_id}/locations/{location_name}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. ID of the `CustomTargetType`. - * - * Generated from protobuf field string custom_target_type_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $custom_target_type_id = ''; - /** - * Required. The `CustomTargetType` to create. - * - * Generated from protobuf field .google.cloud.deploy.v1.CustomTargetType custom_target_type = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $custom_target_type = null; - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $parent Required. The parent collection in which the `CustomTargetType` must be - * created. The format is `projects/{project_id}/locations/{location_name}`. Please see - * {@see CloudDeployClient::locationName()} for help formatting this field. - * @param \Google\Cloud\Deploy\V1\CustomTargetType $customTargetType Required. The `CustomTargetType` to create. - * @param string $customTargetTypeId Required. ID of the `CustomTargetType`. - * - * @return \Google\Cloud\Deploy\V1\CreateCustomTargetTypeRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Deploy\V1\CustomTargetType $customTargetType, string $customTargetTypeId): self - { - return (new self()) - ->setParent($parent) - ->setCustomTargetType($customTargetType) - ->setCustomTargetTypeId($customTargetTypeId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent collection in which the `CustomTargetType` must be - * created. The format is `projects/{project_id}/locations/{location_name}`. - * @type string $custom_target_type_id - * Required. ID of the `CustomTargetType`. - * @type \Google\Cloud\Deploy\V1\CustomTargetType $custom_target_type - * Required. The `CustomTargetType` to create. - * @type string $request_id - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type bool $validate_only - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent collection in which the `CustomTargetType` must be - * created. The format is `projects/{project_id}/locations/{location_name}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent collection in which the `CustomTargetType` must be - * created. The format is `projects/{project_id}/locations/{location_name}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. ID of the `CustomTargetType`. - * - * Generated from protobuf field string custom_target_type_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getCustomTargetTypeId() - { - return $this->custom_target_type_id; - } - - /** - * Required. ID of the `CustomTargetType`. - * - * Generated from protobuf field string custom_target_type_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setCustomTargetTypeId($var) - { - GPBUtil::checkString($var, True); - $this->custom_target_type_id = $var; - - return $this; - } - - /** - * Required. The `CustomTargetType` to create. - * - * Generated from protobuf field .google.cloud.deploy.v1.CustomTargetType custom_target_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Deploy\V1\CustomTargetType|null - */ - public function getCustomTargetType() - { - return $this->custom_target_type; - } - - public function hasCustomTargetType() - { - return isset($this->custom_target_type); - } - - public function clearCustomTargetType() - { - unset($this->custom_target_type); - } - - /** - * Required. The `CustomTargetType` to create. - * - * Generated from protobuf field .google.cloud.deploy.v1.CustomTargetType custom_target_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Deploy\V1\CustomTargetType $var - * @return $this - */ - public function setCustomTargetType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CustomTargetType::class); - $this->custom_target_type = $var; - - return $this; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateDeliveryPipelineRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateDeliveryPipelineRequest.php deleted file mode 100644 index 468be305acc0..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateDeliveryPipelineRequest.php +++ /dev/null @@ -1,280 +0,0 @@ -google.cloud.deploy.v1.CreateDeliveryPipelineRequest - */ -class CreateDeliveryPipelineRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent collection in which the `DeliveryPipeline` must be - * created. The format is `projects/{project_id}/locations/{location_name}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. ID of the `DeliveryPipeline`. - * - * Generated from protobuf field string delivery_pipeline_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $delivery_pipeline_id = ''; - /** - * Required. The `DeliveryPipeline` to create. - * - * Generated from protobuf field .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $delivery_pipeline = null; - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $parent Required. The parent collection in which the `DeliveryPipeline` must be - * created. The format is `projects/{project_id}/locations/{location_name}`. Please see - * {@see CloudDeployClient::locationName()} for help formatting this field. - * @param \Google\Cloud\Deploy\V1\DeliveryPipeline $deliveryPipeline Required. The `DeliveryPipeline` to create. - * @param string $deliveryPipelineId Required. ID of the `DeliveryPipeline`. - * - * @return \Google\Cloud\Deploy\V1\CreateDeliveryPipelineRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Deploy\V1\DeliveryPipeline $deliveryPipeline, string $deliveryPipelineId): self - { - return (new self()) - ->setParent($parent) - ->setDeliveryPipeline($deliveryPipeline) - ->setDeliveryPipelineId($deliveryPipelineId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent collection in which the `DeliveryPipeline` must be - * created. The format is `projects/{project_id}/locations/{location_name}`. - * @type string $delivery_pipeline_id - * Required. ID of the `DeliveryPipeline`. - * @type \Google\Cloud\Deploy\V1\DeliveryPipeline $delivery_pipeline - * Required. The `DeliveryPipeline` to create. - * @type string $request_id - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type bool $validate_only - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent collection in which the `DeliveryPipeline` must be - * created. The format is `projects/{project_id}/locations/{location_name}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent collection in which the `DeliveryPipeline` must be - * created. The format is `projects/{project_id}/locations/{location_name}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. ID of the `DeliveryPipeline`. - * - * Generated from protobuf field string delivery_pipeline_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDeliveryPipelineId() - { - return $this->delivery_pipeline_id; - } - - /** - * Required. ID of the `DeliveryPipeline`. - * - * Generated from protobuf field string delivery_pipeline_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDeliveryPipelineId($var) - { - GPBUtil::checkString($var, True); - $this->delivery_pipeline_id = $var; - - return $this; - } - - /** - * Required. The `DeliveryPipeline` to create. - * - * Generated from protobuf field .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Deploy\V1\DeliveryPipeline|null - */ - public function getDeliveryPipeline() - { - return $this->delivery_pipeline; - } - - public function hasDeliveryPipeline() - { - return isset($this->delivery_pipeline); - } - - public function clearDeliveryPipeline() - { - unset($this->delivery_pipeline); - } - - /** - * Required. The `DeliveryPipeline` to create. - * - * Generated from protobuf field .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Deploy\V1\DeliveryPipeline $var - * @return $this - */ - public function setDeliveryPipeline($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\DeliveryPipeline::class); - $this->delivery_pipeline = $var; - - return $this; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateDeployPolicyRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateDeployPolicyRequest.php deleted file mode 100644 index 19f257bdbdf4..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateDeployPolicyRequest.php +++ /dev/null @@ -1,280 +0,0 @@ -google.cloud.deploy.v1.CreateDeployPolicyRequest - */ -class CreateDeployPolicyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent collection in which the `DeployPolicy` must be - * created. The format is `projects/{project_id}/locations/{location_name}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. ID of the `DeployPolicy`. - * - * Generated from protobuf field string deploy_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $deploy_policy_id = ''; - /** - * Required. The `DeployPolicy` to create. - * - * Generated from protobuf field .google.cloud.deploy.v1.DeployPolicy deploy_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $deploy_policy = null; - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $parent Required. The parent collection in which the `DeployPolicy` must be - * created. The format is `projects/{project_id}/locations/{location_name}`. Please see - * {@see CloudDeployClient::locationName()} for help formatting this field. - * @param \Google\Cloud\Deploy\V1\DeployPolicy $deployPolicy Required. The `DeployPolicy` to create. - * @param string $deployPolicyId Required. ID of the `DeployPolicy`. - * - * @return \Google\Cloud\Deploy\V1\CreateDeployPolicyRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Deploy\V1\DeployPolicy $deployPolicy, string $deployPolicyId): self - { - return (new self()) - ->setParent($parent) - ->setDeployPolicy($deployPolicy) - ->setDeployPolicyId($deployPolicyId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent collection in which the `DeployPolicy` must be - * created. The format is `projects/{project_id}/locations/{location_name}`. - * @type string $deploy_policy_id - * Required. ID of the `DeployPolicy`. - * @type \Google\Cloud\Deploy\V1\DeployPolicy $deploy_policy - * Required. The `DeployPolicy` to create. - * @type string $request_id - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type bool $validate_only - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent collection in which the `DeployPolicy` must be - * created. The format is `projects/{project_id}/locations/{location_name}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent collection in which the `DeployPolicy` must be - * created. The format is `projects/{project_id}/locations/{location_name}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. ID of the `DeployPolicy`. - * - * Generated from protobuf field string deploy_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDeployPolicyId() - { - return $this->deploy_policy_id; - } - - /** - * Required. ID of the `DeployPolicy`. - * - * Generated from protobuf field string deploy_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDeployPolicyId($var) - { - GPBUtil::checkString($var, True); - $this->deploy_policy_id = $var; - - return $this; - } - - /** - * Required. The `DeployPolicy` to create. - * - * Generated from protobuf field .google.cloud.deploy.v1.DeployPolicy deploy_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Deploy\V1\DeployPolicy|null - */ - public function getDeployPolicy() - { - return $this->deploy_policy; - } - - public function hasDeployPolicy() - { - return isset($this->deploy_policy); - } - - public function clearDeployPolicy() - { - unset($this->deploy_policy); - } - - /** - * Required. The `DeployPolicy` to create. - * - * Generated from protobuf field .google.cloud.deploy.v1.DeployPolicy deploy_policy = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Deploy\V1\DeployPolicy $var - * @return $this - */ - public function setDeployPolicy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\DeployPolicy::class); - $this->deploy_policy = $var; - - return $this; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateReleaseRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateReleaseRequest.php deleted file mode 100644 index 06f287273d32..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateReleaseRequest.php +++ /dev/null @@ -1,323 +0,0 @@ -google.cloud.deploy.v1.CreateReleaseRequest - */ -class CreateReleaseRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent collection in which the `Release` is created. - * The format is - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. ID of the `Release`. - * - * Generated from protobuf field string release_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $release_id = ''; - /** - * Required. The `Release` to create. - * - * Generated from protobuf field .google.cloud.deploy.v1.Release release = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $release = null; - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - /** - * Optional. Deploy policies to override. Format is - * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. - * - * Generated from protobuf field repeated string override_deploy_policy = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $override_deploy_policy; - - /** - * @param string $parent Required. The parent collection in which the `Release` is created. - * The format is - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. Please see - * {@see CloudDeployClient::deliveryPipelineName()} for help formatting this field. - * @param \Google\Cloud\Deploy\V1\Release $release Required. The `Release` to create. - * @param string $releaseId Required. ID of the `Release`. - * - * @return \Google\Cloud\Deploy\V1\CreateReleaseRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Deploy\V1\Release $release, string $releaseId): self - { - return (new self()) - ->setParent($parent) - ->setRelease($release) - ->setReleaseId($releaseId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent collection in which the `Release` is created. - * The format is - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. - * @type string $release_id - * Required. ID of the `Release`. - * @type \Google\Cloud\Deploy\V1\Release $release - * Required. The `Release` to create. - * @type string $request_id - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type bool $validate_only - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * @type array|\Google\Protobuf\Internal\RepeatedField $override_deploy_policy - * Optional. Deploy policies to override. Format is - * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent collection in which the `Release` is created. - * The format is - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent collection in which the `Release` is created. - * The format is - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. ID of the `Release`. - * - * Generated from protobuf field string release_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getReleaseId() - { - return $this->release_id; - } - - /** - * Required. ID of the `Release`. - * - * Generated from protobuf field string release_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setReleaseId($var) - { - GPBUtil::checkString($var, True); - $this->release_id = $var; - - return $this; - } - - /** - * Required. The `Release` to create. - * - * Generated from protobuf field .google.cloud.deploy.v1.Release release = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Deploy\V1\Release|null - */ - public function getRelease() - { - return $this->release; - } - - public function hasRelease() - { - return isset($this->release); - } - - public function clearRelease() - { - unset($this->release); - } - - /** - * Required. The `Release` to create. - * - * Generated from protobuf field .google.cloud.deploy.v1.Release release = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Deploy\V1\Release $var - * @return $this - */ - public function setRelease($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Release::class); - $this->release = $var; - - return $this; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - - /** - * Optional. Deploy policies to override. Format is - * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. - * - * Generated from protobuf field repeated string override_deploy_policy = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOverrideDeployPolicy() - { - return $this->override_deploy_policy; - } - - /** - * Optional. Deploy policies to override. Format is - * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. - * - * Generated from protobuf field repeated string override_deploy_policy = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOverrideDeployPolicy($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->override_deploy_policy = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateRolloutRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateRolloutRequest.php deleted file mode 100644 index f8ce1968ee03..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateRolloutRequest.php +++ /dev/null @@ -1,361 +0,0 @@ -google.cloud.deploy.v1.CreateRolloutRequest - */ -class CreateRolloutRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent collection in which the `Rollout` must be created. - * The format is - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. ID of the `Rollout`. - * - * Generated from protobuf field string rollout_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $rollout_id = ''; - /** - * Required. The `Rollout` to create. - * - * Generated from protobuf field .google.cloud.deploy.v1.Rollout rollout = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $rollout = null; - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - /** - * Optional. Deploy policies to override. Format is - * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. - * - * Generated from protobuf field repeated string override_deploy_policy = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $override_deploy_policy; - /** - * Optional. The starting phase ID for the `Rollout`. If empty the `Rollout` - * will start at the first phase. - * - * Generated from protobuf field string starting_phase_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $starting_phase_id = ''; - - /** - * @param string $parent Required. The parent collection in which the `Rollout` must be created. - * The format is - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`. Please see - * {@see CloudDeployClient::releaseName()} for help formatting this field. - * @param \Google\Cloud\Deploy\V1\Rollout $rollout Required. The `Rollout` to create. - * @param string $rolloutId Required. ID of the `Rollout`. - * - * @return \Google\Cloud\Deploy\V1\CreateRolloutRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Deploy\V1\Rollout $rollout, string $rolloutId): self - { - return (new self()) - ->setParent($parent) - ->setRollout($rollout) - ->setRolloutId($rolloutId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent collection in which the `Rollout` must be created. - * The format is - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`. - * @type string $rollout_id - * Required. ID of the `Rollout`. - * @type \Google\Cloud\Deploy\V1\Rollout $rollout - * Required. The `Rollout` to create. - * @type string $request_id - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type bool $validate_only - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * @type array|\Google\Protobuf\Internal\RepeatedField $override_deploy_policy - * Optional. Deploy policies to override. Format is - * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. - * @type string $starting_phase_id - * Optional. The starting phase ID for the `Rollout`. If empty the `Rollout` - * will start at the first phase. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent collection in which the `Rollout` must be created. - * The format is - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent collection in which the `Rollout` must be created. - * The format is - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. ID of the `Rollout`. - * - * Generated from protobuf field string rollout_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getRolloutId() - { - return $this->rollout_id; - } - - /** - * Required. ID of the `Rollout`. - * - * Generated from protobuf field string rollout_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setRolloutId($var) - { - GPBUtil::checkString($var, True); - $this->rollout_id = $var; - - return $this; - } - - /** - * Required. The `Rollout` to create. - * - * Generated from protobuf field .google.cloud.deploy.v1.Rollout rollout = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Deploy\V1\Rollout|null - */ - public function getRollout() - { - return $this->rollout; - } - - public function hasRollout() - { - return isset($this->rollout); - } - - public function clearRollout() - { - unset($this->rollout); - } - - /** - * Required. The `Rollout` to create. - * - * Generated from protobuf field .google.cloud.deploy.v1.Rollout rollout = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Deploy\V1\Rollout $var - * @return $this - */ - public function setRollout($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Rollout::class); - $this->rollout = $var; - - return $this; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - - /** - * Optional. Deploy policies to override. Format is - * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. - * - * Generated from protobuf field repeated string override_deploy_policy = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOverrideDeployPolicy() - { - return $this->override_deploy_policy; - } - - /** - * Optional. Deploy policies to override. Format is - * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. - * - * Generated from protobuf field repeated string override_deploy_policy = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOverrideDeployPolicy($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->override_deploy_policy = $arr; - - return $this; - } - - /** - * Optional. The starting phase ID for the `Rollout`. If empty the `Rollout` - * will start at the first phase. - * - * Generated from protobuf field string starting_phase_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getStartingPhaseId() - { - return $this->starting_phase_id; - } - - /** - * Optional. The starting phase ID for the `Rollout`. If empty the `Rollout` - * will start at the first phase. - * - * Generated from protobuf field string starting_phase_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setStartingPhaseId($var) - { - GPBUtil::checkString($var, True); - $this->starting_phase_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateTargetRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateTargetRequest.php deleted file mode 100644 index 70ac518604fc..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CreateTargetRequest.php +++ /dev/null @@ -1,285 +0,0 @@ -google.cloud.deploy.v1.CreateTargetRequest - */ -class CreateTargetRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent collection in which the `Target` must be created. - * The format is - * `projects/{project_id}/locations/{location_name}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. ID of the `Target`. - * - * Generated from protobuf field string target_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $target_id = ''; - /** - * Required. The `Target` to create. - * - * Generated from protobuf field .google.cloud.deploy.v1.Target target = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $target = null; - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $parent Required. The parent collection in which the `Target` must be created. - * The format is - * `projects/{project_id}/locations/{location_name}`. Please see - * {@see CloudDeployClient::locationName()} for help formatting this field. - * @param \Google\Cloud\Deploy\V1\Target $target Required. The `Target` to create. - * @param string $targetId Required. ID of the `Target`. - * - * @return \Google\Cloud\Deploy\V1\CreateTargetRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Deploy\V1\Target $target, string $targetId): self - { - return (new self()) - ->setParent($parent) - ->setTarget($target) - ->setTargetId($targetId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent collection in which the `Target` must be created. - * The format is - * `projects/{project_id}/locations/{location_name}`. - * @type string $target_id - * Required. ID of the `Target`. - * @type \Google\Cloud\Deploy\V1\Target $target - * Required. The `Target` to create. - * @type string $request_id - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type bool $validate_only - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent collection in which the `Target` must be created. - * The format is - * `projects/{project_id}/locations/{location_name}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent collection in which the `Target` must be created. - * The format is - * `projects/{project_id}/locations/{location_name}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. ID of the `Target`. - * - * Generated from protobuf field string target_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTargetId() - { - return $this->target_id; - } - - /** - * Required. ID of the `Target`. - * - * Generated from protobuf field string target_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTargetId($var) - { - GPBUtil::checkString($var, True); - $this->target_id = $var; - - return $this; - } - - /** - * Required. The `Target` to create. - * - * Generated from protobuf field .google.cloud.deploy.v1.Target target = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Deploy\V1\Target|null - */ - public function getTarget() - { - return $this->target; - } - - public function hasTarget() - { - return isset($this->target); - } - - public function clearTarget() - { - unset($this->target); - } - - /** - * Required. The `Target` to create. - * - * Generated from protobuf field .google.cloud.deploy.v1.Target target = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Deploy\V1\Target $var - * @return $this - */ - public function setTarget($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Target::class); - $this->target = $var; - - return $this; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomCanaryDeployment.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomCanaryDeployment.php deleted file mode 100644 index 7564e1c85ac6..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomCanaryDeployment.php +++ /dev/null @@ -1,72 +0,0 @@ -google.cloud.deploy.v1.CustomCanaryDeployment - */ -class CustomCanaryDeployment extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Configuration for each phase in the canary deployment in the - * order executed. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.CustomCanaryDeployment.PhaseConfig phase_configs = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $phase_configs; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Deploy\V1\CustomCanaryDeployment\PhaseConfig>|\Google\Protobuf\Internal\RepeatedField $phase_configs - * Required. Configuration for each phase in the canary deployment in the - * order executed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. Configuration for each phase in the canary deployment in the - * order executed. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.CustomCanaryDeployment.PhaseConfig phase_configs = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPhaseConfigs() - { - return $this->phase_configs; - } - - /** - * Required. Configuration for each phase in the canary deployment in the - * order executed. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.CustomCanaryDeployment.PhaseConfig phase_configs = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Cloud\Deploy\V1\CustomCanaryDeployment\PhaseConfig>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPhaseConfigs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\CustomCanaryDeployment\PhaseConfig::class); - $this->phase_configs = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomCanaryDeployment/PhaseConfig.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomCanaryDeployment/PhaseConfig.php deleted file mode 100644 index b491f4297665..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomCanaryDeployment/PhaseConfig.php +++ /dev/null @@ -1,293 +0,0 @@ -google.cloud.deploy.v1.CustomCanaryDeployment.PhaseConfig - */ -class PhaseConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ID to assign to the `Rollout` phase. - * This value must consist of lower-case letters, numbers, and hyphens, - * start with a letter and end with a letter or a number, and have a max - * length of 63 characters. In other words, it must match the following - * regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * - * Generated from protobuf field string phase_id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $phase_id = ''; - /** - * Required. Percentage deployment for the phase. - * - * Generated from protobuf field int32 percentage = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $percentage = 0; - /** - * Skaffold profiles to use when rendering the manifest for this phase. - * These are in addition to the profiles list specified in the - * `DeliveryPipeline` stage. - * - * Generated from protobuf field repeated string profiles = 3; - */ - private $profiles; - /** - * Whether to run verify tests after the deployment. - * - * Generated from protobuf field bool verify = 4; - */ - protected $verify = false; - /** - * Optional. Configuration for the predeploy job of this phase. If this is - * not configured, there will be no predeploy job for this phase. - * - * Generated from protobuf field .google.cloud.deploy.v1.Predeploy predeploy = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $predeploy = null; - /** - * Optional. Configuration for the postdeploy job of this phase. If this is - * not configured, there will be no postdeploy job for this phase. - * - * Generated from protobuf field .google.cloud.deploy.v1.Postdeploy postdeploy = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $postdeploy = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $phase_id - * Required. The ID to assign to the `Rollout` phase. - * This value must consist of lower-case letters, numbers, and hyphens, - * start with a letter and end with a letter or a number, and have a max - * length of 63 characters. In other words, it must match the following - * regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * @type int $percentage - * Required. Percentage deployment for the phase. - * @type array|\Google\Protobuf\Internal\RepeatedField $profiles - * Skaffold profiles to use when rendering the manifest for this phase. - * These are in addition to the profiles list specified in the - * `DeliveryPipeline` stage. - * @type bool $verify - * Whether to run verify tests after the deployment. - * @type \Google\Cloud\Deploy\V1\Predeploy $predeploy - * Optional. Configuration for the predeploy job of this phase. If this is - * not configured, there will be no predeploy job for this phase. - * @type \Google\Cloud\Deploy\V1\Postdeploy $postdeploy - * Optional. Configuration for the postdeploy job of this phase. If this is - * not configured, there will be no postdeploy job for this phase. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ID to assign to the `Rollout` phase. - * This value must consist of lower-case letters, numbers, and hyphens, - * start with a letter and end with a letter or a number, and have a max - * length of 63 characters. In other words, it must match the following - * regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * - * Generated from protobuf field string phase_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getPhaseId() - { - return $this->phase_id; - } - - /** - * Required. The ID to assign to the `Rollout` phase. - * This value must consist of lower-case letters, numbers, and hyphens, - * start with a letter and end with a letter or a number, and have a max - * length of 63 characters. In other words, it must match the following - * regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * - * Generated from protobuf field string phase_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setPhaseId($var) - { - GPBUtil::checkString($var, True); - $this->phase_id = $var; - - return $this; - } - - /** - * Required. Percentage deployment for the phase. - * - * Generated from protobuf field int32 percentage = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getPercentage() - { - return $this->percentage; - } - - /** - * Required. Percentage deployment for the phase. - * - * Generated from protobuf field int32 percentage = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setPercentage($var) - { - GPBUtil::checkInt32($var); - $this->percentage = $var; - - return $this; - } - - /** - * Skaffold profiles to use when rendering the manifest for this phase. - * These are in addition to the profiles list specified in the - * `DeliveryPipeline` stage. - * - * Generated from protobuf field repeated string profiles = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getProfiles() - { - return $this->profiles; - } - - /** - * Skaffold profiles to use when rendering the manifest for this phase. - * These are in addition to the profiles list specified in the - * `DeliveryPipeline` stage. - * - * Generated from protobuf field repeated string profiles = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setProfiles($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->profiles = $arr; - - return $this; - } - - /** - * Whether to run verify tests after the deployment. - * - * Generated from protobuf field bool verify = 4; - * @return bool - */ - public function getVerify() - { - return $this->verify; - } - - /** - * Whether to run verify tests after the deployment. - * - * Generated from protobuf field bool verify = 4; - * @param bool $var - * @return $this - */ - public function setVerify($var) - { - GPBUtil::checkBool($var); - $this->verify = $var; - - return $this; - } - - /** - * Optional. Configuration for the predeploy job of this phase. If this is - * not configured, there will be no predeploy job for this phase. - * - * Generated from protobuf field .google.cloud.deploy.v1.Predeploy predeploy = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Deploy\V1\Predeploy|null - */ - public function getPredeploy() - { - return $this->predeploy; - } - - public function hasPredeploy() - { - return isset($this->predeploy); - } - - public function clearPredeploy() - { - unset($this->predeploy); - } - - /** - * Optional. Configuration for the predeploy job of this phase. If this is - * not configured, there will be no predeploy job for this phase. - * - * Generated from protobuf field .google.cloud.deploy.v1.Predeploy predeploy = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Deploy\V1\Predeploy $var - * @return $this - */ - public function setPredeploy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Predeploy::class); - $this->predeploy = $var; - - return $this; - } - - /** - * Optional. Configuration for the postdeploy job of this phase. If this is - * not configured, there will be no postdeploy job for this phase. - * - * Generated from protobuf field .google.cloud.deploy.v1.Postdeploy postdeploy = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Deploy\V1\Postdeploy|null - */ - public function getPostdeploy() - { - return $this->postdeploy; - } - - public function hasPostdeploy() - { - return isset($this->postdeploy); - } - - public function clearPostdeploy() - { - unset($this->postdeploy); - } - - /** - * Optional. Configuration for the postdeploy job of this phase. If this is - * not configured, there will be no postdeploy job for this phase. - * - * Generated from protobuf field .google.cloud.deploy.v1.Postdeploy postdeploy = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Deploy\V1\Postdeploy $var - * @return $this - */ - public function setPostdeploy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Postdeploy::class); - $this->postdeploy = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PhaseConfig::class, \Google\Cloud\Deploy\V1\CustomCanaryDeployment_PhaseConfig::class); - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomMetadata.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomMetadata.php deleted file mode 100644 index 0542e47d8caf..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomMetadata.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.deploy.v1.CustomMetadata - */ -class CustomMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Key-value pairs provided by the user-defined operation. - * - * Generated from protobuf field map values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\MapField $values - * Output only. Key-value pairs provided by the user-defined operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Key-value pairs provided by the user-defined operation. - * - * Generated from protobuf field map values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getValues() - { - return $this->values; - } - - /** - * Output only. Key-value pairs provided by the user-defined operation. - * - * Generated from protobuf field map values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->values = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTarget.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTarget.php deleted file mode 100644 index cd56d0f9ff5a..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTarget.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.deploy.v1.CustomTarget - */ -class CustomTarget extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the CustomTargetType. Format must be - * `projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}`. - * - * Generated from protobuf field string custom_target_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $custom_target_type = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $custom_target_type - * Required. The name of the CustomTargetType. Format must be - * `projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the CustomTargetType. Format must be - * `projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}`. - * - * Generated from protobuf field string custom_target_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getCustomTargetType() - { - return $this->custom_target_type; - } - - /** - * Required. The name of the CustomTargetType. Format must be - * `projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}`. - * - * Generated from protobuf field string custom_target_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setCustomTargetType($var) - { - GPBUtil::checkString($var, True); - $this->custom_target_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetDeployMetadata.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetDeployMetadata.php deleted file mode 100644 index 84f7747119b7..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetDeployMetadata.php +++ /dev/null @@ -1,72 +0,0 @@ -google.cloud.deploy.v1.CustomTargetDeployMetadata - */ -class CustomTargetDeployMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Skip message provided in the results of a custom deploy - * operation. - * - * Generated from protobuf field string skip_message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $skip_message = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $skip_message - * Output only. Skip message provided in the results of a custom deploy - * operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Skip message provided in the results of a custom deploy - * operation. - * - * Generated from protobuf field string skip_message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getSkipMessage() - { - return $this->skip_message; - } - - /** - * Output only. Skip message provided in the results of a custom deploy - * operation. - * - * Generated from protobuf field string skip_message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setSkipMessage($var) - { - GPBUtil::checkString($var, True); - $this->skip_message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetSkaffoldActions.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetSkaffoldActions.php deleted file mode 100644 index bd8698c053a8..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetSkaffoldActions.php +++ /dev/null @@ -1,148 +0,0 @@ -google.cloud.deploy.v1.CustomTargetSkaffoldActions - */ -class CustomTargetSkaffoldActions extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The Skaffold custom action responsible for render operations. If - * not provided then Cloud Deploy will perform the render operations via - * `skaffold render`. - * - * Generated from protobuf field string render_action = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $render_action = ''; - /** - * Required. The Skaffold custom action responsible for deploy operations. - * - * Generated from protobuf field string deploy_action = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $deploy_action = ''; - /** - * Optional. List of Skaffold modules Cloud Deploy will include in the - * Skaffold Config as required before performing diagnose. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.SkaffoldModules include_skaffold_modules = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $include_skaffold_modules; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $render_action - * Optional. The Skaffold custom action responsible for render operations. If - * not provided then Cloud Deploy will perform the render operations via - * `skaffold render`. - * @type string $deploy_action - * Required. The Skaffold custom action responsible for deploy operations. - * @type array<\Google\Cloud\Deploy\V1\SkaffoldModules>|\Google\Protobuf\Internal\RepeatedField $include_skaffold_modules - * Optional. List of Skaffold modules Cloud Deploy will include in the - * Skaffold Config as required before performing diagnose. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The Skaffold custom action responsible for render operations. If - * not provided then Cloud Deploy will perform the render operations via - * `skaffold render`. - * - * Generated from protobuf field string render_action = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRenderAction() - { - return $this->render_action; - } - - /** - * Optional. The Skaffold custom action responsible for render operations. If - * not provided then Cloud Deploy will perform the render operations via - * `skaffold render`. - * - * Generated from protobuf field string render_action = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRenderAction($var) - { - GPBUtil::checkString($var, True); - $this->render_action = $var; - - return $this; - } - - /** - * Required. The Skaffold custom action responsible for deploy operations. - * - * Generated from protobuf field string deploy_action = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDeployAction() - { - return $this->deploy_action; - } - - /** - * Required. The Skaffold custom action responsible for deploy operations. - * - * Generated from protobuf field string deploy_action = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDeployAction($var) - { - GPBUtil::checkString($var, True); - $this->deploy_action = $var; - - return $this; - } - - /** - * Optional. List of Skaffold modules Cloud Deploy will include in the - * Skaffold Config as required before performing diagnose. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.SkaffoldModules include_skaffold_modules = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIncludeSkaffoldModules() - { - return $this->include_skaffold_modules; - } - - /** - * Optional. List of Skaffold modules Cloud Deploy will include in the - * Skaffold Config as required before performing diagnose. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.SkaffoldModules include_skaffold_modules = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\Deploy\V1\SkaffoldModules>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIncludeSkaffoldModules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\SkaffoldModules::class); - $this->include_skaffold_modules = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetType.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetType.php deleted file mode 100644 index 8b54d063c81f..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetType.php +++ /dev/null @@ -1,475 +0,0 @@ -google.cloud.deploy.v1.CustomTargetType - */ -class CustomTargetType extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Name of the `CustomTargetType`. Format is - * `projects/{project}/locations/{location}/customTargetTypes/{customTargetType}`. - * The `customTargetType` component must match - * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $name = ''; - /** - * Output only. Resource id of the `CustomTargetType`. - * - * Generated from protobuf field string custom_target_type_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $custom_target_type_id = ''; - /** - * Output only. Unique identifier of the `CustomTargetType`. - * - * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Optional. Description of the `CustomTargetType`. Max length is 255 - * characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Optional. User annotations. These attributes can only be set and used by - * the user, and not by Cloud Deploy. See - * https://google.aip.dev/128#annotations for more details such as format and - * size limitations. - * - * Generated from protobuf field map annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $annotations; - /** - * Optional. Labels are attributes that can be set and used by both the - * user and by Cloud Deploy. Labels must meet the following constraints: - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. - * * All characters must use UTF-8 encoding, and international characters are - * allowed. - * * Keys must start with a lowercase letter or international character. - * * Each resource is limited to a maximum of 64 labels. - * Both keys and values are additionally constrained to be <= 128 bytes. - * - * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Output only. Time at which the `CustomTargetType` was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Most recent time at which the `CustomTargetType` was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - protected $definition; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Optional. Name of the `CustomTargetType`. Format is - * `projects/{project}/locations/{location}/customTargetTypes/{customTargetType}`. - * The `customTargetType` component must match - * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` - * @type string $custom_target_type_id - * Output only. Resource id of the `CustomTargetType`. - * @type string $uid - * Output only. Unique identifier of the `CustomTargetType`. - * @type string $description - * Optional. Description of the `CustomTargetType`. Max length is 255 - * characters. - * @type array|\Google\Protobuf\Internal\MapField $annotations - * Optional. User annotations. These attributes can only be set and used by - * the user, and not by Cloud Deploy. See - * https://google.aip.dev/128#annotations for more details such as format and - * size limitations. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. Labels are attributes that can be set and used by both the - * user and by Cloud Deploy. Labels must meet the following constraints: - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. - * * All characters must use UTF-8 encoding, and international characters are - * allowed. - * * Keys must start with a lowercase letter or international character. - * * Each resource is limited to a maximum of 64 labels. - * Both keys and values are additionally constrained to be <= 128 bytes. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time at which the `CustomTargetType` was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Most recent time at which the `CustomTargetType` was updated. - * @type string $etag - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * @type \Google\Cloud\Deploy\V1\CustomTargetSkaffoldActions $custom_actions - * Configures render and deploy for the `CustomTargetType` using Skaffold - * custom actions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Name of the `CustomTargetType`. Format is - * `projects/{project}/locations/{location}/customTargetTypes/{customTargetType}`. - * The `customTargetType` component must match - * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Optional. Name of the `CustomTargetType`. Format is - * `projects/{project}/locations/{location}/customTargetTypes/{customTargetType}`. - * The `customTargetType` component must match - * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. Resource id of the `CustomTargetType`. - * - * Generated from protobuf field string custom_target_type_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getCustomTargetTypeId() - { - return $this->custom_target_type_id; - } - - /** - * Output only. Resource id of the `CustomTargetType`. - * - * Generated from protobuf field string custom_target_type_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setCustomTargetTypeId($var) - { - GPBUtil::checkString($var, True); - $this->custom_target_type_id = $var; - - return $this; - } - - /** - * Output only. Unique identifier of the `CustomTargetType`. - * - * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. Unique identifier of the `CustomTargetType`. - * - * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Optional. Description of the `CustomTargetType`. Max length is 255 - * characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description of the `CustomTargetType`. Max length is 255 - * characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Optional. User annotations. These attributes can only be set and used by - * the user, and not by Cloud Deploy. See - * https://google.aip.dev/128#annotations for more details such as format and - * size limitations. - * - * Generated from protobuf field map annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * Optional. User annotations. These attributes can only be set and used by - * the user, and not by Cloud Deploy. See - * https://google.aip.dev/128#annotations for more details such as format and - * size limitations. - * - * Generated from protobuf field map annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAnnotations($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->annotations = $arr; - - return $this; - } - - /** - * Optional. Labels are attributes that can be set and used by both the - * user and by Cloud Deploy. Labels must meet the following constraints: - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. - * * All characters must use UTF-8 encoding, and international characters are - * allowed. - * * Keys must start with a lowercase letter or international character. - * * Each resource is limited to a maximum of 64 labels. - * Both keys and values are additionally constrained to be <= 128 bytes. - * - * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. Labels are attributes that can be set and used by both the - * user and by Cloud Deploy. Labels must meet the following constraints: - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. - * * All characters must use UTF-8 encoding, and international characters are - * allowed. - * * Keys must start with a lowercase letter or international character. - * * Each resource is limited to a maximum of 64 labels. - * Both keys and values are additionally constrained to be <= 128 bytes. - * - * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Output only. Time at which the `CustomTargetType` was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time at which the `CustomTargetType` was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. Most recent time at which the `CustomTargetType` was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. Most recent time at which the `CustomTargetType` was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Configures render and deploy for the `CustomTargetType` using Skaffold - * custom actions. - * - * Generated from protobuf field .google.cloud.deploy.v1.CustomTargetSkaffoldActions custom_actions = 10; - * @return \Google\Cloud\Deploy\V1\CustomTargetSkaffoldActions|null - */ - public function getCustomActions() - { - return $this->readOneof(10); - } - - public function hasCustomActions() - { - return $this->hasOneof(10); - } - - /** - * Configures render and deploy for the `CustomTargetType` using Skaffold - * custom actions. - * - * Generated from protobuf field .google.cloud.deploy.v1.CustomTargetSkaffoldActions custom_actions = 10; - * @param \Google\Cloud\Deploy\V1\CustomTargetSkaffoldActions $var - * @return $this - */ - public function setCustomActions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CustomTargetSkaffoldActions::class); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * @return string - */ - public function getDefinition() - { - return $this->whichOneof("definition"); - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetTypeNotificationEvent.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetTypeNotificationEvent.php deleted file mode 100644 index a4653f510059..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/CustomTargetTypeNotificationEvent.php +++ /dev/null @@ -1,171 +0,0 @@ -google.cloud.deploy.v1.CustomTargetTypeNotificationEvent - */ -class CustomTargetTypeNotificationEvent extends \Google\Protobuf\Internal\Message -{ - /** - * Debug message for when a notification fails to send. - * - * Generated from protobuf field string message = 1; - */ - protected $message = ''; - /** - * Unique identifier of the `CustomTargetType`. - * - * Generated from protobuf field string custom_target_type_uid = 4; - */ - protected $custom_target_type_uid = ''; - /** - * The name of the `CustomTargetType`. - * - * Generated from protobuf field string custom_target_type = 2; - */ - protected $custom_target_type = ''; - /** - * Type of this notification, e.g. for a Pub/Sub failure. - * - * Generated from protobuf field .google.cloud.deploy.v1.Type type = 3; - */ - protected $type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $message - * Debug message for when a notification fails to send. - * @type string $custom_target_type_uid - * Unique identifier of the `CustomTargetType`. - * @type string $custom_target_type - * The name of the `CustomTargetType`. - * @type int $type - * Type of this notification, e.g. for a Pub/Sub failure. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CustomtargettypeNotificationPayload::initOnce(); - parent::__construct($data); - } - - /** - * Debug message for when a notification fails to send. - * - * Generated from protobuf field string message = 1; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Debug message for when a notification fails to send. - * - * Generated from protobuf field string message = 1; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * Unique identifier of the `CustomTargetType`. - * - * Generated from protobuf field string custom_target_type_uid = 4; - * @return string - */ - public function getCustomTargetTypeUid() - { - return $this->custom_target_type_uid; - } - - /** - * Unique identifier of the `CustomTargetType`. - * - * Generated from protobuf field string custom_target_type_uid = 4; - * @param string $var - * @return $this - */ - public function setCustomTargetTypeUid($var) - { - GPBUtil::checkString($var, True); - $this->custom_target_type_uid = $var; - - return $this; - } - - /** - * The name of the `CustomTargetType`. - * - * Generated from protobuf field string custom_target_type = 2; - * @return string - */ - public function getCustomTargetType() - { - return $this->custom_target_type; - } - - /** - * The name of the `CustomTargetType`. - * - * Generated from protobuf field string custom_target_type = 2; - * @param string $var - * @return $this - */ - public function setCustomTargetType($var) - { - GPBUtil::checkString($var, True); - $this->custom_target_type = $var; - - return $this; - } - - /** - * Type of this notification, e.g. for a Pub/Sub failure. - * - * Generated from protobuf field .google.cloud.deploy.v1.Type type = 3; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Type of this notification, e.g. for a Pub/Sub failure. - * - * Generated from protobuf field .google.cloud.deploy.v1.Type type = 3; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Type::class); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DefaultPool.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DefaultPool.php deleted file mode 100644 index 8e6bc4524fa3..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DefaultPool.php +++ /dev/null @@ -1,121 +0,0 @@ -google.cloud.deploy.v1.DefaultPool - */ -class DefaultPool extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Google service account to use for execution. If unspecified, - * the project execution service account - * (-compute@developer.gserviceaccount.com) will be used. - * - * Generated from protobuf field string service_account = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $service_account = ''; - /** - * Optional. Cloud Storage location where execution outputs should be stored. - * This can either be a bucket ("gs://my-bucket") or a path within a bucket - * ("gs://my-bucket/my-dir"). - * If unspecified, a default bucket located in the same region will be used. - * - * Generated from protobuf field string artifact_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $artifact_storage = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $service_account - * Optional. Google service account to use for execution. If unspecified, - * the project execution service account - * (-compute@developer.gserviceaccount.com) will be used. - * @type string $artifact_storage - * Optional. Cloud Storage location where execution outputs should be stored. - * This can either be a bucket ("gs://my-bucket") or a path within a bucket - * ("gs://my-bucket/my-dir"). - * If unspecified, a default bucket located in the same region will be used. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Google service account to use for execution. If unspecified, - * the project execution service account - * (-compute@developer.gserviceaccount.com) will be used. - * - * Generated from protobuf field string service_account = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getServiceAccount() - { - return $this->service_account; - } - - /** - * Optional. Google service account to use for execution. If unspecified, - * the project execution service account - * (-compute@developer.gserviceaccount.com) will be used. - * - * Generated from protobuf field string service_account = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setServiceAccount($var) - { - GPBUtil::checkString($var, True); - $this->service_account = $var; - - return $this; - } - - /** - * Optional. Cloud Storage location where execution outputs should be stored. - * This can either be a bucket ("gs://my-bucket") or a path within a bucket - * ("gs://my-bucket/my-dir"). - * If unspecified, a default bucket located in the same region will be used. - * - * Generated from protobuf field string artifact_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getArtifactStorage() - { - return $this->artifact_storage; - } - - /** - * Optional. Cloud Storage location where execution outputs should be stored. - * This can either be a bucket ("gs://my-bucket") or a path within a bucket - * ("gs://my-bucket/my-dir"). - * If unspecified, a default bucket located in the same region will be used. - * - * Generated from protobuf field string artifact_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setArtifactStorage($var) - { - GPBUtil::checkString($var, True); - $this->artifact_storage = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteAutomationRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteAutomationRequest.php deleted file mode 100644 index ee28d5549e58..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteAutomationRequest.php +++ /dev/null @@ -1,282 +0,0 @@ -google.cloud.deploy.v1.DeleteAutomationRequest - */ -class DeleteAutomationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the `Automation` to delete. The format is - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. If set to true, then deleting an already deleted or non-existing - * `Automation` will succeed. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $allow_missing = false; - /** - * Optional. If set, validate the request and verify whether the resource - * exists, but do not actually post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - /** - * Optional. The weak etag of the request. - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - - /** - * @param string $name Required. The name of the `Automation` to delete. The format is - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`. Please see - * {@see CloudDeployClient::automationName()} for help formatting this field. - * - * @return \Google\Cloud\Deploy\V1\DeleteAutomationRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the `Automation` to delete. The format is - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`. - * @type string $request_id - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type bool $allow_missing - * Optional. If set to true, then deleting an already deleted or non-existing - * `Automation` will succeed. - * @type bool $validate_only - * Optional. If set, validate the request and verify whether the resource - * exists, but do not actually post it. - * @type string $etag - * Optional. The weak etag of the request. - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the `Automation` to delete. The format is - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the `Automation` to delete. The format is - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. If set to true, then deleting an already deleted or non-existing - * `Automation` will succeed. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * Optional. If set to true, then deleting an already deleted or non-existing - * `Automation` will succeed. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - - /** - * Optional. If set, validate the request and verify whether the resource - * exists, but do not actually post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, validate the request and verify whether the resource - * exists, but do not actually post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - - /** - * Optional. The weak etag of the request. - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. The weak etag of the request. - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteCustomTargetTypeRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteCustomTargetTypeRequest.php deleted file mode 100644 index 47939212ecd7..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteCustomTargetTypeRequest.php +++ /dev/null @@ -1,278 +0,0 @@ -google.cloud.deploy.v1.DeleteCustomTargetTypeRequest - */ -class DeleteCustomTargetTypeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the `CustomTargetType` to delete. Format must be - * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. If set to true, then deleting an already deleted or non-existing - * `CustomTargetType` will succeed. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $allow_missing = false; - /** - * Optional. If set to true, the request is validated but no actual change is - * made. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - /** - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - - /** - * @param string $name Required. The name of the `CustomTargetType` to delete. Format must be - * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`. Please see - * {@see CloudDeployClient::customTargetTypeName()} for help formatting this field. - * - * @return \Google\Cloud\Deploy\V1\DeleteCustomTargetTypeRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the `CustomTargetType` to delete. Format must be - * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`. - * @type string $request_id - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type bool $allow_missing - * Optional. If set to true, then deleting an already deleted or non-existing - * `CustomTargetType` will succeed. - * @type bool $validate_only - * Optional. If set to true, the request is validated but no actual change is - * made. - * @type string $etag - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the `CustomTargetType` to delete. Format must be - * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the `CustomTargetType` to delete. Format must be - * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. If set to true, then deleting an already deleted or non-existing - * `CustomTargetType` will succeed. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * Optional. If set to true, then deleting an already deleted or non-existing - * `CustomTargetType` will succeed. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - - /** - * Optional. If set to true, the request is validated but no actual change is - * made. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set to true, the request is validated but no actual change is - * made. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - - /** - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteDeliveryPipelineRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteDeliveryPipelineRequest.php deleted file mode 100644 index 7de0022bbbc3..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteDeliveryPipelineRequest.php +++ /dev/null @@ -1,320 +0,0 @@ -google.cloud.deploy.v1.DeleteDeliveryPipelineRequest - */ -class DeleteDeliveryPipelineRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the `DeliveryPipeline` to delete. The format is - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. If set to true, then deleting an already deleted or non-existing - * `DeliveryPipeline` will succeed. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $allow_missing = false; - /** - * Optional. If set, validate the request and preview the review, but do not - * actually post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - /** - * Optional. If set to true, all child resources under this pipeline will also - * be deleted. Otherwise, the request will only work if the pipeline has no - * child resources. - * - * Generated from protobuf field bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $force = false; - /** - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - - /** - * @param string $name Required. The name of the `DeliveryPipeline` to delete. The format is - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. Please see - * {@see CloudDeployClient::deliveryPipelineName()} for help formatting this field. - * - * @return \Google\Cloud\Deploy\V1\DeleteDeliveryPipelineRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the `DeliveryPipeline` to delete. The format is - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. - * @type string $request_id - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type bool $allow_missing - * Optional. If set to true, then deleting an already deleted or non-existing - * `DeliveryPipeline` will succeed. - * @type bool $validate_only - * Optional. If set, validate the request and preview the review, but do not - * actually post it. - * @type bool $force - * Optional. If set to true, all child resources under this pipeline will also - * be deleted. Otherwise, the request will only work if the pipeline has no - * child resources. - * @type string $etag - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the `DeliveryPipeline` to delete. The format is - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the `DeliveryPipeline` to delete. The format is - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. If set to true, then deleting an already deleted or non-existing - * `DeliveryPipeline` will succeed. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * Optional. If set to true, then deleting an already deleted or non-existing - * `DeliveryPipeline` will succeed. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * actually post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * actually post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - - /** - * Optional. If set to true, all child resources under this pipeline will also - * be deleted. Otherwise, the request will only work if the pipeline has no - * child resources. - * - * Generated from protobuf field bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getForce() - { - return $this->force; - } - - /** - * Optional. If set to true, all child resources under this pipeline will also - * be deleted. Otherwise, the request will only work if the pipeline has no - * child resources. - * - * Generated from protobuf field bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setForce($var) - { - GPBUtil::checkBool($var); - $this->force = $var; - - return $this; - } - - /** - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteDeployPolicyRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteDeployPolicyRequest.php deleted file mode 100644 index e77cc81e7544..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteDeployPolicyRequest.php +++ /dev/null @@ -1,278 +0,0 @@ -google.cloud.deploy.v1.DeleteDeployPolicyRequest - */ -class DeleteDeployPolicyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the `DeployPolicy` to delete. The format is - * `projects/{project_id}/locations/{location_name}/deployPolicies/{deploy_policy_name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. If set to true, then deleting an already deleted or non-existing - * `DeployPolicy` will succeed. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $allow_missing = false; - /** - * Optional. If set, validate the request and preview the review, but do not - * actually post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - /** - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - - /** - * @param string $name Required. The name of the `DeployPolicy` to delete. The format is - * `projects/{project_id}/locations/{location_name}/deployPolicies/{deploy_policy_name}`. Please see - * {@see CloudDeployClient::deployPolicyName()} for help formatting this field. - * - * @return \Google\Cloud\Deploy\V1\DeleteDeployPolicyRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the `DeployPolicy` to delete. The format is - * `projects/{project_id}/locations/{location_name}/deployPolicies/{deploy_policy_name}`. - * @type string $request_id - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type bool $allow_missing - * Optional. If set to true, then deleting an already deleted or non-existing - * `DeployPolicy` will succeed. - * @type bool $validate_only - * Optional. If set, validate the request and preview the review, but do not - * actually post it. - * @type string $etag - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the `DeployPolicy` to delete. The format is - * `projects/{project_id}/locations/{location_name}/deployPolicies/{deploy_policy_name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the `DeployPolicy` to delete. The format is - * `projects/{project_id}/locations/{location_name}/deployPolicies/{deploy_policy_name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. If set to true, then deleting an already deleted or non-existing - * `DeployPolicy` will succeed. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * Optional. If set to true, then deleting an already deleted or non-existing - * `DeployPolicy` will succeed. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * actually post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * actually post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - - /** - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteTargetRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteTargetRequest.php deleted file mode 100644 index fd4363c8cdb6..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeleteTargetRequest.php +++ /dev/null @@ -1,278 +0,0 @@ -google.cloud.deploy.v1.DeleteTargetRequest - */ -class DeleteTargetRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the `Target` to delete. The format is - * `projects/{project_id}/locations/{location_name}/targets/{target_name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. If set to true, then deleting an already deleted or non-existing - * `Target` will succeed. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $allow_missing = false; - /** - * Optional. If set, validate the request and preview the review, but do not - * actually post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - /** - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - - /** - * @param string $name Required. The name of the `Target` to delete. The format is - * `projects/{project_id}/locations/{location_name}/targets/{target_name}`. Please see - * {@see CloudDeployClient::targetName()} for help formatting this field. - * - * @return \Google\Cloud\Deploy\V1\DeleteTargetRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the `Target` to delete. The format is - * `projects/{project_id}/locations/{location_name}/targets/{target_name}`. - * @type string $request_id - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type bool $allow_missing - * Optional. If set to true, then deleting an already deleted or non-existing - * `Target` will succeed. - * @type bool $validate_only - * Optional. If set, validate the request and preview the review, but do not - * actually post it. - * @type string $etag - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the `Target` to delete. The format is - * `projects/{project_id}/locations/{location_name}/targets/{target_name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the `Target` to delete. The format is - * `projects/{project_id}/locations/{location_name}/targets/{target_name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. If set to true, then deleting an already deleted or non-existing - * `Target` will succeed. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * Optional. If set to true, then deleting an already deleted or non-existing - * `Target` will succeed. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * actually post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * actually post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - - /** - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeliveryPipeline.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeliveryPipeline.php deleted file mode 100644 index 46ae0b0ad9a8..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeliveryPipeline.php +++ /dev/null @@ -1,510 +0,0 @@ -google.cloud.deploy.v1.DeliveryPipeline - */ -class DeliveryPipeline extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Name of the `DeliveryPipeline`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}`. - * The `deliveryPipeline` component must match - * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $name = ''; - /** - * Output only. Unique identifier of the `DeliveryPipeline`. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Description of the `DeliveryPipeline`. Max length is 255 characters. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * User annotations. These attributes can only be set and used by the - * user, and not by Cloud Deploy. - * - * Generated from protobuf field map annotations = 4; - */ - private $annotations; - /** - * Labels are attributes that can be set and used by both the - * user and by Cloud Deploy. Labels must meet the following constraints: - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. - * * All characters must use UTF-8 encoding, and international characters are - * allowed. - * * Keys must start with a lowercase letter or international character. - * * Each resource is limited to a maximum of 64 labels. - * Both keys and values are additionally constrained to be <= 128 bytes. - * - * Generated from protobuf field map labels = 5; - */ - private $labels; - /** - * Output only. Time at which the pipeline was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Most recent time at which the pipeline was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. Information around the state of the Delivery Pipeline. - * - * Generated from protobuf field .google.cloud.deploy.v1.PipelineCondition condition = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $condition = null; - /** - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 10; - */ - protected $etag = ''; - /** - * When suspended, no new releases or rollouts can be created, - * but in-progress ones will complete. - * - * Generated from protobuf field bool suspended = 12; - */ - protected $suspended = false; - protected $pipeline; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Optional. Name of the `DeliveryPipeline`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}`. - * The `deliveryPipeline` component must match - * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` - * @type string $uid - * Output only. Unique identifier of the `DeliveryPipeline`. - * @type string $description - * Description of the `DeliveryPipeline`. Max length is 255 characters. - * @type array|\Google\Protobuf\Internal\MapField $annotations - * User annotations. These attributes can only be set and used by the - * user, and not by Cloud Deploy. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Labels are attributes that can be set and used by both the - * user and by Cloud Deploy. Labels must meet the following constraints: - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. - * * All characters must use UTF-8 encoding, and international characters are - * allowed. - * * Keys must start with a lowercase letter or international character. - * * Each resource is limited to a maximum of 64 labels. - * Both keys and values are additionally constrained to be <= 128 bytes. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time at which the pipeline was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Most recent time at which the pipeline was updated. - * @type \Google\Cloud\Deploy\V1\SerialPipeline $serial_pipeline - * SerialPipeline defines a sequential set of stages for a - * `DeliveryPipeline`. - * @type \Google\Cloud\Deploy\V1\PipelineCondition $condition - * Output only. Information around the state of the Delivery Pipeline. - * @type string $etag - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * @type bool $suspended - * When suspended, no new releases or rollouts can be created, - * but in-progress ones will complete. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Name of the `DeliveryPipeline`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}`. - * The `deliveryPipeline` component must match - * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Optional. Name of the `DeliveryPipeline`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}`. - * The `deliveryPipeline` component must match - * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. Unique identifier of the `DeliveryPipeline`. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. Unique identifier of the `DeliveryPipeline`. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Description of the `DeliveryPipeline`. Max length is 255 characters. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Description of the `DeliveryPipeline`. Max length is 255 characters. - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * User annotations. These attributes can only be set and used by the - * user, and not by Cloud Deploy. - * - * Generated from protobuf field map annotations = 4; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * User annotations. These attributes can only be set and used by the - * user, and not by Cloud Deploy. - * - * Generated from protobuf field map annotations = 4; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAnnotations($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->annotations = $arr; - - return $this; - } - - /** - * Labels are attributes that can be set and used by both the - * user and by Cloud Deploy. Labels must meet the following constraints: - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. - * * All characters must use UTF-8 encoding, and international characters are - * allowed. - * * Keys must start with a lowercase letter or international character. - * * Each resource is limited to a maximum of 64 labels. - * Both keys and values are additionally constrained to be <= 128 bytes. - * - * Generated from protobuf field map labels = 5; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Labels are attributes that can be set and used by both the - * user and by Cloud Deploy. Labels must meet the following constraints: - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. - * * All characters must use UTF-8 encoding, and international characters are - * allowed. - * * Keys must start with a lowercase letter or international character. - * * Each resource is limited to a maximum of 64 labels. - * Both keys and values are additionally constrained to be <= 128 bytes. - * - * Generated from protobuf field map labels = 5; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Output only. Time at which the pipeline was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time at which the pipeline was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. Most recent time at which the pipeline was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. Most recent time at which the pipeline was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * SerialPipeline defines a sequential set of stages for a - * `DeliveryPipeline`. - * - * Generated from protobuf field .google.cloud.deploy.v1.SerialPipeline serial_pipeline = 8; - * @return \Google\Cloud\Deploy\V1\SerialPipeline|null - */ - public function getSerialPipeline() - { - return $this->readOneof(8); - } - - public function hasSerialPipeline() - { - return $this->hasOneof(8); - } - - /** - * SerialPipeline defines a sequential set of stages for a - * `DeliveryPipeline`. - * - * Generated from protobuf field .google.cloud.deploy.v1.SerialPipeline serial_pipeline = 8; - * @param \Google\Cloud\Deploy\V1\SerialPipeline $var - * @return $this - */ - public function setSerialPipeline($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\SerialPipeline::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Output only. Information around the state of the Delivery Pipeline. - * - * Generated from protobuf field .google.cloud.deploy.v1.PipelineCondition condition = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\PipelineCondition|null - */ - public function getCondition() - { - return $this->condition; - } - - public function hasCondition() - { - return isset($this->condition); - } - - public function clearCondition() - { - unset($this->condition); - } - - /** - * Output only. Information around the state of the Delivery Pipeline. - * - * Generated from protobuf field .google.cloud.deploy.v1.PipelineCondition condition = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\PipelineCondition $var - * @return $this - */ - public function setCondition($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\PipelineCondition::class); - $this->condition = $var; - - return $this; - } - - /** - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 10; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 10; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * When suspended, no new releases or rollouts can be created, - * but in-progress ones will complete. - * - * Generated from protobuf field bool suspended = 12; - * @return bool - */ - public function getSuspended() - { - return $this->suspended; - } - - /** - * When suspended, no new releases or rollouts can be created, - * but in-progress ones will complete. - * - * Generated from protobuf field bool suspended = 12; - * @param bool $var - * @return $this - */ - public function setSuspended($var) - { - GPBUtil::checkBool($var); - $this->suspended = $var; - - return $this; - } - - /** - * @return string - */ - public function getPipeline() - { - return $this->whichOneof("pipeline"); - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeliveryPipelineAttribute.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeliveryPipelineAttribute.php deleted file mode 100644 index ef1ee797ee72..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeliveryPipelineAttribute.php +++ /dev/null @@ -1,113 +0,0 @@ -google.cloud.deploy.v1.DeliveryPipelineAttribute - */ -class DeliveryPipelineAttribute extends \Google\Protobuf\Internal\Message -{ - /** - * ID of the `DeliveryPipeline`. The value of this field could be one of the - * following: - * * The last segment of a pipeline name - * * "*", all delivery pipelines in a location - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * DeliveryPipeline labels. - * - * Generated from protobuf field map labels = 2; - */ - private $labels; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * ID of the `DeliveryPipeline`. The value of this field could be one of the - * following: - * * The last segment of a pipeline name - * * "*", all delivery pipelines in a location - * @type array|\Google\Protobuf\Internal\MapField $labels - * DeliveryPipeline labels. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * ID of the `DeliveryPipeline`. The value of this field could be one of the - * following: - * * The last segment of a pipeline name - * * "*", all delivery pipelines in a location - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * ID of the `DeliveryPipeline`. The value of this field could be one of the - * following: - * * The last segment of a pipeline name - * * "*", all delivery pipelines in a location - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * DeliveryPipeline labels. - * - * Generated from protobuf field map labels = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * DeliveryPipeline labels. - * - * Generated from protobuf field map labels = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeliveryPipelineNotificationEvent.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeliveryPipelineNotificationEvent.php deleted file mode 100644 index 835a16910e9e..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeliveryPipelineNotificationEvent.php +++ /dev/null @@ -1,171 +0,0 @@ -google.cloud.deploy.v1.DeliveryPipelineNotificationEvent - */ -class DeliveryPipelineNotificationEvent extends \Google\Protobuf\Internal\Message -{ - /** - * Debug message for when a notification fails to send. - * - * Generated from protobuf field string message = 1; - */ - protected $message = ''; - /** - * Unique identifier of the `DeliveryPipeline`. - * - * Generated from protobuf field string pipeline_uid = 4; - */ - protected $pipeline_uid = ''; - /** - * The name of the `Delivery Pipeline`. - * - * Generated from protobuf field string delivery_pipeline = 2; - */ - protected $delivery_pipeline = ''; - /** - * Type of this notification, e.g. for a Pub/Sub failure. - * - * Generated from protobuf field .google.cloud.deploy.v1.Type type = 3; - */ - protected $type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $message - * Debug message for when a notification fails to send. - * @type string $pipeline_uid - * Unique identifier of the `DeliveryPipeline`. - * @type string $delivery_pipeline - * The name of the `Delivery Pipeline`. - * @type int $type - * Type of this notification, e.g. for a Pub/Sub failure. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\DeliverypipelineNotificationPayload::initOnce(); - parent::__construct($data); - } - - /** - * Debug message for when a notification fails to send. - * - * Generated from protobuf field string message = 1; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Debug message for when a notification fails to send. - * - * Generated from protobuf field string message = 1; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * Unique identifier of the `DeliveryPipeline`. - * - * Generated from protobuf field string pipeline_uid = 4; - * @return string - */ - public function getPipelineUid() - { - return $this->pipeline_uid; - } - - /** - * Unique identifier of the `DeliveryPipeline`. - * - * Generated from protobuf field string pipeline_uid = 4; - * @param string $var - * @return $this - */ - public function setPipelineUid($var) - { - GPBUtil::checkString($var, True); - $this->pipeline_uid = $var; - - return $this; - } - - /** - * The name of the `Delivery Pipeline`. - * - * Generated from protobuf field string delivery_pipeline = 2; - * @return string - */ - public function getDeliveryPipeline() - { - return $this->delivery_pipeline; - } - - /** - * The name of the `Delivery Pipeline`. - * - * Generated from protobuf field string delivery_pipeline = 2; - * @param string $var - * @return $this - */ - public function setDeliveryPipeline($var) - { - GPBUtil::checkString($var, True); - $this->delivery_pipeline = $var; - - return $this; - } - - /** - * Type of this notification, e.g. for a Pub/Sub failure. - * - * Generated from protobuf field .google.cloud.deploy.v1.Type type = 3; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Type of this notification, e.g. for a Pub/Sub failure. - * - * Generated from protobuf field .google.cloud.deploy.v1.Type type = 3; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Type::class); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployArtifact.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployArtifact.php deleted file mode 100644 index f7b78f40dd51..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployArtifact.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.deploy.v1.DeployArtifact - */ -class DeployArtifact extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. URI of a directory containing the artifacts. All paths are - * relative to this location. - * - * Generated from protobuf field string artifact_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $artifact_uri = ''; - /** - * Output only. File paths of the manifests applied during the deploy - * operation relative to the URI. - * - * Generated from protobuf field repeated string manifest_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $manifest_paths; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $artifact_uri - * Output only. URI of a directory containing the artifacts. All paths are - * relative to this location. - * @type array|\Google\Protobuf\Internal\RepeatedField $manifest_paths - * Output only. File paths of the manifests applied during the deploy - * operation relative to the URI. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Output only. URI of a directory containing the artifacts. All paths are - * relative to this location. - * - * Generated from protobuf field string artifact_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getArtifactUri() - { - return $this->artifact_uri; - } - - /** - * Output only. URI of a directory containing the artifacts. All paths are - * relative to this location. - * - * Generated from protobuf field string artifact_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setArtifactUri($var) - { - GPBUtil::checkString($var, True); - $this->artifact_uri = $var; - - return $this; - } - - /** - * Output only. File paths of the manifests applied during the deploy - * operation relative to the URI. - * - * Generated from protobuf field repeated string manifest_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getManifestPaths() - { - return $this->manifest_paths; - } - - /** - * Output only. File paths of the manifests applied during the deploy - * operation relative to the URI. - * - * Generated from protobuf field repeated string manifest_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setManifestPaths($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->manifest_paths = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJob.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJob.php deleted file mode 100644 index 10225c0936ea..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJob.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.deploy.v1.DeployJob - */ -class DeployJob extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJobRun.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJobRun.php deleted file mode 100644 index 87d81854fcbb..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJobRun.php +++ /dev/null @@ -1,235 +0,0 @@ -google.cloud.deploy.v1.DeployJobRun - */ -class DeployJobRun extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The resource name of the Cloud Build `Build` object that is - * used to deploy. Format is - * `projects/{project}/locations/{location}/builds/{build}`. - * - * Generated from protobuf field string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $build = ''; - /** - * Output only. The reason the deploy failed. This will always be unspecified - * while the deploy is in progress or if it succeeded. - * - * Generated from protobuf field .google.cloud.deploy.v1.DeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $failure_cause = 0; - /** - * Output only. Additional information about the deploy failure, if available. - * - * Generated from protobuf field string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $failure_message = ''; - /** - * Output only. Metadata containing information about the deploy job run. - * - * Generated from protobuf field .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $metadata = null; - /** - * Output only. The artifact of a deploy job run, if available. - * - * Generated from protobuf field .google.cloud.deploy.v1.DeployArtifact artifact = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $artifact = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $build - * Output only. The resource name of the Cloud Build `Build` object that is - * used to deploy. Format is - * `projects/{project}/locations/{location}/builds/{build}`. - * @type int $failure_cause - * Output only. The reason the deploy failed. This will always be unspecified - * while the deploy is in progress or if it succeeded. - * @type string $failure_message - * Output only. Additional information about the deploy failure, if available. - * @type \Google\Cloud\Deploy\V1\DeployJobRunMetadata $metadata - * Output only. Metadata containing information about the deploy job run. - * @type \Google\Cloud\Deploy\V1\DeployArtifact $artifact - * Output only. The artifact of a deploy job run, if available. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The resource name of the Cloud Build `Build` object that is - * used to deploy. Format is - * `projects/{project}/locations/{location}/builds/{build}`. - * - * Generated from protobuf field string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getBuild() - { - return $this->build; - } - - /** - * Output only. The resource name of the Cloud Build `Build` object that is - * used to deploy. Format is - * `projects/{project}/locations/{location}/builds/{build}`. - * - * Generated from protobuf field string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setBuild($var) - { - GPBUtil::checkString($var, True); - $this->build = $var; - - return $this; - } - - /** - * Output only. The reason the deploy failed. This will always be unspecified - * while the deploy is in progress or if it succeeded. - * - * Generated from protobuf field .google.cloud.deploy.v1.DeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getFailureCause() - { - return $this->failure_cause; - } - - /** - * Output only. The reason the deploy failed. This will always be unspecified - * while the deploy is in progress or if it succeeded. - * - * Generated from protobuf field .google.cloud.deploy.v1.DeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setFailureCause($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\DeployJobRun\FailureCause::class); - $this->failure_cause = $var; - - return $this; - } - - /** - * Output only. Additional information about the deploy failure, if available. - * - * Generated from protobuf field string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getFailureMessage() - { - return $this->failure_message; - } - - /** - * Output only. Additional information about the deploy failure, if available. - * - * Generated from protobuf field string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setFailureMessage($var) - { - GPBUtil::checkString($var, True); - $this->failure_message = $var; - - return $this; - } - - /** - * Output only. Metadata containing information about the deploy job run. - * - * Generated from protobuf field .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\DeployJobRunMetadata|null - */ - public function getMetadata() - { - return $this->metadata; - } - - public function hasMetadata() - { - return isset($this->metadata); - } - - public function clearMetadata() - { - unset($this->metadata); - } - - /** - * Output only. Metadata containing information about the deploy job run. - * - * Generated from protobuf field .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\DeployJobRunMetadata $var - * @return $this - */ - public function setMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\DeployJobRunMetadata::class); - $this->metadata = $var; - - return $this; - } - - /** - * Output only. The artifact of a deploy job run, if available. - * - * Generated from protobuf field .google.cloud.deploy.v1.DeployArtifact artifact = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\DeployArtifact|null - */ - public function getArtifact() - { - return $this->artifact; - } - - public function hasArtifact() - { - return isset($this->artifact); - } - - public function clearArtifact() - { - unset($this->artifact); - } - - /** - * Output only. The artifact of a deploy job run, if available. - * - * Generated from protobuf field .google.cloud.deploy.v1.DeployArtifact artifact = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\DeployArtifact $var - * @return $this - */ - public function setArtifact($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\DeployArtifact::class); - $this->artifact = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJobRun/FailureCause.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJobRun/FailureCause.php deleted file mode 100644 index fa77a22b0e5a..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJobRun/FailureCause.php +++ /dev/null @@ -1,97 +0,0 @@ -google.cloud.deploy.v1.DeployJobRun.FailureCause - */ -class FailureCause -{ - /** - * No reason for failure is specified. - * - * Generated from protobuf enum FAILURE_CAUSE_UNSPECIFIED = 0; - */ - const FAILURE_CAUSE_UNSPECIFIED = 0; - /** - * Cloud Build is not available, either because it is not enabled or because - * Cloud Deploy has insufficient permissions. See [Required - * permission](https://cloud.google.com/deploy/docs/cloud-deploy-service-account#required_permissions). - * - * Generated from protobuf enum CLOUD_BUILD_UNAVAILABLE = 1; - */ - const CLOUD_BUILD_UNAVAILABLE = 1; - /** - * The deploy operation did not complete successfully; check Cloud Build - * logs. - * - * Generated from protobuf enum EXECUTION_FAILED = 2; - */ - const EXECUTION_FAILED = 2; - /** - * The deploy job run did not complete within the alloted time. - * - * Generated from protobuf enum DEADLINE_EXCEEDED = 3; - */ - const DEADLINE_EXCEEDED = 3; - /** - * There were missing resources in the runtime environment required for a - * canary deployment. Check the Cloud Build logs for more information. - * - * Generated from protobuf enum MISSING_RESOURCES_FOR_CANARY = 4; - */ - const MISSING_RESOURCES_FOR_CANARY = 4; - /** - * Cloud Build failed to fulfill Cloud Deploy's request. See failure_message - * for additional details. - * - * Generated from protobuf enum CLOUD_BUILD_REQUEST_FAILED = 5; - */ - const CLOUD_BUILD_REQUEST_FAILED = 5; - /** - * The deploy operation had a feature configured that is not supported. - * - * Generated from protobuf enum DEPLOY_FEATURE_NOT_SUPPORTED = 6; - */ - const DEPLOY_FEATURE_NOT_SUPPORTED = 6; - - private static $valueToName = [ - self::FAILURE_CAUSE_UNSPECIFIED => 'FAILURE_CAUSE_UNSPECIFIED', - self::CLOUD_BUILD_UNAVAILABLE => 'CLOUD_BUILD_UNAVAILABLE', - self::EXECUTION_FAILED => 'EXECUTION_FAILED', - self::DEADLINE_EXCEEDED => 'DEADLINE_EXCEEDED', - self::MISSING_RESOURCES_FOR_CANARY => 'MISSING_RESOURCES_FOR_CANARY', - self::CLOUD_BUILD_REQUEST_FAILED => 'CLOUD_BUILD_REQUEST_FAILED', - self::DEPLOY_FEATURE_NOT_SUPPORTED => 'DEPLOY_FEATURE_NOT_SUPPORTED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(FailureCause::class, \Google\Cloud\Deploy\V1\DeployJobRun_FailureCause::class); - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJobRunMetadata.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJobRunMetadata.php deleted file mode 100644 index b1a4c47c9cbd..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployJobRunMetadata.php +++ /dev/null @@ -1,170 +0,0 @@ -google.cloud.deploy.v1.DeployJobRunMetadata - */ -class DeployJobRunMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The name of the Cloud Run Service that is associated with a - * `DeployJobRun`. - * - * Generated from protobuf field .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $cloud_run = null; - /** - * Output only. Custom Target metadata associated with a `DeployJobRun`. - * - * Generated from protobuf field .google.cloud.deploy.v1.CustomTargetDeployMetadata custom_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $custom_target = null; - /** - * Output only. Custom metadata provided by user-defined deploy operation. - * - * Generated from protobuf field .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $custom = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Deploy\V1\CloudRunMetadata $cloud_run - * Output only. The name of the Cloud Run Service that is associated with a - * `DeployJobRun`. - * @type \Google\Cloud\Deploy\V1\CustomTargetDeployMetadata $custom_target - * Output only. Custom Target metadata associated with a `DeployJobRun`. - * @type \Google\Cloud\Deploy\V1\CustomMetadata $custom - * Output only. Custom metadata provided by user-defined deploy operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The name of the Cloud Run Service that is associated with a - * `DeployJobRun`. - * - * Generated from protobuf field .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\CloudRunMetadata|null - */ - public function getCloudRun() - { - return $this->cloud_run; - } - - public function hasCloudRun() - { - return isset($this->cloud_run); - } - - public function clearCloudRun() - { - unset($this->cloud_run); - } - - /** - * Output only. The name of the Cloud Run Service that is associated with a - * `DeployJobRun`. - * - * Generated from protobuf field .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\CloudRunMetadata $var - * @return $this - */ - public function setCloudRun($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CloudRunMetadata::class); - $this->cloud_run = $var; - - return $this; - } - - /** - * Output only. Custom Target metadata associated with a `DeployJobRun`. - * - * Generated from protobuf field .google.cloud.deploy.v1.CustomTargetDeployMetadata custom_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\CustomTargetDeployMetadata|null - */ - public function getCustomTarget() - { - return $this->custom_target; - } - - public function hasCustomTarget() - { - return isset($this->custom_target); - } - - public function clearCustomTarget() - { - unset($this->custom_target); - } - - /** - * Output only. Custom Target metadata associated with a `DeployJobRun`. - * - * Generated from protobuf field .google.cloud.deploy.v1.CustomTargetDeployMetadata custom_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\CustomTargetDeployMetadata $var - * @return $this - */ - public function setCustomTarget($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CustomTargetDeployMetadata::class); - $this->custom_target = $var; - - return $this; - } - - /** - * Output only. Custom metadata provided by user-defined deploy operation. - * - * Generated from protobuf field .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\CustomMetadata|null - */ - public function getCustom() - { - return $this->custom; - } - - public function hasCustom() - { - return isset($this->custom); - } - - public function clearCustom() - { - unset($this->custom); - } - - /** - * Output only. Custom metadata provided by user-defined deploy operation. - * - * Generated from protobuf field .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\CustomMetadata $var - * @return $this - */ - public function setCustom($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CustomMetadata::class); - $this->custom = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployParameters.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployParameters.php deleted file mode 100644 index 858f6f734f62..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployParameters.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.deploy.v1.DeployParameters - */ -class DeployParameters extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Values are deploy parameters in key-value pairs. - * - * Generated from protobuf field map values = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $values; - /** - * Optional. Deploy parameters are applied to targets with match labels. - * If unspecified, deploy parameters are applied to all targets (including - * child targets of a multi-target). - * - * Generated from protobuf field map match_target_labels = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $match_target_labels; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\MapField $values - * Required. Values are deploy parameters in key-value pairs. - * @type array|\Google\Protobuf\Internal\MapField $match_target_labels - * Optional. Deploy parameters are applied to targets with match labels. - * If unspecified, deploy parameters are applied to all targets (including - * child targets of a multi-target). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. Values are deploy parameters in key-value pairs. - * - * Generated from protobuf field map values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getValues() - { - return $this->values; - } - - /** - * Required. Values are deploy parameters in key-value pairs. - * - * Generated from protobuf field map values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->values = $arr; - - return $this; - } - - /** - * Optional. Deploy parameters are applied to targets with match labels. - * If unspecified, deploy parameters are applied to all targets (including - * child targets of a multi-target). - * - * Generated from protobuf field map match_target_labels = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getMatchTargetLabels() - { - return $this->match_target_labels; - } - - /** - * Optional. Deploy parameters are applied to targets with match labels. - * If unspecified, deploy parameters are applied to all targets (including - * child targets of a multi-target). - * - * Generated from protobuf field map match_target_labels = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setMatchTargetLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->match_target_labels = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicy.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicy.php deleted file mode 100644 index 0076a6bc9779..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicy.php +++ /dev/null @@ -1,553 +0,0 @@ -google.cloud.deploy.v1.DeployPolicy - */ -class DeployPolicy extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Name of the `DeployPolicy`. Format is - * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. - * The `deployPolicy` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Output only. Unique identifier of the `DeployPolicy`. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Description of the `DeployPolicy`. Max length is 255 characters. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * User annotations. These attributes can only be set and used by the - * user, and not by Cloud Deploy. Annotations must meet the following - * constraints: - * * Annotations are key/value pairs. - * * Valid annotation keys have two segments: an optional prefix and name, - * separated by a slash (`/`). - * * The name segment is required and must be 63 characters or less, - * beginning and ending with an alphanumeric character (`[a-z0-9A-Z]`) with - * dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between. - * * The prefix is optional. If specified, the prefix must be a DNS subdomain: - * a series of DNS labels separated by dots(`.`), not longer than 253 - * characters in total, followed by a slash (`/`). - * See - * https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set - * for more details. - * - * Generated from protobuf field map annotations = 4; - */ - private $annotations; - /** - * Labels are attributes that can be set and used by both the - * user and by Cloud Deploy. Labels must meet the following constraints: - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. - * * All characters must use UTF-8 encoding, and international characters are - * allowed. - * * Keys must start with a lowercase letter or international character. - * * Each resource is limited to a maximum of 64 labels. - * Both keys and values are additionally constrained to be <= 128 bytes. - * - * Generated from protobuf field map labels = 5; - */ - private $labels; - /** - * Output only. Time at which the deploy policy was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Most recent time at which the deploy policy was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * When suspended, the policy will not prevent actions from occurring, even - * if the action violates the policy. - * - * Generated from protobuf field bool suspended = 8; - */ - protected $suspended = false; - /** - * Required. Selected resources to which the policy will be applied. At least - * one selector is required. If one selector matches the resource the policy - * applies. For example, if there are two selectors and the action being - * attempted matches one of them, the policy will apply to that action. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.DeployPolicyResourceSelector selectors = 12 [(.google.api.field_behavior) = REQUIRED]; - */ - private $selectors; - /** - * Required. Rules to apply. At least one rule must be present. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.PolicyRule rules = 10 [(.google.api.field_behavior) = REQUIRED]; - */ - private $rules; - /** - * The weak etag of the `Automation` resource. - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 11; - */ - protected $etag = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Name of the `DeployPolicy`. Format is - * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. - * The `deployPolicy` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` - * @type string $uid - * Output only. Unique identifier of the `DeployPolicy`. - * @type string $description - * Description of the `DeployPolicy`. Max length is 255 characters. - * @type array|\Google\Protobuf\Internal\MapField $annotations - * User annotations. These attributes can only be set and used by the - * user, and not by Cloud Deploy. Annotations must meet the following - * constraints: - * * Annotations are key/value pairs. - * * Valid annotation keys have two segments: an optional prefix and name, - * separated by a slash (`/`). - * * The name segment is required and must be 63 characters or less, - * beginning and ending with an alphanumeric character (`[a-z0-9A-Z]`) with - * dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between. - * * The prefix is optional. If specified, the prefix must be a DNS subdomain: - * a series of DNS labels separated by dots(`.`), not longer than 253 - * characters in total, followed by a slash (`/`). - * See - * https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set - * for more details. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Labels are attributes that can be set and used by both the - * user and by Cloud Deploy. Labels must meet the following constraints: - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. - * * All characters must use UTF-8 encoding, and international characters are - * allowed. - * * Keys must start with a lowercase letter or international character. - * * Each resource is limited to a maximum of 64 labels. - * Both keys and values are additionally constrained to be <= 128 bytes. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time at which the deploy policy was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Most recent time at which the deploy policy was updated. - * @type bool $suspended - * When suspended, the policy will not prevent actions from occurring, even - * if the action violates the policy. - * @type array<\Google\Cloud\Deploy\V1\DeployPolicyResourceSelector>|\Google\Protobuf\Internal\RepeatedField $selectors - * Required. Selected resources to which the policy will be applied. At least - * one selector is required. If one selector matches the resource the policy - * applies. For example, if there are two selectors and the action being - * attempted matches one of them, the policy will apply to that action. - * @type array<\Google\Cloud\Deploy\V1\PolicyRule>|\Google\Protobuf\Internal\RepeatedField $rules - * Required. Rules to apply. At least one rule must be present. - * @type string $etag - * The weak etag of the `Automation` resource. - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Name of the `DeployPolicy`. Format is - * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. - * The `deployPolicy` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Name of the `DeployPolicy`. Format is - * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. - * The `deployPolicy` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. Unique identifier of the `DeployPolicy`. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. Unique identifier of the `DeployPolicy`. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Description of the `DeployPolicy`. Max length is 255 characters. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Description of the `DeployPolicy`. Max length is 255 characters. - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * User annotations. These attributes can only be set and used by the - * user, and not by Cloud Deploy. Annotations must meet the following - * constraints: - * * Annotations are key/value pairs. - * * Valid annotation keys have two segments: an optional prefix and name, - * separated by a slash (`/`). - * * The name segment is required and must be 63 characters or less, - * beginning and ending with an alphanumeric character (`[a-z0-9A-Z]`) with - * dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between. - * * The prefix is optional. If specified, the prefix must be a DNS subdomain: - * a series of DNS labels separated by dots(`.`), not longer than 253 - * characters in total, followed by a slash (`/`). - * See - * https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set - * for more details. - * - * Generated from protobuf field map annotations = 4; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * User annotations. These attributes can only be set and used by the - * user, and not by Cloud Deploy. Annotations must meet the following - * constraints: - * * Annotations are key/value pairs. - * * Valid annotation keys have two segments: an optional prefix and name, - * separated by a slash (`/`). - * * The name segment is required and must be 63 characters or less, - * beginning and ending with an alphanumeric character (`[a-z0-9A-Z]`) with - * dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between. - * * The prefix is optional. If specified, the prefix must be a DNS subdomain: - * a series of DNS labels separated by dots(`.`), not longer than 253 - * characters in total, followed by a slash (`/`). - * See - * https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set - * for more details. - * - * Generated from protobuf field map annotations = 4; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAnnotations($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->annotations = $arr; - - return $this; - } - - /** - * Labels are attributes that can be set and used by both the - * user and by Cloud Deploy. Labels must meet the following constraints: - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. - * * All characters must use UTF-8 encoding, and international characters are - * allowed. - * * Keys must start with a lowercase letter or international character. - * * Each resource is limited to a maximum of 64 labels. - * Both keys and values are additionally constrained to be <= 128 bytes. - * - * Generated from protobuf field map labels = 5; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Labels are attributes that can be set and used by both the - * user and by Cloud Deploy. Labels must meet the following constraints: - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. - * * All characters must use UTF-8 encoding, and international characters are - * allowed. - * * Keys must start with a lowercase letter or international character. - * * Each resource is limited to a maximum of 64 labels. - * Both keys and values are additionally constrained to be <= 128 bytes. - * - * Generated from protobuf field map labels = 5; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Output only. Time at which the deploy policy was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time at which the deploy policy was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. Most recent time at which the deploy policy was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. Most recent time at which the deploy policy was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * When suspended, the policy will not prevent actions from occurring, even - * if the action violates the policy. - * - * Generated from protobuf field bool suspended = 8; - * @return bool - */ - public function getSuspended() - { - return $this->suspended; - } - - /** - * When suspended, the policy will not prevent actions from occurring, even - * if the action violates the policy. - * - * Generated from protobuf field bool suspended = 8; - * @param bool $var - * @return $this - */ - public function setSuspended($var) - { - GPBUtil::checkBool($var); - $this->suspended = $var; - - return $this; - } - - /** - * Required. Selected resources to which the policy will be applied. At least - * one selector is required. If one selector matches the resource the policy - * applies. For example, if there are two selectors and the action being - * attempted matches one of them, the policy will apply to that action. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.DeployPolicyResourceSelector selectors = 12 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSelectors() - { - return $this->selectors; - } - - /** - * Required. Selected resources to which the policy will be applied. At least - * one selector is required. If one selector matches the resource the policy - * applies. For example, if there are two selectors and the action being - * attempted matches one of them, the policy will apply to that action. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.DeployPolicyResourceSelector selectors = 12 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Cloud\Deploy\V1\DeployPolicyResourceSelector>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSelectors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\DeployPolicyResourceSelector::class); - $this->selectors = $arr; - - return $this; - } - - /** - * Required. Rules to apply. At least one rule must be present. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.PolicyRule rules = 10 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRules() - { - return $this->rules; - } - - /** - * Required. Rules to apply. At least one rule must be present. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.PolicyRule rules = 10 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Cloud\Deploy\V1\PolicyRule>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\PolicyRule::class); - $this->rules = $arr; - - return $this; - } - - /** - * The weak etag of the `Automation` resource. - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 11; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * The weak etag of the `Automation` resource. - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 11; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicy/Invoker.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicy/Invoker.php deleted file mode 100644 index 2d9a877bcf26..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicy/Invoker.php +++ /dev/null @@ -1,66 +0,0 @@ -google.cloud.deploy.v1.DeployPolicy.Invoker - */ -class Invoker -{ - /** - * Unspecified. - * - * Generated from protobuf enum INVOKER_UNSPECIFIED = 0; - */ - const INVOKER_UNSPECIFIED = 0; - /** - * The action is user-driven. For example, creating a rollout manually via a - * gcloud create command. - * - * Generated from protobuf enum USER = 1; - */ - const USER = 1; - /** - * Automated action by Cloud Deploy. - * - * Generated from protobuf enum DEPLOY_AUTOMATION = 2; - */ - const DEPLOY_AUTOMATION = 2; - - private static $valueToName = [ - self::INVOKER_UNSPECIFIED => 'INVOKER_UNSPECIFIED', - self::USER => 'USER', - self::DEPLOY_AUTOMATION => 'DEPLOY_AUTOMATION', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Invoker::class, \Google\Cloud\Deploy\V1\DeployPolicy_Invoker::class); - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicyEvaluationEvent.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicyEvaluationEvent.php deleted file mode 100644 index e898cdbc27a8..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicyEvaluationEvent.php +++ /dev/null @@ -1,504 +0,0 @@ -google.cloud.deploy.v1.DeployPolicyEvaluationEvent - */ -class DeployPolicyEvaluationEvent extends \Google\Protobuf\Internal\Message -{ - /** - * Debug message for when a deploy policy event occurs. - * - * Generated from protobuf field string message = 1; - */ - protected $message = ''; - /** - * Rule type (e.g. Restrict Rollouts). - * - * Generated from protobuf field string rule_type = 2; - */ - protected $rule_type = ''; - /** - * Rule id. - * - * Generated from protobuf field string rule = 3; - */ - protected $rule = ''; - /** - * Unique identifier of the `Delivery Pipeline`. - * - * Generated from protobuf field string pipeline_uid = 4; - */ - protected $pipeline_uid = ''; - /** - * The name of the `Delivery Pipeline`. - * - * Generated from protobuf field string delivery_pipeline = 5; - */ - protected $delivery_pipeline = ''; - /** - * Unique identifier of the `Target`. This is an optional field, as a `Target` - * may not always be applicable to a policy. - * - * Generated from protobuf field string target_uid = 6; - */ - protected $target_uid = ''; - /** - * The name of the `Target`. This is an optional field, as a `Target` may not - * always be applicable to a policy. - * - * Generated from protobuf field string target = 7; - */ - protected $target = ''; - /** - * What invoked the action (e.g. a user or automation). - * - * Generated from protobuf field .google.cloud.deploy.v1.DeployPolicy.Invoker invoker = 8; - */ - protected $invoker = 0; - /** - * The name of the `DeployPolicy`. - * - * Generated from protobuf field string deploy_policy = 9; - */ - protected $deploy_policy = ''; - /** - * Unique identifier of the `DeployPolicy`. - * - * Generated from protobuf field string deploy_policy_uid = 10; - */ - protected $deploy_policy_uid = ''; - /** - * Whether the request is allowed. Allowed is set as true if: - * (1) the request complies with the policy; or - * (2) the request doesn't comply with the policy but the policy was - * overridden; or - * (3) the request doesn't comply with the policy but the policy was suspended - * - * Generated from protobuf field bool allowed = 11; - */ - protected $allowed = false; - /** - * The policy verdict of the request. - * - * Generated from protobuf field .google.cloud.deploy.v1.DeployPolicyEvaluationEvent.PolicyVerdict verdict = 12; - */ - protected $verdict = 0; - /** - * Things that could have overridden the policy verdict. Overrides together - * with verdict decide whether the request is allowed. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.DeployPolicyEvaluationEvent.PolicyVerdictOverride overrides = 13; - */ - private $overrides; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $message - * Debug message for when a deploy policy event occurs. - * @type string $rule_type - * Rule type (e.g. Restrict Rollouts). - * @type string $rule - * Rule id. - * @type string $pipeline_uid - * Unique identifier of the `Delivery Pipeline`. - * @type string $delivery_pipeline - * The name of the `Delivery Pipeline`. - * @type string $target_uid - * Unique identifier of the `Target`. This is an optional field, as a `Target` - * may not always be applicable to a policy. - * @type string $target - * The name of the `Target`. This is an optional field, as a `Target` may not - * always be applicable to a policy. - * @type int $invoker - * What invoked the action (e.g. a user or automation). - * @type string $deploy_policy - * The name of the `DeployPolicy`. - * @type string $deploy_policy_uid - * Unique identifier of the `DeployPolicy`. - * @type bool $allowed - * Whether the request is allowed. Allowed is set as true if: - * (1) the request complies with the policy; or - * (2) the request doesn't comply with the policy but the policy was - * overridden; or - * (3) the request doesn't comply with the policy but the policy was suspended - * @type int $verdict - * The policy verdict of the request. - * @type array|\Google\Protobuf\Internal\RepeatedField $overrides - * Things that could have overridden the policy verdict. Overrides together - * with verdict decide whether the request is allowed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\DeploypolicyEvaluationPayload::initOnce(); - parent::__construct($data); - } - - /** - * Debug message for when a deploy policy event occurs. - * - * Generated from protobuf field string message = 1; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Debug message for when a deploy policy event occurs. - * - * Generated from protobuf field string message = 1; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * Rule type (e.g. Restrict Rollouts). - * - * Generated from protobuf field string rule_type = 2; - * @return string - */ - public function getRuleType() - { - return $this->rule_type; - } - - /** - * Rule type (e.g. Restrict Rollouts). - * - * Generated from protobuf field string rule_type = 2; - * @param string $var - * @return $this - */ - public function setRuleType($var) - { - GPBUtil::checkString($var, True); - $this->rule_type = $var; - - return $this; - } - - /** - * Rule id. - * - * Generated from protobuf field string rule = 3; - * @return string - */ - public function getRule() - { - return $this->rule; - } - - /** - * Rule id. - * - * Generated from protobuf field string rule = 3; - * @param string $var - * @return $this - */ - public function setRule($var) - { - GPBUtil::checkString($var, True); - $this->rule = $var; - - return $this; - } - - /** - * Unique identifier of the `Delivery Pipeline`. - * - * Generated from protobuf field string pipeline_uid = 4; - * @return string - */ - public function getPipelineUid() - { - return $this->pipeline_uid; - } - - /** - * Unique identifier of the `Delivery Pipeline`. - * - * Generated from protobuf field string pipeline_uid = 4; - * @param string $var - * @return $this - */ - public function setPipelineUid($var) - { - GPBUtil::checkString($var, True); - $this->pipeline_uid = $var; - - return $this; - } - - /** - * The name of the `Delivery Pipeline`. - * - * Generated from protobuf field string delivery_pipeline = 5; - * @return string - */ - public function getDeliveryPipeline() - { - return $this->delivery_pipeline; - } - - /** - * The name of the `Delivery Pipeline`. - * - * Generated from protobuf field string delivery_pipeline = 5; - * @param string $var - * @return $this - */ - public function setDeliveryPipeline($var) - { - GPBUtil::checkString($var, True); - $this->delivery_pipeline = $var; - - return $this; - } - - /** - * Unique identifier of the `Target`. This is an optional field, as a `Target` - * may not always be applicable to a policy. - * - * Generated from protobuf field string target_uid = 6; - * @return string - */ - public function getTargetUid() - { - return $this->target_uid; - } - - /** - * Unique identifier of the `Target`. This is an optional field, as a `Target` - * may not always be applicable to a policy. - * - * Generated from protobuf field string target_uid = 6; - * @param string $var - * @return $this - */ - public function setTargetUid($var) - { - GPBUtil::checkString($var, True); - $this->target_uid = $var; - - return $this; - } - - /** - * The name of the `Target`. This is an optional field, as a `Target` may not - * always be applicable to a policy. - * - * Generated from protobuf field string target = 7; - * @return string - */ - public function getTarget() - { - return $this->target; - } - - /** - * The name of the `Target`. This is an optional field, as a `Target` may not - * always be applicable to a policy. - * - * Generated from protobuf field string target = 7; - * @param string $var - * @return $this - */ - public function setTarget($var) - { - GPBUtil::checkString($var, True); - $this->target = $var; - - return $this; - } - - /** - * What invoked the action (e.g. a user or automation). - * - * Generated from protobuf field .google.cloud.deploy.v1.DeployPolicy.Invoker invoker = 8; - * @return int - */ - public function getInvoker() - { - return $this->invoker; - } - - /** - * What invoked the action (e.g. a user or automation). - * - * Generated from protobuf field .google.cloud.deploy.v1.DeployPolicy.Invoker invoker = 8; - * @param int $var - * @return $this - */ - public function setInvoker($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\DeployPolicy\Invoker::class); - $this->invoker = $var; - - return $this; - } - - /** - * The name of the `DeployPolicy`. - * - * Generated from protobuf field string deploy_policy = 9; - * @return string - */ - public function getDeployPolicy() - { - return $this->deploy_policy; - } - - /** - * The name of the `DeployPolicy`. - * - * Generated from protobuf field string deploy_policy = 9; - * @param string $var - * @return $this - */ - public function setDeployPolicy($var) - { - GPBUtil::checkString($var, True); - $this->deploy_policy = $var; - - return $this; - } - - /** - * Unique identifier of the `DeployPolicy`. - * - * Generated from protobuf field string deploy_policy_uid = 10; - * @return string - */ - public function getDeployPolicyUid() - { - return $this->deploy_policy_uid; - } - - /** - * Unique identifier of the `DeployPolicy`. - * - * Generated from protobuf field string deploy_policy_uid = 10; - * @param string $var - * @return $this - */ - public function setDeployPolicyUid($var) - { - GPBUtil::checkString($var, True); - $this->deploy_policy_uid = $var; - - return $this; - } - - /** - * Whether the request is allowed. Allowed is set as true if: - * (1) the request complies with the policy; or - * (2) the request doesn't comply with the policy but the policy was - * overridden; or - * (3) the request doesn't comply with the policy but the policy was suspended - * - * Generated from protobuf field bool allowed = 11; - * @return bool - */ - public function getAllowed() - { - return $this->allowed; - } - - /** - * Whether the request is allowed. Allowed is set as true if: - * (1) the request complies with the policy; or - * (2) the request doesn't comply with the policy but the policy was - * overridden; or - * (3) the request doesn't comply with the policy but the policy was suspended - * - * Generated from protobuf field bool allowed = 11; - * @param bool $var - * @return $this - */ - public function setAllowed($var) - { - GPBUtil::checkBool($var); - $this->allowed = $var; - - return $this; - } - - /** - * The policy verdict of the request. - * - * Generated from protobuf field .google.cloud.deploy.v1.DeployPolicyEvaluationEvent.PolicyVerdict verdict = 12; - * @return int - */ - public function getVerdict() - { - return $this->verdict; - } - - /** - * The policy verdict of the request. - * - * Generated from protobuf field .google.cloud.deploy.v1.DeployPolicyEvaluationEvent.PolicyVerdict verdict = 12; - * @param int $var - * @return $this - */ - public function setVerdict($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\DeployPolicyEvaluationEvent\PolicyVerdict::class); - $this->verdict = $var; - - return $this; - } - - /** - * Things that could have overridden the policy verdict. Overrides together - * with verdict decide whether the request is allowed. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.DeployPolicyEvaluationEvent.PolicyVerdictOverride overrides = 13; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOverrides() - { - return $this->overrides; - } - - /** - * Things that could have overridden the policy verdict. Overrides together - * with verdict decide whether the request is allowed. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.DeployPolicyEvaluationEvent.PolicyVerdictOverride overrides = 13; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOverrides($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Deploy\V1\DeployPolicyEvaluationEvent\PolicyVerdictOverride::class); - $this->overrides = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicyEvaluationEvent/PolicyVerdict.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicyEvaluationEvent/PolicyVerdict.php deleted file mode 100644 index 24fad195a9c8..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicyEvaluationEvent/PolicyVerdict.php +++ /dev/null @@ -1,66 +0,0 @@ -google.cloud.deploy.v1.DeployPolicyEvaluationEvent.PolicyVerdict - */ -class PolicyVerdict -{ - /** - * This should never happen. - * - * Generated from protobuf enum POLICY_VERDICT_UNSPECIFIED = 0; - */ - const POLICY_VERDICT_UNSPECIFIED = 0; - /** - * Allowed by policy. This enum value is not currently used but may be used - * in the future. Currently logs are only generated when a request is denied - * by policy. - * - * Generated from protobuf enum ALLOWED_BY_POLICY = 1; - */ - const ALLOWED_BY_POLICY = 1; - /** - * Denied by policy. - * - * Generated from protobuf enum DENIED_BY_POLICY = 2; - */ - const DENIED_BY_POLICY = 2; - - private static $valueToName = [ - self::POLICY_VERDICT_UNSPECIFIED => 'POLICY_VERDICT_UNSPECIFIED', - self::ALLOWED_BY_POLICY => 'ALLOWED_BY_POLICY', - self::DENIED_BY_POLICY => 'DENIED_BY_POLICY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PolicyVerdict::class, \Google\Cloud\Deploy\V1\DeployPolicyEvaluationEvent_PolicyVerdict::class); - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicyEvaluationEvent/PolicyVerdictOverride.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicyEvaluationEvent/PolicyVerdictOverride.php deleted file mode 100644 index 16aa69e67465..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicyEvaluationEvent/PolicyVerdictOverride.php +++ /dev/null @@ -1,65 +0,0 @@ -google.cloud.deploy.v1.DeployPolicyEvaluationEvent.PolicyVerdictOverride - */ -class PolicyVerdictOverride -{ - /** - * This should never happen. - * - * Generated from protobuf enum POLICY_VERDICT_OVERRIDE_UNSPECIFIED = 0; - */ - const POLICY_VERDICT_OVERRIDE_UNSPECIFIED = 0; - /** - * The policy was overridden. - * - * Generated from protobuf enum POLICY_OVERRIDDEN = 1; - */ - const POLICY_OVERRIDDEN = 1; - /** - * The policy was suspended. - * - * Generated from protobuf enum POLICY_SUSPENDED = 2; - */ - const POLICY_SUSPENDED = 2; - - private static $valueToName = [ - self::POLICY_VERDICT_OVERRIDE_UNSPECIFIED => 'POLICY_VERDICT_OVERRIDE_UNSPECIFIED', - self::POLICY_OVERRIDDEN => 'POLICY_OVERRIDDEN', - self::POLICY_SUSPENDED => 'POLICY_SUSPENDED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PolicyVerdictOverride::class, \Google\Cloud\Deploy\V1\DeployPolicyEvaluationEvent_PolicyVerdictOverride::class); - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicyNotificationEvent.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicyNotificationEvent.php deleted file mode 100644 index 8b42ca6866e4..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicyNotificationEvent.php +++ /dev/null @@ -1,175 +0,0 @@ -google.cloud.deploy.v1.DeployPolicyNotificationEvent - */ -class DeployPolicyNotificationEvent extends \Google\Protobuf\Internal\Message -{ - /** - * Debug message for when a deploy policy fails to send a pub/sub - * notification. - * - * Generated from protobuf field string message = 1; - */ - protected $message = ''; - /** - * The name of the `DeployPolicy`. - * - * Generated from protobuf field string deploy_policy = 2; - */ - protected $deploy_policy = ''; - /** - * Unique identifier of the deploy policy. - * - * Generated from protobuf field string deploy_policy_uid = 3; - */ - protected $deploy_policy_uid = ''; - /** - * Type of this notification, e.g. for a Pub/Sub failure. - * - * Generated from protobuf field .google.cloud.deploy.v1.Type type = 4; - */ - protected $type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $message - * Debug message for when a deploy policy fails to send a pub/sub - * notification. - * @type string $deploy_policy - * The name of the `DeployPolicy`. - * @type string $deploy_policy_uid - * Unique identifier of the deploy policy. - * @type int $type - * Type of this notification, e.g. for a Pub/Sub failure. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\DeploypolicyNotificationPayload::initOnce(); - parent::__construct($data); - } - - /** - * Debug message for when a deploy policy fails to send a pub/sub - * notification. - * - * Generated from protobuf field string message = 1; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Debug message for when a deploy policy fails to send a pub/sub - * notification. - * - * Generated from protobuf field string message = 1; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * The name of the `DeployPolicy`. - * - * Generated from protobuf field string deploy_policy = 2; - * @return string - */ - public function getDeployPolicy() - { - return $this->deploy_policy; - } - - /** - * The name of the `DeployPolicy`. - * - * Generated from protobuf field string deploy_policy = 2; - * @param string $var - * @return $this - */ - public function setDeployPolicy($var) - { - GPBUtil::checkString($var, True); - $this->deploy_policy = $var; - - return $this; - } - - /** - * Unique identifier of the deploy policy. - * - * Generated from protobuf field string deploy_policy_uid = 3; - * @return string - */ - public function getDeployPolicyUid() - { - return $this->deploy_policy_uid; - } - - /** - * Unique identifier of the deploy policy. - * - * Generated from protobuf field string deploy_policy_uid = 3; - * @param string $var - * @return $this - */ - public function setDeployPolicyUid($var) - { - GPBUtil::checkString($var, True); - $this->deploy_policy_uid = $var; - - return $this; - } - - /** - * Type of this notification, e.g. for a Pub/Sub failure. - * - * Generated from protobuf field .google.cloud.deploy.v1.Type type = 4; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Type of this notification, e.g. for a Pub/Sub failure. - * - * Generated from protobuf field .google.cloud.deploy.v1.Type type = 4; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Type::class); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicyResourceSelector.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicyResourceSelector.php deleted file mode 100644 index e494158a745a..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeployPolicyResourceSelector.php +++ /dev/null @@ -1,125 +0,0 @@ -google.cloud.deploy.v1.DeployPolicyResourceSelector - */ -class DeployPolicyResourceSelector extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Contains attributes about a delivery pipeline. - * - * Generated from protobuf field .google.cloud.deploy.v1.DeliveryPipelineAttribute delivery_pipeline = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $delivery_pipeline = null; - /** - * Optional. Contains attributes about a target. - * - * Generated from protobuf field .google.cloud.deploy.v1.TargetAttribute target = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $target = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Deploy\V1\DeliveryPipelineAttribute $delivery_pipeline - * Optional. Contains attributes about a delivery pipeline. - * @type \Google\Cloud\Deploy\V1\TargetAttribute $target - * Optional. Contains attributes about a target. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Contains attributes about a delivery pipeline. - * - * Generated from protobuf field .google.cloud.deploy.v1.DeliveryPipelineAttribute delivery_pipeline = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Deploy\V1\DeliveryPipelineAttribute|null - */ - public function getDeliveryPipeline() - { - return $this->delivery_pipeline; - } - - public function hasDeliveryPipeline() - { - return isset($this->delivery_pipeline); - } - - public function clearDeliveryPipeline() - { - unset($this->delivery_pipeline); - } - - /** - * Optional. Contains attributes about a delivery pipeline. - * - * Generated from protobuf field .google.cloud.deploy.v1.DeliveryPipelineAttribute delivery_pipeline = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Deploy\V1\DeliveryPipelineAttribute $var - * @return $this - */ - public function setDeliveryPipeline($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\DeliveryPipelineAttribute::class); - $this->delivery_pipeline = $var; - - return $this; - } - - /** - * Optional. Contains attributes about a target. - * - * Generated from protobuf field .google.cloud.deploy.v1.TargetAttribute target = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Deploy\V1\TargetAttribute|null - */ - public function getTarget() - { - return $this->target; - } - - public function hasTarget() - { - return isset($this->target); - } - - public function clearTarget() - { - unset($this->target); - } - - /** - * Optional. Contains attributes about a target. - * - * Generated from protobuf field .google.cloud.deploy.v1.TargetAttribute target = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Deploy\V1\TargetAttribute $var - * @return $this - */ - public function setTarget($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\TargetAttribute::class); - $this->target = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeploymentJobs.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeploymentJobs.php deleted file mode 100644 index a4335b13b770..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/DeploymentJobs.php +++ /dev/null @@ -1,209 +0,0 @@ -google.cloud.deploy.v1.DeploymentJobs - */ -class DeploymentJobs extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The deploy Job. This is the deploy job in the phase. - * - * Generated from protobuf field .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $deploy_job = null; - /** - * Output only. The verify Job. Runs after a deploy if the deploy succeeds. - * - * Generated from protobuf field .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $verify_job = null; - /** - * Output only. The predeploy Job, which is the first job on the phase. - * - * Generated from protobuf field .google.cloud.deploy.v1.Job predeploy_job = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $predeploy_job = null; - /** - * Output only. The postdeploy Job, which is the last job on the phase. - * - * Generated from protobuf field .google.cloud.deploy.v1.Job postdeploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $postdeploy_job = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Deploy\V1\Job $deploy_job - * Output only. The deploy Job. This is the deploy job in the phase. - * @type \Google\Cloud\Deploy\V1\Job $verify_job - * Output only. The verify Job. Runs after a deploy if the deploy succeeds. - * @type \Google\Cloud\Deploy\V1\Job $predeploy_job - * Output only. The predeploy Job, which is the first job on the phase. - * @type \Google\Cloud\Deploy\V1\Job $postdeploy_job - * Output only. The postdeploy Job, which is the last job on the phase. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The deploy Job. This is the deploy job in the phase. - * - * Generated from protobuf field .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\Job|null - */ - public function getDeployJob() - { - return $this->deploy_job; - } - - public function hasDeployJob() - { - return isset($this->deploy_job); - } - - public function clearDeployJob() - { - unset($this->deploy_job); - } - - /** - * Output only. The deploy Job. This is the deploy job in the phase. - * - * Generated from protobuf field .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\Job $var - * @return $this - */ - public function setDeployJob($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Job::class); - $this->deploy_job = $var; - - return $this; - } - - /** - * Output only. The verify Job. Runs after a deploy if the deploy succeeds. - * - * Generated from protobuf field .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\Job|null - */ - public function getVerifyJob() - { - return $this->verify_job; - } - - public function hasVerifyJob() - { - return isset($this->verify_job); - } - - public function clearVerifyJob() - { - unset($this->verify_job); - } - - /** - * Output only. The verify Job. Runs after a deploy if the deploy succeeds. - * - * Generated from protobuf field .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\Job $var - * @return $this - */ - public function setVerifyJob($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Job::class); - $this->verify_job = $var; - - return $this; - } - - /** - * Output only. The predeploy Job, which is the first job on the phase. - * - * Generated from protobuf field .google.cloud.deploy.v1.Job predeploy_job = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\Job|null - */ - public function getPredeployJob() - { - return $this->predeploy_job; - } - - public function hasPredeployJob() - { - return isset($this->predeploy_job); - } - - public function clearPredeployJob() - { - unset($this->predeploy_job); - } - - /** - * Output only. The predeploy Job, which is the first job on the phase. - * - * Generated from protobuf field .google.cloud.deploy.v1.Job predeploy_job = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\Job $var - * @return $this - */ - public function setPredeployJob($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Job::class); - $this->predeploy_job = $var; - - return $this; - } - - /** - * Output only. The postdeploy Job, which is the last job on the phase. - * - * Generated from protobuf field .google.cloud.deploy.v1.Job postdeploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\Job|null - */ - public function getPostdeployJob() - { - return $this->postdeploy_job; - } - - public function hasPostdeployJob() - { - return isset($this->postdeploy_job); - } - - public function clearPostdeployJob() - { - unset($this->postdeploy_job); - } - - /** - * Output only. The postdeploy Job, which is the last job on the phase. - * - * Generated from protobuf field .google.cloud.deploy.v1.Job postdeploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\Job $var - * @return $this - */ - public function setPostdeployJob($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Job::class); - $this->postdeploy_job = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ExecutionConfig.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ExecutionConfig.php deleted file mode 100644 index 3596cd3fcfa4..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ExecutionConfig.php +++ /dev/null @@ -1,366 +0,0 @@ -google.cloud.deploy.v1.ExecutionConfig - */ -class ExecutionConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Usages when this configuration should be applied. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage usages = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $usages; - /** - * Optional. The resource name of the `WorkerPool`, with the format - * `projects/{project}/locations/{location}/workerPools/{worker_pool}`. - * If this optional field is unspecified, the default Cloud Build pool will be - * used. - * - * Generated from protobuf field string worker_pool = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $worker_pool = ''; - /** - * Optional. Google service account to use for execution. If unspecified, - * the project execution service account - * (-compute@developer.gserviceaccount.com) is used. - * - * Generated from protobuf field string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $service_account = ''; - /** - * Optional. Cloud Storage location in which to store execution outputs. This - * can either be a bucket ("gs://my-bucket") or a path within a bucket - * ("gs://my-bucket/my-dir"). - * If unspecified, a default bucket located in the same region will be used. - * - * Generated from protobuf field string artifact_storage = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $artifact_storage = ''; - /** - * Optional. Execution timeout for a Cloud Build Execution. This must be - * between 10m and 24h in seconds format. If unspecified, a default timeout of - * 1h is used. - * - * Generated from protobuf field .google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $execution_timeout = null; - /** - * Optional. If true, additional logging will be enabled when running builds - * in this execution environment. - * - * Generated from protobuf field bool verbose = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $verbose = false; - protected $execution_environment; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $usages - * Required. Usages when this configuration should be applied. - * @type \Google\Cloud\Deploy\V1\DefaultPool $default_pool - * Optional. Use default Cloud Build pool. - * @type \Google\Cloud\Deploy\V1\PrivatePool $private_pool - * Optional. Use private Cloud Build pool. - * @type string $worker_pool - * Optional. The resource name of the `WorkerPool`, with the format - * `projects/{project}/locations/{location}/workerPools/{worker_pool}`. - * If this optional field is unspecified, the default Cloud Build pool will be - * used. - * @type string $service_account - * Optional. Google service account to use for execution. If unspecified, - * the project execution service account - * (-compute@developer.gserviceaccount.com) is used. - * @type string $artifact_storage - * Optional. Cloud Storage location in which to store execution outputs. This - * can either be a bucket ("gs://my-bucket") or a path within a bucket - * ("gs://my-bucket/my-dir"). - * If unspecified, a default bucket located in the same region will be used. - * @type \Google\Protobuf\Duration $execution_timeout - * Optional. Execution timeout for a Cloud Build Execution. This must be - * between 10m and 24h in seconds format. If unspecified, a default timeout of - * 1h is used. - * @type bool $verbose - * Optional. If true, additional logging will be enabled when running builds - * in this execution environment. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. Usages when this configuration should be applied. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage usages = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUsages() - { - return $this->usages; - } - - /** - * Required. Usages when this configuration should be applied. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage usages = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUsages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Deploy\V1\ExecutionConfig\ExecutionEnvironmentUsage::class); - $this->usages = $arr; - - return $this; - } - - /** - * Optional. Use default Cloud Build pool. - * - * Generated from protobuf field .google.cloud.deploy.v1.DefaultPool default_pool = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Deploy\V1\DefaultPool|null - */ - public function getDefaultPool() - { - return $this->readOneof(2); - } - - public function hasDefaultPool() - { - return $this->hasOneof(2); - } - - /** - * Optional. Use default Cloud Build pool. - * - * Generated from protobuf field .google.cloud.deploy.v1.DefaultPool default_pool = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Deploy\V1\DefaultPool $var - * @return $this - */ - public function setDefaultPool($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\DefaultPool::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Optional. Use private Cloud Build pool. - * - * Generated from protobuf field .google.cloud.deploy.v1.PrivatePool private_pool = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Deploy\V1\PrivatePool|null - */ - public function getPrivatePool() - { - return $this->readOneof(3); - } - - public function hasPrivatePool() - { - return $this->hasOneof(3); - } - - /** - * Optional. Use private Cloud Build pool. - * - * Generated from protobuf field .google.cloud.deploy.v1.PrivatePool private_pool = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Deploy\V1\PrivatePool $var - * @return $this - */ - public function setPrivatePool($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\PrivatePool::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Optional. The resource name of the `WorkerPool`, with the format - * `projects/{project}/locations/{location}/workerPools/{worker_pool}`. - * If this optional field is unspecified, the default Cloud Build pool will be - * used. - * - * Generated from protobuf field string worker_pool = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getWorkerPool() - { - return $this->worker_pool; - } - - /** - * Optional. The resource name of the `WorkerPool`, with the format - * `projects/{project}/locations/{location}/workerPools/{worker_pool}`. - * If this optional field is unspecified, the default Cloud Build pool will be - * used. - * - * Generated from protobuf field string worker_pool = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setWorkerPool($var) - { - GPBUtil::checkString($var, True); - $this->worker_pool = $var; - - return $this; - } - - /** - * Optional. Google service account to use for execution. If unspecified, - * the project execution service account - * (-compute@developer.gserviceaccount.com) is used. - * - * Generated from protobuf field string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getServiceAccount() - { - return $this->service_account; - } - - /** - * Optional. Google service account to use for execution. If unspecified, - * the project execution service account - * (-compute@developer.gserviceaccount.com) is used. - * - * Generated from protobuf field string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setServiceAccount($var) - { - GPBUtil::checkString($var, True); - $this->service_account = $var; - - return $this; - } - - /** - * Optional. Cloud Storage location in which to store execution outputs. This - * can either be a bucket ("gs://my-bucket") or a path within a bucket - * ("gs://my-bucket/my-dir"). - * If unspecified, a default bucket located in the same region will be used. - * - * Generated from protobuf field string artifact_storage = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getArtifactStorage() - { - return $this->artifact_storage; - } - - /** - * Optional. Cloud Storage location in which to store execution outputs. This - * can either be a bucket ("gs://my-bucket") or a path within a bucket - * ("gs://my-bucket/my-dir"). - * If unspecified, a default bucket located in the same region will be used. - * - * Generated from protobuf field string artifact_storage = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setArtifactStorage($var) - { - GPBUtil::checkString($var, True); - $this->artifact_storage = $var; - - return $this; - } - - /** - * Optional. Execution timeout for a Cloud Build Execution. This must be - * between 10m and 24h in seconds format. If unspecified, a default timeout of - * 1h is used. - * - * Generated from protobuf field .google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Duration|null - */ - public function getExecutionTimeout() - { - return $this->execution_timeout; - } - - public function hasExecutionTimeout() - { - return isset($this->execution_timeout); - } - - public function clearExecutionTimeout() - { - unset($this->execution_timeout); - } - - /** - * Optional. Execution timeout for a Cloud Build Execution. This must be - * between 10m and 24h in seconds format. If unspecified, a default timeout of - * 1h is used. - * - * Generated from protobuf field .google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setExecutionTimeout($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->execution_timeout = $var; - - return $this; - } - - /** - * Optional. If true, additional logging will be enabled when running builds - * in this execution environment. - * - * Generated from protobuf field bool verbose = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getVerbose() - { - return $this->verbose; - } - - /** - * Optional. If true, additional logging will be enabled when running builds - * in this execution environment. - * - * Generated from protobuf field bool verbose = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setVerbose($var) - { - GPBUtil::checkBool($var); - $this->verbose = $var; - - return $this; - } - - /** - * @return string - */ - public function getExecutionEnvironment() - { - return $this->whichOneof("execution_environment"); - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ExecutionConfig/ExecutionEnvironmentUsage.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ExecutionConfig/ExecutionEnvironmentUsage.php deleted file mode 100644 index cab2e9f5b440..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ExecutionConfig/ExecutionEnvironmentUsage.php +++ /dev/null @@ -1,85 +0,0 @@ -google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage - */ -class ExecutionEnvironmentUsage -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum EXECUTION_ENVIRONMENT_USAGE_UNSPECIFIED = 0; - */ - const EXECUTION_ENVIRONMENT_USAGE_UNSPECIFIED = 0; - /** - * Use for rendering. - * - * Generated from protobuf enum RENDER = 1; - */ - const RENDER = 1; - /** - * Use for deploying and deployment hooks. - * - * Generated from protobuf enum DEPLOY = 2; - */ - const DEPLOY = 2; - /** - * Use for deployment verification. - * - * Generated from protobuf enum VERIFY = 3; - */ - const VERIFY = 3; - /** - * Use for predeploy job execution. - * - * Generated from protobuf enum PREDEPLOY = 4; - */ - const PREDEPLOY = 4; - /** - * Use for postdeploy job execution. - * - * Generated from protobuf enum POSTDEPLOY = 5; - */ - const POSTDEPLOY = 5; - - private static $valueToName = [ - self::EXECUTION_ENVIRONMENT_USAGE_UNSPECIFIED => 'EXECUTION_ENVIRONMENT_USAGE_UNSPECIFIED', - self::RENDER => 'RENDER', - self::DEPLOY => 'DEPLOY', - self::VERIFY => 'VERIFY', - self::PREDEPLOY => 'PREDEPLOY', - self::POSTDEPLOY => 'POSTDEPLOY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ExecutionEnvironmentUsage::class, \Google\Cloud\Deploy\V1\ExecutionConfig_ExecutionEnvironmentUsage::class); - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetAutomationRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetAutomationRequest.php deleted file mode 100644 index f124bb5f99e0..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetAutomationRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.deploy.v1.GetAutomationRequest - */ -class GetAutomationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the `Automation`. Format must be - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Name of the `Automation`. Format must be - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`. Please see - * {@see CloudDeployClient::automationName()} for help formatting this field. - * - * @return \Google\Cloud\Deploy\V1\GetAutomationRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the `Automation`. Format must be - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the `Automation`. Format must be - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the `Automation`. Format must be - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetAutomationRunRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetAutomationRunRequest.php deleted file mode 100644 index 015abd5ea426..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetAutomationRunRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.deploy.v1.GetAutomationRunRequest - */ -class GetAutomationRunRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the `AutomationRun`. Format must be - * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Name of the `AutomationRun`. Format must be - * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`. Please see - * {@see CloudDeployClient::automationRunName()} for help formatting this field. - * - * @return \Google\Cloud\Deploy\V1\GetAutomationRunRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the `AutomationRun`. Format must be - * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the `AutomationRun`. Format must be - * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the `AutomationRun`. Format must be - * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetConfigRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetConfigRequest.php deleted file mode 100644 index affb901f5728..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetConfigRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.deploy.v1.GetConfigRequest - */ -class GetConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of requested configuration. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Name of requested configuration. Please see - * {@see CloudDeployClient::configName()} for help formatting this field. - * - * @return \Google\Cloud\Deploy\V1\GetConfigRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of requested configuration. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of requested configuration. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of requested configuration. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetCustomTargetTypeRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetCustomTargetTypeRequest.php deleted file mode 100644 index 6ebe118b5a26..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetCustomTargetTypeRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.deploy.v1.GetCustomTargetTypeRequest - */ -class GetCustomTargetTypeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the `CustomTargetType`. Format must be - * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Name of the `CustomTargetType`. Format must be - * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`. Please see - * {@see CloudDeployClient::customTargetTypeName()} for help formatting this field. - * - * @return \Google\Cloud\Deploy\V1\GetCustomTargetTypeRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the `CustomTargetType`. Format must be - * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the `CustomTargetType`. Format must be - * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the `CustomTargetType`. Format must be - * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetDeliveryPipelineRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetDeliveryPipelineRequest.php deleted file mode 100644 index 739f790fa5f3..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetDeliveryPipelineRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.deploy.v1.GetDeliveryPipelineRequest - */ -class GetDeliveryPipelineRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the `DeliveryPipeline`. Format must be - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Name of the `DeliveryPipeline`. Format must be - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. Please see - * {@see CloudDeployClient::deliveryPipelineName()} for help formatting this field. - * - * @return \Google\Cloud\Deploy\V1\GetDeliveryPipelineRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the `DeliveryPipeline`. Format must be - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the `DeliveryPipeline`. Format must be - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the `DeliveryPipeline`. Format must be - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetDeployPolicyRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetDeployPolicyRequest.php deleted file mode 100644 index 2cc0c666cd17..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetDeployPolicyRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.deploy.v1.GetDeployPolicyRequest - */ -class GetDeployPolicyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the `DeployPolicy`. Format must be - * `projects/{project_id}/locations/{location_name}/deployPolicies/{deploy_policy_name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Name of the `DeployPolicy`. Format must be - * `projects/{project_id}/locations/{location_name}/deployPolicies/{deploy_policy_name}`. Please see - * {@see CloudDeployClient::deployPolicyName()} for help formatting this field. - * - * @return \Google\Cloud\Deploy\V1\GetDeployPolicyRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the `DeployPolicy`. Format must be - * `projects/{project_id}/locations/{location_name}/deployPolicies/{deploy_policy_name}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the `DeployPolicy`. Format must be - * `projects/{project_id}/locations/{location_name}/deployPolicies/{deploy_policy_name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the `DeployPolicy`. Format must be - * `projects/{project_id}/locations/{location_name}/deployPolicies/{deploy_policy_name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetJobRunRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetJobRunRequest.php deleted file mode 100644 index 8e935669dd16..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetJobRunRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.deploy.v1.GetJobRunRequest - */ -class GetJobRunRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the `JobRun`. Format must be - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Name of the `JobRun`. Format must be - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}`. Please see - * {@see CloudDeployClient::jobRunName()} for help formatting this field. - * - * @return \Google\Cloud\Deploy\V1\GetJobRunRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the `JobRun`. Format must be - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the `JobRun`. Format must be - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the `JobRun`. Format must be - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetReleaseRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetReleaseRequest.php deleted file mode 100644 index ee0d72b371ac..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetReleaseRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.deploy.v1.GetReleaseRequest - */ -class GetReleaseRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the `Release`. Format must be - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Name of the `Release`. Format must be - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`. Please see - * {@see CloudDeployClient::releaseName()} for help formatting this field. - * - * @return \Google\Cloud\Deploy\V1\GetReleaseRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the `Release`. Format must be - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the `Release`. Format must be - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the `Release`. Format must be - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetRolloutRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetRolloutRequest.php deleted file mode 100644 index 9ff5d3af52af..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetRolloutRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.deploy.v1.GetRolloutRequest - */ -class GetRolloutRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the `Rollout`. Format must be - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Name of the `Rollout`. Format must be - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}`. Please see - * {@see CloudDeployClient::rolloutName()} for help formatting this field. - * - * @return \Google\Cloud\Deploy\V1\GetRolloutRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the `Rollout`. Format must be - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the `Rollout`. Format must be - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the `Rollout`. Format must be - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetTargetRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetTargetRequest.php deleted file mode 100644 index e88f8c170dd1..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GetTargetRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.deploy.v1.GetTargetRequest - */ -class GetTargetRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the `Target`. Format must be - * `projects/{project_id}/locations/{location_name}/targets/{target_name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Name of the `Target`. Format must be - * `projects/{project_id}/locations/{location_name}/targets/{target_name}`. Please see - * {@see CloudDeployClient::targetName()} for help formatting this field. - * - * @return \Google\Cloud\Deploy\V1\GetTargetRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the `Target`. Format must be - * `projects/{project_id}/locations/{location_name}/targets/{target_name}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the `Target`. Format must be - * `projects/{project_id}/locations/{location_name}/targets/{target_name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the `Target`. Format must be - * `projects/{project_id}/locations/{location_name}/targets/{target_name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GkeCluster.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GkeCluster.php deleted file mode 100644 index 8910be4d6f79..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/GkeCluster.php +++ /dev/null @@ -1,171 +0,0 @@ -google.cloud.deploy.v1.GkeCluster - */ -class GkeCluster extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Information specifying a GKE Cluster. Format is - * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`. - * - * Generated from protobuf field string cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $cluster = ''; - /** - * Optional. If true, `cluster` is accessed using the private IP address of - * the control plane endpoint. Otherwise, the default IP address of the - * control plane endpoint is used. The default IP address is the private IP - * address for clusters with private control-plane endpoints and the public IP - * address otherwise. - * Only specify this option when `cluster` is a [private GKE - * cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept). - * - * Generated from protobuf field bool internal_ip = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $internal_ip = false; - /** - * Optional. If set, used to configure a - * [proxy](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#proxy) - * to the Kubernetes server. - * - * Generated from protobuf field string proxy_url = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $proxy_url = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $cluster - * Optional. Information specifying a GKE Cluster. Format is - * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`. - * @type bool $internal_ip - * Optional. If true, `cluster` is accessed using the private IP address of - * the control plane endpoint. Otherwise, the default IP address of the - * control plane endpoint is used. The default IP address is the private IP - * address for clusters with private control-plane endpoints and the public IP - * address otherwise. - * Only specify this option when `cluster` is a [private GKE - * cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept). - * @type string $proxy_url - * Optional. If set, used to configure a - * [proxy](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#proxy) - * to the Kubernetes server. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Information specifying a GKE Cluster. Format is - * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`. - * - * Generated from protobuf field string cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getCluster() - { - return $this->cluster; - } - - /** - * Optional. Information specifying a GKE Cluster. Format is - * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`. - * - * Generated from protobuf field string cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setCluster($var) - { - GPBUtil::checkString($var, True); - $this->cluster = $var; - - return $this; - } - - /** - * Optional. If true, `cluster` is accessed using the private IP address of - * the control plane endpoint. Otherwise, the default IP address of the - * control plane endpoint is used. The default IP address is the private IP - * address for clusters with private control-plane endpoints and the public IP - * address otherwise. - * Only specify this option when `cluster` is a [private GKE - * cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept). - * - * Generated from protobuf field bool internal_ip = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getInternalIp() - { - return $this->internal_ip; - } - - /** - * Optional. If true, `cluster` is accessed using the private IP address of - * the control plane endpoint. Otherwise, the default IP address of the - * control plane endpoint is used. The default IP address is the private IP - * address for clusters with private control-plane endpoints and the public IP - * address otherwise. - * Only specify this option when `cluster` is a [private GKE - * cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept). - * - * Generated from protobuf field bool internal_ip = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setInternalIp($var) - { - GPBUtil::checkBool($var); - $this->internal_ip = $var; - - return $this; - } - - /** - * Optional. If set, used to configure a - * [proxy](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#proxy) - * to the Kubernetes server. - * - * Generated from protobuf field string proxy_url = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getProxyUrl() - { - return $this->proxy_url; - } - - /** - * Optional. If set, used to configure a - * [proxy](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#proxy) - * to the Kubernetes server. - * - * Generated from protobuf field string proxy_url = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setProxyUrl($var) - { - GPBUtil::checkString($var, True); - $this->proxy_url = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/IgnoreJobRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/IgnoreJobRequest.php deleted file mode 100644 index d191c4db127a..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/IgnoreJobRequest.php +++ /dev/null @@ -1,196 +0,0 @@ -google.cloud.deploy.v1.IgnoreJobRequest - */ -class IgnoreJobRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the Rollout. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. - * - * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $rollout = ''; - /** - * Required. The phase ID the Job to ignore belongs to. - * - * Generated from protobuf field string phase_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $phase_id = ''; - /** - * Required. The job ID for the Job to ignore. - * - * Generated from protobuf field string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $job_id = ''; - /** - * Optional. Deploy policies to override. Format is - * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. - * - * Generated from protobuf field repeated string override_deploy_policy = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $override_deploy_policy; - - /** - * @param string $rollout Required. Name of the Rollout. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. Please see - * {@see CloudDeployClient::rolloutName()} for help formatting this field. - * @param string $phaseId Required. The phase ID the Job to ignore belongs to. - * @param string $jobId Required. The job ID for the Job to ignore. - * - * @return \Google\Cloud\Deploy\V1\IgnoreJobRequest - * - * @experimental - */ - public static function build(string $rollout, string $phaseId, string $jobId): self - { - return (new self()) - ->setRollout($rollout) - ->setPhaseId($phaseId) - ->setJobId($jobId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $rollout - * Required. Name of the Rollout. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. - * @type string $phase_id - * Required. The phase ID the Job to ignore belongs to. - * @type string $job_id - * Required. The job ID for the Job to ignore. - * @type array|\Google\Protobuf\Internal\RepeatedField $override_deploy_policy - * Optional. Deploy policies to override. Format is - * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the Rollout. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. - * - * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getRollout() - { - return $this->rollout; - } - - /** - * Required. Name of the Rollout. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. - * - * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setRollout($var) - { - GPBUtil::checkString($var, True); - $this->rollout = $var; - - return $this; - } - - /** - * Required. The phase ID the Job to ignore belongs to. - * - * Generated from protobuf field string phase_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getPhaseId() - { - return $this->phase_id; - } - - /** - * Required. The phase ID the Job to ignore belongs to. - * - * Generated from protobuf field string phase_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setPhaseId($var) - { - GPBUtil::checkString($var, True); - $this->phase_id = $var; - - return $this; - } - - /** - * Required. The job ID for the Job to ignore. - * - * Generated from protobuf field string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getJobId() - { - return $this->job_id; - } - - /** - * Required. The job ID for the Job to ignore. - * - * Generated from protobuf field string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setJobId($var) - { - GPBUtil::checkString($var, True); - $this->job_id = $var; - - return $this; - } - - /** - * Optional. Deploy policies to override. Format is - * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. - * - * Generated from protobuf field repeated string override_deploy_policy = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOverrideDeployPolicy() - { - return $this->override_deploy_policy; - } - - /** - * Optional. Deploy policies to override. Format is - * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. - * - * Generated from protobuf field repeated string override_deploy_policy = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOverrideDeployPolicy($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->override_deploy_policy = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/IgnoreJobResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/IgnoreJobResponse.php deleted file mode 100644 index a48bda5ffdf9..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/IgnoreJobResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.deploy.v1.IgnoreJobResponse - */ -class IgnoreJobResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Job.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Job.php deleted file mode 100644 index 894b8658f331..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Job.php +++ /dev/null @@ -1,384 +0,0 @@ -google.cloud.deploy.v1.Job - */ -class Job extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The ID of the Job. - * - * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $id = ''; - /** - * Output only. The current state of the Job. - * - * Generated from protobuf field .google.cloud.deploy.v1.Job.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. Additional information on why the Job was skipped, if - * available. - * - * Generated from protobuf field string skip_message = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $skip_message = ''; - /** - * Output only. The name of the `JobRun` responsible for the most recent - * invocation of this Job. - * - * Generated from protobuf field string job_run = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $job_run = ''; - protected $job_type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * Output only. The ID of the Job. - * @type int $state - * Output only. The current state of the Job. - * @type string $skip_message - * Output only. Additional information on why the Job was skipped, if - * available. - * @type string $job_run - * Output only. The name of the `JobRun` responsible for the most recent - * invocation of this Job. - * @type \Google\Cloud\Deploy\V1\DeployJob $deploy_job - * Output only. A deploy Job. - * @type \Google\Cloud\Deploy\V1\VerifyJob $verify_job - * Output only. A verify Job. - * @type \Google\Cloud\Deploy\V1\PredeployJob $predeploy_job - * Output only. A predeploy Job. - * @type \Google\Cloud\Deploy\V1\PostdeployJob $postdeploy_job - * Output only. A postdeploy Job. - * @type \Google\Cloud\Deploy\V1\CreateChildRolloutJob $create_child_rollout_job - * Output only. A createChildRollout Job. - * @type \Google\Cloud\Deploy\V1\AdvanceChildRolloutJob $advance_child_rollout_job - * Output only. An advanceChildRollout Job. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The ID of the Job. - * - * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Output only. The ID of the Job. - * - * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Output only. The current state of the Job. - * - * Generated from protobuf field .google.cloud.deploy.v1.Job.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The current state of the Job. - * - * Generated from protobuf field .google.cloud.deploy.v1.Job.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Job\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. Additional information on why the Job was skipped, if - * available. - * - * Generated from protobuf field string skip_message = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getSkipMessage() - { - return $this->skip_message; - } - - /** - * Output only. Additional information on why the Job was skipped, if - * available. - * - * Generated from protobuf field string skip_message = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setSkipMessage($var) - { - GPBUtil::checkString($var, True); - $this->skip_message = $var; - - return $this; - } - - /** - * Output only. The name of the `JobRun` responsible for the most recent - * invocation of this Job. - * - * Generated from protobuf field string job_run = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getJobRun() - { - return $this->job_run; - } - - /** - * Output only. The name of the `JobRun` responsible for the most recent - * invocation of this Job. - * - * Generated from protobuf field string job_run = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setJobRun($var) - { - GPBUtil::checkString($var, True); - $this->job_run = $var; - - return $this; - } - - /** - * Output only. A deploy Job. - * - * Generated from protobuf field .google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\DeployJob|null - */ - public function getDeployJob() - { - return $this->readOneof(4); - } - - public function hasDeployJob() - { - return $this->hasOneof(4); - } - - /** - * Output only. A deploy Job. - * - * Generated from protobuf field .google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\DeployJob $var - * @return $this - */ - public function setDeployJob($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\DeployJob::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Output only. A verify Job. - * - * Generated from protobuf field .google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\VerifyJob|null - */ - public function getVerifyJob() - { - return $this->readOneof(5); - } - - public function hasVerifyJob() - { - return $this->hasOneof(5); - } - - /** - * Output only. A verify Job. - * - * Generated from protobuf field .google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\VerifyJob $var - * @return $this - */ - public function setVerifyJob($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\VerifyJob::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Output only. A predeploy Job. - * - * Generated from protobuf field .google.cloud.deploy.v1.PredeployJob predeploy_job = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\PredeployJob|null - */ - public function getPredeployJob() - { - return $this->readOneof(9); - } - - public function hasPredeployJob() - { - return $this->hasOneof(9); - } - - /** - * Output only. A predeploy Job. - * - * Generated from protobuf field .google.cloud.deploy.v1.PredeployJob predeploy_job = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\PredeployJob $var - * @return $this - */ - public function setPredeployJob($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\PredeployJob::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * Output only. A postdeploy Job. - * - * Generated from protobuf field .google.cloud.deploy.v1.PostdeployJob postdeploy_job = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\PostdeployJob|null - */ - public function getPostdeployJob() - { - return $this->readOneof(10); - } - - public function hasPostdeployJob() - { - return $this->hasOneof(10); - } - - /** - * Output only. A postdeploy Job. - * - * Generated from protobuf field .google.cloud.deploy.v1.PostdeployJob postdeploy_job = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\PostdeployJob $var - * @return $this - */ - public function setPostdeployJob($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\PostdeployJob::class); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * Output only. A createChildRollout Job. - * - * Generated from protobuf field .google.cloud.deploy.v1.CreateChildRolloutJob create_child_rollout_job = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\CreateChildRolloutJob|null - */ - public function getCreateChildRolloutJob() - { - return $this->readOneof(6); - } - - public function hasCreateChildRolloutJob() - { - return $this->hasOneof(6); - } - - /** - * Output only. A createChildRollout Job. - * - * Generated from protobuf field .google.cloud.deploy.v1.CreateChildRolloutJob create_child_rollout_job = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\CreateChildRolloutJob $var - * @return $this - */ - public function setCreateChildRolloutJob($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CreateChildRolloutJob::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Output only. An advanceChildRollout Job. - * - * Generated from protobuf field .google.cloud.deploy.v1.AdvanceChildRolloutJob advance_child_rollout_job = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\AdvanceChildRolloutJob|null - */ - public function getAdvanceChildRolloutJob() - { - return $this->readOneof(7); - } - - public function hasAdvanceChildRolloutJob() - { - return $this->hasOneof(7); - } - - /** - * Output only. An advanceChildRollout Job. - * - * Generated from protobuf field .google.cloud.deploy.v1.AdvanceChildRolloutJob advance_child_rollout_job = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\AdvanceChildRolloutJob $var - * @return $this - */ - public function setAdvanceChildRolloutJob($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\AdvanceChildRolloutJob::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * @return string - */ - public function getJobType() - { - return $this->whichOneof("job_type"); - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Job/State.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Job/State.php deleted file mode 100644 index de523dfefaa6..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Job/State.php +++ /dev/null @@ -1,106 +0,0 @@ -google.cloud.deploy.v1.Job.State - */ -class State -{ - /** - * The Job has an unspecified state. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The Job is waiting for an earlier Phase(s) or Job(s) to complete. - * - * Generated from protobuf enum PENDING = 1; - */ - const PENDING = 1; - /** - * The Job is disabled. - * - * Generated from protobuf enum DISABLED = 2; - */ - const DISABLED = 2; - /** - * The Job is in progress. - * - * Generated from protobuf enum IN_PROGRESS = 3; - */ - const IN_PROGRESS = 3; - /** - * The Job succeeded. - * - * Generated from protobuf enum SUCCEEDED = 4; - */ - const SUCCEEDED = 4; - /** - * The Job failed. - * - * Generated from protobuf enum FAILED = 5; - */ - const FAILED = 5; - /** - * The Job was aborted. - * - * Generated from protobuf enum ABORTED = 6; - */ - const ABORTED = 6; - /** - * The Job was skipped. - * - * Generated from protobuf enum SKIPPED = 7; - */ - const SKIPPED = 7; - /** - * The Job was ignored. - * - * Generated from protobuf enum IGNORED = 8; - */ - const IGNORED = 8; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::PENDING => 'PENDING', - self::DISABLED => 'DISABLED', - self::IN_PROGRESS => 'IN_PROGRESS', - self::SUCCEEDED => 'SUCCEEDED', - self::FAILED => 'FAILED', - self::ABORTED => 'ABORTED', - self::SKIPPED => 'SKIPPED', - self::IGNORED => 'IGNORED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Google\Cloud\Deploy\V1\Job_State::class); - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/JobRun.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/JobRun.php deleted file mode 100644 index 2a9a5fa9bc5e..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/JobRun.php +++ /dev/null @@ -1,589 +0,0 @@ -google.cloud.deploy.v1.JobRun - */ -class JobRun extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Name of the `JobRun`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{releases}/rollouts/{rollouts}/jobRuns/{uuid}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $name = ''; - /** - * Output only. Unique identifier of the `JobRun`. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Output only. ID of the `Rollout` phase this `JobRun` belongs in. - * - * Generated from protobuf field string phase_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $phase_id = ''; - /** - * Output only. ID of the `Rollout` job this `JobRun` corresponds to. - * - * Generated from protobuf field string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $job_id = ''; - /** - * Output only. Time at which the `JobRun` was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Time at which the `JobRun` was started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $start_time = null; - /** - * Output only. Time at which the `JobRun` ended. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Output only. The current state of the `JobRun`. - * - * Generated from protobuf field .google.cloud.deploy.v1.JobRun.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $etag = ''; - protected $job_run; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Optional. Name of the `JobRun`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{releases}/rollouts/{rollouts}/jobRuns/{uuid}`. - * @type string $uid - * Output only. Unique identifier of the `JobRun`. - * @type string $phase_id - * Output only. ID of the `Rollout` phase this `JobRun` belongs in. - * @type string $job_id - * Output only. ID of the `Rollout` job this `JobRun` corresponds to. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time at which the `JobRun` was created. - * @type \Google\Protobuf\Timestamp $start_time - * Output only. Time at which the `JobRun` was started. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. Time at which the `JobRun` ended. - * @type int $state - * Output only. The current state of the `JobRun`. - * @type \Google\Cloud\Deploy\V1\DeployJobRun $deploy_job_run - * Output only. Information specific to a deploy `JobRun`. - * @type \Google\Cloud\Deploy\V1\VerifyJobRun $verify_job_run - * Output only. Information specific to a verify `JobRun`. - * @type \Google\Cloud\Deploy\V1\PredeployJobRun $predeploy_job_run - * Output only. Information specific to a predeploy `JobRun`. - * @type \Google\Cloud\Deploy\V1\PostdeployJobRun $postdeploy_job_run - * Output only. Information specific to a postdeploy `JobRun`. - * @type \Google\Cloud\Deploy\V1\CreateChildRolloutJobRun $create_child_rollout_job_run - * Output only. Information specific to a createChildRollout `JobRun`. - * @type \Google\Cloud\Deploy\V1\AdvanceChildRolloutJobRun $advance_child_rollout_job_run - * Output only. Information specific to an advanceChildRollout `JobRun` - * @type string $etag - * Output only. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Name of the `JobRun`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{releases}/rollouts/{rollouts}/jobRuns/{uuid}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Optional. Name of the `JobRun`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{releases}/rollouts/{rollouts}/jobRuns/{uuid}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. Unique identifier of the `JobRun`. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. Unique identifier of the `JobRun`. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. ID of the `Rollout` phase this `JobRun` belongs in. - * - * Generated from protobuf field string phase_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getPhaseId() - { - return $this->phase_id; - } - - /** - * Output only. ID of the `Rollout` phase this `JobRun` belongs in. - * - * Generated from protobuf field string phase_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setPhaseId($var) - { - GPBUtil::checkString($var, True); - $this->phase_id = $var; - - return $this; - } - - /** - * Output only. ID of the `Rollout` job this `JobRun` corresponds to. - * - * Generated from protobuf field string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getJobId() - { - return $this->job_id; - } - - /** - * Output only. ID of the `Rollout` job this `JobRun` corresponds to. - * - * Generated from protobuf field string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setJobId($var) - { - GPBUtil::checkString($var, True); - $this->job_id = $var; - - return $this; - } - - /** - * Output only. Time at which the `JobRun` was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time at which the `JobRun` was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. Time at which the `JobRun` was started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * Output only. Time at which the `JobRun` was started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * Output only. Time at which the `JobRun` ended. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Output only. Time at which the `JobRun` ended. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Output only. The current state of the `JobRun`. - * - * Generated from protobuf field .google.cloud.deploy.v1.JobRun.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The current state of the `JobRun`. - * - * Generated from protobuf field .google.cloud.deploy.v1.JobRun.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\JobRun\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. Information specific to a deploy `JobRun`. - * - * Generated from protobuf field .google.cloud.deploy.v1.DeployJobRun deploy_job_run = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\DeployJobRun|null - */ - public function getDeployJobRun() - { - return $this->readOneof(9); - } - - public function hasDeployJobRun() - { - return $this->hasOneof(9); - } - - /** - * Output only. Information specific to a deploy `JobRun`. - * - * Generated from protobuf field .google.cloud.deploy.v1.DeployJobRun deploy_job_run = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\DeployJobRun $var - * @return $this - */ - public function setDeployJobRun($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\DeployJobRun::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * Output only. Information specific to a verify `JobRun`. - * - * Generated from protobuf field .google.cloud.deploy.v1.VerifyJobRun verify_job_run = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\VerifyJobRun|null - */ - public function getVerifyJobRun() - { - return $this->readOneof(10); - } - - public function hasVerifyJobRun() - { - return $this->hasOneof(10); - } - - /** - * Output only. Information specific to a verify `JobRun`. - * - * Generated from protobuf field .google.cloud.deploy.v1.VerifyJobRun verify_job_run = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\VerifyJobRun $var - * @return $this - */ - public function setVerifyJobRun($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\VerifyJobRun::class); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * Output only. Information specific to a predeploy `JobRun`. - * - * Generated from protobuf field .google.cloud.deploy.v1.PredeployJobRun predeploy_job_run = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\PredeployJobRun|null - */ - public function getPredeployJobRun() - { - return $this->readOneof(14); - } - - public function hasPredeployJobRun() - { - return $this->hasOneof(14); - } - - /** - * Output only. Information specific to a predeploy `JobRun`. - * - * Generated from protobuf field .google.cloud.deploy.v1.PredeployJobRun predeploy_job_run = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\PredeployJobRun $var - * @return $this - */ - public function setPredeployJobRun($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\PredeployJobRun::class); - $this->writeOneof(14, $var); - - return $this; - } - - /** - * Output only. Information specific to a postdeploy `JobRun`. - * - * Generated from protobuf field .google.cloud.deploy.v1.PostdeployJobRun postdeploy_job_run = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\PostdeployJobRun|null - */ - public function getPostdeployJobRun() - { - return $this->readOneof(15); - } - - public function hasPostdeployJobRun() - { - return $this->hasOneof(15); - } - - /** - * Output only. Information specific to a postdeploy `JobRun`. - * - * Generated from protobuf field .google.cloud.deploy.v1.PostdeployJobRun postdeploy_job_run = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\PostdeployJobRun $var - * @return $this - */ - public function setPostdeployJobRun($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\PostdeployJobRun::class); - $this->writeOneof(15, $var); - - return $this; - } - - /** - * Output only. Information specific to a createChildRollout `JobRun`. - * - * Generated from protobuf field .google.cloud.deploy.v1.CreateChildRolloutJobRun create_child_rollout_job_run = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\CreateChildRolloutJobRun|null - */ - public function getCreateChildRolloutJobRun() - { - return $this->readOneof(12); - } - - public function hasCreateChildRolloutJobRun() - { - return $this->hasOneof(12); - } - - /** - * Output only. Information specific to a createChildRollout `JobRun`. - * - * Generated from protobuf field .google.cloud.deploy.v1.CreateChildRolloutJobRun create_child_rollout_job_run = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\CreateChildRolloutJobRun $var - * @return $this - */ - public function setCreateChildRolloutJobRun($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CreateChildRolloutJobRun::class); - $this->writeOneof(12, $var); - - return $this; - } - - /** - * Output only. Information specific to an advanceChildRollout `JobRun` - * - * Generated from protobuf field .google.cloud.deploy.v1.AdvanceChildRolloutJobRun advance_child_rollout_job_run = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\AdvanceChildRolloutJobRun|null - */ - public function getAdvanceChildRolloutJobRun() - { - return $this->readOneof(13); - } - - public function hasAdvanceChildRolloutJobRun() - { - return $this->hasOneof(13); - } - - /** - * Output only. Information specific to an advanceChildRollout `JobRun` - * - * Generated from protobuf field .google.cloud.deploy.v1.AdvanceChildRolloutJobRun advance_child_rollout_job_run = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\AdvanceChildRolloutJobRun $var - * @return $this - */ - public function setAdvanceChildRolloutJobRun($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\AdvanceChildRolloutJobRun::class); - $this->writeOneof(13, $var); - - return $this; - } - - /** - * Output only. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Output only. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * @return string - */ - public function getJobRun() - { - return $this->whichOneof("job_run"); - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/JobRun/State.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/JobRun/State.php deleted file mode 100644 index df8b7b7d61cf..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/JobRun/State.php +++ /dev/null @@ -1,85 +0,0 @@ -google.cloud.deploy.v1.JobRun.State - */ -class State -{ - /** - * The `JobRun` has an unspecified state. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The `JobRun` is in progress. - * - * Generated from protobuf enum IN_PROGRESS = 1; - */ - const IN_PROGRESS = 1; - /** - * The `JobRun` has succeeded. - * - * Generated from protobuf enum SUCCEEDED = 2; - */ - const SUCCEEDED = 2; - /** - * The `JobRun` has failed. - * - * Generated from protobuf enum FAILED = 3; - */ - const FAILED = 3; - /** - * The `JobRun` is terminating. - * - * Generated from protobuf enum TERMINATING = 4; - */ - const TERMINATING = 4; - /** - * The `JobRun` was terminated. - * - * Generated from protobuf enum TERMINATED = 5; - */ - const TERMINATED = 5; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::IN_PROGRESS => 'IN_PROGRESS', - self::SUCCEEDED => 'SUCCEEDED', - self::FAILED => 'FAILED', - self::TERMINATING => 'TERMINATING', - self::TERMINATED => 'TERMINATED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Google\Cloud\Deploy\V1\JobRun_State::class); - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/JobRunNotificationEvent.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/JobRunNotificationEvent.php deleted file mode 100644 index 74416dde71d6..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/JobRunNotificationEvent.php +++ /dev/null @@ -1,341 +0,0 @@ -google.cloud.deploy.v1.JobRunNotificationEvent - */ -class JobRunNotificationEvent extends \Google\Protobuf\Internal\Message -{ - /** - * Debug message for when a notification fails to send. - * - * Generated from protobuf field string message = 1; - */ - protected $message = ''; - /** - * The name of the `JobRun`. - * - * Generated from protobuf field string job_run = 2; - */ - protected $job_run = ''; - /** - * Unique identifier of the `DeliveryPipeline`. - * - * Generated from protobuf field string pipeline_uid = 3; - */ - protected $pipeline_uid = ''; - /** - * Unique identifier of the `Release`. - * - * Generated from protobuf field string release_uid = 4; - */ - protected $release_uid = ''; - /** - * The name of the `Release`. - * - * Generated from protobuf field string release = 8; - */ - protected $release = ''; - /** - * Unique identifier of the `Rollout`. - * - * Generated from protobuf field string rollout_uid = 5; - */ - protected $rollout_uid = ''; - /** - * The name of the `Rollout`. - * - * Generated from protobuf field string rollout = 9; - */ - protected $rollout = ''; - /** - * ID of the `Target`. - * - * Generated from protobuf field string target_id = 6; - */ - protected $target_id = ''; - /** - * Type of this notification, e.g. for a Pub/Sub failure. - * - * Generated from protobuf field .google.cloud.deploy.v1.Type type = 7; - */ - protected $type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $message - * Debug message for when a notification fails to send. - * @type string $job_run - * The name of the `JobRun`. - * @type string $pipeline_uid - * Unique identifier of the `DeliveryPipeline`. - * @type string $release_uid - * Unique identifier of the `Release`. - * @type string $release - * The name of the `Release`. - * @type string $rollout_uid - * Unique identifier of the `Rollout`. - * @type string $rollout - * The name of the `Rollout`. - * @type string $target_id - * ID of the `Target`. - * @type int $type - * Type of this notification, e.g. for a Pub/Sub failure. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\JobrunNotificationPayload::initOnce(); - parent::__construct($data); - } - - /** - * Debug message for when a notification fails to send. - * - * Generated from protobuf field string message = 1; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Debug message for when a notification fails to send. - * - * Generated from protobuf field string message = 1; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * The name of the `JobRun`. - * - * Generated from protobuf field string job_run = 2; - * @return string - */ - public function getJobRun() - { - return $this->job_run; - } - - /** - * The name of the `JobRun`. - * - * Generated from protobuf field string job_run = 2; - * @param string $var - * @return $this - */ - public function setJobRun($var) - { - GPBUtil::checkString($var, True); - $this->job_run = $var; - - return $this; - } - - /** - * Unique identifier of the `DeliveryPipeline`. - * - * Generated from protobuf field string pipeline_uid = 3; - * @return string - */ - public function getPipelineUid() - { - return $this->pipeline_uid; - } - - /** - * Unique identifier of the `DeliveryPipeline`. - * - * Generated from protobuf field string pipeline_uid = 3; - * @param string $var - * @return $this - */ - public function setPipelineUid($var) - { - GPBUtil::checkString($var, True); - $this->pipeline_uid = $var; - - return $this; - } - - /** - * Unique identifier of the `Release`. - * - * Generated from protobuf field string release_uid = 4; - * @return string - */ - public function getReleaseUid() - { - return $this->release_uid; - } - - /** - * Unique identifier of the `Release`. - * - * Generated from protobuf field string release_uid = 4; - * @param string $var - * @return $this - */ - public function setReleaseUid($var) - { - GPBUtil::checkString($var, True); - $this->release_uid = $var; - - return $this; - } - - /** - * The name of the `Release`. - * - * Generated from protobuf field string release = 8; - * @return string - */ - public function getRelease() - { - return $this->release; - } - - /** - * The name of the `Release`. - * - * Generated from protobuf field string release = 8; - * @param string $var - * @return $this - */ - public function setRelease($var) - { - GPBUtil::checkString($var, True); - $this->release = $var; - - return $this; - } - - /** - * Unique identifier of the `Rollout`. - * - * Generated from protobuf field string rollout_uid = 5; - * @return string - */ - public function getRolloutUid() - { - return $this->rollout_uid; - } - - /** - * Unique identifier of the `Rollout`. - * - * Generated from protobuf field string rollout_uid = 5; - * @param string $var - * @return $this - */ - public function setRolloutUid($var) - { - GPBUtil::checkString($var, True); - $this->rollout_uid = $var; - - return $this; - } - - /** - * The name of the `Rollout`. - * - * Generated from protobuf field string rollout = 9; - * @return string - */ - public function getRollout() - { - return $this->rollout; - } - - /** - * The name of the `Rollout`. - * - * Generated from protobuf field string rollout = 9; - * @param string $var - * @return $this - */ - public function setRollout($var) - { - GPBUtil::checkString($var, True); - $this->rollout = $var; - - return $this; - } - - /** - * ID of the `Target`. - * - * Generated from protobuf field string target_id = 6; - * @return string - */ - public function getTargetId() - { - return $this->target_id; - } - - /** - * ID of the `Target`. - * - * Generated from protobuf field string target_id = 6; - * @param string $var - * @return $this - */ - public function setTargetId($var) - { - GPBUtil::checkString($var, True); - $this->target_id = $var; - - return $this; - } - - /** - * Type of this notification, e.g. for a Pub/Sub failure. - * - * Generated from protobuf field .google.cloud.deploy.v1.Type type = 7; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Type of this notification, e.g. for a Pub/Sub failure. - * - * Generated from protobuf field .google.cloud.deploy.v1.Type type = 7; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Type::class); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig.php deleted file mode 100644 index d262b60c61bd..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.deploy.v1.KubernetesConfig - */ -class KubernetesConfig extends \Google\Protobuf\Internal\Message -{ - protected $service_definition; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Deploy\V1\KubernetesConfig\GatewayServiceMesh $gateway_service_mesh - * Kubernetes Gateway API service mesh configuration. - * @type \Google\Cloud\Deploy\V1\KubernetesConfig\ServiceNetworking $service_networking - * Kubernetes Service networking configuration. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Kubernetes Gateway API service mesh configuration. - * - * Generated from protobuf field .google.cloud.deploy.v1.KubernetesConfig.GatewayServiceMesh gateway_service_mesh = 1; - * @return \Google\Cloud\Deploy\V1\KubernetesConfig\GatewayServiceMesh|null - */ - public function getGatewayServiceMesh() - { - return $this->readOneof(1); - } - - public function hasGatewayServiceMesh() - { - return $this->hasOneof(1); - } - - /** - * Kubernetes Gateway API service mesh configuration. - * - * Generated from protobuf field .google.cloud.deploy.v1.KubernetesConfig.GatewayServiceMesh gateway_service_mesh = 1; - * @param \Google\Cloud\Deploy\V1\KubernetesConfig\GatewayServiceMesh $var - * @return $this - */ - public function setGatewayServiceMesh($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\KubernetesConfig\GatewayServiceMesh::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Kubernetes Service networking configuration. - * - * Generated from protobuf field .google.cloud.deploy.v1.KubernetesConfig.ServiceNetworking service_networking = 2; - * @return \Google\Cloud\Deploy\V1\KubernetesConfig\ServiceNetworking|null - */ - public function getServiceNetworking() - { - return $this->readOneof(2); - } - - public function hasServiceNetworking() - { - return $this->hasOneof(2); - } - - /** - * Kubernetes Service networking configuration. - * - * Generated from protobuf field .google.cloud.deploy.v1.KubernetesConfig.ServiceNetworking service_networking = 2; - * @param \Google\Cloud\Deploy\V1\KubernetesConfig\ServiceNetworking $var - * @return $this - */ - public function setServiceNetworking($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\KubernetesConfig\ServiceNetworking::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getServiceDefinition() - { - return $this->whichOneof("service_definition"); - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig/GatewayServiceMesh.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig/GatewayServiceMesh.php deleted file mode 100644 index 389ccee6e253..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig/GatewayServiceMesh.php +++ /dev/null @@ -1,348 +0,0 @@ -google.cloud.deploy.v1.KubernetesConfig.GatewayServiceMesh - */ -class GatewayServiceMesh extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the Gateway API HTTPRoute. - * - * Generated from protobuf field string http_route = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $http_route = ''; - /** - * Required. Name of the Kubernetes Service. - * - * Generated from protobuf field string service = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $service = ''; - /** - * Required. Name of the Kubernetes Deployment whose traffic is managed by - * the specified HTTPRoute and Service. - * - * Generated from protobuf field string deployment = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $deployment = ''; - /** - * Optional. The time to wait for route updates to propagate. The maximum - * configurable time is 3 hours, in seconds format. If unspecified, there is - * no wait time. - * - * Generated from protobuf field .google.protobuf.Duration route_update_wait_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $route_update_wait_time = null; - /** - * Optional. The amount of time to migrate traffic back from the canary - * Service to the original Service during the stable phase deployment. If - * specified, must be between 15s and 3600s. If unspecified, there is no - * cutback time. - * - * Generated from protobuf field .google.protobuf.Duration stable_cutback_duration = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $stable_cutback_duration = null; - /** - * Optional. The label to use when selecting Pods for the Deployment and - * Service resources. This label must already be present in both resources. - * - * Generated from protobuf field string pod_selector_label = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $pod_selector_label = ''; - /** - * Optional. Route destinations allow configuring the Gateway API HTTPRoute - * to be deployed to additional clusters. This option is available for - * multi-cluster service mesh set ups that require the route to exist in the - * clusters that call the service. If unspecified, the HTTPRoute will only - * be deployed to the Target cluster. - * - * Generated from protobuf field .google.cloud.deploy.v1.KubernetesConfig.GatewayServiceMesh.RouteDestinations route_destinations = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $route_destinations = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $http_route - * Required. Name of the Gateway API HTTPRoute. - * @type string $service - * Required. Name of the Kubernetes Service. - * @type string $deployment - * Required. Name of the Kubernetes Deployment whose traffic is managed by - * the specified HTTPRoute and Service. - * @type \Google\Protobuf\Duration $route_update_wait_time - * Optional. The time to wait for route updates to propagate. The maximum - * configurable time is 3 hours, in seconds format. If unspecified, there is - * no wait time. - * @type \Google\Protobuf\Duration $stable_cutback_duration - * Optional. The amount of time to migrate traffic back from the canary - * Service to the original Service during the stable phase deployment. If - * specified, must be between 15s and 3600s. If unspecified, there is no - * cutback time. - * @type string $pod_selector_label - * Optional. The label to use when selecting Pods for the Deployment and - * Service resources. This label must already be present in both resources. - * @type \Google\Cloud\Deploy\V1\KubernetesConfig\GatewayServiceMesh\RouteDestinations $route_destinations - * Optional. Route destinations allow configuring the Gateway API HTTPRoute - * to be deployed to additional clusters. This option is available for - * multi-cluster service mesh set ups that require the route to exist in the - * clusters that call the service. If unspecified, the HTTPRoute will only - * be deployed to the Target cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the Gateway API HTTPRoute. - * - * Generated from protobuf field string http_route = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getHttpRoute() - { - return $this->http_route; - } - - /** - * Required. Name of the Gateway API HTTPRoute. - * - * Generated from protobuf field string http_route = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setHttpRoute($var) - { - GPBUtil::checkString($var, True); - $this->http_route = $var; - - return $this; - } - - /** - * Required. Name of the Kubernetes Service. - * - * Generated from protobuf field string service = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getService() - { - return $this->service; - } - - /** - * Required. Name of the Kubernetes Service. - * - * Generated from protobuf field string service = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkString($var, True); - $this->service = $var; - - return $this; - } - - /** - * Required. Name of the Kubernetes Deployment whose traffic is managed by - * the specified HTTPRoute and Service. - * - * Generated from protobuf field string deployment = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDeployment() - { - return $this->deployment; - } - - /** - * Required. Name of the Kubernetes Deployment whose traffic is managed by - * the specified HTTPRoute and Service. - * - * Generated from protobuf field string deployment = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDeployment($var) - { - GPBUtil::checkString($var, True); - $this->deployment = $var; - - return $this; - } - - /** - * Optional. The time to wait for route updates to propagate. The maximum - * configurable time is 3 hours, in seconds format. If unspecified, there is - * no wait time. - * - * Generated from protobuf field .google.protobuf.Duration route_update_wait_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Duration|null - */ - public function getRouteUpdateWaitTime() - { - return $this->route_update_wait_time; - } - - public function hasRouteUpdateWaitTime() - { - return isset($this->route_update_wait_time); - } - - public function clearRouteUpdateWaitTime() - { - unset($this->route_update_wait_time); - } - - /** - * Optional. The time to wait for route updates to propagate. The maximum - * configurable time is 3 hours, in seconds format. If unspecified, there is - * no wait time. - * - * Generated from protobuf field .google.protobuf.Duration route_update_wait_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setRouteUpdateWaitTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->route_update_wait_time = $var; - - return $this; - } - - /** - * Optional. The amount of time to migrate traffic back from the canary - * Service to the original Service during the stable phase deployment. If - * specified, must be between 15s and 3600s. If unspecified, there is no - * cutback time. - * - * Generated from protobuf field .google.protobuf.Duration stable_cutback_duration = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Duration|null - */ - public function getStableCutbackDuration() - { - return $this->stable_cutback_duration; - } - - public function hasStableCutbackDuration() - { - return isset($this->stable_cutback_duration); - } - - public function clearStableCutbackDuration() - { - unset($this->stable_cutback_duration); - } - - /** - * Optional. The amount of time to migrate traffic back from the canary - * Service to the original Service during the stable phase deployment. If - * specified, must be between 15s and 3600s. If unspecified, there is no - * cutback time. - * - * Generated from protobuf field .google.protobuf.Duration stable_cutback_duration = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setStableCutbackDuration($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->stable_cutback_duration = $var; - - return $this; - } - - /** - * Optional. The label to use when selecting Pods for the Deployment and - * Service resources. This label must already be present in both resources. - * - * Generated from protobuf field string pod_selector_label = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPodSelectorLabel() - { - return $this->pod_selector_label; - } - - /** - * Optional. The label to use when selecting Pods for the Deployment and - * Service resources. This label must already be present in both resources. - * - * Generated from protobuf field string pod_selector_label = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPodSelectorLabel($var) - { - GPBUtil::checkString($var, True); - $this->pod_selector_label = $var; - - return $this; - } - - /** - * Optional. Route destinations allow configuring the Gateway API HTTPRoute - * to be deployed to additional clusters. This option is available for - * multi-cluster service mesh set ups that require the route to exist in the - * clusters that call the service. If unspecified, the HTTPRoute will only - * be deployed to the Target cluster. - * - * Generated from protobuf field .google.cloud.deploy.v1.KubernetesConfig.GatewayServiceMesh.RouteDestinations route_destinations = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Deploy\V1\KubernetesConfig\GatewayServiceMesh\RouteDestinations|null - */ - public function getRouteDestinations() - { - return $this->route_destinations; - } - - public function hasRouteDestinations() - { - return isset($this->route_destinations); - } - - public function clearRouteDestinations() - { - unset($this->route_destinations); - } - - /** - * Optional. Route destinations allow configuring the Gateway API HTTPRoute - * to be deployed to additional clusters. This option is available for - * multi-cluster service mesh set ups that require the route to exist in the - * clusters that call the service. If unspecified, the HTTPRoute will only - * be deployed to the Target cluster. - * - * Generated from protobuf field .google.cloud.deploy.v1.KubernetesConfig.GatewayServiceMesh.RouteDestinations route_destinations = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Deploy\V1\KubernetesConfig\GatewayServiceMesh\RouteDestinations $var - * @return $this - */ - public function setRouteDestinations($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\KubernetesConfig\GatewayServiceMesh\RouteDestinations::class); - $this->route_destinations = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(GatewayServiceMesh::class, \Google\Cloud\Deploy\V1\KubernetesConfig_GatewayServiceMesh::class); - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig/GatewayServiceMesh/RouteDestinations.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig/GatewayServiceMesh/RouteDestinations.php deleted file mode 100644 index 32712520e1ae..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig/GatewayServiceMesh/RouteDestinations.php +++ /dev/null @@ -1,132 +0,0 @@ -google.cloud.deploy.v1.KubernetesConfig.GatewayServiceMesh.RouteDestinations - */ -class RouteDestinations extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The clusters where the Gateway API HTTPRoute resource will be - * deployed to. Valid entries include the associated entities IDs - * configured in the Target resource and "@self" to include the Target - * cluster. - * - * Generated from protobuf field repeated string destination_ids = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $destination_ids; - /** - * Optional. Whether to propagate the Kubernetes Service to the route - * destination clusters. The Service will always be deployed to the Target - * cluster even if the HTTPRoute is not. This option may be used to - * facilitiate successful DNS lookup in the route destination clusters. - * Can only be set to true if destinations are specified. - * - * Generated from protobuf field bool propagate_service = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $propagate_service = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $destination_ids - * Required. The clusters where the Gateway API HTTPRoute resource will be - * deployed to. Valid entries include the associated entities IDs - * configured in the Target resource and "@self" to include the Target - * cluster. - * @type bool $propagate_service - * Optional. Whether to propagate the Kubernetes Service to the route - * destination clusters. The Service will always be deployed to the Target - * cluster even if the HTTPRoute is not. This option may be used to - * facilitiate successful DNS lookup in the route destination clusters. - * Can only be set to true if destinations are specified. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. The clusters where the Gateway API HTTPRoute resource will be - * deployed to. Valid entries include the associated entities IDs - * configured in the Target resource and "@self" to include the Target - * cluster. - * - * Generated from protobuf field repeated string destination_ids = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDestinationIds() - { - return $this->destination_ids; - } - - /** - * Required. The clusters where the Gateway API HTTPRoute resource will be - * deployed to. Valid entries include the associated entities IDs - * configured in the Target resource and "@self" to include the Target - * cluster. - * - * Generated from protobuf field repeated string destination_ids = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDestinationIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->destination_ids = $arr; - - return $this; - } - - /** - * Optional. Whether to propagate the Kubernetes Service to the route - * destination clusters. The Service will always be deployed to the Target - * cluster even if the HTTPRoute is not. This option may be used to - * facilitiate successful DNS lookup in the route destination clusters. - * Can only be set to true if destinations are specified. - * - * Generated from protobuf field bool propagate_service = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getPropagateService() - { - return $this->propagate_service; - } - - /** - * Optional. Whether to propagate the Kubernetes Service to the route - * destination clusters. The Service will always be deployed to the Target - * cluster even if the HTTPRoute is not. This option may be used to - * facilitiate successful DNS lookup in the route destination clusters. - * Can only be set to true if destinations are specified. - * - * Generated from protobuf field bool propagate_service = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setPropagateService($var) - { - GPBUtil::checkBool($var); - $this->propagate_service = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RouteDestinations::class, \Google\Cloud\Deploy\V1\KubernetesConfig_GatewayServiceMesh_RouteDestinations::class); - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig/ServiceNetworking.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig/ServiceNetworking.php deleted file mode 100644 index 451f3de98923..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/KubernetesConfig/ServiceNetworking.php +++ /dev/null @@ -1,192 +0,0 @@ -google.cloud.deploy.v1.KubernetesConfig.ServiceNetworking - */ -class ServiceNetworking extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the Kubernetes Service. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $service = ''; - /** - * Required. Name of the Kubernetes Deployment whose traffic is managed by - * the specified Service. - * - * Generated from protobuf field string deployment = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $deployment = ''; - /** - * Optional. Whether to disable Pod overprovisioning. If Pod - * overprovisioning is disabled then Cloud Deploy will limit the number of - * total Pods used for the deployment strategy to the number of Pods the - * Deployment has on the cluster. - * - * Generated from protobuf field bool disable_pod_overprovisioning = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $disable_pod_overprovisioning = false; - /** - * Optional. The label to use when selecting Pods for the Deployment - * resource. This label must already be present in the Deployment. - * - * Generated from protobuf field string pod_selector_label = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $pod_selector_label = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $service - * Required. Name of the Kubernetes Service. - * @type string $deployment - * Required. Name of the Kubernetes Deployment whose traffic is managed by - * the specified Service. - * @type bool $disable_pod_overprovisioning - * Optional. Whether to disable Pod overprovisioning. If Pod - * overprovisioning is disabled then Cloud Deploy will limit the number of - * total Pods used for the deployment strategy to the number of Pods the - * Deployment has on the cluster. - * @type string $pod_selector_label - * Optional. The label to use when selecting Pods for the Deployment - * resource. This label must already be present in the Deployment. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the Kubernetes Service. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getService() - { - return $this->service; - } - - /** - * Required. Name of the Kubernetes Service. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkString($var, True); - $this->service = $var; - - return $this; - } - - /** - * Required. Name of the Kubernetes Deployment whose traffic is managed by - * the specified Service. - * - * Generated from protobuf field string deployment = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDeployment() - { - return $this->deployment; - } - - /** - * Required. Name of the Kubernetes Deployment whose traffic is managed by - * the specified Service. - * - * Generated from protobuf field string deployment = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDeployment($var) - { - GPBUtil::checkString($var, True); - $this->deployment = $var; - - return $this; - } - - /** - * Optional. Whether to disable Pod overprovisioning. If Pod - * overprovisioning is disabled then Cloud Deploy will limit the number of - * total Pods used for the deployment strategy to the number of Pods the - * Deployment has on the cluster. - * - * Generated from protobuf field bool disable_pod_overprovisioning = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getDisablePodOverprovisioning() - { - return $this->disable_pod_overprovisioning; - } - - /** - * Optional. Whether to disable Pod overprovisioning. If Pod - * overprovisioning is disabled then Cloud Deploy will limit the number of - * total Pods used for the deployment strategy to the number of Pods the - * Deployment has on the cluster. - * - * Generated from protobuf field bool disable_pod_overprovisioning = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setDisablePodOverprovisioning($var) - { - GPBUtil::checkBool($var); - $this->disable_pod_overprovisioning = $var; - - return $this; - } - - /** - * Optional. The label to use when selecting Pods for the Deployment - * resource. This label must already be present in the Deployment. - * - * Generated from protobuf field string pod_selector_label = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPodSelectorLabel() - { - return $this->pod_selector_label; - } - - /** - * Optional. The label to use when selecting Pods for the Deployment - * resource. This label must already be present in the Deployment. - * - * Generated from protobuf field string pod_selector_label = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPodSelectorLabel($var) - { - GPBUtil::checkString($var, True); - $this->pod_selector_label = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ServiceNetworking::class, \Google\Cloud\Deploy\V1\KubernetesConfig_ServiceNetworking::class); - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationRunsRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationRunsRequest.php deleted file mode 100644 index de808a00b4a8..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationRunsRequest.php +++ /dev/null @@ -1,255 +0,0 @@ -google.cloud.deploy.v1.ListAutomationRunsRequest - */ -class ListAutomationRunsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent `Delivery Pipeline`, which owns this collection of - * automationRuns. Format must be - * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of automationRuns to return. The service may return - * fewer than this value. If unspecified, at most 50 automationRuns will - * be returned. The maximum value is 1000; values above 1000 will be set - * to 1000. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListAutomationRuns` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other provided parameters match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * Filter automationRuns to be returned. All fields can be used in the - * filter. - * - * Generated from protobuf field string filter = 4; - */ - protected $filter = ''; - /** - * Field to sort by. - * - * Generated from protobuf field string order_by = 5; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The parent `Delivery Pipeline`, which owns this collection of - * automationRuns. Format must be - * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}`. Please see - * {@see CloudDeployClient::deliveryPipelineName()} for help formatting this field. - * - * @return \Google\Cloud\Deploy\V1\ListAutomationRunsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent `Delivery Pipeline`, which owns this collection of - * automationRuns. Format must be - * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}`. - * @type int $page_size - * The maximum number of automationRuns to return. The service may return - * fewer than this value. If unspecified, at most 50 automationRuns will - * be returned. The maximum value is 1000; values above 1000 will be set - * to 1000. - * @type string $page_token - * A page token, received from a previous `ListAutomationRuns` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other provided parameters match - * the call that provided the page token. - * @type string $filter - * Filter automationRuns to be returned. All fields can be used in the - * filter. - * @type string $order_by - * Field to sort by. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent `Delivery Pipeline`, which owns this collection of - * automationRuns. Format must be - * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent `Delivery Pipeline`, which owns this collection of - * automationRuns. Format must be - * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of automationRuns to return. The service may return - * fewer than this value. If unspecified, at most 50 automationRuns will - * be returned. The maximum value is 1000; values above 1000 will be set - * to 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of automationRuns to return. The service may return - * fewer than this value. If unspecified, at most 50 automationRuns will - * be returned. The maximum value is 1000; values above 1000 will be set - * to 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListAutomationRuns` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other provided parameters match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListAutomationRuns` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other provided parameters match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Filter automationRuns to be returned. All fields can be used in the - * filter. - * - * Generated from protobuf field string filter = 4; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Filter automationRuns to be returned. All fields can be used in the - * filter. - * - * Generated from protobuf field string filter = 4; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Field to sort by. - * - * Generated from protobuf field string order_by = 5; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Field to sort by. - * - * Generated from protobuf field string order_by = 5; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationRunsResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationRunsResponse.php deleted file mode 100644 index 9a672c0fe1de..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationRunsResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.deploy.v1.ListAutomationRunsResponse - */ -class ListAutomationRunsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `AutomationRuns` objects. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.AutomationRun automation_runs = 1; - */ - private $automation_runs; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Deploy\V1\AutomationRun>|\Google\Protobuf\Internal\RepeatedField $automation_runs - * The `AutomationRuns` objects. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * The `AutomationRuns` objects. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.AutomationRun automation_runs = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAutomationRuns() - { - return $this->automation_runs; - } - - /** - * The `AutomationRuns` objects. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.AutomationRun automation_runs = 1; - * @param array<\Google\Cloud\Deploy\V1\AutomationRun>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAutomationRuns($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\AutomationRun::class); - $this->automation_runs = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationsRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationsRequest.php deleted file mode 100644 index beacb32f80d0..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationsRequest.php +++ /dev/null @@ -1,255 +0,0 @@ -google.cloud.deploy.v1.ListAutomationsRequest - */ -class ListAutomationsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent `Delivery Pipeline`, which owns this collection of - * automations. Format must be - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of automations to return. The service may return - * fewer than this value. If unspecified, at most 50 automations will - * be returned. The maximum value is 1000; values above 1000 will be set - * to 1000. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListAutomations` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other provided parameters match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * Filter automations to be returned. All fields can be used in the - * filter. - * - * Generated from protobuf field string filter = 4; - */ - protected $filter = ''; - /** - * Field to sort by. - * - * Generated from protobuf field string order_by = 5; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The parent `Delivery Pipeline`, which owns this collection of - * automations. Format must be - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. Please see - * {@see CloudDeployClient::deliveryPipelineName()} for help formatting this field. - * - * @return \Google\Cloud\Deploy\V1\ListAutomationsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent `Delivery Pipeline`, which owns this collection of - * automations. Format must be - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. - * @type int $page_size - * The maximum number of automations to return. The service may return - * fewer than this value. If unspecified, at most 50 automations will - * be returned. The maximum value is 1000; values above 1000 will be set - * to 1000. - * @type string $page_token - * A page token, received from a previous `ListAutomations` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other provided parameters match - * the call that provided the page token. - * @type string $filter - * Filter automations to be returned. All fields can be used in the - * filter. - * @type string $order_by - * Field to sort by. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent `Delivery Pipeline`, which owns this collection of - * automations. Format must be - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent `Delivery Pipeline`, which owns this collection of - * automations. Format must be - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of automations to return. The service may return - * fewer than this value. If unspecified, at most 50 automations will - * be returned. The maximum value is 1000; values above 1000 will be set - * to 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of automations to return. The service may return - * fewer than this value. If unspecified, at most 50 automations will - * be returned. The maximum value is 1000; values above 1000 will be set - * to 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListAutomations` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other provided parameters match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListAutomations` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other provided parameters match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Filter automations to be returned. All fields can be used in the - * filter. - * - * Generated from protobuf field string filter = 4; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Filter automations to be returned. All fields can be used in the - * filter. - * - * Generated from protobuf field string filter = 4; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Field to sort by. - * - * Generated from protobuf field string order_by = 5; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Field to sort by. - * - * Generated from protobuf field string order_by = 5; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationsResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationsResponse.php deleted file mode 100644 index c14853d6404e..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListAutomationsResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.deploy.v1.ListAutomationsResponse - */ -class ListAutomationsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `Automation` objects. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.Automation automations = 1; - */ - private $automations; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Deploy\V1\Automation>|\Google\Protobuf\Internal\RepeatedField $automations - * The `Automation` objects. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * The `Automation` objects. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.Automation automations = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAutomations() - { - return $this->automations; - } - - /** - * The `Automation` objects. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.Automation automations = 1; - * @param array<\Google\Cloud\Deploy\V1\Automation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAutomations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\Automation::class); - $this->automations = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListCustomTargetTypesRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListCustomTargetTypesRequest.php deleted file mode 100644 index 375fe11940d1..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListCustomTargetTypesRequest.php +++ /dev/null @@ -1,254 +0,0 @@ -google.cloud.deploy.v1.ListCustomTargetTypesRequest - */ -class ListCustomTargetTypesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent that owns this collection of custom target types. - * Format must be `projects/{project_id}/locations/{location_name}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of `CustomTargetType` objects to return. The - * service may return fewer than this value. If unspecified, at most 50 - * `CustomTargetType` objects will be returned. The maximum value is 1000; - * values above 1000 will be set to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListCustomTargetTypes` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other provided parameters match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Filter custom target types to be returned. See - * https://google.aip.dev/160 for more details. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Field to sort by. See https://google.aip.dev/132#ordering for - * more details. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The parent that owns this collection of custom target types. - * Format must be `projects/{project_id}/locations/{location_name}`. Please see - * {@see CloudDeployClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\Deploy\V1\ListCustomTargetTypesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent that owns this collection of custom target types. - * Format must be `projects/{project_id}/locations/{location_name}`. - * @type int $page_size - * Optional. The maximum number of `CustomTargetType` objects to return. The - * service may return fewer than this value. If unspecified, at most 50 - * `CustomTargetType` objects will be returned. The maximum value is 1000; - * values above 1000 will be set to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListCustomTargetTypes` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other provided parameters match - * the call that provided the page token. - * @type string $filter - * Optional. Filter custom target types to be returned. See - * https://google.aip.dev/160 for more details. - * @type string $order_by - * Optional. Field to sort by. See https://google.aip.dev/132#ordering for - * more details. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent that owns this collection of custom target types. - * Format must be `projects/{project_id}/locations/{location_name}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent that owns this collection of custom target types. - * Format must be `projects/{project_id}/locations/{location_name}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of `CustomTargetType` objects to return. The - * service may return fewer than this value. If unspecified, at most 50 - * `CustomTargetType` objects will be returned. The maximum value is 1000; - * values above 1000 will be set to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of `CustomTargetType` objects to return. The - * service may return fewer than this value. If unspecified, at most 50 - * `CustomTargetType` objects will be returned. The maximum value is 1000; - * values above 1000 will be set to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListCustomTargetTypes` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other provided parameters match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListCustomTargetTypes` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other provided parameters match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Filter custom target types to be returned. See - * https://google.aip.dev/160 for more details. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filter custom target types to be returned. See - * https://google.aip.dev/160 for more details. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Field to sort by. See https://google.aip.dev/132#ordering for - * more details. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Field to sort by. See https://google.aip.dev/132#ordering for - * more details. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListCustomTargetTypesResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListCustomTargetTypesResponse.php deleted file mode 100644 index 0b7aed0e438f..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListCustomTargetTypesResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.deploy.v1.ListCustomTargetTypesResponse - */ -class ListCustomTargetTypesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `CustomTargetType` objects. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.CustomTargetType custom_target_types = 1; - */ - private $custom_target_types; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Deploy\V1\CustomTargetType>|\Google\Protobuf\Internal\RepeatedField $custom_target_types - * The `CustomTargetType` objects. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * The `CustomTargetType` objects. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.CustomTargetType custom_target_types = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCustomTargetTypes() - { - return $this->custom_target_types; - } - - /** - * The `CustomTargetType` objects. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.CustomTargetType custom_target_types = 1; - * @param array<\Google\Cloud\Deploy\V1\CustomTargetType>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCustomTargetTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\CustomTargetType::class); - $this->custom_target_types = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListDeliveryPipelinesRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListDeliveryPipelinesRequest.php deleted file mode 100644 index 5718d4cb4190..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListDeliveryPipelinesRequest.php +++ /dev/null @@ -1,250 +0,0 @@ -google.cloud.deploy.v1.ListDeliveryPipelinesRequest - */ -class ListDeliveryPipelinesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of pipelines. Format must - * be `projects/{project_id}/locations/{location_name}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of pipelines to return. The service may return - * fewer than this value. If unspecified, at most 50 pipelines will - * be returned. The maximum value is 1000; values above 1000 will be set - * to 1000. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListDeliveryPipelines` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other provided parameters match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * Filter pipelines to be returned. See https://google.aip.dev/160 for more - * details. - * - * Generated from protobuf field string filter = 4; - */ - protected $filter = ''; - /** - * Field to sort by. See https://google.aip.dev/132#ordering for more details. - * - * Generated from protobuf field string order_by = 5; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The parent, which owns this collection of pipelines. Format must - * be `projects/{project_id}/locations/{location_name}`. Please see - * {@see CloudDeployClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\Deploy\V1\ListDeliveryPipelinesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of pipelines. Format must - * be `projects/{project_id}/locations/{location_name}`. - * @type int $page_size - * The maximum number of pipelines to return. The service may return - * fewer than this value. If unspecified, at most 50 pipelines will - * be returned. The maximum value is 1000; values above 1000 will be set - * to 1000. - * @type string $page_token - * A page token, received from a previous `ListDeliveryPipelines` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other provided parameters match - * the call that provided the page token. - * @type string $filter - * Filter pipelines to be returned. See https://google.aip.dev/160 for more - * details. - * @type string $order_by - * Field to sort by. See https://google.aip.dev/132#ordering for more details. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of pipelines. Format must - * be `projects/{project_id}/locations/{location_name}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent, which owns this collection of pipelines. Format must - * be `projects/{project_id}/locations/{location_name}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of pipelines to return. The service may return - * fewer than this value. If unspecified, at most 50 pipelines will - * be returned. The maximum value is 1000; values above 1000 will be set - * to 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of pipelines to return. The service may return - * fewer than this value. If unspecified, at most 50 pipelines will - * be returned. The maximum value is 1000; values above 1000 will be set - * to 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListDeliveryPipelines` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other provided parameters match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListDeliveryPipelines` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other provided parameters match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Filter pipelines to be returned. See https://google.aip.dev/160 for more - * details. - * - * Generated from protobuf field string filter = 4; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Filter pipelines to be returned. See https://google.aip.dev/160 for more - * details. - * - * Generated from protobuf field string filter = 4; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Field to sort by. See https://google.aip.dev/132#ordering for more details. - * - * Generated from protobuf field string order_by = 5; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Field to sort by. See https://google.aip.dev/132#ordering for more details. - * - * Generated from protobuf field string order_by = 5; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListDeliveryPipelinesResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListDeliveryPipelinesResponse.php deleted file mode 100644 index aade7781c825..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListDeliveryPipelinesResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.deploy.v1.ListDeliveryPipelinesResponse - */ -class ListDeliveryPipelinesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `DeliveryPipeline` objects. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.DeliveryPipeline delivery_pipelines = 1; - */ - private $delivery_pipelines; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Deploy\V1\DeliveryPipeline>|\Google\Protobuf\Internal\RepeatedField $delivery_pipelines - * The `DeliveryPipeline` objects. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * The `DeliveryPipeline` objects. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.DeliveryPipeline delivery_pipelines = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDeliveryPipelines() - { - return $this->delivery_pipelines; - } - - /** - * The `DeliveryPipeline` objects. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.DeliveryPipeline delivery_pipelines = 1; - * @param array<\Google\Cloud\Deploy\V1\DeliveryPipeline>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDeliveryPipelines($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\DeliveryPipeline::class); - $this->delivery_pipelines = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListDeployPoliciesRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListDeployPoliciesRequest.php deleted file mode 100644 index 9076ebd4a6df..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListDeployPoliciesRequest.php +++ /dev/null @@ -1,250 +0,0 @@ -google.cloud.deploy.v1.ListDeployPoliciesRequest - */ -class ListDeployPoliciesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of deploy policies. Format - * must be `projects/{project_id}/locations/{location_name}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of deploy policies to return. The service may return - * fewer than this value. If unspecified, at most 50 deploy policies will - * be returned. The maximum value is 1000; values above 1000 will be set - * to 1000. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListDeployPolicies` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other provided parameters match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * Filter deploy policies to be returned. See https://google.aip.dev/160 for - * more details. All fields can be used in the filter. - * - * Generated from protobuf field string filter = 4; - */ - protected $filter = ''; - /** - * Field to sort by. See https://google.aip.dev/132#ordering for more details. - * - * Generated from protobuf field string order_by = 5; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The parent, which owns this collection of deploy policies. Format - * must be `projects/{project_id}/locations/{location_name}`. Please see - * {@see CloudDeployClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\Deploy\V1\ListDeployPoliciesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of deploy policies. Format - * must be `projects/{project_id}/locations/{location_name}`. - * @type int $page_size - * The maximum number of deploy policies to return. The service may return - * fewer than this value. If unspecified, at most 50 deploy policies will - * be returned. The maximum value is 1000; values above 1000 will be set - * to 1000. - * @type string $page_token - * A page token, received from a previous `ListDeployPolicies` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other provided parameters match - * the call that provided the page token. - * @type string $filter - * Filter deploy policies to be returned. See https://google.aip.dev/160 for - * more details. All fields can be used in the filter. - * @type string $order_by - * Field to sort by. See https://google.aip.dev/132#ordering for more details. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of deploy policies. Format - * must be `projects/{project_id}/locations/{location_name}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent, which owns this collection of deploy policies. Format - * must be `projects/{project_id}/locations/{location_name}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of deploy policies to return. The service may return - * fewer than this value. If unspecified, at most 50 deploy policies will - * be returned. The maximum value is 1000; values above 1000 will be set - * to 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of deploy policies to return. The service may return - * fewer than this value. If unspecified, at most 50 deploy policies will - * be returned. The maximum value is 1000; values above 1000 will be set - * to 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous `ListDeployPolicies` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other provided parameters match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListDeployPolicies` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other provided parameters match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Filter deploy policies to be returned. See https://google.aip.dev/160 for - * more details. All fields can be used in the filter. - * - * Generated from protobuf field string filter = 4; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Filter deploy policies to be returned. See https://google.aip.dev/160 for - * more details. All fields can be used in the filter. - * - * Generated from protobuf field string filter = 4; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Field to sort by. See https://google.aip.dev/132#ordering for more details. - * - * Generated from protobuf field string order_by = 5; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Field to sort by. See https://google.aip.dev/132#ordering for more details. - * - * Generated from protobuf field string order_by = 5; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListDeployPoliciesResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListDeployPoliciesResponse.php deleted file mode 100644 index 4e5dda202341..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListDeployPoliciesResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.deploy.v1.ListDeployPoliciesResponse - */ -class ListDeployPoliciesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `DeployPolicy` objects. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.DeployPolicy deploy_policies = 1; - */ - private $deploy_policies; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Deploy\V1\DeployPolicy>|\Google\Protobuf\Internal\RepeatedField $deploy_policies - * The `DeployPolicy` objects. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * The `DeployPolicy` objects. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.DeployPolicy deploy_policies = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDeployPolicies() - { - return $this->deploy_policies; - } - - /** - * The `DeployPolicy` objects. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.DeployPolicy deploy_policies = 1; - * @param array<\Google\Cloud\Deploy\V1\DeployPolicy>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDeployPolicies($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\DeployPolicy::class); - $this->deploy_policies = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListJobRunsRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListJobRunsRequest.php deleted file mode 100644 index de678b046e48..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListJobRunsRequest.php +++ /dev/null @@ -1,249 +0,0 @@ -google.cloud.deploy.v1.ListJobRunsRequest - */ -class ListJobRunsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The `Rollout` which owns this collection of `JobRun` objects. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of `JobRun` objects to return. The service may - * return fewer than this value. If unspecified, at most 50 `JobRun` objects - * will be returned. The maximum value is 1000; values above 1000 will be set - * to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListJobRuns` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other provided parameters match the call that provided - * the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Filter results to be returned. See https://google.aip.dev/160 for - * more details. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Field to sort by. See https://google.aip.dev/132#ordering for - * more details. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The `Rollout` which owns this collection of `JobRun` objects. Please see - * {@see CloudDeployClient::rolloutName()} for help formatting this field. - * - * @return \Google\Cloud\Deploy\V1\ListJobRunsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The `Rollout` which owns this collection of `JobRun` objects. - * @type int $page_size - * Optional. The maximum number of `JobRun` objects to return. The service may - * return fewer than this value. If unspecified, at most 50 `JobRun` objects - * will be returned. The maximum value is 1000; values above 1000 will be set - * to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListJobRuns` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other provided parameters match the call that provided - * the page token. - * @type string $filter - * Optional. Filter results to be returned. See https://google.aip.dev/160 for - * more details. - * @type string $order_by - * Optional. Field to sort by. See https://google.aip.dev/132#ordering for - * more details. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. The `Rollout` which owns this collection of `JobRun` objects. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The `Rollout` which owns this collection of `JobRun` objects. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of `JobRun` objects to return. The service may - * return fewer than this value. If unspecified, at most 50 `JobRun` objects - * will be returned. The maximum value is 1000; values above 1000 will be set - * to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of `JobRun` objects to return. The service may - * return fewer than this value. If unspecified, at most 50 `JobRun` objects - * will be returned. The maximum value is 1000; values above 1000 will be set - * to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListJobRuns` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other provided parameters match the call that provided - * the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListJobRuns` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other provided parameters match the call that provided - * the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Filter results to be returned. See https://google.aip.dev/160 for - * more details. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filter results to be returned. See https://google.aip.dev/160 for - * more details. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Field to sort by. See https://google.aip.dev/132#ordering for - * more details. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Field to sort by. See https://google.aip.dev/132#ordering for - * more details. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListJobRunsResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListJobRunsResponse.php deleted file mode 100644 index c62986ce2dbe..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListJobRunsResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.deploy.v1.ListJobRunsResponse - */ -class ListJobRunsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `JobRun` objects. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.JobRun job_runs = 1; - */ - private $job_runs; - /** - * A token, which can be sent as `page_token` to retrieve the next page. If - * this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Deploy\V1\JobRun>|\Google\Protobuf\Internal\RepeatedField $job_runs - * The `JobRun` objects. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. If - * this field is omitted, there are no subsequent pages. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Locations that could not be reached - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * The `JobRun` objects. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.JobRun job_runs = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getJobRuns() - { - return $this->job_runs; - } - - /** - * The `JobRun` objects. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.JobRun job_runs = 1; - * @param array<\Google\Cloud\Deploy\V1\JobRun>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setJobRuns($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\JobRun::class); - $this->job_runs = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. If - * this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. If - * this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations that could not be reached - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListReleasesRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListReleasesRequest.php deleted file mode 100644 index a133cfc5e498..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListReleasesRequest.php +++ /dev/null @@ -1,254 +0,0 @@ -google.cloud.deploy.v1.ListReleasesRequest - */ -class ListReleasesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The `DeliveryPipeline` which owns this collection of `Release` - * objects. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of `Release` objects to return. The service - * may return fewer than this value. If unspecified, at most 50 `Release` - * objects will be returned. The maximum value is 1000; values above 1000 will - * be set to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListReleases` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other provided parameters match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Filter releases to be returned. See https://google.aip.dev/160 - * for more details. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Field to sort by. See https://google.aip.dev/132#ordering for - * more details. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The `DeliveryPipeline` which owns this collection of `Release` - * objects. Please see - * {@see CloudDeployClient::deliveryPipelineName()} for help formatting this field. - * - * @return \Google\Cloud\Deploy\V1\ListReleasesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The `DeliveryPipeline` which owns this collection of `Release` - * objects. - * @type int $page_size - * Optional. The maximum number of `Release` objects to return. The service - * may return fewer than this value. If unspecified, at most 50 `Release` - * objects will be returned. The maximum value is 1000; values above 1000 will - * be set to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListReleases` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other provided parameters match - * the call that provided the page token. - * @type string $filter - * Optional. Filter releases to be returned. See https://google.aip.dev/160 - * for more details. - * @type string $order_by - * Optional. Field to sort by. See https://google.aip.dev/132#ordering for - * more details. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. The `DeliveryPipeline` which owns this collection of `Release` - * objects. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The `DeliveryPipeline` which owns this collection of `Release` - * objects. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of `Release` objects to return. The service - * may return fewer than this value. If unspecified, at most 50 `Release` - * objects will be returned. The maximum value is 1000; values above 1000 will - * be set to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of `Release` objects to return. The service - * may return fewer than this value. If unspecified, at most 50 `Release` - * objects will be returned. The maximum value is 1000; values above 1000 will - * be set to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListReleases` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other provided parameters match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListReleases` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other provided parameters match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Filter releases to be returned. See https://google.aip.dev/160 - * for more details. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filter releases to be returned. See https://google.aip.dev/160 - * for more details. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Field to sort by. See https://google.aip.dev/132#ordering for - * more details. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Field to sort by. See https://google.aip.dev/132#ordering for - * more details. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListReleasesResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListReleasesResponse.php deleted file mode 100644 index 72798b69fe4c..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListReleasesResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.deploy.v1.ListReleasesResponse - */ -class ListReleasesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `Release` objects. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.Release releases = 1; - */ - private $releases; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Deploy\V1\Release>|\Google\Protobuf\Internal\RepeatedField $releases - * The `Release` objects. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * The `Release` objects. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.Release releases = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getReleases() - { - return $this->releases; - } - - /** - * The `Release` objects. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.Release releases = 1; - * @param array<\Google\Cloud\Deploy\V1\Release>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setReleases($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\Release::class); - $this->releases = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListRolloutsRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListRolloutsRequest.php deleted file mode 100644 index 6209b04be8b5..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListRolloutsRequest.php +++ /dev/null @@ -1,249 +0,0 @@ -google.cloud.deploy.v1.ListRolloutsRequest - */ -class ListRolloutsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The `Release` which owns this collection of `Rollout` objects. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of `Rollout` objects to return. The service - * may return fewer than this value. If unspecified, at most 50 `Rollout` - * objects will be returned. The maximum value is 1000; values above 1000 will - * be set to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListRollouts` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other provided parameters match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Filter rollouts to be returned. See https://google.aip.dev/160 - * for more details. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Field to sort by. See https://google.aip.dev/132#ordering for - * more details. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The `Release` which owns this collection of `Rollout` objects. Please see - * {@see CloudDeployClient::releaseName()} for help formatting this field. - * - * @return \Google\Cloud\Deploy\V1\ListRolloutsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The `Release` which owns this collection of `Rollout` objects. - * @type int $page_size - * Optional. The maximum number of `Rollout` objects to return. The service - * may return fewer than this value. If unspecified, at most 50 `Rollout` - * objects will be returned. The maximum value is 1000; values above 1000 will - * be set to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListRollouts` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other provided parameters match - * the call that provided the page token. - * @type string $filter - * Optional. Filter rollouts to be returned. See https://google.aip.dev/160 - * for more details. - * @type string $order_by - * Optional. Field to sort by. See https://google.aip.dev/132#ordering for - * more details. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. The `Release` which owns this collection of `Rollout` objects. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The `Release` which owns this collection of `Rollout` objects. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of `Rollout` objects to return. The service - * may return fewer than this value. If unspecified, at most 50 `Rollout` - * objects will be returned. The maximum value is 1000; values above 1000 will - * be set to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of `Rollout` objects to return. The service - * may return fewer than this value. If unspecified, at most 50 `Rollout` - * objects will be returned. The maximum value is 1000; values above 1000 will - * be set to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListRollouts` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other provided parameters match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListRollouts` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other provided parameters match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Filter rollouts to be returned. See https://google.aip.dev/160 - * for more details. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filter rollouts to be returned. See https://google.aip.dev/160 - * for more details. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Field to sort by. See https://google.aip.dev/132#ordering for - * more details. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Field to sort by. See https://google.aip.dev/132#ordering for - * more details. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListRolloutsResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListRolloutsResponse.php deleted file mode 100644 index fc25e3092666..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListRolloutsResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.deploy.v1.ListRolloutsResponse - */ -class ListRolloutsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `Rollout` objects. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.Rollout rollouts = 1; - */ - private $rollouts; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Deploy\V1\Rollout>|\Google\Protobuf\Internal\RepeatedField $rollouts - * The `Rollout` objects. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * The `Rollout` objects. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.Rollout rollouts = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRollouts() - { - return $this->rollouts; - } - - /** - * The `Rollout` objects. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.Rollout rollouts = 1; - * @param array<\Google\Cloud\Deploy\V1\Rollout>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRollouts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\Rollout::class); - $this->rollouts = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListTargetsRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListTargetsRequest.php deleted file mode 100644 index 2aa7809d0875..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListTargetsRequest.php +++ /dev/null @@ -1,254 +0,0 @@ -google.cloud.deploy.v1.ListTargetsRequest - */ -class ListTargetsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of targets. Format must be - * `projects/{project_id}/locations/{location_name}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of `Target` objects to return. The service may - * return fewer than this value. If unspecified, at most 50 `Target` objects - * will be returned. The maximum value is 1000; values above 1000 will be set - * to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListTargets` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other provided parameters match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Filter targets to be returned. See https://google.aip.dev/160 for - * more details. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Field to sort by. See https://google.aip.dev/132#ordering for - * more details. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The parent, which owns this collection of targets. Format must be - * `projects/{project_id}/locations/{location_name}`. Please see - * {@see CloudDeployClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\Deploy\V1\ListTargetsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of targets. Format must be - * `projects/{project_id}/locations/{location_name}`. - * @type int $page_size - * Optional. The maximum number of `Target` objects to return. The service may - * return fewer than this value. If unspecified, at most 50 `Target` objects - * will be returned. The maximum value is 1000; values above 1000 will be set - * to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListTargets` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other provided parameters match - * the call that provided the page token. - * @type string $filter - * Optional. Filter targets to be returned. See https://google.aip.dev/160 for - * more details. - * @type string $order_by - * Optional. Field to sort by. See https://google.aip.dev/132#ordering for - * more details. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of targets. Format must be - * `projects/{project_id}/locations/{location_name}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent, which owns this collection of targets. Format must be - * `projects/{project_id}/locations/{location_name}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of `Target` objects to return. The service may - * return fewer than this value. If unspecified, at most 50 `Target` objects - * will be returned. The maximum value is 1000; values above 1000 will be set - * to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of `Target` objects to return. The service may - * return fewer than this value. If unspecified, at most 50 `Target` objects - * will be returned. The maximum value is 1000; values above 1000 will be set - * to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListTargets` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other provided parameters match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListTargets` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other provided parameters match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Filter targets to be returned. See https://google.aip.dev/160 for - * more details. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filter targets to be returned. See https://google.aip.dev/160 for - * more details. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Field to sort by. See https://google.aip.dev/132#ordering for - * more details. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Field to sort by. See https://google.aip.dev/132#ordering for - * more details. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListTargetsResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListTargetsResponse.php deleted file mode 100644 index 4c648ae25fd5..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ListTargetsResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.deploy.v1.ListTargetsResponse - */ -class ListTargetsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The `Target` objects. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.Target targets = 1; - */ - private $targets; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Deploy\V1\Target>|\Google\Protobuf\Internal\RepeatedField $targets - * The `Target` objects. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * The `Target` objects. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.Target targets = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTargets() - { - return $this->targets; - } - - /** - * The `Target` objects. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.Target targets = 1; - * @param array<\Google\Cloud\Deploy\V1\Target>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTargets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\Target::class); - $this->targets = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Metadata.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Metadata.php deleted file mode 100644 index f9940ac35423..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Metadata.php +++ /dev/null @@ -1,173 +0,0 @@ -google.cloud.deploy.v1.Metadata - */ -class Metadata extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The name of the Cloud Run Service that is associated with a - * `Rollout`. - * - * Generated from protobuf field .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $cloud_run = null; - /** - * Output only. AutomationRolloutMetadata contains the information about the - * interactions between Automation service and this rollout. - * - * Generated from protobuf field .google.cloud.deploy.v1.AutomationRolloutMetadata automation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $automation = null; - /** - * Output only. Custom metadata provided by user-defined `Rollout` operations. - * - * Generated from protobuf field .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $custom = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Deploy\V1\CloudRunMetadata $cloud_run - * Output only. The name of the Cloud Run Service that is associated with a - * `Rollout`. - * @type \Google\Cloud\Deploy\V1\AutomationRolloutMetadata $automation - * Output only. AutomationRolloutMetadata contains the information about the - * interactions between Automation service and this rollout. - * @type \Google\Cloud\Deploy\V1\CustomMetadata $custom - * Output only. Custom metadata provided by user-defined `Rollout` operations. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The name of the Cloud Run Service that is associated with a - * `Rollout`. - * - * Generated from protobuf field .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\CloudRunMetadata|null - */ - public function getCloudRun() - { - return $this->cloud_run; - } - - public function hasCloudRun() - { - return isset($this->cloud_run); - } - - public function clearCloudRun() - { - unset($this->cloud_run); - } - - /** - * Output only. The name of the Cloud Run Service that is associated with a - * `Rollout`. - * - * Generated from protobuf field .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\CloudRunMetadata $var - * @return $this - */ - public function setCloudRun($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CloudRunMetadata::class); - $this->cloud_run = $var; - - return $this; - } - - /** - * Output only. AutomationRolloutMetadata contains the information about the - * interactions between Automation service and this rollout. - * - * Generated from protobuf field .google.cloud.deploy.v1.AutomationRolloutMetadata automation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\AutomationRolloutMetadata|null - */ - public function getAutomation() - { - return $this->automation; - } - - public function hasAutomation() - { - return isset($this->automation); - } - - public function clearAutomation() - { - unset($this->automation); - } - - /** - * Output only. AutomationRolloutMetadata contains the information about the - * interactions between Automation service and this rollout. - * - * Generated from protobuf field .google.cloud.deploy.v1.AutomationRolloutMetadata automation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\AutomationRolloutMetadata $var - * @return $this - */ - public function setAutomation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\AutomationRolloutMetadata::class); - $this->automation = $var; - - return $this; - } - - /** - * Output only. Custom metadata provided by user-defined `Rollout` operations. - * - * Generated from protobuf field .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\CustomMetadata|null - */ - public function getCustom() - { - return $this->custom; - } - - public function hasCustom() - { - return isset($this->custom); - } - - public function clearCustom() - { - unset($this->custom); - } - - /** - * Output only. Custom metadata provided by user-defined `Rollout` operations. - * - * Generated from protobuf field .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\CustomMetadata $var - * @return $this - */ - public function setCustom($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CustomMetadata::class); - $this->custom = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/MultiTarget.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/MultiTarget.php deleted file mode 100644 index 339eb1798208..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/MultiTarget.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.deploy.v1.MultiTarget - */ -class MultiTarget extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The target_ids of this multiTarget. - * - * Generated from protobuf field repeated string target_ids = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $target_ids; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $target_ids - * Required. The target_ids of this multiTarget. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. The target_ids of this multiTarget. - * - * Generated from protobuf field repeated string target_ids = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTargetIds() - { - return $this->target_ids; - } - - /** - * Required. The target_ids of this multiTarget. - * - * Generated from protobuf field repeated string target_ids = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTargetIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->target_ids = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/OneTimeWindow.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/OneTimeWindow.php deleted file mode 100644 index 46893dbebc01..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/OneTimeWindow.php +++ /dev/null @@ -1,210 +0,0 @@ -google.cloud.deploy.v1.OneTimeWindow - */ -class OneTimeWindow extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Start date. - * - * Generated from protobuf field .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $start_date = null; - /** - * Required. Start time (inclusive). Use 00:00 for the beginning of the day. - * - * Generated from protobuf field .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $start_time = null; - /** - * Required. End date. - * - * Generated from protobuf field .google.type.Date end_date = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $end_date = null; - /** - * Required. End time (exclusive). You may use 24:00 for the end of the day. - * - * Generated from protobuf field .google.type.TimeOfDay end_time = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $end_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Type\Date $start_date - * Required. Start date. - * @type \Google\Type\TimeOfDay $start_time - * Required. Start time (inclusive). Use 00:00 for the beginning of the day. - * @type \Google\Type\Date $end_date - * Required. End date. - * @type \Google\Type\TimeOfDay $end_time - * Required. End time (exclusive). You may use 24:00 for the end of the day. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. Start date. - * - * Generated from protobuf field .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Type\Date|null - */ - public function getStartDate() - { - return $this->start_date; - } - - public function hasStartDate() - { - return isset($this->start_date); - } - - public function clearStartDate() - { - unset($this->start_date); - } - - /** - * Required. Start date. - * - * Generated from protobuf field .google.type.Date start_date = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Type\Date $var - * @return $this - */ - public function setStartDate($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->start_date = $var; - - return $this; - } - - /** - * Required. Start time (inclusive). Use 00:00 for the beginning of the day. - * - * Generated from protobuf field .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Type\TimeOfDay|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * Required. Start time (inclusive). Use 00:00 for the beginning of the day. - * - * Generated from protobuf field .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Type\TimeOfDay $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Type\TimeOfDay::class); - $this->start_time = $var; - - return $this; - } - - /** - * Required. End date. - * - * Generated from protobuf field .google.type.Date end_date = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Type\Date|null - */ - public function getEndDate() - { - return $this->end_date; - } - - public function hasEndDate() - { - return isset($this->end_date); - } - - public function clearEndDate() - { - unset($this->end_date); - } - - /** - * Required. End date. - * - * Generated from protobuf field .google.type.Date end_date = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Type\Date $var - * @return $this - */ - public function setEndDate($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->end_date = $var; - - return $this; - } - - /** - * Required. End time (exclusive). You may use 24:00 for the end of the day. - * - * Generated from protobuf field .google.type.TimeOfDay end_time = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Type\TimeOfDay|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Required. End time (exclusive). You may use 24:00 for the end of the day. - * - * Generated from protobuf field .google.type.TimeOfDay end_time = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Type\TimeOfDay $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Type\TimeOfDay::class); - $this->end_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/OperationMetadata.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/OperationMetadata.php deleted file mode 100644 index 2565328b1fe3..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/OperationMetadata.php +++ /dev/null @@ -1,307 +0,0 @@ -google.cloud.deploy.v1.OperationMetadata - */ -class OperationMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $target = ''; - /** - * Output only. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $verb = ''; - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $status_message = ''; - /** - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $requested_cancellation = false; - /** - * Output only. API version used to start the operation. - * - * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $api_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time the operation was created. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. The time the operation finished running. - * @type string $target - * Output only. Server-defined resource path for the target of the operation. - * @type string $verb - * Output only. Name of the verb executed by the operation. - * @type string $status_message - * Output only. Human-readable status of the operation, if any. - * @type bool $requested_cancellation - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * @type string $api_version - * Output only. API version used to start the operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Output only. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getTarget() - { - return $this->target; - } - - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setTarget($var) - { - GPBUtil::checkString($var, True); - $this->target = $var; - - return $this; - } - - /** - * Output only. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getVerb() - { - return $this->verb; - } - - /** - * Output only. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setVerb($var) - { - GPBUtil::checkString($var, True); - $this->verb = $var; - - return $this; - } - - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getStatusMessage() - { - return $this->status_message; - } - - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setStatusMessage($var) - { - GPBUtil::checkString($var, True); - $this->status_message = $var; - - return $this; - } - - /** - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getRequestedCancellation() - { - return $this->requested_cancellation; - } - - /** - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setRequestedCancellation($var) - { - GPBUtil::checkBool($var); - $this->requested_cancellation = $var; - - return $this; - } - - /** - * Output only. API version used to start the operation. - * - * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getApiVersion() - { - return $this->api_version; - } - - /** - * Output only. API version used to start the operation. - * - * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setApiVersion($var) - { - GPBUtil::checkString($var, True); - $this->api_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Phase.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Phase.php deleted file mode 100644 index d4eb8041827c..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Phase.php +++ /dev/null @@ -1,215 +0,0 @@ -google.cloud.deploy.v1.Phase - */ -class Phase extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The ID of the Phase. - * - * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $id = ''; - /** - * Output only. Current state of the Phase. - * - * Generated from protobuf field .google.cloud.deploy.v1.Phase.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. Additional information on why the Phase was skipped, if - * available. - * - * Generated from protobuf field string skip_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $skip_message = ''; - protected $jobs; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * Output only. The ID of the Phase. - * @type int $state - * Output only. Current state of the Phase. - * @type string $skip_message - * Output only. Additional information on why the Phase was skipped, if - * available. - * @type \Google\Cloud\Deploy\V1\DeploymentJobs $deployment_jobs - * Output only. Deployment job composition. - * @type \Google\Cloud\Deploy\V1\ChildRolloutJobs $child_rollout_jobs - * Output only. ChildRollout job composition. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The ID of the Phase. - * - * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Output only. The ID of the Phase. - * - * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Output only. Current state of the Phase. - * - * Generated from protobuf field .google.cloud.deploy.v1.Phase.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. Current state of the Phase. - * - * Generated from protobuf field .google.cloud.deploy.v1.Phase.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Phase\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. Additional information on why the Phase was skipped, if - * available. - * - * Generated from protobuf field string skip_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getSkipMessage() - { - return $this->skip_message; - } - - /** - * Output only. Additional information on why the Phase was skipped, if - * available. - * - * Generated from protobuf field string skip_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setSkipMessage($var) - { - GPBUtil::checkString($var, True); - $this->skip_message = $var; - - return $this; - } - - /** - * Output only. Deployment job composition. - * - * Generated from protobuf field .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\DeploymentJobs|null - */ - public function getDeploymentJobs() - { - return $this->readOneof(4); - } - - public function hasDeploymentJobs() - { - return $this->hasOneof(4); - } - - /** - * Output only. Deployment job composition. - * - * Generated from protobuf field .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\DeploymentJobs $var - * @return $this - */ - public function setDeploymentJobs($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\DeploymentJobs::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Output only. ChildRollout job composition. - * - * Generated from protobuf field .google.cloud.deploy.v1.ChildRolloutJobs child_rollout_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\ChildRolloutJobs|null - */ - public function getChildRolloutJobs() - { - return $this->readOneof(5); - } - - public function hasChildRolloutJobs() - { - return $this->hasOneof(5); - } - - /** - * Output only. ChildRollout job composition. - * - * Generated from protobuf field .google.cloud.deploy.v1.ChildRolloutJobs child_rollout_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\ChildRolloutJobs $var - * @return $this - */ - public function setChildRolloutJobs($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\ChildRolloutJobs::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * @return string - */ - public function getJobs() - { - return $this->whichOneof("jobs"); - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Phase/State.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Phase/State.php deleted file mode 100644 index 0685882739b8..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Phase/State.php +++ /dev/null @@ -1,92 +0,0 @@ -google.cloud.deploy.v1.Phase.State - */ -class State -{ - /** - * The Phase has an unspecified state. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The Phase is waiting for an earlier Phase(s) to complete. - * - * Generated from protobuf enum PENDING = 1; - */ - const PENDING = 1; - /** - * The Phase is in progress. - * - * Generated from protobuf enum IN_PROGRESS = 2; - */ - const IN_PROGRESS = 2; - /** - * The Phase has succeeded. - * - * Generated from protobuf enum SUCCEEDED = 3; - */ - const SUCCEEDED = 3; - /** - * The Phase has failed. - * - * Generated from protobuf enum FAILED = 4; - */ - const FAILED = 4; - /** - * The Phase was aborted. - * - * Generated from protobuf enum ABORTED = 5; - */ - const ABORTED = 5; - /** - * The Phase was skipped. - * - * Generated from protobuf enum SKIPPED = 6; - */ - const SKIPPED = 6; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::PENDING => 'PENDING', - self::IN_PROGRESS => 'IN_PROGRESS', - self::SUCCEEDED => 'SUCCEEDED', - self::FAILED => 'FAILED', - self::ABORTED => 'ABORTED', - self::SKIPPED => 'SKIPPED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Google\Cloud\Deploy\V1\Phase_State::class); - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PipelineCondition.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PipelineCondition.php deleted file mode 100644 index 9b2a718bb204..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PipelineCondition.php +++ /dev/null @@ -1,169 +0,0 @@ -google.cloud.deploy.v1.PipelineCondition - */ -class PipelineCondition extends \Google\Protobuf\Internal\Message -{ - /** - * Details around the Pipeline's overall status. - * - * Generated from protobuf field .google.cloud.deploy.v1.PipelineReadyCondition pipeline_ready_condition = 1; - */ - protected $pipeline_ready_condition = null; - /** - * Details around targets enumerated in the pipeline. - * - * Generated from protobuf field .google.cloud.deploy.v1.TargetsPresentCondition targets_present_condition = 3; - */ - protected $targets_present_condition = null; - /** - * Details on the whether the targets enumerated in the pipeline are of the - * same type. - * - * Generated from protobuf field .google.cloud.deploy.v1.TargetsTypeCondition targets_type_condition = 4; - */ - protected $targets_type_condition = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Deploy\V1\PipelineReadyCondition $pipeline_ready_condition - * Details around the Pipeline's overall status. - * @type \Google\Cloud\Deploy\V1\TargetsPresentCondition $targets_present_condition - * Details around targets enumerated in the pipeline. - * @type \Google\Cloud\Deploy\V1\TargetsTypeCondition $targets_type_condition - * Details on the whether the targets enumerated in the pipeline are of the - * same type. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Details around the Pipeline's overall status. - * - * Generated from protobuf field .google.cloud.deploy.v1.PipelineReadyCondition pipeline_ready_condition = 1; - * @return \Google\Cloud\Deploy\V1\PipelineReadyCondition|null - */ - public function getPipelineReadyCondition() - { - return $this->pipeline_ready_condition; - } - - public function hasPipelineReadyCondition() - { - return isset($this->pipeline_ready_condition); - } - - public function clearPipelineReadyCondition() - { - unset($this->pipeline_ready_condition); - } - - /** - * Details around the Pipeline's overall status. - * - * Generated from protobuf field .google.cloud.deploy.v1.PipelineReadyCondition pipeline_ready_condition = 1; - * @param \Google\Cloud\Deploy\V1\PipelineReadyCondition $var - * @return $this - */ - public function setPipelineReadyCondition($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\PipelineReadyCondition::class); - $this->pipeline_ready_condition = $var; - - return $this; - } - - /** - * Details around targets enumerated in the pipeline. - * - * Generated from protobuf field .google.cloud.deploy.v1.TargetsPresentCondition targets_present_condition = 3; - * @return \Google\Cloud\Deploy\V1\TargetsPresentCondition|null - */ - public function getTargetsPresentCondition() - { - return $this->targets_present_condition; - } - - public function hasTargetsPresentCondition() - { - return isset($this->targets_present_condition); - } - - public function clearTargetsPresentCondition() - { - unset($this->targets_present_condition); - } - - /** - * Details around targets enumerated in the pipeline. - * - * Generated from protobuf field .google.cloud.deploy.v1.TargetsPresentCondition targets_present_condition = 3; - * @param \Google\Cloud\Deploy\V1\TargetsPresentCondition $var - * @return $this - */ - public function setTargetsPresentCondition($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\TargetsPresentCondition::class); - $this->targets_present_condition = $var; - - return $this; - } - - /** - * Details on the whether the targets enumerated in the pipeline are of the - * same type. - * - * Generated from protobuf field .google.cloud.deploy.v1.TargetsTypeCondition targets_type_condition = 4; - * @return \Google\Cloud\Deploy\V1\TargetsTypeCondition|null - */ - public function getTargetsTypeCondition() - { - return $this->targets_type_condition; - } - - public function hasTargetsTypeCondition() - { - return isset($this->targets_type_condition); - } - - public function clearTargetsTypeCondition() - { - unset($this->targets_type_condition); - } - - /** - * Details on the whether the targets enumerated in the pipeline are of the - * same type. - * - * Generated from protobuf field .google.cloud.deploy.v1.TargetsTypeCondition targets_type_condition = 4; - * @param \Google\Cloud\Deploy\V1\TargetsTypeCondition $var - * @return $this - */ - public function setTargetsTypeCondition($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\TargetsTypeCondition::class); - $this->targets_type_condition = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PipelineReadyCondition.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PipelineReadyCondition.php deleted file mode 100644 index 5ed4775bcce0..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PipelineReadyCondition.php +++ /dev/null @@ -1,124 +0,0 @@ -google.cloud.deploy.v1.PipelineReadyCondition - */ -class PipelineReadyCondition extends \Google\Protobuf\Internal\Message -{ - /** - * True if the Pipeline is in a valid state. Otherwise at least one condition - * in `PipelineCondition` is in an invalid state. Iterate over those - * conditions and see which condition(s) has status = false to find out what - * is wrong with the Pipeline. - * - * Generated from protobuf field bool status = 3; - */ - protected $status = false; - /** - * Last time the condition was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4; - */ - protected $update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $status - * True if the Pipeline is in a valid state. Otherwise at least one condition - * in `PipelineCondition` is in an invalid state. Iterate over those - * conditions and see which condition(s) has status = false to find out what - * is wrong with the Pipeline. - * @type \Google\Protobuf\Timestamp $update_time - * Last time the condition was updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * True if the Pipeline is in a valid state. Otherwise at least one condition - * in `PipelineCondition` is in an invalid state. Iterate over those - * conditions and see which condition(s) has status = false to find out what - * is wrong with the Pipeline. - * - * Generated from protobuf field bool status = 3; - * @return bool - */ - public function getStatus() - { - return $this->status; - } - - /** - * True if the Pipeline is in a valid state. Otherwise at least one condition - * in `PipelineCondition` is in an invalid state. Iterate over those - * conditions and see which condition(s) has status = false to find out what - * is wrong with the Pipeline. - * - * Generated from protobuf field bool status = 3; - * @param bool $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkBool($var); - $this->status = $var; - - return $this; - } - - /** - * Last time the condition was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Last time the condition was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PolicyRule.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PolicyRule.php deleted file mode 100644 index 24b46dc234e1..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PolicyRule.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.deploy.v1.PolicyRule - */ -class PolicyRule extends \Google\Protobuf\Internal\Message -{ - protected $rule; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Deploy\V1\RolloutRestriction $rollout_restriction - * Rollout restrictions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Rollout restrictions. - * - * Generated from protobuf field .google.cloud.deploy.v1.RolloutRestriction rollout_restriction = 2; - * @return \Google\Cloud\Deploy\V1\RolloutRestriction|null - */ - public function getRolloutRestriction() - { - return $this->readOneof(2); - } - - public function hasRolloutRestriction() - { - return $this->hasOneof(2); - } - - /** - * Rollout restrictions. - * - * Generated from protobuf field .google.cloud.deploy.v1.RolloutRestriction rollout_restriction = 2; - * @param \Google\Cloud\Deploy\V1\RolloutRestriction $var - * @return $this - */ - public function setRolloutRestriction($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\RolloutRestriction::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getRule() - { - return $this->whichOneof("rule"); - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PolicyViolation.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PolicyViolation.php deleted file mode 100644 index cc6f290964e6..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PolicyViolation.php +++ /dev/null @@ -1,69 +0,0 @@ -google.cloud.deploy.v1.PolicyViolation - */ -class PolicyViolation extends \Google\Protobuf\Internal\Message -{ - /** - * Policy violation details. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.PolicyViolationDetails policy_violation_details = 1; - */ - private $policy_violation_details; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Deploy\V1\PolicyViolationDetails>|\Google\Protobuf\Internal\RepeatedField $policy_violation_details - * Policy violation details. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Policy violation details. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.PolicyViolationDetails policy_violation_details = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPolicyViolationDetails() - { - return $this->policy_violation_details; - } - - /** - * Policy violation details. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.PolicyViolationDetails policy_violation_details = 1; - * @param array<\Google\Cloud\Deploy\V1\PolicyViolationDetails>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPolicyViolationDetails($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\PolicyViolationDetails::class); - $this->policy_violation_details = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PolicyViolationDetails.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PolicyViolationDetails.php deleted file mode 100644 index 53a3ac965baf..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PolicyViolationDetails.php +++ /dev/null @@ -1,147 +0,0 @@ -google.cloud.deploy.v1.PolicyViolationDetails - */ -class PolicyViolationDetails extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the policy that was violated. - * Policy resource will be in the format of - * `projects/{project}/locations/{location}/policies/{policy}`. - * - * Generated from protobuf field string policy = 1; - */ - protected $policy = ''; - /** - * Id of the rule that triggered the policy violation. - * - * Generated from protobuf field string rule_id = 2; - */ - protected $rule_id = ''; - /** - * User readable message about why the request violated a policy. This is not - * intended for machine parsing. - * - * Generated from protobuf field string failure_message = 3; - */ - protected $failure_message = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $policy - * Name of the policy that was violated. - * Policy resource will be in the format of - * `projects/{project}/locations/{location}/policies/{policy}`. - * @type string $rule_id - * Id of the rule that triggered the policy violation. - * @type string $failure_message - * User readable message about why the request violated a policy. This is not - * intended for machine parsing. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Name of the policy that was violated. - * Policy resource will be in the format of - * `projects/{project}/locations/{location}/policies/{policy}`. - * - * Generated from protobuf field string policy = 1; - * @return string - */ - public function getPolicy() - { - return $this->policy; - } - - /** - * Name of the policy that was violated. - * Policy resource will be in the format of - * `projects/{project}/locations/{location}/policies/{policy}`. - * - * Generated from protobuf field string policy = 1; - * @param string $var - * @return $this - */ - public function setPolicy($var) - { - GPBUtil::checkString($var, True); - $this->policy = $var; - - return $this; - } - - /** - * Id of the rule that triggered the policy violation. - * - * Generated from protobuf field string rule_id = 2; - * @return string - */ - public function getRuleId() - { - return $this->rule_id; - } - - /** - * Id of the rule that triggered the policy violation. - * - * Generated from protobuf field string rule_id = 2; - * @param string $var - * @return $this - */ - public function setRuleId($var) - { - GPBUtil::checkString($var, True); - $this->rule_id = $var; - - return $this; - } - - /** - * User readable message about why the request violated a policy. This is not - * intended for machine parsing. - * - * Generated from protobuf field string failure_message = 3; - * @return string - */ - public function getFailureMessage() - { - return $this->failure_message; - } - - /** - * User readable message about why the request violated a policy. This is not - * intended for machine parsing. - * - * Generated from protobuf field string failure_message = 3; - * @param string $var - * @return $this - */ - public function setFailureMessage($var) - { - GPBUtil::checkString($var, True); - $this->failure_message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Postdeploy.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Postdeploy.php deleted file mode 100644 index 9d9352935c0e..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Postdeploy.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.deploy.v1.Postdeploy - */ -class Postdeploy extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. A sequence of Skaffold custom actions to invoke during execution - * of the postdeploy job. - * - * Generated from protobuf field repeated string actions = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $actions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $actions - * Optional. A sequence of Skaffold custom actions to invoke during execution - * of the postdeploy job. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Optional. A sequence of Skaffold custom actions to invoke during execution - * of the postdeploy job. - * - * Generated from protobuf field repeated string actions = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getActions() - { - return $this->actions; - } - - /** - * Optional. A sequence of Skaffold custom actions to invoke during execution - * of the postdeploy job. - * - * Generated from protobuf field repeated string actions = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setActions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->actions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PostdeployJob.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PostdeployJob.php deleted file mode 100644 index 44bcfbac945d..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PostdeployJob.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.deploy.v1.PostdeployJob - */ -class PostdeployJob extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The custom actions that the postdeploy Job executes. - * - * Generated from protobuf field repeated string actions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $actions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $actions - * Output only. The custom actions that the postdeploy Job executes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The custom actions that the postdeploy Job executes. - * - * Generated from protobuf field repeated string actions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getActions() - { - return $this->actions; - } - - /** - * Output only. The custom actions that the postdeploy Job executes. - * - * Generated from protobuf field repeated string actions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setActions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->actions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PostdeployJobRun.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PostdeployJobRun.php deleted file mode 100644 index 1f75d56505ec..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PostdeployJobRun.php +++ /dev/null @@ -1,151 +0,0 @@ -google.cloud.deploy.v1.PostdeployJobRun - */ -class PostdeployJobRun extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The resource name of the Cloud Build `Build` object that is - * used to execute the custom actions associated with the postdeploy Job. - * Format is `projects/{project}/locations/{location}/builds/{build}`. - * - * Generated from protobuf field string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $build = ''; - /** - * Output only. The reason the postdeploy failed. This will always be - * unspecified while the postdeploy is in progress or if it succeeded. - * - * Generated from protobuf field .google.cloud.deploy.v1.PostdeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $failure_cause = 0; - /** - * Output only. Additional information about the postdeploy failure, if - * available. - * - * Generated from protobuf field string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $failure_message = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $build - * Output only. The resource name of the Cloud Build `Build` object that is - * used to execute the custom actions associated with the postdeploy Job. - * Format is `projects/{project}/locations/{location}/builds/{build}`. - * @type int $failure_cause - * Output only. The reason the postdeploy failed. This will always be - * unspecified while the postdeploy is in progress or if it succeeded. - * @type string $failure_message - * Output only. Additional information about the postdeploy failure, if - * available. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The resource name of the Cloud Build `Build` object that is - * used to execute the custom actions associated with the postdeploy Job. - * Format is `projects/{project}/locations/{location}/builds/{build}`. - * - * Generated from protobuf field string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getBuild() - { - return $this->build; - } - - /** - * Output only. The resource name of the Cloud Build `Build` object that is - * used to execute the custom actions associated with the postdeploy Job. - * Format is `projects/{project}/locations/{location}/builds/{build}`. - * - * Generated from protobuf field string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setBuild($var) - { - GPBUtil::checkString($var, True); - $this->build = $var; - - return $this; - } - - /** - * Output only. The reason the postdeploy failed. This will always be - * unspecified while the postdeploy is in progress or if it succeeded. - * - * Generated from protobuf field .google.cloud.deploy.v1.PostdeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getFailureCause() - { - return $this->failure_cause; - } - - /** - * Output only. The reason the postdeploy failed. This will always be - * unspecified while the postdeploy is in progress or if it succeeded. - * - * Generated from protobuf field .google.cloud.deploy.v1.PostdeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setFailureCause($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\PostdeployJobRun\FailureCause::class); - $this->failure_cause = $var; - - return $this; - } - - /** - * Output only. Additional information about the postdeploy failure, if - * available. - * - * Generated from protobuf field string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getFailureMessage() - { - return $this->failure_message; - } - - /** - * Output only. Additional information about the postdeploy failure, if - * available. - * - * Generated from protobuf field string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setFailureMessage($var) - { - GPBUtil::checkString($var, True); - $this->failure_message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PostdeployJobRun/FailureCause.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PostdeployJobRun/FailureCause.php deleted file mode 100644 index c8b36d03b38b..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PostdeployJobRun/FailureCause.php +++ /dev/null @@ -1,82 +0,0 @@ -google.cloud.deploy.v1.PostdeployJobRun.FailureCause - */ -class FailureCause -{ - /** - * No reason for failure is specified. - * - * Generated from protobuf enum FAILURE_CAUSE_UNSPECIFIED = 0; - */ - const FAILURE_CAUSE_UNSPECIFIED = 0; - /** - * Cloud Build is not available, either because it is not enabled or because - * Cloud Deploy has insufficient permissions. See [required - * permission](https://cloud.google.com/deploy/docs/cloud-deploy-service-account#required_permissions). - * - * Generated from protobuf enum CLOUD_BUILD_UNAVAILABLE = 1; - */ - const CLOUD_BUILD_UNAVAILABLE = 1; - /** - * The postdeploy operation did not complete successfully; check Cloud Build - * logs. - * - * Generated from protobuf enum EXECUTION_FAILED = 2; - */ - const EXECUTION_FAILED = 2; - /** - * The postdeploy job run did not complete within the alloted time. - * - * Generated from protobuf enum DEADLINE_EXCEEDED = 3; - */ - const DEADLINE_EXCEEDED = 3; - /** - * Cloud Build failed to fulfill Cloud Deploy's request. See failure_message - * for additional details. - * - * Generated from protobuf enum CLOUD_BUILD_REQUEST_FAILED = 4; - */ - const CLOUD_BUILD_REQUEST_FAILED = 4; - - private static $valueToName = [ - self::FAILURE_CAUSE_UNSPECIFIED => 'FAILURE_CAUSE_UNSPECIFIED', - self::CLOUD_BUILD_UNAVAILABLE => 'CLOUD_BUILD_UNAVAILABLE', - self::EXECUTION_FAILED => 'EXECUTION_FAILED', - self::DEADLINE_EXCEEDED => 'DEADLINE_EXCEEDED', - self::CLOUD_BUILD_REQUEST_FAILED => 'CLOUD_BUILD_REQUEST_FAILED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(FailureCause::class, \Google\Cloud\Deploy\V1\PostdeployJobRun_FailureCause::class); - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Predeploy.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Predeploy.php deleted file mode 100644 index cb69743fa87d..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Predeploy.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.deploy.v1.Predeploy - */ -class Predeploy extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. A sequence of Skaffold custom actions to invoke during execution - * of the predeploy job. - * - * Generated from protobuf field repeated string actions = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $actions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $actions - * Optional. A sequence of Skaffold custom actions to invoke during execution - * of the predeploy job. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Optional. A sequence of Skaffold custom actions to invoke during execution - * of the predeploy job. - * - * Generated from protobuf field repeated string actions = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getActions() - { - return $this->actions; - } - - /** - * Optional. A sequence of Skaffold custom actions to invoke during execution - * of the predeploy job. - * - * Generated from protobuf field repeated string actions = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setActions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->actions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PredeployJob.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PredeployJob.php deleted file mode 100644 index d11e91272b59..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PredeployJob.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.deploy.v1.PredeployJob - */ -class PredeployJob extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The custom actions that the predeploy Job executes. - * - * Generated from protobuf field repeated string actions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $actions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $actions - * Output only. The custom actions that the predeploy Job executes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The custom actions that the predeploy Job executes. - * - * Generated from protobuf field repeated string actions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getActions() - { - return $this->actions; - } - - /** - * Output only. The custom actions that the predeploy Job executes. - * - * Generated from protobuf field repeated string actions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setActions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->actions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PredeployJobRun.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PredeployJobRun.php deleted file mode 100644 index ad155d70502c..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PredeployJobRun.php +++ /dev/null @@ -1,151 +0,0 @@ -google.cloud.deploy.v1.PredeployJobRun - */ -class PredeployJobRun extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The resource name of the Cloud Build `Build` object that is - * used to execute the custom actions associated with the predeploy Job. - * Format is `projects/{project}/locations/{location}/builds/{build}`. - * - * Generated from protobuf field string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $build = ''; - /** - * Output only. The reason the predeploy failed. This will always be - * unspecified while the predeploy is in progress or if it succeeded. - * - * Generated from protobuf field .google.cloud.deploy.v1.PredeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $failure_cause = 0; - /** - * Output only. Additional information about the predeploy failure, if - * available. - * - * Generated from protobuf field string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $failure_message = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $build - * Output only. The resource name of the Cloud Build `Build` object that is - * used to execute the custom actions associated with the predeploy Job. - * Format is `projects/{project}/locations/{location}/builds/{build}`. - * @type int $failure_cause - * Output only. The reason the predeploy failed. This will always be - * unspecified while the predeploy is in progress or if it succeeded. - * @type string $failure_message - * Output only. Additional information about the predeploy failure, if - * available. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The resource name of the Cloud Build `Build` object that is - * used to execute the custom actions associated with the predeploy Job. - * Format is `projects/{project}/locations/{location}/builds/{build}`. - * - * Generated from protobuf field string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getBuild() - { - return $this->build; - } - - /** - * Output only. The resource name of the Cloud Build `Build` object that is - * used to execute the custom actions associated with the predeploy Job. - * Format is `projects/{project}/locations/{location}/builds/{build}`. - * - * Generated from protobuf field string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setBuild($var) - { - GPBUtil::checkString($var, True); - $this->build = $var; - - return $this; - } - - /** - * Output only. The reason the predeploy failed. This will always be - * unspecified while the predeploy is in progress or if it succeeded. - * - * Generated from protobuf field .google.cloud.deploy.v1.PredeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getFailureCause() - { - return $this->failure_cause; - } - - /** - * Output only. The reason the predeploy failed. This will always be - * unspecified while the predeploy is in progress or if it succeeded. - * - * Generated from protobuf field .google.cloud.deploy.v1.PredeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setFailureCause($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\PredeployJobRun\FailureCause::class); - $this->failure_cause = $var; - - return $this; - } - - /** - * Output only. Additional information about the predeploy failure, if - * available. - * - * Generated from protobuf field string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getFailureMessage() - { - return $this->failure_message; - } - - /** - * Output only. Additional information about the predeploy failure, if - * available. - * - * Generated from protobuf field string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setFailureMessage($var) - { - GPBUtil::checkString($var, True); - $this->failure_message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PredeployJobRun/FailureCause.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PredeployJobRun/FailureCause.php deleted file mode 100644 index 4859716a18b2..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PredeployJobRun/FailureCause.php +++ /dev/null @@ -1,82 +0,0 @@ -google.cloud.deploy.v1.PredeployJobRun.FailureCause - */ -class FailureCause -{ - /** - * No reason for failure is specified. - * - * Generated from protobuf enum FAILURE_CAUSE_UNSPECIFIED = 0; - */ - const FAILURE_CAUSE_UNSPECIFIED = 0; - /** - * Cloud Build is not available, either because it is not enabled or because - * Cloud Deploy has insufficient permissions. See [required - * permission](https://cloud.google.com/deploy/docs/cloud-deploy-service-account#required_permissions). - * - * Generated from protobuf enum CLOUD_BUILD_UNAVAILABLE = 1; - */ - const CLOUD_BUILD_UNAVAILABLE = 1; - /** - * The predeploy operation did not complete successfully; check Cloud Build - * logs. - * - * Generated from protobuf enum EXECUTION_FAILED = 2; - */ - const EXECUTION_FAILED = 2; - /** - * The predeploy job run did not complete within the alloted time. - * - * Generated from protobuf enum DEADLINE_EXCEEDED = 3; - */ - const DEADLINE_EXCEEDED = 3; - /** - * Cloud Build failed to fulfill Cloud Deploy's request. See failure_message - * for additional details. - * - * Generated from protobuf enum CLOUD_BUILD_REQUEST_FAILED = 4; - */ - const CLOUD_BUILD_REQUEST_FAILED = 4; - - private static $valueToName = [ - self::FAILURE_CAUSE_UNSPECIFIED => 'FAILURE_CAUSE_UNSPECIFIED', - self::CLOUD_BUILD_UNAVAILABLE => 'CLOUD_BUILD_UNAVAILABLE', - self::EXECUTION_FAILED => 'EXECUTION_FAILED', - self::DEADLINE_EXCEEDED => 'DEADLINE_EXCEEDED', - self::CLOUD_BUILD_REQUEST_FAILED => 'CLOUD_BUILD_REQUEST_FAILED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(FailureCause::class, \Google\Cloud\Deploy\V1\PredeployJobRun_FailureCause::class); - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PrivatePool.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PrivatePool.php deleted file mode 100644 index b7a8ae63ba44..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PrivatePool.php +++ /dev/null @@ -1,159 +0,0 @@ -google.cloud.deploy.v1.PrivatePool - */ -class PrivatePool extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the Cloud Build worker pool to use. The format - * is `projects/{project}/locations/{location}/workerPools/{pool}`. - * - * Generated from protobuf field string worker_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $worker_pool = ''; - /** - * Optional. Google service account to use for execution. If unspecified, - * the project execution service account - * (-compute@developer.gserviceaccount.com) will be used. - * - * Generated from protobuf field string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $service_account = ''; - /** - * Optional. Cloud Storage location where execution outputs should be stored. - * This can either be a bucket ("gs://my-bucket") or a path within a bucket - * ("gs://my-bucket/my-dir"). - * If unspecified, a default bucket located in the same region will be used. - * - * Generated from protobuf field string artifact_storage = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $artifact_storage = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $worker_pool - * Required. Resource name of the Cloud Build worker pool to use. The format - * is `projects/{project}/locations/{location}/workerPools/{pool}`. - * @type string $service_account - * Optional. Google service account to use for execution. If unspecified, - * the project execution service account - * (-compute@developer.gserviceaccount.com) will be used. - * @type string $artifact_storage - * Optional. Cloud Storage location where execution outputs should be stored. - * This can either be a bucket ("gs://my-bucket") or a path within a bucket - * ("gs://my-bucket/my-dir"). - * If unspecified, a default bucket located in the same region will be used. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the Cloud Build worker pool to use. The format - * is `projects/{project}/locations/{location}/workerPools/{pool}`. - * - * Generated from protobuf field string worker_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getWorkerPool() - { - return $this->worker_pool; - } - - /** - * Required. Resource name of the Cloud Build worker pool to use. The format - * is `projects/{project}/locations/{location}/workerPools/{pool}`. - * - * Generated from protobuf field string worker_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setWorkerPool($var) - { - GPBUtil::checkString($var, True); - $this->worker_pool = $var; - - return $this; - } - - /** - * Optional. Google service account to use for execution. If unspecified, - * the project execution service account - * (-compute@developer.gserviceaccount.com) will be used. - * - * Generated from protobuf field string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getServiceAccount() - { - return $this->service_account; - } - - /** - * Optional. Google service account to use for execution. If unspecified, - * the project execution service account - * (-compute@developer.gserviceaccount.com) will be used. - * - * Generated from protobuf field string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setServiceAccount($var) - { - GPBUtil::checkString($var, True); - $this->service_account = $var; - - return $this; - } - - /** - * Optional. Cloud Storage location where execution outputs should be stored. - * This can either be a bucket ("gs://my-bucket") or a path within a bucket - * ("gs://my-bucket/my-dir"). - * If unspecified, a default bucket located in the same region will be used. - * - * Generated from protobuf field string artifact_storage = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getArtifactStorage() - { - return $this->artifact_storage; - } - - /** - * Optional. Cloud Storage location where execution outputs should be stored. - * This can either be a bucket ("gs://my-bucket") or a path within a bucket - * ("gs://my-bucket/my-dir"). - * If unspecified, a default bucket located in the same region will be used. - * - * Generated from protobuf field string artifact_storage = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setArtifactStorage($var) - { - GPBUtil::checkString($var, True); - $this->artifact_storage = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PromoteReleaseOperation.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PromoteReleaseOperation.php deleted file mode 100644 index 5dec2ed45fe3..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PromoteReleaseOperation.php +++ /dev/null @@ -1,187 +0,0 @@ -google.cloud.deploy.v1.PromoteReleaseOperation - */ -class PromoteReleaseOperation extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The ID of the target that represents the promotion stage to - * which the release will be promoted. The value of this field is the last - * segment of a target name. - * - * Generated from protobuf field string target_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $target_id = ''; - /** - * Output only. How long the operation will be paused. - * - * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $wait = null; - /** - * Output only. The name of the rollout that initiates the `AutomationRun`. - * - * Generated from protobuf field string rollout = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $rollout = ''; - /** - * Output only. The starting phase of the rollout created by this operation. - * - * Generated from protobuf field string phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $phase = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $target_id - * Output only. The ID of the target that represents the promotion stage to - * which the release will be promoted. The value of this field is the last - * segment of a target name. - * @type \Google\Protobuf\Duration $wait - * Output only. How long the operation will be paused. - * @type string $rollout - * Output only. The name of the rollout that initiates the `AutomationRun`. - * @type string $phase - * Output only. The starting phase of the rollout created by this operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The ID of the target that represents the promotion stage to - * which the release will be promoted. The value of this field is the last - * segment of a target name. - * - * Generated from protobuf field string target_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getTargetId() - { - return $this->target_id; - } - - /** - * Output only. The ID of the target that represents the promotion stage to - * which the release will be promoted. The value of this field is the last - * segment of a target name. - * - * Generated from protobuf field string target_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setTargetId($var) - { - GPBUtil::checkString($var, True); - $this->target_id = $var; - - return $this; - } - - /** - * Output only. How long the operation will be paused. - * - * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Duration|null - */ - public function getWait() - { - return $this->wait; - } - - public function hasWait() - { - return isset($this->wait); - } - - public function clearWait() - { - unset($this->wait); - } - - /** - * Output only. How long the operation will be paused. - * - * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setWait($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->wait = $var; - - return $this; - } - - /** - * Output only. The name of the rollout that initiates the `AutomationRun`. - * - * Generated from protobuf field string rollout = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getRollout() - { - return $this->rollout; - } - - /** - * Output only. The name of the rollout that initiates the `AutomationRun`. - * - * Generated from protobuf field string rollout = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setRollout($var) - { - GPBUtil::checkString($var, True); - $this->rollout = $var; - - return $this; - } - - /** - * Output only. The starting phase of the rollout created by this operation. - * - * Generated from protobuf field string phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getPhase() - { - return $this->phase; - } - - /** - * Output only. The starting phase of the rollout created by this operation. - * - * Generated from protobuf field string phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setPhase($var) - { - GPBUtil::checkString($var, True); - $this->phase = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PromoteReleaseRule.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PromoteReleaseRule.php deleted file mode 100644 index e07f786ba393..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/PromoteReleaseRule.php +++ /dev/null @@ -1,256 +0,0 @@ -google.cloud.deploy.v1.PromoteReleaseRule - */ -class PromoteReleaseRule extends \Google\Protobuf\Internal\Message -{ - /** - * Required. ID of the rule. This id must be unique in the `Automation` - * resource to which this rule belongs. The format is - * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. - * - * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $id = ''; - /** - * Optional. How long the release need to be paused until being promoted to - * the next target. - * - * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $wait = null; - /** - * Optional. The ID of the stage in the pipeline to which this `Release` is - * deploying. If unspecified, default it to the next stage in the promotion - * flow. The value of this field could be one of the following: - * * The last segment of a target name - * * "@next", the next target in the promotion sequence - * - * Generated from protobuf field string destination_target_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $destination_target_id = ''; - /** - * Output only. Information around the state of the Automation rule. - * - * Generated from protobuf field .google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $condition = null; - /** - * Optional. The starting phase of the rollout created by this operation. - * Default to the first phase. - * - * Generated from protobuf field string destination_phase = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $destination_phase = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * Required. ID of the rule. This id must be unique in the `Automation` - * resource to which this rule belongs. The format is - * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. - * @type \Google\Protobuf\Duration $wait - * Optional. How long the release need to be paused until being promoted to - * the next target. - * @type string $destination_target_id - * Optional. The ID of the stage in the pipeline to which this `Release` is - * deploying. If unspecified, default it to the next stage in the promotion - * flow. The value of this field could be one of the following: - * * The last segment of a target name - * * "@next", the next target in the promotion sequence - * @type \Google\Cloud\Deploy\V1\AutomationRuleCondition $condition - * Output only. Information around the state of the Automation rule. - * @type string $destination_phase - * Optional. The starting phase of the rollout created by this operation. - * Default to the first phase. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. ID of the rule. This id must be unique in the `Automation` - * resource to which this rule belongs. The format is - * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. - * - * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Required. ID of the rule. This id must be unique in the `Automation` - * resource to which this rule belongs. The format is - * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. - * - * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Optional. How long the release need to be paused until being promoted to - * the next target. - * - * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Duration|null - */ - public function getWait() - { - return $this->wait; - } - - public function hasWait() - { - return isset($this->wait); - } - - public function clearWait() - { - unset($this->wait); - } - - /** - * Optional. How long the release need to be paused until being promoted to - * the next target. - * - * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setWait($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->wait = $var; - - return $this; - } - - /** - * Optional. The ID of the stage in the pipeline to which this `Release` is - * deploying. If unspecified, default it to the next stage in the promotion - * flow. The value of this field could be one of the following: - * * The last segment of a target name - * * "@next", the next target in the promotion sequence - * - * Generated from protobuf field string destination_target_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDestinationTargetId() - { - return $this->destination_target_id; - } - - /** - * Optional. The ID of the stage in the pipeline to which this `Release` is - * deploying. If unspecified, default it to the next stage in the promotion - * flow. The value of this field could be one of the following: - * * The last segment of a target name - * * "@next", the next target in the promotion sequence - * - * Generated from protobuf field string destination_target_id = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDestinationTargetId($var) - { - GPBUtil::checkString($var, True); - $this->destination_target_id = $var; - - return $this; - } - - /** - * Output only. Information around the state of the Automation rule. - * - * Generated from protobuf field .google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\AutomationRuleCondition|null - */ - public function getCondition() - { - return $this->condition; - } - - public function hasCondition() - { - return isset($this->condition); - } - - public function clearCondition() - { - unset($this->condition); - } - - /** - * Output only. Information around the state of the Automation rule. - * - * Generated from protobuf field .google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\AutomationRuleCondition $var - * @return $this - */ - public function setCondition($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\AutomationRuleCondition::class); - $this->condition = $var; - - return $this; - } - - /** - * Optional. The starting phase of the rollout created by this operation. - * Default to the first phase. - * - * Generated from protobuf field string destination_phase = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDestinationPhase() - { - return $this->destination_phase; - } - - /** - * Optional. The starting phase of the rollout created by this operation. - * Default to the first phase. - * - * Generated from protobuf field string destination_phase = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDestinationPhase($var) - { - GPBUtil::checkString($var, True); - $this->destination_phase = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release.php deleted file mode 100644 index 2842c336a4e7..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release.php +++ /dev/null @@ -1,917 +0,0 @@ -google.cloud.deploy.v1.Release - */ -class Release extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Name of the `Release`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`. - * The `release` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $name = ''; - /** - * Output only. Unique identifier of the `Release`. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Description of the `Release`. Max length is 255 characters. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * User annotations. These attributes can only be set and used by the - * user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations - * for more details such as format and size limitations. - * - * Generated from protobuf field map annotations = 4; - */ - private $annotations; - /** - * Labels are attributes that can be set and used by both the - * user and by Cloud Deploy. Labels must meet the following constraints: - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. - * * All characters must use UTF-8 encoding, and international characters are - * allowed. - * * Keys must start with a lowercase letter or international character. - * * Each resource is limited to a maximum of 64 labels. - * Both keys and values are additionally constrained to be <= 128 bytes. - * - * Generated from protobuf field map labels = 5; - */ - private $labels; - /** - * Output only. Indicates whether this is an abandoned release. - * - * Generated from protobuf field bool abandoned = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $abandoned = false; - /** - * Output only. Time at which the `Release` was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Time at which the render began. - * - * Generated from protobuf field .google.protobuf.Timestamp render_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $render_start_time = null; - /** - * Output only. Time at which the render completed. - * - * Generated from protobuf field .google.protobuf.Timestamp render_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $render_end_time = null; - /** - * Cloud Storage URI of tar.gz archive containing Skaffold configuration. - * - * Generated from protobuf field string skaffold_config_uri = 17; - */ - protected $skaffold_config_uri = ''; - /** - * Filepath of the Skaffold config inside of the config URI. - * - * Generated from protobuf field string skaffold_config_path = 9; - */ - protected $skaffold_config_path = ''; - /** - * List of artifacts to pass through to Skaffold command. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10; - */ - private $build_artifacts; - /** - * Output only. Snapshot of the parent pipeline taken at release creation - * time. - * - * Generated from protobuf field .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline_snapshot = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $delivery_pipeline_snapshot = null; - /** - * Output only. Snapshot of the targets taken at release creation time. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $target_snapshots; - /** - * Output only. Snapshot of the custom target types referenced by the targets - * taken at release creation time. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $custom_target_type_snapshots; - /** - * Output only. Current state of the render operation. - * - * Generated from protobuf field .google.cloud.deploy.v1.Release.RenderState render_state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $render_state = 0; - /** - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 16; - */ - protected $etag = ''; - /** - * The Skaffold version to use when operating on this release, such as - * "1.20.0". Not all versions are valid; Cloud Deploy supports a specific set - * of versions. - * If unset, the most recent supported Skaffold version will be used. - * - * Generated from protobuf field string skaffold_version = 19; - */ - protected $skaffold_version = ''; - /** - * Output only. Map from target ID to the target artifacts created - * during the render operation. - * - * Generated from protobuf field map target_artifacts = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $target_artifacts; - /** - * Output only. Map from target ID to details of the render operation for that - * target. - * - * Generated from protobuf field map target_renders = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $target_renders; - /** - * Output only. Information around the state of the Release. - * - * Generated from protobuf field .google.cloud.deploy.v1.Release.ReleaseCondition condition = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $condition = null; - /** - * Optional. The deploy parameters to use for all targets in this release. - * - * Generated from protobuf field map deploy_parameters = 25 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $deploy_parameters; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Optional. Name of the `Release`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`. - * The `release` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` - * @type string $uid - * Output only. Unique identifier of the `Release`. - * @type string $description - * Description of the `Release`. Max length is 255 characters. - * @type array|\Google\Protobuf\Internal\MapField $annotations - * User annotations. These attributes can only be set and used by the - * user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations - * for more details such as format and size limitations. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Labels are attributes that can be set and used by both the - * user and by Cloud Deploy. Labels must meet the following constraints: - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. - * * All characters must use UTF-8 encoding, and international characters are - * allowed. - * * Keys must start with a lowercase letter or international character. - * * Each resource is limited to a maximum of 64 labels. - * Both keys and values are additionally constrained to be <= 128 bytes. - * @type bool $abandoned - * Output only. Indicates whether this is an abandoned release. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time at which the `Release` was created. - * @type \Google\Protobuf\Timestamp $render_start_time - * Output only. Time at which the render began. - * @type \Google\Protobuf\Timestamp $render_end_time - * Output only. Time at which the render completed. - * @type string $skaffold_config_uri - * Cloud Storage URI of tar.gz archive containing Skaffold configuration. - * @type string $skaffold_config_path - * Filepath of the Skaffold config inside of the config URI. - * @type array<\Google\Cloud\Deploy\V1\BuildArtifact>|\Google\Protobuf\Internal\RepeatedField $build_artifacts - * List of artifacts to pass through to Skaffold command. - * @type \Google\Cloud\Deploy\V1\DeliveryPipeline $delivery_pipeline_snapshot - * Output only. Snapshot of the parent pipeline taken at release creation - * time. - * @type array<\Google\Cloud\Deploy\V1\Target>|\Google\Protobuf\Internal\RepeatedField $target_snapshots - * Output only. Snapshot of the targets taken at release creation time. - * @type array<\Google\Cloud\Deploy\V1\CustomTargetType>|\Google\Protobuf\Internal\RepeatedField $custom_target_type_snapshots - * Output only. Snapshot of the custom target types referenced by the targets - * taken at release creation time. - * @type int $render_state - * Output only. Current state of the render operation. - * @type string $etag - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * @type string $skaffold_version - * The Skaffold version to use when operating on this release, such as - * "1.20.0". Not all versions are valid; Cloud Deploy supports a specific set - * of versions. - * If unset, the most recent supported Skaffold version will be used. - * @type array|\Google\Protobuf\Internal\MapField $target_artifacts - * Output only. Map from target ID to the target artifacts created - * during the render operation. - * @type array|\Google\Protobuf\Internal\MapField $target_renders - * Output only. Map from target ID to details of the render operation for that - * target. - * @type \Google\Cloud\Deploy\V1\Release\ReleaseCondition $condition - * Output only. Information around the state of the Release. - * @type array|\Google\Protobuf\Internal\MapField $deploy_parameters - * Optional. The deploy parameters to use for all targets in this release. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Name of the `Release`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`. - * The `release` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Optional. Name of the `Release`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`. - * The `release` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. Unique identifier of the `Release`. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. Unique identifier of the `Release`. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Description of the `Release`. Max length is 255 characters. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Description of the `Release`. Max length is 255 characters. - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * User annotations. These attributes can only be set and used by the - * user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations - * for more details such as format and size limitations. - * - * Generated from protobuf field map annotations = 4; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * User annotations. These attributes can only be set and used by the - * user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations - * for more details such as format and size limitations. - * - * Generated from protobuf field map annotations = 4; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAnnotations($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->annotations = $arr; - - return $this; - } - - /** - * Labels are attributes that can be set and used by both the - * user and by Cloud Deploy. Labels must meet the following constraints: - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. - * * All characters must use UTF-8 encoding, and international characters are - * allowed. - * * Keys must start with a lowercase letter or international character. - * * Each resource is limited to a maximum of 64 labels. - * Both keys and values are additionally constrained to be <= 128 bytes. - * - * Generated from protobuf field map labels = 5; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Labels are attributes that can be set and used by both the - * user and by Cloud Deploy. Labels must meet the following constraints: - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. - * * All characters must use UTF-8 encoding, and international characters are - * allowed. - * * Keys must start with a lowercase letter or international character. - * * Each resource is limited to a maximum of 64 labels. - * Both keys and values are additionally constrained to be <= 128 bytes. - * - * Generated from protobuf field map labels = 5; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Output only. Indicates whether this is an abandoned release. - * - * Generated from protobuf field bool abandoned = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getAbandoned() - { - return $this->abandoned; - } - - /** - * Output only. Indicates whether this is an abandoned release. - * - * Generated from protobuf field bool abandoned = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setAbandoned($var) - { - GPBUtil::checkBool($var); - $this->abandoned = $var; - - return $this; - } - - /** - * Output only. Time at which the `Release` was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time at which the `Release` was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. Time at which the render began. - * - * Generated from protobuf field .google.protobuf.Timestamp render_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getRenderStartTime() - { - return $this->render_start_time; - } - - public function hasRenderStartTime() - { - return isset($this->render_start_time); - } - - public function clearRenderStartTime() - { - unset($this->render_start_time); - } - - /** - * Output only. Time at which the render began. - * - * Generated from protobuf field .google.protobuf.Timestamp render_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setRenderStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->render_start_time = $var; - - return $this; - } - - /** - * Output only. Time at which the render completed. - * - * Generated from protobuf field .google.protobuf.Timestamp render_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getRenderEndTime() - { - return $this->render_end_time; - } - - public function hasRenderEndTime() - { - return isset($this->render_end_time); - } - - public function clearRenderEndTime() - { - unset($this->render_end_time); - } - - /** - * Output only. Time at which the render completed. - * - * Generated from protobuf field .google.protobuf.Timestamp render_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setRenderEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->render_end_time = $var; - - return $this; - } - - /** - * Cloud Storage URI of tar.gz archive containing Skaffold configuration. - * - * Generated from protobuf field string skaffold_config_uri = 17; - * @return string - */ - public function getSkaffoldConfigUri() - { - return $this->skaffold_config_uri; - } - - /** - * Cloud Storage URI of tar.gz archive containing Skaffold configuration. - * - * Generated from protobuf field string skaffold_config_uri = 17; - * @param string $var - * @return $this - */ - public function setSkaffoldConfigUri($var) - { - GPBUtil::checkString($var, True); - $this->skaffold_config_uri = $var; - - return $this; - } - - /** - * Filepath of the Skaffold config inside of the config URI. - * - * Generated from protobuf field string skaffold_config_path = 9; - * @return string - */ - public function getSkaffoldConfigPath() - { - return $this->skaffold_config_path; - } - - /** - * Filepath of the Skaffold config inside of the config URI. - * - * Generated from protobuf field string skaffold_config_path = 9; - * @param string $var - * @return $this - */ - public function setSkaffoldConfigPath($var) - { - GPBUtil::checkString($var, True); - $this->skaffold_config_path = $var; - - return $this; - } - - /** - * List of artifacts to pass through to Skaffold command. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBuildArtifacts() - { - return $this->build_artifacts; - } - - /** - * List of artifacts to pass through to Skaffold command. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10; - * @param array<\Google\Cloud\Deploy\V1\BuildArtifact>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBuildArtifacts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\BuildArtifact::class); - $this->build_artifacts = $arr; - - return $this; - } - - /** - * Output only. Snapshot of the parent pipeline taken at release creation - * time. - * - * Generated from protobuf field .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline_snapshot = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\DeliveryPipeline|null - */ - public function getDeliveryPipelineSnapshot() - { - return $this->delivery_pipeline_snapshot; - } - - public function hasDeliveryPipelineSnapshot() - { - return isset($this->delivery_pipeline_snapshot); - } - - public function clearDeliveryPipelineSnapshot() - { - unset($this->delivery_pipeline_snapshot); - } - - /** - * Output only. Snapshot of the parent pipeline taken at release creation - * time. - * - * Generated from protobuf field .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline_snapshot = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\DeliveryPipeline $var - * @return $this - */ - public function setDeliveryPipelineSnapshot($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\DeliveryPipeline::class); - $this->delivery_pipeline_snapshot = $var; - - return $this; - } - - /** - * Output only. Snapshot of the targets taken at release creation time. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTargetSnapshots() - { - return $this->target_snapshots; - } - - /** - * Output only. Snapshot of the targets taken at release creation time. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\Deploy\V1\Target>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTargetSnapshots($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\Target::class); - $this->target_snapshots = $arr; - - return $this; - } - - /** - * Output only. Snapshot of the custom target types referenced by the targets - * taken at release creation time. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCustomTargetTypeSnapshots() - { - return $this->custom_target_type_snapshots; - } - - /** - * Output only. Snapshot of the custom target types referenced by the targets - * taken at release creation time. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\Deploy\V1\CustomTargetType>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCustomTargetTypeSnapshots($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\CustomTargetType::class); - $this->custom_target_type_snapshots = $arr; - - return $this; - } - - /** - * Output only. Current state of the render operation. - * - * Generated from protobuf field .google.cloud.deploy.v1.Release.RenderState render_state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getRenderState() - { - return $this->render_state; - } - - /** - * Output only. Current state of the render operation. - * - * Generated from protobuf field .google.cloud.deploy.v1.Release.RenderState render_state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setRenderState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Release\RenderState::class); - $this->render_state = $var; - - return $this; - } - - /** - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 16; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 16; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * The Skaffold version to use when operating on this release, such as - * "1.20.0". Not all versions are valid; Cloud Deploy supports a specific set - * of versions. - * If unset, the most recent supported Skaffold version will be used. - * - * Generated from protobuf field string skaffold_version = 19; - * @return string - */ - public function getSkaffoldVersion() - { - return $this->skaffold_version; - } - - /** - * The Skaffold version to use when operating on this release, such as - * "1.20.0". Not all versions are valid; Cloud Deploy supports a specific set - * of versions. - * If unset, the most recent supported Skaffold version will be used. - * - * Generated from protobuf field string skaffold_version = 19; - * @param string $var - * @return $this - */ - public function setSkaffoldVersion($var) - { - GPBUtil::checkString($var, True); - $this->skaffold_version = $var; - - return $this; - } - - /** - * Output only. Map from target ID to the target artifacts created - * during the render operation. - * - * Generated from protobuf field map target_artifacts = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getTargetArtifacts() - { - return $this->target_artifacts; - } - - /** - * Output only. Map from target ID to the target artifacts created - * during the render operation. - * - * Generated from protobuf field map target_artifacts = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setTargetArtifacts($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\TargetArtifact::class); - $this->target_artifacts = $arr; - - return $this; - } - - /** - * Output only. Map from target ID to details of the render operation for that - * target. - * - * Generated from protobuf field map target_renders = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getTargetRenders() - { - return $this->target_renders; - } - - /** - * Output only. Map from target ID to details of the render operation for that - * target. - * - * Generated from protobuf field map target_renders = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setTargetRenders($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\Release\TargetRender::class); - $this->target_renders = $arr; - - return $this; - } - - /** - * Output only. Information around the state of the Release. - * - * Generated from protobuf field .google.cloud.deploy.v1.Release.ReleaseCondition condition = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\Release\ReleaseCondition|null - */ - public function getCondition() - { - return $this->condition; - } - - public function hasCondition() - { - return isset($this->condition); - } - - public function clearCondition() - { - unset($this->condition); - } - - /** - * Output only. Information around the state of the Release. - * - * Generated from protobuf field .google.cloud.deploy.v1.Release.ReleaseCondition condition = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\Release\ReleaseCondition $var - * @return $this - */ - public function setCondition($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Release\ReleaseCondition::class); - $this->condition = $var; - - return $this; - } - - /** - * Optional. The deploy parameters to use for all targets in this release. - * - * Generated from protobuf field map deploy_parameters = 25 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getDeployParameters() - { - return $this->deploy_parameters; - } - - /** - * Optional. The deploy parameters to use for all targets in this release. - * - * Generated from protobuf field map deploy_parameters = 25 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setDeployParameters($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->deploy_parameters = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/ReleaseCondition.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/ReleaseCondition.php deleted file mode 100644 index 5312fff399f3..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/ReleaseCondition.php +++ /dev/null @@ -1,128 +0,0 @@ -google.cloud.deploy.v1.Release.ReleaseCondition - */ -class ReleaseCondition extends \Google\Protobuf\Internal\Message -{ - /** - * Details around the Releases's overall status. - * - * Generated from protobuf field .google.cloud.deploy.v1.Release.ReleaseReadyCondition release_ready_condition = 1; - */ - protected $release_ready_condition = null; - /** - * Details around the support state of the release's Skaffold - * version. - * - * Generated from protobuf field .google.cloud.deploy.v1.Release.SkaffoldSupportedCondition skaffold_supported_condition = 2; - */ - protected $skaffold_supported_condition = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Deploy\V1\Release\ReleaseReadyCondition $release_ready_condition - * Details around the Releases's overall status. - * @type \Google\Cloud\Deploy\V1\Release\SkaffoldSupportedCondition $skaffold_supported_condition - * Details around the support state of the release's Skaffold - * version. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Details around the Releases's overall status. - * - * Generated from protobuf field .google.cloud.deploy.v1.Release.ReleaseReadyCondition release_ready_condition = 1; - * @return \Google\Cloud\Deploy\V1\Release\ReleaseReadyCondition|null - */ - public function getReleaseReadyCondition() - { - return $this->release_ready_condition; - } - - public function hasReleaseReadyCondition() - { - return isset($this->release_ready_condition); - } - - public function clearReleaseReadyCondition() - { - unset($this->release_ready_condition); - } - - /** - * Details around the Releases's overall status. - * - * Generated from protobuf field .google.cloud.deploy.v1.Release.ReleaseReadyCondition release_ready_condition = 1; - * @param \Google\Cloud\Deploy\V1\Release\ReleaseReadyCondition $var - * @return $this - */ - public function setReleaseReadyCondition($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Release\ReleaseReadyCondition::class); - $this->release_ready_condition = $var; - - return $this; - } - - /** - * Details around the support state of the release's Skaffold - * version. - * - * Generated from protobuf field .google.cloud.deploy.v1.Release.SkaffoldSupportedCondition skaffold_supported_condition = 2; - * @return \Google\Cloud\Deploy\V1\Release\SkaffoldSupportedCondition|null - */ - public function getSkaffoldSupportedCondition() - { - return $this->skaffold_supported_condition; - } - - public function hasSkaffoldSupportedCondition() - { - return isset($this->skaffold_supported_condition); - } - - public function clearSkaffoldSupportedCondition() - { - unset($this->skaffold_supported_condition); - } - - /** - * Details around the support state of the release's Skaffold - * version. - * - * Generated from protobuf field .google.cloud.deploy.v1.Release.SkaffoldSupportedCondition skaffold_supported_condition = 2; - * @param \Google\Cloud\Deploy\V1\Release\SkaffoldSupportedCondition $var - * @return $this - */ - public function setSkaffoldSupportedCondition($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Release\SkaffoldSupportedCondition::class); - $this->skaffold_supported_condition = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ReleaseCondition::class, \Google\Cloud\Deploy\V1\Release_ReleaseCondition::class); - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/ReleaseReadyCondition.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/ReleaseReadyCondition.php deleted file mode 100644 index 067f272f1658..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/ReleaseReadyCondition.php +++ /dev/null @@ -1,84 +0,0 @@ -google.cloud.deploy.v1.Release.ReleaseReadyCondition - */ -class ReleaseReadyCondition extends \Google\Protobuf\Internal\Message -{ - /** - * True if the Release is in a valid state. Otherwise at least one condition - * in `ReleaseCondition` is in an invalid state. Iterate over those - * conditions and see which condition(s) has status = false to find out what - * is wrong with the Release. - * - * Generated from protobuf field bool status = 1; - */ - protected $status = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $status - * True if the Release is in a valid state. Otherwise at least one condition - * in `ReleaseCondition` is in an invalid state. Iterate over those - * conditions and see which condition(s) has status = false to find out what - * is wrong with the Release. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * True if the Release is in a valid state. Otherwise at least one condition - * in `ReleaseCondition` is in an invalid state. Iterate over those - * conditions and see which condition(s) has status = false to find out what - * is wrong with the Release. - * - * Generated from protobuf field bool status = 1; - * @return bool - */ - public function getStatus() - { - return $this->status; - } - - /** - * True if the Release is in a valid state. Otherwise at least one condition - * in `ReleaseCondition` is in an invalid state. Iterate over those - * conditions and see which condition(s) has status = false to find out what - * is wrong with the Release. - * - * Generated from protobuf field bool status = 1; - * @param bool $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkBool($var); - $this->status = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ReleaseReadyCondition::class, \Google\Cloud\Deploy\V1\Release_ReleaseReadyCondition::class); - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/RenderState.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/RenderState.php deleted file mode 100644 index 37282c517e76..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/RenderState.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.deploy.v1.Release.RenderState - */ -class RenderState -{ - /** - * The render state is unspecified. - * - * Generated from protobuf enum RENDER_STATE_UNSPECIFIED = 0; - */ - const RENDER_STATE_UNSPECIFIED = 0; - /** - * All rendering operations have completed successfully. - * - * Generated from protobuf enum SUCCEEDED = 1; - */ - const SUCCEEDED = 1; - /** - * All rendering operations have completed, and one or more have failed. - * - * Generated from protobuf enum FAILED = 2; - */ - const FAILED = 2; - /** - * Rendering has started and is not complete. - * - * Generated from protobuf enum IN_PROGRESS = 3; - */ - const IN_PROGRESS = 3; - - private static $valueToName = [ - self::RENDER_STATE_UNSPECIFIED => 'RENDER_STATE_UNSPECIFIED', - self::SUCCEEDED => 'SUCCEEDED', - self::FAILED => 'FAILED', - self::IN_PROGRESS => 'IN_PROGRESS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RenderState::class, \Google\Cloud\Deploy\V1\Release_RenderState::class); - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/SkaffoldSupportedCondition.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/SkaffoldSupportedCondition.php deleted file mode 100644 index 282e3fa25ab1..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/SkaffoldSupportedCondition.php +++ /dev/null @@ -1,201 +0,0 @@ -google.cloud.deploy.v1.Release.SkaffoldSupportedCondition - */ -class SkaffoldSupportedCondition extends \Google\Protobuf\Internal\Message -{ - /** - * True if the version of Skaffold used by this release is supported. - * - * Generated from protobuf field bool status = 1; - */ - protected $status = false; - /** - * The Skaffold support state for this release's version of Skaffold. - * - * Generated from protobuf field .google.cloud.deploy.v1.SkaffoldSupportState skaffold_support_state = 2; - */ - protected $skaffold_support_state = 0; - /** - * The time at which this release's version of Skaffold will enter - * maintenance mode. - * - * Generated from protobuf field .google.protobuf.Timestamp maintenance_mode_time = 3; - */ - protected $maintenance_mode_time = null; - /** - * The time at which this release's version of Skaffold will no longer be - * supported. - * - * Generated from protobuf field .google.protobuf.Timestamp support_expiration_time = 4; - */ - protected $support_expiration_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $status - * True if the version of Skaffold used by this release is supported. - * @type int $skaffold_support_state - * The Skaffold support state for this release's version of Skaffold. - * @type \Google\Protobuf\Timestamp $maintenance_mode_time - * The time at which this release's version of Skaffold will enter - * maintenance mode. - * @type \Google\Protobuf\Timestamp $support_expiration_time - * The time at which this release's version of Skaffold will no longer be - * supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * True if the version of Skaffold used by this release is supported. - * - * Generated from protobuf field bool status = 1; - * @return bool - */ - public function getStatus() - { - return $this->status; - } - - /** - * True if the version of Skaffold used by this release is supported. - * - * Generated from protobuf field bool status = 1; - * @param bool $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkBool($var); - $this->status = $var; - - return $this; - } - - /** - * The Skaffold support state for this release's version of Skaffold. - * - * Generated from protobuf field .google.cloud.deploy.v1.SkaffoldSupportState skaffold_support_state = 2; - * @return int - */ - public function getSkaffoldSupportState() - { - return $this->skaffold_support_state; - } - - /** - * The Skaffold support state for this release's version of Skaffold. - * - * Generated from protobuf field .google.cloud.deploy.v1.SkaffoldSupportState skaffold_support_state = 2; - * @param int $var - * @return $this - */ - public function setSkaffoldSupportState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\SkaffoldSupportState::class); - $this->skaffold_support_state = $var; - - return $this; - } - - /** - * The time at which this release's version of Skaffold will enter - * maintenance mode. - * - * Generated from protobuf field .google.protobuf.Timestamp maintenance_mode_time = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getMaintenanceModeTime() - { - return $this->maintenance_mode_time; - } - - public function hasMaintenanceModeTime() - { - return isset($this->maintenance_mode_time); - } - - public function clearMaintenanceModeTime() - { - unset($this->maintenance_mode_time); - } - - /** - * The time at which this release's version of Skaffold will enter - * maintenance mode. - * - * Generated from protobuf field .google.protobuf.Timestamp maintenance_mode_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setMaintenanceModeTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->maintenance_mode_time = $var; - - return $this; - } - - /** - * The time at which this release's version of Skaffold will no longer be - * supported. - * - * Generated from protobuf field .google.protobuf.Timestamp support_expiration_time = 4; - * @return \Google\Protobuf\Timestamp|null - */ - public function getSupportExpirationTime() - { - return $this->support_expiration_time; - } - - public function hasSupportExpirationTime() - { - return isset($this->support_expiration_time); - } - - public function clearSupportExpirationTime() - { - unset($this->support_expiration_time); - } - - /** - * The time at which this release's version of Skaffold will no longer be - * supported. - * - * Generated from protobuf field .google.protobuf.Timestamp support_expiration_time = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setSupportExpirationTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->support_expiration_time = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SkaffoldSupportedCondition::class, \Google\Cloud\Deploy\V1\Release_SkaffoldSupportedCondition::class); - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/TargetRender.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/TargetRender.php deleted file mode 100644 index 6042ed840749..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/TargetRender.php +++ /dev/null @@ -1,232 +0,0 @@ -google.cloud.deploy.v1.Release.TargetRender - */ -class TargetRender extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The resource name of the Cloud Build `Build` object that is - * used to render the manifest for this target. Format is - * `projects/{project}/locations/{location}/builds/{build}`. - * - * Generated from protobuf field string rendering_build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $rendering_build = ''; - /** - * Output only. Current state of the render operation for this Target. - * - * Generated from protobuf field .google.cloud.deploy.v1.Release.TargetRender.TargetRenderState rendering_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $rendering_state = 0; - /** - * Output only. Metadata related to the `Release` render for this Target. - * - * Generated from protobuf field .google.cloud.deploy.v1.RenderMetadata metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $metadata = null; - /** - * Output only. Reason this render failed. This will always be unspecified - * while the render in progress. - * - * Generated from protobuf field .google.cloud.deploy.v1.Release.TargetRender.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $failure_cause = 0; - /** - * Output only. Additional information about the render failure, if - * available. - * - * Generated from protobuf field string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $failure_message = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $rendering_build - * Output only. The resource name of the Cloud Build `Build` object that is - * used to render the manifest for this target. Format is - * `projects/{project}/locations/{location}/builds/{build}`. - * @type int $rendering_state - * Output only. Current state of the render operation for this Target. - * @type \Google\Cloud\Deploy\V1\RenderMetadata $metadata - * Output only. Metadata related to the `Release` render for this Target. - * @type int $failure_cause - * Output only. Reason this render failed. This will always be unspecified - * while the render in progress. - * @type string $failure_message - * Output only. Additional information about the render failure, if - * available. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The resource name of the Cloud Build `Build` object that is - * used to render the manifest for this target. Format is - * `projects/{project}/locations/{location}/builds/{build}`. - * - * Generated from protobuf field string rendering_build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getRenderingBuild() - { - return $this->rendering_build; - } - - /** - * Output only. The resource name of the Cloud Build `Build` object that is - * used to render the manifest for this target. Format is - * `projects/{project}/locations/{location}/builds/{build}`. - * - * Generated from protobuf field string rendering_build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setRenderingBuild($var) - { - GPBUtil::checkString($var, True); - $this->rendering_build = $var; - - return $this; - } - - /** - * Output only. Current state of the render operation for this Target. - * - * Generated from protobuf field .google.cloud.deploy.v1.Release.TargetRender.TargetRenderState rendering_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getRenderingState() - { - return $this->rendering_state; - } - - /** - * Output only. Current state of the render operation for this Target. - * - * Generated from protobuf field .google.cloud.deploy.v1.Release.TargetRender.TargetRenderState rendering_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setRenderingState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Release\TargetRender\TargetRenderState::class); - $this->rendering_state = $var; - - return $this; - } - - /** - * Output only. Metadata related to the `Release` render for this Target. - * - * Generated from protobuf field .google.cloud.deploy.v1.RenderMetadata metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\RenderMetadata|null - */ - public function getMetadata() - { - return $this->metadata; - } - - public function hasMetadata() - { - return isset($this->metadata); - } - - public function clearMetadata() - { - unset($this->metadata); - } - - /** - * Output only. Metadata related to the `Release` render for this Target. - * - * Generated from protobuf field .google.cloud.deploy.v1.RenderMetadata metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\RenderMetadata $var - * @return $this - */ - public function setMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\RenderMetadata::class); - $this->metadata = $var; - - return $this; - } - - /** - * Output only. Reason this render failed. This will always be unspecified - * while the render in progress. - * - * Generated from protobuf field .google.cloud.deploy.v1.Release.TargetRender.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getFailureCause() - { - return $this->failure_cause; - } - - /** - * Output only. Reason this render failed. This will always be unspecified - * while the render in progress. - * - * Generated from protobuf field .google.cloud.deploy.v1.Release.TargetRender.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setFailureCause($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Release\TargetRender\FailureCause::class); - $this->failure_cause = $var; - - return $this; - } - - /** - * Output only. Additional information about the render failure, if - * available. - * - * Generated from protobuf field string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getFailureMessage() - { - return $this->failure_message; - } - - /** - * Output only. Additional information about the render failure, if - * available. - * - * Generated from protobuf field string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setFailureMessage($var) - { - GPBUtil::checkString($var, True); - $this->failure_message = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(TargetRender::class, \Google\Cloud\Deploy\V1\Release_TargetRender::class); - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/TargetRender/FailureCause.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/TargetRender/FailureCause.php deleted file mode 100644 index b5c87f038ed3..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/TargetRender/FailureCause.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.deploy.v1.Release.TargetRender.FailureCause - */ -class FailureCause -{ - /** - * No reason for failure is specified. - * - * Generated from protobuf enum FAILURE_CAUSE_UNSPECIFIED = 0; - */ - const FAILURE_CAUSE_UNSPECIFIED = 0; - /** - * Cloud Build is not available, either because it is not enabled or - * because Cloud Deploy has insufficient permissions. See [required - * permission](https://cloud.google.com/deploy/docs/cloud-deploy-service-account#required_permissions). - * - * Generated from protobuf enum CLOUD_BUILD_UNAVAILABLE = 1; - */ - const CLOUD_BUILD_UNAVAILABLE = 1; - /** - * The render operation did not complete successfully; check Cloud Build - * logs. - * - * Generated from protobuf enum EXECUTION_FAILED = 2; - */ - const EXECUTION_FAILED = 2; - /** - * Cloud Build failed to fulfill Cloud Deploy's request. See - * failure_message for additional details. - * - * Generated from protobuf enum CLOUD_BUILD_REQUEST_FAILED = 3; - */ - const CLOUD_BUILD_REQUEST_FAILED = 3; - /** - * The render operation did not complete successfully because the - * verification stanza required for verify was not found on the Skaffold - * configuration. - * - * Generated from protobuf enum VERIFICATION_CONFIG_NOT_FOUND = 4; - */ - const VERIFICATION_CONFIG_NOT_FOUND = 4; - /** - * The render operation did not complete successfully because the custom - * action required for predeploy or postdeploy was not found in the - * Skaffold configuration. See failure_message for additional details. - * - * Generated from protobuf enum CUSTOM_ACTION_NOT_FOUND = 5; - */ - const CUSTOM_ACTION_NOT_FOUND = 5; - /** - * Release failed during rendering because the release configuration is - * not supported with the specified deployment strategy. - * - * Generated from protobuf enum DEPLOYMENT_STRATEGY_NOT_SUPPORTED = 6; - */ - const DEPLOYMENT_STRATEGY_NOT_SUPPORTED = 6; - /** - * The render operation had a feature configured that is not supported. - * - * Generated from protobuf enum RENDER_FEATURE_NOT_SUPPORTED = 7; - */ - const RENDER_FEATURE_NOT_SUPPORTED = 7; - - private static $valueToName = [ - self::FAILURE_CAUSE_UNSPECIFIED => 'FAILURE_CAUSE_UNSPECIFIED', - self::CLOUD_BUILD_UNAVAILABLE => 'CLOUD_BUILD_UNAVAILABLE', - self::EXECUTION_FAILED => 'EXECUTION_FAILED', - self::CLOUD_BUILD_REQUEST_FAILED => 'CLOUD_BUILD_REQUEST_FAILED', - self::VERIFICATION_CONFIG_NOT_FOUND => 'VERIFICATION_CONFIG_NOT_FOUND', - self::CUSTOM_ACTION_NOT_FOUND => 'CUSTOM_ACTION_NOT_FOUND', - self::DEPLOYMENT_STRATEGY_NOT_SUPPORTED => 'DEPLOYMENT_STRATEGY_NOT_SUPPORTED', - self::RENDER_FEATURE_NOT_SUPPORTED => 'RENDER_FEATURE_NOT_SUPPORTED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(FailureCause::class, \Google\Cloud\Deploy\V1\Release_TargetRender_FailureCause::class); - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/TargetRender/TargetRenderState.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/TargetRender/TargetRenderState.php deleted file mode 100644 index 3f4840b1272f..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Release/TargetRender/TargetRenderState.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.deploy.v1.Release.TargetRender.TargetRenderState - */ -class TargetRenderState -{ - /** - * The render operation state is unspecified. - * - * Generated from protobuf enum TARGET_RENDER_STATE_UNSPECIFIED = 0; - */ - const TARGET_RENDER_STATE_UNSPECIFIED = 0; - /** - * The render operation has completed successfully. - * - * Generated from protobuf enum SUCCEEDED = 1; - */ - const SUCCEEDED = 1; - /** - * The render operation has failed. - * - * Generated from protobuf enum FAILED = 2; - */ - const FAILED = 2; - /** - * The render operation is in progress. - * - * Generated from protobuf enum IN_PROGRESS = 3; - */ - const IN_PROGRESS = 3; - - private static $valueToName = [ - self::TARGET_RENDER_STATE_UNSPECIFIED => 'TARGET_RENDER_STATE_UNSPECIFIED', - self::SUCCEEDED => 'SUCCEEDED', - self::FAILED => 'FAILED', - self::IN_PROGRESS => 'IN_PROGRESS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(TargetRenderState::class, \Google\Cloud\Deploy\V1\Release_TargetRender_TargetRenderState::class); - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ReleaseNotificationEvent.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ReleaseNotificationEvent.php deleted file mode 100644 index 564707b255ce..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ReleaseNotificationEvent.php +++ /dev/null @@ -1,205 +0,0 @@ -google.cloud.deploy.v1.ReleaseNotificationEvent - */ -class ReleaseNotificationEvent extends \Google\Protobuf\Internal\Message -{ - /** - * Debug message for when a notification fails to send. - * - * Generated from protobuf field string message = 1; - */ - protected $message = ''; - /** - * Unique identifier of the `DeliveryPipeline`. - * - * Generated from protobuf field string pipeline_uid = 4; - */ - protected $pipeline_uid = ''; - /** - * Unique identifier of the `Release`. - * - * Generated from protobuf field string release_uid = 5; - */ - protected $release_uid = ''; - /** - * The name of the `Release`. - * - * Generated from protobuf field string release = 2; - */ - protected $release = ''; - /** - * Type of this notification, e.g. for a Pub/Sub failure. - * - * Generated from protobuf field .google.cloud.deploy.v1.Type type = 3; - */ - protected $type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $message - * Debug message for when a notification fails to send. - * @type string $pipeline_uid - * Unique identifier of the `DeliveryPipeline`. - * @type string $release_uid - * Unique identifier of the `Release`. - * @type string $release - * The name of the `Release`. - * @type int $type - * Type of this notification, e.g. for a Pub/Sub failure. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\ReleaseNotificationPayload::initOnce(); - parent::__construct($data); - } - - /** - * Debug message for when a notification fails to send. - * - * Generated from protobuf field string message = 1; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Debug message for when a notification fails to send. - * - * Generated from protobuf field string message = 1; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * Unique identifier of the `DeliveryPipeline`. - * - * Generated from protobuf field string pipeline_uid = 4; - * @return string - */ - public function getPipelineUid() - { - return $this->pipeline_uid; - } - - /** - * Unique identifier of the `DeliveryPipeline`. - * - * Generated from protobuf field string pipeline_uid = 4; - * @param string $var - * @return $this - */ - public function setPipelineUid($var) - { - GPBUtil::checkString($var, True); - $this->pipeline_uid = $var; - - return $this; - } - - /** - * Unique identifier of the `Release`. - * - * Generated from protobuf field string release_uid = 5; - * @return string - */ - public function getReleaseUid() - { - return $this->release_uid; - } - - /** - * Unique identifier of the `Release`. - * - * Generated from protobuf field string release_uid = 5; - * @param string $var - * @return $this - */ - public function setReleaseUid($var) - { - GPBUtil::checkString($var, True); - $this->release_uid = $var; - - return $this; - } - - /** - * The name of the `Release`. - * - * Generated from protobuf field string release = 2; - * @return string - */ - public function getRelease() - { - return $this->release; - } - - /** - * The name of the `Release`. - * - * Generated from protobuf field string release = 2; - * @param string $var - * @return $this - */ - public function setRelease($var) - { - GPBUtil::checkString($var, True); - $this->release = $var; - - return $this; - } - - /** - * Type of this notification, e.g. for a Pub/Sub failure. - * - * Generated from protobuf field .google.cloud.deploy.v1.Type type = 3; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Type of this notification, e.g. for a Pub/Sub failure. - * - * Generated from protobuf field .google.cloud.deploy.v1.Type type = 3; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Type::class); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ReleaseRenderEvent.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ReleaseRenderEvent.php deleted file mode 100644 index 59933d460f13..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/ReleaseRenderEvent.php +++ /dev/null @@ -1,216 +0,0 @@ -google.cloud.deploy.v1.ReleaseRenderEvent - */ -class ReleaseRenderEvent extends \Google\Protobuf\Internal\Message -{ - /** - * Debug message for when a render transition occurs. Provides further - * details as rendering progresses through render states. - * - * Generated from protobuf field string message = 1; - */ - protected $message = ''; - /** - * Unique identifier of the `DeliveryPipeline`. - * - * Generated from protobuf field string pipeline_uid = 4; - */ - protected $pipeline_uid = ''; - /** - * The name of the release. - * release_uid is not in this log message because we write some of these log - * messages at release creation time, before we've generated the uid. - * - * Generated from protobuf field string release = 2; - */ - protected $release = ''; - /** - * Type of this notification, e.g. for a release render state change event. - * - * Generated from protobuf field .google.cloud.deploy.v1.Type type = 5; - */ - protected $type = 0; - /** - * The state of the release render. - * - * Generated from protobuf field .google.cloud.deploy.v1.Release.RenderState release_render_state = 3; - */ - protected $release_render_state = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $message - * Debug message for when a render transition occurs. Provides further - * details as rendering progresses through render states. - * @type string $pipeline_uid - * Unique identifier of the `DeliveryPipeline`. - * @type string $release - * The name of the release. - * release_uid is not in this log message because we write some of these log - * messages at release creation time, before we've generated the uid. - * @type int $type - * Type of this notification, e.g. for a release render state change event. - * @type int $release_render_state - * The state of the release render. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\ReleaseRenderPayload::initOnce(); - parent::__construct($data); - } - - /** - * Debug message for when a render transition occurs. Provides further - * details as rendering progresses through render states. - * - * Generated from protobuf field string message = 1; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Debug message for when a render transition occurs. Provides further - * details as rendering progresses through render states. - * - * Generated from protobuf field string message = 1; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * Unique identifier of the `DeliveryPipeline`. - * - * Generated from protobuf field string pipeline_uid = 4; - * @return string - */ - public function getPipelineUid() - { - return $this->pipeline_uid; - } - - /** - * Unique identifier of the `DeliveryPipeline`. - * - * Generated from protobuf field string pipeline_uid = 4; - * @param string $var - * @return $this - */ - public function setPipelineUid($var) - { - GPBUtil::checkString($var, True); - $this->pipeline_uid = $var; - - return $this; - } - - /** - * The name of the release. - * release_uid is not in this log message because we write some of these log - * messages at release creation time, before we've generated the uid. - * - * Generated from protobuf field string release = 2; - * @return string - */ - public function getRelease() - { - return $this->release; - } - - /** - * The name of the release. - * release_uid is not in this log message because we write some of these log - * messages at release creation time, before we've generated the uid. - * - * Generated from protobuf field string release = 2; - * @param string $var - * @return $this - */ - public function setRelease($var) - { - GPBUtil::checkString($var, True); - $this->release = $var; - - return $this; - } - - /** - * Type of this notification, e.g. for a release render state change event. - * - * Generated from protobuf field .google.cloud.deploy.v1.Type type = 5; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Type of this notification, e.g. for a release render state change event. - * - * Generated from protobuf field .google.cloud.deploy.v1.Type type = 5; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Type::class); - $this->type = $var; - - return $this; - } - - /** - * The state of the release render. - * - * Generated from protobuf field .google.cloud.deploy.v1.Release.RenderState release_render_state = 3; - * @return int - */ - public function getReleaseRenderState() - { - return $this->release_render_state; - } - - /** - * The state of the release render. - * - * Generated from protobuf field .google.cloud.deploy.v1.Release.RenderState release_render_state = 3; - * @param int $var - * @return $this - */ - public function setReleaseRenderState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Release\RenderState::class); - $this->release_render_state = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RenderMetadata.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RenderMetadata.php deleted file mode 100644 index a4ef9c53a1d1..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RenderMetadata.php +++ /dev/null @@ -1,121 +0,0 @@ -google.cloud.deploy.v1.RenderMetadata - */ -class RenderMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Metadata associated with rendering for Cloud Run. - * - * Generated from protobuf field .google.cloud.deploy.v1.CloudRunRenderMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $cloud_run = null; - /** - * Output only. Custom metadata provided by user-defined render operation. - * - * Generated from protobuf field .google.cloud.deploy.v1.CustomMetadata custom = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $custom = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Deploy\V1\CloudRunRenderMetadata $cloud_run - * Output only. Metadata associated with rendering for Cloud Run. - * @type \Google\Cloud\Deploy\V1\CustomMetadata $custom - * Output only. Custom metadata provided by user-defined render operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Metadata associated with rendering for Cloud Run. - * - * Generated from protobuf field .google.cloud.deploy.v1.CloudRunRenderMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\CloudRunRenderMetadata|null - */ - public function getCloudRun() - { - return $this->cloud_run; - } - - public function hasCloudRun() - { - return isset($this->cloud_run); - } - - public function clearCloudRun() - { - unset($this->cloud_run); - } - - /** - * Output only. Metadata associated with rendering for Cloud Run. - * - * Generated from protobuf field .google.cloud.deploy.v1.CloudRunRenderMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\CloudRunRenderMetadata $var - * @return $this - */ - public function setCloudRun($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CloudRunRenderMetadata::class); - $this->cloud_run = $var; - - return $this; - } - - /** - * Output only. Custom metadata provided by user-defined render operation. - * - * Generated from protobuf field .google.cloud.deploy.v1.CustomMetadata custom = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\CustomMetadata|null - */ - public function getCustom() - { - return $this->custom; - } - - public function hasCustom() - { - return isset($this->custom); - } - - public function clearCustom() - { - unset($this->custom); - } - - /** - * Output only. Custom metadata provided by user-defined render operation. - * - * Generated from protobuf field .google.cloud.deploy.v1.CustomMetadata custom = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\CustomMetadata $var - * @return $this - */ - public function setCustom($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CustomMetadata::class); - $this->custom = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairPhase.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairPhase.php deleted file mode 100644 index a82b00878400..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairPhase.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.deploy.v1.RepairPhase - */ -class RepairPhase extends \Google\Protobuf\Internal\Message -{ - protected $repair_phase; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Deploy\V1\RetryPhase $retry - * Output only. Records of the retry attempts for retry repair mode. - * @type \Google\Cloud\Deploy\V1\RollbackAttempt $rollback - * Output only. Rollback attempt for rollback repair mode . - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Records of the retry attempts for retry repair mode. - * - * Generated from protobuf field .google.cloud.deploy.v1.RetryPhase retry = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\RetryPhase|null - */ - public function getRetry() - { - return $this->readOneof(1); - } - - public function hasRetry() - { - return $this->hasOneof(1); - } - - /** - * Output only. Records of the retry attempts for retry repair mode. - * - * Generated from protobuf field .google.cloud.deploy.v1.RetryPhase retry = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\RetryPhase $var - * @return $this - */ - public function setRetry($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\RetryPhase::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Output only. Rollback attempt for rollback repair mode . - * - * Generated from protobuf field .google.cloud.deploy.v1.RollbackAttempt rollback = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\RollbackAttempt|null - */ - public function getRollback() - { - return $this->readOneof(2); - } - - public function hasRollback() - { - return $this->hasOneof(2); - } - - /** - * Output only. Rollback attempt for rollback repair mode . - * - * Generated from protobuf field .google.cloud.deploy.v1.RollbackAttempt rollback = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\RollbackAttempt $var - * @return $this - */ - public function setRollback($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\RollbackAttempt::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getRepairPhase() - { - return $this->whichOneof("repair_phase"); - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairPhaseConfig.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairPhaseConfig.php deleted file mode 100644 index 073057c13470..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairPhaseConfig.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.deploy.v1.RepairPhaseConfig - */ -class RepairPhaseConfig extends \Google\Protobuf\Internal\Message -{ - protected $repair_phase; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Deploy\V1\Retry $retry - * Optional. Retries a failed job. - * @type \Google\Cloud\Deploy\V1\Rollback $rollback - * Optional. Rolls back a `Rollout`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Retries a failed job. - * - * Generated from protobuf field .google.cloud.deploy.v1.Retry retry = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Deploy\V1\Retry|null - */ - public function getRetry() - { - return $this->readOneof(1); - } - - public function hasRetry() - { - return $this->hasOneof(1); - } - - /** - * Optional. Retries a failed job. - * - * Generated from protobuf field .google.cloud.deploy.v1.Retry retry = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Deploy\V1\Retry $var - * @return $this - */ - public function setRetry($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Retry::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Optional. Rolls back a `Rollout`. - * - * Generated from protobuf field .google.cloud.deploy.v1.Rollback rollback = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Deploy\V1\Rollback|null - */ - public function getRollback() - { - return $this->readOneof(2); - } - - public function hasRollback() - { - return $this->hasOneof(2); - } - - /** - * Optional. Rolls back a `Rollout`. - * - * Generated from protobuf field .google.cloud.deploy.v1.Rollback rollback = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Deploy\V1\Rollback $var - * @return $this - */ - public function setRollback($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Rollback::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getRepairPhase() - { - return $this->whichOneof("repair_phase"); - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairRolloutOperation.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairRolloutOperation.php deleted file mode 100644 index 070ec32be411..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairRolloutOperation.php +++ /dev/null @@ -1,211 +0,0 @@ -google.cloud.deploy.v1.RepairRolloutOperation - */ -class RepairRolloutOperation extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The name of the rollout that initiates the `AutomationRun`. - * - * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $rollout = ''; - /** - * Output only. The index of the current repair action in the repair sequence. - * - * Generated from protobuf field int64 current_repair_phase_index = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $current_repair_phase_index = 0; - /** - * Output only. Records of the repair attempts. Each repair phase may have - * multiple retry attempts or single rollback attempt. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.RepairPhase repair_phases = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $repair_phases; - /** - * Output only. The phase ID of the phase that includes the job being - * repaired. - * - * Generated from protobuf field string phase_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $phase_id = ''; - /** - * Output only. The job ID for the Job to repair. - * - * Generated from protobuf field string job_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $job_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $rollout - * Output only. The name of the rollout that initiates the `AutomationRun`. - * @type int|string $current_repair_phase_index - * Output only. The index of the current repair action in the repair sequence. - * @type array<\Google\Cloud\Deploy\V1\RepairPhase>|\Google\Protobuf\Internal\RepeatedField $repair_phases - * Output only. Records of the repair attempts. Each repair phase may have - * multiple retry attempts or single rollback attempt. - * @type string $phase_id - * Output only. The phase ID of the phase that includes the job being - * repaired. - * @type string $job_id - * Output only. The job ID for the Job to repair. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The name of the rollout that initiates the `AutomationRun`. - * - * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getRollout() - { - return $this->rollout; - } - - /** - * Output only. The name of the rollout that initiates the `AutomationRun`. - * - * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setRollout($var) - { - GPBUtil::checkString($var, True); - $this->rollout = $var; - - return $this; - } - - /** - * Output only. The index of the current repair action in the repair sequence. - * - * Generated from protobuf field int64 current_repair_phase_index = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getCurrentRepairPhaseIndex() - { - return $this->current_repair_phase_index; - } - - /** - * Output only. The index of the current repair action in the repair sequence. - * - * Generated from protobuf field int64 current_repair_phase_index = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setCurrentRepairPhaseIndex($var) - { - GPBUtil::checkInt64($var); - $this->current_repair_phase_index = $var; - - return $this; - } - - /** - * Output only. Records of the repair attempts. Each repair phase may have - * multiple retry attempts or single rollback attempt. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.RepairPhase repair_phases = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRepairPhases() - { - return $this->repair_phases; - } - - /** - * Output only. Records of the repair attempts. Each repair phase may have - * multiple retry attempts or single rollback attempt. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.RepairPhase repair_phases = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\Deploy\V1\RepairPhase>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRepairPhases($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\RepairPhase::class); - $this->repair_phases = $arr; - - return $this; - } - - /** - * Output only. The phase ID of the phase that includes the job being - * repaired. - * - * Generated from protobuf field string phase_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getPhaseId() - { - return $this->phase_id; - } - - /** - * Output only. The phase ID of the phase that includes the job being - * repaired. - * - * Generated from protobuf field string phase_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setPhaseId($var) - { - GPBUtil::checkString($var, True); - $this->phase_id = $var; - - return $this; - } - - /** - * Output only. The job ID for the Job to repair. - * - * Generated from protobuf field string job_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getJobId() - { - return $this->job_id; - } - - /** - * Output only. The job ID for the Job to repair. - * - * Generated from protobuf field string job_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setJobId($var) - { - GPBUtil::checkString($var, True); - $this->job_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairRolloutRule.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairRolloutRule.php deleted file mode 100644 index 86ab43ecfc5d..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairRolloutRule.php +++ /dev/null @@ -1,266 +0,0 @@ -google.cloud.deploy.v1.RepairRolloutRule - */ -class RepairRolloutRule extends \Google\Protobuf\Internal\Message -{ - /** - * Required. ID of the rule. This id must be unique in the `Automation` - * resource to which this rule belongs. The format is - * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. - * - * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $id = ''; - /** - * Optional. Phases within which jobs are subject to automatic repair actions - * on failure. Proceeds only after phase name matched any one in the list, or - * for all phases if unspecified. This value must consist of lower-case - * letters, numbers, and hyphens, start with a letter and end with a letter or - * a number, and have a max length of 63 characters. In other words, it must - * match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * - * Generated from protobuf field repeated string phases = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $phases; - /** - * Optional. Jobs to repair. Proceeds only after job name matched any one in - * the list, or for all jobs if unspecified or empty. The phase that includes - * the job must match the phase ID specified in `source_phase`. This value - * must consist of lower-case letters, numbers, and hyphens, start with a - * letter and end with a letter or a number, and have a max length of 63 - * characters. In other words, it must match the following regex: - * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * - * Generated from protobuf field repeated string jobs = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $jobs; - /** - * Output only. Information around the state of the 'Automation' rule. - * - * Generated from protobuf field .google.cloud.deploy.v1.AutomationRuleCondition condition = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $condition = null; - /** - * Required. Defines the types of automatic repair phases for failed jobs. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.RepairPhaseConfig repair_phases = 8 [(.google.api.field_behavior) = REQUIRED]; - */ - private $repair_phases; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * Required. ID of the rule. This id must be unique in the `Automation` - * resource to which this rule belongs. The format is - * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. - * @type array|\Google\Protobuf\Internal\RepeatedField $phases - * Optional. Phases within which jobs are subject to automatic repair actions - * on failure. Proceeds only after phase name matched any one in the list, or - * for all phases if unspecified. This value must consist of lower-case - * letters, numbers, and hyphens, start with a letter and end with a letter or - * a number, and have a max length of 63 characters. In other words, it must - * match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * @type array|\Google\Protobuf\Internal\RepeatedField $jobs - * Optional. Jobs to repair. Proceeds only after job name matched any one in - * the list, or for all jobs if unspecified or empty. The phase that includes - * the job must match the phase ID specified in `source_phase`. This value - * must consist of lower-case letters, numbers, and hyphens, start with a - * letter and end with a letter or a number, and have a max length of 63 - * characters. In other words, it must match the following regex: - * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * @type \Google\Cloud\Deploy\V1\AutomationRuleCondition $condition - * Output only. Information around the state of the 'Automation' rule. - * @type array<\Google\Cloud\Deploy\V1\RepairPhaseConfig>|\Google\Protobuf\Internal\RepeatedField $repair_phases - * Required. Defines the types of automatic repair phases for failed jobs. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. ID of the rule. This id must be unique in the `Automation` - * resource to which this rule belongs. The format is - * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. - * - * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Required. ID of the rule. This id must be unique in the `Automation` - * resource to which this rule belongs. The format is - * `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. - * - * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Optional. Phases within which jobs are subject to automatic repair actions - * on failure. Proceeds only after phase name matched any one in the list, or - * for all phases if unspecified. This value must consist of lower-case - * letters, numbers, and hyphens, start with a letter and end with a letter or - * a number, and have a max length of 63 characters. In other words, it must - * match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * - * Generated from protobuf field repeated string phases = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPhases() - { - return $this->phases; - } - - /** - * Optional. Phases within which jobs are subject to automatic repair actions - * on failure. Proceeds only after phase name matched any one in the list, or - * for all phases if unspecified. This value must consist of lower-case - * letters, numbers, and hyphens, start with a letter and end with a letter or - * a number, and have a max length of 63 characters. In other words, it must - * match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * - * Generated from protobuf field repeated string phases = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPhases($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->phases = $arr; - - return $this; - } - - /** - * Optional. Jobs to repair. Proceeds only after job name matched any one in - * the list, or for all jobs if unspecified or empty. The phase that includes - * the job must match the phase ID specified in `source_phase`. This value - * must consist of lower-case letters, numbers, and hyphens, start with a - * letter and end with a letter or a number, and have a max length of 63 - * characters. In other words, it must match the following regex: - * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * - * Generated from protobuf field repeated string jobs = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getJobs() - { - return $this->jobs; - } - - /** - * Optional. Jobs to repair. Proceeds only after job name matched any one in - * the list, or for all jobs if unspecified or empty. The phase that includes - * the job must match the phase ID specified in `source_phase`. This value - * must consist of lower-case letters, numbers, and hyphens, start with a - * letter and end with a letter or a number, and have a max length of 63 - * characters. In other words, it must match the following regex: - * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * - * Generated from protobuf field repeated string jobs = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setJobs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->jobs = $arr; - - return $this; - } - - /** - * Output only. Information around the state of the 'Automation' rule. - * - * Generated from protobuf field .google.cloud.deploy.v1.AutomationRuleCondition condition = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\AutomationRuleCondition|null - */ - public function getCondition() - { - return $this->condition; - } - - public function hasCondition() - { - return isset($this->condition); - } - - public function clearCondition() - { - unset($this->condition); - } - - /** - * Output only. Information around the state of the 'Automation' rule. - * - * Generated from protobuf field .google.cloud.deploy.v1.AutomationRuleCondition condition = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\AutomationRuleCondition $var - * @return $this - */ - public function setCondition($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\AutomationRuleCondition::class); - $this->condition = $var; - - return $this; - } - - /** - * Required. Defines the types of automatic repair phases for failed jobs. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.RepairPhaseConfig repair_phases = 8 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRepairPhases() - { - return $this->repair_phases; - } - - /** - * Required. Defines the types of automatic repair phases for failed jobs. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.RepairPhaseConfig repair_phases = 8 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Cloud\Deploy\V1\RepairPhaseConfig>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRepairPhases($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\RepairPhaseConfig::class); - $this->repair_phases = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairState.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairState.php deleted file mode 100644 index fabd2dd44dcb..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RepairState.php +++ /dev/null @@ -1,89 +0,0 @@ -google.cloud.deploy.v1.RepairState - */ -class RepairState -{ - /** - * The `repair` has an unspecified state. - * - * Generated from protobuf enum REPAIR_STATE_UNSPECIFIED = 0; - */ - const REPAIR_STATE_UNSPECIFIED = 0; - /** - * The `repair` action has succeeded. - * - * Generated from protobuf enum REPAIR_STATE_SUCCEEDED = 1; - */ - const REPAIR_STATE_SUCCEEDED = 1; - /** - * The `repair` action was cancelled. - * - * Generated from protobuf enum REPAIR_STATE_CANCELLED = 2; - */ - const REPAIR_STATE_CANCELLED = 2; - /** - * The `repair` action has failed. - * - * Generated from protobuf enum REPAIR_STATE_FAILED = 3; - */ - const REPAIR_STATE_FAILED = 3; - /** - * The `repair` action is in progress. - * - * Generated from protobuf enum REPAIR_STATE_IN_PROGRESS = 4; - */ - const REPAIR_STATE_IN_PROGRESS = 4; - /** - * The `repair` action is pending. - * - * Generated from protobuf enum REPAIR_STATE_PENDING = 5; - */ - const REPAIR_STATE_PENDING = 5; - /** - * The `repair` action was aborted. - * - * Generated from protobuf enum REPAIR_STATE_ABORTED = 7; - */ - const REPAIR_STATE_ABORTED = 7; - - private static $valueToName = [ - self::REPAIR_STATE_UNSPECIFIED => 'REPAIR_STATE_UNSPECIFIED', - self::REPAIR_STATE_SUCCEEDED => 'REPAIR_STATE_SUCCEEDED', - self::REPAIR_STATE_CANCELLED => 'REPAIR_STATE_CANCELLED', - self::REPAIR_STATE_FAILED => 'REPAIR_STATE_FAILED', - self::REPAIR_STATE_IN_PROGRESS => 'REPAIR_STATE_IN_PROGRESS', - self::REPAIR_STATE_PENDING => 'REPAIR_STATE_PENDING', - self::REPAIR_STATE_ABORTED => 'REPAIR_STATE_ABORTED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Retry.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Retry.php deleted file mode 100644 index 75f2e79026fd..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Retry.php +++ /dev/null @@ -1,157 +0,0 @@ -google.cloud.deploy.v1.Retry - */ -class Retry extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Total number of retries. Retry is skipped if set to 0; The - * minimum value is 1, and the maximum value is 10. - * - * Generated from protobuf field int64 attempts = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $attempts = 0; - /** - * Optional. How long to wait for the first retry. Default is 0, and the - * maximum value is 14d. - * - * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $wait = null; - /** - * Optional. The pattern of how wait time will be increased. Default is - * linear. Backoff mode will be ignored if `wait` is 0. - * - * Generated from protobuf field .google.cloud.deploy.v1.BackoffMode backoff_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $backoff_mode = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $attempts - * Required. Total number of retries. Retry is skipped if set to 0; The - * minimum value is 1, and the maximum value is 10. - * @type \Google\Protobuf\Duration $wait - * Optional. How long to wait for the first retry. Default is 0, and the - * maximum value is 14d. - * @type int $backoff_mode - * Optional. The pattern of how wait time will be increased. Default is - * linear. Backoff mode will be ignored if `wait` is 0. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. Total number of retries. Retry is skipped if set to 0; The - * minimum value is 1, and the maximum value is 10. - * - * Generated from protobuf field int64 attempts = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int|string - */ - public function getAttempts() - { - return $this->attempts; - } - - /** - * Required. Total number of retries. Retry is skipped if set to 0; The - * minimum value is 1, and the maximum value is 10. - * - * Generated from protobuf field int64 attempts = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int|string $var - * @return $this - */ - public function setAttempts($var) - { - GPBUtil::checkInt64($var); - $this->attempts = $var; - - return $this; - } - - /** - * Optional. How long to wait for the first retry. Default is 0, and the - * maximum value is 14d. - * - * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Duration|null - */ - public function getWait() - { - return $this->wait; - } - - public function hasWait() - { - return isset($this->wait); - } - - public function clearWait() - { - unset($this->wait); - } - - /** - * Optional. How long to wait for the first retry. Default is 0, and the - * maximum value is 14d. - * - * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setWait($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->wait = $var; - - return $this; - } - - /** - * Optional. The pattern of how wait time will be increased. Default is - * linear. Backoff mode will be ignored if `wait` is 0. - * - * Generated from protobuf field .google.cloud.deploy.v1.BackoffMode backoff_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getBackoffMode() - { - return $this->backoff_mode; - } - - /** - * Optional. The pattern of how wait time will be increased. Default is - * linear. Backoff mode will be ignored if `wait` is 0. - * - * Generated from protobuf field .google.cloud.deploy.v1.BackoffMode backoff_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setBackoffMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\BackoffMode::class); - $this->backoff_mode = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryAttempt.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryAttempt.php deleted file mode 100644 index 469c65d247e7..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryAttempt.php +++ /dev/null @@ -1,179 +0,0 @@ -google.cloud.deploy.v1.RetryAttempt - */ -class RetryAttempt extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The index of this retry attempt. - * - * Generated from protobuf field int64 attempt = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $attempt = 0; - /** - * Output only. How long the operation will be paused. - * - * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $wait = null; - /** - * Output only. Valid state of this retry action. - * - * Generated from protobuf field .google.cloud.deploy.v1.RepairState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. Description of the state of the Retry. - * - * Generated from protobuf field string state_desc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state_desc = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $attempt - * Output only. The index of this retry attempt. - * @type \Google\Protobuf\Duration $wait - * Output only. How long the operation will be paused. - * @type int $state - * Output only. Valid state of this retry action. - * @type string $state_desc - * Output only. Description of the state of the Retry. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The index of this retry attempt. - * - * Generated from protobuf field int64 attempt = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getAttempt() - { - return $this->attempt; - } - - /** - * Output only. The index of this retry attempt. - * - * Generated from protobuf field int64 attempt = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setAttempt($var) - { - GPBUtil::checkInt64($var); - $this->attempt = $var; - - return $this; - } - - /** - * Output only. How long the operation will be paused. - * - * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Duration|null - */ - public function getWait() - { - return $this->wait; - } - - public function hasWait() - { - return isset($this->wait); - } - - public function clearWait() - { - unset($this->wait); - } - - /** - * Output only. How long the operation will be paused. - * - * Generated from protobuf field .google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setWait($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->wait = $var; - - return $this; - } - - /** - * Output only. Valid state of this retry action. - * - * Generated from protobuf field .google.cloud.deploy.v1.RepairState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. Valid state of this retry action. - * - * Generated from protobuf field .google.cloud.deploy.v1.RepairState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\RepairState::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. Description of the state of the Retry. - * - * Generated from protobuf field string state_desc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getStateDesc() - { - return $this->state_desc; - } - - /** - * Output only. Description of the state of the Retry. - * - * Generated from protobuf field string state_desc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setStateDesc($var) - { - GPBUtil::checkString($var, True); - $this->state_desc = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryJobRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryJobRequest.php deleted file mode 100644 index 398162c57ca6..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryJobRequest.php +++ /dev/null @@ -1,196 +0,0 @@ -google.cloud.deploy.v1.RetryJobRequest - */ -class RetryJobRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the Rollout. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. - * - * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $rollout = ''; - /** - * Required. The phase ID the Job to retry belongs to. - * - * Generated from protobuf field string phase_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $phase_id = ''; - /** - * Required. The job ID for the Job to retry. - * - * Generated from protobuf field string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $job_id = ''; - /** - * Optional. Deploy policies to override. Format is - * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. - * - * Generated from protobuf field repeated string override_deploy_policy = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $override_deploy_policy; - - /** - * @param string $rollout Required. Name of the Rollout. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. Please see - * {@see CloudDeployClient::rolloutName()} for help formatting this field. - * @param string $phaseId Required. The phase ID the Job to retry belongs to. - * @param string $jobId Required. The job ID for the Job to retry. - * - * @return \Google\Cloud\Deploy\V1\RetryJobRequest - * - * @experimental - */ - public static function build(string $rollout, string $phaseId, string $jobId): self - { - return (new self()) - ->setRollout($rollout) - ->setPhaseId($phaseId) - ->setJobId($jobId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $rollout - * Required. Name of the Rollout. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. - * @type string $phase_id - * Required. The phase ID the Job to retry belongs to. - * @type string $job_id - * Required. The job ID for the Job to retry. - * @type array|\Google\Protobuf\Internal\RepeatedField $override_deploy_policy - * Optional. Deploy policies to override. Format is - * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the Rollout. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. - * - * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getRollout() - { - return $this->rollout; - } - - /** - * Required. Name of the Rollout. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. - * - * Generated from protobuf field string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setRollout($var) - { - GPBUtil::checkString($var, True); - $this->rollout = $var; - - return $this; - } - - /** - * Required. The phase ID the Job to retry belongs to. - * - * Generated from protobuf field string phase_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getPhaseId() - { - return $this->phase_id; - } - - /** - * Required. The phase ID the Job to retry belongs to. - * - * Generated from protobuf field string phase_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setPhaseId($var) - { - GPBUtil::checkString($var, True); - $this->phase_id = $var; - - return $this; - } - - /** - * Required. The job ID for the Job to retry. - * - * Generated from protobuf field string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getJobId() - { - return $this->job_id; - } - - /** - * Required. The job ID for the Job to retry. - * - * Generated from protobuf field string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setJobId($var) - { - GPBUtil::checkString($var, True); - $this->job_id = $var; - - return $this; - } - - /** - * Optional. Deploy policies to override. Format is - * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. - * - * Generated from protobuf field repeated string override_deploy_policy = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOverrideDeployPolicy() - { - return $this->override_deploy_policy; - } - - /** - * Optional. Deploy policies to override. Format is - * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. - * - * Generated from protobuf field repeated string override_deploy_policy = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOverrideDeployPolicy($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->override_deploy_policy = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryJobResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryJobResponse.php deleted file mode 100644 index 3058f4b1d9e7..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryJobResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.deploy.v1.RetryJobResponse - */ -class RetryJobResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryPhase.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryPhase.php deleted file mode 100644 index f8efa1208a0c..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RetryPhase.php +++ /dev/null @@ -1,140 +0,0 @@ -google.cloud.deploy.v1.RetryPhase - */ -class RetryPhase extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The number of attempts that have been made. - * - * Generated from protobuf field int64 total_attempts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $total_attempts = 0; - /** - * Output only. The pattern of how the wait time of the retry attempt is - * calculated. - * - * Generated from protobuf field .google.cloud.deploy.v1.BackoffMode backoff_mode = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $backoff_mode = 0; - /** - * Output only. Detail of a retry action. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $attempts; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $total_attempts - * Output only. The number of attempts that have been made. - * @type int $backoff_mode - * Output only. The pattern of how the wait time of the retry attempt is - * calculated. - * @type array<\Google\Cloud\Deploy\V1\RetryAttempt>|\Google\Protobuf\Internal\RepeatedField $attempts - * Output only. Detail of a retry action. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The number of attempts that have been made. - * - * Generated from protobuf field int64 total_attempts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getTotalAttempts() - { - return $this->total_attempts; - } - - /** - * Output only. The number of attempts that have been made. - * - * Generated from protobuf field int64 total_attempts = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setTotalAttempts($var) - { - GPBUtil::checkInt64($var); - $this->total_attempts = $var; - - return $this; - } - - /** - * Output only. The pattern of how the wait time of the retry attempt is - * calculated. - * - * Generated from protobuf field .google.cloud.deploy.v1.BackoffMode backoff_mode = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getBackoffMode() - { - return $this->backoff_mode; - } - - /** - * Output only. The pattern of how the wait time of the retry attempt is - * calculated. - * - * Generated from protobuf field .google.cloud.deploy.v1.BackoffMode backoff_mode = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setBackoffMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\BackoffMode::class); - $this->backoff_mode = $var; - - return $this; - } - - /** - * Output only. Detail of a retry action. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAttempts() - { - return $this->attempts; - } - - /** - * Output only. Detail of a retry action. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.RetryAttempt attempts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\Deploy\V1\RetryAttempt>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAttempts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\RetryAttempt::class); - $this->attempts = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollback.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollback.php deleted file mode 100644 index 6d1360a23bcd..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollback.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.deploy.v1.Rollback - */ -class Rollback extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The starting phase ID for the `Rollout`. If unspecified, the - * `Rollout` will start in the stable phase. - * - * Generated from protobuf field string destination_phase = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $destination_phase = ''; - /** - * Optional. If pending rollout exists on the target, the rollback operation - * will be aborted. - * - * Generated from protobuf field bool disable_rollback_if_rollout_pending = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $disable_rollback_if_rollout_pending = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $destination_phase - * Optional. The starting phase ID for the `Rollout`. If unspecified, the - * `Rollout` will start in the stable phase. - * @type bool $disable_rollback_if_rollout_pending - * Optional. If pending rollout exists on the target, the rollback operation - * will be aborted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The starting phase ID for the `Rollout`. If unspecified, the - * `Rollout` will start in the stable phase. - * - * Generated from protobuf field string destination_phase = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDestinationPhase() - { - return $this->destination_phase; - } - - /** - * Optional. The starting phase ID for the `Rollout`. If unspecified, the - * `Rollout` will start in the stable phase. - * - * Generated from protobuf field string destination_phase = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDestinationPhase($var) - { - GPBUtil::checkString($var, True); - $this->destination_phase = $var; - - return $this; - } - - /** - * Optional. If pending rollout exists on the target, the rollback operation - * will be aborted. - * - * Generated from protobuf field bool disable_rollback_if_rollout_pending = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getDisableRollbackIfRolloutPending() - { - return $this->disable_rollback_if_rollout_pending; - } - - /** - * Optional. If pending rollout exists on the target, the rollback operation - * will be aborted. - * - * Generated from protobuf field bool disable_rollback_if_rollout_pending = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setDisableRollbackIfRolloutPending($var) - { - GPBUtil::checkBool($var); - $this->disable_rollback_if_rollout_pending = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackAttempt.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackAttempt.php deleted file mode 100644 index 06b230ee7b7f..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackAttempt.php +++ /dev/null @@ -1,203 +0,0 @@ -google.cloud.deploy.v1.RollbackAttempt - */ -class RollbackAttempt extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The phase to which the rollout will be rolled back to. - * - * Generated from protobuf field string destination_phase = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $destination_phase = ''; - /** - * Output only. ID of the rollback `Rollout` to create. - * - * Generated from protobuf field string rollout_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $rollout_id = ''; - /** - * Output only. Valid state of this rollback action. - * - * Generated from protobuf field .google.cloud.deploy.v1.RepairState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. Description of the state of the Rollback. - * - * Generated from protobuf field string state_desc = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state_desc = ''; - /** - * Output only. If active rollout exists on the target, abort this rollback. - * - * Generated from protobuf field bool disable_rollback_if_rollout_pending = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $disable_rollback_if_rollout_pending = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $destination_phase - * Output only. The phase to which the rollout will be rolled back to. - * @type string $rollout_id - * Output only. ID of the rollback `Rollout` to create. - * @type int $state - * Output only. Valid state of this rollback action. - * @type string $state_desc - * Output only. Description of the state of the Rollback. - * @type bool $disable_rollback_if_rollout_pending - * Output only. If active rollout exists on the target, abort this rollback. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The phase to which the rollout will be rolled back to. - * - * Generated from protobuf field string destination_phase = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDestinationPhase() - { - return $this->destination_phase; - } - - /** - * Output only. The phase to which the rollout will be rolled back to. - * - * Generated from protobuf field string destination_phase = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDestinationPhase($var) - { - GPBUtil::checkString($var, True); - $this->destination_phase = $var; - - return $this; - } - - /** - * Output only. ID of the rollback `Rollout` to create. - * - * Generated from protobuf field string rollout_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getRolloutId() - { - return $this->rollout_id; - } - - /** - * Output only. ID of the rollback `Rollout` to create. - * - * Generated from protobuf field string rollout_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setRolloutId($var) - { - GPBUtil::checkString($var, True); - $this->rollout_id = $var; - - return $this; - } - - /** - * Output only. Valid state of this rollback action. - * - * Generated from protobuf field .google.cloud.deploy.v1.RepairState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. Valid state of this rollback action. - * - * Generated from protobuf field .google.cloud.deploy.v1.RepairState state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\RepairState::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. Description of the state of the Rollback. - * - * Generated from protobuf field string state_desc = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getStateDesc() - { - return $this->state_desc; - } - - /** - * Output only. Description of the state of the Rollback. - * - * Generated from protobuf field string state_desc = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setStateDesc($var) - { - GPBUtil::checkString($var, True); - $this->state_desc = $var; - - return $this; - } - - /** - * Output only. If active rollout exists on the target, abort this rollback. - * - * Generated from protobuf field bool disable_rollback_if_rollout_pending = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getDisableRollbackIfRolloutPending() - { - return $this->disable_rollback_if_rollout_pending; - } - - /** - * Output only. If active rollout exists on the target, abort this rollback. - * - * Generated from protobuf field bool disable_rollback_if_rollout_pending = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setDisableRollbackIfRolloutPending($var) - { - GPBUtil::checkBool($var); - $this->disable_rollback_if_rollout_pending = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackTargetConfig.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackTargetConfig.php deleted file mode 100644 index 0993a0b5efbe..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackTargetConfig.php +++ /dev/null @@ -1,115 +0,0 @@ -google.cloud.deploy.v1.RollbackTargetConfig - */ -class RollbackTargetConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The rollback `Rollout` to create. - * - * Generated from protobuf field .google.cloud.deploy.v1.Rollout rollout = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $rollout = null; - /** - * Optional. The starting phase ID for the `Rollout`. If unspecified, the - * `Rollout` will start in the stable phase. - * - * Generated from protobuf field string starting_phase_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $starting_phase_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Deploy\V1\Rollout $rollout - * Optional. The rollback `Rollout` to create. - * @type string $starting_phase_id - * Optional. The starting phase ID for the `Rollout`. If unspecified, the - * `Rollout` will start in the stable phase. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The rollback `Rollout` to create. - * - * Generated from protobuf field .google.cloud.deploy.v1.Rollout rollout = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Deploy\V1\Rollout|null - */ - public function getRollout() - { - return $this->rollout; - } - - public function hasRollout() - { - return isset($this->rollout); - } - - public function clearRollout() - { - unset($this->rollout); - } - - /** - * Optional. The rollback `Rollout` to create. - * - * Generated from protobuf field .google.cloud.deploy.v1.Rollout rollout = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Deploy\V1\Rollout $var - * @return $this - */ - public function setRollout($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Rollout::class); - $this->rollout = $var; - - return $this; - } - - /** - * Optional. The starting phase ID for the `Rollout`. If unspecified, the - * `Rollout` will start in the stable phase. - * - * Generated from protobuf field string starting_phase_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getStartingPhaseId() - { - return $this->starting_phase_id; - } - - /** - * Optional. The starting phase ID for the `Rollout`. If unspecified, the - * `Rollout` will start in the stable phase. - * - * Generated from protobuf field string starting_phase_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setStartingPhaseId($var) - { - GPBUtil::checkString($var, True); - $this->starting_phase_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackTargetRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackTargetRequest.php deleted file mode 100644 index f7208f661a50..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackTargetRequest.php +++ /dev/null @@ -1,363 +0,0 @@ -google.cloud.deploy.v1.RollbackTargetRequest - */ -class RollbackTargetRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The `DeliveryPipeline` for which the rollback `Rollout` must be - * created. The format is - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. ID of the `Target` that is being rolled back. - * - * Generated from protobuf field string target_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $target_id = ''; - /** - * Required. ID of the rollback `Rollout` to create. - * - * Generated from protobuf field string rollout_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $rollout_id = ''; - /** - * Optional. ID of the `Release` to roll back to. If this isn't specified, the - * previous successful `Rollout` to the specified target will be used to - * determine the `Release`. - * - * Generated from protobuf field string release_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $release_id = ''; - /** - * Optional. If provided, this must be the latest `Rollout` that is on the - * `Target`. - * - * Generated from protobuf field string rollout_to_roll_back = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $rollout_to_roll_back = ''; - /** - * Optional. Configs for the rollback `Rollout`. - * - * Generated from protobuf field .google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $rollback_config = null; - /** - * Optional. If set to true, the request is validated and the user is provided - * with a `RollbackTargetResponse`. - * - * Generated from protobuf field bool validate_only = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - /** - * Optional. Deploy policies to override. Format is - * `projects/{project}/locations/{location}/deployPolicies/{deploy_policy}`. - * - * Generated from protobuf field repeated string override_deploy_policy = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $override_deploy_policy; - - /** - * @param string $name Required. The `DeliveryPipeline` for which the rollback `Rollout` must be - * created. The format is - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. Please see - * {@see CloudDeployClient::deliveryPipelineName()} for help formatting this field. - * @param string $targetId Required. ID of the `Target` that is being rolled back. - * @param string $rolloutId Required. ID of the rollback `Rollout` to create. - * - * @return \Google\Cloud\Deploy\V1\RollbackTargetRequest - * - * @experimental - */ - public static function build(string $name, string $targetId, string $rolloutId): self - { - return (new self()) - ->setName($name) - ->setTargetId($targetId) - ->setRolloutId($rolloutId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The `DeliveryPipeline` for which the rollback `Rollout` must be - * created. The format is - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. - * @type string $target_id - * Required. ID of the `Target` that is being rolled back. - * @type string $rollout_id - * Required. ID of the rollback `Rollout` to create. - * @type string $release_id - * Optional. ID of the `Release` to roll back to. If this isn't specified, the - * previous successful `Rollout` to the specified target will be used to - * determine the `Release`. - * @type string $rollout_to_roll_back - * Optional. If provided, this must be the latest `Rollout` that is on the - * `Target`. - * @type \Google\Cloud\Deploy\V1\RollbackTargetConfig $rollback_config - * Optional. Configs for the rollback `Rollout`. - * @type bool $validate_only - * Optional. If set to true, the request is validated and the user is provided - * with a `RollbackTargetResponse`. - * @type array|\Google\Protobuf\Internal\RepeatedField $override_deploy_policy - * Optional. Deploy policies to override. Format is - * `projects/{project}/locations/{location}/deployPolicies/{deploy_policy}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. The `DeliveryPipeline` for which the rollback `Rollout` must be - * created. The format is - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The `DeliveryPipeline` for which the rollback `Rollout` must be - * created. The format is - * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. ID of the `Target` that is being rolled back. - * - * Generated from protobuf field string target_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTargetId() - { - return $this->target_id; - } - - /** - * Required. ID of the `Target` that is being rolled back. - * - * Generated from protobuf field string target_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTargetId($var) - { - GPBUtil::checkString($var, True); - $this->target_id = $var; - - return $this; - } - - /** - * Required. ID of the rollback `Rollout` to create. - * - * Generated from protobuf field string rollout_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getRolloutId() - { - return $this->rollout_id; - } - - /** - * Required. ID of the rollback `Rollout` to create. - * - * Generated from protobuf field string rollout_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setRolloutId($var) - { - GPBUtil::checkString($var, True); - $this->rollout_id = $var; - - return $this; - } - - /** - * Optional. ID of the `Release` to roll back to. If this isn't specified, the - * previous successful `Rollout` to the specified target will be used to - * determine the `Release`. - * - * Generated from protobuf field string release_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getReleaseId() - { - return $this->release_id; - } - - /** - * Optional. ID of the `Release` to roll back to. If this isn't specified, the - * previous successful `Rollout` to the specified target will be used to - * determine the `Release`. - * - * Generated from protobuf field string release_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setReleaseId($var) - { - GPBUtil::checkString($var, True); - $this->release_id = $var; - - return $this; - } - - /** - * Optional. If provided, this must be the latest `Rollout` that is on the - * `Target`. - * - * Generated from protobuf field string rollout_to_roll_back = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRolloutToRollBack() - { - return $this->rollout_to_roll_back; - } - - /** - * Optional. If provided, this must be the latest `Rollout` that is on the - * `Target`. - * - * Generated from protobuf field string rollout_to_roll_back = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRolloutToRollBack($var) - { - GPBUtil::checkString($var, True); - $this->rollout_to_roll_back = $var; - - return $this; - } - - /** - * Optional. Configs for the rollback `Rollout`. - * - * Generated from protobuf field .google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Deploy\V1\RollbackTargetConfig|null - */ - public function getRollbackConfig() - { - return $this->rollback_config; - } - - public function hasRollbackConfig() - { - return isset($this->rollback_config); - } - - public function clearRollbackConfig() - { - unset($this->rollback_config); - } - - /** - * Optional. Configs for the rollback `Rollout`. - * - * Generated from protobuf field .google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Deploy\V1\RollbackTargetConfig $var - * @return $this - */ - public function setRollbackConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\RollbackTargetConfig::class); - $this->rollback_config = $var; - - return $this; - } - - /** - * Optional. If set to true, the request is validated and the user is provided - * with a `RollbackTargetResponse`. - * - * Generated from protobuf field bool validate_only = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set to true, the request is validated and the user is provided - * with a `RollbackTargetResponse`. - * - * Generated from protobuf field bool validate_only = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - - /** - * Optional. Deploy policies to override. Format is - * `projects/{project}/locations/{location}/deployPolicies/{deploy_policy}`. - * - * Generated from protobuf field repeated string override_deploy_policy = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOverrideDeployPolicy() - { - return $this->override_deploy_policy; - } - - /** - * Optional. Deploy policies to override. Format is - * `projects/{project}/locations/{location}/deployPolicies/{deploy_policy}`. - * - * Generated from protobuf field repeated string override_deploy_policy = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOverrideDeployPolicy($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->override_deploy_policy = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackTargetResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackTargetResponse.php deleted file mode 100644 index 0c2baf18351b..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RollbackTargetResponse.php +++ /dev/null @@ -1,77 +0,0 @@ -google.cloud.deploy.v1.RollbackTargetResponse - */ -class RollbackTargetResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The config of the rollback `Rollout` created or will be created. - * - * Generated from protobuf field .google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 1; - */ - protected $rollback_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Deploy\V1\RollbackTargetConfig $rollback_config - * The config of the rollback `Rollout` created or will be created. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * The config of the rollback `Rollout` created or will be created. - * - * Generated from protobuf field .google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 1; - * @return \Google\Cloud\Deploy\V1\RollbackTargetConfig|null - */ - public function getRollbackConfig() - { - return $this->rollback_config; - } - - public function hasRollbackConfig() - { - return isset($this->rollback_config); - } - - public function clearRollbackConfig() - { - unset($this->rollback_config); - } - - /** - * The config of the rollback `Rollout` created or will be created. - * - * Generated from protobuf field .google.cloud.deploy.v1.RollbackTargetConfig rollback_config = 1; - * @param \Google\Cloud\Deploy\V1\RollbackTargetConfig $var - * @return $this - */ - public function setRollbackConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\RollbackTargetConfig::class); - $this->rollback_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout.php deleted file mode 100644 index 889163f01844..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout.php +++ /dev/null @@ -1,960 +0,0 @@ -google.cloud.deploy.v1.Rollout - */ -class Rollout extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Name of the `Rollout`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. - * The `rollout` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $name = ''; - /** - * Output only. Unique identifier of the `Rollout`. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Description of the `Rollout` for user purposes. Max length is 255 - * characters. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * User annotations. These attributes can only be set and used by the - * user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations - * for more details such as format and size limitations. - * - * Generated from protobuf field map annotations = 4; - */ - private $annotations; - /** - * Labels are attributes that can be set and used by both the - * user and by Cloud Deploy. Labels must meet the following constraints: - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. - * * All characters must use UTF-8 encoding, and international characters are - * allowed. - * * Keys must start with a lowercase letter or international character. - * * Each resource is limited to a maximum of 64 labels. - * Both keys and values are additionally constrained to be <= 128 bytes. - * - * Generated from protobuf field map labels = 5; - */ - private $labels; - /** - * Output only. Time at which the `Rollout` was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Time at which the `Rollout` was approved. - * - * Generated from protobuf field .google.protobuf.Timestamp approve_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $approve_time = null; - /** - * Output only. Time at which the `Rollout` was enqueued. - * - * Generated from protobuf field .google.protobuf.Timestamp enqueue_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $enqueue_time = null; - /** - * Output only. Time at which the `Rollout` started deploying. - * - * Generated from protobuf field .google.protobuf.Timestamp deploy_start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $deploy_start_time = null; - /** - * Output only. Time at which the `Rollout` finished deploying. - * - * Generated from protobuf field .google.protobuf.Timestamp deploy_end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $deploy_end_time = null; - /** - * Required. The ID of Target to which this `Rollout` is deploying. - * - * Generated from protobuf field string target_id = 18 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $target_id = ''; - /** - * Output only. Approval state of the `Rollout`. - * - * Generated from protobuf field .google.cloud.deploy.v1.Rollout.ApprovalState approval_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $approval_state = 0; - /** - * Output only. Current state of the `Rollout`. - * - * Generated from protobuf field .google.cloud.deploy.v1.Rollout.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. Additional information about the rollout failure, if - * available. - * - * Generated from protobuf field string failure_reason = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $failure_reason = ''; - /** - * Output only. The resource name of the Cloud Build `Build` object that is - * used to deploy the Rollout. Format is - * `projects/{project}/locations/{location}/builds/{build}`. - * - * Generated from protobuf field string deploying_build = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $deploying_build = ''; - /** - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 16; - */ - protected $etag = ''; - /** - * Output only. The reason this rollout failed. This will always be - * unspecified while the rollout is in progress. - * - * Generated from protobuf field .google.cloud.deploy.v1.Rollout.FailureCause deploy_failure_cause = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $deploy_failure_cause = 0; - /** - * Output only. The phases that represent the workflows of this `Rollout`. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $phases; - /** - * Output only. Metadata contains information about the rollout. - * - * Generated from protobuf field .google.cloud.deploy.v1.Metadata metadata = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $metadata = null; - /** - * Output only. Name of the `ControllerRollout`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. - * - * Generated from protobuf field string controller_rollout = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $controller_rollout = ''; - /** - * Output only. Name of the `Rollout` that is rolled back by this `Rollout`. - * Empty if this `Rollout` wasn't created as a rollback. - * - * Generated from protobuf field string rollback_of_rollout = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $rollback_of_rollout = ''; - /** - * Output only. Names of `Rollouts` that rolled back this `Rollout`. - * - * Generated from protobuf field repeated string rolled_back_by_rollouts = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $rolled_back_by_rollouts; - /** - * Output only. The AutomationRun actively repairing the rollout. - * - * Generated from protobuf field string active_repair_automation_run = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $active_repair_automation_run = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Optional. Name of the `Rollout`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. - * The `rollout` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` - * @type string $uid - * Output only. Unique identifier of the `Rollout`. - * @type string $description - * Description of the `Rollout` for user purposes. Max length is 255 - * characters. - * @type array|\Google\Protobuf\Internal\MapField $annotations - * User annotations. These attributes can only be set and used by the - * user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations - * for more details such as format and size limitations. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Labels are attributes that can be set and used by both the - * user and by Cloud Deploy. Labels must meet the following constraints: - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. - * * All characters must use UTF-8 encoding, and international characters are - * allowed. - * * Keys must start with a lowercase letter or international character. - * * Each resource is limited to a maximum of 64 labels. - * Both keys and values are additionally constrained to be <= 128 bytes. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time at which the `Rollout` was created. - * @type \Google\Protobuf\Timestamp $approve_time - * Output only. Time at which the `Rollout` was approved. - * @type \Google\Protobuf\Timestamp $enqueue_time - * Output only. Time at which the `Rollout` was enqueued. - * @type \Google\Protobuf\Timestamp $deploy_start_time - * Output only. Time at which the `Rollout` started deploying. - * @type \Google\Protobuf\Timestamp $deploy_end_time - * Output only. Time at which the `Rollout` finished deploying. - * @type string $target_id - * Required. The ID of Target to which this `Rollout` is deploying. - * @type int $approval_state - * Output only. Approval state of the `Rollout`. - * @type int $state - * Output only. Current state of the `Rollout`. - * @type string $failure_reason - * Output only. Additional information about the rollout failure, if - * available. - * @type string $deploying_build - * Output only. The resource name of the Cloud Build `Build` object that is - * used to deploy the Rollout. Format is - * `projects/{project}/locations/{location}/builds/{build}`. - * @type string $etag - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * @type int $deploy_failure_cause - * Output only. The reason this rollout failed. This will always be - * unspecified while the rollout is in progress. - * @type array<\Google\Cloud\Deploy\V1\Phase>|\Google\Protobuf\Internal\RepeatedField $phases - * Output only. The phases that represent the workflows of this `Rollout`. - * @type \Google\Cloud\Deploy\V1\Metadata $metadata - * Output only. Metadata contains information about the rollout. - * @type string $controller_rollout - * Output only. Name of the `ControllerRollout`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. - * @type string $rollback_of_rollout - * Output only. Name of the `Rollout` that is rolled back by this `Rollout`. - * Empty if this `Rollout` wasn't created as a rollback. - * @type array|\Google\Protobuf\Internal\RepeatedField $rolled_back_by_rollouts - * Output only. Names of `Rollouts` that rolled back this `Rollout`. - * @type string $active_repair_automation_run - * Output only. The AutomationRun actively repairing the rollout. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Name of the `Rollout`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. - * The `rollout` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Optional. Name of the `Rollout`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. - * The `rollout` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. Unique identifier of the `Rollout`. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. Unique identifier of the `Rollout`. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Description of the `Rollout` for user purposes. Max length is 255 - * characters. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Description of the `Rollout` for user purposes. Max length is 255 - * characters. - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * User annotations. These attributes can only be set and used by the - * user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations - * for more details such as format and size limitations. - * - * Generated from protobuf field map annotations = 4; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * User annotations. These attributes can only be set and used by the - * user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations - * for more details such as format and size limitations. - * - * Generated from protobuf field map annotations = 4; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAnnotations($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->annotations = $arr; - - return $this; - } - - /** - * Labels are attributes that can be set and used by both the - * user and by Cloud Deploy. Labels must meet the following constraints: - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. - * * All characters must use UTF-8 encoding, and international characters are - * allowed. - * * Keys must start with a lowercase letter or international character. - * * Each resource is limited to a maximum of 64 labels. - * Both keys and values are additionally constrained to be <= 128 bytes. - * - * Generated from protobuf field map labels = 5; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Labels are attributes that can be set and used by both the - * user and by Cloud Deploy. Labels must meet the following constraints: - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. - * * All characters must use UTF-8 encoding, and international characters are - * allowed. - * * Keys must start with a lowercase letter or international character. - * * Each resource is limited to a maximum of 64 labels. - * Both keys and values are additionally constrained to be <= 128 bytes. - * - * Generated from protobuf field map labels = 5; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Output only. Time at which the `Rollout` was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time at which the `Rollout` was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. Time at which the `Rollout` was approved. - * - * Generated from protobuf field .google.protobuf.Timestamp approve_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getApproveTime() - { - return $this->approve_time; - } - - public function hasApproveTime() - { - return isset($this->approve_time); - } - - public function clearApproveTime() - { - unset($this->approve_time); - } - - /** - * Output only. Time at which the `Rollout` was approved. - * - * Generated from protobuf field .google.protobuf.Timestamp approve_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setApproveTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->approve_time = $var; - - return $this; - } - - /** - * Output only. Time at which the `Rollout` was enqueued. - * - * Generated from protobuf field .google.protobuf.Timestamp enqueue_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEnqueueTime() - { - return $this->enqueue_time; - } - - public function hasEnqueueTime() - { - return isset($this->enqueue_time); - } - - public function clearEnqueueTime() - { - unset($this->enqueue_time); - } - - /** - * Output only. Time at which the `Rollout` was enqueued. - * - * Generated from protobuf field .google.protobuf.Timestamp enqueue_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEnqueueTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->enqueue_time = $var; - - return $this; - } - - /** - * Output only. Time at which the `Rollout` started deploying. - * - * Generated from protobuf field .google.protobuf.Timestamp deploy_start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getDeployStartTime() - { - return $this->deploy_start_time; - } - - public function hasDeployStartTime() - { - return isset($this->deploy_start_time); - } - - public function clearDeployStartTime() - { - unset($this->deploy_start_time); - } - - /** - * Output only. Time at which the `Rollout` started deploying. - * - * Generated from protobuf field .google.protobuf.Timestamp deploy_start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setDeployStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->deploy_start_time = $var; - - return $this; - } - - /** - * Output only. Time at which the `Rollout` finished deploying. - * - * Generated from protobuf field .google.protobuf.Timestamp deploy_end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getDeployEndTime() - { - return $this->deploy_end_time; - } - - public function hasDeployEndTime() - { - return isset($this->deploy_end_time); - } - - public function clearDeployEndTime() - { - unset($this->deploy_end_time); - } - - /** - * Output only. Time at which the `Rollout` finished deploying. - * - * Generated from protobuf field .google.protobuf.Timestamp deploy_end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setDeployEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->deploy_end_time = $var; - - return $this; - } - - /** - * Required. The ID of Target to which this `Rollout` is deploying. - * - * Generated from protobuf field string target_id = 18 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTargetId() - { - return $this->target_id; - } - - /** - * Required. The ID of Target to which this `Rollout` is deploying. - * - * Generated from protobuf field string target_id = 18 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTargetId($var) - { - GPBUtil::checkString($var, True); - $this->target_id = $var; - - return $this; - } - - /** - * Output only. Approval state of the `Rollout`. - * - * Generated from protobuf field .google.cloud.deploy.v1.Rollout.ApprovalState approval_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getApprovalState() - { - return $this->approval_state; - } - - /** - * Output only. Approval state of the `Rollout`. - * - * Generated from protobuf field .google.cloud.deploy.v1.Rollout.ApprovalState approval_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setApprovalState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Rollout\ApprovalState::class); - $this->approval_state = $var; - - return $this; - } - - /** - * Output only. Current state of the `Rollout`. - * - * Generated from protobuf field .google.cloud.deploy.v1.Rollout.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. Current state of the `Rollout`. - * - * Generated from protobuf field .google.cloud.deploy.v1.Rollout.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Rollout\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. Additional information about the rollout failure, if - * available. - * - * Generated from protobuf field string failure_reason = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getFailureReason() - { - return $this->failure_reason; - } - - /** - * Output only. Additional information about the rollout failure, if - * available. - * - * Generated from protobuf field string failure_reason = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setFailureReason($var) - { - GPBUtil::checkString($var, True); - $this->failure_reason = $var; - - return $this; - } - - /** - * Output only. The resource name of the Cloud Build `Build` object that is - * used to deploy the Rollout. Format is - * `projects/{project}/locations/{location}/builds/{build}`. - * - * Generated from protobuf field string deploying_build = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getDeployingBuild() - { - return $this->deploying_build; - } - - /** - * Output only. The resource name of the Cloud Build `Build` object that is - * used to deploy the Rollout. Format is - * `projects/{project}/locations/{location}/builds/{build}`. - * - * Generated from protobuf field string deploying_build = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setDeployingBuild($var) - { - GPBUtil::checkString($var, True); - $this->deploying_build = $var; - - return $this; - } - - /** - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 16; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 16; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Output only. The reason this rollout failed. This will always be - * unspecified while the rollout is in progress. - * - * Generated from protobuf field .google.cloud.deploy.v1.Rollout.FailureCause deploy_failure_cause = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getDeployFailureCause() - { - return $this->deploy_failure_cause; - } - - /** - * Output only. The reason this rollout failed. This will always be - * unspecified while the rollout is in progress. - * - * Generated from protobuf field .google.cloud.deploy.v1.Rollout.FailureCause deploy_failure_cause = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setDeployFailureCause($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Rollout\FailureCause::class); - $this->deploy_failure_cause = $var; - - return $this; - } - - /** - * Output only. The phases that represent the workflows of this `Rollout`. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPhases() - { - return $this->phases; - } - - /** - * Output only. The phases that represent the workflows of this `Rollout`. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\Deploy\V1\Phase>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPhases($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\Phase::class); - $this->phases = $arr; - - return $this; - } - - /** - * Output only. Metadata contains information about the rollout. - * - * Generated from protobuf field .google.cloud.deploy.v1.Metadata metadata = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Deploy\V1\Metadata|null - */ - public function getMetadata() - { - return $this->metadata; - } - - public function hasMetadata() - { - return isset($this->metadata); - } - - public function clearMetadata() - { - unset($this->metadata); - } - - /** - * Output only. Metadata contains information about the rollout. - * - * Generated from protobuf field .google.cloud.deploy.v1.Metadata metadata = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Deploy\V1\Metadata $var - * @return $this - */ - public function setMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Metadata::class); - $this->metadata = $var; - - return $this; - } - - /** - * Output only. Name of the `ControllerRollout`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. - * - * Generated from protobuf field string controller_rollout = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getControllerRollout() - { - return $this->controller_rollout; - } - - /** - * Output only. Name of the `ControllerRollout`. Format is - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. - * - * Generated from protobuf field string controller_rollout = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setControllerRollout($var) - { - GPBUtil::checkString($var, True); - $this->controller_rollout = $var; - - return $this; - } - - /** - * Output only. Name of the `Rollout` that is rolled back by this `Rollout`. - * Empty if this `Rollout` wasn't created as a rollback. - * - * Generated from protobuf field string rollback_of_rollout = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getRollbackOfRollout() - { - return $this->rollback_of_rollout; - } - - /** - * Output only. Name of the `Rollout` that is rolled back by this `Rollout`. - * Empty if this `Rollout` wasn't created as a rollback. - * - * Generated from protobuf field string rollback_of_rollout = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setRollbackOfRollout($var) - { - GPBUtil::checkString($var, True); - $this->rollback_of_rollout = $var; - - return $this; - } - - /** - * Output only. Names of `Rollouts` that rolled back this `Rollout`. - * - * Generated from protobuf field repeated string rolled_back_by_rollouts = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRolledBackByRollouts() - { - return $this->rolled_back_by_rollouts; - } - - /** - * Output only. Names of `Rollouts` that rolled back this `Rollout`. - * - * Generated from protobuf field repeated string rolled_back_by_rollouts = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRolledBackByRollouts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->rolled_back_by_rollouts = $arr; - - return $this; - } - - /** - * Output only. The AutomationRun actively repairing the rollout. - * - * Generated from protobuf field string active_repair_automation_run = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getActiveRepairAutomationRun() - { - return $this->active_repair_automation_run; - } - - /** - * Output only. The AutomationRun actively repairing the rollout. - * - * Generated from protobuf field string active_repair_automation_run = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setActiveRepairAutomationRun($var) - { - GPBUtil::checkString($var, True); - $this->active_repair_automation_run = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout/ApprovalState.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout/ApprovalState.php deleted file mode 100644 index c0fb8336f4e8..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout/ApprovalState.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.deploy.v1.Rollout.ApprovalState - */ -class ApprovalState -{ - /** - * The `Rollout` has an unspecified approval state. - * - * Generated from protobuf enum APPROVAL_STATE_UNSPECIFIED = 0; - */ - const APPROVAL_STATE_UNSPECIFIED = 0; - /** - * The `Rollout` requires approval. - * - * Generated from protobuf enum NEEDS_APPROVAL = 1; - */ - const NEEDS_APPROVAL = 1; - /** - * The `Rollout` does not require approval. - * - * Generated from protobuf enum DOES_NOT_NEED_APPROVAL = 2; - */ - const DOES_NOT_NEED_APPROVAL = 2; - /** - * The `Rollout` has been approved. - * - * Generated from protobuf enum APPROVED = 3; - */ - const APPROVED = 3; - /** - * The `Rollout` has been rejected. - * - * Generated from protobuf enum REJECTED = 4; - */ - const REJECTED = 4; - - private static $valueToName = [ - self::APPROVAL_STATE_UNSPECIFIED => 'APPROVAL_STATE_UNSPECIFIED', - self::NEEDS_APPROVAL => 'NEEDS_APPROVAL', - self::DOES_NOT_NEED_APPROVAL => 'DOES_NOT_NEED_APPROVAL', - self::APPROVED => 'APPROVED', - self::REJECTED => 'REJECTED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ApprovalState::class, \Google\Cloud\Deploy\V1\Rollout_ApprovalState::class); - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout/FailureCause.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout/FailureCause.php deleted file mode 100644 index 4b398b758ecb..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout/FailureCause.php +++ /dev/null @@ -1,110 +0,0 @@ -google.cloud.deploy.v1.Rollout.FailureCause - */ -class FailureCause -{ - /** - * No reason for failure is specified. - * - * Generated from protobuf enum FAILURE_CAUSE_UNSPECIFIED = 0; - */ - const FAILURE_CAUSE_UNSPECIFIED = 0; - /** - * Cloud Build is not available, either because it is not enabled or because - * Cloud Deploy has insufficient permissions. See [required - * permission](https://cloud.google.com/deploy/docs/cloud-deploy-service-account#required_permissions). - * - * Generated from protobuf enum CLOUD_BUILD_UNAVAILABLE = 1; - */ - const CLOUD_BUILD_UNAVAILABLE = 1; - /** - * The deploy operation did not complete successfully; check Cloud Build - * logs. - * - * Generated from protobuf enum EXECUTION_FAILED = 2; - */ - const EXECUTION_FAILED = 2; - /** - * Deployment did not complete within the alloted time. - * - * Generated from protobuf enum DEADLINE_EXCEEDED = 3; - */ - const DEADLINE_EXCEEDED = 3; - /** - * Release is in a failed state. - * - * Generated from protobuf enum RELEASE_FAILED = 4; - */ - const RELEASE_FAILED = 4; - /** - * Release is abandoned. - * - * Generated from protobuf enum RELEASE_ABANDONED = 5; - */ - const RELEASE_ABANDONED = 5; - /** - * No Skaffold verify configuration was found. - * - * Generated from protobuf enum VERIFICATION_CONFIG_NOT_FOUND = 6; - */ - const VERIFICATION_CONFIG_NOT_FOUND = 6; - /** - * Cloud Build failed to fulfill Cloud Deploy's request. See failure_message - * for additional details. - * - * Generated from protobuf enum CLOUD_BUILD_REQUEST_FAILED = 7; - */ - const CLOUD_BUILD_REQUEST_FAILED = 7; - /** - * A Rollout operation had a feature configured that is not supported. - * - * Generated from protobuf enum OPERATION_FEATURE_NOT_SUPPORTED = 8; - */ - const OPERATION_FEATURE_NOT_SUPPORTED = 8; - - private static $valueToName = [ - self::FAILURE_CAUSE_UNSPECIFIED => 'FAILURE_CAUSE_UNSPECIFIED', - self::CLOUD_BUILD_UNAVAILABLE => 'CLOUD_BUILD_UNAVAILABLE', - self::EXECUTION_FAILED => 'EXECUTION_FAILED', - self::DEADLINE_EXCEEDED => 'DEADLINE_EXCEEDED', - self::RELEASE_FAILED => 'RELEASE_FAILED', - self::RELEASE_ABANDONED => 'RELEASE_ABANDONED', - self::VERIFICATION_CONFIG_NOT_FOUND => 'VERIFICATION_CONFIG_NOT_FOUND', - self::CLOUD_BUILD_REQUEST_FAILED => 'CLOUD_BUILD_REQUEST_FAILED', - self::OPERATION_FEATURE_NOT_SUPPORTED => 'OPERATION_FEATURE_NOT_SUPPORTED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(FailureCause::class, \Google\Cloud\Deploy\V1\Rollout_FailureCause::class); - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout/State.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout/State.php deleted file mode 100644 index d92e91477504..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Rollout/State.php +++ /dev/null @@ -1,121 +0,0 @@ -google.cloud.deploy.v1.Rollout.State - */ -class State -{ - /** - * The `Rollout` has an unspecified state. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The `Rollout` has completed successfully. - * - * Generated from protobuf enum SUCCEEDED = 1; - */ - const SUCCEEDED = 1; - /** - * The `Rollout` has failed. - * - * Generated from protobuf enum FAILED = 2; - */ - const FAILED = 2; - /** - * The `Rollout` is being deployed. - * - * Generated from protobuf enum IN_PROGRESS = 3; - */ - const IN_PROGRESS = 3; - /** - * The `Rollout` needs approval. - * - * Generated from protobuf enum PENDING_APPROVAL = 4; - */ - const PENDING_APPROVAL = 4; - /** - * An approver rejected the `Rollout`. - * - * Generated from protobuf enum APPROVAL_REJECTED = 5; - */ - const APPROVAL_REJECTED = 5; - /** - * The `Rollout` is waiting for an earlier Rollout(s) to complete on this - * `Target`. - * - * Generated from protobuf enum PENDING = 6; - */ - const PENDING = 6; - /** - * The `Rollout` is waiting for the `Release` to be fully rendered. - * - * Generated from protobuf enum PENDING_RELEASE = 7; - */ - const PENDING_RELEASE = 7; - /** - * The `Rollout` is in the process of being cancelled. - * - * Generated from protobuf enum CANCELLING = 8; - */ - const CANCELLING = 8; - /** - * The `Rollout` has been cancelled. - * - * Generated from protobuf enum CANCELLED = 9; - */ - const CANCELLED = 9; - /** - * The `Rollout` is halted. - * - * Generated from protobuf enum HALTED = 10; - */ - const HALTED = 10; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::SUCCEEDED => 'SUCCEEDED', - self::FAILED => 'FAILED', - self::IN_PROGRESS => 'IN_PROGRESS', - self::PENDING_APPROVAL => 'PENDING_APPROVAL', - self::APPROVAL_REJECTED => 'APPROVAL_REJECTED', - self::PENDING => 'PENDING', - self::PENDING_RELEASE => 'PENDING_RELEASE', - self::CANCELLING => 'CANCELLING', - self::CANCELLED => 'CANCELLED', - self::HALTED => 'HALTED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Google\Cloud\Deploy\V1\Rollout_State::class); - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutNotificationEvent.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutNotificationEvent.php deleted file mode 100644 index 98651e6feff8..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutNotificationEvent.php +++ /dev/null @@ -1,307 +0,0 @@ -google.cloud.deploy.v1.RolloutNotificationEvent - */ -class RolloutNotificationEvent extends \Google\Protobuf\Internal\Message -{ - /** - * Debug message for when a notification fails to send. - * - * Generated from protobuf field string message = 1; - */ - protected $message = ''; - /** - * Unique identifier of the `DeliveryPipeline`. - * - * Generated from protobuf field string pipeline_uid = 2; - */ - protected $pipeline_uid = ''; - /** - * Unique identifier of the `Release`. - * - * Generated from protobuf field string release_uid = 3; - */ - protected $release_uid = ''; - /** - * The name of the `Release`. - * - * Generated from protobuf field string release = 7; - */ - protected $release = ''; - /** - * Unique identifier of the `Rollout`. - * - * Generated from protobuf field string rollout_uid = 8; - */ - protected $rollout_uid = ''; - /** - * The name of the `Rollout`. - * - * Generated from protobuf field string rollout = 4; - */ - protected $rollout = ''; - /** - * ID of the `Target` that the rollout is deployed to. - * - * Generated from protobuf field string target_id = 6; - */ - protected $target_id = ''; - /** - * Type of this notification, e.g. for a Pub/Sub failure. - * - * Generated from protobuf field .google.cloud.deploy.v1.Type type = 5; - */ - protected $type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $message - * Debug message for when a notification fails to send. - * @type string $pipeline_uid - * Unique identifier of the `DeliveryPipeline`. - * @type string $release_uid - * Unique identifier of the `Release`. - * @type string $release - * The name of the `Release`. - * @type string $rollout_uid - * Unique identifier of the `Rollout`. - * @type string $rollout - * The name of the `Rollout`. - * @type string $target_id - * ID of the `Target` that the rollout is deployed to. - * @type int $type - * Type of this notification, e.g. for a Pub/Sub failure. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\RolloutNotificationPayload::initOnce(); - parent::__construct($data); - } - - /** - * Debug message for when a notification fails to send. - * - * Generated from protobuf field string message = 1; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Debug message for when a notification fails to send. - * - * Generated from protobuf field string message = 1; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * Unique identifier of the `DeliveryPipeline`. - * - * Generated from protobuf field string pipeline_uid = 2; - * @return string - */ - public function getPipelineUid() - { - return $this->pipeline_uid; - } - - /** - * Unique identifier of the `DeliveryPipeline`. - * - * Generated from protobuf field string pipeline_uid = 2; - * @param string $var - * @return $this - */ - public function setPipelineUid($var) - { - GPBUtil::checkString($var, True); - $this->pipeline_uid = $var; - - return $this; - } - - /** - * Unique identifier of the `Release`. - * - * Generated from protobuf field string release_uid = 3; - * @return string - */ - public function getReleaseUid() - { - return $this->release_uid; - } - - /** - * Unique identifier of the `Release`. - * - * Generated from protobuf field string release_uid = 3; - * @param string $var - * @return $this - */ - public function setReleaseUid($var) - { - GPBUtil::checkString($var, True); - $this->release_uid = $var; - - return $this; - } - - /** - * The name of the `Release`. - * - * Generated from protobuf field string release = 7; - * @return string - */ - public function getRelease() - { - return $this->release; - } - - /** - * The name of the `Release`. - * - * Generated from protobuf field string release = 7; - * @param string $var - * @return $this - */ - public function setRelease($var) - { - GPBUtil::checkString($var, True); - $this->release = $var; - - return $this; - } - - /** - * Unique identifier of the `Rollout`. - * - * Generated from protobuf field string rollout_uid = 8; - * @return string - */ - public function getRolloutUid() - { - return $this->rollout_uid; - } - - /** - * Unique identifier of the `Rollout`. - * - * Generated from protobuf field string rollout_uid = 8; - * @param string $var - * @return $this - */ - public function setRolloutUid($var) - { - GPBUtil::checkString($var, True); - $this->rollout_uid = $var; - - return $this; - } - - /** - * The name of the `Rollout`. - * - * Generated from protobuf field string rollout = 4; - * @return string - */ - public function getRollout() - { - return $this->rollout; - } - - /** - * The name of the `Rollout`. - * - * Generated from protobuf field string rollout = 4; - * @param string $var - * @return $this - */ - public function setRollout($var) - { - GPBUtil::checkString($var, True); - $this->rollout = $var; - - return $this; - } - - /** - * ID of the `Target` that the rollout is deployed to. - * - * Generated from protobuf field string target_id = 6; - * @return string - */ - public function getTargetId() - { - return $this->target_id; - } - - /** - * ID of the `Target` that the rollout is deployed to. - * - * Generated from protobuf field string target_id = 6; - * @param string $var - * @return $this - */ - public function setTargetId($var) - { - GPBUtil::checkString($var, True); - $this->target_id = $var; - - return $this; - } - - /** - * Type of this notification, e.g. for a Pub/Sub failure. - * - * Generated from protobuf field .google.cloud.deploy.v1.Type type = 5; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Type of this notification, e.g. for a Pub/Sub failure. - * - * Generated from protobuf field .google.cloud.deploy.v1.Type type = 5; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Type::class); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutRestriction.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutRestriction.php deleted file mode 100644 index 77c06e34fd09..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutRestriction.php +++ /dev/null @@ -1,191 +0,0 @@ -google.cloud.deploy.v1.RolloutRestriction - */ -class RolloutRestriction extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Restriction rule ID. Required and must be unique within a - * DeployPolicy. The format is `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. - * - * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $id = ''; - /** - * Optional. What invoked the action. If left empty, all invoker types will be - * restricted. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.DeployPolicy.Invoker invokers = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $invokers; - /** - * Optional. Rollout actions to be restricted as part of the policy. If left - * empty, all actions will be restricted. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.RolloutRestriction.RolloutActions actions = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $actions; - /** - * Required. Time window within which actions are restricted. - * - * Generated from protobuf field .google.cloud.deploy.v1.TimeWindows time_windows = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $time_windows = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * Required. Restriction rule ID. Required and must be unique within a - * DeployPolicy. The format is `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. - * @type array|\Google\Protobuf\Internal\RepeatedField $invokers - * Optional. What invoked the action. If left empty, all invoker types will be - * restricted. - * @type array|\Google\Protobuf\Internal\RepeatedField $actions - * Optional. Rollout actions to be restricted as part of the policy. If left - * empty, all actions will be restricted. - * @type \Google\Cloud\Deploy\V1\TimeWindows $time_windows - * Required. Time window within which actions are restricted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. Restriction rule ID. Required and must be unique within a - * DeployPolicy. The format is `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. - * - * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Required. Restriction rule ID. Required and must be unique within a - * DeployPolicy. The format is `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. - * - * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Optional. What invoked the action. If left empty, all invoker types will be - * restricted. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.DeployPolicy.Invoker invokers = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getInvokers() - { - return $this->invokers; - } - - /** - * Optional. What invoked the action. If left empty, all invoker types will be - * restricted. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.DeployPolicy.Invoker invokers = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setInvokers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Deploy\V1\DeployPolicy\Invoker::class); - $this->invokers = $arr; - - return $this; - } - - /** - * Optional. Rollout actions to be restricted as part of the policy. If left - * empty, all actions will be restricted. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.RolloutRestriction.RolloutActions actions = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getActions() - { - return $this->actions; - } - - /** - * Optional. Rollout actions to be restricted as part of the policy. If left - * empty, all actions will be restricted. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.RolloutRestriction.RolloutActions actions = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setActions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Deploy\V1\RolloutRestriction\RolloutActions::class); - $this->actions = $arr; - - return $this; - } - - /** - * Required. Time window within which actions are restricted. - * - * Generated from protobuf field .google.cloud.deploy.v1.TimeWindows time_windows = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Deploy\V1\TimeWindows|null - */ - public function getTimeWindows() - { - return $this->time_windows; - } - - public function hasTimeWindows() - { - return isset($this->time_windows); - } - - public function clearTimeWindows() - { - unset($this->time_windows); - } - - /** - * Required. Time window within which actions are restricted. - * - * Generated from protobuf field .google.cloud.deploy.v1.TimeWindows time_windows = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Deploy\V1\TimeWindows $var - * @return $this - */ - public function setTimeWindows($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\TimeWindows::class); - $this->time_windows = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutRestriction/RolloutActions.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutRestriction/RolloutActions.php deleted file mode 100644 index 277c451406b7..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutRestriction/RolloutActions.php +++ /dev/null @@ -1,106 +0,0 @@ -google.cloud.deploy.v1.RolloutRestriction.RolloutActions - */ -class RolloutActions -{ - /** - * Unspecified. - * - * Generated from protobuf enum ROLLOUT_ACTIONS_UNSPECIFIED = 0; - */ - const ROLLOUT_ACTIONS_UNSPECIFIED = 0; - /** - * Advance the rollout to the next phase. - * - * Generated from protobuf enum ADVANCE = 1; - */ - const ADVANCE = 1; - /** - * Approve the rollout. - * - * Generated from protobuf enum APPROVE = 2; - */ - const APPROVE = 2; - /** - * Cancel the rollout. - * - * Generated from protobuf enum CANCEL = 3; - */ - const CANCEL = 3; - /** - * Create a rollout. - * - * Generated from protobuf enum CREATE = 4; - */ - const CREATE = 4; - /** - * Ignore a job result on the rollout. - * - * Generated from protobuf enum IGNORE_JOB = 5; - */ - const IGNORE_JOB = 5; - /** - * Retry a job for a rollout. - * - * Generated from protobuf enum RETRY_JOB = 6; - */ - const RETRY_JOB = 6; - /** - * Rollback a rollout. - * - * Generated from protobuf enum ROLLBACK = 7; - */ - const ROLLBACK = 7; - /** - * Terminate a jobrun. - * - * Generated from protobuf enum TERMINATE_JOBRUN = 8; - */ - const TERMINATE_JOBRUN = 8; - - private static $valueToName = [ - self::ROLLOUT_ACTIONS_UNSPECIFIED => 'ROLLOUT_ACTIONS_UNSPECIFIED', - self::ADVANCE => 'ADVANCE', - self::APPROVE => 'APPROVE', - self::CANCEL => 'CANCEL', - self::CREATE => 'CREATE', - self::IGNORE_JOB => 'IGNORE_JOB', - self::RETRY_JOB => 'RETRY_JOB', - self::ROLLBACK => 'ROLLBACK', - self::TERMINATE_JOBRUN => 'TERMINATE_JOBRUN', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RolloutActions::class, \Google\Cloud\Deploy\V1\RolloutRestriction_RolloutActions::class); - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutUpdateEvent.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutUpdateEvent.php deleted file mode 100644 index 6595c48a0d0f..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutUpdateEvent.php +++ /dev/null @@ -1,314 +0,0 @@ -google.cloud.deploy.v1.RolloutUpdateEvent - */ -class RolloutUpdateEvent extends \Google\Protobuf\Internal\Message -{ - /** - * Debug message for when a rollout update event occurs. - * - * Generated from protobuf field string message = 6; - */ - protected $message = ''; - /** - * Unique identifier of the pipeline. - * - * Generated from protobuf field string pipeline_uid = 1; - */ - protected $pipeline_uid = ''; - /** - * Unique identifier of the release. - * - * Generated from protobuf field string release_uid = 2; - */ - protected $release_uid = ''; - /** - * The name of the `Release`. - * - * Generated from protobuf field string release = 8; - */ - protected $release = ''; - /** - * The name of the rollout. - * rollout_uid is not in this log message because we write some of these log - * messages at rollout creation time, before we've generated the uid. - * - * Generated from protobuf field string rollout = 3; - */ - protected $rollout = ''; - /** - * ID of the target. - * - * Generated from protobuf field string target_id = 4; - */ - protected $target_id = ''; - /** - * Type of this notification, e.g. for a rollout update event. - * - * Generated from protobuf field .google.cloud.deploy.v1.Type type = 7; - */ - protected $type = 0; - /** - * The type of the rollout update. - * - * Generated from protobuf field .google.cloud.deploy.v1.RolloutUpdateEvent.RolloutUpdateType rollout_update_type = 5; - */ - protected $rollout_update_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $message - * Debug message for when a rollout update event occurs. - * @type string $pipeline_uid - * Unique identifier of the pipeline. - * @type string $release_uid - * Unique identifier of the release. - * @type string $release - * The name of the `Release`. - * @type string $rollout - * The name of the rollout. - * rollout_uid is not in this log message because we write some of these log - * messages at rollout creation time, before we've generated the uid. - * @type string $target_id - * ID of the target. - * @type int $type - * Type of this notification, e.g. for a rollout update event. - * @type int $rollout_update_type - * The type of the rollout update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\RolloutUpdatePayload::initOnce(); - parent::__construct($data); - } - - /** - * Debug message for when a rollout update event occurs. - * - * Generated from protobuf field string message = 6; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Debug message for when a rollout update event occurs. - * - * Generated from protobuf field string message = 6; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * Unique identifier of the pipeline. - * - * Generated from protobuf field string pipeline_uid = 1; - * @return string - */ - public function getPipelineUid() - { - return $this->pipeline_uid; - } - - /** - * Unique identifier of the pipeline. - * - * Generated from protobuf field string pipeline_uid = 1; - * @param string $var - * @return $this - */ - public function setPipelineUid($var) - { - GPBUtil::checkString($var, True); - $this->pipeline_uid = $var; - - return $this; - } - - /** - * Unique identifier of the release. - * - * Generated from protobuf field string release_uid = 2; - * @return string - */ - public function getReleaseUid() - { - return $this->release_uid; - } - - /** - * Unique identifier of the release. - * - * Generated from protobuf field string release_uid = 2; - * @param string $var - * @return $this - */ - public function setReleaseUid($var) - { - GPBUtil::checkString($var, True); - $this->release_uid = $var; - - return $this; - } - - /** - * The name of the `Release`. - * - * Generated from protobuf field string release = 8; - * @return string - */ - public function getRelease() - { - return $this->release; - } - - /** - * The name of the `Release`. - * - * Generated from protobuf field string release = 8; - * @param string $var - * @return $this - */ - public function setRelease($var) - { - GPBUtil::checkString($var, True); - $this->release = $var; - - return $this; - } - - /** - * The name of the rollout. - * rollout_uid is not in this log message because we write some of these log - * messages at rollout creation time, before we've generated the uid. - * - * Generated from protobuf field string rollout = 3; - * @return string - */ - public function getRollout() - { - return $this->rollout; - } - - /** - * The name of the rollout. - * rollout_uid is not in this log message because we write some of these log - * messages at rollout creation time, before we've generated the uid. - * - * Generated from protobuf field string rollout = 3; - * @param string $var - * @return $this - */ - public function setRollout($var) - { - GPBUtil::checkString($var, True); - $this->rollout = $var; - - return $this; - } - - /** - * ID of the target. - * - * Generated from protobuf field string target_id = 4; - * @return string - */ - public function getTargetId() - { - return $this->target_id; - } - - /** - * ID of the target. - * - * Generated from protobuf field string target_id = 4; - * @param string $var - * @return $this - */ - public function setTargetId($var) - { - GPBUtil::checkString($var, True); - $this->target_id = $var; - - return $this; - } - - /** - * Type of this notification, e.g. for a rollout update event. - * - * Generated from protobuf field .google.cloud.deploy.v1.Type type = 7; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Type of this notification, e.g. for a rollout update event. - * - * Generated from protobuf field .google.cloud.deploy.v1.Type type = 7; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Type::class); - $this->type = $var; - - return $this; - } - - /** - * The type of the rollout update. - * - * Generated from protobuf field .google.cloud.deploy.v1.RolloutUpdateEvent.RolloutUpdateType rollout_update_type = 5; - * @return int - */ - public function getRolloutUpdateType() - { - return $this->rollout_update_type; - } - - /** - * The type of the rollout update. - * - * Generated from protobuf field .google.cloud.deploy.v1.RolloutUpdateEvent.RolloutUpdateType rollout_update_type = 5; - * @param int $var - * @return $this - */ - public function setRolloutUpdateType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\RolloutUpdateEvent\RolloutUpdateType::class); - $this->rollout_update_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutUpdateEvent/RolloutUpdateType.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutUpdateEvent/RolloutUpdateType.php deleted file mode 100644 index 2bb121e5eae8..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RolloutUpdateEvent/RolloutUpdateType.php +++ /dev/null @@ -1,141 +0,0 @@ -google.cloud.deploy.v1.RolloutUpdateEvent.RolloutUpdateType - */ -class RolloutUpdateType -{ - /** - * Rollout update type unspecified. - * - * Generated from protobuf enum ROLLOUT_UPDATE_TYPE_UNSPECIFIED = 0; - */ - const ROLLOUT_UPDATE_TYPE_UNSPECIFIED = 0; - /** - * rollout state updated to pending. - * - * Generated from protobuf enum PENDING = 1; - */ - const PENDING = 1; - /** - * Rollout state updated to pending release. - * - * Generated from protobuf enum PENDING_RELEASE = 2; - */ - const PENDING_RELEASE = 2; - /** - * Rollout state updated to in progress. - * - * Generated from protobuf enum IN_PROGRESS = 3; - */ - const IN_PROGRESS = 3; - /** - * Rollout state updated to cancelling. - * - * Generated from protobuf enum CANCELLING = 4; - */ - const CANCELLING = 4; - /** - * Rollout state updated to cancelled. - * - * Generated from protobuf enum CANCELLED = 5; - */ - const CANCELLED = 5; - /** - * Rollout state updated to halted. - * - * Generated from protobuf enum HALTED = 6; - */ - const HALTED = 6; - /** - * Rollout state updated to succeeded. - * - * Generated from protobuf enum SUCCEEDED = 7; - */ - const SUCCEEDED = 7; - /** - * Rollout state updated to failed. - * - * Generated from protobuf enum FAILED = 8; - */ - const FAILED = 8; - /** - * Rollout requires approval. - * - * Generated from protobuf enum APPROVAL_REQUIRED = 9; - */ - const APPROVAL_REQUIRED = 9; - /** - * Rollout has been approved. - * - * Generated from protobuf enum APPROVED = 10; - */ - const APPROVED = 10; - /** - * Rollout has been rejected. - * - * Generated from protobuf enum REJECTED = 11; - */ - const REJECTED = 11; - /** - * Rollout requires advance to the next phase. - * - * Generated from protobuf enum ADVANCE_REQUIRED = 12; - */ - const ADVANCE_REQUIRED = 12; - /** - * Rollout has been advanced. - * - * Generated from protobuf enum ADVANCED = 13; - */ - const ADVANCED = 13; - - private static $valueToName = [ - self::ROLLOUT_UPDATE_TYPE_UNSPECIFIED => 'ROLLOUT_UPDATE_TYPE_UNSPECIFIED', - self::PENDING => 'PENDING', - self::PENDING_RELEASE => 'PENDING_RELEASE', - self::IN_PROGRESS => 'IN_PROGRESS', - self::CANCELLING => 'CANCELLING', - self::CANCELLED => 'CANCELLED', - self::HALTED => 'HALTED', - self::SUCCEEDED => 'SUCCEEDED', - self::FAILED => 'FAILED', - self::APPROVAL_REQUIRED => 'APPROVAL_REQUIRED', - self::APPROVED => 'APPROVED', - self::REJECTED => 'REJECTED', - self::ADVANCE_REQUIRED => 'ADVANCE_REQUIRED', - self::ADVANCED => 'ADVANCED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RolloutUpdateType::class, \Google\Cloud\Deploy\V1\RolloutUpdateEvent_RolloutUpdateType::class); - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RuntimeConfig.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RuntimeConfig.php deleted file mode 100644 index 21cbabe4279b..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/RuntimeConfig.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.deploy.v1.RuntimeConfig - */ -class RuntimeConfig extends \Google\Protobuf\Internal\Message -{ - protected $runtime_config; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Deploy\V1\KubernetesConfig $kubernetes - * Kubernetes runtime configuration. - * @type \Google\Cloud\Deploy\V1\CloudRunConfig $cloud_run - * Cloud Run runtime configuration. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Kubernetes runtime configuration. - * - * Generated from protobuf field .google.cloud.deploy.v1.KubernetesConfig kubernetes = 1; - * @return \Google\Cloud\Deploy\V1\KubernetesConfig|null - */ - public function getKubernetes() - { - return $this->readOneof(1); - } - - public function hasKubernetes() - { - return $this->hasOneof(1); - } - - /** - * Kubernetes runtime configuration. - * - * Generated from protobuf field .google.cloud.deploy.v1.KubernetesConfig kubernetes = 1; - * @param \Google\Cloud\Deploy\V1\KubernetesConfig $var - * @return $this - */ - public function setKubernetes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\KubernetesConfig::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Cloud Run runtime configuration. - * - * Generated from protobuf field .google.cloud.deploy.v1.CloudRunConfig cloud_run = 2; - * @return \Google\Cloud\Deploy\V1\CloudRunConfig|null - */ - public function getCloudRun() - { - return $this->readOneof(2); - } - - public function hasCloudRun() - { - return $this->hasOneof(2); - } - - /** - * Cloud Run runtime configuration. - * - * Generated from protobuf field .google.cloud.deploy.v1.CloudRunConfig cloud_run = 2; - * @param \Google\Cloud\Deploy\V1\CloudRunConfig $var - * @return $this - */ - public function setCloudRun($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CloudRunConfig::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getRuntimeConfig() - { - return $this->whichOneof("runtime_config"); - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SerialPipeline.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SerialPipeline.php deleted file mode 100644 index df68b2ffa1d9..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SerialPipeline.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.deploy.v1.SerialPipeline - */ -class SerialPipeline extends \Google\Protobuf\Internal\Message -{ - /** - * Each stage specifies configuration for a `Target`. The ordering - * of this list defines the promotion flow. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.Stage stages = 1; - */ - private $stages; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Deploy\V1\Stage>|\Google\Protobuf\Internal\RepeatedField $stages - * Each stage specifies configuration for a `Target`. The ordering - * of this list defines the promotion flow. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Each stage specifies configuration for a `Target`. The ordering - * of this list defines the promotion flow. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.Stage stages = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getStages() - { - return $this->stages; - } - - /** - * Each stage specifies configuration for a `Target`. The ordering - * of this list defines the promotion flow. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.Stage stages = 1; - * @param array<\Google\Cloud\Deploy\V1\Stage>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setStages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\Stage::class); - $this->stages = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules.php deleted file mode 100644 index 80cd38b13c24..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules.php +++ /dev/null @@ -1,175 +0,0 @@ -google.cloud.deploy.v1.SkaffoldModules - */ -class SkaffoldModules extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The Skaffold Config modules to use from the specified source. - * - * Generated from protobuf field repeated string configs = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $configs; - protected $source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $configs - * Optional. The Skaffold Config modules to use from the specified source. - * @type \Google\Cloud\Deploy\V1\SkaffoldModules\SkaffoldGitSource $git - * Remote git repository containing the Skaffold Config modules. - * @type \Google\Cloud\Deploy\V1\SkaffoldModules\SkaffoldGCSSource $google_cloud_storage - * Cloud Storage bucket containing the Skaffold Config modules. - * @type \Google\Cloud\Deploy\V1\SkaffoldModules\SkaffoldGCBRepoSource $google_cloud_build_repo - * Cloud Build V2 repository containing the Skaffold Config modules. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The Skaffold Config modules to use from the specified source. - * - * Generated from protobuf field repeated string configs = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getConfigs() - { - return $this->configs; - } - - /** - * Optional. The Skaffold Config modules to use from the specified source. - * - * Generated from protobuf field repeated string configs = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setConfigs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->configs = $arr; - - return $this; - } - - /** - * Remote git repository containing the Skaffold Config modules. - * - * Generated from protobuf field .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource git = 2; - * @return \Google\Cloud\Deploy\V1\SkaffoldModules\SkaffoldGitSource|null - */ - public function getGit() - { - return $this->readOneof(2); - } - - public function hasGit() - { - return $this->hasOneof(2); - } - - /** - * Remote git repository containing the Skaffold Config modules. - * - * Generated from protobuf field .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource git = 2; - * @param \Google\Cloud\Deploy\V1\SkaffoldModules\SkaffoldGitSource $var - * @return $this - */ - public function setGit($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\SkaffoldModules\SkaffoldGitSource::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Cloud Storage bucket containing the Skaffold Config modules. - * - * Generated from protobuf field .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource google_cloud_storage = 3; - * @return \Google\Cloud\Deploy\V1\SkaffoldModules\SkaffoldGCSSource|null - */ - public function getGoogleCloudStorage() - { - return $this->readOneof(3); - } - - public function hasGoogleCloudStorage() - { - return $this->hasOneof(3); - } - - /** - * Cloud Storage bucket containing the Skaffold Config modules. - * - * Generated from protobuf field .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource google_cloud_storage = 3; - * @param \Google\Cloud\Deploy\V1\SkaffoldModules\SkaffoldGCSSource $var - * @return $this - */ - public function setGoogleCloudStorage($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\SkaffoldModules\SkaffoldGCSSource::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Cloud Build V2 repository containing the Skaffold Config modules. - * - * Generated from protobuf field .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource google_cloud_build_repo = 4; - * @return \Google\Cloud\Deploy\V1\SkaffoldModules\SkaffoldGCBRepoSource|null - */ - public function getGoogleCloudBuildRepo() - { - return $this->readOneof(4); - } - - public function hasGoogleCloudBuildRepo() - { - return $this->hasOneof(4); - } - - /** - * Cloud Build V2 repository containing the Skaffold Config modules. - * - * Generated from protobuf field .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource google_cloud_build_repo = 4; - * @param \Google\Cloud\Deploy\V1\SkaffoldModules\SkaffoldGCBRepoSource $var - * @return $this - */ - public function setGoogleCloudBuildRepo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\SkaffoldModules\SkaffoldGCBRepoSource::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getSource() - { - return $this->whichOneof("source"); - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules/SkaffoldGCBRepoSource.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules/SkaffoldGCBRepoSource.php deleted file mode 100644 index fa3d408ca365..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules/SkaffoldGCBRepoSource.php +++ /dev/null @@ -1,150 +0,0 @@ -google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCBRepoSource - */ -class SkaffoldGCBRepoSource extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the Cloud Build V2 Repository. - * Format is - * projects/{project}/locations/{location}/connections/{connection}/repositories/{repository}. - * - * Generated from protobuf field string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $repository = ''; - /** - * Optional. Relative path from the repository root to the Skaffold Config - * file. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $path = ''; - /** - * Optional. Branch or tag to use when cloning the repository. - * - * Generated from protobuf field string ref = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $ref = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $repository - * Required. Name of the Cloud Build V2 Repository. - * Format is - * projects/{project}/locations/{location}/connections/{connection}/repositories/{repository}. - * @type string $path - * Optional. Relative path from the repository root to the Skaffold Config - * file. - * @type string $ref - * Optional. Branch or tag to use when cloning the repository. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the Cloud Build V2 Repository. - * Format is - * projects/{project}/locations/{location}/connections/{connection}/repositories/{repository}. - * - * Generated from protobuf field string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getRepository() - { - return $this->repository; - } - - /** - * Required. Name of the Cloud Build V2 Repository. - * Format is - * projects/{project}/locations/{location}/connections/{connection}/repositories/{repository}. - * - * Generated from protobuf field string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setRepository($var) - { - GPBUtil::checkString($var, True); - $this->repository = $var; - - return $this; - } - - /** - * Optional. Relative path from the repository root to the Skaffold Config - * file. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Optional. Relative path from the repository root to the Skaffold Config - * file. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - - /** - * Optional. Branch or tag to use when cloning the repository. - * - * Generated from protobuf field string ref = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRef() - { - return $this->ref; - } - - /** - * Optional. Branch or tag to use when cloning the repository. - * - * Generated from protobuf field string ref = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRef($var) - { - GPBUtil::checkString($var, True); - $this->ref = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SkaffoldGCBRepoSource::class, \Google\Cloud\Deploy\V1\SkaffoldModules_SkaffoldGCBRepoSource::class); - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules/SkaffoldGCSSource.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules/SkaffoldGCSSource.php deleted file mode 100644 index 30506470d3ce..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules/SkaffoldGCSSource.php +++ /dev/null @@ -1,112 +0,0 @@ -google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource - */ -class SkaffoldGCSSource extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Cloud Storage source paths to copy recursively. For example, - * providing "gs://my-bucket/dir/configs/*" will result in Skaffold copying - * all files within the "dir/configs" directory in the bucket "my-bucket". - * - * Generated from protobuf field string source = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $source = ''; - /** - * Optional. Relative path from the source to the Skaffold file. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $path = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $source - * Required. Cloud Storage source paths to copy recursively. For example, - * providing "gs://my-bucket/dir/configs/*" will result in Skaffold copying - * all files within the "dir/configs" directory in the bucket "my-bucket". - * @type string $path - * Optional. Relative path from the source to the Skaffold file. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. Cloud Storage source paths to copy recursively. For example, - * providing "gs://my-bucket/dir/configs/*" will result in Skaffold copying - * all files within the "dir/configs" directory in the bucket "my-bucket". - * - * Generated from protobuf field string source = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getSource() - { - return $this->source; - } - - /** - * Required. Cloud Storage source paths to copy recursively. For example, - * providing "gs://my-bucket/dir/configs/*" will result in Skaffold copying - * all files within the "dir/configs" directory in the bucket "my-bucket". - * - * Generated from protobuf field string source = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setSource($var) - { - GPBUtil::checkString($var, True); - $this->source = $var; - - return $this; - } - - /** - * Optional. Relative path from the source to the Skaffold file. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Optional. Relative path from the source to the Skaffold file. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SkaffoldGCSSource::class, \Google\Cloud\Deploy\V1\SkaffoldModules_SkaffoldGCSSource::class); - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules/SkaffoldGitSource.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules/SkaffoldGitSource.php deleted file mode 100644 index 38bc7ae988de..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldModules/SkaffoldGitSource.php +++ /dev/null @@ -1,138 +0,0 @@ -google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource - */ -class SkaffoldGitSource extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Git repository the package should be cloned from. - * - * Generated from protobuf field string repo = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $repo = ''; - /** - * Optional. Relative path from the repository root to the Skaffold file. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $path = ''; - /** - * Optional. Git branch or tag to use when cloning the repository. - * - * Generated from protobuf field string ref = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $ref = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $repo - * Required. Git repository the package should be cloned from. - * @type string $path - * Optional. Relative path from the repository root to the Skaffold file. - * @type string $ref - * Optional. Git branch or tag to use when cloning the repository. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. Git repository the package should be cloned from. - * - * Generated from protobuf field string repo = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getRepo() - { - return $this->repo; - } - - /** - * Required. Git repository the package should be cloned from. - * - * Generated from protobuf field string repo = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setRepo($var) - { - GPBUtil::checkString($var, True); - $this->repo = $var; - - return $this; - } - - /** - * Optional. Relative path from the repository root to the Skaffold file. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Optional. Relative path from the repository root to the Skaffold file. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - - /** - * Optional. Git branch or tag to use when cloning the repository. - * - * Generated from protobuf field string ref = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRef() - { - return $this->ref; - } - - /** - * Optional. Git branch or tag to use when cloning the repository. - * - * Generated from protobuf field string ref = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRef($var) - { - GPBUtil::checkString($var, True); - $this->ref = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SkaffoldGitSource::class, \Google\Cloud\Deploy\V1\SkaffoldModules_SkaffoldGitSource::class); - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldSupportState.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldSupportState.php deleted file mode 100644 index ddeaf2ac9f3a..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldSupportState.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.deploy.v1.SkaffoldSupportState - */ -class SkaffoldSupportState -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum SKAFFOLD_SUPPORT_STATE_UNSPECIFIED = 0; - */ - const SKAFFOLD_SUPPORT_STATE_UNSPECIFIED = 0; - /** - * This Skaffold version is currently supported. - * - * Generated from protobuf enum SKAFFOLD_SUPPORT_STATE_SUPPORTED = 1; - */ - const SKAFFOLD_SUPPORT_STATE_SUPPORTED = 1; - /** - * This Skaffold version is in maintenance mode. - * - * Generated from protobuf enum SKAFFOLD_SUPPORT_STATE_MAINTENANCE_MODE = 2; - */ - const SKAFFOLD_SUPPORT_STATE_MAINTENANCE_MODE = 2; - /** - * This Skaffold version is no longer supported. - * - * Generated from protobuf enum SKAFFOLD_SUPPORT_STATE_UNSUPPORTED = 3; - */ - const SKAFFOLD_SUPPORT_STATE_UNSUPPORTED = 3; - - private static $valueToName = [ - self::SKAFFOLD_SUPPORT_STATE_UNSPECIFIED => 'SKAFFOLD_SUPPORT_STATE_UNSPECIFIED', - self::SKAFFOLD_SUPPORT_STATE_SUPPORTED => 'SKAFFOLD_SUPPORT_STATE_SUPPORTED', - self::SKAFFOLD_SUPPORT_STATE_MAINTENANCE_MODE => 'SKAFFOLD_SUPPORT_STATE_MAINTENANCE_MODE', - self::SKAFFOLD_SUPPORT_STATE_UNSUPPORTED => 'SKAFFOLD_SUPPORT_STATE_UNSUPPORTED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldVersion.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldVersion.php deleted file mode 100644 index 025ceb464b68..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/SkaffoldVersion.php +++ /dev/null @@ -1,199 +0,0 @@ -google.cloud.deploy.v1.SkaffoldVersion - */ -class SkaffoldVersion extends \Google\Protobuf\Internal\Message -{ - /** - * Release version number. For example, "1.20.3". - * - * Generated from protobuf field string version = 1; - */ - protected $version = ''; - /** - * The time at which this version of Skaffold will enter maintenance mode. - * - * Generated from protobuf field .google.protobuf.Timestamp maintenance_mode_time = 3; - */ - protected $maintenance_mode_time = null; - /** - * The time at which this version of Skaffold will no longer be supported. - * - * Generated from protobuf field .google.protobuf.Timestamp support_expiration_time = 4; - */ - protected $support_expiration_time = null; - /** - * Date when this version is expected to no longer be supported. - * - * Generated from protobuf field .google.type.Date support_end_date = 2; - */ - protected $support_end_date = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $version - * Release version number. For example, "1.20.3". - * @type \Google\Protobuf\Timestamp $maintenance_mode_time - * The time at which this version of Skaffold will enter maintenance mode. - * @type \Google\Protobuf\Timestamp $support_expiration_time - * The time at which this version of Skaffold will no longer be supported. - * @type \Google\Type\Date $support_end_date - * Date when this version is expected to no longer be supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Release version number. For example, "1.20.3". - * - * Generated from protobuf field string version = 1; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Release version number. For example, "1.20.3". - * - * Generated from protobuf field string version = 1; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * The time at which this version of Skaffold will enter maintenance mode. - * - * Generated from protobuf field .google.protobuf.Timestamp maintenance_mode_time = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getMaintenanceModeTime() - { - return $this->maintenance_mode_time; - } - - public function hasMaintenanceModeTime() - { - return isset($this->maintenance_mode_time); - } - - public function clearMaintenanceModeTime() - { - unset($this->maintenance_mode_time); - } - - /** - * The time at which this version of Skaffold will enter maintenance mode. - * - * Generated from protobuf field .google.protobuf.Timestamp maintenance_mode_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setMaintenanceModeTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->maintenance_mode_time = $var; - - return $this; - } - - /** - * The time at which this version of Skaffold will no longer be supported. - * - * Generated from protobuf field .google.protobuf.Timestamp support_expiration_time = 4; - * @return \Google\Protobuf\Timestamp|null - */ - public function getSupportExpirationTime() - { - return $this->support_expiration_time; - } - - public function hasSupportExpirationTime() - { - return isset($this->support_expiration_time); - } - - public function clearSupportExpirationTime() - { - unset($this->support_expiration_time); - } - - /** - * The time at which this version of Skaffold will no longer be supported. - * - * Generated from protobuf field .google.protobuf.Timestamp support_expiration_time = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setSupportExpirationTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->support_expiration_time = $var; - - return $this; - } - - /** - * Date when this version is expected to no longer be supported. - * - * Generated from protobuf field .google.type.Date support_end_date = 2; - * @return \Google\Type\Date|null - */ - public function getSupportEndDate() - { - return $this->support_end_date; - } - - public function hasSupportEndDate() - { - return isset($this->support_end_date); - } - - public function clearSupportEndDate() - { - unset($this->support_end_date); - } - - /** - * Date when this version is expected to no longer be supported. - * - * Generated from protobuf field .google.type.Date support_end_date = 2; - * @param \Google\Type\Date $var - * @return $this - */ - public function setSupportEndDate($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->support_end_date = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Stage.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Stage.php deleted file mode 100644 index ffd1b986043b..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Stage.php +++ /dev/null @@ -1,203 +0,0 @@ -google.cloud.deploy.v1.Stage - */ -class Stage extends \Google\Protobuf\Internal\Message -{ - /** - * The target_id to which this stage points. This field refers exclusively to - * the last segment of a target name. For example, this field would just be - * `my-target` (rather than - * `projects/project/locations/location/targets/my-target`). The location of - * the `Target` is inferred to be the same as the location of the - * `DeliveryPipeline` that contains this `Stage`. - * - * Generated from protobuf field string target_id = 1; - */ - protected $target_id = ''; - /** - * Skaffold profiles to use when rendering the manifest for this stage's - * `Target`. - * - * Generated from protobuf field repeated string profiles = 2; - */ - private $profiles; - /** - * Optional. The strategy to use for a `Rollout` to this stage. - * - * Generated from protobuf field .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $strategy = null; - /** - * Optional. The deploy parameters to use for the target in this stage. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $deploy_parameters; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $target_id - * The target_id to which this stage points. This field refers exclusively to - * the last segment of a target name. For example, this field would just be - * `my-target` (rather than - * `projects/project/locations/location/targets/my-target`). The location of - * the `Target` is inferred to be the same as the location of the - * `DeliveryPipeline` that contains this `Stage`. - * @type array|\Google\Protobuf\Internal\RepeatedField $profiles - * Skaffold profiles to use when rendering the manifest for this stage's - * `Target`. - * @type \Google\Cloud\Deploy\V1\Strategy $strategy - * Optional. The strategy to use for a `Rollout` to this stage. - * @type array<\Google\Cloud\Deploy\V1\DeployParameters>|\Google\Protobuf\Internal\RepeatedField $deploy_parameters - * Optional. The deploy parameters to use for the target in this stage. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * The target_id to which this stage points. This field refers exclusively to - * the last segment of a target name. For example, this field would just be - * `my-target` (rather than - * `projects/project/locations/location/targets/my-target`). The location of - * the `Target` is inferred to be the same as the location of the - * `DeliveryPipeline` that contains this `Stage`. - * - * Generated from protobuf field string target_id = 1; - * @return string - */ - public function getTargetId() - { - return $this->target_id; - } - - /** - * The target_id to which this stage points. This field refers exclusively to - * the last segment of a target name. For example, this field would just be - * `my-target` (rather than - * `projects/project/locations/location/targets/my-target`). The location of - * the `Target` is inferred to be the same as the location of the - * `DeliveryPipeline` that contains this `Stage`. - * - * Generated from protobuf field string target_id = 1; - * @param string $var - * @return $this - */ - public function setTargetId($var) - { - GPBUtil::checkString($var, True); - $this->target_id = $var; - - return $this; - } - - /** - * Skaffold profiles to use when rendering the manifest for this stage's - * `Target`. - * - * Generated from protobuf field repeated string profiles = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getProfiles() - { - return $this->profiles; - } - - /** - * Skaffold profiles to use when rendering the manifest for this stage's - * `Target`. - * - * Generated from protobuf field repeated string profiles = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setProfiles($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->profiles = $arr; - - return $this; - } - - /** - * Optional. The strategy to use for a `Rollout` to this stage. - * - * Generated from protobuf field .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Deploy\V1\Strategy|null - */ - public function getStrategy() - { - return $this->strategy; - } - - public function hasStrategy() - { - return isset($this->strategy); - } - - public function clearStrategy() - { - unset($this->strategy); - } - - /** - * Optional. The strategy to use for a `Rollout` to this stage. - * - * Generated from protobuf field .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Deploy\V1\Strategy $var - * @return $this - */ - public function setStrategy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Strategy::class); - $this->strategy = $var; - - return $this; - } - - /** - * Optional. The deploy parameters to use for the target in this stage. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDeployParameters() - { - return $this->deploy_parameters; - } - - /** - * Optional. The deploy parameters to use for the target in this stage. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.DeployParameters deploy_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\Deploy\V1\DeployParameters>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDeployParameters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\DeployParameters::class); - $this->deploy_parameters = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Standard.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Standard.php deleted file mode 100644 index 5dfce8ecc950..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Standard.php +++ /dev/null @@ -1,163 +0,0 @@ -google.cloud.deploy.v1.Standard - */ -class Standard extends \Google\Protobuf\Internal\Message -{ - /** - * Whether to verify a deployment. - * - * Generated from protobuf field bool verify = 1; - */ - protected $verify = false; - /** - * Optional. Configuration for the predeploy job. If this is not configured, - * predeploy job will not be present. - * - * Generated from protobuf field .google.cloud.deploy.v1.Predeploy predeploy = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $predeploy = null; - /** - * Optional. Configuration for the postdeploy job. If this is not configured, - * postdeploy job will not be present. - * - * Generated from protobuf field .google.cloud.deploy.v1.Postdeploy postdeploy = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $postdeploy = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $verify - * Whether to verify a deployment. - * @type \Google\Cloud\Deploy\V1\Predeploy $predeploy - * Optional. Configuration for the predeploy job. If this is not configured, - * predeploy job will not be present. - * @type \Google\Cloud\Deploy\V1\Postdeploy $postdeploy - * Optional. Configuration for the postdeploy job. If this is not configured, - * postdeploy job will not be present. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Whether to verify a deployment. - * - * Generated from protobuf field bool verify = 1; - * @return bool - */ - public function getVerify() - { - return $this->verify; - } - - /** - * Whether to verify a deployment. - * - * Generated from protobuf field bool verify = 1; - * @param bool $var - * @return $this - */ - public function setVerify($var) - { - GPBUtil::checkBool($var); - $this->verify = $var; - - return $this; - } - - /** - * Optional. Configuration for the predeploy job. If this is not configured, - * predeploy job will not be present. - * - * Generated from protobuf field .google.cloud.deploy.v1.Predeploy predeploy = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Deploy\V1\Predeploy|null - */ - public function getPredeploy() - { - return $this->predeploy; - } - - public function hasPredeploy() - { - return isset($this->predeploy); - } - - public function clearPredeploy() - { - unset($this->predeploy); - } - - /** - * Optional. Configuration for the predeploy job. If this is not configured, - * predeploy job will not be present. - * - * Generated from protobuf field .google.cloud.deploy.v1.Predeploy predeploy = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Deploy\V1\Predeploy $var - * @return $this - */ - public function setPredeploy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Predeploy::class); - $this->predeploy = $var; - - return $this; - } - - /** - * Optional. Configuration for the postdeploy job. If this is not configured, - * postdeploy job will not be present. - * - * Generated from protobuf field .google.cloud.deploy.v1.Postdeploy postdeploy = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Deploy\V1\Postdeploy|null - */ - public function getPostdeploy() - { - return $this->postdeploy; - } - - public function hasPostdeploy() - { - return isset($this->postdeploy); - } - - public function clearPostdeploy() - { - unset($this->postdeploy); - } - - /** - * Optional. Configuration for the postdeploy job. If this is not configured, - * postdeploy job will not be present. - * - * Generated from protobuf field .google.cloud.deploy.v1.Postdeploy postdeploy = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Deploy\V1\Postdeploy $var - * @return $this - */ - public function setPostdeploy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Postdeploy::class); - $this->postdeploy = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Strategy.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Strategy.php deleted file mode 100644 index 3d4f9641a71f..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Strategy.php +++ /dev/null @@ -1,114 +0,0 @@ -google.cloud.deploy.v1.Strategy - */ -class Strategy extends \Google\Protobuf\Internal\Message -{ - protected $deployment_strategy; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Deploy\V1\Standard $standard - * Standard deployment strategy executes a single deploy and allows - * verifying the deployment. - * @type \Google\Cloud\Deploy\V1\Canary $canary - * Canary deployment strategy provides progressive percentage based - * deployments to a Target. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Standard deployment strategy executes a single deploy and allows - * verifying the deployment. - * - * Generated from protobuf field .google.cloud.deploy.v1.Standard standard = 1; - * @return \Google\Cloud\Deploy\V1\Standard|null - */ - public function getStandard() - { - return $this->readOneof(1); - } - - public function hasStandard() - { - return $this->hasOneof(1); - } - - /** - * Standard deployment strategy executes a single deploy and allows - * verifying the deployment. - * - * Generated from protobuf field .google.cloud.deploy.v1.Standard standard = 1; - * @param \Google\Cloud\Deploy\V1\Standard $var - * @return $this - */ - public function setStandard($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Standard::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Canary deployment strategy provides progressive percentage based - * deployments to a Target. - * - * Generated from protobuf field .google.cloud.deploy.v1.Canary canary = 2; - * @return \Google\Cloud\Deploy\V1\Canary|null - */ - public function getCanary() - { - return $this->readOneof(2); - } - - public function hasCanary() - { - return $this->hasOneof(2); - } - - /** - * Canary deployment strategy provides progressive percentage based - * deployments to a Target. - * - * Generated from protobuf field .google.cloud.deploy.v1.Canary canary = 2; - * @param \Google\Cloud\Deploy\V1\Canary $var - * @return $this - */ - public function setCanary($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Canary::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getDeploymentStrategy() - { - return $this->whichOneof("deployment_strategy"); - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Target.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Target.php deleted file mode 100644 index 70f1b0a03e49..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Target.php +++ /dev/null @@ -1,783 +0,0 @@ -google.cloud.deploy.v1.Target - */ -class Target extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Name of the `Target`. Format is - * `projects/{project}/locations/{location}/targets/{target}`. - * The `target` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $name = ''; - /** - * Output only. Resource id of the `Target`. - * - * Generated from protobuf field string target_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $target_id = ''; - /** - * Output only. Unique identifier of the `Target`. - * - * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Optional. Description of the `Target`. Max length is 255 characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Optional. User annotations. These attributes can only be set and used by - * the user, and not by Cloud Deploy. See - * https://google.aip.dev/128#annotations for more details such as format and - * size limitations. - * - * Generated from protobuf field map annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $annotations; - /** - * Optional. Labels are attributes that can be set and used by both the - * user and by Cloud Deploy. Labels must meet the following constraints: - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. - * * All characters must use UTF-8 encoding, and international characters are - * allowed. - * * Keys must start with a lowercase letter or international character. - * * Each resource is limited to a maximum of 64 labels. - * Both keys and values are additionally constrained to be <= 128 bytes. - * - * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Optional. Whether or not the `Target` requires approval. - * - * Generated from protobuf field bool require_approval = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $require_approval = false; - /** - * Output only. Time at which the `Target` was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Most recent time at which the `Target` was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. Map of entity IDs to their associated entities. Associated - * entities allows specifying places other than the deployment target for - * specific features. For example, the Gateway API canary can be configured to - * deploy the HTTPRoute to a different cluster(s) than the deployment cluster - * using associated entities. An entity ID must consist of lower-case letters, - * numbers, and hyphens, start with a letter and end with a letter or a - * number, and have a max length of 63 characters. In other words, it must - * match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * - * Generated from protobuf field map associated_entities = 23 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $associated_entities; - /** - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - /** - * Configurations for all execution that relates to this `Target`. - * Each `ExecutionEnvironmentUsage` value may only be used in a single - * configuration; using the same value multiple times is an error. - * When one or more configurations are specified, they must include the - * `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values. - * When no configurations are specified, execution will use the default - * specified in `DefaultPool`. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16; - */ - private $execution_configs; - /** - * Optional. The deploy parameters to use for this target. - * - * Generated from protobuf field map deploy_parameters = 20 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $deploy_parameters; - protected $deployment_target; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Optional. Name of the `Target`. Format is - * `projects/{project}/locations/{location}/targets/{target}`. - * The `target` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` - * @type string $target_id - * Output only. Resource id of the `Target`. - * @type string $uid - * Output only. Unique identifier of the `Target`. - * @type string $description - * Optional. Description of the `Target`. Max length is 255 characters. - * @type array|\Google\Protobuf\Internal\MapField $annotations - * Optional. User annotations. These attributes can only be set and used by - * the user, and not by Cloud Deploy. See - * https://google.aip.dev/128#annotations for more details such as format and - * size limitations. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. Labels are attributes that can be set and used by both the - * user and by Cloud Deploy. Labels must meet the following constraints: - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. - * * All characters must use UTF-8 encoding, and international characters are - * allowed. - * * Keys must start with a lowercase letter or international character. - * * Each resource is limited to a maximum of 64 labels. - * Both keys and values are additionally constrained to be <= 128 bytes. - * @type bool $require_approval - * Optional. Whether or not the `Target` requires approval. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time at which the `Target` was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Most recent time at which the `Target` was updated. - * @type \Google\Cloud\Deploy\V1\GkeCluster $gke - * Optional. Information specifying a GKE Cluster. - * @type \Google\Cloud\Deploy\V1\AnthosCluster $anthos_cluster - * Optional. Information specifying an Anthos Cluster. - * @type \Google\Cloud\Deploy\V1\CloudRunLocation $run - * Optional. Information specifying a Cloud Run deployment target. - * @type \Google\Cloud\Deploy\V1\MultiTarget $multi_target - * Optional. Information specifying a multiTarget. - * @type \Google\Cloud\Deploy\V1\CustomTarget $custom_target - * Optional. Information specifying a Custom Target. - * @type array|\Google\Protobuf\Internal\MapField $associated_entities - * Optional. Map of entity IDs to their associated entities. Associated - * entities allows specifying places other than the deployment target for - * specific features. For example, the Gateway API canary can be configured to - * deploy the HTTPRoute to a different cluster(s) than the deployment cluster - * using associated entities. An entity ID must consist of lower-case letters, - * numbers, and hyphens, start with a letter and end with a letter or a - * number, and have a max length of 63 characters. In other words, it must - * match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * @type string $etag - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * @type array<\Google\Cloud\Deploy\V1\ExecutionConfig>|\Google\Protobuf\Internal\RepeatedField $execution_configs - * Configurations for all execution that relates to this `Target`. - * Each `ExecutionEnvironmentUsage` value may only be used in a single - * configuration; using the same value multiple times is an error. - * When one or more configurations are specified, they must include the - * `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values. - * When no configurations are specified, execution will use the default - * specified in `DefaultPool`. - * @type array|\Google\Protobuf\Internal\MapField $deploy_parameters - * Optional. The deploy parameters to use for this target. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Name of the `Target`. Format is - * `projects/{project}/locations/{location}/targets/{target}`. - * The `target` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Optional. Name of the `Target`. Format is - * `projects/{project}/locations/{location}/targets/{target}`. - * The `target` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. Resource id of the `Target`. - * - * Generated from protobuf field string target_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getTargetId() - { - return $this->target_id; - } - - /** - * Output only. Resource id of the `Target`. - * - * Generated from protobuf field string target_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setTargetId($var) - { - GPBUtil::checkString($var, True); - $this->target_id = $var; - - return $this; - } - - /** - * Output only. Unique identifier of the `Target`. - * - * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. Unique identifier of the `Target`. - * - * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Optional. Description of the `Target`. Max length is 255 characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description of the `Target`. Max length is 255 characters. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Optional. User annotations. These attributes can only be set and used by - * the user, and not by Cloud Deploy. See - * https://google.aip.dev/128#annotations for more details such as format and - * size limitations. - * - * Generated from protobuf field map annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * Optional. User annotations. These attributes can only be set and used by - * the user, and not by Cloud Deploy. See - * https://google.aip.dev/128#annotations for more details such as format and - * size limitations. - * - * Generated from protobuf field map annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAnnotations($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->annotations = $arr; - - return $this; - } - - /** - * Optional. Labels are attributes that can be set and used by both the - * user and by Cloud Deploy. Labels must meet the following constraints: - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. - * * All characters must use UTF-8 encoding, and international characters are - * allowed. - * * Keys must start with a lowercase letter or international character. - * * Each resource is limited to a maximum of 64 labels. - * Both keys and values are additionally constrained to be <= 128 bytes. - * - * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. Labels are attributes that can be set and used by both the - * user and by Cloud Deploy. Labels must meet the following constraints: - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. - * * All characters must use UTF-8 encoding, and international characters are - * allowed. - * * Keys must start with a lowercase letter or international character. - * * Each resource is limited to a maximum of 64 labels. - * Both keys and values are additionally constrained to be <= 128 bytes. - * - * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Optional. Whether or not the `Target` requires approval. - * - * Generated from protobuf field bool require_approval = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getRequireApproval() - { - return $this->require_approval; - } - - /** - * Optional. Whether or not the `Target` requires approval. - * - * Generated from protobuf field bool require_approval = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setRequireApproval($var) - { - GPBUtil::checkBool($var); - $this->require_approval = $var; - - return $this; - } - - /** - * Output only. Time at which the `Target` was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Time at which the `Target` was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. Most recent time at which the `Target` was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. Most recent time at which the `Target` was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Optional. Information specifying a GKE Cluster. - * - * Generated from protobuf field .google.cloud.deploy.v1.GkeCluster gke = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Deploy\V1\GkeCluster|null - */ - public function getGke() - { - return $this->readOneof(15); - } - - public function hasGke() - { - return $this->hasOneof(15); - } - - /** - * Optional. Information specifying a GKE Cluster. - * - * Generated from protobuf field .google.cloud.deploy.v1.GkeCluster gke = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Deploy\V1\GkeCluster $var - * @return $this - */ - public function setGke($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\GkeCluster::class); - $this->writeOneof(15, $var); - - return $this; - } - - /** - * Optional. Information specifying an Anthos Cluster. - * - * Generated from protobuf field .google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Deploy\V1\AnthosCluster|null - */ - public function getAnthosCluster() - { - return $this->readOneof(17); - } - - public function hasAnthosCluster() - { - return $this->hasOneof(17); - } - - /** - * Optional. Information specifying an Anthos Cluster. - * - * Generated from protobuf field .google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Deploy\V1\AnthosCluster $var - * @return $this - */ - public function setAnthosCluster($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\AnthosCluster::class); - $this->writeOneof(17, $var); - - return $this; - } - - /** - * Optional. Information specifying a Cloud Run deployment target. - * - * Generated from protobuf field .google.cloud.deploy.v1.CloudRunLocation run = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Deploy\V1\CloudRunLocation|null - */ - public function getRun() - { - return $this->readOneof(18); - } - - public function hasRun() - { - return $this->hasOneof(18); - } - - /** - * Optional. Information specifying a Cloud Run deployment target. - * - * Generated from protobuf field .google.cloud.deploy.v1.CloudRunLocation run = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Deploy\V1\CloudRunLocation $var - * @return $this - */ - public function setRun($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CloudRunLocation::class); - $this->writeOneof(18, $var); - - return $this; - } - - /** - * Optional. Information specifying a multiTarget. - * - * Generated from protobuf field .google.cloud.deploy.v1.MultiTarget multi_target = 19 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Deploy\V1\MultiTarget|null - */ - public function getMultiTarget() - { - return $this->readOneof(19); - } - - public function hasMultiTarget() - { - return $this->hasOneof(19); - } - - /** - * Optional. Information specifying a multiTarget. - * - * Generated from protobuf field .google.cloud.deploy.v1.MultiTarget multi_target = 19 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Deploy\V1\MultiTarget $var - * @return $this - */ - public function setMultiTarget($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\MultiTarget::class); - $this->writeOneof(19, $var); - - return $this; - } - - /** - * Optional. Information specifying a Custom Target. - * - * Generated from protobuf field .google.cloud.deploy.v1.CustomTarget custom_target = 21 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Deploy\V1\CustomTarget|null - */ - public function getCustomTarget() - { - return $this->readOneof(21); - } - - public function hasCustomTarget() - { - return $this->hasOneof(21); - } - - /** - * Optional. Information specifying a Custom Target. - * - * Generated from protobuf field .google.cloud.deploy.v1.CustomTarget custom_target = 21 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Deploy\V1\CustomTarget $var - * @return $this - */ - public function setCustomTarget($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CustomTarget::class); - $this->writeOneof(21, $var); - - return $this; - } - - /** - * Optional. Map of entity IDs to their associated entities. Associated - * entities allows specifying places other than the deployment target for - * specific features. For example, the Gateway API canary can be configured to - * deploy the HTTPRoute to a different cluster(s) than the deployment cluster - * using associated entities. An entity ID must consist of lower-case letters, - * numbers, and hyphens, start with a letter and end with a letter or a - * number, and have a max length of 63 characters. In other words, it must - * match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * - * Generated from protobuf field map associated_entities = 23 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAssociatedEntities() - { - return $this->associated_entities; - } - - /** - * Optional. Map of entity IDs to their associated entities. Associated - * entities allows specifying places other than the deployment target for - * specific features. For example, the Gateway API canary can be configured to - * deploy the HTTPRoute to a different cluster(s) than the deployment cluster - * using associated entities. An entity ID must consist of lower-case letters, - * numbers, and hyphens, start with a letter and end with a letter or a - * number, and have a max length of 63 characters. In other words, it must - * match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. - * - * Generated from protobuf field map associated_entities = 23 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAssociatedEntities($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\AssociatedEntities::class); - $this->associated_entities = $arr; - - return $this; - } - - /** - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Configurations for all execution that relates to this `Target`. - * Each `ExecutionEnvironmentUsage` value may only be used in a single - * configuration; using the same value multiple times is an error. - * When one or more configurations are specified, they must include the - * `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values. - * When no configurations are specified, execution will use the default - * specified in `DefaultPool`. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getExecutionConfigs() - { - return $this->execution_configs; - } - - /** - * Configurations for all execution that relates to this `Target`. - * Each `ExecutionEnvironmentUsage` value may only be used in a single - * configuration; using the same value multiple times is an error. - * When one or more configurations are specified, they must include the - * `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values. - * When no configurations are specified, execution will use the default - * specified in `DefaultPool`. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16; - * @param array<\Google\Cloud\Deploy\V1\ExecutionConfig>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setExecutionConfigs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\ExecutionConfig::class); - $this->execution_configs = $arr; - - return $this; - } - - /** - * Optional. The deploy parameters to use for this target. - * - * Generated from protobuf field map deploy_parameters = 20 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getDeployParameters() - { - return $this->deploy_parameters; - } - - /** - * Optional. The deploy parameters to use for this target. - * - * Generated from protobuf field map deploy_parameters = 20 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setDeployParameters($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->deploy_parameters = $arr; - - return $this; - } - - /** - * @return string - */ - public function getDeploymentTarget() - { - return $this->whichOneof("deployment_target"); - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetArtifact.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetArtifact.php deleted file mode 100644 index dcca9ff5bfa5..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetArtifact.php +++ /dev/null @@ -1,187 +0,0 @@ -google.cloud.deploy.v1.TargetArtifact - */ -class TargetArtifact extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. File path of the resolved Skaffold configuration relative to - * the URI. - * - * Generated from protobuf field string skaffold_config_path = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $skaffold_config_path = ''; - /** - * Output only. File path of the rendered manifest relative to the URI. - * - * Generated from protobuf field string manifest_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $manifest_path = ''; - /** - * Output only. Map from the phase ID to the phase artifacts for the `Target`. - * - * Generated from protobuf field map phase_artifacts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $phase_artifacts; - protected $uri; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $artifact_uri - * Output only. URI of a directory containing the artifacts. This contains - * deployment configuration used by Skaffold during a rollout, and all - * paths are relative to this location. - * @type string $skaffold_config_path - * Output only. File path of the resolved Skaffold configuration relative to - * the URI. - * @type string $manifest_path - * Output only. File path of the rendered manifest relative to the URI. - * @type array|\Google\Protobuf\Internal\MapField $phase_artifacts - * Output only. Map from the phase ID to the phase artifacts for the `Target`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Output only. URI of a directory containing the artifacts. This contains - * deployment configuration used by Skaffold during a rollout, and all - * paths are relative to this location. - * - * Generated from protobuf field string artifact_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getArtifactUri() - { - return $this->readOneof(4); - } - - public function hasArtifactUri() - { - return $this->hasOneof(4); - } - - /** - * Output only. URI of a directory containing the artifacts. This contains - * deployment configuration used by Skaffold during a rollout, and all - * paths are relative to this location. - * - * Generated from protobuf field string artifact_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setArtifactUri($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Output only. File path of the resolved Skaffold configuration relative to - * the URI. - * - * Generated from protobuf field string skaffold_config_path = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getSkaffoldConfigPath() - { - return $this->skaffold_config_path; - } - - /** - * Output only. File path of the resolved Skaffold configuration relative to - * the URI. - * - * Generated from protobuf field string skaffold_config_path = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setSkaffoldConfigPath($var) - { - GPBUtil::checkString($var, True); - $this->skaffold_config_path = $var; - - return $this; - } - - /** - * Output only. File path of the rendered manifest relative to the URI. - * - * Generated from protobuf field string manifest_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getManifestPath() - { - return $this->manifest_path; - } - - /** - * Output only. File path of the rendered manifest relative to the URI. - * - * Generated from protobuf field string manifest_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setManifestPath($var) - { - GPBUtil::checkString($var, True); - $this->manifest_path = $var; - - return $this; - } - - /** - * Output only. Map from the phase ID to the phase artifacts for the `Target`. - * - * Generated from protobuf field map phase_artifacts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getPhaseArtifacts() - { - return $this->phase_artifacts; - } - - /** - * Output only. Map from the phase ID to the phase artifacts for the `Target`. - * - * Generated from protobuf field map phase_artifacts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setPhaseArtifacts($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\TargetArtifact\PhaseArtifact::class); - $this->phase_artifacts = $arr; - - return $this; - } - - /** - * @return string - */ - public function getUri() - { - return $this->whichOneof("uri"); - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetArtifact/PhaseArtifact.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetArtifact/PhaseArtifact.php deleted file mode 100644 index 27736c6008e0..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetArtifact/PhaseArtifact.php +++ /dev/null @@ -1,146 +0,0 @@ -google.cloud.deploy.v1.TargetArtifact.PhaseArtifact - */ -class PhaseArtifact extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. File path of the resolved Skaffold configuration relative to - * the URI. - * - * Generated from protobuf field string skaffold_config_path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $skaffold_config_path = ''; - /** - * Output only. File path of the rendered manifest relative to the URI. - * - * Generated from protobuf field string manifest_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $manifest_path = ''; - /** - * Output only. File path of the directory of rendered job manifests - * relative to the URI. This is only set if it is applicable. - * - * Generated from protobuf field string job_manifests_path = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $job_manifests_path = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $skaffold_config_path - * Output only. File path of the resolved Skaffold configuration relative to - * the URI. - * @type string $manifest_path - * Output only. File path of the rendered manifest relative to the URI. - * @type string $job_manifests_path - * Output only. File path of the directory of rendered job manifests - * relative to the URI. This is only set if it is applicable. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Output only. File path of the resolved Skaffold configuration relative to - * the URI. - * - * Generated from protobuf field string skaffold_config_path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getSkaffoldConfigPath() - { - return $this->skaffold_config_path; - } - - /** - * Output only. File path of the resolved Skaffold configuration relative to - * the URI. - * - * Generated from protobuf field string skaffold_config_path = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setSkaffoldConfigPath($var) - { - GPBUtil::checkString($var, True); - $this->skaffold_config_path = $var; - - return $this; - } - - /** - * Output only. File path of the rendered manifest relative to the URI. - * - * Generated from protobuf field string manifest_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getManifestPath() - { - return $this->manifest_path; - } - - /** - * Output only. File path of the rendered manifest relative to the URI. - * - * Generated from protobuf field string manifest_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setManifestPath($var) - { - GPBUtil::checkString($var, True); - $this->manifest_path = $var; - - return $this; - } - - /** - * Output only. File path of the directory of rendered job manifests - * relative to the URI. This is only set if it is applicable. - * - * Generated from protobuf field string job_manifests_path = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getJobManifestsPath() - { - return $this->job_manifests_path; - } - - /** - * Output only. File path of the directory of rendered job manifests - * relative to the URI. This is only set if it is applicable. - * - * Generated from protobuf field string job_manifests_path = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setJobManifestsPath($var) - { - GPBUtil::checkString($var, True); - $this->job_manifests_path = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PhaseArtifact::class, \Google\Cloud\Deploy\V1\TargetArtifact_PhaseArtifact::class); - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetAttribute.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetAttribute.php deleted file mode 100644 index 21ab6a0e6ce3..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetAttribute.php +++ /dev/null @@ -1,114 +0,0 @@ -google.cloud.deploy.v1.TargetAttribute - */ -class TargetAttribute extends \Google\Protobuf\Internal\Message -{ - /** - * ID of the `Target`. The value of this field could be one of the - * following: - * * The last segment of a target name - * * "*", all targets in a location - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * Target labels. - * - * Generated from protobuf field map labels = 2; - */ - private $labels; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * ID of the `Target`. The value of this field could be one of the - * following: - * * The last segment of a target name - * * "*", all targets in a location - * @type array|\Google\Protobuf\Internal\MapField $labels - * Target labels. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * ID of the `Target`. The value of this field could be one of the - * following: - * * The last segment of a target name - * * "*", all targets in a location - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * ID of the `Target`. The value of this field could be one of the - * following: - * * The last segment of a target name - * * "*", all targets in a location - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Target labels. - * - * Generated from protobuf field map labels = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Target labels. - * - * Generated from protobuf field map labels = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetNotificationEvent.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetNotificationEvent.php deleted file mode 100644 index 60f2044019f6..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetNotificationEvent.php +++ /dev/null @@ -1,137 +0,0 @@ -google.cloud.deploy.v1.TargetNotificationEvent - */ -class TargetNotificationEvent extends \Google\Protobuf\Internal\Message -{ - /** - * Debug message for when a notification fails to send. - * - * Generated from protobuf field string message = 1; - */ - protected $message = ''; - /** - * The name of the `Target`. - * - * Generated from protobuf field string target = 2; - */ - protected $target = ''; - /** - * Type of this notification, e.g. for a Pub/Sub failure. - * - * Generated from protobuf field .google.cloud.deploy.v1.Type type = 3; - */ - protected $type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $message - * Debug message for when a notification fails to send. - * @type string $target - * The name of the `Target`. - * @type int $type - * Type of this notification, e.g. for a Pub/Sub failure. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\TargetNotificationPayload::initOnce(); - parent::__construct($data); - } - - /** - * Debug message for when a notification fails to send. - * - * Generated from protobuf field string message = 1; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Debug message for when a notification fails to send. - * - * Generated from protobuf field string message = 1; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * The name of the `Target`. - * - * Generated from protobuf field string target = 2; - * @return string - */ - public function getTarget() - { - return $this->target; - } - - /** - * The name of the `Target`. - * - * Generated from protobuf field string target = 2; - * @param string $var - * @return $this - */ - public function setTarget($var) - { - GPBUtil::checkString($var, True); - $this->target = $var; - - return $this; - } - - /** - * Type of this notification, e.g. for a Pub/Sub failure. - * - * Generated from protobuf field .google.cloud.deploy.v1.Type type = 3; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Type of this notification, e.g. for a Pub/Sub failure. - * - * Generated from protobuf field .google.cloud.deploy.v1.Type type = 3; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\Type::class); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetsPresentCondition.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetsPresentCondition.php deleted file mode 100644 index 7dba90cabb9d..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetsPresentCondition.php +++ /dev/null @@ -1,150 +0,0 @@ -google.cloud.deploy.v1.TargetsPresentCondition - */ -class TargetsPresentCondition extends \Google\Protobuf\Internal\Message -{ - /** - * True if there aren't any missing Targets. - * - * Generated from protobuf field bool status = 1; - */ - protected $status = false; - /** - * The list of Target names that do not exist. For example, - * `projects/{project_id}/locations/{location_name}/targets/{target_name}`. - * - * Generated from protobuf field repeated string missing_targets = 2 [(.google.api.resource_reference) = { - */ - private $missing_targets; - /** - * Last time the condition was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4; - */ - protected $update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $status - * True if there aren't any missing Targets. - * @type array|\Google\Protobuf\Internal\RepeatedField $missing_targets - * The list of Target names that do not exist. For example, - * `projects/{project_id}/locations/{location_name}/targets/{target_name}`. - * @type \Google\Protobuf\Timestamp $update_time - * Last time the condition was updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * True if there aren't any missing Targets. - * - * Generated from protobuf field bool status = 1; - * @return bool - */ - public function getStatus() - { - return $this->status; - } - - /** - * True if there aren't any missing Targets. - * - * Generated from protobuf field bool status = 1; - * @param bool $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkBool($var); - $this->status = $var; - - return $this; - } - - /** - * The list of Target names that do not exist. For example, - * `projects/{project_id}/locations/{location_name}/targets/{target_name}`. - * - * Generated from protobuf field repeated string missing_targets = 2 [(.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMissingTargets() - { - return $this->missing_targets; - } - - /** - * The list of Target names that do not exist. For example, - * `projects/{project_id}/locations/{location_name}/targets/{target_name}`. - * - * Generated from protobuf field repeated string missing_targets = 2 [(.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMissingTargets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->missing_targets = $arr; - - return $this; - } - - /** - * Last time the condition was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Last time the condition was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetsTypeCondition.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetsTypeCondition.php deleted file mode 100644 index 34705dbf6df7..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TargetsTypeCondition.php +++ /dev/null @@ -1,110 +0,0 @@ -google.cloud.deploy.v1.TargetsTypeCondition - */ -class TargetsTypeCondition extends \Google\Protobuf\Internal\Message -{ - /** - * True if the targets are all a comparable type. For example this is true if - * all targets are GKE clusters. This is false if some targets are Cloud Run - * targets and others are GKE clusters. - * - * Generated from protobuf field bool status = 1; - */ - protected $status = false; - /** - * Human readable error message. - * - * Generated from protobuf field string error_details = 2; - */ - protected $error_details = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $status - * True if the targets are all a comparable type. For example this is true if - * all targets are GKE clusters. This is false if some targets are Cloud Run - * targets and others are GKE clusters. - * @type string $error_details - * Human readable error message. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * True if the targets are all a comparable type. For example this is true if - * all targets are GKE clusters. This is false if some targets are Cloud Run - * targets and others are GKE clusters. - * - * Generated from protobuf field bool status = 1; - * @return bool - */ - public function getStatus() - { - return $this->status; - } - - /** - * True if the targets are all a comparable type. For example this is true if - * all targets are GKE clusters. This is false if some targets are Cloud Run - * targets and others are GKE clusters. - * - * Generated from protobuf field bool status = 1; - * @param bool $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkBool($var); - $this->status = $var; - - return $this; - } - - /** - * Human readable error message. - * - * Generated from protobuf field string error_details = 2; - * @return string - */ - public function getErrorDetails() - { - return $this->error_details; - } - - /** - * Human readable error message. - * - * Generated from protobuf field string error_details = 2; - * @param string $var - * @return $this - */ - public function setErrorDetails($var) - { - GPBUtil::checkString($var, True); - $this->error_details = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TerminateJobRunRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TerminateJobRunRequest.php deleted file mode 100644 index ce381fdbb945..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TerminateJobRunRequest.php +++ /dev/null @@ -1,124 +0,0 @@ -google.cloud.deploy.v1.TerminateJobRunRequest - */ -class TerminateJobRunRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the `JobRun`. Format must be - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}/jobRuns/{jobRun}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. Deploy policies to override. Format is - * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. - * - * Generated from protobuf field repeated string override_deploy_policy = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $override_deploy_policy; - - /** - * @param string $name Required. Name of the `JobRun`. Format must be - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}/jobRuns/{jobRun}`. Please see - * {@see CloudDeployClient::jobRunName()} for help formatting this field. - * - * @return \Google\Cloud\Deploy\V1\TerminateJobRunRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the `JobRun`. Format must be - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}/jobRuns/{jobRun}`. - * @type array|\Google\Protobuf\Internal\RepeatedField $override_deploy_policy - * Optional. Deploy policies to override. Format is - * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the `JobRun`. Format must be - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}/jobRuns/{jobRun}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the `JobRun`. Format must be - * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}/jobRuns/{jobRun}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. Deploy policies to override. Format is - * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. - * - * Generated from protobuf field repeated string override_deploy_policy = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOverrideDeployPolicy() - { - return $this->override_deploy_policy; - } - - /** - * Optional. Deploy policies to override. Format is - * `projects/{project}/locations/{location}/deployPolicies/{deployPolicy}`. - * - * Generated from protobuf field repeated string override_deploy_policy = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOverrideDeployPolicy($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->override_deploy_policy = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TerminateJobRunResponse.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TerminateJobRunResponse.php deleted file mode 100644 index 7053edb3af40..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TerminateJobRunResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.deploy.v1.TerminateJobRunResponse - */ -class TerminateJobRunResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TimeWindows.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TimeWindows.php deleted file mode 100644 index ba6e360cdb88..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/TimeWindows.php +++ /dev/null @@ -1,141 +0,0 @@ -google.cloud.deploy.v1.TimeWindows - */ -class TimeWindows extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The time zone in IANA format [IANA Time Zone - * Database](https://www.iana.org/time-zones) (e.g. America/New_York). - * - * Generated from protobuf field string time_zone = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $time_zone = ''; - /** - * Optional. One-time windows within which actions are restricted. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $one_time_windows; - /** - * Optional. Recurring weekly windows within which actions are restricted. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $weekly_windows; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $time_zone - * Required. The time zone in IANA format [IANA Time Zone - * Database](https://www.iana.org/time-zones) (e.g. America/New_York). - * @type array<\Google\Cloud\Deploy\V1\OneTimeWindow>|\Google\Protobuf\Internal\RepeatedField $one_time_windows - * Optional. One-time windows within which actions are restricted. - * @type array<\Google\Cloud\Deploy\V1\WeeklyWindow>|\Google\Protobuf\Internal\RepeatedField $weekly_windows - * Optional. Recurring weekly windows within which actions are restricted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. The time zone in IANA format [IANA Time Zone - * Database](https://www.iana.org/time-zones) (e.g. America/New_York). - * - * Generated from protobuf field string time_zone = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTimeZone() - { - return $this->time_zone; - } - - /** - * Required. The time zone in IANA format [IANA Time Zone - * Database](https://www.iana.org/time-zones) (e.g. America/New_York). - * - * Generated from protobuf field string time_zone = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTimeZone($var) - { - GPBUtil::checkString($var, True); - $this->time_zone = $var; - - return $this; - } - - /** - * Optional. One-time windows within which actions are restricted. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOneTimeWindows() - { - return $this->one_time_windows; - } - - /** - * Optional. One-time windows within which actions are restricted. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.OneTimeWindow one_time_windows = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\Deploy\V1\OneTimeWindow>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOneTimeWindows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\OneTimeWindow::class); - $this->one_time_windows = $arr; - - return $this; - } - - /** - * Optional. Recurring weekly windows within which actions are restricted. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getWeeklyWindows() - { - return $this->weekly_windows; - } - - /** - * Optional. Recurring weekly windows within which actions are restricted. - * - * Generated from protobuf field repeated .google.cloud.deploy.v1.WeeklyWindow weekly_windows = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\Deploy\V1\WeeklyWindow>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setWeeklyWindows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Deploy\V1\WeeklyWindow::class); - $this->weekly_windows = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Type.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Type.php deleted file mode 100644 index 613d3aa26e49..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/Type.php +++ /dev/null @@ -1,103 +0,0 @@ -google.cloud.deploy.v1.Type - */ -class Type -{ - /** - * Type is unspecified. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * A Pub/Sub notification failed to be sent. - * - * Generated from protobuf enum TYPE_PUBSUB_NOTIFICATION_FAILURE = 1; - */ - const TYPE_PUBSUB_NOTIFICATION_FAILURE = 1; - /** - * Resource state changed. - * - * Generated from protobuf enum TYPE_RESOURCE_STATE_CHANGE = 3; - */ - const TYPE_RESOURCE_STATE_CHANGE = 3; - /** - * A process aborted. - * - * Generated from protobuf enum TYPE_PROCESS_ABORTED = 4; - */ - const TYPE_PROCESS_ABORTED = 4; - /** - * Restriction check failed. - * - * Generated from protobuf enum TYPE_RESTRICTION_VIOLATED = 5; - */ - const TYPE_RESTRICTION_VIOLATED = 5; - /** - * Resource deleted. - * - * Generated from protobuf enum TYPE_RESOURCE_DELETED = 6; - */ - const TYPE_RESOURCE_DELETED = 6; - /** - * Rollout updated. - * - * Generated from protobuf enum TYPE_ROLLOUT_UPDATE = 7; - */ - const TYPE_ROLLOUT_UPDATE = 7; - /** - * Deploy Policy evaluation. - * - * Generated from protobuf enum TYPE_DEPLOY_POLICY_EVALUATION = 8; - */ - const TYPE_DEPLOY_POLICY_EVALUATION = 8; - /** - * Deprecated: This field is never used. Use release_render log type instead. - * - * Generated from protobuf enum TYPE_RENDER_STATUES_CHANGE = 2 [deprecated = true]; - */ - const TYPE_RENDER_STATUES_CHANGE = 2; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::TYPE_PUBSUB_NOTIFICATION_FAILURE => 'TYPE_PUBSUB_NOTIFICATION_FAILURE', - self::TYPE_RESOURCE_STATE_CHANGE => 'TYPE_RESOURCE_STATE_CHANGE', - self::TYPE_PROCESS_ABORTED => 'TYPE_PROCESS_ABORTED', - self::TYPE_RESTRICTION_VIOLATED => 'TYPE_RESTRICTION_VIOLATED', - self::TYPE_RESOURCE_DELETED => 'TYPE_RESOURCE_DELETED', - self::TYPE_ROLLOUT_UPDATE => 'TYPE_ROLLOUT_UPDATE', - self::TYPE_DEPLOY_POLICY_EVALUATION => 'TYPE_DEPLOY_POLICY_EVALUATION', - self::TYPE_RENDER_STATUES_CHANGE => 'TYPE_RENDER_STATUES_CHANGE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateAutomationRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateAutomationRequest.php deleted file mode 100644 index d9b4b0efdb4a..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateAutomationRequest.php +++ /dev/null @@ -1,306 +0,0 @@ -google.cloud.deploy.v1.UpdateAutomationRequest - */ -class UpdateAutomationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Field mask is used to specify the fields to be overwritten by the - * update in the `Automation` resource. The fields specified in the - * update_mask are relative to the resource, not the full request. A field - * will be overwritten if it's in the mask. If the user doesn't provide a mask - * then all fields are overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Required. The `Automation` to update. - * - * Generated from protobuf field .google.cloud.deploy.v1.Automation automation = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $automation = null; - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. If set to true, updating a `Automation` that does not exist will - * result in the creation of a new `Automation`. - * - * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $allow_missing = false; - /** - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param \Google\Cloud\Deploy\V1\Automation $automation Required. The `Automation` to update. - * @param \Google\Protobuf\FieldMask $updateMask Required. Field mask is used to specify the fields to be overwritten by the - * update in the `Automation` resource. The fields specified in the - * update_mask are relative to the resource, not the full request. A field - * will be overwritten if it's in the mask. If the user doesn't provide a mask - * then all fields are overwritten. - * - * @return \Google\Cloud\Deploy\V1\UpdateAutomationRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Deploy\V1\Automation $automation, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setAutomation($automation) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Field mask is used to specify the fields to be overwritten by the - * update in the `Automation` resource. The fields specified in the - * update_mask are relative to the resource, not the full request. A field - * will be overwritten if it's in the mask. If the user doesn't provide a mask - * then all fields are overwritten. - * @type \Google\Cloud\Deploy\V1\Automation $automation - * Required. The `Automation` to update. - * @type string $request_id - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type bool $allow_missing - * Optional. If set to true, updating a `Automation` that does not exist will - * result in the creation of a new `Automation`. - * @type bool $validate_only - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. Field mask is used to specify the fields to be overwritten by the - * update in the `Automation` resource. The fields specified in the - * update_mask are relative to the resource, not the full request. A field - * will be overwritten if it's in the mask. If the user doesn't provide a mask - * then all fields are overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. Field mask is used to specify the fields to be overwritten by the - * update in the `Automation` resource. The fields specified in the - * update_mask are relative to the resource, not the full request. A field - * will be overwritten if it's in the mask. If the user doesn't provide a mask - * then all fields are overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Required. The `Automation` to update. - * - * Generated from protobuf field .google.cloud.deploy.v1.Automation automation = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Deploy\V1\Automation|null - */ - public function getAutomation() - { - return $this->automation; - } - - public function hasAutomation() - { - return isset($this->automation); - } - - public function clearAutomation() - { - unset($this->automation); - } - - /** - * Required. The `Automation` to update. - * - * Generated from protobuf field .google.cloud.deploy.v1.Automation automation = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Deploy\V1\Automation $var - * @return $this - */ - public function setAutomation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Automation::class); - $this->automation = $var; - - return $this; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. If set to true, updating a `Automation` that does not exist will - * result in the creation of a new `Automation`. - * - * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * Optional. If set to true, updating a `Automation` that does not exist will - * result in the creation of a new `Automation`. - * - * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - - /** - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateCustomTargetTypeRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateCustomTargetTypeRequest.php deleted file mode 100644 index d4a90a7076a5..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateCustomTargetTypeRequest.php +++ /dev/null @@ -1,306 +0,0 @@ -google.cloud.deploy.v1.UpdateCustomTargetTypeRequest - */ -class UpdateCustomTargetTypeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Field mask is used to specify the fields to be overwritten by the - * update in the `CustomTargetType` resource. The fields specified in the - * update_mask are relative to the resource, not the full request. A field - * will be overwritten if it's in the mask. If the user doesn't provide a mask - * then all fields are overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Required. The `CustomTargetType` to update. - * - * Generated from protobuf field .google.cloud.deploy.v1.CustomTargetType custom_target_type = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $custom_target_type = null; - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. If set to true, updating a `CustomTargetType` that does not exist - * will result in the creation of a new `CustomTargetType`. - * - * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $allow_missing = false; - /** - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param \Google\Cloud\Deploy\V1\CustomTargetType $customTargetType Required. The `CustomTargetType` to update. - * @param \Google\Protobuf\FieldMask $updateMask Required. Field mask is used to specify the fields to be overwritten by the - * update in the `CustomTargetType` resource. The fields specified in the - * update_mask are relative to the resource, not the full request. A field - * will be overwritten if it's in the mask. If the user doesn't provide a mask - * then all fields are overwritten. - * - * @return \Google\Cloud\Deploy\V1\UpdateCustomTargetTypeRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Deploy\V1\CustomTargetType $customTargetType, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setCustomTargetType($customTargetType) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Field mask is used to specify the fields to be overwritten by the - * update in the `CustomTargetType` resource. The fields specified in the - * update_mask are relative to the resource, not the full request. A field - * will be overwritten if it's in the mask. If the user doesn't provide a mask - * then all fields are overwritten. - * @type \Google\Cloud\Deploy\V1\CustomTargetType $custom_target_type - * Required. The `CustomTargetType` to update. - * @type string $request_id - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type bool $allow_missing - * Optional. If set to true, updating a `CustomTargetType` that does not exist - * will result in the creation of a new `CustomTargetType`. - * @type bool $validate_only - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. Field mask is used to specify the fields to be overwritten by the - * update in the `CustomTargetType` resource. The fields specified in the - * update_mask are relative to the resource, not the full request. A field - * will be overwritten if it's in the mask. If the user doesn't provide a mask - * then all fields are overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. Field mask is used to specify the fields to be overwritten by the - * update in the `CustomTargetType` resource. The fields specified in the - * update_mask are relative to the resource, not the full request. A field - * will be overwritten if it's in the mask. If the user doesn't provide a mask - * then all fields are overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Required. The `CustomTargetType` to update. - * - * Generated from protobuf field .google.cloud.deploy.v1.CustomTargetType custom_target_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Deploy\V1\CustomTargetType|null - */ - public function getCustomTargetType() - { - return $this->custom_target_type; - } - - public function hasCustomTargetType() - { - return isset($this->custom_target_type); - } - - public function clearCustomTargetType() - { - unset($this->custom_target_type); - } - - /** - * Required. The `CustomTargetType` to update. - * - * Generated from protobuf field .google.cloud.deploy.v1.CustomTargetType custom_target_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Deploy\V1\CustomTargetType $var - * @return $this - */ - public function setCustomTargetType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\CustomTargetType::class); - $this->custom_target_type = $var; - - return $this; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. If set to true, updating a `CustomTargetType` that does not exist - * will result in the creation of a new `CustomTargetType`. - * - * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * Optional. If set to true, updating a `CustomTargetType` that does not exist - * will result in the creation of a new `CustomTargetType`. - * - * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - - /** - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateDeliveryPipelineRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateDeliveryPipelineRequest.php deleted file mode 100644 index 9cf63f2d69a4..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateDeliveryPipelineRequest.php +++ /dev/null @@ -1,306 +0,0 @@ -google.cloud.deploy.v1.UpdateDeliveryPipelineRequest - */ -class UpdateDeliveryPipelineRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Field mask is used to specify the fields to be overwritten by the - * update in the `DeliveryPipeline` resource. The fields specified in the - * update_mask are relative to the resource, not the full request. A field - * will be overwritten if it's in the mask. If the user doesn't provide a mask - * then all fields are overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Required. The `DeliveryPipeline` to update. - * - * Generated from protobuf field .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $delivery_pipeline = null; - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. If set to true, updating a `DeliveryPipeline` that does not exist - * will result in the creation of a new `DeliveryPipeline`. - * - * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $allow_missing = false; - /** - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param \Google\Cloud\Deploy\V1\DeliveryPipeline $deliveryPipeline Required. The `DeliveryPipeline` to update. - * @param \Google\Protobuf\FieldMask $updateMask Required. Field mask is used to specify the fields to be overwritten by the - * update in the `DeliveryPipeline` resource. The fields specified in the - * update_mask are relative to the resource, not the full request. A field - * will be overwritten if it's in the mask. If the user doesn't provide a mask - * then all fields are overwritten. - * - * @return \Google\Cloud\Deploy\V1\UpdateDeliveryPipelineRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Deploy\V1\DeliveryPipeline $deliveryPipeline, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setDeliveryPipeline($deliveryPipeline) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Field mask is used to specify the fields to be overwritten by the - * update in the `DeliveryPipeline` resource. The fields specified in the - * update_mask are relative to the resource, not the full request. A field - * will be overwritten if it's in the mask. If the user doesn't provide a mask - * then all fields are overwritten. - * @type \Google\Cloud\Deploy\V1\DeliveryPipeline $delivery_pipeline - * Required. The `DeliveryPipeline` to update. - * @type string $request_id - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type bool $allow_missing - * Optional. If set to true, updating a `DeliveryPipeline` that does not exist - * will result in the creation of a new `DeliveryPipeline`. - * @type bool $validate_only - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. Field mask is used to specify the fields to be overwritten by the - * update in the `DeliveryPipeline` resource. The fields specified in the - * update_mask are relative to the resource, not the full request. A field - * will be overwritten if it's in the mask. If the user doesn't provide a mask - * then all fields are overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. Field mask is used to specify the fields to be overwritten by the - * update in the `DeliveryPipeline` resource. The fields specified in the - * update_mask are relative to the resource, not the full request. A field - * will be overwritten if it's in the mask. If the user doesn't provide a mask - * then all fields are overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Required. The `DeliveryPipeline` to update. - * - * Generated from protobuf field .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Deploy\V1\DeliveryPipeline|null - */ - public function getDeliveryPipeline() - { - return $this->delivery_pipeline; - } - - public function hasDeliveryPipeline() - { - return isset($this->delivery_pipeline); - } - - public function clearDeliveryPipeline() - { - unset($this->delivery_pipeline); - } - - /** - * Required. The `DeliveryPipeline` to update. - * - * Generated from protobuf field .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Deploy\V1\DeliveryPipeline $var - * @return $this - */ - public function setDeliveryPipeline($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\DeliveryPipeline::class); - $this->delivery_pipeline = $var; - - return $this; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. If set to true, updating a `DeliveryPipeline` that does not exist - * will result in the creation of a new `DeliveryPipeline`. - * - * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * Optional. If set to true, updating a `DeliveryPipeline` that does not exist - * will result in the creation of a new `DeliveryPipeline`. - * - * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - - /** - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateDeployPolicyRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateDeployPolicyRequest.php deleted file mode 100644 index 7dc920059100..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateDeployPolicyRequest.php +++ /dev/null @@ -1,306 +0,0 @@ -google.cloud.deploy.v1.UpdateDeployPolicyRequest - */ -class UpdateDeployPolicyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Field mask is used to specify the fields to be overwritten by the - * update in the `DeployPolicy` resource. The fields specified in the - * update_mask are relative to the resource, not the full request. A field - * will be overwritten if it's in the mask. If the user doesn't provide a mask - * then all fields are overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Required. The `DeployPolicy` to update. - * - * Generated from protobuf field .google.cloud.deploy.v1.DeployPolicy deploy_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $deploy_policy = null; - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. If set to true, updating a `DeployPolicy` that does not exist - * will result in the creation of a new `DeployPolicy`. - * - * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $allow_missing = false; - /** - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param \Google\Cloud\Deploy\V1\DeployPolicy $deployPolicy Required. The `DeployPolicy` to update. - * @param \Google\Protobuf\FieldMask $updateMask Required. Field mask is used to specify the fields to be overwritten by the - * update in the `DeployPolicy` resource. The fields specified in the - * update_mask are relative to the resource, not the full request. A field - * will be overwritten if it's in the mask. If the user doesn't provide a mask - * then all fields are overwritten. - * - * @return \Google\Cloud\Deploy\V1\UpdateDeployPolicyRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Deploy\V1\DeployPolicy $deployPolicy, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setDeployPolicy($deployPolicy) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Field mask is used to specify the fields to be overwritten by the - * update in the `DeployPolicy` resource. The fields specified in the - * update_mask are relative to the resource, not the full request. A field - * will be overwritten if it's in the mask. If the user doesn't provide a mask - * then all fields are overwritten. - * @type \Google\Cloud\Deploy\V1\DeployPolicy $deploy_policy - * Required. The `DeployPolicy` to update. - * @type string $request_id - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type bool $allow_missing - * Optional. If set to true, updating a `DeployPolicy` that does not exist - * will result in the creation of a new `DeployPolicy`. - * @type bool $validate_only - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. Field mask is used to specify the fields to be overwritten by the - * update in the `DeployPolicy` resource. The fields specified in the - * update_mask are relative to the resource, not the full request. A field - * will be overwritten if it's in the mask. If the user doesn't provide a mask - * then all fields are overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. Field mask is used to specify the fields to be overwritten by the - * update in the `DeployPolicy` resource. The fields specified in the - * update_mask are relative to the resource, not the full request. A field - * will be overwritten if it's in the mask. If the user doesn't provide a mask - * then all fields are overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Required. The `DeployPolicy` to update. - * - * Generated from protobuf field .google.cloud.deploy.v1.DeployPolicy deploy_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Deploy\V1\DeployPolicy|null - */ - public function getDeployPolicy() - { - return $this->deploy_policy; - } - - public function hasDeployPolicy() - { - return isset($this->deploy_policy); - } - - public function clearDeployPolicy() - { - unset($this->deploy_policy); - } - - /** - * Required. The `DeployPolicy` to update. - * - * Generated from protobuf field .google.cloud.deploy.v1.DeployPolicy deploy_policy = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Deploy\V1\DeployPolicy $var - * @return $this - */ - public function setDeployPolicy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\DeployPolicy::class); - $this->deploy_policy = $var; - - return $this; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. If set to true, updating a `DeployPolicy` that does not exist - * will result in the creation of a new `DeployPolicy`. - * - * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * Optional. If set to true, updating a `DeployPolicy` that does not exist - * will result in the creation of a new `DeployPolicy`. - * - * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - - /** - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateTargetRequest.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateTargetRequest.php deleted file mode 100644 index e1f546265c21..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/UpdateTargetRequest.php +++ /dev/null @@ -1,306 +0,0 @@ -google.cloud.deploy.v1.UpdateTargetRequest - */ -class UpdateTargetRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Field mask is used to specify the fields to be overwritten by the - * update in the `Target` resource. The fields specified in the update_mask - * are relative to the resource, not the full request. A field will be - * overwritten if it's in the mask. If the user doesn't provide a mask then - * all fields are overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Required. The `Target` to update. - * - * Generated from protobuf field .google.cloud.deploy.v1.Target target = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $target = null; - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. If set to true, updating a `Target` that does not exist will - * result in the creation of a new `Target`. - * - * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $allow_missing = false; - /** - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param \Google\Cloud\Deploy\V1\Target $target Required. The `Target` to update. - * @param \Google\Protobuf\FieldMask $updateMask Required. Field mask is used to specify the fields to be overwritten by the - * update in the `Target` resource. The fields specified in the update_mask - * are relative to the resource, not the full request. A field will be - * overwritten if it's in the mask. If the user doesn't provide a mask then - * all fields are overwritten. - * - * @return \Google\Cloud\Deploy\V1\UpdateTargetRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Deploy\V1\Target $target, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setTarget($target) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Field mask is used to specify the fields to be overwritten by the - * update in the `Target` resource. The fields specified in the update_mask - * are relative to the resource, not the full request. A field will be - * overwritten if it's in the mask. If the user doesn't provide a mask then - * all fields are overwritten. - * @type \Google\Cloud\Deploy\V1\Target $target - * Required. The `Target` to update. - * @type string $request_id - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * @type bool $allow_missing - * Optional. If set to true, updating a `Target` that does not exist will - * result in the creation of a new `Target`. - * @type bool $validate_only - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Required. Field mask is used to specify the fields to be overwritten by the - * update in the `Target` resource. The fields specified in the update_mask - * are relative to the resource, not the full request. A field will be - * overwritten if it's in the mask. If the user doesn't provide a mask then - * all fields are overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. Field mask is used to specify the fields to be overwritten by the - * update in the `Target` resource. The fields specified in the update_mask - * are relative to the resource, not the full request. A field will be - * overwritten if it's in the mask. If the user doesn't provide a mask then - * all fields are overwritten. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Required. The `Target` to update. - * - * Generated from protobuf field .google.cloud.deploy.v1.Target target = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Deploy\V1\Target|null - */ - public function getTarget() - { - return $this->target; - } - - public function hasTarget() - { - return isset($this->target); - } - - public function clearTarget() - { - unset($this->target); - } - - /** - * Required. The `Target` to update. - * - * Generated from protobuf field .google.cloud.deploy.v1.Target target = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Deploy\V1\Target $var - * @return $this - */ - public function setTarget($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Deploy\V1\Target::class); - $this->target = $var; - - return $this; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID to identify requests. Specify a unique request ID - * so that if you must retry your request, the server knows to ignore the - * request if it has already been completed. The server guarantees that for - * at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and the - * request times out. If you make the request again with the same request ID, - * the server can check if original operation with the same request ID was - * received, and if so, will ignore the second request. This prevents clients - * from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. If set to true, updating a `Target` that does not exist will - * result in the creation of a new `Target`. - * - * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * Optional. If set to true, updating a `Target` that does not exist will - * result in the creation of a new `Target`. - * - * Generated from protobuf field bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - - /** - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set to true, the request is validated and the user is provided - * with an expected result, but no actual change is made. - * - * Generated from protobuf field bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/VerifyJob.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/VerifyJob.php deleted file mode 100644 index acbf1fc38199..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/VerifyJob.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.deploy.v1.VerifyJob - */ -class VerifyJob extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/VerifyJobRun.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/VerifyJobRun.php deleted file mode 100644 index 71c2c05ff0a9..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/VerifyJobRun.php +++ /dev/null @@ -1,223 +0,0 @@ -google.cloud.deploy.v1.VerifyJobRun - */ -class VerifyJobRun extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The resource name of the Cloud Build `Build` object that is - * used to verify. Format is - * `projects/{project}/locations/{location}/builds/{build}`. - * - * Generated from protobuf field string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $build = ''; - /** - * Output only. URI of a directory containing the verify artifacts. This - * contains the Skaffold event log. - * - * Generated from protobuf field string artifact_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $artifact_uri = ''; - /** - * Output only. File path of the Skaffold event log relative to the artifact - * URI. - * - * Generated from protobuf field string event_log_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $event_log_path = ''; - /** - * Output only. The reason the verify failed. This will always be unspecified - * while the verify is in progress or if it succeeded. - * - * Generated from protobuf field .google.cloud.deploy.v1.VerifyJobRun.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $failure_cause = 0; - /** - * Output only. Additional information about the verify failure, if available. - * - * Generated from protobuf field string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $failure_message = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $build - * Output only. The resource name of the Cloud Build `Build` object that is - * used to verify. Format is - * `projects/{project}/locations/{location}/builds/{build}`. - * @type string $artifact_uri - * Output only. URI of a directory containing the verify artifacts. This - * contains the Skaffold event log. - * @type string $event_log_path - * Output only. File path of the Skaffold event log relative to the artifact - * URI. - * @type int $failure_cause - * Output only. The reason the verify failed. This will always be unspecified - * while the verify is in progress or if it succeeded. - * @type string $failure_message - * Output only. Additional information about the verify failure, if available. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The resource name of the Cloud Build `Build` object that is - * used to verify. Format is - * `projects/{project}/locations/{location}/builds/{build}`. - * - * Generated from protobuf field string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getBuild() - { - return $this->build; - } - - /** - * Output only. The resource name of the Cloud Build `Build` object that is - * used to verify. Format is - * `projects/{project}/locations/{location}/builds/{build}`. - * - * Generated from protobuf field string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setBuild($var) - { - GPBUtil::checkString($var, True); - $this->build = $var; - - return $this; - } - - /** - * Output only. URI of a directory containing the verify artifacts. This - * contains the Skaffold event log. - * - * Generated from protobuf field string artifact_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getArtifactUri() - { - return $this->artifact_uri; - } - - /** - * Output only. URI of a directory containing the verify artifacts. This - * contains the Skaffold event log. - * - * Generated from protobuf field string artifact_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setArtifactUri($var) - { - GPBUtil::checkString($var, True); - $this->artifact_uri = $var; - - return $this; - } - - /** - * Output only. File path of the Skaffold event log relative to the artifact - * URI. - * - * Generated from protobuf field string event_log_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getEventLogPath() - { - return $this->event_log_path; - } - - /** - * Output only. File path of the Skaffold event log relative to the artifact - * URI. - * - * Generated from protobuf field string event_log_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setEventLogPath($var) - { - GPBUtil::checkString($var, True); - $this->event_log_path = $var; - - return $this; - } - - /** - * Output only. The reason the verify failed. This will always be unspecified - * while the verify is in progress or if it succeeded. - * - * Generated from protobuf field .google.cloud.deploy.v1.VerifyJobRun.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getFailureCause() - { - return $this->failure_cause; - } - - /** - * Output only. The reason the verify failed. This will always be unspecified - * while the verify is in progress or if it succeeded. - * - * Generated from protobuf field .google.cloud.deploy.v1.VerifyJobRun.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setFailureCause($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Deploy\V1\VerifyJobRun\FailureCause::class); - $this->failure_cause = $var; - - return $this; - } - - /** - * Output only. Additional information about the verify failure, if available. - * - * Generated from protobuf field string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getFailureMessage() - { - return $this->failure_message; - } - - /** - * Output only. Additional information about the verify failure, if available. - * - * Generated from protobuf field string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setFailureMessage($var) - { - GPBUtil::checkString($var, True); - $this->failure_message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/VerifyJobRun/FailureCause.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/VerifyJobRun/FailureCause.php deleted file mode 100644 index 84d3ba2506c5..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/VerifyJobRun/FailureCause.php +++ /dev/null @@ -1,89 +0,0 @@ -google.cloud.deploy.v1.VerifyJobRun.FailureCause - */ -class FailureCause -{ - /** - * No reason for failure is specified. - * - * Generated from protobuf enum FAILURE_CAUSE_UNSPECIFIED = 0; - */ - const FAILURE_CAUSE_UNSPECIFIED = 0; - /** - * Cloud Build is not available, either because it is not enabled or because - * Cloud Deploy has insufficient permissions. See [required - * permission](https://cloud.google.com/deploy/docs/cloud-deploy-service-account#required_permissions). - * - * Generated from protobuf enum CLOUD_BUILD_UNAVAILABLE = 1; - */ - const CLOUD_BUILD_UNAVAILABLE = 1; - /** - * The verify operation did not complete successfully; check Cloud Build - * logs. - * - * Generated from protobuf enum EXECUTION_FAILED = 2; - */ - const EXECUTION_FAILED = 2; - /** - * The verify job run did not complete within the alloted time. - * - * Generated from protobuf enum DEADLINE_EXCEEDED = 3; - */ - const DEADLINE_EXCEEDED = 3; - /** - * No Skaffold verify configuration was found. - * - * Generated from protobuf enum VERIFICATION_CONFIG_NOT_FOUND = 4; - */ - const VERIFICATION_CONFIG_NOT_FOUND = 4; - /** - * Cloud Build failed to fulfill Cloud Deploy's request. See failure_message - * for additional details. - * - * Generated from protobuf enum CLOUD_BUILD_REQUEST_FAILED = 5; - */ - const CLOUD_BUILD_REQUEST_FAILED = 5; - - private static $valueToName = [ - self::FAILURE_CAUSE_UNSPECIFIED => 'FAILURE_CAUSE_UNSPECIFIED', - self::CLOUD_BUILD_UNAVAILABLE => 'CLOUD_BUILD_UNAVAILABLE', - self::EXECUTION_FAILED => 'EXECUTION_FAILED', - self::DEADLINE_EXCEEDED => 'DEADLINE_EXCEEDED', - self::VERIFICATION_CONFIG_NOT_FOUND => 'VERIFICATION_CONFIG_NOT_FOUND', - self::CLOUD_BUILD_REQUEST_FAILED => 'CLOUD_BUILD_REQUEST_FAILED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(FailureCause::class, \Google\Cloud\Deploy\V1\VerifyJobRun_FailureCause::class); - diff --git a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/WeeklyWindow.php b/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/WeeklyWindow.php deleted file mode 100644 index a0212780dd12..000000000000 --- a/owl-bot-staging/Deploy/v1/proto/src/Google/Cloud/Deploy/V1/WeeklyWindow.php +++ /dev/null @@ -1,176 +0,0 @@ -google.cloud.deploy.v1.WeeklyWindow - */ -class WeeklyWindow extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Days of week. If left empty, all days of the week will be - * included. - * - * Generated from protobuf field repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $days_of_week; - /** - * Optional. Start time (inclusive). Use 00:00 for the beginning of the day. - * If you specify start_time you must also specify end_time. If left empty, - * this will block for the entire day for the days specified in days_of_week. - * - * Generated from protobuf field .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $start_time = null; - /** - * Optional. End time (exclusive). Use 24:00 to indicate midnight. If you - * specify end_time you must also specify start_time. If left empty, this will - * block for the entire day for the days specified in days_of_week. - * - * Generated from protobuf field .google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $end_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $days_of_week - * Optional. Days of week. If left empty, all days of the week will be - * included. - * @type \Google\Type\TimeOfDay $start_time - * Optional. Start time (inclusive). Use 00:00 for the beginning of the day. - * If you specify start_time you must also specify end_time. If left empty, - * this will block for the entire day for the days specified in days_of_week. - * @type \Google\Type\TimeOfDay $end_time - * Optional. End time (exclusive). Use 24:00 to indicate midnight. If you - * specify end_time you must also specify start_time. If left empty, this will - * block for the entire day for the days specified in days_of_week. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Deploy\V1\CloudDeploy::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Days of week. If left empty, all days of the week will be - * included. - * - * Generated from protobuf field repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDaysOfWeek() - { - return $this->days_of_week; - } - - /** - * Optional. Days of week. If left empty, all days of the week will be - * included. - * - * Generated from protobuf field repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDaysOfWeek($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Type\DayOfWeek::class); - $this->days_of_week = $arr; - - return $this; - } - - /** - * Optional. Start time (inclusive). Use 00:00 for the beginning of the day. - * If you specify start_time you must also specify end_time. If left empty, - * this will block for the entire day for the days specified in days_of_week. - * - * Generated from protobuf field .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Type\TimeOfDay|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * Optional. Start time (inclusive). Use 00:00 for the beginning of the day. - * If you specify start_time you must also specify end_time. If left empty, - * this will block for the entire day for the days specified in days_of_week. - * - * Generated from protobuf field .google.type.TimeOfDay start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Type\TimeOfDay $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Type\TimeOfDay::class); - $this->start_time = $var; - - return $this; - } - - /** - * Optional. End time (exclusive). Use 24:00 to indicate midnight. If you - * specify end_time you must also specify start_time. If left empty, this will - * block for the entire day for the days specified in days_of_week. - * - * Generated from protobuf field .google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Type\TimeOfDay|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Optional. End time (exclusive). Use 24:00 to indicate midnight. If you - * specify end_time you must also specify start_time. If left empty, this will - * block for the entire day for the days specified in days_of_week. - * - * Generated from protobuf field .google.type.TimeOfDay end_time = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Type\TimeOfDay $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Type\TimeOfDay::class); - $this->end_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/abandon_release.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/abandon_release.php deleted file mode 100644 index 93c54b196326..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/abandon_release.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var AbandonReleaseResponse $response */ - $response = $cloudDeployClient->abandonRelease($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = CloudDeployClient::releaseName( - '[PROJECT]', - '[LOCATION]', - '[DELIVERY_PIPELINE]', - '[RELEASE]' - ); - - abandon_release_sample($formattedName); -} -// [END clouddeploy_v1_generated_CloudDeploy_AbandonRelease_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/advance_rollout.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/advance_rollout.php deleted file mode 100644 index 988ef64288ef..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/advance_rollout.php +++ /dev/null @@ -1,81 +0,0 @@ -setName($formattedName) - ->setPhaseId($phaseId); - - // Call the API and handle any network failures. - try { - /** @var AdvanceRolloutResponse $response */ - $response = $cloudDeployClient->advanceRollout($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = CloudDeployClient::rolloutName( - '[PROJECT]', - '[LOCATION]', - '[DELIVERY_PIPELINE]', - '[RELEASE]', - '[ROLLOUT]' - ); - $phaseId = '[PHASE_ID]'; - - advance_rollout_sample($formattedName, $phaseId); -} -// [END clouddeploy_v1_generated_CloudDeploy_AdvanceRollout_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/approve_rollout.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/approve_rollout.php deleted file mode 100644 index 6fe35745c1d0..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/approve_rollout.php +++ /dev/null @@ -1,81 +0,0 @@ -setName($formattedName) - ->setApproved($approved); - - // Call the API and handle any network failures. - try { - /** @var ApproveRolloutResponse $response */ - $response = $cloudDeployClient->approveRollout($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = CloudDeployClient::rolloutName( - '[PROJECT]', - '[LOCATION]', - '[DELIVERY_PIPELINE]', - '[RELEASE]', - '[ROLLOUT]' - ); - $approved = false; - - approve_rollout_sample($formattedName, $approved); -} -// [END clouddeploy_v1_generated_CloudDeploy_ApproveRollout_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/cancel_automation_run.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/cancel_automation_run.php deleted file mode 100644 index ce0d6a678314..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/cancel_automation_run.php +++ /dev/null @@ -1,80 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var CancelAutomationRunResponse $response */ - $response = $cloudDeployClient->cancelAutomationRun($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = CloudDeployClient::automationRunName( - '[PROJECT]', - '[LOCATION]', - '[DELIVERY_PIPELINE]', - '[AUTOMATION_RUN]' - ); - - cancel_automation_run_sample($formattedName); -} -// [END clouddeploy_v1_generated_CloudDeploy_CancelAutomationRun_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/cancel_rollout.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/cancel_rollout.php deleted file mode 100644 index 27aeaad0cd0b..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/cancel_rollout.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var CancelRolloutResponse $response */ - $response = $cloudDeployClient->cancelRollout($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = CloudDeployClient::rolloutName( - '[PROJECT]', - '[LOCATION]', - '[DELIVERY_PIPELINE]', - '[RELEASE]', - '[ROLLOUT]' - ); - - cancel_rollout_sample($formattedName); -} -// [END clouddeploy_v1_generated_CloudDeploy_CancelRollout_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_automation.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_automation.php deleted file mode 100644 index f3bf038aa1e6..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_automation.php +++ /dev/null @@ -1,107 +0,0 @@ -setServiceAccount($automationServiceAccount) - ->setSelector($automationSelector) - ->setRules($automationRules); - $request = (new CreateAutomationRequest()) - ->setParent($formattedParent) - ->setAutomationId($automationId) - ->setAutomation($automation); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $cloudDeployClient->createAutomation($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Automation $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = CloudDeployClient::deliveryPipelineName( - '[PROJECT]', - '[LOCATION]', - '[DELIVERY_PIPELINE]' - ); - $automationId = '[AUTOMATION_ID]'; - $automationServiceAccount = '[SERVICE_ACCOUNT]'; - - create_automation_sample($formattedParent, $automationId, $automationServiceAccount); -} -// [END clouddeploy_v1_generated_CloudDeploy_CreateAutomation_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_custom_target_type.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_custom_target_type.php deleted file mode 100644 index 4548f5f86742..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_custom_target_type.php +++ /dev/null @@ -1,91 +0,0 @@ -setParent($formattedParent) - ->setCustomTargetTypeId($customTargetTypeId) - ->setCustomTargetType($customTargetType); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $cloudDeployClient->createCustomTargetType($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var CustomTargetType $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = CloudDeployClient::locationName('[PROJECT]', '[LOCATION]'); - $customTargetTypeId = '[CUSTOM_TARGET_TYPE_ID]'; - - create_custom_target_type_sample($formattedParent, $customTargetTypeId); -} -// [END clouddeploy_v1_generated_CloudDeploy_CreateCustomTargetType_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_delivery_pipeline.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_delivery_pipeline.php deleted file mode 100644 index 8481b0b96bb2..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_delivery_pipeline.php +++ /dev/null @@ -1,91 +0,0 @@ -setParent($formattedParent) - ->setDeliveryPipelineId($deliveryPipelineId) - ->setDeliveryPipeline($deliveryPipeline); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $cloudDeployClient->createDeliveryPipeline($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var DeliveryPipeline $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = CloudDeployClient::locationName('[PROJECT]', '[LOCATION]'); - $deliveryPipelineId = '[DELIVERY_PIPELINE_ID]'; - - create_delivery_pipeline_sample($formattedParent, $deliveryPipelineId); -} -// [END clouddeploy_v1_generated_CloudDeploy_CreateDeliveryPipeline_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_deploy_policy.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_deploy_policy.php deleted file mode 100644 index ec13a6f0147e..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_deploy_policy.php +++ /dev/null @@ -1,95 +0,0 @@ -setSelectors($deployPolicySelectors) - ->setRules($deployPolicyRules); - $request = (new CreateDeployPolicyRequest()) - ->setParent($formattedParent) - ->setDeployPolicyId($deployPolicyId) - ->setDeployPolicy($deployPolicy); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $cloudDeployClient->createDeployPolicy($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var DeployPolicy $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = CloudDeployClient::locationName('[PROJECT]', '[LOCATION]'); - $deployPolicyId = '[DEPLOY_POLICY_ID]'; - - create_deploy_policy_sample($formattedParent, $deployPolicyId); -} -// [END clouddeploy_v1_generated_CloudDeploy_CreateDeployPolicy_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_release.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_release.php deleted file mode 100644 index 07ed111f9de7..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_release.php +++ /dev/null @@ -1,94 +0,0 @@ -setParent($formattedParent) - ->setReleaseId($releaseId) - ->setRelease($release); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $cloudDeployClient->createRelease($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Release $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = CloudDeployClient::deliveryPipelineName( - '[PROJECT]', - '[LOCATION]', - '[DELIVERY_PIPELINE]' - ); - $releaseId = '[RELEASE_ID]'; - - create_release_sample($formattedParent, $releaseId); -} -// [END clouddeploy_v1_generated_CloudDeploy_CreateRelease_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_rollout.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_rollout.php deleted file mode 100644 index 83e2e6ee3323..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_rollout.php +++ /dev/null @@ -1,101 +0,0 @@ -setTargetId($rolloutTargetId); - $request = (new CreateRolloutRequest()) - ->setParent($formattedParent) - ->setRolloutId($rolloutId) - ->setRollout($rollout); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $cloudDeployClient->createRollout($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Rollout $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = CloudDeployClient::releaseName( - '[PROJECT]', - '[LOCATION]', - '[DELIVERY_PIPELINE]', - '[RELEASE]' - ); - $rolloutId = '[ROLLOUT_ID]'; - $rolloutTargetId = '[TARGET_ID]'; - - create_rollout_sample($formattedParent, $rolloutId, $rolloutTargetId); -} -// [END clouddeploy_v1_generated_CloudDeploy_CreateRollout_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_target.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_target.php deleted file mode 100644 index 18cda85ef614..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/create_target.php +++ /dev/null @@ -1,90 +0,0 @@ -setParent($formattedParent) - ->setTargetId($targetId) - ->setTarget($target); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $cloudDeployClient->createTarget($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Target $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = CloudDeployClient::locationName('[PROJECT]', '[LOCATION]'); - $targetId = '[TARGET_ID]'; - - create_target_sample($formattedParent, $targetId); -} -// [END clouddeploy_v1_generated_CloudDeploy_CreateTarget_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_automation.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_automation.php deleted file mode 100644 index d897983ac94b..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_automation.php +++ /dev/null @@ -1,86 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $cloudDeployClient->deleteAutomation($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = CloudDeployClient::automationName( - '[PROJECT]', - '[LOCATION]', - '[DELIVERY_PIPELINE]', - '[AUTOMATION]' - ); - - delete_automation_sample($formattedName); -} -// [END clouddeploy_v1_generated_CloudDeploy_DeleteAutomation_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_custom_target_type.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_custom_target_type.php deleted file mode 100644 index f4e1e3664dc3..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_custom_target_type.php +++ /dev/null @@ -1,85 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $cloudDeployClient->deleteCustomTargetType($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = CloudDeployClient::customTargetTypeName( - '[PROJECT]', - '[LOCATION]', - '[CUSTOM_TARGET_TYPE]' - ); - - delete_custom_target_type_sample($formattedName); -} -// [END clouddeploy_v1_generated_CloudDeploy_DeleteCustomTargetType_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_delivery_pipeline.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_delivery_pipeline.php deleted file mode 100644 index b178be2bfba4..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_delivery_pipeline.php +++ /dev/null @@ -1,85 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $cloudDeployClient->deleteDeliveryPipeline($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = CloudDeployClient::deliveryPipelineName( - '[PROJECT]', - '[LOCATION]', - '[DELIVERY_PIPELINE]' - ); - - delete_delivery_pipeline_sample($formattedName); -} -// [END clouddeploy_v1_generated_CloudDeploy_DeleteDeliveryPipeline_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_deploy_policy.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_deploy_policy.php deleted file mode 100644 index 2861396ee90a..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_deploy_policy.php +++ /dev/null @@ -1,81 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $cloudDeployClient->deleteDeployPolicy($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = CloudDeployClient::deployPolicyName('[PROJECT]', '[LOCATION]', '[DEPLOY_POLICY]'); - - delete_deploy_policy_sample($formattedName); -} -// [END clouddeploy_v1_generated_CloudDeploy_DeleteDeployPolicy_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_target.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_target.php deleted file mode 100644 index 842dc6a88b94..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/delete_target.php +++ /dev/null @@ -1,81 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $cloudDeployClient->deleteTarget($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = CloudDeployClient::targetName('[PROJECT]', '[LOCATION]', '[TARGET]'); - - delete_target_sample($formattedName); -} -// [END clouddeploy_v1_generated_CloudDeploy_DeleteTarget_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_automation.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_automation.php deleted file mode 100644 index d1ac732d1174..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_automation.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Automation $response */ - $response = $cloudDeployClient->getAutomation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = CloudDeployClient::automationName( - '[PROJECT]', - '[LOCATION]', - '[DELIVERY_PIPELINE]', - '[AUTOMATION]' - ); - - get_automation_sample($formattedName); -} -// [END clouddeploy_v1_generated_CloudDeploy_GetAutomation_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_automation_run.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_automation_run.php deleted file mode 100644 index c7bd635659c9..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_automation_run.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var AutomationRun $response */ - $response = $cloudDeployClient->getAutomationRun($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = CloudDeployClient::automationRunName( - '[PROJECT]', - '[LOCATION]', - '[DELIVERY_PIPELINE]', - '[AUTOMATION_RUN]' - ); - - get_automation_run_sample($formattedName); -} -// [END clouddeploy_v1_generated_CloudDeploy_GetAutomationRun_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_config.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_config.php deleted file mode 100644 index fb2b635fc12a..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_config.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Config $response */ - $response = $cloudDeployClient->getConfig($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = CloudDeployClient::configName('[PROJECT]', '[LOCATION]'); - - get_config_sample($formattedName); -} -// [END clouddeploy_v1_generated_CloudDeploy_GetConfig_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_custom_target_type.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_custom_target_type.php deleted file mode 100644 index b17cea5b245b..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_custom_target_type.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var CustomTargetType $response */ - $response = $cloudDeployClient->getCustomTargetType($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = CloudDeployClient::customTargetTypeName( - '[PROJECT]', - '[LOCATION]', - '[CUSTOM_TARGET_TYPE]' - ); - - get_custom_target_type_sample($formattedName); -} -// [END clouddeploy_v1_generated_CloudDeploy_GetCustomTargetType_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_delivery_pipeline.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_delivery_pipeline.php deleted file mode 100644 index 9b7b527629fe..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_delivery_pipeline.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DeliveryPipeline $response */ - $response = $cloudDeployClient->getDeliveryPipeline($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = CloudDeployClient::deliveryPipelineName( - '[PROJECT]', - '[LOCATION]', - '[DELIVERY_PIPELINE]' - ); - - get_delivery_pipeline_sample($formattedName); -} -// [END clouddeploy_v1_generated_CloudDeploy_GetDeliveryPipeline_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_deploy_policy.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_deploy_policy.php deleted file mode 100644 index 49c50889b20b..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_deploy_policy.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DeployPolicy $response */ - $response = $cloudDeployClient->getDeployPolicy($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = CloudDeployClient::deployPolicyName('[PROJECT]', '[LOCATION]', '[DEPLOY_POLICY]'); - - get_deploy_policy_sample($formattedName); -} -// [END clouddeploy_v1_generated_CloudDeploy_GetDeployPolicy_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_iam_policy.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_iam_policy.php deleted file mode 100644 index 712cc11c9bff..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_iam_policy.php +++ /dev/null @@ -1,72 +0,0 @@ -setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $cloudDeployClient->getIamPolicy($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $resource = '[RESOURCE]'; - - get_iam_policy_sample($resource); -} -// [END clouddeploy_v1_generated_CloudDeploy_GetIamPolicy_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_job_run.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_job_run.php deleted file mode 100644 index 6a44b1f36fb9..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_job_run.php +++ /dev/null @@ -1,79 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var JobRun $response */ - $response = $cloudDeployClient->getJobRun($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = CloudDeployClient::jobRunName( - '[PROJECT]', - '[LOCATION]', - '[DELIVERY_PIPELINE]', - '[RELEASE]', - '[ROLLOUT]', - '[JOB_RUN]' - ); - - get_job_run_sample($formattedName); -} -// [END clouddeploy_v1_generated_CloudDeploy_GetJobRun_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_location.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_location.php deleted file mode 100644 index 87b0ca5d002b..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_location.php +++ /dev/null @@ -1,57 +0,0 @@ -getLocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END clouddeploy_v1_generated_CloudDeploy_GetLocation_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_release.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_release.php deleted file mode 100644 index a704cb10281f..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_release.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Release $response */ - $response = $cloudDeployClient->getRelease($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = CloudDeployClient::releaseName( - '[PROJECT]', - '[LOCATION]', - '[DELIVERY_PIPELINE]', - '[RELEASE]' - ); - - get_release_sample($formattedName); -} -// [END clouddeploy_v1_generated_CloudDeploy_GetRelease_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_rollout.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_rollout.php deleted file mode 100644 index 6b3047a364fa..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_rollout.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Rollout $response */ - $response = $cloudDeployClient->getRollout($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = CloudDeployClient::rolloutName( - '[PROJECT]', - '[LOCATION]', - '[DELIVERY_PIPELINE]', - '[RELEASE]', - '[ROLLOUT]' - ); - - get_rollout_sample($formattedName); -} -// [END clouddeploy_v1_generated_CloudDeploy_GetRollout_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_target.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_target.php deleted file mode 100644 index 9b5a0a1bc287..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/get_target.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Target $response */ - $response = $cloudDeployClient->getTarget($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = CloudDeployClient::targetName('[PROJECT]', '[LOCATION]', '[TARGET]'); - - get_target_sample($formattedName); -} -// [END clouddeploy_v1_generated_CloudDeploy_GetTarget_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/ignore_job.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/ignore_job.php deleted file mode 100644 index c18b0622c202..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/ignore_job.php +++ /dev/null @@ -1,84 +0,0 @@ -setRollout($formattedRollout) - ->setPhaseId($phaseId) - ->setJobId($jobId); - - // Call the API and handle any network failures. - try { - /** @var IgnoreJobResponse $response */ - $response = $cloudDeployClient->ignoreJob($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedRollout = CloudDeployClient::rolloutName( - '[PROJECT]', - '[LOCATION]', - '[DELIVERY_PIPELINE]', - '[RELEASE]', - '[ROLLOUT]' - ); - $phaseId = '[PHASE_ID]'; - $jobId = '[JOB_ID]'; - - ignore_job_sample($formattedRollout, $phaseId, $jobId); -} -// [END clouddeploy_v1_generated_CloudDeploy_IgnoreJob_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_automation_runs.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_automation_runs.php deleted file mode 100644 index 30813b68d6f1..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_automation_runs.php +++ /dev/null @@ -1,82 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $cloudDeployClient->listAutomationRuns($request); - - /** @var AutomationRun $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = CloudDeployClient::deliveryPipelineName( - '[PROJECT]', - '[LOCATION]', - '[DELIVERY_PIPELINE]' - ); - - list_automation_runs_sample($formattedParent); -} -// [END clouddeploy_v1_generated_CloudDeploy_ListAutomationRuns_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_automations.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_automations.php deleted file mode 100644 index 8c3b995f7858..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_automations.php +++ /dev/null @@ -1,82 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $cloudDeployClient->listAutomations($request); - - /** @var Automation $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = CloudDeployClient::deliveryPipelineName( - '[PROJECT]', - '[LOCATION]', - '[DELIVERY_PIPELINE]' - ); - - list_automations_sample($formattedParent); -} -// [END clouddeploy_v1_generated_CloudDeploy_ListAutomations_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_custom_target_types.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_custom_target_types.php deleted file mode 100644 index 267cc5678e2c..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_custom_target_types.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $cloudDeployClient->listCustomTargetTypes($request); - - /** @var CustomTargetType $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = CloudDeployClient::locationName('[PROJECT]', '[LOCATION]'); - - list_custom_target_types_sample($formattedParent); -} -// [END clouddeploy_v1_generated_CloudDeploy_ListCustomTargetTypes_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_delivery_pipelines.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_delivery_pipelines.php deleted file mode 100644 index 2e784d091d01..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_delivery_pipelines.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $cloudDeployClient->listDeliveryPipelines($request); - - /** @var DeliveryPipeline $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = CloudDeployClient::locationName('[PROJECT]', '[LOCATION]'); - - list_delivery_pipelines_sample($formattedParent); -} -// [END clouddeploy_v1_generated_CloudDeploy_ListDeliveryPipelines_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_deploy_policies.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_deploy_policies.php deleted file mode 100644 index d5c74724bedb..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_deploy_policies.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $cloudDeployClient->listDeployPolicies($request); - - /** @var DeployPolicy $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = CloudDeployClient::locationName('[PROJECT]', '[LOCATION]'); - - list_deploy_policies_sample($formattedParent); -} -// [END clouddeploy_v1_generated_CloudDeploy_ListDeployPolicies_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_job_runs.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_job_runs.php deleted file mode 100644 index 6ca3a42ad7d5..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_job_runs.php +++ /dev/null @@ -1,82 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $cloudDeployClient->listJobRuns($request); - - /** @var JobRun $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = CloudDeployClient::rolloutName( - '[PROJECT]', - '[LOCATION]', - '[DELIVERY_PIPELINE]', - '[RELEASE]', - '[ROLLOUT]' - ); - - list_job_runs_sample($formattedParent); -} -// [END clouddeploy_v1_generated_CloudDeploy_ListJobRuns_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_locations.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_locations.php deleted file mode 100644 index a5a9b23761df..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_locations.php +++ /dev/null @@ -1,62 +0,0 @@ -listLocations($request); - - /** @var Location $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END clouddeploy_v1_generated_CloudDeploy_ListLocations_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_releases.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_releases.php deleted file mode 100644 index da6f6702354c..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_releases.php +++ /dev/null @@ -1,81 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $cloudDeployClient->listReleases($request); - - /** @var Release $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = CloudDeployClient::deliveryPipelineName( - '[PROJECT]', - '[LOCATION]', - '[DELIVERY_PIPELINE]' - ); - - list_releases_sample($formattedParent); -} -// [END clouddeploy_v1_generated_CloudDeploy_ListReleases_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_rollouts.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_rollouts.php deleted file mode 100644 index 5e4d6f18bfdb..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_rollouts.php +++ /dev/null @@ -1,81 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $cloudDeployClient->listRollouts($request); - - /** @var Rollout $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = CloudDeployClient::releaseName( - '[PROJECT]', - '[LOCATION]', - '[DELIVERY_PIPELINE]', - '[RELEASE]' - ); - - list_rollouts_sample($formattedParent); -} -// [END clouddeploy_v1_generated_CloudDeploy_ListRollouts_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_targets.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_targets.php deleted file mode 100644 index 2e250fbaceba..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/list_targets.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $cloudDeployClient->listTargets($request); - - /** @var Target $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = CloudDeployClient::locationName('[PROJECT]', '[LOCATION]'); - - list_targets_sample($formattedParent); -} -// [END clouddeploy_v1_generated_CloudDeploy_ListTargets_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/retry_job.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/retry_job.php deleted file mode 100644 index 55e00cd6a97a..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/retry_job.php +++ /dev/null @@ -1,84 +0,0 @@ -setRollout($formattedRollout) - ->setPhaseId($phaseId) - ->setJobId($jobId); - - // Call the API and handle any network failures. - try { - /** @var RetryJobResponse $response */ - $response = $cloudDeployClient->retryJob($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedRollout = CloudDeployClient::rolloutName( - '[PROJECT]', - '[LOCATION]', - '[DELIVERY_PIPELINE]', - '[RELEASE]', - '[ROLLOUT]' - ); - $phaseId = '[PHASE_ID]'; - $jobId = '[JOB_ID]'; - - retry_job_sample($formattedRollout, $phaseId, $jobId); -} -// [END clouddeploy_v1_generated_CloudDeploy_RetryJob_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/rollback_target.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/rollback_target.php deleted file mode 100644 index 91c117b16296..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/rollback_target.php +++ /dev/null @@ -1,83 +0,0 @@ -setName($formattedName) - ->setTargetId($targetId) - ->setRolloutId($rolloutId); - - // Call the API and handle any network failures. - try { - /** @var RollbackTargetResponse $response */ - $response = $cloudDeployClient->rollbackTarget($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = CloudDeployClient::deliveryPipelineName( - '[PROJECT]', - '[LOCATION]', - '[DELIVERY_PIPELINE]' - ); - $targetId = '[TARGET_ID]'; - $rolloutId = '[ROLLOUT_ID]'; - - rollback_target_sample($formattedName, $targetId, $rolloutId); -} -// [END clouddeploy_v1_generated_CloudDeploy_RollbackTarget_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/set_iam_policy.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/set_iam_policy.php deleted file mode 100644 index 1ba2a095ce60..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/set_iam_policy.php +++ /dev/null @@ -1,77 +0,0 @@ -setResource($resource) - ->setPolicy($policy); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $cloudDeployClient->setIamPolicy($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $resource = '[RESOURCE]'; - - set_iam_policy_sample($resource); -} -// [END clouddeploy_v1_generated_CloudDeploy_SetIamPolicy_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/terminate_job_run.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/terminate_job_run.php deleted file mode 100644 index 2c0906752d36..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/terminate_job_run.php +++ /dev/null @@ -1,79 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var TerminateJobRunResponse $response */ - $response = $cloudDeployClient->terminateJobRun($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = CloudDeployClient::jobRunName( - '[PROJECT]', - '[LOCATION]', - '[DELIVERY_PIPELINE]', - '[RELEASE]', - '[ROLLOUT]', - '[JOB_RUN]' - ); - - terminate_job_run_sample($formattedName); -} -// [END clouddeploy_v1_generated_CloudDeploy_TerminateJobRun_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/test_iam_permissions.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/test_iam_permissions.php deleted file mode 100644 index 20741898d747..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/test_iam_permissions.php +++ /dev/null @@ -1,84 +0,0 @@ -setResource($resource) - ->setPermissions($permissions); - - // Call the API and handle any network failures. - try { - /** @var TestIamPermissionsResponse $response */ - $response = $cloudDeployClient->testIamPermissions($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $resource = '[RESOURCE]'; - $permissionsElement = '[PERMISSIONS]'; - - test_iam_permissions_sample($resource, $permissionsElement); -} -// [END clouddeploy_v1_generated_CloudDeploy_TestIamPermissions_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_automation.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_automation.php deleted file mode 100644 index 3072581159da..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_automation.php +++ /dev/null @@ -1,94 +0,0 @@ -setServiceAccount($automationServiceAccount) - ->setSelector($automationSelector) - ->setRules($automationRules); - $request = (new UpdateAutomationRequest()) - ->setUpdateMask($updateMask) - ->setAutomation($automation); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $cloudDeployClient->updateAutomation($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Automation $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $automationServiceAccount = '[SERVICE_ACCOUNT]'; - - update_automation_sample($automationServiceAccount); -} -// [END clouddeploy_v1_generated_CloudDeploy_UpdateAutomation_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_custom_target_type.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_custom_target_type.php deleted file mode 100644 index fd0272b9ccae..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_custom_target_type.php +++ /dev/null @@ -1,74 +0,0 @@ -setUpdateMask($updateMask) - ->setCustomTargetType($customTargetType); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $cloudDeployClient->updateCustomTargetType($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var CustomTargetType $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END clouddeploy_v1_generated_CloudDeploy_UpdateCustomTargetType_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_delivery_pipeline.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_delivery_pipeline.php deleted file mode 100644 index 456f5d8f996c..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_delivery_pipeline.php +++ /dev/null @@ -1,74 +0,0 @@ -setUpdateMask($updateMask) - ->setDeliveryPipeline($deliveryPipeline); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $cloudDeployClient->updateDeliveryPipeline($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var DeliveryPipeline $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END clouddeploy_v1_generated_CloudDeploy_UpdateDeliveryPipeline_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_deploy_policy.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_deploy_policy.php deleted file mode 100644 index 3e0df79c8024..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_deploy_policy.php +++ /dev/null @@ -1,80 +0,0 @@ -setSelectors($deployPolicySelectors) - ->setRules($deployPolicyRules); - $request = (new UpdateDeployPolicyRequest()) - ->setUpdateMask($updateMask) - ->setDeployPolicy($deployPolicy); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $cloudDeployClient->updateDeployPolicy($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var DeployPolicy $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END clouddeploy_v1_generated_CloudDeploy_UpdateDeployPolicy_sync] diff --git a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_target.php b/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_target.php deleted file mode 100644 index fd188ed74fe0..000000000000 --- a/owl-bot-staging/Deploy/v1/samples/V1/CloudDeployClient/update_target.php +++ /dev/null @@ -1,74 +0,0 @@ -setUpdateMask($updateMask) - ->setTarget($target); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $cloudDeployClient->updateTarget($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Target $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END clouddeploy_v1_generated_CloudDeploy_UpdateTarget_sync] diff --git a/owl-bot-staging/Deploy/v1/src/V1/Client/CloudDeployClient.php b/owl-bot-staging/Deploy/v1/src/V1/Client/CloudDeployClient.php deleted file mode 100644 index f7837ed8b57a..000000000000 --- a/owl-bot-staging/Deploy/v1/src/V1/Client/CloudDeployClient.php +++ /dev/null @@ -1,2056 +0,0 @@ - abandonReleaseAsync(AbandonReleaseRequest $request, array $optionalArgs = []) - * @method PromiseInterface advanceRolloutAsync(AdvanceRolloutRequest $request, array $optionalArgs = []) - * @method PromiseInterface approveRolloutAsync(ApproveRolloutRequest $request, array $optionalArgs = []) - * @method PromiseInterface cancelAutomationRunAsync(CancelAutomationRunRequest $request, array $optionalArgs = []) - * @method PromiseInterface cancelRolloutAsync(CancelRolloutRequest $request, array $optionalArgs = []) - * @method PromiseInterface createAutomationAsync(CreateAutomationRequest $request, array $optionalArgs = []) - * @method PromiseInterface createCustomTargetTypeAsync(CreateCustomTargetTypeRequest $request, array $optionalArgs = []) - * @method PromiseInterface createDeliveryPipelineAsync(CreateDeliveryPipelineRequest $request, array $optionalArgs = []) - * @method PromiseInterface createDeployPolicyAsync(CreateDeployPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface createReleaseAsync(CreateReleaseRequest $request, array $optionalArgs = []) - * @method PromiseInterface createRolloutAsync(CreateRolloutRequest $request, array $optionalArgs = []) - * @method PromiseInterface createTargetAsync(CreateTargetRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteAutomationAsync(DeleteAutomationRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteCustomTargetTypeAsync(DeleteCustomTargetTypeRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDeliveryPipelineAsync(DeleteDeliveryPipelineRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDeployPolicyAsync(DeleteDeployPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteTargetAsync(DeleteTargetRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAutomationAsync(GetAutomationRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAutomationRunAsync(GetAutomationRunRequest $request, array $optionalArgs = []) - * @method PromiseInterface getConfigAsync(GetConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface getCustomTargetTypeAsync(GetCustomTargetTypeRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDeliveryPipelineAsync(GetDeliveryPipelineRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDeployPolicyAsync(GetDeployPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface getJobRunAsync(GetJobRunRequest $request, array $optionalArgs = []) - * @method PromiseInterface getReleaseAsync(GetReleaseRequest $request, array $optionalArgs = []) - * @method PromiseInterface getRolloutAsync(GetRolloutRequest $request, array $optionalArgs = []) - * @method PromiseInterface getTargetAsync(GetTargetRequest $request, array $optionalArgs = []) - * @method PromiseInterface ignoreJobAsync(IgnoreJobRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAutomationRunsAsync(ListAutomationRunsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAutomationsAsync(ListAutomationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listCustomTargetTypesAsync(ListCustomTargetTypesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDeliveryPipelinesAsync(ListDeliveryPipelinesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDeployPoliciesAsync(ListDeployPoliciesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listJobRunsAsync(ListJobRunsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listReleasesAsync(ListReleasesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listRolloutsAsync(ListRolloutsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listTargetsAsync(ListTargetsRequest $request, array $optionalArgs = []) - * @method PromiseInterface retryJobAsync(RetryJobRequest $request, array $optionalArgs = []) - * @method PromiseInterface rollbackTargetAsync(RollbackTargetRequest $request, array $optionalArgs = []) - * @method PromiseInterface terminateJobRunAsync(TerminateJobRunRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateAutomationAsync(UpdateAutomationRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateCustomTargetTypeAsync(UpdateCustomTargetTypeRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDeliveryPipelineAsync(UpdateDeliveryPipelineRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDeployPolicyAsync(UpdateDeployPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateTargetAsync(UpdateTargetRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) - */ -final class CloudDeployClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.deploy.v1.CloudDeploy'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'clouddeploy.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'clouddeploy.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/cloud_deploy_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/cloud_deploy_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/cloud_deploy_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/cloud_deploy_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * Formats a string containing the fully-qualified path to represent a automation - * resource. - * - * @param string $project - * @param string $location - * @param string $deliveryPipeline - * @param string $automation - * - * @return string The formatted automation resource. - */ - public static function automationName(string $project, string $location, string $deliveryPipeline, string $automation): string - { - return self::getPathTemplate('automation')->render([ - 'project' => $project, - 'location' => $location, - 'delivery_pipeline' => $deliveryPipeline, - 'automation' => $automation, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * automation_run resource. - * - * @param string $project - * @param string $location - * @param string $deliveryPipeline - * @param string $automationRun - * - * @return string The formatted automation_run resource. - */ - public static function automationRunName(string $project, string $location, string $deliveryPipeline, string $automationRun): string - { - return self::getPathTemplate('automationRun')->render([ - 'project' => $project, - 'location' => $location, - 'delivery_pipeline' => $deliveryPipeline, - 'automation_run' => $automationRun, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a build - * resource. - * - * @param string $project - * @param string $location - * @param string $build - * - * @return string The formatted build resource. - */ - public static function buildName(string $project, string $location, string $build): string - { - return self::getPathTemplate('build')->render([ - 'project' => $project, - 'location' => $location, - 'build' => $build, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a cluster - * resource. - * - * @param string $project - * @param string $location - * @param string $cluster - * - * @return string The formatted cluster resource. - */ - public static function clusterName(string $project, string $location, string $cluster): string - { - return self::getPathTemplate('cluster')->render([ - 'project' => $project, - 'location' => $location, - 'cluster' => $cluster, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a config - * resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted config resource. - */ - public static function configName(string $project, string $location): string - { - return self::getPathTemplate('config')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * custom_target_type resource. - * - * @param string $project - * @param string $location - * @param string $customTargetType - * - * @return string The formatted custom_target_type resource. - */ - public static function customTargetTypeName(string $project, string $location, string $customTargetType): string - { - return self::getPathTemplate('customTargetType')->render([ - 'project' => $project, - 'location' => $location, - 'custom_target_type' => $customTargetType, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * delivery_pipeline resource. - * - * @param string $project - * @param string $location - * @param string $deliveryPipeline - * - * @return string The formatted delivery_pipeline resource. - */ - public static function deliveryPipelineName(string $project, string $location, string $deliveryPipeline): string - { - return self::getPathTemplate('deliveryPipeline')->render([ - 'project' => $project, - 'location' => $location, - 'delivery_pipeline' => $deliveryPipeline, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * deploy_policy resource. - * - * @param string $project - * @param string $location - * @param string $deployPolicy - * - * @return string The formatted deploy_policy resource. - */ - public static function deployPolicyName(string $project, string $location, string $deployPolicy): string - { - return self::getPathTemplate('deployPolicy')->render([ - 'project' => $project, - 'location' => $location, - 'deploy_policy' => $deployPolicy, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a job - * resource. - * - * @param string $project - * @param string $location - * @param string $job - * - * @return string The formatted job resource. - */ - public static function jobName(string $project, string $location, string $job): string - { - return self::getPathTemplate('job')->render([ - 'project' => $project, - 'location' => $location, - 'job' => $job, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a job_run - * resource. - * - * @param string $project - * @param string $location - * @param string $deliveryPipeline - * @param string $release - * @param string $rollout - * @param string $jobRun - * - * @return string The formatted job_run resource. - */ - public static function jobRunName(string $project, string $location, string $deliveryPipeline, string $release, string $rollout, string $jobRun): string - { - return self::getPathTemplate('jobRun')->render([ - 'project' => $project, - 'location' => $location, - 'delivery_pipeline' => $deliveryPipeline, - 'release' => $release, - 'rollout' => $rollout, - 'job_run' => $jobRun, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a location - * resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted location resource. - */ - public static function locationName(string $project, string $location): string - { - return self::getPathTemplate('location')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a membership - * resource. - * - * @param string $project - * @param string $location - * @param string $membership - * - * @return string The formatted membership resource. - */ - public static function membershipName(string $project, string $location, string $membership): string - { - return self::getPathTemplate('membership')->render([ - 'project' => $project, - 'location' => $location, - 'membership' => $membership, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a release - * resource. - * - * @param string $project - * @param string $location - * @param string $deliveryPipeline - * @param string $release - * - * @return string The formatted release resource. - */ - public static function releaseName(string $project, string $location, string $deliveryPipeline, string $release): string - { - return self::getPathTemplate('release')->render([ - 'project' => $project, - 'location' => $location, - 'delivery_pipeline' => $deliveryPipeline, - 'release' => $release, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a repository - * resource. - * - * @param string $project - * @param string $location - * @param string $connection - * @param string $repository - * - * @return string The formatted repository resource. - */ - public static function repositoryName(string $project, string $location, string $connection, string $repository): string - { - return self::getPathTemplate('repository')->render([ - 'project' => $project, - 'location' => $location, - 'connection' => $connection, - 'repository' => $repository, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a rollout - * resource. - * - * @param string $project - * @param string $location - * @param string $deliveryPipeline - * @param string $release - * @param string $rollout - * - * @return string The formatted rollout resource. - */ - public static function rolloutName(string $project, string $location, string $deliveryPipeline, string $release, string $rollout): string - { - return self::getPathTemplate('rollout')->render([ - 'project' => $project, - 'location' => $location, - 'delivery_pipeline' => $deliveryPipeline, - 'release' => $release, - 'rollout' => $rollout, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a service - * resource. - * - * @param string $project - * @param string $location - * @param string $service - * - * @return string The formatted service resource. - */ - public static function serviceName(string $project, string $location, string $service): string - { - return self::getPathTemplate('service')->render([ - 'project' => $project, - 'location' => $location, - 'service' => $service, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a target - * resource. - * - * @param string $project - * @param string $location - * @param string $target - * - * @return string The formatted target resource. - */ - public static function targetName(string $project, string $location, string $target): string - { - return self::getPathTemplate('target')->render([ - 'project' => $project, - 'location' => $location, - 'target' => $target, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a worker_pool - * resource. - * - * @param string $project - * @param string $location - * @param string $workerPool - * - * @return string The formatted worker_pool resource. - */ - public static function workerPoolName(string $project, string $location, string $workerPool): string - { - return self::getPathTemplate('workerPool')->render([ - 'project' => $project, - 'location' => $location, - 'worker_pool' => $workerPool, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - automation: projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automations/{automation} - * - automationRun: projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run} - * - build: projects/{project}/locations/{location}/builds/{build} - * - cluster: projects/{project}/locations/{location}/clusters/{cluster} - * - config: projects/{project}/locations/{location}/config - * - customTargetType: projects/{project}/locations/{location}/customTargetTypes/{custom_target_type} - * - deliveryPipeline: projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline} - * - deployPolicy: projects/{project}/locations/{location}/deployPolicies/{deploy_policy} - * - job: projects/{project}/locations/{location}/jobs/{job} - * - jobRun: projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/releases/{release}/rollouts/{rollout}/jobRuns/{job_run} - * - location: projects/{project}/locations/{location} - * - membership: projects/{project}/locations/{location}/memberships/{membership} - * - release: projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/releases/{release} - * - repository: projects/{project}/locations/{location}/connections/{connection}/repositories/{repository} - * - rollout: projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/releases/{release}/rollouts/{rollout} - * - service: projects/{project}/locations/{location}/services/{service} - * - target: projects/{project}/locations/{location}/targets/{target} - * - workerPool: projects/{project}/locations/{location}/workerPools/{worker_pool} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'clouddeploy.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Abandons a Release in the Delivery Pipeline. - * - * The async variant is {@see CloudDeployClient::abandonReleaseAsync()} . - * - * @example samples/V1/CloudDeployClient/abandon_release.php - * - * @param AbandonReleaseRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AbandonReleaseResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function abandonRelease(AbandonReleaseRequest $request, array $callOptions = []): AbandonReleaseResponse - { - return $this->startApiCall('AbandonRelease', $request, $callOptions)->wait(); - } - - /** - * Advances a Rollout in a given project and location. - * - * The async variant is {@see CloudDeployClient::advanceRolloutAsync()} . - * - * @example samples/V1/CloudDeployClient/advance_rollout.php - * - * @param AdvanceRolloutRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AdvanceRolloutResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function advanceRollout(AdvanceRolloutRequest $request, array $callOptions = []): AdvanceRolloutResponse - { - return $this->startApiCall('AdvanceRollout', $request, $callOptions)->wait(); - } - - /** - * Approves a Rollout. - * - * The async variant is {@see CloudDeployClient::approveRolloutAsync()} . - * - * @example samples/V1/CloudDeployClient/approve_rollout.php - * - * @param ApproveRolloutRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ApproveRolloutResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function approveRollout(ApproveRolloutRequest $request, array $callOptions = []): ApproveRolloutResponse - { - return $this->startApiCall('ApproveRollout', $request, $callOptions)->wait(); - } - - /** - * Cancels an AutomationRun. The `state` of the `AutomationRun` after - * cancelling is `CANCELLED`. `CancelAutomationRun` can be called on - * AutomationRun in the state `IN_PROGRESS` and `PENDING`; AutomationRun - * in a different state returns an `FAILED_PRECONDITION` error. - * - * The async variant is {@see CloudDeployClient::cancelAutomationRunAsync()} . - * - * @example samples/V1/CloudDeployClient/cancel_automation_run.php - * - * @param CancelAutomationRunRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CancelAutomationRunResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function cancelAutomationRun(CancelAutomationRunRequest $request, array $callOptions = []): CancelAutomationRunResponse - { - return $this->startApiCall('CancelAutomationRun', $request, $callOptions)->wait(); - } - - /** - * Cancels a Rollout in a given project and location. - * - * The async variant is {@see CloudDeployClient::cancelRolloutAsync()} . - * - * @example samples/V1/CloudDeployClient/cancel_rollout.php - * - * @param CancelRolloutRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CancelRolloutResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function cancelRollout(CancelRolloutRequest $request, array $callOptions = []): CancelRolloutResponse - { - return $this->startApiCall('CancelRollout', $request, $callOptions)->wait(); - } - - /** - * Creates a new Automation in a given project and location. - * - * The async variant is {@see CloudDeployClient::createAutomationAsync()} . - * - * @example samples/V1/CloudDeployClient/create_automation.php - * - * @param CreateAutomationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createAutomation(CreateAutomationRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateAutomation', $request, $callOptions)->wait(); - } - - /** - * Creates a new CustomTargetType in a given project and location. - * - * The async variant is {@see CloudDeployClient::createCustomTargetTypeAsync()} . - * - * @example samples/V1/CloudDeployClient/create_custom_target_type.php - * - * @param CreateCustomTargetTypeRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createCustomTargetType(CreateCustomTargetTypeRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateCustomTargetType', $request, $callOptions)->wait(); - } - - /** - * Creates a new DeliveryPipeline in a given project and location. - * - * The async variant is {@see CloudDeployClient::createDeliveryPipelineAsync()} . - * - * @example samples/V1/CloudDeployClient/create_delivery_pipeline.php - * - * @param CreateDeliveryPipelineRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createDeliveryPipeline(CreateDeliveryPipelineRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateDeliveryPipeline', $request, $callOptions)->wait(); - } - - /** - * Creates a new DeployPolicy in a given project and location. - * - * The async variant is {@see CloudDeployClient::createDeployPolicyAsync()} . - * - * @example samples/V1/CloudDeployClient/create_deploy_policy.php - * - * @param CreateDeployPolicyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createDeployPolicy(CreateDeployPolicyRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateDeployPolicy', $request, $callOptions)->wait(); - } - - /** - * Creates a new Release in a given project and location. - * - * The async variant is {@see CloudDeployClient::createReleaseAsync()} . - * - * @example samples/V1/CloudDeployClient/create_release.php - * - * @param CreateReleaseRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createRelease(CreateReleaseRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateRelease', $request, $callOptions)->wait(); - } - - /** - * Creates a new Rollout in a given project and location. - * - * The async variant is {@see CloudDeployClient::createRolloutAsync()} . - * - * @example samples/V1/CloudDeployClient/create_rollout.php - * - * @param CreateRolloutRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createRollout(CreateRolloutRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateRollout', $request, $callOptions)->wait(); - } - - /** - * Creates a new Target in a given project and location. - * - * The async variant is {@see CloudDeployClient::createTargetAsync()} . - * - * @example samples/V1/CloudDeployClient/create_target.php - * - * @param CreateTargetRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createTarget(CreateTargetRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateTarget', $request, $callOptions)->wait(); - } - - /** - * Deletes a single Automation resource. - * - * The async variant is {@see CloudDeployClient::deleteAutomationAsync()} . - * - * @example samples/V1/CloudDeployClient/delete_automation.php - * - * @param DeleteAutomationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteAutomation(DeleteAutomationRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteAutomation', $request, $callOptions)->wait(); - } - - /** - * Deletes a single CustomTargetType. - * - * The async variant is {@see CloudDeployClient::deleteCustomTargetTypeAsync()} . - * - * @example samples/V1/CloudDeployClient/delete_custom_target_type.php - * - * @param DeleteCustomTargetTypeRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteCustomTargetType(DeleteCustomTargetTypeRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteCustomTargetType', $request, $callOptions)->wait(); - } - - /** - * Deletes a single DeliveryPipeline. - * - * The async variant is {@see CloudDeployClient::deleteDeliveryPipelineAsync()} . - * - * @example samples/V1/CloudDeployClient/delete_delivery_pipeline.php - * - * @param DeleteDeliveryPipelineRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteDeliveryPipeline(DeleteDeliveryPipelineRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteDeliveryPipeline', $request, $callOptions)->wait(); - } - - /** - * Deletes a single DeployPolicy. - * - * The async variant is {@see CloudDeployClient::deleteDeployPolicyAsync()} . - * - * @example samples/V1/CloudDeployClient/delete_deploy_policy.php - * - * @param DeleteDeployPolicyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteDeployPolicy(DeleteDeployPolicyRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteDeployPolicy', $request, $callOptions)->wait(); - } - - /** - * Deletes a single Target. - * - * The async variant is {@see CloudDeployClient::deleteTargetAsync()} . - * - * @example samples/V1/CloudDeployClient/delete_target.php - * - * @param DeleteTargetRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteTarget(DeleteTargetRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteTarget', $request, $callOptions)->wait(); - } - - /** - * Gets details of a single Automation. - * - * The async variant is {@see CloudDeployClient::getAutomationAsync()} . - * - * @example samples/V1/CloudDeployClient/get_automation.php - * - * @param GetAutomationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Automation - * - * @throws ApiException Thrown if the API call fails. - */ - public function getAutomation(GetAutomationRequest $request, array $callOptions = []): Automation - { - return $this->startApiCall('GetAutomation', $request, $callOptions)->wait(); - } - - /** - * Gets details of a single AutomationRun. - * - * The async variant is {@see CloudDeployClient::getAutomationRunAsync()} . - * - * @example samples/V1/CloudDeployClient/get_automation_run.php - * - * @param GetAutomationRunRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AutomationRun - * - * @throws ApiException Thrown if the API call fails. - */ - public function getAutomationRun(GetAutomationRunRequest $request, array $callOptions = []): AutomationRun - { - return $this->startApiCall('GetAutomationRun', $request, $callOptions)->wait(); - } - - /** - * Gets the configuration for a location. - * - * The async variant is {@see CloudDeployClient::getConfigAsync()} . - * - * @example samples/V1/CloudDeployClient/get_config.php - * - * @param GetConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Config - * - * @throws ApiException Thrown if the API call fails. - */ - public function getConfig(GetConfigRequest $request, array $callOptions = []): Config - { - return $this->startApiCall('GetConfig', $request, $callOptions)->wait(); - } - - /** - * Gets details of a single CustomTargetType. - * - * The async variant is {@see CloudDeployClient::getCustomTargetTypeAsync()} . - * - * @example samples/V1/CloudDeployClient/get_custom_target_type.php - * - * @param GetCustomTargetTypeRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CustomTargetType - * - * @throws ApiException Thrown if the API call fails. - */ - public function getCustomTargetType(GetCustomTargetTypeRequest $request, array $callOptions = []): CustomTargetType - { - return $this->startApiCall('GetCustomTargetType', $request, $callOptions)->wait(); - } - - /** - * Gets details of a single DeliveryPipeline. - * - * The async variant is {@see CloudDeployClient::getDeliveryPipelineAsync()} . - * - * @example samples/V1/CloudDeployClient/get_delivery_pipeline.php - * - * @param GetDeliveryPipelineRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DeliveryPipeline - * - * @throws ApiException Thrown if the API call fails. - */ - public function getDeliveryPipeline(GetDeliveryPipelineRequest $request, array $callOptions = []): DeliveryPipeline - { - return $this->startApiCall('GetDeliveryPipeline', $request, $callOptions)->wait(); - } - - /** - * Gets details of a single DeployPolicy. - * - * The async variant is {@see CloudDeployClient::getDeployPolicyAsync()} . - * - * @example samples/V1/CloudDeployClient/get_deploy_policy.php - * - * @param GetDeployPolicyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DeployPolicy - * - * @throws ApiException Thrown if the API call fails. - */ - public function getDeployPolicy(GetDeployPolicyRequest $request, array $callOptions = []): DeployPolicy - { - return $this->startApiCall('GetDeployPolicy', $request, $callOptions)->wait(); - } - - /** - * Gets details of a single JobRun. - * - * The async variant is {@see CloudDeployClient::getJobRunAsync()} . - * - * @example samples/V1/CloudDeployClient/get_job_run.php - * - * @param GetJobRunRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return JobRun - * - * @throws ApiException Thrown if the API call fails. - */ - public function getJobRun(GetJobRunRequest $request, array $callOptions = []): JobRun - { - return $this->startApiCall('GetJobRun', $request, $callOptions)->wait(); - } - - /** - * Gets details of a single Release. - * - * The async variant is {@see CloudDeployClient::getReleaseAsync()} . - * - * @example samples/V1/CloudDeployClient/get_release.php - * - * @param GetReleaseRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Release - * - * @throws ApiException Thrown if the API call fails. - */ - public function getRelease(GetReleaseRequest $request, array $callOptions = []): Release - { - return $this->startApiCall('GetRelease', $request, $callOptions)->wait(); - } - - /** - * Gets details of a single Rollout. - * - * The async variant is {@see CloudDeployClient::getRolloutAsync()} . - * - * @example samples/V1/CloudDeployClient/get_rollout.php - * - * @param GetRolloutRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Rollout - * - * @throws ApiException Thrown if the API call fails. - */ - public function getRollout(GetRolloutRequest $request, array $callOptions = []): Rollout - { - return $this->startApiCall('GetRollout', $request, $callOptions)->wait(); - } - - /** - * Gets details of a single Target. - * - * The async variant is {@see CloudDeployClient::getTargetAsync()} . - * - * @example samples/V1/CloudDeployClient/get_target.php - * - * @param GetTargetRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Target - * - * @throws ApiException Thrown if the API call fails. - */ - public function getTarget(GetTargetRequest $request, array $callOptions = []): Target - { - return $this->startApiCall('GetTarget', $request, $callOptions)->wait(); - } - - /** - * Ignores the specified Job in a Rollout. - * - * The async variant is {@see CloudDeployClient::ignoreJobAsync()} . - * - * @example samples/V1/CloudDeployClient/ignore_job.php - * - * @param IgnoreJobRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return IgnoreJobResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function ignoreJob(IgnoreJobRequest $request, array $callOptions = []): IgnoreJobResponse - { - return $this->startApiCall('IgnoreJob', $request, $callOptions)->wait(); - } - - /** - * Lists AutomationRuns in a given project and location. - * - * The async variant is {@see CloudDeployClient::listAutomationRunsAsync()} . - * - * @example samples/V1/CloudDeployClient/list_automation_runs.php - * - * @param ListAutomationRunsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listAutomationRuns(ListAutomationRunsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListAutomationRuns', $request, $callOptions); - } - - /** - * Lists Automations in a given project and location. - * - * The async variant is {@see CloudDeployClient::listAutomationsAsync()} . - * - * @example samples/V1/CloudDeployClient/list_automations.php - * - * @param ListAutomationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listAutomations(ListAutomationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListAutomations', $request, $callOptions); - } - - /** - * Lists CustomTargetTypes in a given project and location. - * - * The async variant is {@see CloudDeployClient::listCustomTargetTypesAsync()} . - * - * @example samples/V1/CloudDeployClient/list_custom_target_types.php - * - * @param ListCustomTargetTypesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listCustomTargetTypes(ListCustomTargetTypesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListCustomTargetTypes', $request, $callOptions); - } - - /** - * Lists DeliveryPipelines in a given project and location. - * - * The async variant is {@see CloudDeployClient::listDeliveryPipelinesAsync()} . - * - * @example samples/V1/CloudDeployClient/list_delivery_pipelines.php - * - * @param ListDeliveryPipelinesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listDeliveryPipelines(ListDeliveryPipelinesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDeliveryPipelines', $request, $callOptions); - } - - /** - * Lists DeployPolicies in a given project and location. - * - * The async variant is {@see CloudDeployClient::listDeployPoliciesAsync()} . - * - * @example samples/V1/CloudDeployClient/list_deploy_policies.php - * - * @param ListDeployPoliciesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listDeployPolicies(ListDeployPoliciesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDeployPolicies', $request, $callOptions); - } - - /** - * Lists JobRuns in a given project and location. - * - * The async variant is {@see CloudDeployClient::listJobRunsAsync()} . - * - * @example samples/V1/CloudDeployClient/list_job_runs.php - * - * @param ListJobRunsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listJobRuns(ListJobRunsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListJobRuns', $request, $callOptions); - } - - /** - * Lists Releases in a given project and location. - * - * The async variant is {@see CloudDeployClient::listReleasesAsync()} . - * - * @example samples/V1/CloudDeployClient/list_releases.php - * - * @param ListReleasesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listReleases(ListReleasesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListReleases', $request, $callOptions); - } - - /** - * Lists Rollouts in a given project and location. - * - * The async variant is {@see CloudDeployClient::listRolloutsAsync()} . - * - * @example samples/V1/CloudDeployClient/list_rollouts.php - * - * @param ListRolloutsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listRollouts(ListRolloutsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListRollouts', $request, $callOptions); - } - - /** - * Lists Targets in a given project and location. - * - * The async variant is {@see CloudDeployClient::listTargetsAsync()} . - * - * @example samples/V1/CloudDeployClient/list_targets.php - * - * @param ListTargetsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listTargets(ListTargetsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListTargets', $request, $callOptions); - } - - /** - * Retries the specified Job in a Rollout. - * - * The async variant is {@see CloudDeployClient::retryJobAsync()} . - * - * @example samples/V1/CloudDeployClient/retry_job.php - * - * @param RetryJobRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RetryJobResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function retryJob(RetryJobRequest $request, array $callOptions = []): RetryJobResponse - { - return $this->startApiCall('RetryJob', $request, $callOptions)->wait(); - } - - /** - * Creates a `Rollout` to roll back the specified target. - * - * The async variant is {@see CloudDeployClient::rollbackTargetAsync()} . - * - * @example samples/V1/CloudDeployClient/rollback_target.php - * - * @param RollbackTargetRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RollbackTargetResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function rollbackTarget(RollbackTargetRequest $request, array $callOptions = []): RollbackTargetResponse - { - return $this->startApiCall('RollbackTarget', $request, $callOptions)->wait(); - } - - /** - * Terminates a Job Run in a given project and location. - * - * The async variant is {@see CloudDeployClient::terminateJobRunAsync()} . - * - * @example samples/V1/CloudDeployClient/terminate_job_run.php - * - * @param TerminateJobRunRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return TerminateJobRunResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function terminateJobRun(TerminateJobRunRequest $request, array $callOptions = []): TerminateJobRunResponse - { - return $this->startApiCall('TerminateJobRun', $request, $callOptions)->wait(); - } - - /** - * Updates the parameters of a single Automation resource. - * - * The async variant is {@see CloudDeployClient::updateAutomationAsync()} . - * - * @example samples/V1/CloudDeployClient/update_automation.php - * - * @param UpdateAutomationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateAutomation(UpdateAutomationRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateAutomation', $request, $callOptions)->wait(); - } - - /** - * Updates a single CustomTargetType. - * - * The async variant is {@see CloudDeployClient::updateCustomTargetTypeAsync()} . - * - * @example samples/V1/CloudDeployClient/update_custom_target_type.php - * - * @param UpdateCustomTargetTypeRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateCustomTargetType(UpdateCustomTargetTypeRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateCustomTargetType', $request, $callOptions)->wait(); - } - - /** - * Updates the parameters of a single DeliveryPipeline. - * - * The async variant is {@see CloudDeployClient::updateDeliveryPipelineAsync()} . - * - * @example samples/V1/CloudDeployClient/update_delivery_pipeline.php - * - * @param UpdateDeliveryPipelineRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateDeliveryPipeline(UpdateDeliveryPipelineRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateDeliveryPipeline', $request, $callOptions)->wait(); - } - - /** - * Updates the parameters of a single DeployPolicy. - * - * The async variant is {@see CloudDeployClient::updateDeployPolicyAsync()} . - * - * @example samples/V1/CloudDeployClient/update_deploy_policy.php - * - * @param UpdateDeployPolicyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateDeployPolicy(UpdateDeployPolicyRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateDeployPolicy', $request, $callOptions)->wait(); - } - - /** - * Updates the parameters of a single Target. - * - * The async variant is {@see CloudDeployClient::updateTargetAsync()} . - * - * @example samples/V1/CloudDeployClient/update_target.php - * - * @param UpdateTargetRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateTarget(UpdateTargetRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateTarget', $request, $callOptions)->wait(); - } - - /** - * Gets information about a location. - * - * The async variant is {@see CloudDeployClient::getLocationAsync()} . - * - * @example samples/V1/CloudDeployClient/get_location.php - * - * @param GetLocationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Location - * - * @throws ApiException Thrown if the API call fails. - */ - public function getLocation(GetLocationRequest $request, array $callOptions = []): Location - { - return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); - } - - /** - * Lists information about the supported locations for this service. - * - * The async variant is {@see CloudDeployClient::listLocationsAsync()} . - * - * @example samples/V1/CloudDeployClient/list_locations.php - * - * @param ListLocationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListLocations', $request, $callOptions); - } - - /** - * Gets the access control policy for a resource. Returns an empty policy - if the resource exists and does not have a policy set. - * - * The async variant is {@see CloudDeployClient::getIamPolicyAsync()} . - * - * @example samples/V1/CloudDeployClient/get_iam_policy.php - * - * @param GetIamPolicyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Sets the access control policy on the specified resource. Replaces - any existing policy. - - Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` - errors. - * - * The async variant is {@see CloudDeployClient::setIamPolicyAsync()} . - * - * @example samples/V1/CloudDeployClient/set_iam_policy.php - * - * @param SetIamPolicyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Returns permissions that a caller has on the specified resource. If the - resource does not exist, this will return an empty set of - permissions, not a `NOT_FOUND` error. - - Note: This operation is designed to be used for building - permission-aware UIs and command-line tools, not for authorization - checking. This operation may "fail open" without warning. - * - * The async variant is {@see CloudDeployClient::testIamPermissionsAsync()} . - * - * @example samples/V1/CloudDeployClient/test_iam_permissions.php - * - * @param TestIamPermissionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return TestIamPermissionsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse - { - return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/Deploy/v1/src/V1/gapic_metadata.json b/owl-bot-staging/Deploy/v1/src/V1/gapic_metadata.json deleted file mode 100644 index cc25967ba57d..000000000000 --- a/owl-bot-staging/Deploy/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,268 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.cloud.deploy.v1", - "libraryPackage": "Google\\Cloud\\Deploy\\V1", - "services": { - "CloudDeploy": { - "clients": { - "grpc": { - "libraryClient": "CloudDeployGapicClient", - "rpcs": { - "AbandonRelease": { - "methods": [ - "abandonRelease" - ] - }, - "AdvanceRollout": { - "methods": [ - "advanceRollout" - ] - }, - "ApproveRollout": { - "methods": [ - "approveRollout" - ] - }, - "CancelAutomationRun": { - "methods": [ - "cancelAutomationRun" - ] - }, - "CancelRollout": { - "methods": [ - "cancelRollout" - ] - }, - "CreateAutomation": { - "methods": [ - "createAutomation" - ] - }, - "CreateCustomTargetType": { - "methods": [ - "createCustomTargetType" - ] - }, - "CreateDeliveryPipeline": { - "methods": [ - "createDeliveryPipeline" - ] - }, - "CreateDeployPolicy": { - "methods": [ - "createDeployPolicy" - ] - }, - "CreateRelease": { - "methods": [ - "createRelease" - ] - }, - "CreateRollout": { - "methods": [ - "createRollout" - ] - }, - "CreateTarget": { - "methods": [ - "createTarget" - ] - }, - "DeleteAutomation": { - "methods": [ - "deleteAutomation" - ] - }, - "DeleteCustomTargetType": { - "methods": [ - "deleteCustomTargetType" - ] - }, - "DeleteDeliveryPipeline": { - "methods": [ - "deleteDeliveryPipeline" - ] - }, - "DeleteDeployPolicy": { - "methods": [ - "deleteDeployPolicy" - ] - }, - "DeleteTarget": { - "methods": [ - "deleteTarget" - ] - }, - "GetAutomation": { - "methods": [ - "getAutomation" - ] - }, - "GetAutomationRun": { - "methods": [ - "getAutomationRun" - ] - }, - "GetConfig": { - "methods": [ - "getConfig" - ] - }, - "GetCustomTargetType": { - "methods": [ - "getCustomTargetType" - ] - }, - "GetDeliveryPipeline": { - "methods": [ - "getDeliveryPipeline" - ] - }, - "GetDeployPolicy": { - "methods": [ - "getDeployPolicy" - ] - }, - "GetJobRun": { - "methods": [ - "getJobRun" - ] - }, - "GetRelease": { - "methods": [ - "getRelease" - ] - }, - "GetRollout": { - "methods": [ - "getRollout" - ] - }, - "GetTarget": { - "methods": [ - "getTarget" - ] - }, - "IgnoreJob": { - "methods": [ - "ignoreJob" - ] - }, - "ListAutomationRuns": { - "methods": [ - "listAutomationRuns" - ] - }, - "ListAutomations": { - "methods": [ - "listAutomations" - ] - }, - "ListCustomTargetTypes": { - "methods": [ - "listCustomTargetTypes" - ] - }, - "ListDeliveryPipelines": { - "methods": [ - "listDeliveryPipelines" - ] - }, - "ListDeployPolicies": { - "methods": [ - "listDeployPolicies" - ] - }, - "ListJobRuns": { - "methods": [ - "listJobRuns" - ] - }, - "ListReleases": { - "methods": [ - "listReleases" - ] - }, - "ListRollouts": { - "methods": [ - "listRollouts" - ] - }, - "ListTargets": { - "methods": [ - "listTargets" - ] - }, - "RetryJob": { - "methods": [ - "retryJob" - ] - }, - "RollbackTarget": { - "methods": [ - "rollbackTarget" - ] - }, - "TerminateJobRun": { - "methods": [ - "terminateJobRun" - ] - }, - "UpdateAutomation": { - "methods": [ - "updateAutomation" - ] - }, - "UpdateCustomTargetType": { - "methods": [ - "updateCustomTargetType" - ] - }, - "UpdateDeliveryPipeline": { - "methods": [ - "updateDeliveryPipeline" - ] - }, - "UpdateDeployPolicy": { - "methods": [ - "updateDeployPolicy" - ] - }, - "UpdateTarget": { - "methods": [ - "updateTarget" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - }, - "GetIamPolicy": { - "methods": [ - "getIamPolicy" - ] - }, - "SetIamPolicy": { - "methods": [ - "setIamPolicy" - ] - }, - "TestIamPermissions": { - "methods": [ - "testIamPermissions" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/Deploy/v1/src/V1/resources/cloud_deploy_client_config.json b/owl-bot-staging/Deploy/v1/src/V1/resources/cloud_deploy_client_config.json deleted file mode 100644 index 89a03316253f..000000000000 --- a/owl-bot-staging/Deploy/v1/src/V1/resources/cloud_deploy_client_config.json +++ /dev/null @@ -1,294 +0,0 @@ -{ - "interfaces": { - "google.cloud.deploy.v1.CloudDeploy": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ], - "no_retry_1_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - }, - "no_retry_1_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "AbandonRelease": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "AdvanceRollout": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ApproveRollout": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CancelAutomationRun": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CancelRollout": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateAutomation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateCustomTargetType": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateDeliveryPipeline": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateDeployPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateRelease": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateRollout": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateTarget": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteAutomation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteCustomTargetType": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteDeliveryPipeline": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteDeployPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteTarget": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetAutomation": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetAutomationRun": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetConfig": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetCustomTargetType": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetDeliveryPipeline": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetDeployPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetJobRun": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetRelease": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetRollout": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetTarget": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "IgnoreJob": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListAutomationRuns": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListAutomations": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListCustomTargetTypes": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListDeliveryPipelines": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListDeployPolicies": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListJobRuns": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListReleases": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListRollouts": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListTargets": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "RetryJob": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "RollbackTarget": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "TerminateJobRun": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateAutomation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateCustomTargetType": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateDeliveryPipeline": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateDeployPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateTarget": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetLocation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListLocations": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "SetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "TestIamPermissions": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/Deploy/v1/src/V1/resources/cloud_deploy_descriptor_config.php b/owl-bot-staging/Deploy/v1/src/V1/resources/cloud_deploy_descriptor_config.php deleted file mode 100644 index 9842887d33c3..000000000000 --- a/owl-bot-staging/Deploy/v1/src/V1/resources/cloud_deploy_descriptor_config.php +++ /dev/null @@ -1,857 +0,0 @@ - [ - 'google.cloud.deploy.v1.CloudDeploy' => [ - 'CreateAutomation' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Deploy\V1\Automation', - 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateCustomTargetType' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Deploy\V1\CustomTargetType', - 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDeliveryPipeline' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Deploy\V1\DeliveryPipeline', - 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDeployPolicy' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Deploy\V1\DeployPolicy', - 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateRelease' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Deploy\V1\Release', - 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateRollout' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Deploy\V1\Rollout', - 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateTarget' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Deploy\V1\Target', - 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteAutomation' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteCustomTargetType' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDeliveryPipeline' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDeployPolicy' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteTarget' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateAutomation' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Deploy\V1\Automation', - 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'automation.name', - 'fieldAccessors' => [ - 'getAutomation', - 'getName', - ], - ], - ], - ], - 'UpdateCustomTargetType' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Deploy\V1\CustomTargetType', - 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'custom_target_type.name', - 'fieldAccessors' => [ - 'getCustomTargetType', - 'getName', - ], - ], - ], - ], - 'UpdateDeliveryPipeline' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Deploy\V1\DeliveryPipeline', - 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'delivery_pipeline.name', - 'fieldAccessors' => [ - 'getDeliveryPipeline', - 'getName', - ], - ], - ], - ], - 'UpdateDeployPolicy' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Deploy\V1\DeployPolicy', - 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'deploy_policy.name', - 'fieldAccessors' => [ - 'getDeployPolicy', - 'getName', - ], - ], - ], - ], - 'UpdateTarget' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Deploy\V1\Target', - 'metadataReturnType' => '\Google\Cloud\Deploy\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'target.name', - 'fieldAccessors' => [ - 'getTarget', - 'getName', - ], - ], - ], - ], - 'AbandonRelease' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Deploy\V1\AbandonReleaseResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'AdvanceRollout' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Deploy\V1\AdvanceRolloutResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ApproveRollout' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Deploy\V1\ApproveRolloutResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'CancelAutomationRun' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Deploy\V1\CancelAutomationRunResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'CancelRollout' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Deploy\V1\CancelRolloutResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetAutomation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Deploy\V1\Automation', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetAutomationRun' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Deploy\V1\AutomationRun', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Deploy\V1\Config', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetCustomTargetType' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Deploy\V1\CustomTargetType', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDeliveryPipeline' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Deploy\V1\DeliveryPipeline', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDeployPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Deploy\V1\DeployPolicy', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetJobRun' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Deploy\V1\JobRun', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetRelease' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Deploy\V1\Release', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetRollout' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Deploy\V1\Rollout', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetTarget' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Deploy\V1\Target', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'IgnoreJob' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Deploy\V1\IgnoreJobResponse', - 'headerParams' => [ - [ - 'keyName' => 'rollout', - 'fieldAccessors' => [ - 'getRollout', - ], - ], - ], - ], - 'ListAutomationRuns' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAutomationRuns', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Deploy\V1\ListAutomationRunsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListAutomations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAutomations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Deploy\V1\ListAutomationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListCustomTargetTypes' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getCustomTargetTypes', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Deploy\V1\ListCustomTargetTypesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListDeliveryPipelines' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDeliveryPipelines', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Deploy\V1\ListDeliveryPipelinesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListDeployPolicies' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDeployPolicies', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Deploy\V1\ListDeployPoliciesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListJobRuns' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getJobRuns', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Deploy\V1\ListJobRunsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListReleases' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getReleases', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Deploy\V1\ListReleasesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListRollouts' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getRollouts', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Deploy\V1\ListRolloutsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListTargets' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getTargets', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Deploy\V1\ListTargetsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'RetryJob' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Deploy\V1\RetryJobResponse', - 'headerParams' => [ - [ - 'keyName' => 'rollout', - 'fieldAccessors' => [ - 'getRollout', - ], - ], - ], - ], - 'RollbackTarget' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Deploy\V1\RollbackTargetResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'TerminateJobRun' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Deploy\V1\TerminateJobRunResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetLocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Location\Location', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'ListLocations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getLocations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'GetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'SetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'TestIamPermissions' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'templateMap' => [ - 'automation' => 'projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automations/{automation}', - 'automationRun' => 'projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}', - 'build' => 'projects/{project}/locations/{location}/builds/{build}', - 'cluster' => 'projects/{project}/locations/{location}/clusters/{cluster}', - 'config' => 'projects/{project}/locations/{location}/config', - 'customTargetType' => 'projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}', - 'deliveryPipeline' => 'projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}', - 'deployPolicy' => 'projects/{project}/locations/{location}/deployPolicies/{deploy_policy}', - 'job' => 'projects/{project}/locations/{location}/jobs/{job}', - 'jobRun' => 'projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/releases/{release}/rollouts/{rollout}/jobRuns/{job_run}', - 'location' => 'projects/{project}/locations/{location}', - 'membership' => 'projects/{project}/locations/{location}/memberships/{membership}', - 'release' => 'projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/releases/{release}', - 'repository' => 'projects/{project}/locations/{location}/connections/{connection}/repositories/{repository}', - 'rollout' => 'projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/releases/{release}/rollouts/{rollout}', - 'service' => 'projects/{project}/locations/{location}/services/{service}', - 'target' => 'projects/{project}/locations/{location}/targets/{target}', - 'workerPool' => 'projects/{project}/locations/{location}/workerPools/{worker_pool}', - ], - ], - ], -]; diff --git a/owl-bot-staging/Deploy/v1/src/V1/resources/cloud_deploy_rest_client_config.php b/owl-bot-staging/Deploy/v1/src/V1/resources/cloud_deploy_rest_client_config.php deleted file mode 100644 index 0391c32a6344..000000000000 --- a/owl-bot-staging/Deploy/v1/src/V1/resources/cloud_deploy_rest_client_config.php +++ /dev/null @@ -1,723 +0,0 @@ - [ - 'google.cloud.deploy.v1.CloudDeploy' => [ - 'AbandonRelease' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*}:abandon', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'AdvanceRollout' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*}:advance', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ApproveRollout' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*}:approve', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'CancelAutomationRun' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*/automationRuns/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'CancelRollout' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'CreateAutomation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/deliveryPipelines/*}/automations', - 'body' => 'automation', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'automation_id', - ], - ], - 'CreateCustomTargetType' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/customTargetTypes', - 'body' => 'custom_target_type', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'custom_target_type_id', - ], - ], - 'CreateDeliveryPipeline' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/deliveryPipelines', - 'body' => 'delivery_pipeline', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'delivery_pipeline_id', - ], - ], - 'CreateDeployPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/deployPolicies', - 'body' => 'deploy_policy', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'deploy_policy_id', - ], - ], - 'CreateRelease' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/deliveryPipelines/*}/releases', - 'body' => 'release', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'release_id', - ], - ], - 'CreateRollout' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/deliveryPipelines/*/releases/*}/rollouts', - 'body' => 'rollout', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'rollout_id', - ], - ], - 'CreateTarget' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/targets', - 'body' => 'target', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'target_id', - ], - ], - 'DeleteAutomation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*/automations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteCustomTargetType' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/customTargetTypes/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDeliveryPipeline' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDeployPolicy' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/deployPolicies/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteTarget' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/targets/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetAutomation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*/automations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetAutomationRun' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*/automationRuns/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetConfig' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/config}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetCustomTargetType' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/customTargetTypes/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDeliveryPipeline' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDeployPolicy' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/deployPolicies/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetJobRun' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*/jobRuns/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetRelease' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetRollout' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetTarget' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/targets/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'IgnoreJob' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{rollout=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*}:ignoreJob', - 'body' => '*', - 'placeholders' => [ - 'rollout' => [ - 'getters' => [ - 'getRollout', - ], - ], - ], - ], - 'ListAutomationRuns' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/deliveryPipelines/*}/automationRuns', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListAutomations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/deliveryPipelines/*}/automations', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListCustomTargetTypes' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/customTargetTypes', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListDeliveryPipelines' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/deliveryPipelines', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListDeployPolicies' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/deployPolicies', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListJobRuns' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*}/jobRuns', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListReleases' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/deliveryPipelines/*}/releases', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListRollouts' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/deliveryPipelines/*/releases/*}/rollouts', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListTargets' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/targets', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'RetryJob' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{rollout=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*}:retryJob', - 'body' => '*', - 'placeholders' => [ - 'rollout' => [ - 'getters' => [ - 'getRollout', - ], - ], - ], - ], - 'RollbackTarget' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*}:rollbackTarget', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'TerminateJobRun' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*/jobRuns/*}:terminate', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'UpdateAutomation' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{automation.name=projects/*/locations/*/deliveryPipelines/*/automations/*}', - 'body' => 'automation', - 'placeholders' => [ - 'automation.name' => [ - 'getters' => [ - 'getAutomation', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateCustomTargetType' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{custom_target_type.name=projects/*/locations/*/customTargetTypes/*}', - 'body' => 'custom_target_type', - 'placeholders' => [ - 'custom_target_type.name' => [ - 'getters' => [ - 'getCustomTargetType', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateDeliveryPipeline' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{delivery_pipeline.name=projects/*/locations/*/deliveryPipelines/*}', - 'body' => 'delivery_pipeline', - 'placeholders' => [ - 'delivery_pipeline.name' => [ - 'getters' => [ - 'getDeliveryPipeline', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateDeployPolicy' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{deploy_policy.name=projects/*/locations/*/deployPolicies/*}', - 'body' => 'deploy_policy', - 'placeholders' => [ - 'deploy_policy.name' => [ - 'getters' => [ - 'getDeployPolicy', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateTarget' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{target.name=projects/*/locations/*/targets/*}', - 'body' => 'target', - 'placeholders' => [ - 'target.name' => [ - 'getters' => [ - 'getTarget', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.iam.v1.IAMPolicy' => [ - 'GetIamPolicy' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/deliveryPipelines/*}:getIamPolicy', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/targets/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/customTargetTypes/*}:getIamPolicy', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/deliveryPipelines/*}:setIamPolicy', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/targets/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/customTargetTypes/*}:setIamPolicy', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/deliveryPipelines/*}:testIamPermissions', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/targets/*}:testIamPermissions', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Deploy/v1/tests/Unit/V1/Client/CloudDeployClientTest.php b/owl-bot-staging/Deploy/v1/tests/Unit/V1/Client/CloudDeployClientTest.php deleted file mode 100644 index e0b90d0285ad..000000000000 --- a/owl-bot-staging/Deploy/v1/tests/Unit/V1/Client/CloudDeployClientTest.php +++ /dev/null @@ -1,4857 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return CloudDeployClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new CloudDeployClient($options); - } - - /** @test */ - public function abandonReleaseTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new AbandonReleaseResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->releaseName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]'); - $request = (new AbandonReleaseRequest()) - ->setName($formattedName); - $response = $gapicClient->abandonRelease($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/AbandonRelease', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function abandonReleaseExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->releaseName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]'); - $request = (new AbandonReleaseRequest()) - ->setName($formattedName); - try { - $gapicClient->abandonRelease($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function advanceRolloutTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new AdvanceRolloutResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]'); - $phaseId = 'phaseId-1676299681'; - $request = (new AdvanceRolloutRequest()) - ->setName($formattedName) - ->setPhaseId($phaseId); - $response = $gapicClient->advanceRollout($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/AdvanceRollout', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualRequestObject->getPhaseId(); - $this->assertProtobufEquals($phaseId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function advanceRolloutExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]'); - $phaseId = 'phaseId-1676299681'; - $request = (new AdvanceRolloutRequest()) - ->setName($formattedName) - ->setPhaseId($phaseId); - try { - $gapicClient->advanceRollout($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function approveRolloutTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ApproveRolloutResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]'); - $approved = false; - $request = (new ApproveRolloutRequest()) - ->setName($formattedName) - ->setApproved($approved); - $response = $gapicClient->approveRollout($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/ApproveRollout', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualRequestObject->getApproved(); - $this->assertProtobufEquals($approved, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function approveRolloutExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]'); - $approved = false; - $request = (new ApproveRolloutRequest()) - ->setName($formattedName) - ->setApproved($approved); - try { - $gapicClient->approveRollout($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function cancelAutomationRunTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new CancelAutomationRunResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->automationRunName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[AUTOMATION_RUN]'); - $request = (new CancelAutomationRunRequest()) - ->setName($formattedName); - $response = $gapicClient->cancelAutomationRun($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/CancelAutomationRun', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function cancelAutomationRunExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->automationRunName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[AUTOMATION_RUN]'); - $request = (new CancelAutomationRunRequest()) - ->setName($formattedName); - try { - $gapicClient->cancelAutomationRun($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function cancelRolloutTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new CancelRolloutResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]'); - $request = (new CancelRolloutRequest()) - ->setName($formattedName); - $response = $gapicClient->cancelRollout($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/CancelRollout', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function cancelRolloutExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]'); - $request = (new CancelRolloutRequest()) - ->setName($formattedName); - try { - $gapicClient->cancelRollout($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createAutomationTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createAutomationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $etag = 'etag3123477'; - $suspended = false; - $serviceAccount = 'serviceAccount-1948028253'; - $expectedResponse = new Automation(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setEtag($etag); - $expectedResponse->setSuspended($suspended); - $expectedResponse->setServiceAccount($serviceAccount); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createAutomationTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]'); - $automationId = 'automationId1989390659'; - $automation = new Automation(); - $automationServiceAccount = 'automationServiceAccount-192216401'; - $automation->setServiceAccount($automationServiceAccount); - $automationSelector = new AutomationResourceSelector(); - $automation->setSelector($automationSelector); - $automationRules = []; - $automation->setRules($automationRules); - $request = (new CreateAutomationRequest()) - ->setParent($formattedParent) - ->setAutomationId($automationId) - ->setAutomation($automation); - $response = $gapicClient->createAutomation($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/CreateAutomation', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getAutomationId(); - $this->assertProtobufEquals($automationId, $actualValue); - $actualValue = $actualApiRequestObject->getAutomation(); - $this->assertProtobufEquals($automation, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAutomationTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createAutomationExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createAutomationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]'); - $automationId = 'automationId1989390659'; - $automation = new Automation(); - $automationServiceAccount = 'automationServiceAccount-192216401'; - $automation->setServiceAccount($automationServiceAccount); - $automationSelector = new AutomationResourceSelector(); - $automation->setSelector($automationSelector); - $automationRules = []; - $automation->setRules($automationRules); - $request = (new CreateAutomationRequest()) - ->setParent($formattedParent) - ->setAutomationId($automationId) - ->setAutomation($automation); - $response = $gapicClient->createAutomation($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAutomationTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createCustomTargetTypeTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createCustomTargetTypeTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $customTargetTypeId2 = 'customTargetTypeId2-1392620077'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $etag = 'etag3123477'; - $expectedResponse = new CustomTargetType(); - $expectedResponse->setName($name); - $expectedResponse->setCustomTargetTypeId($customTargetTypeId2); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setEtag($etag); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createCustomTargetTypeTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $customTargetTypeId = 'customTargetTypeId-2048374240'; - $customTargetType = new CustomTargetType(); - $request = (new CreateCustomTargetTypeRequest()) - ->setParent($formattedParent) - ->setCustomTargetTypeId($customTargetTypeId) - ->setCustomTargetType($customTargetType); - $response = $gapicClient->createCustomTargetType($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/CreateCustomTargetType', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getCustomTargetTypeId(); - $this->assertProtobufEquals($customTargetTypeId, $actualValue); - $actualValue = $actualApiRequestObject->getCustomTargetType(); - $this->assertProtobufEquals($customTargetType, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createCustomTargetTypeTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createCustomTargetTypeExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createCustomTargetTypeTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $customTargetTypeId = 'customTargetTypeId-2048374240'; - $customTargetType = new CustomTargetType(); - $request = (new CreateCustomTargetTypeRequest()) - ->setParent($formattedParent) - ->setCustomTargetTypeId($customTargetTypeId) - ->setCustomTargetType($customTargetType); - $response = $gapicClient->createCustomTargetType($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createCustomTargetTypeTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createDeliveryPipelineTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createDeliveryPipelineTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $etag = 'etag3123477'; - $suspended = false; - $expectedResponse = new DeliveryPipeline(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setEtag($etag); - $expectedResponse->setSuspended($suspended); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createDeliveryPipelineTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $deliveryPipelineId = 'deliveryPipelineId1972590605'; - $deliveryPipeline = new DeliveryPipeline(); - $request = (new CreateDeliveryPipelineRequest()) - ->setParent($formattedParent) - ->setDeliveryPipelineId($deliveryPipelineId) - ->setDeliveryPipeline($deliveryPipeline); - $response = $gapicClient->createDeliveryPipeline($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/CreateDeliveryPipeline', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getDeliveryPipelineId(); - $this->assertProtobufEquals($deliveryPipelineId, $actualValue); - $actualValue = $actualApiRequestObject->getDeliveryPipeline(); - $this->assertProtobufEquals($deliveryPipeline, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createDeliveryPipelineTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createDeliveryPipelineExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createDeliveryPipelineTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $deliveryPipelineId = 'deliveryPipelineId1972590605'; - $deliveryPipeline = new DeliveryPipeline(); - $request = (new CreateDeliveryPipelineRequest()) - ->setParent($formattedParent) - ->setDeliveryPipelineId($deliveryPipelineId) - ->setDeliveryPipeline($deliveryPipeline); - $response = $gapicClient->createDeliveryPipeline($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createDeliveryPipelineTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createDeployPolicyTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createDeployPolicyTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $suspended = false; - $etag = 'etag3123477'; - $expectedResponse = new DeployPolicy(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setSuspended($suspended); - $expectedResponse->setEtag($etag); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createDeployPolicyTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $deployPolicyId = 'deployPolicyId1355226608'; - $deployPolicy = new DeployPolicy(); - $deployPolicySelectors = []; - $deployPolicy->setSelectors($deployPolicySelectors); - $deployPolicyRules = []; - $deployPolicy->setRules($deployPolicyRules); - $request = (new CreateDeployPolicyRequest()) - ->setParent($formattedParent) - ->setDeployPolicyId($deployPolicyId) - ->setDeployPolicy($deployPolicy); - $response = $gapicClient->createDeployPolicy($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/CreateDeployPolicy', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getDeployPolicyId(); - $this->assertProtobufEquals($deployPolicyId, $actualValue); - $actualValue = $actualApiRequestObject->getDeployPolicy(); - $this->assertProtobufEquals($deployPolicy, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createDeployPolicyTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createDeployPolicyExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createDeployPolicyTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $deployPolicyId = 'deployPolicyId1355226608'; - $deployPolicy = new DeployPolicy(); - $deployPolicySelectors = []; - $deployPolicy->setSelectors($deployPolicySelectors); - $deployPolicyRules = []; - $deployPolicy->setRules($deployPolicyRules); - $request = (new CreateDeployPolicyRequest()) - ->setParent($formattedParent) - ->setDeployPolicyId($deployPolicyId) - ->setDeployPolicy($deployPolicy); - $response = $gapicClient->createDeployPolicy($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createDeployPolicyTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createReleaseTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createReleaseTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $abandoned = true; - $skaffoldConfigUri = 'skaffoldConfigUri-860592176'; - $skaffoldConfigPath = 'skaffoldConfigPath-908718527'; - $etag = 'etag3123477'; - $skaffoldVersion = 'skaffoldVersion-1146663017'; - $expectedResponse = new Release(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setAbandoned($abandoned); - $expectedResponse->setSkaffoldConfigUri($skaffoldConfigUri); - $expectedResponse->setSkaffoldConfigPath($skaffoldConfigPath); - $expectedResponse->setEtag($etag); - $expectedResponse->setSkaffoldVersion($skaffoldVersion); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createReleaseTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]'); - $releaseId = 'releaseId-1517127597'; - $release = new Release(); - $request = (new CreateReleaseRequest()) - ->setParent($formattedParent) - ->setReleaseId($releaseId) - ->setRelease($release); - $response = $gapicClient->createRelease($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/CreateRelease', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getReleaseId(); - $this->assertProtobufEquals($releaseId, $actualValue); - $actualValue = $actualApiRequestObject->getRelease(); - $this->assertProtobufEquals($release, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createReleaseTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createReleaseExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createReleaseTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]'); - $releaseId = 'releaseId-1517127597'; - $release = new Release(); - $request = (new CreateReleaseRequest()) - ->setParent($formattedParent) - ->setReleaseId($releaseId) - ->setRelease($release); - $response = $gapicClient->createRelease($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createReleaseTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createRolloutTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createRolloutTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $targetId = 'targetId-815576439'; - $failureReason = 'failureReason1743941273'; - $deployingBuild = 'deployingBuild931623626'; - $etag = 'etag3123477'; - $controllerRollout = 'controllerRollout-146558962'; - $rollbackOfRollout = 'rollbackOfRollout-1880699004'; - $activeRepairAutomationRun = 'activeRepairAutomationRun-2089265700'; - $expectedResponse = new Rollout(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setTargetId($targetId); - $expectedResponse->setFailureReason($failureReason); - $expectedResponse->setDeployingBuild($deployingBuild); - $expectedResponse->setEtag($etag); - $expectedResponse->setControllerRollout($controllerRollout); - $expectedResponse->setRollbackOfRollout($rollbackOfRollout); - $expectedResponse->setActiveRepairAutomationRun($activeRepairAutomationRun); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createRolloutTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->releaseName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]'); - $rolloutId = 'rolloutId-91142551'; - $rollout = new Rollout(); - $rolloutTargetId = 'rolloutTargetId509050717'; - $rollout->setTargetId($rolloutTargetId); - $request = (new CreateRolloutRequest()) - ->setParent($formattedParent) - ->setRolloutId($rolloutId) - ->setRollout($rollout); - $response = $gapicClient->createRollout($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/CreateRollout', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getRolloutId(); - $this->assertProtobufEquals($rolloutId, $actualValue); - $actualValue = $actualApiRequestObject->getRollout(); - $this->assertProtobufEquals($rollout, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createRolloutTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createRolloutExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createRolloutTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->releaseName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]'); - $rolloutId = 'rolloutId-91142551'; - $rollout = new Rollout(); - $rolloutTargetId = 'rolloutTargetId509050717'; - $rollout->setTargetId($rolloutTargetId); - $request = (new CreateRolloutRequest()) - ->setParent($formattedParent) - ->setRolloutId($rolloutId) - ->setRollout($rollout); - $response = $gapicClient->createRollout($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createRolloutTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createTargetTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createTargetTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $targetId2 = 'targetId2-2084907012'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $requireApproval = false; - $etag = 'etag3123477'; - $expectedResponse = new Target(); - $expectedResponse->setName($name); - $expectedResponse->setTargetId($targetId2); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setRequireApproval($requireApproval); - $expectedResponse->setEtag($etag); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createTargetTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $targetId = 'targetId-815576439'; - $target = new Target(); - $request = (new CreateTargetRequest()) - ->setParent($formattedParent) - ->setTargetId($targetId) - ->setTarget($target); - $response = $gapicClient->createTarget($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/CreateTarget', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getTargetId(); - $this->assertProtobufEquals($targetId, $actualValue); - $actualValue = $actualApiRequestObject->getTarget(); - $this->assertProtobufEquals($target, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createTargetTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createTargetExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createTargetTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $targetId = 'targetId-815576439'; - $target = new Target(); - $request = (new CreateTargetRequest()) - ->setParent($formattedParent) - ->setTargetId($targetId) - ->setTarget($target); - $response = $gapicClient->createTarget($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createTargetTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteAutomationTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteAutomationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteAutomationTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->automationName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[AUTOMATION]'); - $request = (new DeleteAutomationRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteAutomation($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/DeleteAutomation', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteAutomationTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteAutomationExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteAutomationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->automationName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[AUTOMATION]'); - $request = (new DeleteAutomationRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteAutomation($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteAutomationTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteCustomTargetTypeTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteCustomTargetTypeTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteCustomTargetTypeTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->customTargetTypeName('[PROJECT]', '[LOCATION]', '[CUSTOM_TARGET_TYPE]'); - $request = (new DeleteCustomTargetTypeRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteCustomTargetType($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/DeleteCustomTargetType', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteCustomTargetTypeTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteCustomTargetTypeExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteCustomTargetTypeTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->customTargetTypeName('[PROJECT]', '[LOCATION]', '[CUSTOM_TARGET_TYPE]'); - $request = (new DeleteCustomTargetTypeRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteCustomTargetType($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteCustomTargetTypeTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteDeliveryPipelineTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteDeliveryPipelineTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteDeliveryPipelineTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]'); - $request = (new DeleteDeliveryPipelineRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteDeliveryPipeline($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/DeleteDeliveryPipeline', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteDeliveryPipelineTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteDeliveryPipelineExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteDeliveryPipelineTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]'); - $request = (new DeleteDeliveryPipelineRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteDeliveryPipeline($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteDeliveryPipelineTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteDeployPolicyTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteDeployPolicyTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteDeployPolicyTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->deployPolicyName('[PROJECT]', '[LOCATION]', '[DEPLOY_POLICY]'); - $request = (new DeleteDeployPolicyRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteDeployPolicy($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/DeleteDeployPolicy', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteDeployPolicyTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteDeployPolicyExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteDeployPolicyTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->deployPolicyName('[PROJECT]', '[LOCATION]', '[DEPLOY_POLICY]'); - $request = (new DeleteDeployPolicyRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteDeployPolicy($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteDeployPolicyTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteTargetTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteTargetTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteTargetTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->targetName('[PROJECT]', '[LOCATION]', '[TARGET]'); - $request = (new DeleteTargetRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteTarget($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/DeleteTarget', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteTargetTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteTargetExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteTargetTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->targetName('[PROJECT]', '[LOCATION]', '[TARGET]'); - $request = (new DeleteTargetRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteTarget($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteTargetTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function getAutomationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $etag = 'etag3123477'; - $suspended = false; - $serviceAccount = 'serviceAccount-1948028253'; - $expectedResponse = new Automation(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setEtag($etag); - $expectedResponse->setSuspended($suspended); - $expectedResponse->setServiceAccount($serviceAccount); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->automationName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[AUTOMATION]'); - $request = (new GetAutomationRequest()) - ->setName($formattedName); - $response = $gapicClient->getAutomation($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/GetAutomation', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAutomationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->automationName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[AUTOMATION]'); - $request = (new GetAutomationRequest()) - ->setName($formattedName); - try { - $gapicClient->getAutomation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAutomationRunTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $etag = 'etag3123477'; - $serviceAccount = 'serviceAccount-1948028253'; - $targetId = 'targetId-815576439'; - $stateDescription = 'stateDescription1692226894'; - $ruleId = 'ruleId1548659006'; - $automationId = 'automationId1989390659'; - $expectedResponse = new AutomationRun(); - $expectedResponse->setName($name2); - $expectedResponse->setEtag($etag); - $expectedResponse->setServiceAccount($serviceAccount); - $expectedResponse->setTargetId($targetId); - $expectedResponse->setStateDescription($stateDescription); - $expectedResponse->setRuleId($ruleId); - $expectedResponse->setAutomationId($automationId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->automationRunName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[AUTOMATION_RUN]'); - $request = (new GetAutomationRunRequest()) - ->setName($formattedName); - $response = $gapicClient->getAutomationRun($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/GetAutomationRun', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAutomationRunExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->automationRunName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[AUTOMATION_RUN]'); - $request = (new GetAutomationRunRequest()) - ->setName($formattedName); - try { - $gapicClient->getAutomationRun($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $defaultSkaffoldVersion = 'defaultSkaffoldVersion1930298837'; - $expectedResponse = new Config(); - $expectedResponse->setName($name2); - $expectedResponse->setDefaultSkaffoldVersion($defaultSkaffoldVersion); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->configName('[PROJECT]', '[LOCATION]'); - $request = (new GetConfigRequest()) - ->setName($formattedName); - $response = $gapicClient->getConfig($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/GetConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->configName('[PROJECT]', '[LOCATION]'); - $request = (new GetConfigRequest()) - ->setName($formattedName); - try { - $gapicClient->getConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomTargetTypeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $customTargetTypeId = 'customTargetTypeId-2048374240'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $etag = 'etag3123477'; - $expectedResponse = new CustomTargetType(); - $expectedResponse->setName($name2); - $expectedResponse->setCustomTargetTypeId($customTargetTypeId); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->customTargetTypeName('[PROJECT]', '[LOCATION]', '[CUSTOM_TARGET_TYPE]'); - $request = (new GetCustomTargetTypeRequest()) - ->setName($formattedName); - $response = $gapicClient->getCustomTargetType($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/GetCustomTargetType', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getCustomTargetTypeExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->customTargetTypeName('[PROJECT]', '[LOCATION]', '[CUSTOM_TARGET_TYPE]'); - $request = (new GetCustomTargetTypeRequest()) - ->setName($formattedName); - try { - $gapicClient->getCustomTargetType($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDeliveryPipelineTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $etag = 'etag3123477'; - $suspended = false; - $expectedResponse = new DeliveryPipeline(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setEtag($etag); - $expectedResponse->setSuspended($suspended); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]'); - $request = (new GetDeliveryPipelineRequest()) - ->setName($formattedName); - $response = $gapicClient->getDeliveryPipeline($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/GetDeliveryPipeline', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDeliveryPipelineExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]'); - $request = (new GetDeliveryPipelineRequest()) - ->setName($formattedName); - try { - $gapicClient->getDeliveryPipeline($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDeployPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $suspended = false; - $etag = 'etag3123477'; - $expectedResponse = new DeployPolicy(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setSuspended($suspended); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->deployPolicyName('[PROJECT]', '[LOCATION]', '[DEPLOY_POLICY]'); - $request = (new GetDeployPolicyRequest()) - ->setName($formattedName); - $response = $gapicClient->getDeployPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/GetDeployPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDeployPolicyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->deployPolicyName('[PROJECT]', '[LOCATION]', '[DEPLOY_POLICY]'); - $request = (new GetDeployPolicyRequest()) - ->setName($formattedName); - try { - $gapicClient->getDeployPolicy($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getJobRunTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $phaseId = 'phaseId-1676299681'; - $jobId = 'jobId-1154752291'; - $etag = 'etag3123477'; - $expectedResponse = new JobRun(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setPhaseId($phaseId); - $expectedResponse->setJobId($jobId); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->jobRunName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]', '[JOB_RUN]'); - $request = (new GetJobRunRequest()) - ->setName($formattedName); - $response = $gapicClient->getJobRun($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/GetJobRun', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getJobRunExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->jobRunName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]', '[JOB_RUN]'); - $request = (new GetJobRunRequest()) - ->setName($formattedName); - try { - $gapicClient->getJobRun($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getReleaseTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $abandoned = true; - $skaffoldConfigUri = 'skaffoldConfigUri-860592176'; - $skaffoldConfigPath = 'skaffoldConfigPath-908718527'; - $etag = 'etag3123477'; - $skaffoldVersion = 'skaffoldVersion-1146663017'; - $expectedResponse = new Release(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setAbandoned($abandoned); - $expectedResponse->setSkaffoldConfigUri($skaffoldConfigUri); - $expectedResponse->setSkaffoldConfigPath($skaffoldConfigPath); - $expectedResponse->setEtag($etag); - $expectedResponse->setSkaffoldVersion($skaffoldVersion); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->releaseName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]'); - $request = (new GetReleaseRequest()) - ->setName($formattedName); - $response = $gapicClient->getRelease($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/GetRelease', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getReleaseExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->releaseName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]'); - $request = (new GetReleaseRequest()) - ->setName($formattedName); - try { - $gapicClient->getRelease($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRolloutTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $targetId = 'targetId-815576439'; - $failureReason = 'failureReason1743941273'; - $deployingBuild = 'deployingBuild931623626'; - $etag = 'etag3123477'; - $controllerRollout = 'controllerRollout-146558962'; - $rollbackOfRollout = 'rollbackOfRollout-1880699004'; - $activeRepairAutomationRun = 'activeRepairAutomationRun-2089265700'; - $expectedResponse = new Rollout(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setTargetId($targetId); - $expectedResponse->setFailureReason($failureReason); - $expectedResponse->setDeployingBuild($deployingBuild); - $expectedResponse->setEtag($etag); - $expectedResponse->setControllerRollout($controllerRollout); - $expectedResponse->setRollbackOfRollout($rollbackOfRollout); - $expectedResponse->setActiveRepairAutomationRun($activeRepairAutomationRun); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]'); - $request = (new GetRolloutRequest()) - ->setName($formattedName); - $response = $gapicClient->getRollout($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/GetRollout', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRolloutExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]'); - $request = (new GetRolloutRequest()) - ->setName($formattedName); - try { - $gapicClient->getRollout($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getTargetTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $targetId = 'targetId-815576439'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $requireApproval = false; - $etag = 'etag3123477'; - $expectedResponse = new Target(); - $expectedResponse->setName($name2); - $expectedResponse->setTargetId($targetId); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setRequireApproval($requireApproval); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->targetName('[PROJECT]', '[LOCATION]', '[TARGET]'); - $request = (new GetTargetRequest()) - ->setName($formattedName); - $response = $gapicClient->getTarget($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/GetTarget', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getTargetExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->targetName('[PROJECT]', '[LOCATION]', '[TARGET]'); - $request = (new GetTargetRequest()) - ->setName($formattedName); - try { - $gapicClient->getTarget($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function ignoreJobTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new IgnoreJobResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedRollout = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]'); - $phaseId = 'phaseId-1676299681'; - $jobId = 'jobId-1154752291'; - $request = (new IgnoreJobRequest()) - ->setRollout($formattedRollout) - ->setPhaseId($phaseId) - ->setJobId($jobId); - $response = $gapicClient->ignoreJob($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/IgnoreJob', $actualFuncCall); - $actualValue = $actualRequestObject->getRollout(); - $this->assertProtobufEquals($formattedRollout, $actualValue); - $actualValue = $actualRequestObject->getPhaseId(); - $this->assertProtobufEquals($phaseId, $actualValue); - $actualValue = $actualRequestObject->getJobId(); - $this->assertProtobufEquals($jobId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function ignoreJobExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedRollout = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]'); - $phaseId = 'phaseId-1676299681'; - $jobId = 'jobId-1154752291'; - $request = (new IgnoreJobRequest()) - ->setRollout($formattedRollout) - ->setPhaseId($phaseId) - ->setJobId($jobId); - try { - $gapicClient->ignoreJob($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAutomationRunsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $automationRunsElement = new AutomationRun(); - $automationRuns = [ - $automationRunsElement, - ]; - $expectedResponse = new ListAutomationRunsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAutomationRuns($automationRuns); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]'); - $request = (new ListAutomationRunsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listAutomationRuns($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAutomationRuns()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/ListAutomationRuns', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAutomationRunsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]'); - $request = (new ListAutomationRunsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listAutomationRuns($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAutomationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $automationsElement = new Automation(); - $automations = [ - $automationsElement, - ]; - $expectedResponse = new ListAutomationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAutomations($automations); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]'); - $request = (new ListAutomationsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listAutomations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAutomations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/ListAutomations', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAutomationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]'); - $request = (new ListAutomationsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listAutomations($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomTargetTypesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $customTargetTypesElement = new CustomTargetType(); - $customTargetTypes = [ - $customTargetTypesElement, - ]; - $expectedResponse = new ListCustomTargetTypesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setCustomTargetTypes($customTargetTypes); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListCustomTargetTypesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listCustomTargetTypes($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getCustomTargetTypes()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/ListCustomTargetTypes', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomTargetTypesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListCustomTargetTypesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listCustomTargetTypes($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDeliveryPipelinesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $deliveryPipelinesElement = new DeliveryPipeline(); - $deliveryPipelines = [ - $deliveryPipelinesElement, - ]; - $expectedResponse = new ListDeliveryPipelinesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDeliveryPipelines($deliveryPipelines); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListDeliveryPipelinesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listDeliveryPipelines($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDeliveryPipelines()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/ListDeliveryPipelines', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDeliveryPipelinesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListDeliveryPipelinesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listDeliveryPipelines($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDeployPoliciesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $deployPoliciesElement = new DeployPolicy(); - $deployPolicies = [ - $deployPoliciesElement, - ]; - $expectedResponse = new ListDeployPoliciesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDeployPolicies($deployPolicies); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListDeployPoliciesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listDeployPolicies($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDeployPolicies()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/ListDeployPolicies', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDeployPoliciesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListDeployPoliciesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listDeployPolicies($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listJobRunsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $jobRunsElement = new JobRun(); - $jobRuns = [ - $jobRunsElement, - ]; - $expectedResponse = new ListJobRunsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setJobRuns($jobRuns); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]'); - $request = (new ListJobRunsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listJobRuns($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getJobRuns()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/ListJobRuns', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listJobRunsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]'); - $request = (new ListJobRunsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listJobRuns($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listReleasesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $releasesElement = new Release(); - $releases = [ - $releasesElement, - ]; - $expectedResponse = new ListReleasesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setReleases($releases); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]'); - $request = (new ListReleasesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listReleases($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getReleases()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/ListReleases', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listReleasesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]'); - $request = (new ListReleasesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listReleases($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRolloutsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $rolloutsElement = new Rollout(); - $rollouts = [ - $rolloutsElement, - ]; - $expectedResponse = new ListRolloutsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setRollouts($rollouts); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->releaseName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]'); - $request = (new ListRolloutsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listRollouts($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getRollouts()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/ListRollouts', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRolloutsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->releaseName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]'); - $request = (new ListRolloutsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listRollouts($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listTargetsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $targetsElement = new Target(); - $targets = [ - $targetsElement, - ]; - $expectedResponse = new ListTargetsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTargets($targets); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListTargetsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listTargets($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getTargets()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/ListTargets', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listTargetsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListTargetsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listTargets($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function retryJobTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new RetryJobResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedRollout = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]'); - $phaseId = 'phaseId-1676299681'; - $jobId = 'jobId-1154752291'; - $request = (new RetryJobRequest()) - ->setRollout($formattedRollout) - ->setPhaseId($phaseId) - ->setJobId($jobId); - $response = $gapicClient->retryJob($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/RetryJob', $actualFuncCall); - $actualValue = $actualRequestObject->getRollout(); - $this->assertProtobufEquals($formattedRollout, $actualValue); - $actualValue = $actualRequestObject->getPhaseId(); - $this->assertProtobufEquals($phaseId, $actualValue); - $actualValue = $actualRequestObject->getJobId(); - $this->assertProtobufEquals($jobId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function retryJobExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedRollout = $gapicClient->rolloutName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]'); - $phaseId = 'phaseId-1676299681'; - $jobId = 'jobId-1154752291'; - $request = (new RetryJobRequest()) - ->setRollout($formattedRollout) - ->setPhaseId($phaseId) - ->setJobId($jobId); - try { - $gapicClient->retryJob($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function rollbackTargetTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new RollbackTargetResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]'); - $targetId = 'targetId-815576439'; - $rolloutId = 'rolloutId-91142551'; - $request = (new RollbackTargetRequest()) - ->setName($formattedName) - ->setTargetId($targetId) - ->setRolloutId($rolloutId); - $response = $gapicClient->rollbackTarget($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/RollbackTarget', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualRequestObject->getTargetId(); - $this->assertProtobufEquals($targetId, $actualValue); - $actualValue = $actualRequestObject->getRolloutId(); - $this->assertProtobufEquals($rolloutId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function rollbackTargetExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->deliveryPipelineName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]'); - $targetId = 'targetId-815576439'; - $rolloutId = 'rolloutId-91142551'; - $request = (new RollbackTargetRequest()) - ->setName($formattedName) - ->setTargetId($targetId) - ->setRolloutId($rolloutId); - try { - $gapicClient->rollbackTarget($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function terminateJobRunTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new TerminateJobRunResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->jobRunName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]', '[JOB_RUN]'); - $request = (new TerminateJobRunRequest()) - ->setName($formattedName); - $response = $gapicClient->terminateJobRun($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/TerminateJobRun', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function terminateJobRunExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->jobRunName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]', '[ROLLOUT]', '[JOB_RUN]'); - $request = (new TerminateJobRunRequest()) - ->setName($formattedName); - try { - $gapicClient->terminateJobRun($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateAutomationTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateAutomationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $etag = 'etag3123477'; - $suspended = false; - $serviceAccount = 'serviceAccount-1948028253'; - $expectedResponse = new Automation(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setEtag($etag); - $expectedResponse->setSuspended($suspended); - $expectedResponse->setServiceAccount($serviceAccount); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateAutomationTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $updateMask = new FieldMask(); - $automation = new Automation(); - $automationServiceAccount = 'automationServiceAccount-192216401'; - $automation->setServiceAccount($automationServiceAccount); - $automationSelector = new AutomationResourceSelector(); - $automation->setSelector($automationSelector); - $automationRules = []; - $automation->setRules($automationRules); - $request = (new UpdateAutomationRequest()) - ->setUpdateMask($updateMask) - ->setAutomation($automation); - $response = $gapicClient->updateAutomation($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/UpdateAutomation', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $actualValue = $actualApiRequestObject->getAutomation(); - $this->assertProtobufEquals($automation, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateAutomationTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateAutomationExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateAutomationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - $automation = new Automation(); - $automationServiceAccount = 'automationServiceAccount-192216401'; - $automation->setServiceAccount($automationServiceAccount); - $automationSelector = new AutomationResourceSelector(); - $automation->setSelector($automationSelector); - $automationRules = []; - $automation->setRules($automationRules); - $request = (new UpdateAutomationRequest()) - ->setUpdateMask($updateMask) - ->setAutomation($automation); - $response = $gapicClient->updateAutomation($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateAutomationTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateCustomTargetTypeTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateCustomTargetTypeTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $customTargetTypeId = 'customTargetTypeId-2048374240'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $etag = 'etag3123477'; - $expectedResponse = new CustomTargetType(); - $expectedResponse->setName($name); - $expectedResponse->setCustomTargetTypeId($customTargetTypeId); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setEtag($etag); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateCustomTargetTypeTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $updateMask = new FieldMask(); - $customTargetType = new CustomTargetType(); - $request = (new UpdateCustomTargetTypeRequest()) - ->setUpdateMask($updateMask) - ->setCustomTargetType($customTargetType); - $response = $gapicClient->updateCustomTargetType($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/UpdateCustomTargetType', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $actualValue = $actualApiRequestObject->getCustomTargetType(); - $this->assertProtobufEquals($customTargetType, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateCustomTargetTypeTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateCustomTargetTypeExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateCustomTargetTypeTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - $customTargetType = new CustomTargetType(); - $request = (new UpdateCustomTargetTypeRequest()) - ->setUpdateMask($updateMask) - ->setCustomTargetType($customTargetType); - $response = $gapicClient->updateCustomTargetType($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateCustomTargetTypeTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateDeliveryPipelineTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateDeliveryPipelineTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $etag = 'etag3123477'; - $suspended = false; - $expectedResponse = new DeliveryPipeline(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setEtag($etag); - $expectedResponse->setSuspended($suspended); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateDeliveryPipelineTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $updateMask = new FieldMask(); - $deliveryPipeline = new DeliveryPipeline(); - $request = (new UpdateDeliveryPipelineRequest()) - ->setUpdateMask($updateMask) - ->setDeliveryPipeline($deliveryPipeline); - $response = $gapicClient->updateDeliveryPipeline($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/UpdateDeliveryPipeline', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $actualValue = $actualApiRequestObject->getDeliveryPipeline(); - $this->assertProtobufEquals($deliveryPipeline, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateDeliveryPipelineTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateDeliveryPipelineExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateDeliveryPipelineTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - $deliveryPipeline = new DeliveryPipeline(); - $request = (new UpdateDeliveryPipelineRequest()) - ->setUpdateMask($updateMask) - ->setDeliveryPipeline($deliveryPipeline); - $response = $gapicClient->updateDeliveryPipeline($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateDeliveryPipelineTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateDeployPolicyTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateDeployPolicyTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $suspended = false; - $etag = 'etag3123477'; - $expectedResponse = new DeployPolicy(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setSuspended($suspended); - $expectedResponse->setEtag($etag); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateDeployPolicyTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $updateMask = new FieldMask(); - $deployPolicy = new DeployPolicy(); - $deployPolicySelectors = []; - $deployPolicy->setSelectors($deployPolicySelectors); - $deployPolicyRules = []; - $deployPolicy->setRules($deployPolicyRules); - $request = (new UpdateDeployPolicyRequest()) - ->setUpdateMask($updateMask) - ->setDeployPolicy($deployPolicy); - $response = $gapicClient->updateDeployPolicy($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/UpdateDeployPolicy', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $actualValue = $actualApiRequestObject->getDeployPolicy(); - $this->assertProtobufEquals($deployPolicy, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateDeployPolicyTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateDeployPolicyExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateDeployPolicyTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - $deployPolicy = new DeployPolicy(); - $deployPolicySelectors = []; - $deployPolicy->setSelectors($deployPolicySelectors); - $deployPolicyRules = []; - $deployPolicy->setRules($deployPolicyRules); - $request = (new UpdateDeployPolicyRequest()) - ->setUpdateMask($updateMask) - ->setDeployPolicy($deployPolicy); - $response = $gapicClient->updateDeployPolicy($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateDeployPolicyTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateTargetTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateTargetTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $targetId = 'targetId-815576439'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $requireApproval = false; - $etag = 'etag3123477'; - $expectedResponse = new Target(); - $expectedResponse->setName($name); - $expectedResponse->setTargetId($targetId); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setRequireApproval($requireApproval); - $expectedResponse->setEtag($etag); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateTargetTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $updateMask = new FieldMask(); - $target = new Target(); - $request = (new UpdateTargetRequest()) - ->setUpdateMask($updateMask) - ->setTarget($target); - $response = $gapicClient->updateTarget($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/UpdateTarget', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $actualValue = $actualApiRequestObject->getTarget(); - $this->assertProtobufEquals($target, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateTargetTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateTargetExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateTargetTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - $target = new Target(); - $request = (new UpdateTargetRequest()) - ->setUpdateMask($updateMask) - ->setTarget($target); - $response = $gapicClient->updateTarget($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateTargetTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function getLocationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $locationId = 'locationId552319461'; - $displayName = 'displayName1615086568'; - $expectedResponse = new Location(); - $expectedResponse->setName($name2); - $expectedResponse->setLocationId($locationId); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - $request = new GetLocationRequest(); - $response = $gapicClient->getLocation($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/GetLocation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new GetLocationRequest(); - try { - $gapicClient->getLocation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $locationsElement = new Location(); - $locations = [ - $locationsElement, - ]; - $expectedResponse = new ListLocationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setLocations($locations); - $transport->addResponse($expectedResponse); - $request = new ListLocationsRequest(); - $response = $gapicClient->listLocations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListLocationsRequest(); - try { - $gapicClient->listLocations($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - $response = $gapicClient->getIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/GetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIamPolicyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - try { - $gapicClient->getIamPolicy($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - $response = $gapicClient->setIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/SetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPolicy(); - $this->assertProtobufEquals($policy, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setIamPolicyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - try { - $gapicClient->setIamPolicy($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function testIamPermissionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new TestIamPermissionsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - $response = $gapicClient->testIamPermissions($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/TestIamPermissions', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPermissions(); - $this->assertProtobufEquals($permissions, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function testIamPermissionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - try { - $gapicClient->testIamPermissions($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function abandonReleaseAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new AbandonReleaseResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->releaseName('[PROJECT]', '[LOCATION]', '[DELIVERY_PIPELINE]', '[RELEASE]'); - $request = (new AbandonReleaseRequest()) - ->setName($formattedName); - $response = $gapicClient->abandonReleaseAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.deploy.v1.CloudDeploy/AbandonRelease', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -}