public class RegionInstancesClient : ClientBase<RegionInstances.RegionInstancesClient>
Client for RegionInstances
Inheritance
Object > ClientBase > ClientBase<RegionInstances.RegionInstancesClient> > RegionInstances.RegionInstancesClientNamespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Constructors
RegionInstancesClient()
protected RegionInstancesClient()
Protected parameterless constructor to allow creation of test doubles.
RegionInstancesClient(CallInvoker)
public RegionInstancesClient(CallInvoker callInvoker)
Creates a new client for RegionInstances that uses a custom CallInvoker
.
Parameter | |
---|---|
Name | Description |
callInvoker | CallInvoker The callInvoker to use to make remote calls. |
RegionInstancesClient(ChannelBase)
public RegionInstancesClient(ChannelBase channel)
Creates a new client for RegionInstances
Parameter | |
---|---|
Name | Description |
channel | ChannelBase The channel to use to make remote calls. |
RegionInstancesClient(ClientBase.ClientBaseConfiguration)
protected RegionInstancesClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration The client configuration. |
Methods
BulkInsert(BulkInsertRegionInstanceRequest, CallOptions)
public virtual Operation BulkInsert(BulkInsertRegionInstanceRequest request, CallOptions options)
Creates multiple instances in a given region. Count specifies the number of instances to create.
Parameters | |
---|---|
Name | Description |
request | BulkInsertRegionInstanceRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
BulkInsert(BulkInsertRegionInstanceRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Operation BulkInsert(BulkInsertRegionInstanceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Creates multiple instances in a given region. Count specifies the number of instances to create.
Parameters | |
---|---|
Name | Description |
request | BulkInsertRegionInstanceRequest The request to send to the server. |
headers | Metadata The 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 | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Operation | The response received from the server. |
BulkInsertAsync(BulkInsertRegionInstanceRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> BulkInsertAsync(BulkInsertRegionInstanceRequest request, CallOptions options)
Creates multiple instances in a given region. Count specifies the number of instances to create.
Parameters | |
---|---|
Name | Description |
request | BulkInsertRegionInstanceRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Operation> | The call object. |
BulkInsertAsync(BulkInsertRegionInstanceRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Operation> BulkInsertAsync(BulkInsertRegionInstanceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
Creates multiple instances in a given region. Count specifies the number of instances to create.
Parameters | |
---|---|
Name | Description |
request | BulkInsertRegionInstanceRequest The request to send to the server. |
headers | Metadata The 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 | CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Operation> | The call object. |
CreateOperationsClientForRegionOperations()
public virtual Operations.OperationsClient CreateOperationsClientForRegionOperations()
Creates a new instance of Operations.OperationsClient using the same call invoker as this client, delegating to RegionOperations.
Returns | |
---|---|
Type | Description |
Operations.OperationsClient | A new Operations client for the same target as this client. |
NewInstance(ClientBase.ClientBaseConfiguration)
protected override RegionInstances.RegionInstancesClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Creates a new instance of client from given ClientBaseConfiguration
.
Parameter | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
RegionInstances.RegionInstancesClient |