[BindServiceMethod(typeof(RegionSnapshots), "BindService")]
public abstract class RegionSnapshots.RegionSnapshotsBaseReference documentation and code samples for the Compute Engine v1 API class RegionSnapshots.RegionSnapshotsBase.
Base class for server-side implementations of RegionSnapshots
Namespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Methods
Delete(DeleteRegionSnapshotRequest, ServerCallContext)
public virtual Task<Operation> Delete(DeleteRegionSnapshotRequest request, ServerCallContext context)Deletes the specified Snapshot resource. Keep in mind that deleting a single snapshot might not necessarily delete all the data on that snapshot. If any data on the snapshot that is marked for deletion is needed for subsequent snapshots, the data will be moved to the next corresponding snapshot.
For more information, seeDeleting snapshots.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteRegionSnapshotRequestThe 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(GetRegionSnapshotRequest, ServerCallContext)
public virtual Task<Snapshot> Get(GetRegionSnapshotRequest request, ServerCallContext context)Returns the specified Snapshot resource.
| Parameters | |
|---|---|
| Name | Description |
request |
GetRegionSnapshotRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskSnapshot |
The response to send back to the client (wrapped by a task). |
GetIamPolicy(GetIamPolicyRegionSnapshotRequest, ServerCallContext)
public virtual Task<Policy> GetIamPolicy(GetIamPolicyRegionSnapshotRequest 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 |
GetIamPolicyRegionSnapshotRequestThe 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(InsertRegionSnapshotRequest, ServerCallContext)
public virtual Task<Operation> Insert(InsertRegionSnapshotRequest request, ServerCallContext context)Creates a snapshot in the specified region using the data included in the request.
| Parameters | |
|---|---|
| Name | Description |
request |
InsertRegionSnapshotRequestThe 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(ListRegionSnapshotsRequest, ServerCallContext)
public virtual Task<SnapshotList> List(ListRegionSnapshotsRequest request, ServerCallContext context)Retrieves the list of Snapshot resources contained within the specified region.
| Parameters | |
|---|---|
| Name | Description |
request |
ListRegionSnapshotsRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskSnapshotList |
The response to send back to the client (wrapped by a task). |
SetIamPolicy(SetIamPolicyRegionSnapshotRequest, ServerCallContext)
public virtual Task<Policy> SetIamPolicy(SetIamPolicyRegionSnapshotRequest request, ServerCallContext context)Sets the access control policy on the specified resource. Replaces any existing policy.
| Parameters | |
|---|---|
| Name | Description |
request |
SetIamPolicyRegionSnapshotRequestThe 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(SetLabelsRegionSnapshotRequest, ServerCallContext)
public virtual Task<Operation> SetLabels(SetLabelsRegionSnapshotRequest request, ServerCallContext context)Sets the labels on a regional snapshot. To learn more about labels, read the Labeling Resources documentation.
| Parameters | |
|---|---|
| Name | Description |
request |
SetLabelsRegionSnapshotRequestThe 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(TestIamPermissionsRegionSnapshotRequest, ServerCallContext)
public virtual Task<TestPermissionsResponse> TestIamPermissions(TestIamPermissionsRegionSnapshotRequest request, ServerCallContext context)Returns permissions that a caller has on the specified resource.
| Parameters | |
|---|---|
| Name | Description |
request |
TestIamPermissionsRegionSnapshotRequestThe 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). |
UpdateKmsKey(UpdateKmsKeyRegionSnapshotRequest, ServerCallContext)
public virtual Task<Operation> UpdateKmsKey(UpdateKmsKeyRegionSnapshotRequest request, ServerCallContext context)Rotates the customer-managed encryption key to the latest version for the specified snapshot.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateKmsKeyRegionSnapshotRequestThe 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). |