ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstations
class ProjectsLocationsWorkstationClustersWorkstationConfigsWorkstations extends Resource (View source)
The "workstations" collection of methods.
Typical usage is:
$workstationsService = new Google\Service\CloudWorkstations(...);
$workstations = $workstationsService->projects_locations_workstationClusters_workstationConfigs_workstations;
Methods
Creates a new workstation. (workstations.create)
Deletes the specified workstation. (workstations.delete)
Returns a short-lived credential that can be used to send authenticated and authorized traffic to a workstation. (workstations.generateAccessToken)
Returns the requested workstation. (workstations.get)
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. (workstations.getIamPolicy)
Returns all Workstations using the specified workstation configuration. (work stations.listProjectsLocationsWorkstationClustersWorkstationConfigsWorkstatio ns)
Returns all workstations using the specified workstation configuration on which the caller has the "workstations.workstations.use" permission.
Updates an existing workstation. (workstations.patch)
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors. (workstations.setIamPolicy)
Starts running a workstation so that users can connect to it.
Stops running a workstation, reducing costs. (workstations.stop)
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND
error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
Details
Operation
create(string $parent, Workstation $postBody, array $optParams = [])
Creates a new workstation. (workstations.create)
Operation
delete(string $name, array $optParams = [])
Deletes the specified workstation. (workstations.delete)
GenerateAccessTokenResponse
generateAccessToken(string $workstation, GenerateAccessTokenRequest $postBody, array $optParams = [])
Returns a short-lived credential that can be used to send authenticated and authorized traffic to a workstation. (workstations.generateAccessToken)
Workstation
get(string $name, array $optParams = [])
Returns the requested workstation. (workstations.get)
Policy
getIamPolicy(string $resource, array $optParams = [])
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. (workstations.getIamPolicy)
ListWorkstationsResponse
listProjectsLocationsWorkstationClustersWorkstationConfigsWorkstations(string $parent, array $optParams = [])
Returns all Workstations using the specified workstation configuration. (work stations.listProjectsLocationsWorkstationClustersWorkstationConfigsWorkstatio ns)
ListUsableWorkstationsResponse
listUsable(string $parent, array $optParams = [])
Returns all workstations using the specified workstation configuration on which the caller has the "workstations.workstations.use" permission.
(workstations.listUsable)
Operation
patch(string $name, Workstation $postBody, array $optParams = [])
Updates an existing workstation. (workstations.patch)
Policy
setIamPolicy(string $resource, SetIamPolicyRequest $postBody, array $optParams = [])
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors. (workstations.setIamPolicy)
Operation
start(string $name, StartWorkstationRequest $postBody, array $optParams = [])
Starts running a workstation so that users can connect to it.
(workstations.start)
Operation
stop(string $name, StopWorkstationRequest $postBody, array $optParams = [])
Stops running a workstation, reducing costs. (workstations.stop)
TestIamPermissionsResponse
testIamPermissions(string $resource, TestIamPermissionsRequest $postBody, array $optParams = [])
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND
error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
This operation may "fail open" without warning. (workstations.testIamPermissions)