Compute Engine v1 API - Class InstanceTemplates.InstanceTemplatesBase (3.0.0)

[BindServiceMethod(typeof(InstanceTemplates), "BindService")]
public abstract class InstanceTemplates.InstanceTemplatesBase

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

Base class for server-side implementations of InstanceTemplates

Inheritance

object > InstanceTemplates.InstanceTemplatesBase

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Methods

AggregatedList(AggregatedListInstanceTemplatesRequest, ServerCallContext)

public virtual Task<InstanceTemplateAggregatedList> AggregatedList(AggregatedListInstanceTemplatesRequest request, ServerCallContext context)

Retrieves the list of all InstanceTemplates resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

Parameters
Name Description
request AggregatedListInstanceTemplatesRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskInstanceTemplateAggregatedList

The response to send back to the client (wrapped by a task).

Delete(DeleteInstanceTemplateRequest, ServerCallContext)

public virtual Task<Operation> Delete(DeleteInstanceTemplateRequest request, ServerCallContext context)

Deletes the specified instance template. Deleting an instance template is permanent and cannot be undone. It is not possible to delete templates that are already in use by a managed instance group.

Parameters
Name Description
request DeleteInstanceTemplateRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskOperation

The response to send back to the client (wrapped by a task).

Get(GetInstanceTemplateRequest, ServerCallContext)

public virtual Task<InstanceTemplate> Get(GetInstanceTemplateRequest request, ServerCallContext context)

Returns the specified instance template.

Parameters
Name Description
request GetInstanceTemplateRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskInstanceTemplate

The response to send back to the client (wrapped by a task).

GetIamPolicy(GetIamPolicyInstanceTemplateRequest, ServerCallContext)

public virtual Task<Policy> GetIamPolicy(GetIamPolicyInstanceTemplateRequest request, ServerCallContext context)

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

Parameters
Name Description
request GetIamPolicyInstanceTemplateRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskPolicy

The response to send back to the client (wrapped by a task).

Insert(InsertInstanceTemplateRequest, ServerCallContext)

public virtual Task<Operation> Insert(InsertInstanceTemplateRequest request, ServerCallContext context)

Creates an instance template in the specified project using the data that is included in the request. If you are creating a new template to update an existing instance group, your new instance template must use the same network or, if applicable, the same subnetwork as the original template.

Parameters
Name Description
request InsertInstanceTemplateRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskOperation

The response to send back to the client (wrapped by a task).

List(ListInstanceTemplatesRequest, ServerCallContext)

public virtual Task<InstanceTemplateList> List(ListInstanceTemplatesRequest request, ServerCallContext context)

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

Parameters
Name Description
request ListInstanceTemplatesRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskInstanceTemplateList

The response to send back to the client (wrapped by a task).

SetIamPolicy(SetIamPolicyInstanceTemplateRequest, ServerCallContext)

public virtual Task<Policy> SetIamPolicy(SetIamPolicyInstanceTemplateRequest request, ServerCallContext context)

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

Parameters
Name Description
request SetIamPolicyInstanceTemplateRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskPolicy

The response to send back to the client (wrapped by a task).

TestIamPermissions(TestIamPermissionsInstanceTemplateRequest, ServerCallContext)

public virtual Task<TestPermissionsResponse> TestIamPermissions(TestIamPermissionsInstanceTemplateRequest request, ServerCallContext context)

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
request TestIamPermissionsInstanceTemplateRequest

The request received from the client.

context ServerCallContext

The context of the server-side call handler being invoked.

Returns
Type Description
TaskTestPermissionsResponse

The response to send back to the client (wrapped by a task).