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.
Namespace
Google.Cloud.Compute.V1Assembly
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 | |
---|---|
Name | Description |
grpcClient | MachineTypes.MachineTypesClient The underlying gRPC client. |
settings | MachineTypesSettings The base MachineTypesSettings used within this client. |
logger | ILogger Optional ILogger to use within this client. |
Properties
GrpcClient
public override MachineTypes.MachineTypesClient GrpcClient { get; }
The underlying gRPC MachineTypes client
Property Value | |
---|---|
Type | Description |
MachineTypes.MachineTypesClient |
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 | |
---|---|
Name | Description |
request | AggregatedListMachineTypesRequest 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 |
PagedEnumerable<MachineTypeAggregatedList, KeyValuePair<String, MachineTypesScopedList>> | A pageable sequence of KeyValuePair<TKey,TValue> resources. |
AggregatedListAsync(AggregatedListMachineTypesRequest, CallSettings)
public override PagedAsyncEnumerable<MachineTypeAggregatedList, KeyValuePair<string, MachineTypesScopedList>> AggregatedListAsync(AggregatedListMachineTypesRequest request, CallSettings callSettings = null)
Retrieves an aggregated list of machine types.
Parameters | |
---|---|
Name | Description |
request | AggregatedListMachineTypesRequest 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 |
PagedAsyncEnumerable<MachineTypeAggregatedList, KeyValuePair<String, MachineTypesScopedList>> | A pageable asynchronous sequence of KeyValuePair<TKey,TValue> resources. |
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 | |
---|---|
Name | Description |
request | GetMachineTypeRequest 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 |
MachineType | The RPC response. |
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 | |
---|---|
Name | Description |
request | GetMachineTypeRequest 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 |
Task<MachineType> | A Task containing the RPC response. |
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 | |
---|---|
Name | Description |
request | ListMachineTypesRequest 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 |
PagedEnumerable<MachineTypeList, MachineType> | A pageable sequence of MachineType resources. |
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 | |
---|---|
Name | Description |
request | ListMachineTypesRequest 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 |
PagedAsyncEnumerable<MachineTypeList, MachineType> | A pageable asynchronous sequence of MachineType resources. |