Class WorkstationsGrpc.WorkstationsStub (0.12.0)

public static final class WorkstationsGrpc.WorkstationsStub extends AbstractAsyncStub<WorkstationsGrpc.WorkstationsStub>

A stub to allow clients to do asynchronous rpc calls to service Workstations.

Service for interacting with Cloud Workstations.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > WorkstationsGrpc.WorkstationsStub

Methods

build(Channel channel, CallOptions callOptions)

protected WorkstationsGrpc.WorkstationsStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
WorkstationsGrpc.WorkstationsStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createWorkstation(CreateWorkstationRequest request, StreamObserver<Operation> responseObserver)

public void createWorkstation(CreateWorkstationRequest request, StreamObserver<Operation> responseObserver)

Creates a new workstation.

Parameters
NameDescription
requestCreateWorkstationRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

createWorkstationCluster(CreateWorkstationClusterRequest request, StreamObserver<Operation> responseObserver)

public void createWorkstationCluster(CreateWorkstationClusterRequest request, StreamObserver<Operation> responseObserver)

Creates a new workstation cluster.

Parameters
NameDescription
requestCreateWorkstationClusterRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

createWorkstationConfig(CreateWorkstationConfigRequest request, StreamObserver<Operation> responseObserver)

public void createWorkstationConfig(CreateWorkstationConfigRequest request, StreamObserver<Operation> responseObserver)

Creates a new workstation configuration.

Parameters
NameDescription
requestCreateWorkstationConfigRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

deleteWorkstation(DeleteWorkstationRequest request, StreamObserver<Operation> responseObserver)

public void deleteWorkstation(DeleteWorkstationRequest request, StreamObserver<Operation> responseObserver)

Deletes the specified workstation.

Parameters
NameDescription
requestDeleteWorkstationRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

deleteWorkstationCluster(DeleteWorkstationClusterRequest request, StreamObserver<Operation> responseObserver)

public void deleteWorkstationCluster(DeleteWorkstationClusterRequest request, StreamObserver<Operation> responseObserver)

Deletes the specified workstation cluster.

Parameters
NameDescription
requestDeleteWorkstationClusterRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

deleteWorkstationConfig(DeleteWorkstationConfigRequest request, StreamObserver<Operation> responseObserver)

public void deleteWorkstationConfig(DeleteWorkstationConfigRequest request, StreamObserver<Operation> responseObserver)

Deletes the specified workstation configuration.

Parameters
NameDescription
requestDeleteWorkstationConfigRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

generateAccessToken(GenerateAccessTokenRequest request, StreamObserver<GenerateAccessTokenResponse> responseObserver)

public void generateAccessToken(GenerateAccessTokenRequest request, StreamObserver<GenerateAccessTokenResponse> responseObserver)

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

Parameters
NameDescription
requestGenerateAccessTokenRequest
responseObserverio.grpc.stub.StreamObserver<GenerateAccessTokenResponse>

getWorkstation(GetWorkstationRequest request, StreamObserver<Workstation> responseObserver)

public void getWorkstation(GetWorkstationRequest request, StreamObserver<Workstation> responseObserver)

Returns the requested workstation.

Parameters
NameDescription
requestGetWorkstationRequest
responseObserverio.grpc.stub.StreamObserver<Workstation>

getWorkstationCluster(GetWorkstationClusterRequest request, StreamObserver<WorkstationCluster> responseObserver)

public void getWorkstationCluster(GetWorkstationClusterRequest request, StreamObserver<WorkstationCluster> responseObserver)

Returns the requested workstation cluster.

Parameters
NameDescription
requestGetWorkstationClusterRequest
responseObserverio.grpc.stub.StreamObserver<WorkstationCluster>

getWorkstationConfig(GetWorkstationConfigRequest request, StreamObserver<WorkstationConfig> responseObserver)

public void getWorkstationConfig(GetWorkstationConfigRequest request, StreamObserver<WorkstationConfig> responseObserver)

Returns the requested workstation configuration.

