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(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 |
MachineTypesMachineTypesClient 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 |
MachineTypesMachineTypesClient |
Methods
AggregatedList(AggregatedListMachineTypesRequest, CallSettings)
public override PagedEnumerable<MachineTypeAggregatedList, KeyValuePair<string, MachineTypesScopedList>> AggregatedList(AggregatedListMachineTypesRequest request, CallSettings callSettings = null)
Retrieves an aggregated list of machine types. To prevent failure, Google recommends that you set the returnPartialSuccess
parameter to true
.
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 |
PagedEnumerableMachineTypeAggregatedListKeyValuePairstringMachineTypesScopedList |
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. To prevent failure, Google recommends that you set the returnPartialSuccess
parameter to true
.
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 |
PagedAsyncEnumerableMachineTypeAggregatedListKeyValuePairstringMachineTypesScopedList |
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.
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.
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 |
TaskMachineType |
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 |
PagedEnumerableMachineTypeListMachineType |
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 |
PagedAsyncEnumerableMachineTypeListMachineType |
A pageable asynchronous sequence of MachineType resources. |