Compute Engine v1 API - Class RegionInstanceTemplatesClientImpl (3.2.0)

public sealed class RegionInstanceTemplatesClientImpl : RegionInstanceTemplatesClient

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

RegionInstanceTemplates client wrapper implementation, for convenient use.

Inheritance

object > RegionInstanceTemplatesClient > RegionInstanceTemplatesClientImpl

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Remarks

The RegionInstanceTemplates API.

Constructors

RegionInstanceTemplatesClientImpl(RegionInstanceTemplatesClient, RegionInstanceTemplatesSettings, ILogger)

public RegionInstanceTemplatesClientImpl(RegionInstanceTemplates.RegionInstanceTemplatesClient grpcClient, RegionInstanceTemplatesSettings settings, ILogger logger)

Constructs a client wrapper for the RegionInstanceTemplates service, with the specified gRPC client and settings.

Parameters
Name Description
grpcClient RegionInstanceTemplatesRegionInstanceTemplatesClient

The underlying gRPC client.

settings RegionInstanceTemplatesSettings

The base RegionInstanceTemplatesSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

DeleteOperationsClient

public override OperationsClient DeleteOperationsClient { get; }

The long-running operations client for Delete.

Property Value
Type Description
OperationsClient
Overrides

GrpcClient

public override RegionInstanceTemplates.RegionInstanceTemplatesClient GrpcClient { get; }

The underlying gRPC RegionInstanceTemplates client

Property Value
Type Description
RegionInstanceTemplatesRegionInstanceTemplatesClient
Overrides

InsertOperationsClient

public override OperationsClient InsertOperationsClient { get; }

The long-running operations client for Insert.

Property Value
Type Description
OperationsClient
Overrides

Methods

Delete(DeleteRegionInstanceTemplateRequest, CallSettings)

public override Operation<Operation, Operation> Delete(DeleteRegionInstanceTemplateRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request DeleteRegionInstanceTemplateRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

DeleteAsync(DeleteRegionInstanceTemplateRequest, CallSettings)

public override Task<Operation<Operation, Operation>> DeleteAsync(DeleteRegionInstanceTemplateRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request DeleteRegionInstanceTemplateRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

Get(GetRegionInstanceTemplateRequest, CallSettings)

public override InstanceTemplate Get(GetRegionInstanceTemplateRequest request, CallSettings callSettings = null)

Returns the specified instance template.

Parameters
Name Description
request GetRegionInstanceTemplateRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
InstanceTemplate

The RPC response.

Overrides

GetAsync(GetRegionInstanceTemplateRequest, CallSettings)

public override Task<InstanceTemplate> GetAsync(GetRegionInstanceTemplateRequest request, CallSettings callSettings = null)

Returns the specified instance template.

Parameters
Name Description
request GetRegionInstanceTemplateRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskInstanceTemplate

A Task containing the RPC response.

Overrides

Insert(InsertRegionInstanceTemplateRequest, CallSettings)

public override Operation<Operation, Operation> Insert(InsertRegionInstanceTemplateRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

InsertAsync(InsertRegionInstanceTemplateRequest, CallSettings)

public override Task<Operation<Operation, Operation>> InsertAsync(InsertRegionInstanceTemplateRequest request, CallSettings callSettings = null)

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 object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

List(ListRegionInstanceTemplatesRequest, CallSettings)

public override PagedEnumerable<InstanceTemplateList, InstanceTemplate> List(ListRegionInstanceTemplatesRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request ListRegionInstanceTemplatesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableInstanceTemplateListInstanceTemplate

A pageable sequence of InstanceTemplate resources.

Overrides

ListAsync(ListRegionInstanceTemplatesRequest, CallSettings)

public override PagedAsyncEnumerable<InstanceTemplateList, InstanceTemplate> ListAsync(ListRegionInstanceTemplatesRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request ListRegionInstanceTemplatesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableInstanceTemplateListInstanceTemplate

A pageable asynchronous sequence of InstanceTemplate resources.

Overrides