Compute Engine v1 API - Class MachineTypesClientImpl (2.7.0)

public sealed class MachineTypesClientImpl : MachineTypesClient

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

MachineTypes client wrapper implementation, for convenient use.

Inheritance

object > MachineTypesClient > MachineTypesClientImpl

Namespace

GoogleCloudGoogle.Cloud.ComputeV1

Assembly

Google.Cloud.Compute.V1.dll

Remarks

The MachineTypes API.

Constructors

MachineTypesClientImpl(MachineTypesClient, MachineTypesSettings, ILogger)

public MachineTypesClientImpl(MachineTypes.MachineTypesClient grpcClient, MachineTypesSettings settings, ILogger logger)

Constructs a client wrapper for the MachineTypes service, with the specified gRPC client and settings.

Parameters
NameDescription
grpcClientMachineTypesMachineTypesClient

The underlying gRPC client.

settingsMachineTypesSettings

The base MachineTypesSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override MachineTypes.MachineTypesClient GrpcClient { get; }

The underlying gRPC MachineTypes client

Property Value
TypeDescription
MachineTypesMachineTypesClient
Overrides

Methods

AggregatedList(AggregatedListMachineTypesRequest, CallSettings)

public override PagedEnumerable<MachineTypeAggregatedList, KeyValuePair<string, MachineTypesScopedList>> AggregatedList(AggregatedListMachineTypesRequest request, CallSettings callSettings = null)

Retrieves an aggregated list of machine types.

Parameters
NameDescription
requestAggregatedListMachineTypesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableMachineTypeAggregatedListKeyValuePairstringMachineTypesScopedList

A pageable sequence of KeyValuePair<TKey,TValue> resources.

Overrides

AggregatedListAsync(AggregatedListMachineTypesRequest, CallSettings)

public override PagedAsyncEnumerable<MachineTypeAggregatedList, KeyValuePair<string, MachineTypesScopedList>> AggregatedListAsync(AggregatedListMachineTypesRequest request, CallSettings callSettings = null)

Retrieves an aggregated list of machine types.

Parameters
NameDescription
requestAggregatedListMachineTypesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableMachineTypeAggregatedListKeyValuePairstringMachineTypesScopedList

A pageable asynchronous sequence of KeyValuePair<TKey,TValue> resources.

Overrides

Get(GetMachineTypeRequest, CallSettings)

public override MachineType Get(GetMachineTypeRequest request, CallSettings callSettings = null)

Returns the specified machine type. Gets a list of available machine types by making a list() request.

Parameters
NameDescription
requestGetMachineTypeRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
MachineType

The RPC response.

Overrides

GetAsync(GetMachineTypeRequest, CallSettings)

public override Task<MachineType> GetAsync(GetMachineTypeRequest request, CallSettings callSettings = null)

Returns the specified machine type. Gets a list of available machine types by making a list() request.

Parameters
NameDescription
requestGetMachineTypeRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskMachineType

A Task containing the RPC response.

Overrides

List(ListMachineTypesRequest, CallSettings)

public override PagedEnumerable<MachineTypeList, MachineType> List(ListMachineTypesRequest request, CallSettings callSettings = null)

Retrieves a list of machine types available to the specified project.

Parameters
NameDescription
requestListMachineTypesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableMachineTypeListMachineType

A pageable sequence of MachineType resources.

Overrides

ListAsync(ListMachineTypesRequest, CallSettings)

public override PagedAsyncEnumerable<MachineTypeList, MachineType> ListAsync(ListMachineTypesRequest request, CallSettings callSettings = null)

Retrieves a list of machine types available to the specified project.

Parameters
NameDescription
requestListMachineTypesRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableMachineTypeListMachineType

A pageable asynchronous sequence of MachineType resources.

Overrides