[BindServiceMethod(typeof(InstantSnapshots), "BindService")]
public abstract class InstantSnapshots.InstantSnapshotsBaseReference documentation and code samples for the Compute Engine v1 API class InstantSnapshots.InstantSnapshotsBase.
Base class for server-side implementations of InstantSnapshots
Namespace
Google.Cloud.Compute.V1Assembly
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 |
AggregatedListInstantSnapshotsRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
DeleteInstantSnapshotRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
GetInstantSnapshotRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
GetIamPolicyInstantSnapshotRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
InsertInstantSnapshotRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
ListInstantSnapshotsRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
SetIamPolicyInstantSnapshotRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
SetLabelsInstantSnapshotRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
TestIamPermissionsInstantSnapshotRequestThe request received from the client. |
context |
ServerCallContextThe 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). |