Cloud Workstations v1 API - Class Workstations.WorkstationsBase (1.0.0)

[BindServiceMethod(typeof(Workstations), "BindService")]
public abstract class Workstations.WorkstationsBase

Reference documentation and code samples for the Cloud Workstations v1 API class Workstations.WorkstationsBase.

Base class for server-side implementations of Workstations

Inheritance

object > Workstations.WorkstationsBase

Namespace

Google.Cloud.Workstations.V1

Assembly

Google.Cloud.Workstations.V1.dll

Methods

CreateWorkstation(CreateWorkstationRequest, ServerCallContext)

public virtual Task<Operation> CreateWorkstation(CreateWorkstationRequest request, ServerCallContext context)

Creates a new workstation.

Parameters
NameDescription
requestCreateWorkstationRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

CreateWorkstationCluster(CreateWorkstationClusterRequest, ServerCallContext)

public virtual Task<Operation> CreateWorkstationCluster(CreateWorkstationClusterRequest request, ServerCallContext context)

Creates a new workstation cluster.

Parameters
NameDescription
requestCreateWorkstationClusterRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

CreateWorkstationConfig(CreateWorkstationConfigRequest, ServerCallContext)

public virtual Task<Operation> CreateWorkstationConfig(CreateWorkstationConfigRequest request, ServerCallContext context)

Creates a new workstation configuration.

Parameters
NameDescription
requestCreateWorkstationConfigRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

DeleteWorkstation(DeleteWorkstationRequest, ServerCallContext)

public virtual Task<Operation> DeleteWorkstation(DeleteWorkstationRequest request, ServerCallContext context)

Deletes the specified workstation.

Parameters
NameDescription
requestDeleteWorkstationRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

DeleteWorkstationCluster(DeleteWorkstationClusterRequest, ServerCallContext)

public virtual Task<Operation> DeleteWorkstationCluster(DeleteWorkstationClusterRequest request, ServerCallContext context)

Deletes the specified workstation cluster.

Parameters
NameDescription
requestDeleteWorkstationClusterRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

DeleteWorkstationConfig(DeleteWorkstationConfigRequest, ServerCallContext)

public virtual Task<Operation> DeleteWorkstationConfig(DeleteWorkstationConfigRequest request, ServerCallContext context)

Deletes the specified workstation configuration.

Parameters
NameDescription
requestDeleteWorkstationConfigRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

GenerateAccessToken(GenerateAccessTokenRequest, ServerCallContext)

public virtual Task<GenerateAccessTokenResponse> GenerateAccessToken(GenerateAccessTokenRequest request, ServerCallContext context)

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

Parameters
NameDescription
requestGenerateAccessTokenRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskGenerateAccessTokenResponse

The response to send back to the client (wrapped by a task).

GetWorkstation(GetWorkstationRequest, ServerCallContext)

public virtual Task<Workstation> GetWorkstation(GetWorkstationRequest request, ServerCallContext context)

Returns the requested workstation.

Parameters
NameDescription
requestGetWorkstationRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskWorkstation

The response to send back to the client (wrapped by a task).

GetWorkstationCluster(GetWorkstationClusterRequest, ServerCallContext)

public virtual Task<WorkstationCluster> GetWorkstationCluster(GetWorkstationClusterRequest request, ServerCallContext context)

Returns the requested workstation cluster.

Parameters
NameDescription
requestGetWorkstationClusterRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskWorkstationCluster

The response to send back to the client (wrapped by a task).

GetWorkstationConfig(GetWorkstationConfigRequest, ServerCallContext)

public virtual Task<WorkstationConfig> GetWorkstationConfig(GetWorkstationConfigRequest request, ServerCallContext context)

Returns the requested workstation configuration.

Parameters
NameDescription
requestGetWorkstationConfigRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskWorkstationConfig

The response to send back to the client (wrapped by a task).

ListUsableWorkstationConfigs(ListUsableWorkstationConfigsRequest, ServerCallContext)

public virtual Task<ListUsableWorkstationConfigsResponse> ListUsableWorkstationConfigs(ListUsableWorkstationConfigsRequest request, ServerCallContext context)

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

Parameters
NameDescription
requestListUsableWorkstationConfigsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListUsableWorkstationConfigsResponse

The response to send back to the client (wrapped by a task).

ListUsableWorkstations(ListUsableWorkstationsRequest, ServerCallContext)

public virtual Task<ListUsableWorkstationsResponse> ListUsableWorkstations(ListUsableWorkstationsRequest request, ServerCallContext context)

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

Parameters
NameDescription
requestListUsableWorkstationsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListUsableWorkstationsResponse

The response to send back to the client (wrapped by a task).

ListWorkstationClusters(ListWorkstationClustersRequest, ServerCallContext)

public virtual Task<ListWorkstationClustersResponse> ListWorkstationClusters(ListWorkstationClustersRequest request, ServerCallContext context)

Returns all workstation clusters in the specified location.

Parameters
NameDescription
requestListWorkstationClustersRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListWorkstationClustersResponse

The response to send back to the client (wrapped by a task).

ListWorkstationConfigs(ListWorkstationConfigsRequest, ServerCallContext)

public virtual Task<ListWorkstationConfigsResponse> ListWorkstationConfigs(ListWorkstationConfigsRequest request, ServerCallContext context)

Returns all workstation configurations in the specified cluster.

Parameters
NameDescription
requestListWorkstationConfigsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListWorkstationConfigsResponse

The response to send back to the client (wrapped by a task).

ListWorkstations(ListWorkstationsRequest, ServerCallContext)

public virtual Task<ListWorkstationsResponse> ListWorkstations(ListWorkstationsRequest request, ServerCallContext context)

Returns all Workstations using the specified workstation configuration.

Parameters
NameDescription
requestListWorkstationsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListWorkstationsResponse

The response to send back to the client (wrapped by a task).

StartWorkstation(StartWorkstationRequest, ServerCallContext)

public virtual Task<Operation> StartWorkstation(StartWorkstationRequest request, ServerCallContext context)

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

Parameters
NameDescription
requestStartWorkstationRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

StopWorkstation(StopWorkstationRequest, ServerCallContext)

public virtual Task<Operation> StopWorkstation(StopWorkstationRequest request, ServerCallContext context)

Stops running a workstation, reducing costs.

Parameters
NameDescription
requestStopWorkstationRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

UpdateWorkstation(UpdateWorkstationRequest, ServerCallContext)

public virtual Task<Operation> UpdateWorkstation(UpdateWorkstationRequest request, ServerCallContext context)

Updates an existing workstation.

Parameters
NameDescription
requestUpdateWorkstationRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

UpdateWorkstationCluster(UpdateWorkstationClusterRequest, ServerCallContext)

public virtual Task<Operation> UpdateWorkstationCluster(UpdateWorkstationClusterRequest request, ServerCallContext context)

Updates an existing workstation cluster.

Parameters
NameDescription
requestUpdateWorkstationClusterRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

UpdateWorkstationConfig(UpdateWorkstationConfigRequest, ServerCallContext)

public virtual Task<Operation> UpdateWorkstationConfig(UpdateWorkstationConfigRequest request, ServerCallContext context)

Updates an existing workstation configuration.

Parameters
NameDescription
requestUpdateWorkstationConfigRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).