Compute Engine v1 API - Class HostsClientImpl (3.30.0)

public sealed class HostsClientImpl : HostsClient

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

Hosts client wrapper implementation, for convenient use.

Inheritance

object > HostsClient > HostsClientImpl

Namespace

Google.Cloud.Compute.V1

Assembly

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 HostsHostsClient

The underlying gRPC client.

settings HostsSettings

The base HostsSettings used within this client.

logger ILogger

Optional 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
Overrides

GrpcClient

public override Hosts.HostsClient GrpcClient { get; }

The underlying gRPC Hosts client

Property Value
Type Description
HostsHostsClient
Overrides

Methods

Get(GetHostRequest, CallSettings)

public override Host Get(GetHostRequest request, CallSettings callSettings = null)

Retrieves information about the specified host.

Parameters
Name Description
request GetHostRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Host

The RPC response.

Overrides

GetAsync(GetHostRequest, CallSettings)

public override Task<Host> GetAsync(GetHostRequest request, CallSettings callSettings = null)

Retrieves information about the specified host.

Parameters
Name Description
request GetHostRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskHost

A Task containing the RPC response.

Overrides

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 GetVersionHostRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

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 GetVersionHostRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

List(ListHostsRequest, CallSettings)

public override PagedEnumerable<HostsListResponse, Host> List(ListHostsRequest request, CallSettings callSettings = null)

Retrieves a list of hosts.

Parameters
Name Description
request ListHostsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableHostsListResponseHost

A pageable sequence of Host resources.

Overrides

ListAsync(ListHostsRequest, CallSettings)

public override PagedAsyncEnumerable<HostsListResponse, Host> ListAsync(ListHostsRequest request, CallSettings callSettings = null)

Retrieves a list of hosts.

Parameters
Name Description
request ListHostsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableHostsListResponseHost

A pageable asynchronous sequence of Host resources.

Overrides