Compute Engine v1 API - Class NodeTemplatesClientImpl (3.2.0)

public sealed class NodeTemplatesClientImpl : NodeTemplatesClient

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

NodeTemplates client wrapper implementation, for convenient use.

Inheritance

object > NodeTemplatesClient > NodeTemplatesClientImpl

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Remarks

The NodeTemplates API.

Constructors

NodeTemplatesClientImpl(NodeTemplatesClient, NodeTemplatesSettings, ILogger)

public NodeTemplatesClientImpl(NodeTemplates.NodeTemplatesClient grpcClient, NodeTemplatesSettings settings, ILogger logger)

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

Parameters
Name Description
grpcClient NodeTemplatesNodeTemplatesClient

The underlying gRPC client.

settings NodeTemplatesSettings

The base NodeTemplatesSettings 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 NodeTemplates.NodeTemplatesClient GrpcClient { get; }

The underlying gRPC NodeTemplates client

Property Value
Type Description
NodeTemplatesNodeTemplatesClient
Overrides

InsertOperationsClient

public override OperationsClient InsertOperationsClient { get; }

The long-running operations client for Insert.

Property Value
Type Description
OperationsClient
Overrides

Methods

AggregatedList(AggregatedListNodeTemplatesRequest, CallSettings)

public override PagedEnumerable<NodeTemplateAggregatedList, KeyValuePair<string, NodeTemplatesScopedList>> AggregatedList(AggregatedListNodeTemplatesRequest request, CallSettings callSettings = null)

Retrieves an aggregated list of node templates. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

Parameters
Name Description
request AggregatedListNodeTemplatesRequest

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
PagedEnumerableNodeTemplateAggregatedListKeyValuePairstringNodeTemplatesScopedList

A pageable sequence of KeyValuePair<TKey, TValue> resources.

Overrides

AggregatedListAsync(AggregatedListNodeTemplatesRequest, CallSettings)

public override PagedAsyncEnumerable<NodeTemplateAggregatedList, KeyValuePair<string, NodeTemplatesScopedList>> AggregatedListAsync(AggregatedListNodeTemplatesRequest request, CallSettings callSettings = null)

Retrieves an aggregated list of node templates. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

Parameters
Name Description
request AggregatedListNodeTemplatesRequest

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
PagedAsyncEnumerableNodeTemplateAggregatedListKeyValuePairstringNodeTemplatesScopedList

A pageable asynchronous sequence of KeyValuePair<TKey, TValue> resources.

Overrides

Delete(DeleteNodeTemplateRequest, CallSettings)

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

Deletes the specified NodeTemplate resource.

Parameters
Name Description
request DeleteNodeTemplateRequest

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(DeleteNodeTemplateRequest, CallSettings)

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

Deletes the specified NodeTemplate resource.

Parameters
Name Description
request DeleteNodeTemplateRequest

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(GetNodeTemplateRequest, CallSettings)

public override NodeTemplate Get(GetNodeTemplateRequest request, CallSettings callSettings = null)

Returns the specified node template.

Parameters
Name Description
request GetNodeTemplateRequest

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
NodeTemplate

The RPC response.

Overrides

GetAsync(GetNodeTemplateRequest, CallSettings)

public override Task<NodeTemplate> GetAsync(GetNodeTemplateRequest request, CallSettings callSettings = null)

Returns the specified node template.

Parameters
Name Description
request GetNodeTemplateRequest

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
TaskNodeTemplate

A Task containing the RPC response.

Overrides

GetIamPolicy(GetIamPolicyNodeTemplateRequest, CallSettings)

public override Policy GetIamPolicy(GetIamPolicyNodeTemplateRequest request, CallSettings callSettings = null)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Parameters
Name Description
request GetIamPolicyNodeTemplateRequest

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
Policy

The RPC response.

Overrides

GetIamPolicyAsync(GetIamPolicyNodeTemplateRequest, CallSettings)

public override Task<Policy> GetIamPolicyAsync(GetIamPolicyNodeTemplateRequest request, CallSettings callSettings = null)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Parameters
Name Description
request GetIamPolicyNodeTemplateRequest

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
TaskPolicy

A Task containing the RPC response.

Overrides

Insert(InsertNodeTemplateRequest, CallSettings)

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

Creates a NodeTemplate resource in the specified project using the data included in the request.

Parameters
Name Description
request InsertNodeTemplateRequest

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(InsertNodeTemplateRequest, CallSettings)

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

Creates a NodeTemplate resource in the specified project using the data included in the request.

Parameters
Name Description
request InsertNodeTemplateRequest

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(ListNodeTemplatesRequest, CallSettings)

public override PagedEnumerable<NodeTemplateList, NodeTemplate> List(ListNodeTemplatesRequest request, CallSettings callSettings = null)

Retrieves a list of node templates available to the specified project.

Parameters
Name Description
request ListNodeTemplatesRequest

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
PagedEnumerableNodeTemplateListNodeTemplate

A pageable sequence of NodeTemplate resources.

Overrides

ListAsync(ListNodeTemplatesRequest, CallSettings)

public override PagedAsyncEnumerable<NodeTemplateList, NodeTemplate> ListAsync(ListNodeTemplatesRequest request, CallSettings callSettings = null)

Retrieves a list of node templates available to the specified project.

Parameters
Name Description
request ListNodeTemplatesRequest

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
PagedAsyncEnumerableNodeTemplateListNodeTemplate

A pageable asynchronous sequence of NodeTemplate resources.

Overrides

SetIamPolicy(SetIamPolicyNodeTemplateRequest, CallSettings)

public override Policy SetIamPolicy(SetIamPolicyNodeTemplateRequest request, CallSettings callSettings = null)

Sets the access control policy on the specified resource. Replaces any existing policy.

Parameters
Name Description
request SetIamPolicyNodeTemplateRequest

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
Policy

The RPC response.

Overrides

SetIamPolicyAsync(SetIamPolicyNodeTemplateRequest, CallSettings)

public override Task<Policy> SetIamPolicyAsync(SetIamPolicyNodeTemplateRequest request, CallSettings callSettings = null)

Sets the access control policy on the specified resource. Replaces any existing policy.

Parameters
Name Description
request SetIamPolicyNodeTemplateRequest

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
TaskPolicy

A Task containing the RPC response.

Overrides

TestIamPermissions(TestIamPermissionsNodeTemplateRequest, CallSettings)

public override TestPermissionsResponse TestIamPermissions(TestIamPermissionsNodeTemplateRequest request, CallSettings callSettings = null)

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
request TestIamPermissionsNodeTemplateRequest

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
TestPermissionsResponse

The RPC response.

Overrides

TestIamPermissionsAsync(TestIamPermissionsNodeTemplateRequest, CallSettings)

public override Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsNodeTemplateRequest request, CallSettings callSettings = null)

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
request TestIamPermissionsNodeTemplateRequest

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
TaskTestPermissionsResponse

A Task containing the RPC response.

Overrides