Class WorkstationsGrpc.WorkstationsFutureStub (0.2.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
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
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
NameDescription
requestCreateWorkstationRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

createWorkstationCluster(CreateWorkstationClusterRequest request)

public ListenableFuture<Operation> createWorkstationCluster(CreateWorkstationClusterRequest request)

Creates a new workstation cluster.

Parameter
NameDescription
requestCreateWorkstationClusterRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

createWorkstationConfig(CreateWorkstationConfigRequest request)

public ListenableFuture<Operation> createWorkstationConfig(CreateWorkstationConfigRequest request)

Creates a new workstation configuration.

Parameter
NameDescription
requestCreateWorkstationConfigRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

deleteWorkstation(DeleteWorkstationRequest request)

public ListenableFuture<Operation> deleteWorkstation(DeleteWorkstationRequest request)

Deletes the specified workstation.

Parameter
NameDescription
requestDeleteWorkstationRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

deleteWorkstationCluster(DeleteWorkstationClusterRequest request)

public ListenableFuture<Operation> deleteWorkstationCluster(DeleteWorkstationClusterRequest request)

Deletes the specified workstation cluster.

Parameter
NameDescription
requestDeleteWorkstationClusterRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

deleteWorkstationConfig(DeleteWorkstationConfigRequest request)

public ListenableFuture<Operation> deleteWorkstationConfig(DeleteWorkstationConfigRequest request)

Deletes the specified workstation configuration.

Parameter
NameDescription
requestDeleteWorkstationConfigRequest
Returns
TypeDescription
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
NameDescription
requestGenerateAccessTokenRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<GenerateAccessTokenResponse>

getWorkstation(GetWorkstationRequest request)

public ListenableFuture<Workstation> getWorkstation(GetWorkstationRequest request)

Returns the requested workstation.

Parameter
NameDescription
requestGetWorkstationRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Workstation>

getWorkstationCluster(GetWorkstationClusterRequest request)

public ListenableFuture<WorkstationCluster> getWorkstationCluster(GetWorkstationClusterRequest request)

Returns the requested workstation cluster.

Parameter
NameDescription
requestGetWorkstationClusterRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<WorkstationCluster>

getWorkstationConfig(GetWorkstationConfigRequest request)

public ListenableFuture<WorkstationConfig> getWorkstationConfig(GetWorkstationConfigRequest request)

Returns the requested workstation configuration.

Parameter
NameDescription
requestGetWorkstationConfigRequest
Returns
TypeDescription
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
NameDescription
requestListUsableWorkstationConfigsRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<ListUsableWorkstationConfigsResponse>

listUsableWorkstations(ListUsableWorkstationsRequest request)

public ListenableFuture<ListUsableWorkstationsResponse> listUsableWorkstations(ListUsableWorkstationsRequest request)

Returns all Workstations using the specified config on which the caller has the "workstations.workstations.use" permission.

Parameter
NameDescription
requestListUsableWorkstationsRequest
Returns
TypeDescription
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
NameDescription
requestListWorkstationClustersRequest
Returns
TypeDescription
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
NameDescription
requestListWorkstationConfigsRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<ListWorkstationConfigsResponse>

listWorkstations(ListWorkstationsRequest request)

public ListenableFuture<ListWorkstationsResponse> listWorkstations(ListWorkstationsRequest request)

Returns all Workstations using the specified config.

Parameter
NameDescription
requestListWorkstationsRequest
Returns
TypeDescription
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
NameDescription
requestStartWorkstationRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

stopWorkstation(StopWorkstationRequest request)

public ListenableFuture<Operation> stopWorkstation(StopWorkstationRequest request)

Stops running a workstation, reducing costs.

Parameter
NameDescription
requestStopWorkstationRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

updateWorkstation(UpdateWorkstationRequest request)

public ListenableFuture<Operation> updateWorkstation(UpdateWorkstationRequest request)

Updates an existing workstation.

Parameter
NameDescription
requestUpdateWorkstationRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

updateWorkstationCluster(UpdateWorkstationClusterRequest request)

public ListenableFuture<Operation> updateWorkstationCluster(UpdateWorkstationClusterRequest request)

Updates an existing workstation cluster.

Parameter
NameDescription
requestUpdateWorkstationClusterRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

updateWorkstationConfig(UpdateWorkstationConfigRequest request)

public ListenableFuture<Operation> updateWorkstationConfig(UpdateWorkstationConfigRequest request)

Updates an existing workstation configuration.

Parameter
NameDescription
requestUpdateWorkstationConfigRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>