Compute Engine v1 API - Class MachineImages.MachineImagesBase (2.2.0)

[BindServiceMethod(typeof(MachineImages), "BindService")]
public abstract class MachineImagesBase

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

Base class for server-side implementations of MachineImages

Inheritance

Object > MachineImages.MachineImagesBase

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Methods

Delete(DeleteMachineImageRequest, ServerCallContext)

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

Deletes the specified machine image. Deleting a machine image is permanent and cannot be undone.

Parameters
NameDescription
requestDeleteMachineImageRequest

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(GetMachineImageRequest, ServerCallContext)

public virtual Task<MachineImage> Get(GetMachineImageRequest request, ServerCallContext context)

Returns the specified machine image. Gets a list of available machine images by making a list() request.

Parameters
NameDescription
requestGetMachineImageRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<MachineImage>

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

GetIamPolicy(GetIamPolicyMachineImageRequest, ServerCallContext)

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

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

Parameters
NameDescription
requestGetIamPolicyMachineImageRequest

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(InsertMachineImageRequest, ServerCallContext)

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

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

Parameters
NameDescription
requestInsertMachineImageRequest

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(ListMachineImagesRequest, ServerCallContext)

public virtual Task<MachineImageList> List(ListMachineImagesRequest request, ServerCallContext context)

Retrieves a list of machine images that are contained within the specified project.

Parameters
NameDescription
requestListMachineImagesRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<MachineImageList>

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

SetIamPolicy(SetIamPolicyMachineImageRequest, ServerCallContext)

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

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

Parameters
NameDescription
requestSetIamPolicyMachineImageRequest

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(TestIamPermissionsMachineImageRequest, ServerCallContext)

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

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsMachineImageRequest

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).