Parameters
NameDescription
requestGetWorkstationConfigRequest
responseObserverio.grpc.stub.StreamObserver<WorkstationConfig>

listUsableWorkstationConfigs(ListUsableWorkstationConfigsRequest request, StreamObserver<ListUsableWorkstationConfigsResponse> responseObserver)

public void listUsableWorkstationConfigs(ListUsableWorkstationConfigsRequest request, StreamObserver<ListUsableWorkstationConfigsResponse> responseObserver)

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

Parameters
NameDescription
requestListUsableWorkstationConfigsRequest
responseObserverio.grpc.stub.StreamObserver<ListUsableWorkstationConfigsResponse>

listUsableWorkstations(ListUsableWorkstationsRequest request, StreamObserver<ListUsableWorkstationsResponse> responseObserver)

public void listUsableWorkstations(ListUsableWorkstationsRequest request, StreamObserver<ListUsableWorkstationsResponse> responseObserver)

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

Parameters
NameDescription
requestListUsableWorkstationsRequest
responseObserverio.grpc.stub.StreamObserver<ListUsableWorkstationsResponse>

listWorkstationClusters(ListWorkstationClustersRequest request, StreamObserver<ListWorkstationClustersResponse> responseObserver)

public void listWorkstationClusters(ListWorkstationClustersRequest request, StreamObserver<ListWorkstationClustersResponse> responseObserver)

Returns all workstation clusters in the specified location.

Parameters
NameDescription
requestListWorkstationClustersRequest
responseObserverio.grpc.stub.StreamObserver<ListWorkstationClustersResponse>

listWorkstationConfigs(ListWorkstationConfigsRequest request, StreamObserver<ListWorkstationConfigsResponse> responseObserver)

public void listWorkstationConfigs(ListWorkstationConfigsRequest request, StreamObserver<ListWorkstationConfigsResponse> responseObserver)

Returns all workstation configurations in the specified cluster.

Parameters
NameDescription
requestListWorkstationConfigsRequest
responseObserverio.grpc.stub.StreamObserver<ListWorkstationConfigsResponse>

listWorkstations(ListWorkstationsRequest request, StreamObserver<ListWorkstationsResponse> responseObserver)

public void listWorkstations(ListWorkstationsRequest request, StreamObserver<ListWorkstationsResponse> responseObserver)

Returns all Workstations using the specified workstation configuration.

Parameters
NameDescription
requestListWorkstationsRequest
responseObserverio.grpc.stub.StreamObserver<ListWorkstationsResponse>

startWorkstation(StartWorkstationRequest request, StreamObserver<Operation> responseObserver)

public void startWorkstation(StartWorkstationRequest request, StreamObserver<Operation> responseObserver)

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

Parameters
NameDescription
requestStartWorkstationRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

stopWorkstation(StopWorkstationRequest request, StreamObserver<Operation> responseObserver)

public void stopWorkstation(StopWorkstationRequest request, StreamObserver<Operation> responseObserver)

Stops running a workstation, reducing costs.

Parameters
NameDescription
requestStopWorkstationRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

updateWorkstation(UpdateWorkstationRequest request, StreamObserver<Operation> responseObserver)

public void updateWorkstation(UpdateWorkstationRequest request, StreamObserver<Operation> responseObserver)

Updates an existing workstation.

Parameters
NameDescription
requestUpdateWorkstationRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

updateWorkstationCluster(UpdateWorkstationClusterRequest request, StreamObserver<Operation> responseObserver)

public void updateWorkstationCluster(UpdateWorkstationClusterRequest request, StreamObserver<Operation> responseObserver)

Updates an existing workstation cluster.

Parameters
NameDescription
requestUpdateWorkstationClusterRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

updateWorkstationConfig(UpdateWorkstationConfigRequest request, StreamObserver<Operation> responseObserver)

public void updateWorkstationConfig(UpdateWorkstationConfigRequest request, StreamObserver<Operation> responseObserver)

Updates an existing workstation configuration.

Parameters
NameDescription
requestUpdateWorkstationConfigRequest
responseObserverio.grpc.stub.StreamObserver<Operation>