public sealed class HostsClientImpl : HostsClientReference documentation and code samples for the Compute Engine v1 API class HostsClientImpl.
Hosts client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Remarks
The Hosts API.
Constructors
HostsClientImpl(HostsClient, HostsSettings, ILogger)
public HostsClientImpl(Hosts.HostsClient grpcClient, HostsSettings settings, ILogger logger)Constructs a client wrapper for the Hosts service, with the specified gRPC client and settings.
| Parameters | |
|---|---|
| Name | Description |
grpcClient |
HostsHostsClientThe underlying gRPC client. |
settings |
HostsSettingsThe base HostsSettings used within this client. |
logger |
ILoggerOptional ILogger to use within this client. |
Properties
GetVersionOperationsClient
public override OperationsClient GetVersionOperationsClient { get; }The long-running operations client for GetVersion.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
GrpcClient
public override Hosts.HostsClient GrpcClient { get; }The underlying gRPC Hosts client
| Property Value | |
|---|---|
| Type | Description |
HostsHostsClient |
|
Methods
Get(GetHostRequest, CallSettings)
public override Host Get(GetHostRequest request, CallSettings callSettings = null)Retrieves information about the specified host.
| Parameters | |
|---|---|
| Name | Description |
request |
GetHostRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Host |
The RPC response. |
GetAsync(GetHostRequest, CallSettings)
public override Task<Host> GetAsync(GetHostRequest request, CallSettings callSettings = null)Retrieves information about the specified host.
| Parameters | |
|---|---|
| Name | Description |
request |
GetHostRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskHost |
A Task containing the RPC response. |
GetVersion(GetVersionHostRequest, CallSettings)
public override Operation<Operation, Operation> GetVersion(GetVersionHostRequest request, CallSettings callSettings = null)Allows customers to get SBOM versions of a host.
| Parameters | |
|---|---|
| Name | Description |
request |
GetVersionHostRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOperationOperation |
The RPC response. |
GetVersionAsync(GetVersionHostRequest, CallSettings)
public override Task<Operation<Operation, Operation>> GetVersionAsync(GetVersionHostRequest request, CallSettings callSettings = null)Allows customers to get SBOM versions of a host.
| Parameters | |
|---|---|
| Name | Description |
request |
GetVersionHostRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
List(ListHostsRequest, CallSettings)
public override PagedEnumerable<HostsListResponse, Host> List(ListHostsRequest request, CallSettings callSettings = null)Retrieves a list of hosts.
| Parameters | |
|---|---|
| Name | Description |
request |
ListHostsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableHostsListResponseHost |
A pageable sequence of Host resources. |
ListAsync(ListHostsRequest, CallSettings)
public override PagedAsyncEnumerable<HostsListResponse, Host> ListAsync(ListHostsRequest request, CallSettings callSettings = null)Retrieves a list of hosts.
| Parameters | |
|---|---|
| Name | Description |
request |
ListHostsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableHostsListResponseHost |
A pageable asynchronous sequence of Host resources. |