Class WorkstationsGrpc.WorkstationsFutureStub (0.36.0)

public static final class WorkstationsGrpc.WorkstationsFutureStub extends AbstractFutureStub<WorkstationsGrpc.WorkstationsFutureStub>

A stub to allow clients to do ListenableFuture-style rpc calls to service Workstations.

Service for interacting with Cloud Workstations.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > WorkstationsGrpc.WorkstationsFutureStub

Methods

build(Channel channel, CallOptions callOptions)

protected WorkstationsGrpc.WorkstationsFutureStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
WorkstationsGrpc.WorkstationsFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createWorkstation(CreateWorkstationRequest request)

public ListenableFuture<Operation> createWorkstation(CreateWorkstationRequest request)

Creates a new workstation.

Parameter
Name Description
request CreateWorkstationRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

createWorkstationCluster(CreateWorkstationClusterRequest request)

public ListenableFuture<Operation> createWorkstationCluster(CreateWorkstationClusterRequest request)

Creates a new workstation cluster.

Parameter
Name Description
request CreateWorkstationClusterRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

createWorkstationConfig(CreateWorkstationConfigRequest request)

public ListenableFuture<Operation> createWorkstationConfig(CreateWorkstationConfigRequest request)

Creates a new workstation configuration.

Parameter
Name Description
request CreateWorkstationConfigRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

deleteWorkstation(DeleteWorkstationRequest request)

public ListenableFuture<Operation> deleteWorkstation(DeleteWorkstationRequest request)

Deletes the specified workstation.

Parameter
Name Description
request DeleteWorkstationRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

deleteWorkstationCluster(DeleteWorkstationClusterRequest request)

public ListenableFuture<Operation> deleteWorkstationCluster(DeleteWorkstationClusterRequest request)

Deletes the specified workstation cluster.

Parameter
Name Description
request DeleteWorkstationClusterRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

deleteWorkstationConfig(DeleteWorkstationConfigRequest request)

public ListenableFuture<Operation> deleteWorkstationConfig(DeleteWorkstationConfigRequest request)

Deletes the specified workstation configuration.

Parameter
Name Description
request DeleteWorkstationConfigRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

generateAccessToken(GenerateAccessTokenRequest request)

public ListenableFuture<GenerateAccessTokenResponse> generateAccessToken(GenerateAccessTokenRequest request)

Returns a short-lived credential that can be used to send authenticated and authorized traffic to a workstation.

Parameter
Name Description
request GenerateAccessTokenRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<GenerateAccessTokenResponse>

getWorkstation(GetWorkstationRequest request)

public ListenableFuture<Workstation> getWorkstation(GetWorkstationRequest request)

Returns the requested workstation.

Parameter
Name Description
request GetWorkstationRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Workstation>

getWorkstationCluster(GetWorkstationClusterRequest request)

public ListenableFuture<WorkstationCluster> getWorkstationCluster(GetWorkstationClusterRequest request)

Returns the requested workstation cluster.

Parameter
Name Description
request GetWorkstationClusterRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<WorkstationCluster>

getWorkstationConfig(GetWorkstationConfigRequest request)

public ListenableFuture<WorkstationConfig> getWorkstationConfig(GetWorkstationConfigRequest request)

Returns the requested workstation configuration.

Parameter
Name Description
request GetWorkstationConfigRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<WorkstationConfig>

listUsableWorkstationConfigs(ListUsableWorkstationConfigsRequest request)

public ListenableFuture<ListUsableWorkstationConfigsResponse> listUsableWorkstationConfigs(ListUsableWorkstationConfigsRequest request)

Returns all workstation configurations in the specified cluster on which the caller has the "workstations.workstation.create" permission.

Parameter
Name Description
request ListUsableWorkstationConfigsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListUsableWorkstationConfigsResponse>

listUsableWorkstations(ListUsableWorkstationsRequest request)

public ListenableFuture<ListUsableWorkstationsResponse> listUsableWorkstations(ListUsableWorkstationsRequest request)

Returns all workstations using the specified workstation configuration on which the caller has the "workstations.workstations.use" permission.

Parameter
Name Description
request ListUsableWorkstationsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListUsableWorkstationsResponse>

listWorkstationClusters(ListWorkstationClustersRequest request)

public ListenableFuture<ListWorkstationClustersResponse> listWorkstationClusters(ListWorkstationClustersRequest request)

Returns all workstation clusters in the specified location.

Parameter
Name Description
request ListWorkstationClustersRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListWorkstationClustersResponse>

listWorkstationConfigs(ListWorkstationConfigsRequest request)

public ListenableFuture<ListWorkstationConfigsResponse> listWorkstationConfigs(ListWorkstationConfigsRequest request)

Returns all workstation configurations in the specified cluster.

Parameter
Name Description
request ListWorkstationConfigsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListWorkstationConfigsResponse>

listWorkstations(ListWorkstationsRequest request)

public ListenableFuture<ListWorkstationsResponse> listWorkstations(ListWorkstationsRequest request)

Returns all Workstations using the specified workstation configuration.

Parameter
Name Description
request ListWorkstationsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListWorkstationsResponse>

startWorkstation(StartWorkstationRequest request)

public ListenableFuture<Operation> startWorkstation(StartWorkstationRequest request)

Starts running a workstation so that users can connect to it.

Parameter
Name Description
request StartWorkstationRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

stopWorkstation(StopWorkstationRequest request)

public ListenableFuture<Operation> stopWorkstation(StopWorkstationRequest request)

Stops running a workstation, reducing costs.

Parameter
Name Description
request StopWorkstationRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

updateWorkstation(UpdateWorkstationRequest request)

public ListenableFuture<Operation> updateWorkstation(UpdateWorkstationRequest request)

Updates an existing workstation.

Parameter
Name Description
request UpdateWorkstationRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

updateWorkstationCluster(UpdateWorkstationClusterRequest request)

public ListenableFuture<Operation> updateWorkstationCluster(UpdateWorkstationClusterRequest request)

Updates an existing workstation cluster.

Parameter
Name Description
request UpdateWorkstationClusterRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

updateWorkstationConfig(UpdateWorkstationConfigRequest request)

public ListenableFuture<Operation> updateWorkstationConfig(UpdateWorkstationConfigRequest request)

Updates an existing workstation configuration.

Parameter
Name Description
request UpdateWorkstationConfigRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>