annotations = $annotations; } /** * @return string[] */ public function getAnnotations() { return $this->annotations; } /** * Output only. Arbitrary identifier for the API client. * * @param string $client */ public function setClient($client) { $this->client = $client; } /** * @return string */ public function getClient() { return $this->client; } /** * Output only. Arbitrary version identifier for the API client. * * @param string $clientVersion */ public function setClientVersion($clientVersion) { $this->clientVersion = $clientVersion; } /** * @return string */ public function getClientVersion() { return $this->clientVersion; } /** * Output only. The Condition of this Revision, containing its readiness * status, and detailed error information in case it did not reach a serving * state. * * @param GoogleCloudRunV2Condition[] $conditions */ public function setConditions($conditions) { $this->conditions = $conditions; } /** * @return GoogleCloudRunV2Condition[] */ public function getConditions() { return $this->conditions; } /** * Holds the list which define the units of execution for this Revision. * * @param GoogleCloudRunV2Container[] $containers */ public function setContainers($containers) { $this->containers = $containers; } /** * @return GoogleCloudRunV2Container[] */ public function getContainers() { return $this->containers; } /** * Output only. The creation time. * * @param string $createTime */ public function setCreateTime($createTime) { $this->createTime = $createTime; } /** * @return string */ public function getCreateTime() { return $this->createTime; } /** * Output only. Email address of the authenticated creator. * * @param string $creator */ public function setCreator($creator) { $this->creator = $creator; } /** * @return string */ public function getCreator() { return $this->creator; } /** * Output only. For a deleted resource, the deletion time. It is only * populated as a response to a Delete request. * * @param string $deleteTime */ public function setDeleteTime($deleteTime) { $this->deleteTime = $deleteTime; } /** * @return string */ public function getDeleteTime() { return $this->deleteTime; } /** * A reference to a customer managed encryption key (CMEK) to use to encrypt * this container image. For more information, go to * https://cloud.google.com/run/docs/securing/using-cmek * * @param string $encryptionKey */ public function setEncryptionKey($encryptionKey) { $this->encryptionKey = $encryptionKey; } /** * @return string */ public function getEncryptionKey() { return $this->encryptionKey; } /** * The action to take if the encryption key is revoked. * * Accepted values: ENCRYPTION_KEY_REVOCATION_ACTION_UNSPECIFIED, PREVENT_NEW, * SHUTDOWN * * @param self::ENCRYPTION_KEY_REVOCATION_ACTION_* $encryptionKeyRevocationAction */ public function setEncryptionKeyRevocationAction($encryptionKeyRevocationAction) { $this->encryptionKeyRevocationAction = $encryptionKeyRevocationAction; } /** * @return self::ENCRYPTION_KEY_REVOCATION_ACTION_* */ public function getEncryptionKeyRevocationAction() { return $this->encryptionKeyRevocationAction; } /** * If encryption_key_revocation_action is SHUTDOWN, the duration before * shutting down all instances. The minimum increment is 1 hour. * * @param string $encryptionKeyShutdownDuration */ public function setEncryptionKeyShutdownDuration($encryptionKeyShutdownDuration) { $this->encryptionKeyShutdownDuration = $encryptionKeyShutdownDuration; } /** * @return string */ public function getEncryptionKeyShutdownDuration() { return $this->encryptionKeyShutdownDuration; } /** * Output only. A system-generated fingerprint for this version of the * resource. May be used to detect modification conflict during updates. * * @param string $etag */ public function setEtag($etag) { $this->etag = $etag; } /** * @return string */ public function getEtag() { return $this->etag; } /** * The execution environment being used to host this Revision. * * Accepted values: EXECUTION_ENVIRONMENT_UNSPECIFIED, * EXECUTION_ENVIRONMENT_GEN1, EXECUTION_ENVIRONMENT_GEN2 * * @param self::EXECUTION_ENVIRONMENT_* $executionEnvironment */ public function setExecutionEnvironment($executionEnvironment) { $this->executionEnvironment = $executionEnvironment; } /** * @return self::EXECUTION_ENVIRONMENT_* */ public function getExecutionEnvironment() { return $this->executionEnvironment; } /** * Output only. For a deleted resource, the time after which it will be * permamently deleted. It is only populated as a response to a Delete * request. * * @param string $expireTime */ public function setExpireTime($expireTime) { $this->expireTime = $expireTime; } /** * @return string */ public function getExpireTime() { return $this->expireTime; } /** * Output only. A number that monotonically increases every time the user * modifies the desired state. * * @param string $generation */ public function setGeneration($generation) { $this->generation = $generation; } /** * @return string */ public function getGeneration() { return $this->generation; } /** * Optional. Output only. True if GPU zonal redundancy is disabled on this * revision. * * @param bool $gpuZonalRedundancyDisabled */ public function setGpuZonalRedundancyDisabled($gpuZonalRedundancyDisabled) { $this->gpuZonalRedundancyDisabled = $gpuZonalRedundancyDisabled; } /** * @return bool */ public function getGpuZonalRedundancyDisabled() { return $this->gpuZonalRedundancyDisabled; } /** * Output only. Unstructured key value map that can be used to organize and * categorize objects. User-provided labels are shared with Google's billing * system, so they can be used to filter, or break down billing charges by * team, component, environment, state, etc. For more information, visit * https://cloud.google.com/resource-manager/docs/creating-managing-labels or * https://cloud.google.com/run/docs/configuring/labels. * * @param string[] $labels */ public function setLabels($labels) { $this->labels = $labels; } /** * @return string[] */ public function getLabels() { return $this->labels; } /** * The least stable launch stage needed to create this resource, as defined by * [Google Cloud Platform Launch * Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports * `ALPHA`, `BETA`, and `GA`. Note that this value might not be what was used * as input. For example, if ALPHA was provided as input in the parent * resource, but only BETA and GA-level features are used, this field will be * BETA. * * Accepted values: LAUNCH_STAGE_UNSPECIFIED, UNIMPLEMENTED, PRELAUNCH, * EARLY_ACCESS, ALPHA, BETA, GA, DEPRECATED * * @param self::LAUNCH_STAGE_* $launchStage */ public function setLaunchStage($launchStage) { $this->launchStage = $launchStage; } /** * @return self::LAUNCH_STAGE_* */ public function getLaunchStage() { return $this->launchStage; } /** * Output only. The Google Console URI to obtain logs for the Revision. * * @param string $logUri */ public function setLogUri($logUri) { $this->logUri = $logUri; } /** * @return string */ public function getLogUri() { return $this->logUri; } /** * Sets the maximum number of requests that each serving instance can receive. * * @param int $maxInstanceRequestConcurrency */ public function setMaxInstanceRequestConcurrency($maxInstanceRequestConcurrency) { $this->maxInstanceRequestConcurrency = $maxInstanceRequestConcurrency; } /** * @return int */ public function getMaxInstanceRequestConcurrency() { return $this->maxInstanceRequestConcurrency; } /** * Output only. The unique name of this Revision. * * @param string $name */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * The node selector for the revision. * * @param GoogleCloudRunV2NodeSelector $nodeSelector */ public function setNodeSelector(GoogleCloudRunV2NodeSelector $nodeSelector) { $this->nodeSelector = $nodeSelector; } /** * @return GoogleCloudRunV2NodeSelector */ public function getNodeSelector() { return $this->nodeSelector; } /** * Output only. The generation of this Revision currently serving traffic. See * comments in `reconciling` for additional information on reconciliation * process in Cloud Run. * * @param string $observedGeneration */ public function setObservedGeneration($observedGeneration) { $this->observedGeneration = $observedGeneration; } /** * @return string */ public function getObservedGeneration() { return $this->observedGeneration; } /** * Output only. Indicates whether the resource's reconciliation is still in * progress. See comments in `Service.reconciling` for additional information * on reconciliation process in Cloud Run. * * @param bool $reconciling */ public function setReconciling($reconciling) { $this->reconciling = $reconciling; } /** * @return bool */ public function getReconciling() { return $this->reconciling; } /** * Output only. Reserved for future use. * * @param bool $satisfiesPzs */ public function setSatisfiesPzs($satisfiesPzs) { $this->satisfiesPzs = $satisfiesPzs; } /** * @return bool */ public function getSatisfiesPzs() { return $this->satisfiesPzs; } /** * Scaling settings for this revision. * * @param GoogleCloudRunV2RevisionScaling $scaling */ public function setScaling(GoogleCloudRunV2RevisionScaling $scaling) { $this->scaling = $scaling; } /** * @return GoogleCloudRunV2RevisionScaling */ public function getScaling() { return $this->scaling; } /** * Output only. The current effective scaling settings for the revision. * * @param GoogleCloudRunV2RevisionScalingStatus $scalingStatus */ public function setScalingStatus(GoogleCloudRunV2RevisionScalingStatus $scalingStatus) { $this->scalingStatus = $scalingStatus; } /** * @return GoogleCloudRunV2RevisionScalingStatus */ public function getScalingStatus() { return $this->scalingStatus; } /** * Output only. The name of the parent service. * * @param string $service */ public function setService($service) { $this->service = $service; } /** * @return string */ public function getService() { return $this->service; } /** * Email address of the IAM service account associated with the revision of * the service. The service account represents the identity of the running * revision, and determines what permissions the revision has. * * @param string $serviceAccount */ public function setServiceAccount($serviceAccount) { $this->serviceAccount = $serviceAccount; } /** * @return string */ public function getServiceAccount() { return $this->serviceAccount; } /** * Enables service mesh connectivity. * * @param GoogleCloudRunV2ServiceMesh $serviceMesh */ public function setServiceMesh(GoogleCloudRunV2ServiceMesh $serviceMesh) { $this->serviceMesh = $serviceMesh; } /** * @return GoogleCloudRunV2ServiceMesh */ public function getServiceMesh() { return $this->serviceMesh; } /** * Enable session affinity. * * @param bool $sessionAffinity */ public function setSessionAffinity($sessionAffinity) { $this->sessionAffinity = $sessionAffinity; } /** * @return bool */ public function getSessionAffinity() { return $this->sessionAffinity; } /** * Max allowed time for an instance to respond to a request. * * @param string $timeout */ public function setTimeout($timeout) { $this->timeout = $timeout; } /** * @return string */ public function getTimeout() { return $this->timeout; } /** * Output only. Server assigned unique identifier for the Revision. The value * is a UUID4 string and guaranteed to remain unchanged until the resource is * deleted. * * @param string $uid */ public function setUid($uid) { $this->uid = $uid; } /** * @return string */ public function getUid() { return $this->uid; } /** * Output only. The last-modified time. * * @param string $updateTime */ public function setUpdateTime($updateTime) { $this->updateTime = $updateTime; } /** * @return string */ public function getUpdateTime() { return $this->updateTime; } /** * A list of Volumes to make available to containers. * * @param GoogleCloudRunV2Volume[] $volumes */ public function setVolumes($volumes) { $this->volumes = $volumes; } /** * @return GoogleCloudRunV2Volume[] */ public function getVolumes() { return $this->volumes; } /** * VPC Access configuration for this Revision. For more information, visit * https://cloud.google.com/run/docs/configuring/connecting-vpc. * * @param GoogleCloudRunV2VpcAccess $vpcAccess */ public function setVpcAccess(GoogleCloudRunV2VpcAccess $vpcAccess) { $this->vpcAccess = $vpcAccess; } /** * @return GoogleCloudRunV2VpcAccess */ public function getVpcAccess() { return $this->vpcAccess; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(GoogleCloudRunV2Revision::class, 'Google_Service_CloudRun_GoogleCloudRunV2Revision');