Compute Engine v1 API - Class Hosts.HostsBase (3.30.0)

[BindServiceMethod(typeof(Hosts), "BindService")]
public abstract class Hosts.HostsBase

Reference documentation and code samples for the Compute Engine v1 API class Hosts.HostsBase.

Base class for server-side implementations of Hosts

Inheritance

object > Hosts.HostsBase

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Methods

Get(GetHostRequest, ServerCallContext)

public virtual Task<Host> Get(GetHostRequest request, ServerCallContext context)

Retrieves information about the specified host.

Parameters
Name Description
request GetHostRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskHost

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

GetVersion(GetVersionHostRequest, ServerCallContext)

public virtual Task<Operation> GetVersion(GetVersionHostRequest request, ServerCallContext context)

Allows customers to get SBOM versions of a host.

Parameters
Name Description
request GetVersionHostRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskOperation

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

List(ListHostsRequest, ServerCallContext)

public virtual Task<HostsListResponse> List(ListHostsRequest request, ServerCallContext context)

Retrieves a list of hosts.

Parameters
Name Description
request ListHostsRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskHostsListResponse

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