[BindServiceMethod(typeof(MachineImages), "BindService")]
public abstract class MachineImages.MachineImagesBase
Reference documentation and code samples for the Compute Engine v1 API class MachineImages.MachineImagesBase.
Base class for server-side implementations of MachineImages
Namespace
Google.Cloud.Compute.V1Assembly
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 | |
---|---|
Name | Description |
request |
DeleteMachineImageRequest 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(GetMachineImageRequest, ServerCallContext)
public virtual Task<MachineImage> Get(GetMachineImageRequest request, ServerCallContext context)
Returns the specified machine image.
Parameters | |
---|---|
Name | Description |
request |
GetMachineImageRequest The request received from the client. |
context |
ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
TaskMachineImage |
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 | |
---|---|
Name | Description |
request |
GetIamPolicyMachineImageRequest 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(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 | |
---|---|
Name | Description |
request |
InsertMachineImageRequest 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(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 | |
---|---|
Name | Description |
request |
ListMachineImagesRequest The request received from the client. |
context |
ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
TaskMachineImageList |
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 | |
---|---|
Name | Description |
request |
SetIamPolicyMachineImageRequest 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). |
TestIamPermissions(TestIamPermissionsMachineImageRequest, ServerCallContext)
public virtual Task<TestPermissionsResponse> TestIamPermissions(TestIamPermissionsMachineImageRequest request, ServerCallContext context)
Returns permissions that a caller has on the specified resource.
Parameters | |
---|---|
Name | Description |
request |
TestIamPermissionsMachineImageRequest 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). |