Compute Engine v1 API - Class RegionInstances.RegionInstancesClient (2.9.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

GoogleCloudGoogle.Cloud.ComputeV1

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(ClientBaseConfiguration)

protected RegionInstancesClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

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, 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
NameDescription
requestBulkInsertRegionInstanceRequest

The request to send to the server.

headersMetadata

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

deadlineDateTime

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

The request to send to the server.

headersMetadata

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

deadlineDateTime

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