annotations = $annotations; } /** * @return string[] */ public function getAnnotations() { return $this->annotations; } /** * Output only. Time when this workstation was created. * * @param string $createTime */ public function setCreateTime($createTime) { $this->createTime = $createTime; } /** * @return string */ public function getCreateTime() { return $this->createTime; } /** * Output only. Time when this workstation was soft-deleted. * * @param string $deleteTime */ public function setDeleteTime($deleteTime) { $this->deleteTime = $deleteTime; } /** * @return string */ public function getDeleteTime() { return $this->deleteTime; } /** * Optional. Human-readable name for this workstation. * * @param string $displayName */ public function setDisplayName($displayName) { $this->displayName = $displayName; } /** * @return string */ public function getDisplayName() { return $this->displayName; } /** * Optional. Environment variables passed to the workstation container's * entrypoint. * * @param string[] $env */ public function setEnv($env) { $this->env = $env; } /** * @return string[] */ public function getEnv() { return $this->env; } /** * Optional. Checksum computed by the server. May be sent on update and delete * requests to make sure that the client has an up-to-date value before * proceeding. * * @param string $etag */ public function setEtag($etag) { $this->etag = $etag; } /** * @return string */ public function getEtag() { return $this->etag; } /** * Output only. Host to which clients can send HTTPS traffic that will be * received by the workstation. Authorized traffic will be received to the * workstation as HTTP on port 80. To send traffic to a different port, * clients may prefix the host with the destination port in the format * `{port}-{host}`. * * @param string $host */ public function setHost($host) { $this->host = $host; } /** * @return string */ public function getHost() { return $this->host; } /** * Output only. The name of the Google Cloud KMS encryption key used to * encrypt this workstation. The KMS key can only be configured in the * WorkstationConfig. The expected format is * `projects/locations/keyRings/cryptoKeys`. * * @param string $kmsKey */ public function setKmsKey($kmsKey) { $this->kmsKey = $kmsKey; } /** * @return string */ public function getKmsKey() { return $this->kmsKey; } /** * Optional. [Labels](https://cloud.google.com/workstations/docs/label- * resources) that are applied to the workstation and that are also propagated * to the underlying Compute Engine resources. * * @param string[] $labels */ public function setLabels($labels) { $this->labels = $labels; } /** * @return string[] */ public function getLabels() { return $this->labels; } /** * Identifier. Full name of this workstation. * * @param string $name */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * Output only. Indicates whether this workstation is currently being updated * to match its intended state. * * @param bool $reconciling */ public function setReconciling($reconciling) { $this->reconciling = $reconciling; } /** * @return bool */ public function getReconciling() { return $this->reconciling; } /** * Optional. Output only. Runtime host for the workstation when in * STATE_RUNNING. * * @param RuntimeHost $runtimeHost */ public function setRuntimeHost(RuntimeHost $runtimeHost) { $this->runtimeHost = $runtimeHost; } /** * @return RuntimeHost */ public function getRuntimeHost() { return $this->runtimeHost; } /** * Optional. The source workstation from which this workstation's persistent * directories were cloned on creation. * * @param string $sourceWorkstation */ public function setSourceWorkstation($sourceWorkstation) { $this->sourceWorkstation = $sourceWorkstation; } /** * @return string */ public function getSourceWorkstation() { return $this->sourceWorkstation; } /** * Output only. Time when this workstation was most recently successfully * started, regardless of the workstation's initial state. * * @param string $startTime */ public function setStartTime($startTime) { $this->startTime = $startTime; } /** * @return string */ public function getStartTime() { return $this->startTime; } /** * Output only. Current state of the workstation. * * Accepted values: STATE_UNSPECIFIED, STATE_STARTING, STATE_RUNNING, * STATE_STOPPING, STATE_STOPPED * * @param self::STATE_* $state */ public function setState($state) { $this->state = $state; } /** * @return self::STATE_* */ public function getState() { return $this->state; } /** * Output only. A system-assigned unique identifier for this workstation. * * @param string $uid */ public function setUid($uid) { $this->uid = $uid; } /** * @return string */ public function getUid() { return $this->uid; } /** * Output only. Time when this workstation was most recently updated. * * @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(Workstation::class, 'Google_Service_CloudWorkstations_Workstation');