Compute Engine v1 API - Class RegionInstanceTemplates.RegionInstanceTemplatesClient (2.15.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
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

RegionInstanceTemplatesClient(ChannelBase)

public RegionInstanceTemplatesClient(ChannelBase channel)

Creates a new client for RegionInstanceTemplates

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

RegionInstanceTemplatesClient(ClientBaseConfiguration)

protected RegionInstanceTemplatesClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

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
TypeDescription
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
NameDescription
requestDeleteRegionInstanceTemplateRequest

The request to send to the server.

optionsCallOptions

The options for the call.

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

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.

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

The request to send to the server.

optionsCallOptions

The options for the call.

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

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.

Get(GetRegionInstanceTemplateRequest, CallOptions)

public virtual InstanceTemplate Get(GetRegionInstanceTemplateRequest request, CallOptions options)

Returns the specified instance template.

Parameters
NameDescription
requestGetRegionInstanceTemplateRequest

The request to send to the server.

optionsCallOptions

The options for the call.

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

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

The request to send to the server.

optionsCallOptions

The options for the call.

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

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

The request to send to the server.

optionsCallOptions

The options for the call.

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

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.

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

The request to send to the server.

optionsCallOptions

The options for the call.

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

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.

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

The request to send to the server.

optionsCallOptions

The options for the call.

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

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

The request to send to the server.

optionsCallOptions

The options for the call.

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

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
AsyncUnaryCallInstanceTemplateList

The call object.

NewInstance(ClientBaseConfiguration)

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

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
RegionInstanceTemplatesRegionInstanceTemplatesClient
Overrides