Compute Engine v1 API - Class InstantSnapshots.InstantSnapshotsBase (2.15.0)

[BindServiceMethod(typeof(InstantSnapshots), "BindService")]
public abstract class InstantSnapshots.InstantSnapshotsBase

Reference documentation and code samples for the Compute Engine v1 API class InstantSnapshots.InstantSnapshotsBase.

Base class for server-side implementations of InstantSnapshots

Inheritance

object > InstantSnapshots.InstantSnapshotsBase

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Methods

AggregatedList(AggregatedListInstantSnapshotsRequest, ServerCallContext)

public virtual Task<InstantSnapshotAggregatedList> AggregatedList(AggregatedListInstantSnapshotsRequest request, ServerCallContext context)

Retrieves an aggregated list of instantSnapshots. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

Parameters
Name Description
request AggregatedListInstantSnapshotsRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskInstantSnapshotAggregatedList

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

Delete(DeleteInstantSnapshotRequest, ServerCallContext)

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

Deletes the specified InstantSnapshot resource. Keep in mind that deleting a single instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data on the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, the data will be moved to the next corresponding instantSnapshot. For more information, see Deleting instantSnapshots.

Parameters
Name Description
request DeleteInstantSnapshotRequest

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

public virtual Task<InstantSnapshot> Get(GetInstantSnapshotRequest request, ServerCallContext context)

Returns the specified InstantSnapshot resource in the specified zone.

Parameters
Name Description
request GetInstantSnapshotRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskInstantSnapshot

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

GetIamPolicy(GetIamPolicyInstantSnapshotRequest, ServerCallContext)

public virtual Task<Policy> GetIamPolicy(GetIamPolicyInstantSnapshotRequest 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 GetIamPolicyInstantSnapshotRequest

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

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

Creates an instant snapshot in the specified zone.

Parameters
Name Description
request InsertInstantSnapshotRequest

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

public virtual Task<InstantSnapshotList> List(ListInstantSnapshotsRequest request, ServerCallContext context)

Retrieves the list of InstantSnapshot resources contained within the specified zone.

Parameters
Name Description
request ListInstantSnapshotsRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
TaskInstantSnapshotList

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

SetIamPolicy(SetIamPolicyInstantSnapshotRequest, ServerCallContext)

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

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

Parameters
Name Description
request SetIamPolicyInstantSnapshotRequest

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

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

Sets the labels on a instantSnapshot in the given zone. To learn more about labels, read the Labeling Resources documentation.

Parameters
Name Description
request SetLabelsInstantSnapshotRequest

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

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

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
request TestIamPermissionsInstantSnapshotRequest

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