Compute Engine v1 API - Class Images.ImagesBase (2.17.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
Name Description
request DeleteImageRequest

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

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
Name Description
request DeprecateImageRequest

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

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

Returns the specified image.

Parameters
Name Description
request GetImageRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
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
Name Description
request GetFromFamilyImageRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
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
Name Description
request GetIamPolicyImageRequest

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(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
Name Description
request InsertImageRequest

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(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
Name Description
request ListImagesRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
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
Name Description
request PatchImageRequest

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

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
Name Description
request SetIamPolicyImageRequest

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

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
Name Description
request SetLabelsImageRequest

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

TestIamPermissions(TestIamPermissionsImageRequest, ServerCallContext)

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

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
request TestIamPermissionsImageRequest

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