Compute Engine v1 API - Class RegionSnapshotsClientImpl (3.27.0)

public sealed class RegionSnapshotsClientImpl : RegionSnapshotsClient

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

RegionSnapshots client wrapper implementation, for convenient use.

Inheritance

object > RegionSnapshotsClient > RegionSnapshotsClientImpl

Namespace

Google.Cloud.Compute.V1

Assembly

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 RegionSnapshotsRegionSnapshotsClient

The underlying gRPC client.

settings RegionSnapshotsSettings

The base RegionSnapshotsSettings used within this client.

logger ILogger

Optional 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
Overrides

GrpcClient

public override RegionSnapshots.RegionSnapshotsClient GrpcClient { get; }

The underlying gRPC RegionSnapshots client

Property Value
Type Description
RegionSnapshotsRegionSnapshotsClient
Overrides

InsertOperationsClient

public override OperationsClient InsertOperationsClient { get; }

The long-running operations client for Insert.

Property Value
Type Description
OperationsClient
Overrides

SetLabelsOperationsClient

public override OperationsClient SetLabelsOperationsClient { get; }

The long-running operations client for SetLabels.

Property Value
Type Description
OperationsClient
Overrides

UpdateKmsKeyOperationsClient

public override OperationsClient UpdateKmsKeyOperationsClient { get; }

The long-running operations client for UpdateKmsKey.

Property Value
Type Description
OperationsClient
Overrides

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 DeleteRegionSnapshotRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

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 DeleteRegionSnapshotRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

Get(GetRegionSnapshotRequest, CallSettings)

public override Snapshot Get(GetRegionSnapshotRequest request, CallSettings callSettings = null)

Returns the specified Snapshot resource.

Parameters
Name Description
request GetRegionSnapshotRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Snapshot

The RPC response.

Overrides

GetAsync(GetRegionSnapshotRequest, CallSettings)

public override Task<Snapshot> GetAsync(GetRegionSnapshotRequest request, CallSettings callSettings = null)

Returns the specified Snapshot resource.

Parameters
Name Description
request GetRegionSnapshotRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSnapshot

A Task containing the RPC response.

Overrides

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 GetIamPolicyRegionSnapshotRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Policy

The RPC response.

Overrides

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 GetIamPolicyRegionSnapshotRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPolicy

A Task containing the RPC response.

Overrides

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 InsertRegionSnapshotRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

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 InsertRegionSnapshotRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

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 ListRegionSnapshotsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableSnapshotListSnapshot

A pageable sequence of Snapshot resources.

Overrides

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 ListRegionSnapshotsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableSnapshotListSnapshot

A pageable asynchronous sequence of Snapshot resources.

Overrides

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 SetIamPolicyRegionSnapshotRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Policy

The RPC response.

Overrides

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 SetIamPolicyRegionSnapshotRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPolicy

A Task containing the RPC response.

Overrides

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 SetLabelsRegionSnapshotRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

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 SetLabelsRegionSnapshotRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

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 TestIamPermissionsRegionSnapshotRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TestPermissionsResponse

The RPC response.

Overrides

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 TestIamPermissionsRegionSnapshotRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskTestPermissionsResponse

A Task containing the RPC response.

Overrides

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 UpdateKmsKeyRegionSnapshotRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Overrides

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 UpdateKmsKeyRegionSnapshotRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides