Compute Engine v1 API - Class RegionInstanceTemplates.RegionInstanceTemplatesClient (2.17.0)

public class RegionInstanceTemplates.RegionInstanceTemplatesClient : ClientBase<RegionInstanceTemplates.RegionInstanceTemplatesClient>

Reference documentation and code samples for the Compute Engine v1 API class RegionInstanceTemplates.RegionInstanceTemplatesClient.

Client for RegionInstanceTemplates

Inheritance

object > ClientBase > ClientBaseRegionInstanceTemplatesRegionInstanceTemplatesClient > RegionInstanceTemplates.RegionInstanceTemplatesClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

RegionInstanceTemplatesClient()

protected RegionInstanceTemplatesClient()

Protected parameterless constructor to allow creation of test doubles.

RegionInstanceTemplatesClient(CallInvoker)

public RegionInstanceTemplatesClient(CallInvoker callInvoker)

Creates a new client for RegionInstanceTemplates that uses a custom CallInvoker.

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

RegionInstanceTemplatesClient(ChannelBase)

public RegionInstanceTemplatesClient(ChannelBase channel)

Creates a new client for RegionInstanceTemplates

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

RegionInstanceTemplatesClient(ClientBaseConfiguration)

protected RegionInstanceTemplatesClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

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.

Delete(DeleteRegionInstanceTemplateRequest, CallOptions)

public virtual Operation Delete(DeleteRegionInstanceTemplateRequest request, CallOptions options)

Deletes the specified instance template. Deleting an instance template is permanent and cannot be undone.

Parameters
Name Description
request DeleteRegionInstanceTemplateRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Delete(DeleteRegionInstanceTemplateRequest, Metadata, DateTime?, CancellationToken)

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

Deletes the specified instance template. Deleting an instance template is permanent and cannot be undone.

Parameters
Name Description
request DeleteRegionInstanceTemplateRequest

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.

DeleteAsync(DeleteRegionInstanceTemplateRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteRegionInstanceTemplateRequest request, CallOptions options)

Deletes the specified instance template. Deleting an instance template is permanent and cannot be undone.

Parameters
Name Description
request DeleteRegionInstanceTemplateRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

DeleteAsync(DeleteRegionInstanceTemplateRequest, Metadata, DateTime?, CancellationToken)

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

Deletes the specified instance template. Deleting an instance template is permanent and cannot be undone.

Parameters
Name Description
request DeleteRegionInstanceTemplateRequest

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.

Get(GetRegionInstanceTemplateRequest, CallOptions)

public virtual InstanceTemplate Get(GetRegionInstanceTemplateRequest request, CallOptions options)

Returns the specified instance template.

Parameters
Name Description
request GetRegionInstanceTemplateRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
InstanceTemplate

The response received from the server.

Get(GetRegionInstanceTemplateRequest, Metadata, DateTime?, CancellationToken)

public virtual InstanceTemplate Get(GetRegionInstanceTemplateRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the specified instance template.

Parameters
Name Description
request GetRegionInstanceTemplateRequest

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
InstanceTemplate

The response received from the server.

GetAsync(GetRegionInstanceTemplateRequest, CallOptions)

public virtual AsyncUnaryCall<InstanceTemplate> GetAsync(GetRegionInstanceTemplateRequest request, CallOptions options)

Returns the specified instance template.

Parameters
Name Description
request GetRegionInstanceTemplateRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallInstanceTemplate

The call object.

GetAsync(GetRegionInstanceTemplateRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<InstanceTemplate> GetAsync(GetRegionInstanceTemplateRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the specified instance template.

Parameters
Name Description
request GetRegionInstanceTemplateRequest

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
AsyncUnaryCallInstanceTemplate

The call object.

Insert(InsertRegionInstanceTemplateRequest, CallOptions)

public virtual Operation Insert(InsertRegionInstanceTemplateRequest request, CallOptions options)

Creates an instance template in the specified project and region using the global instance template whose URL is included in the request.

Parameters
Name Description
request InsertRegionInstanceTemplateRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

Insert(InsertRegionInstanceTemplateRequest, Metadata, DateTime?, CancellationToken)

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

Creates an instance template in the specified project and region using the global instance template whose URL is included in the request.

Parameters
Name Description
request InsertRegionInstanceTemplateRequest

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.

InsertAsync(InsertRegionInstanceTemplateRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> InsertAsync(InsertRegionInstanceTemplateRequest request, CallOptions options)

Creates an instance template in the specified project and region using the global instance template whose URL is included in the request.

Parameters
Name Description
request InsertRegionInstanceTemplateRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

InsertAsync(InsertRegionInstanceTemplateRequest, Metadata, DateTime?, CancellationToken)

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

Creates an instance template in the specified project and region using the global instance template whose URL is included in the request.

Parameters
Name Description
request InsertRegionInstanceTemplateRequest

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.

List(ListRegionInstanceTemplatesRequest, CallOptions)

public virtual InstanceTemplateList List(ListRegionInstanceTemplatesRequest request, CallOptions options)

Retrieves a list of instance templates that are contained within the specified project and region.

Parameters
Name Description
request ListRegionInstanceTemplatesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
InstanceTemplateList

The response received from the server.

List(ListRegionInstanceTemplatesRequest, Metadata, DateTime?, CancellationToken)

public virtual InstanceTemplateList List(ListRegionInstanceTemplatesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves a list of instance templates that are contained within the specified project and region.

Parameters
Name Description
request ListRegionInstanceTemplatesRequest

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
InstanceTemplateList

The response received from the server.

ListAsync(ListRegionInstanceTemplatesRequest, CallOptions)

public virtual AsyncUnaryCall<InstanceTemplateList> ListAsync(ListRegionInstanceTemplatesRequest request, CallOptions options)

Retrieves a list of instance templates that are contained within the specified project and region.

Parameters
Name Description
request ListRegionInstanceTemplatesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallInstanceTemplateList

The call object.

ListAsync(ListRegionInstanceTemplatesRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<InstanceTemplateList> ListAsync(ListRegionInstanceTemplatesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves a list of instance templates that are contained within the specified project and region.

Parameters
Name Description
request ListRegionInstanceTemplatesRequest

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
AsyncUnaryCallInstanceTemplateList

The call object.

NewInstance(ClientBaseConfiguration)

protected override RegionInstanceTemplates.RegionInstanceTemplatesClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
RegionInstanceTemplatesRegionInstanceTemplatesClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.RegionInstanceTemplates.RegionInstanceTemplatesClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)