Compute Engine v1 API - Class RegionInstances.RegionInstancesClient (2.3.0)

public class RegionInstancesClient : ClientBase<RegionInstances.RegionInstancesClient>

Reference documentation and code samples for the Compute Engine v1 API class RegionInstances.RegionInstancesClient.

Client for RegionInstances

Inheritance

Object > ClientBase > ClientBase<RegionInstances.RegionInstancesClient> > RegionInstances.RegionInstancesClient

Namespace

Google.Cloud.Compute.V1

Assembly

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
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

RegionInstancesClient(ChannelBase)

public RegionInstancesClient(ChannelBase channel)

Creates a new client for RegionInstances

Parameter
NameDescription
channelChannelBase

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
NameDescription
configurationClientBase.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
NameDescription
requestBulkInsertRegionInstanceRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestBulkInsertRegionInstanceRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
NameDescription
requestBulkInsertRegionInstanceRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
requestBulkInsertRegionInstanceRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
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
TypeDescription
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
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
RegionInstances.RegionInstancesClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.RegionInstances.RegionInstancesClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)