Compute Engine v1 API - Class RegionInstanceTemplatesClientImpl (2.10.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
NameDescription
grpcClientRegionInstanceTemplatesRegionInstanceTemplatesClient

The underlying gRPC client.

settingsRegionInstanceTemplatesSettings

The base RegionInstanceTemplatesSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

DeleteOperationsClient

public override OperationsClient DeleteOperationsClient { get; }

The long-running operations client for Delete.

Property Value
TypeDescription
OperationsClient
Overrides

GrpcClient

public override RegionInstanceTemplates.RegionInstanceTemplatesClient GrpcClient { get; }

The underlying gRPC RegionInstanceTemplates client

Property Value
TypeDescription
RegionInstanceTemplatesRegionInstanceTemplatesClient
Overrides

InsertOperationsClient

public override OperationsClient InsertOperationsClient { get; }

The long-running operations client for Insert.

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
InstanceTemplate

The RPC response.

Overrides

GetAsync(GetRegionInstanceTemplateRequest, CallSettings)

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

Returns the specified instance template.

Parameters
NameDescription
requestGetRegionInstanceTemplateRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableInstanceTemplateListInstanceTemplate

A pageable asynchronous sequence of InstanceTemplate resources.

Overrides