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

public class RegionInstances.RegionInstancesClient : ClientBase<RegionInstances.RegionInstancesClient>

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

Client for RegionInstances

Inheritance

object > ClientBase > ClientBaseRegionInstancesRegionInstancesClient > 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
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(ClientBaseConfiguration)

protected RegionInstancesClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

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, DateTime?, CancellationToken)

public virtual Operation BulkInsert(BulkInsertRegionInstanceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 System.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
AsyncUnaryCallOperation

The call object.

BulkInsertAsync(BulkInsertRegionInstanceRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> BulkInsertAsync(BulkInsertRegionInstanceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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 System.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
AsyncUnaryCallOperation

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
OperationsOperationsClient

A new Operations client for the same target as this client.

NewInstance(ClientBaseConfiguration)

protected override RegionInstances.RegionInstancesClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
RegionInstancesRegionInstancesClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.RegionInstances.RegionInstancesClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)