public class MachineTypesClient : ClientBase<MachineTypes.MachineTypesClient>Client for MachineTypes
Inheritance
Object > ClientBase > ClientBase<MachineTypes.MachineTypesClient> > MachineTypes.MachineTypesClientNamespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Constructors
MachineTypesClient()
protected MachineTypesClient()Protected parameterless constructor to allow creation of test doubles.
MachineTypesClient(CallInvoker)
public MachineTypesClient(CallInvoker callInvoker)Creates a new client for MachineTypes that uses a custom CallInvoker.
| Parameter | |
|---|---|
| Name | Description |
callInvoker |
CallInvokerThe callInvoker to use to make remote calls. |
MachineTypesClient(ChannelBase)
public MachineTypesClient(ChannelBase channel)Creates a new client for MachineTypes
| Parameter | |
|---|---|
| Name | Description |
channel |
ChannelBaseThe channel to use to make remote calls. |
MachineTypesClient(ClientBase.ClientBaseConfiguration)
protected MachineTypesClient(ClientBase.ClientBaseConfiguration configuration)Protected constructor to allow creation of configured clients.
| Parameter | |
|---|---|
| Name | Description |
configuration |
ClientBase.ClientBaseConfigurationThe client configuration. |
Methods
AggregatedList(AggregatedListMachineTypesRequest, CallOptions)
public virtual MachineTypeAggregatedList AggregatedList(AggregatedListMachineTypesRequest request, CallOptions options)Retrieves an aggregated list of machine types.
| Parameters | |
|---|---|
| Name | Description |
request |
AggregatedListMachineTypesRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
MachineTypeAggregatedList |
The response received from the server. |
AggregatedList(AggregatedListMachineTypesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual MachineTypeAggregatedList AggregatedList(AggregatedListMachineTypesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))Retrieves an aggregated list of machine types.
| Parameters | |
|---|---|
| Name | Description |
request |
AggregatedListMachineTypesRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
MachineTypeAggregatedList |
The response received from the server. |
AggregatedListAsync(AggregatedListMachineTypesRequest, CallOptions)
public virtual AsyncUnaryCall<MachineTypeAggregatedList> AggregatedListAsync(AggregatedListMachineTypesRequest request, CallOptions options)Retrieves an aggregated list of machine types.
| Parameters | |
|---|---|
| Name | Description |
request |
AggregatedListMachineTypesRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<MachineTypeAggregatedList> |
The call object. |
AggregatedListAsync(AggregatedListMachineTypesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<MachineTypeAggregatedList> AggregatedListAsync(AggregatedListMachineTypesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))Retrieves an aggregated list of machine types.
| Parameters | |
|---|---|
| Name | Description |
request |
AggregatedListMachineTypesRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<MachineTypeAggregatedList> |
The call object. |
Get(GetMachineTypeRequest, CallOptions)
public virtual MachineType Get(GetMachineTypeRequest request, CallOptions options)Returns the specified machine type. Gets a list of available machine types by making a list() request.
| Parameters | |
|---|---|
| Name | Description |
request |
GetMachineTypeRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
MachineType |
The response received from the server. |
Get(GetMachineTypeRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual MachineType Get(GetMachineTypeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))Returns the specified machine type. Gets a list of available machine types by making a list() request.
| Parameters | |
|---|---|
| Name | Description |
request |
GetMachineTypeRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
MachineType |
The response received from the server. |
GetAsync(GetMachineTypeRequest, CallOptions)
public virtual AsyncUnaryCall<MachineType> GetAsync(GetMachineTypeRequest request, CallOptions options)Returns the specified machine type. Gets a list of available machine types by making a list() request.
| Parameters | |
|---|---|
| Name | Description |
request |
GetMachineTypeRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<MachineType> |
The call object. |
GetAsync(GetMachineTypeRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<MachineType> GetAsync(GetMachineTypeRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))Returns the specified machine type. Gets a list of available machine types by making a list() request.
| Parameters | |
|---|---|
| Name | Description |
request |
GetMachineTypeRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<MachineType> |
The call object. |
List(ListMachineTypesRequest, CallOptions)
public virtual MachineTypeList List(ListMachineTypesRequest request, CallOptions options)Retrieves a list of machine types available to the specified project.
| Parameters | |
|---|---|
| Name | Description |
request |
ListMachineTypesRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
MachineTypeList |
The response received from the server. |
List(ListMachineTypesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual MachineTypeList List(ListMachineTypesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))Retrieves a list of machine types available to the specified project.
| Parameters | |
|---|---|
| Name | Description |
request |
ListMachineTypesRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
MachineTypeList |
The response received from the server. |
ListAsync(ListMachineTypesRequest, CallOptions)
public virtual AsyncUnaryCall<MachineTypeList> ListAsync(ListMachineTypesRequest request, CallOptions options)Retrieves a list of machine types available to the specified project.
| Parameters | |
|---|---|
| Name | Description |
request |
ListMachineTypesRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<MachineTypeList> |
The call object. |
ListAsync(ListMachineTypesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<MachineTypeList> ListAsync(ListMachineTypesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))Retrieves a list of machine types available to the specified project.
| Parameters | |
|---|---|
| Name | Description |
request |
ListMachineTypesRequestThe request to send to the server. |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<MachineTypeList> |
The call object. |
NewInstance(ClientBase.ClientBaseConfiguration)
protected override MachineTypes.MachineTypesClient NewInstance(ClientBase.ClientBaseConfiguration configuration)Creates a new instance of client from given ClientBaseConfiguration.
| Parameter | |
|---|---|
| Name | Description |
configuration |
ClientBase.ClientBaseConfiguration |
| Returns | |
|---|---|
| Type | Description |
MachineTypes.MachineTypesClient |
|