Compute Engine v1 API - Class InstanceTemplates.InstanceTemplatesBase (2.14.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
NameDescription
requestAggregatedListInstanceTemplatesRequest

The request received from the client.

contextServerCallContext

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

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

The request received from the client.

contextServerCallContext

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

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

The request received from the client.

contextServerCallContext

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

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

The request received from the client.

contextServerCallContext

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

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

The request received from the client.

contextServerCallContext

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

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

The request received from the client.

contextServerCallContext

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

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

The request received from the client.

contextServerCallContext

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

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

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskTestPermissionsResponse

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