public sealed class RegionSnapshotsClientImpl : RegionSnapshotsClientReference documentation and code samples for the Compute Engine v1 API class RegionSnapshotsClientImpl.
RegionSnapshots client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Remarks
The RegionSnapshots API.
Constructors
RegionSnapshotsClientImpl(RegionSnapshotsClient, RegionSnapshotsSettings, ILogger)
public RegionSnapshotsClientImpl(RegionSnapshots.RegionSnapshotsClient grpcClient, RegionSnapshotsSettings settings, ILogger logger)Constructs a client wrapper for the RegionSnapshots service, with the specified gRPC client and settings.
| Parameters | |
|---|---|
| Name | Description |
grpcClient |
RegionSnapshotsRegionSnapshotsClientThe underlying gRPC client. |
settings |
RegionSnapshotsSettingsThe base RegionSnapshotsSettings used within this client. |
logger |
ILoggerOptional ILogger to use within this client. |
Properties
DeleteOperationsClient
public override OperationsClient DeleteOperationsClient { get; }The long-running operations client for Delete.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
GrpcClient
public override RegionSnapshots.RegionSnapshotsClient GrpcClient { get; }The underlying gRPC RegionSnapshots client
| Property Value | |
|---|---|
| Type | Description |
RegionSnapshotsRegionSnapshotsClient |
|
InsertOperationsClient
public override OperationsClient InsertOperationsClient { get; }The long-running operations client for Insert.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
SetLabelsOperationsClient
public override OperationsClient SetLabelsOperationsClient { get; }The long-running operations client for SetLabels.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
UpdateKmsKeyOperationsClient
public override OperationsClient UpdateKmsKeyOperationsClient { get; }The long-running operations client for UpdateKmsKey.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
Methods
Delete(DeleteRegionSnapshotRequest, CallSettings)
public override Operation<Operation, Operation> Delete(DeleteRegionSnapshotRequest request, CallSettings callSettings = null)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 object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOperationOperation |
The RPC response. |
DeleteAsync(DeleteRegionSnapshotRequest, CallSettings)
public override Task<Operation<Operation, Operation>> DeleteAsync(DeleteRegionSnapshotRequest request, CallSettings callSettings = null)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 object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
Get(GetRegionSnapshotRequest, CallSettings)
public override Snapshot Get(GetRegionSnapshotRequest request, CallSettings callSettings = null)Returns the specified Snapshot resource.
| Parameters | |
|---|---|
| Name | Description |
request |
GetRegionSnapshotRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Snapshot |
The RPC response. |
GetAsync(GetRegionSnapshotRequest, CallSettings)
public override Task<Snapshot> GetAsync(GetRegionSnapshotRequest request, CallSettings callSettings = null)Returns the specified Snapshot resource.
| Parameters | |
|---|---|
| Name | Description |
request |
GetRegionSnapshotRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskSnapshot |
A Task containing the RPC response. |
GetIamPolicy(GetIamPolicyRegionSnapshotRequest, CallSettings)
public override Policy GetIamPolicy(GetIamPolicyRegionSnapshotRequest request, CallSettings callSettings = null)Gets the access control policy for a resource. May be empty if no such policy or resource exists.
| Parameters | |
|---|---|
| Name | Description |
request |
GetIamPolicyRegionSnapshotRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Policy |
The RPC response. |
GetIamPolicyAsync(GetIamPolicyRegionSnapshotRequest, CallSettings)
public override Task<Policy> GetIamPolicyAsync(GetIamPolicyRegionSnapshotRequest request, CallSettings callSettings = null)Gets the access control policy for a resource. May be empty if no such policy or resource exists.
| Parameters | |
|---|---|
| Name | Description |
request |
GetIamPolicyRegionSnapshotRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskPolicy |
A Task containing the RPC response. |
Insert(InsertRegionSnapshotRequest, CallSettings)
public override Operation<Operation, Operation> Insert(InsertRegionSnapshotRequest request, CallSettings callSettings = null)Creates a snapshot in the specified region using the data included in the request.
| Parameters | |
|---|---|
| Name | Description |
request |
InsertRegionSnapshotRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOperationOperation |
The RPC response. |
InsertAsync(InsertRegionSnapshotRequest, CallSettings)
public override Task<Operation<Operation, Operation>> InsertAsync(InsertRegionSnapshotRequest request, CallSettings callSettings = null)Creates a snapshot in the specified region using the data included in the request.
| Parameters | |
|---|---|
| Name | Description |
request |
InsertRegionSnapshotRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
List(ListRegionSnapshotsRequest, CallSettings)
public override PagedEnumerable<SnapshotList, Snapshot> List(ListRegionSnapshotsRequest request, CallSettings callSettings = null)Retrieves the list of Snapshot resources contained within the specified region.
| Parameters | |
|---|---|
| Name | Description |
request |
ListRegionSnapshotsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableSnapshotListSnapshot |
A pageable sequence of Snapshot resources. |
ListAsync(ListRegionSnapshotsRequest, CallSettings)
public override PagedAsyncEnumerable<SnapshotList, Snapshot> ListAsync(ListRegionSnapshotsRequest request, CallSettings callSettings = null)Retrieves the list of Snapshot resources contained within the specified region.
| Parameters | |
|---|---|
| Name | Description |
request |
ListRegionSnapshotsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableSnapshotListSnapshot |
A pageable asynchronous sequence of Snapshot resources. |
SetIamPolicy(SetIamPolicyRegionSnapshotRequest, CallSettings)
public override Policy SetIamPolicy(SetIamPolicyRegionSnapshotRequest request, CallSettings callSettings = null)Sets the access control policy on the specified resource. Replaces any existing policy.
| Parameters | |
|---|---|
| Name | Description |
request |
SetIamPolicyRegionSnapshotRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Policy |
The RPC response. |
SetIamPolicyAsync(SetIamPolicyRegionSnapshotRequest, CallSettings)
public override Task<Policy> SetIamPolicyAsync(SetIamPolicyRegionSnapshotRequest request, CallSettings callSettings = null)Sets the access control policy on the specified resource. Replaces any existing policy.
| Parameters | |
|---|---|
| Name | Description |
request |
SetIamPolicyRegionSnapshotRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskPolicy |
A Task containing the RPC response. |
SetLabels(SetLabelsRegionSnapshotRequest, CallSettings)
public override Operation<Operation, Operation> SetLabels(SetLabelsRegionSnapshotRequest request, CallSettings callSettings = null)Sets the labels on a regional snapshot. To learn more about labels, read the Labeling Resources documentation.
| Parameters | |
|---|---|
| Name | Description |
request |
SetLabelsRegionSnapshotRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOperationOperation |
The RPC response. |
SetLabelsAsync(SetLabelsRegionSnapshotRequest, CallSettings)
public override Task<Operation<Operation, Operation>> SetLabelsAsync(SetLabelsRegionSnapshotRequest request, CallSettings callSettings = null)Sets the labels on a regional snapshot. To learn more about labels, read the Labeling Resources documentation.
| Parameters | |
|---|---|
| Name | Description |
request |
SetLabelsRegionSnapshotRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
TestIamPermissions(TestIamPermissionsRegionSnapshotRequest, CallSettings)
public override TestPermissionsResponse TestIamPermissions(TestIamPermissionsRegionSnapshotRequest request, CallSettings callSettings = null)Returns permissions that a caller has on the specified resource.
| Parameters | |
|---|---|
| Name | Description |
request |
TestIamPermissionsRegionSnapshotRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TestPermissionsResponse |
The RPC response. |
TestIamPermissionsAsync(TestIamPermissionsRegionSnapshotRequest, CallSettings)
public override Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRegionSnapshotRequest request, CallSettings callSettings = null)Returns permissions that a caller has on the specified resource.
| Parameters | |
|---|---|
| Name | Description |
request |
TestIamPermissionsRegionSnapshotRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskTestPermissionsResponse |
A Task containing the RPC response. |
UpdateKmsKey(UpdateKmsKeyRegionSnapshotRequest, CallSettings)
public override Operation<Operation, Operation> UpdateKmsKey(UpdateKmsKeyRegionSnapshotRequest request, CallSettings callSettings = null)Rotates the customer-managed encryption key to the latest version for the specified snapshot.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateKmsKeyRegionSnapshotRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOperationOperation |
The RPC response. |
UpdateKmsKeyAsync(UpdateKmsKeyRegionSnapshotRequest, CallSettings)
public override Task<Operation<Operation, Operation>> UpdateKmsKeyAsync(UpdateKmsKeyRegionSnapshotRequest request, CallSettings callSettings = null)Rotates the customer-managed encryption key to the latest version for the specified snapshot.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateKmsKeyRegionSnapshotRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |