public class NodeTypesClient : ClientBase<NodeTypes.NodeTypesClient>Client for NodeTypes
Namespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Constructors
NodeTypesClient()
protected NodeTypesClient()Protected parameterless constructor to allow creation of test doubles.
NodeTypesClient(CallInvoker)
public NodeTypesClient(CallInvoker callInvoker)Creates a new client for NodeTypes that uses a custom CallInvoker.
| Parameter | |
|---|---|
| Name | Description |
callInvoker |
CallInvokerThe callInvoker to use to make remote calls. |
NodeTypesClient(ChannelBase)
public NodeTypesClient(ChannelBase channel)Creates a new client for NodeTypes
| Parameter | |
|---|---|
| Name | Description |
channel |
ChannelBaseThe channel to use to make remote calls. |
NodeTypesClient(ClientBase.ClientBaseConfiguration)
protected NodeTypesClient(ClientBase.ClientBaseConfiguration configuration)Protected constructor to allow creation of configured clients.
| Parameter | |
|---|---|
| Name | Description |
configuration |
ClientBase.ClientBaseConfigurationThe client configuration. |
Methods
AggregatedList(AggregatedListNodeTypesRequest, CallOptions)
public virtual NodeTypeAggregatedList AggregatedList(AggregatedListNodeTypesRequest request, CallOptions options)Retrieves an aggregated list of node types.
| Parameters | |
|---|---|
| Name | Description |
request |
AggregatedListNodeTypesRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
NodeTypeAggregatedList |
The response received from the server. |
AggregatedList(AggregatedListNodeTypesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual NodeTypeAggregatedList AggregatedList(AggregatedListNodeTypesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Retrieves an aggregated list of node types.
| Parameters | |
|---|---|
| Name | Description |
request |
AggregatedListNodeTypesRequestThe 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 |
NodeTypeAggregatedList |
The response received from the server. |
AggregatedListAsync(AggregatedListNodeTypesRequest, CallOptions)
public virtual AsyncUnaryCall<NodeTypeAggregatedList> AggregatedListAsync(AggregatedListNodeTypesRequest request, CallOptions options)Retrieves an aggregated list of node types.
| Parameters | |
|---|---|
| Name | Description |
request |
AggregatedListNodeTypesRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<NodeTypeAggregatedList> |
The call object. |
AggregatedListAsync(AggregatedListNodeTypesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<NodeTypeAggregatedList> AggregatedListAsync(AggregatedListNodeTypesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Retrieves an aggregated list of node types.
| Parameters | |
|---|---|
| Name | Description |
request |
AggregatedListNodeTypesRequestThe 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<NodeTypeAggregatedList> |
The call object. |
Get(GetNodeTypeRequest, CallOptions)
public virtual NodeType Get(GetNodeTypeRequest request, CallOptions options)Returns the specified node type. Gets a list of available node types by making a list() request.
| Parameters | |
|---|---|
| Name | Description |
request |
GetNodeTypeRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
NodeType |
The response received from the server. |
Get(GetNodeTypeRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual NodeType Get(GetNodeTypeRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Returns the specified node type. Gets a list of available node types by making a list() request.
| Parameters | |
|---|---|
| Name | Description |
request |
GetNodeTypeRequestThe 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 |
NodeType |
The response received from the server. |
GetAsync(GetNodeTypeRequest, CallOptions)
public virtual AsyncUnaryCall<NodeType> GetAsync(GetNodeTypeRequest request, CallOptions options)Returns the specified node type. Gets a list of available node types by making a list() request.
| Parameters | |
|---|---|
| Name | Description |
request |
GetNodeTypeRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<NodeType> |
The call object. |
GetAsync(GetNodeTypeRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<NodeType> GetAsync(GetNodeTypeRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Returns the specified node type. Gets a list of available node types by making a list() request.
| Parameters | |
|---|---|
| Name | Description |
request |
GetNodeTypeRequestThe 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<NodeType> |
The call object. |
List(ListNodeTypesRequest, CallOptions)
public virtual NodeTypeList List(ListNodeTypesRequest request, CallOptions options)Retrieves a list of node types available to the specified project.
| Parameters | |
|---|---|
| Name | Description |
request |
ListNodeTypesRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
NodeTypeList |
The response received from the server. |
List(ListNodeTypesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual NodeTypeList List(ListNodeTypesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Retrieves a list of node types available to the specified project.
| Parameters | |
|---|---|
| Name | Description |
request |
ListNodeTypesRequestThe 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 |
NodeTypeList |
The response received from the server. |
ListAsync(ListNodeTypesRequest, CallOptions)
public virtual AsyncUnaryCall<NodeTypeList> ListAsync(ListNodeTypesRequest request, CallOptions options)Retrieves a list of node types available to the specified project.
| Parameters | |
|---|---|
| Name | Description |
request |
ListNodeTypesRequestThe request to send to the server. |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncUnaryCall<NodeTypeList> |
The call object. |
ListAsync(ListNodeTypesRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<NodeTypeList> ListAsync(ListNodeTypesRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Retrieves a list of node types available to the specified project.
| Parameters | |
|---|---|
| Name | Description |
request |
ListNodeTypesRequestThe 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<NodeTypeList> |
The call object. |
NewInstance(ClientBase.ClientBaseConfiguration)
protected override NodeTypes.NodeTypesClient NewInstance(ClientBase.ClientBaseConfiguration configuration)Creates a new instance of client from given ClientBaseConfiguration.
| Parameter | |
|---|---|
| Name | Description |
configuration |
ClientBase.ClientBaseConfiguration |
| Returns | |
|---|---|
| Type | Description |
NodeTypes.NodeTypesClient |
|