Compute Engine v1 API - Class Images.ImagesBase (2.15.0)

[BindServiceMethod(typeof(Images), "BindService")]
public abstract class Images.ImagesBase

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

Base class for server-side implementations of Images

Inheritance

object > Images.ImagesBase

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Methods

Delete(DeleteImageRequest, ServerCallContext)

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

Deletes the specified image.

Parameters
NameDescription
requestDeleteImageRequest

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

Deprecate(DeprecateImageRequest, ServerCallContext)

public virtual Task<Operation> Deprecate(DeprecateImageRequest request, ServerCallContext context)

Sets the deprecation status of an image. If an empty request body is given, clears the deprecation status instead.

Parameters
NameDescription
requestDeprecateImageRequest

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

public virtual Task<Image> Get(GetImageRequest request, ServerCallContext context)

Returns the specified image.

Parameters
NameDescription
requestGetImageRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskImage

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

GetFromFamily(GetFromFamilyImageRequest, ServerCallContext)

public virtual Task<Image> GetFromFamily(GetFromFamilyImageRequest request, ServerCallContext context)

Returns the latest image that is part of an image family and is not deprecated. For more information on image families, see Public image families documentation.

Parameters
NameDescription
requestGetFromFamilyImageRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskImage

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

GetIamPolicy(GetIamPolicyImageRequest, ServerCallContext)

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

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

Parameters
NameDescription
requestGetIamPolicyImageRequest

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

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

Creates an image in the specified project using the data included in the request.

Parameters
NameDescription
requestInsertImageRequest

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

public virtual Task<ImageList> List(ListImagesRequest request, ServerCallContext context)

Retrieves the list of custom images available to the specified project. Custom images are images you create that belong to your project. This method does not get any images that belong to other projects, including publicly-available images, like Debian 8. If you want to get a list of publicly-available images, use this method to make a request to the respective image project, such as debian-cloud or windows-cloud.

Parameters
NameDescription
requestListImagesRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskImageList

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

Patch(PatchImageRequest, ServerCallContext)

public virtual Task<Operation> Patch(PatchImageRequest request, ServerCallContext context)

Patches the specified image with the data included in the request. Only the following fields can be modified: family, description, deprecation status.

Parameters
NameDescription
requestPatchImageRequest

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

SetIamPolicy(SetIamPolicyImageRequest, ServerCallContext)

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

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

Parameters
NameDescription
requestSetIamPolicyImageRequest

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

SetLabels(SetLabelsImageRequest, ServerCallContext)

public virtual Task<Operation> SetLabels(SetLabelsImageRequest request, ServerCallContext context)

Sets the labels on an image. To learn more about labels, read the Labeling Resources documentation.

Parameters
NameDescription
requestSetLabelsImageRequest

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

TestIamPermissions(TestIamPermissionsImageRequest, ServerCallContext)

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

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsImageRequest

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