annotations = $annotations; } /** * @return string[] */ public function getAnnotations() { return $this->annotations; } /** * Optional. Settings for the Binary Authorization feature. * * @param GoogleCloudRunV2BinaryAuthorization $binaryAuthorization */ public function setBinaryAuthorization(GoogleCloudRunV2BinaryAuthorization $binaryAuthorization) { $this->binaryAuthorization = $binaryAuthorization; } /** * @return GoogleCloudRunV2BinaryAuthorization */ public function getBinaryAuthorization() { return $this->binaryAuthorization; } /** * Arbitrary identifier for the API client. * * @param string $client */ public function setClient($client) { $this->client = $client; } /** * @return string */ public function getClient() { return $this->client; } /** * 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 Conditions of all other associated sub-resources. They * contain additional diagnostics information in case the WorkerPool does not * reach its Serving state. See comments in `reconciling` for additional * information on reconciliation process in Cloud Run. * * @param GoogleCloudRunV2Condition[] $conditions */ public function setConditions($conditions) { $this->conditions = $conditions; } /** * @return GoogleCloudRunV2Condition[] */ public function getConditions() { return $this->conditions; } /** * 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; } /** * Deprecated: Not supported, and ignored by Cloud Run. * * @deprecated * @param string[] $customAudiences */ public function setCustomAudiences($customAudiences) { $this->customAudiences = $customAudiences; } /** * @deprecated * @return string[] */ public function getCustomAudiences() { return $this->customAudiences; } /** * Output only. 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; } /** * User-provided description of the WorkerPool. This field currently has a * 512-character limit. * * @param string $description */ public function setDescription($description) { $this->description = $description; } /** * @return string */ public function getDescription() { return $this->description; } /** * Optional. 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; } /** * Output only. For a deleted resource, the time after which it will be * permamently deleted. * * @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. Please note that unlike v1, this is an int64 * value. As with most Google APIs, its JSON representation will be a `string` * instead of an `integer`. * * @param string $generation */ public function setGeneration($generation) { $this->generation = $generation; } /** * @return string */ public function getGeneration() { return $this->generation; } /** * Output only. Detailed status information for corresponding instance splits. * See comments in `reconciling` for additional information on reconciliation * process in Cloud Run. * * @param GoogleCloudRunV2InstanceSplitStatus[] $instanceSplitStatuses */ public function setInstanceSplitStatuses($instanceSplitStatuses) { $this->instanceSplitStatuses = $instanceSplitStatuses; } /** * @return GoogleCloudRunV2InstanceSplitStatus[] */ public function getInstanceSplitStatuses() { return $this->instanceSplitStatuses; } /** * Optional. Specifies how to distribute instances over a collection of * Revisions belonging to the WorkerPool. If instance split is empty or not * provided, defaults to 100% instances assigned to the latest `Ready` * Revision. * * @param GoogleCloudRunV2InstanceSplit[] $instanceSplits */ public function setInstanceSplits($instanceSplits) { $this->instanceSplits = $instanceSplits; } /** * @return GoogleCloudRunV2InstanceSplit[] */ public function getInstanceSplits() { return $this->instanceSplits; } /** * Optional. 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. Cloud Run API v2 does * not support labels with `run.googleapis.com`, `cloud.googleapis.com`, * `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they * will be rejected. All system labels in v1 now have a corresponding field in * v2 WorkerPool. * * @param string[] $labels */ public function setLabels($labels) { $this->labels = $labels; } /** * @return string[] */ public function getLabels() { return $this->labels; } /** * Output only. Email address of the last authenticated modifier. * * @param string $lastModifier */ public function setLastModifier($lastModifier) { $this->lastModifier = $lastModifier; } /** * @return string */ public function getLastModifier() { return $this->lastModifier; } /** * Output only. Name of the last created revision. See comments in * `reconciling` for additional information on reconciliation process in Cloud * Run. * * @param string $latestCreatedRevision */ public function setLatestCreatedRevision($latestCreatedRevision) { $this->latestCreatedRevision = $latestCreatedRevision; } /** * @return string */ public function getLatestCreatedRevision() { return $this->latestCreatedRevision; } /** * Output only. Name of the latest revision that is serving workloads. See * comments in `reconciling` for additional information on reconciliation * process in Cloud Run. * * @param string $latestReadyRevision */ public function setLatestReadyRevision($latestReadyRevision) { $this->latestReadyRevision = $latestReadyRevision; } /** * @return string */ public function getLatestReadyRevision() { return $this->latestReadyRevision; } /** * Optional. The launch stage as defined by [Google Cloud Platform Launch * Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports * `ALPHA`, `BETA`, and `GA`. If no value is specified, GA is assumed. Set the * launch stage to a preview stage on input to allow use of preview features * in that stage. On read (or output), describes whether the resource uses * preview features. For example, if ALPHA is provided as input, but only BETA * and GA-level features are used, this field will be BETA on output. * * 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; } /** * The fully qualified name of this WorkerPool. In CreateWorkerPoolRequest, * this field is ignored, and instead composed from * CreateWorkerPoolRequest.parent and CreateWorkerPoolRequest.worker_id. * Format: `projects/{project}/locations/{location}/workerPools/{worker_id}` * * @param string $name */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * Output only. The generation of this WorkerPool currently serving workloads. * See comments in `reconciling` for additional information on reconciliation * process in Cloud Run. Please note that unlike v1, this is an int64 value. * As with most Google APIs, its JSON representation will be a `string` * instead of an `integer`. * * @param string $observedGeneration */ public function setObservedGeneration($observedGeneration) { $this->observedGeneration = $observedGeneration; } /** * @return string */ public function getObservedGeneration() { return $this->observedGeneration; } /** * Output only. Returns true if the WorkerPool is currently being acted upon * by the system to bring it into the desired state. When a new WorkerPool is * created, or an existing one is updated, Cloud Run will asynchronously * perform all necessary steps to bring the WorkerPool to the desired serving * state. This process is called reconciliation. While reconciliation is in * process, `observed_generation`, `latest_ready_revison`, * `instance_split_statuses`, and `uri` will have transient values that might * mismatch the intended state: Once reconciliation is over (and this field is * false), there are two possible outcomes: reconciliation succeeded and the * serving state matches the WorkerPool, or there was an error, and * reconciliation failed. This state can be found in * `terminal_condition.state`. If reconciliation succeeded, the following * fields will match: `instance_splits` and `instance_split_statuses`, * `observed_generation` and `generation`, `latest_ready_revision` and * `latest_created_revision`. If reconciliation failed, * `instance_split_statuses`, `observed_generation`, and * `latest_ready_revision` will have the state of the last serving revision, * or empty for newly created WorkerPools. Additional information on the * failure can be found in `terminal_condition` and `conditions`. * * @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; } /** * Optional. Specifies worker-pool-level scaling settings * * @param GoogleCloudRunV2WorkerPoolScaling $scaling */ public function setScaling(GoogleCloudRunV2WorkerPoolScaling $scaling) { $this->scaling = $scaling; } /** * @return GoogleCloudRunV2WorkerPoolScaling */ public function getScaling() { return $this->scaling; } /** * Required. The template used to create revisions for this WorkerPool. * * @param GoogleCloudRunV2WorkerPoolRevisionTemplate $template */ public function setTemplate(GoogleCloudRunV2WorkerPoolRevisionTemplate $template) { $this->template = $template; } /** * @return GoogleCloudRunV2WorkerPoolRevisionTemplate */ public function getTemplate() { return $this->template; } /** * Output only. The Condition of this WorkerPool, containing its readiness * status, and detailed error information in case it did not reach a serving * state. See comments in `reconciling` for additional information on * reconciliation process in Cloud Run. * * @param GoogleCloudRunV2Condition $terminalCondition */ public function setTerminalCondition(GoogleCloudRunV2Condition $terminalCondition) { $this->terminalCondition = $terminalCondition; } /** * @return GoogleCloudRunV2Condition */ public function getTerminalCondition() { return $this->terminalCondition; } /** * Output only. Indicates whether Cloud Run Threat Detection monitoring is * enabled for the parent project of this worker pool. * * @param bool $threatDetectionEnabled */ public function setThreatDetectionEnabled($threatDetectionEnabled) { $this->threatDetectionEnabled = $threatDetectionEnabled; } /** * @return bool */ public function getThreatDetectionEnabled() { return $this->threatDetectionEnabled; } /** * Output only. Server assigned unique identifier for the trigger. 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; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(GoogleCloudRunV2WorkerPool::class, 'Google_Service_CloudRun_GoogleCloudRunV2WorkerPool');