Class InstanceTemplates.InstanceTemplatesBase (2.0.0)

[BindServiceMethod(typeof(InstanceTemplates), "BindService")]
public abstract class 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

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
Task<Operation>

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. Gets a list of available instance templates by making a list() request.

Parameters
NameDescription
requestGetInstanceTemplateRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<InstanceTemplate>

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
Task<Policy>

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
Task<Operation>

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
Task<InstanceTemplateList>

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
Task<Policy>

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
Task<TestPermissionsResponse>

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