[BindServiceMethod(typeof(Hosts), "BindService")]
public abstract class Hosts.HostsBaseReference documentation and code samples for the Compute Engine v1 API class Hosts.HostsBase.
Base class for server-side implementations of Hosts
Namespace
Google.Cloud.Compute.V1Assembly
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 |
GetHostRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
GetVersionHostRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
ListHostsRequestThe request received from the client. |
context |
ServerCallContextThe 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). |