artifact = $artifact; } /** * @return DeployArtifact */ public function getArtifact() { return $this->artifact; } /** * Output only. The resource name of the Cloud Build `Build` object that is * used to deploy. Format is * `projects/{project}/locations/{location}/builds/{build}`. * * @param string $build */ public function setBuild($build) { $this->build = $build; } /** * @return string */ public function getBuild() { return $this->build; } /** * Output only. The reason the deploy failed. This will always be unspecified * while the deploy is in progress or if it succeeded. * * Accepted values: FAILURE_CAUSE_UNSPECIFIED, CLOUD_BUILD_UNAVAILABLE, * EXECUTION_FAILED, DEADLINE_EXCEEDED, MISSING_RESOURCES_FOR_CANARY, * CLOUD_BUILD_REQUEST_FAILED, DEPLOY_FEATURE_NOT_SUPPORTED * * @param self::FAILURE_CAUSE_* $failureCause */ public function setFailureCause($failureCause) { $this->failureCause = $failureCause; } /** * @return self::FAILURE_CAUSE_* */ public function getFailureCause() { return $this->failureCause; } /** * Output only. Additional information about the deploy failure, if available. * * @param string $failureMessage */ public function setFailureMessage($failureMessage) { $this->failureMessage = $failureMessage; } /** * @return string */ public function getFailureMessage() { return $this->failureMessage; } /** * Output only. Metadata containing information about the deploy job run. * * @param DeployJobRunMetadata $metadata */ public function setMetadata(DeployJobRunMetadata $metadata) { $this->metadata = $metadata; } /** * @return DeployJobRunMetadata */ public function getMetadata() { return $this->metadata; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(DeployJobRun::class, 'Google_Service_CloudDeploy_DeployJobRun');