Compute Engine v1 API - Class MachineTypesClientImpl (2.3.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

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Remarks

The MachineTypes API.

Constructors

MachineTypesClientImpl(MachineTypes.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
grpcClientMachineTypes.MachineTypesClient

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
MachineTypes.MachineTypesClient
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
PagedEnumerable<MachineTypeAggregatedList, KeyValuePair<String, MachineTypesScopedList>>

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
PagedAsyncEnumerable<MachineTypeAggregatedList, KeyValuePair<String, MachineTypesScopedList>>

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
Task<MachineType>

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
PagedEnumerable<MachineTypeList, MachineType>

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
PagedAsyncEnumerable<MachineTypeList, MachineType>

A pageable asynchronous sequence of MachineType resources.

Overrides