diff --git a/Deploy/metadata/V1/CloudDeploy.php b/Deploy/metadata/V1/CloudDeploy.php
index db7791bd3321..43becbfe44a2 100644
Binary files a/Deploy/metadata/V1/CloudDeploy.php and b/Deploy/metadata/V1/CloudDeploy.php differ
diff --git a/Deploy/src/V1/CanaryDeployment.php b/Deploy/src/V1/CanaryDeployment.php
index 7eeb3e517bce..98f1f53db40a 100644
--- a/Deploy/src/V1/CanaryDeployment.php
+++ b/Deploy/src/V1/CanaryDeployment.php
@@ -29,6 +29,20 @@ class CanaryDeployment extends \Google\Protobuf\Internal\Message
* Generated from protobuf field bool verify = 2;
*/
private $verify = false;
+ /**
+ * Optional. Configuration for the predeploy job of the first phase. If this
+ * is not configured, predeploy job will not be present.
+ *
+ * Generated from protobuf field .google.cloud.deploy.v1.Predeploy predeploy = 3 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ private $predeploy = null;
+ /**
+ * Optional. Configuration for the postdeploy job of the last phase. If this
+ * is not configured, postdeploy job will not be present.
+ *
+ * Generated from protobuf field .google.cloud.deploy.v1.Postdeploy postdeploy = 4 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ private $postdeploy = null;
/**
* Constructor.
@@ -42,6 +56,12 @@ class CanaryDeployment extends \Google\Protobuf\Internal\Message
* 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, predeploy job will not be present.
+ * @type \Google\Cloud\Deploy\V1\Postdeploy $postdeploy
+ * Optional. Configuration for the postdeploy job of the last phase. If this
+ * is not configured, postdeploy job will not be present.
* }
*/
public function __construct($data = NULL) {
@@ -105,5 +125,81 @@ public function setVerify($var)
return $this;
}
+ /**
+ * Optional. Configuration for the predeploy job of the first phase. If this
+ * is not configured, predeploy job will not be present.
+ *
+ * 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, predeploy job will not be present.
+ *
+ * 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, postdeploy job will not be present.
+ *
+ * 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, postdeploy job will not be present.
+ *
+ * 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/Deploy/src/V1/CustomCanaryDeployment/PhaseConfig.php b/Deploy/src/V1/CustomCanaryDeployment/PhaseConfig.php
index 52b9c8bb8c40..b6e7cc147719 100644
--- a/Deploy/src/V1/CustomCanaryDeployment/PhaseConfig.php
+++ b/Deploy/src/V1/CustomCanaryDeployment/PhaseConfig.php
@@ -46,6 +46,20 @@ class PhaseConfig extends \Google\Protobuf\Internal\Message
* Generated from protobuf field bool verify = 4;
*/
private $verify = false;
+ /**
+ * Optional. Configuration for the predeploy job of this phase. If this is
+ * not configured, predeploy job will not be present for this phase.
+ *
+ * Generated from protobuf field .google.cloud.deploy.v1.Predeploy predeploy = 5 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ private $predeploy = null;
+ /**
+ * Optional. Configuration for the postdeploy job of this phase. If this is
+ * not configured, postdeploy job will not be present for this phase.
+ *
+ * Generated from protobuf field .google.cloud.deploy.v1.Postdeploy postdeploy = 6 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ private $postdeploy = null;
/**
* Constructor.
@@ -67,6 +81,12 @@ class PhaseConfig extends \Google\Protobuf\Internal\Message
* `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, predeploy job will not be present for this phase.
+ * @type \Google\Cloud\Deploy\V1\Postdeploy $postdeploy
+ * Optional. Configuration for the postdeploy job of this phase. If this is
+ * not configured, postdeploy job will not be present for this phase.
* }
*/
public function __construct($data = NULL) {
@@ -190,6 +210,82 @@ public function setVerify($var)
return $this;
}
+ /**
+ * Optional. Configuration for the predeploy job of this phase. If this is
+ * not configured, predeploy job will not be present 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, predeploy job will not be present 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, postdeploy job will not be present 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, postdeploy job will not be present 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;
+ }
+
}
diff --git a/Deploy/src/V1/DeploymentJobs.php b/Deploy/src/V1/DeploymentJobs.php
index 503b12a2ce6f..7ff52e0e1d6c 100644
--- a/Deploy/src/V1/DeploymentJobs.php
+++ b/Deploy/src/V1/DeploymentJobs.php
@@ -27,6 +27,20 @@ class DeploymentJobs extends \Google\Protobuf\Internal\Message
* Generated from protobuf field .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private $verify_job = null;
+ /**
+ * Output only. The predeploy Job. This is the predeploy job in the phase.
+ * This is the first job of the phase.
+ *
+ * Generated from protobuf field .google.cloud.deploy.v1.Job predeploy_job = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ private $predeploy_job = null;
+ /**
+ * Output only. The postdeploy Job. This is the postdeploy job in the phase.
+ * This is the last job of the phase.
+ *
+ * Generated from protobuf field .google.cloud.deploy.v1.Job postdeploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ private $postdeploy_job = null;
/**
* Constructor.
@@ -38,6 +52,12 @@ class DeploymentJobs extends \Google\Protobuf\Internal\Message
* 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. This is the predeploy job in the phase.
+ * This is the first job of the phase.
+ * @type \Google\Cloud\Deploy\V1\Job $postdeploy_job
+ * Output only. The postdeploy Job. This is the postdeploy job in the phase.
+ * This is the last job of the phase.
* }
*/
public function __construct($data = NULL) {
@@ -117,5 +137,81 @@ public function setVerifyJob($var)
return $this;
}
+ /**
+ * Output only. The predeploy Job. This is the predeploy job in the phase.
+ * This is the first job of 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. This is the predeploy job in the phase.
+ * This is the first job of 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. This is the postdeploy job in the phase.
+ * This is the last job of 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. This is the postdeploy job in the phase.
+ * This is the last job of 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/Deploy/src/V1/ExecutionConfig/ExecutionEnvironmentUsage.php b/Deploy/src/V1/ExecutionConfig/ExecutionEnvironmentUsage.php
index f0fd63ba1637..ea144554d91c 100644
--- a/Deploy/src/V1/ExecutionConfig/ExecutionEnvironmentUsage.php
+++ b/Deploy/src/V1/ExecutionConfig/ExecutionEnvironmentUsage.php
@@ -37,12 +37,26 @@ class ExecutionEnvironmentUsage
* 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)
diff --git a/Deploy/src/V1/Job.php b/Deploy/src/V1/Job.php
index f28bd824b542..73f7c9ba2357 100644
--- a/Deploy/src/V1/Job.php
+++ b/Deploy/src/V1/Job.php
@@ -63,6 +63,10 @@ class Job extends \Google\Protobuf\Internal\Message
* 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
@@ -244,6 +248,68 @@ public function setVerifyJob($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.
*
diff --git a/Deploy/src/V1/JobRun.php b/Deploy/src/V1/JobRun.php
index 579297bd6280..80d345f4eeb3 100644
--- a/Deploy/src/V1/JobRun.php
+++ b/Deploy/src/V1/JobRun.php
@@ -106,6 +106,10 @@ class JobRun extends \Google\Protobuf\Internal\Message
* 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
@@ -427,6 +431,68 @@ public function setVerifyJobRun($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`.
*
diff --git a/Deploy/src/V1/Postdeploy.php b/Deploy/src/V1/Postdeploy.php
new file mode 100644
index 000000000000..51fecf576910
--- /dev/null
+++ b/Deploy/src/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/Deploy/src/V1/PostdeployJob.php b/Deploy/src/V1/PostdeployJob.php
new file mode 100644
index 000000000000..44bcfbac945d
--- /dev/null
+++ b/Deploy/src/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/Deploy/src/V1/PostdeployJobRun.php b/Deploy/src/V1/PostdeployJobRun.php
new file mode 100644
index 000000000000..073a5ad3e207
--- /dev/null
+++ b/Deploy/src/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) = {
+ */
+ private $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];
+ */
+ private $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];
+ */
+ private $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/Deploy/src/V1/PostdeployJobRun/FailureCause.php b/Deploy/src/V1/PostdeployJobRun/FailureCause.php
new file mode 100644
index 000000000000..26010488f11d
--- /dev/null
+++ b/Deploy/src/V1/PostdeployJobRun/FailureCause.php
@@ -0,0 +1,80 @@
+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 build 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);
+ }
+}
+
+
diff --git a/Deploy/src/V1/Predeploy.php b/Deploy/src/V1/Predeploy.php
new file mode 100644
index 000000000000..2efbb9f5855a
--- /dev/null
+++ b/Deploy/src/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/Deploy/src/V1/PredeployJob.php b/Deploy/src/V1/PredeployJob.php
new file mode 100644
index 000000000000..d11e91272b59
--- /dev/null
+++ b/Deploy/src/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/Deploy/src/V1/PredeployJobRun.php b/Deploy/src/V1/PredeployJobRun.php
new file mode 100644
index 000000000000..0723018b0441
--- /dev/null
+++ b/Deploy/src/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) = {
+ */
+ private $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];
+ */
+ private $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];
+ */
+ private $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/Deploy/src/V1/PredeployJobRun/FailureCause.php b/Deploy/src/V1/PredeployJobRun/FailureCause.php
new file mode 100644
index 000000000000..5a185802f654
--- /dev/null
+++ b/Deploy/src/V1/PredeployJobRun/FailureCause.php
@@ -0,0 +1,80 @@
+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 build 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);
+ }
+}
+
+
diff --git a/Deploy/src/V1/Release/TargetRender/FailureCause.php b/Deploy/src/V1/Release/TargetRender/FailureCause.php
index 2959fa47f1f7..7345b6ace592 100644
--- a/Deploy/src/V1/Release/TargetRender/FailureCause.php
+++ b/Deploy/src/V1/Release/TargetRender/FailureCause.php
@@ -41,12 +41,21 @@ class FailureCause
* Generated from protobuf enum CLOUD_BUILD_REQUEST_FAILED = 3;
*/
const CLOUD_BUILD_REQUEST_FAILED = 3;
+ /**
+ * 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;
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::CUSTOM_ACTION_NOT_FOUND => 'CUSTOM_ACTION_NOT_FOUND',
];
public static function name($value)
diff --git a/Deploy/src/V1/Standard.php b/Deploy/src/V1/Standard.php
index 47d3b8955f5f..f031263eaf22 100644
--- a/Deploy/src/V1/Standard.php
+++ b/Deploy/src/V1/Standard.php
@@ -21,6 +21,20 @@ class Standard extends \Google\Protobuf\Internal\Message
* Generated from protobuf field bool verify = 1;
*/
private $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];
+ */
+ private $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];
+ */
+ private $postdeploy = null;
/**
* Constructor.
@@ -30,6 +44,12 @@ class Standard extends \Google\Protobuf\Internal\Message
*
* @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) {
@@ -63,5 +83,81 @@ public function setVerify($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;
+ }
+
}