Skip to content

Commit 0600436

Browse files
1 parent 496b9af commit 0600436

8 files changed

Lines changed: 64 additions & 47 deletions

src/CloudWorkstations/Resource/ProjectsLocations.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,16 @@ public function get($name, $optParams = [])
4646
}
4747
/**
4848
* Lists information about the supported locations for this service. This method
49-
* can be called in two ways: * **List all public locations:** Use the path `GET
50-
* /v1/locations`. * **List project-visible locations:** Use the path `GET
51-
* /v1/projects/{project_id}/locations`. This may include public locations as
52-
* well as private or other locations specifically visible to the project.
53-
* (locations.listProjectsLocations)
49+
* lists locations based on the resource scope provided in the
50+
* [ListLocationsRequest.name] field: * **Global locations**: If `name` is
51+
* empty, the method lists the public locations available to all projects. *
52+
* **Project-specific locations**: If `name` follows the format
53+
* `projects/{project}`, the method lists locations visible to that specific
54+
* project. This includes public, private, or other project-specific locations
55+
* enabled for the project. For gRPC and client library implementations, the
56+
* resource name is passed as the `name` field. For direct service calls, the
57+
* resource name is incorporated into the request path based on the specific
58+
* service implementation and version. (locations.listProjectsLocations)
5459
*
5560
* @param string $name The resource that owns the locations collection, if
5661
* applicable.

src/CloudWorkstations/Resource/ProjectsLocationsWorkstationClusters.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class ProjectsLocationsWorkstationClusters extends \Google\Service\Resource
3939
* @param array $optParams Optional parameters.
4040
*
4141
* @opt_param bool validateOnly Optional. If set, validate the request and
42-
* preview the review, but do not actually apply it.
42+
* preview the result, but do not actually apply it.
4343
* @opt_param string workstationClusterId Required. ID to use for the
4444
* workstation cluster.
4545
* @return Operation
@@ -65,7 +65,7 @@ public function create($parent, WorkstationCluster $postBody, $optParams = [])
6565
* request only works if the workstation cluster has no configurations or
6666
* workstations.
6767
* @opt_param bool validateOnly Optional. If set, validate the request and
68-
* preview the review, but do not apply it.
68+
* preview the result, but do not apply it.
6969
* @return Operation
7070
* @throws \Google\Service\Exception
7171
*/
@@ -123,7 +123,7 @@ public function listProjectsLocationsWorkstationClusters($parent, $optParams = [
123123
* @opt_param string updateMask Required. Mask that specifies which fields in
124124
* the workstation cluster should be updated.
125125
* @opt_param bool validateOnly Optional. If set, validate the request and
126-
* preview the review, but do not actually apply it.
126+
* preview the result, but do not actually apply it.
127127
* @return Operation
128128
* @throws \Google\Service\Exception
129129
*/

src/CloudWorkstations/Resource/ProjectsLocationsWorkstationClustersWorkstationConfigs.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class ProjectsLocationsWorkstationClustersWorkstationConfigs extends \Google\Ser
4444
* @param array $optParams Optional parameters.
4545
*
4646
* @opt_param bool validateOnly Optional. If set, validate the request and
47-
* preview the review, but do not actually apply it.
47+
* preview the result, but do not actually apply it.
4848
* @opt_param string workstationConfigId Required. ID to use for the workstation
4949
* configuration.
5050
* @return Operation
@@ -70,7 +70,7 @@ public function create($parent, WorkstationConfig $postBody, $optParams = [])
7070
* configuration are also deleted. Otherwise, the request works only if the
7171
* workstation configuration has no workstations.
7272
* @opt_param bool validateOnly Optional. If set, validate the request and
73-
* preview the review, but do not actually apply it.
73+
* preview the result, but do not actually apply it.
7474
* @return Operation
7575
* @throws \Google\Service\Exception
7676
*/
@@ -180,7 +180,7 @@ public function listUsable($parent, $optParams = [])
180180
* @opt_param string updateMask Required. Mask specifying which fields in the
181181
* workstation configuration should be updated.
182182
* @opt_param bool validateOnly Optional. If set, validate the request and
183-
* preview the review, but do not actually apply it.
183+
* preview the result, but do not actually apply it.
184184
* @return Operation
185185
* @throws \Google\Service\Exception
186186
*/

src/CloudWorkstations/Resource/ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstations.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstations extends
4848
* @param array $optParams Optional parameters.
4949
*
5050
* @opt_param bool validateOnly Optional. If set, validate the request and
51-
* preview the review, but do not actually apply it.
51+
* preview the result, but do not actually apply it.
5252
* @opt_param string workstationId Required. ID to use for the workstation.
5353
* @return Operation
5454
* @throws \Google\Service\Exception
@@ -68,7 +68,7 @@ public function create($parent, Workstation $postBody, $optParams = [])
6868
* @opt_param string etag Optional. If set, the request will be rejected if the
6969
* latest version of the workstation on the server does not have this ETag.
7070
* @opt_param bool validateOnly Optional. If set, validate the request and
71-
* preview the review, but do not actually apply it.
71+
* preview the result, but do not actually apply it.
7272
* @return Operation
7373
* @throws \Google\Service\Exception
7474
*/
@@ -191,13 +191,13 @@ public function listUsable($parent, $optParams = [])
191191
* @param Workstation $postBody
192192
* @param array $optParams Optional parameters.
193193
*
194-
* @opt_param bool allowMissing Optional. If set and the workstation
195-
* configuration is not found, a new workstation configuration is created. In
196-
* this situation, update_mask is ignored.
194+
* @opt_param bool allowMissing Optional. If set and the workstation is not
195+
* found, a new workstation is created. In this situation, update_mask is
196+
* ignored.
197197
* @opt_param string updateMask Required. Mask specifying which fields in the
198-
* workstation configuration should be updated.
198+
* workstation should be updated.
199199
* @opt_param bool validateOnly Optional. If set, validate the request and
200-
* preview the review, but do not actually apply it.
200+
* preview the result, but do not actually apply it.
201201
* @return Operation
202202
* @throws \Google\Service\Exception
203203
*/

src/CloudWorkstations/StartWorkstationRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class StartWorkstationRequest extends \Google\Model
3434
*/
3535
public $etag;
3636
/**
37-
* Optional. If set, validate the request and preview the review, but do not
37+
* Optional. If set, validate the request and preview the result, but do not
3838
* actually apply it.
3939
*
4040
* @var bool
@@ -76,7 +76,7 @@ public function getEtag()
7676
return $this->etag;
7777
}
7878
/**
79-
* Optional. If set, validate the request and preview the review, but do not
79+
* Optional. If set, validate the request and preview the result, but do not
8080
* actually apply it.
8181
*
8282
* @param bool $validateOnly

src/CloudWorkstations/StopWorkstationRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class StopWorkstationRequest extends \Google\Model
2727
*/
2828
public $etag;
2929
/**
30-
* Optional. If set, validate the request and preview the review, but do not
30+
* Optional. If set, validate the request and preview the result, but do not
3131
* actually apply it.
3232
*
3333
* @var bool
@@ -52,7 +52,7 @@ public function getEtag()
5252
return $this->etag;
5353
}
5454
/**
55-
* Optional. If set, validate the request and preview the review, but do not
55+
* Optional. If set, validate the request and preview the result, but do not
5656
* actually apply it.
5757
*
5858
* @param bool $validateOnly

src/CloudWorkstations/Workstation.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ class Workstation extends \Google\Model
4141
* it is started.
4242
*/
4343
public const STATE_STATE_STOPPED = 'STATE_STOPPED';
44+
/**
45+
* The workstation is being suspended.
46+
*/
47+
public const STATE_STATE_SUSPENDING = 'STATE_SUSPENDING';
48+
/**
49+
* The workstation is suspended.
50+
*/
51+
public const STATE_STATE_SUSPENDED = 'STATE_SUSPENDED';
4452
/**
4553
* Optional. Client-specified annotations.
4654
*
@@ -399,7 +407,7 @@ public function getStartTime()
399407
* Output only. Current state of the workstation.
400408
*
401409
* Accepted values: STATE_UNSPECIFIED, STATE_STARTING, STATE_RUNNING,
402-
* STATE_STOPPING, STATE_STOPPED
410+
* STATE_STOPPING, STATE_STOPPED, STATE_SUSPENDING, STATE_SUSPENDED
403411
*
404412
* @param self::STATE_* $state
405413
*/

src/CloudWorkstations/WorkstationConfig.php

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -171,18 +171,20 @@ class WorkstationConfig extends \Google\Collection
171171
public $replicaZones;
172172
/**
173173
* Optional. Number of seconds that a workstation can run until it is
174-
* automatically shut down. We recommend that workstations be shut down daily
175-
* to reduce costs and so that security updates can be applied upon restart.
176-
* The idle_timeout and running_timeout fields are independent of each other.
177-
* Note that the running_timeout field shuts down VMs after the specified
178-
* time, regardless of whether or not the VMs are idle. Provide duration
179-
* terminated by `s` for seconds—for example, `"54000s"` (15 hours). Defaults
180-
* to `"43200s"` (12 hours). A value of `"0s"` indicates that workstations
181-
* using this configuration should never time out. If encryption_key is set,
182-
* it must be greater than `"0s"` and less than `"86400s"` (24 hours).
183-
* Warning: A value of `"0s"` indicates that Cloud Workstations VMs created
184-
* with this configuration have no maximum running time. This is strongly
185-
* discouraged because you incur costs and will not pick up security updates.
174+
* automatically shut down. This field applies to workstations in both
175+
* STATE_RUNNING and STATE_SUSPENDED. We recommend that workstations be shut
176+
* down daily to reduce costs and so that security updates can be applied upon
177+
* restart. The idle_timeout and running_timeout fields are independent of
178+
* each other. Note that the running_timeout field shuts down VMs after the
179+
* specified time, regardless of whether or not the VMs are idle. Provide
180+
* duration terminated by `s` for seconds—for example, `"54000s"` (15 hours).
181+
* Defaults to `"43200s"` (12 hours). A value of `"0s"` indicates that
182+
* workstations using this configuration should never time out. If
183+
* encryption_key is set, it must be greater than `"0s"` and less than
184+
* `"86400s"` (24 hours). Warning: A value of `"0s"` indicates that Cloud
185+
* Workstations VMs created with this configuration have no maximum running
186+
* time. This is strongly discouraged because you incur costs and will not
187+
* pick up security updates.
186188
*
187189
* @var string
188190
*/
@@ -634,18 +636,20 @@ public function getReplicaZones()
634636
}
635637
/**
636638
* Optional. Number of seconds that a workstation can run until it is
637-
* automatically shut down. We recommend that workstations be shut down daily
638-
* to reduce costs and so that security updates can be applied upon restart.
639-
* The idle_timeout and running_timeout fields are independent of each other.
640-
* Note that the running_timeout field shuts down VMs after the specified
641-
* time, regardless of whether or not the VMs are idle. Provide duration
642-
* terminated by `s` for seconds—for example, `"54000s"` (15 hours). Defaults
643-
* to `"43200s"` (12 hours). A value of `"0s"` indicates that workstations
644-
* using this configuration should never time out. If encryption_key is set,
645-
* it must be greater than `"0s"` and less than `"86400s"` (24 hours).
646-
* Warning: A value of `"0s"` indicates that Cloud Workstations VMs created
647-
* with this configuration have no maximum running time. This is strongly
648-
* discouraged because you incur costs and will not pick up security updates.
639+
* automatically shut down. This field applies to workstations in both
640+
* STATE_RUNNING and STATE_SUSPENDED. We recommend that workstations be shut
641+
* down daily to reduce costs and so that security updates can be applied upon
642+
* restart. The idle_timeout and running_timeout fields are independent of
643+
* each other. Note that the running_timeout field shuts down VMs after the
644+
* specified time, regardless of whether or not the VMs are idle. Provide
645+
* duration terminated by `s` for seconds—for example, `"54000s"` (15 hours).
646+
* Defaults to `"43200s"` (12 hours). A value of `"0s"` indicates that
647+
* workstations using this configuration should never time out. If
648+
* encryption_key is set, it must be greater than `"0s"` and less than
649+
* `"86400s"` (24 hours). Warning: A value of `"0s"` indicates that Cloud
650+
* Workstations VMs created with this configuration have no maximum running
651+
* time. This is strongly discouraged because you incur costs and will not
652+
* pick up security updates.
649653
*
650654
* @param string $runningTimeout
651655
*/

0 commit comments

Comments
 (0)