Compute Engine v1 API - Class RegionInstantSnapshotsClientImpl (2.14.0)

public sealed class RegionInstantSnapshotsClientImpl : RegionInstantSnapshotsClient

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

RegionInstantSnapshots client wrapper implementation, for convenient use.

Inheritance

object > RegionInstantSnapshotsClient > RegionInstantSnapshotsClientImpl

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Remarks

The RegionInstantSnapshots API.

Constructors

RegionInstantSnapshotsClientImpl(RegionInstantSnapshotsClient, RegionInstantSnapshotsSettings, ILogger)

public RegionInstantSnapshotsClientImpl(RegionInstantSnapshots.RegionInstantSnapshotsClient grpcClient, RegionInstantSnapshotsSettings settings, ILogger logger)

Constructs a client wrapper for the RegionInstantSnapshots service, with the specified gRPC client and settings.

Parameters
NameDescription
grpcClientRegionInstantSnapshotsRegionInstantSnapshotsClient

The underlying gRPC client.

settingsRegionInstantSnapshotsSettings

The base RegionInstantSnapshotsSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

DeleteOperationsClient

public override OperationsClient DeleteOperationsClient { get; }

The long-running operations client for Delete.

Property Value
TypeDescription
OperationsClient
Overrides

GrpcClient

public override RegionInstantSnapshots.RegionInstantSnapshotsClient GrpcClient { get; }

The underlying gRPC RegionInstantSnapshots client

Property Value
TypeDescription
RegionInstantSnapshotsRegionInstantSnapshotsClient
Overrides

InsertOperationsClient

public override OperationsClient InsertOperationsClient { get; }

The long-running operations client for Insert.

Property Value
TypeDescription
OperationsClient
Overrides

SetLabelsOperationsClient

public override OperationsClient SetLabelsOperationsClient { get; }

The long-running operations client for SetLabels.

Property Value
TypeDescription
OperationsClient
Overrides

Methods

Delete(DeleteRegionInstantSnapshotRequest, CallSettings)

public override Operation<Operation, Operation> Delete(DeleteRegionInstantSnapshotRequest request, CallSettings callSettings = null)

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
NameDescription
requestDeleteRegionInstantSnapshotRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Overrides

DeleteAsync(DeleteRegionInstantSnapshotRequest, CallSettings)

public override Task<Operation<Operation, Operation>> DeleteAsync(DeleteRegionInstantSnapshotRequest request, CallSettings callSettings = null)

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
NameDescription
requestDeleteRegionInstantSnapshotRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

Get(GetRegionInstantSnapshotRequest, CallSettings)

public override InstantSnapshot Get(GetRegionInstantSnapshotRequest request, CallSettings callSettings = null)

Returns the specified InstantSnapshot resource in the specified region.

Parameters
NameDescription
requestGetRegionInstantSnapshotRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
InstantSnapshot

The RPC response.

Overrides

GetAsync(GetRegionInstantSnapshotRequest, CallSettings)

public override Task<InstantSnapshot> GetAsync(GetRegionInstantSnapshotRequest request, CallSettings callSettings = null)

Returns the specified InstantSnapshot resource in the specified region.

Parameters
NameDescription
requestGetRegionInstantSnapshotRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskInstantSnapshot

A Task containing the RPC response.

Overrides

GetIamPolicy(GetIamPolicyRegionInstantSnapshotRequest, CallSettings)

public override Policy GetIamPolicy(GetIamPolicyRegionInstantSnapshotRequest request, CallSettings callSettings = null)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Parameters
NameDescription
requestGetIamPolicyRegionInstantSnapshotRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Policy

The RPC response.

Overrides

GetIamPolicyAsync(GetIamPolicyRegionInstantSnapshotRequest, CallSettings)

public override Task<Policy> GetIamPolicyAsync(GetIamPolicyRegionInstantSnapshotRequest request, CallSettings callSettings = null)

Gets the access control policy for a resource. May be empty if no such policy or resource exists.

Parameters
NameDescription
requestGetIamPolicyRegionInstantSnapshotRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskPolicy

A Task containing the RPC response.

Overrides

Insert(InsertRegionInstantSnapshotRequest, CallSettings)

public override Operation<Operation, Operation> Insert(InsertRegionInstantSnapshotRequest request, CallSettings callSettings = null)

Creates an instant snapshot in the specified region.

Parameters
NameDescription
requestInsertRegionInstantSnapshotRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Overrides

InsertAsync(InsertRegionInstantSnapshotRequest, CallSettings)

public override Task<Operation<Operation, Operation>> InsertAsync(InsertRegionInstantSnapshotRequest request, CallSettings callSettings = null)

Creates an instant snapshot in the specified region.

Parameters
NameDescription
requestInsertRegionInstantSnapshotRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

List(ListRegionInstantSnapshotsRequest, CallSettings)

public override PagedEnumerable<InstantSnapshotList, InstantSnapshot> List(ListRegionInstantSnapshotsRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestListRegionInstantSnapshotsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableInstantSnapshotListInstantSnapshot

A pageable sequence of InstantSnapshot resources.

Overrides

ListAsync(ListRegionInstantSnapshotsRequest, CallSettings)

public override PagedAsyncEnumerable<InstantSnapshotList, InstantSnapshot> ListAsync(ListRegionInstantSnapshotsRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestListRegionInstantSnapshotsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableInstantSnapshotListInstantSnapshot

A pageable asynchronous sequence of InstantSnapshot resources.

Overrides

SetIamPolicy(SetIamPolicyRegionInstantSnapshotRequest, CallSettings)

public override Policy SetIamPolicy(SetIamPolicyRegionInstantSnapshotRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestSetIamPolicyRegionInstantSnapshotRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Policy

The RPC response.

Overrides

SetIamPolicyAsync(SetIamPolicyRegionInstantSnapshotRequest, CallSettings)

public override Task<Policy> SetIamPolicyAsync(SetIamPolicyRegionInstantSnapshotRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestSetIamPolicyRegionInstantSnapshotRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskPolicy

A Task containing the RPC response.

Overrides

SetLabels(SetLabelsRegionInstantSnapshotRequest, CallSettings)

public override Operation<Operation, Operation> SetLabels(SetLabelsRegionInstantSnapshotRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestSetLabelsRegionInstantSnapshotRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Overrides

SetLabelsAsync(SetLabelsRegionInstantSnapshotRequest, CallSettings)

public override Task<Operation<Operation, Operation>> SetLabelsAsync(SetLabelsRegionInstantSnapshotRequest request, CallSettings callSettings = null)

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

Parameters
NameDescription
requestSetLabelsRegionInstantSnapshotRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

TestIamPermissions(TestIamPermissionsRegionInstantSnapshotRequest, CallSettings)

public override TestPermissionsResponse TestIamPermissions(TestIamPermissionsRegionInstantSnapshotRequest request, CallSettings callSettings = null)

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsRegionInstantSnapshotRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TestPermissionsResponse

The RPC response.

Overrides

TestIamPermissionsAsync(TestIamPermissionsRegionInstantSnapshotRequest, CallSettings)

public override Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRegionInstantSnapshotRequest request, CallSettings callSettings = null)

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsRegionInstantSnapshotRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskTestPermissionsResponse

A Task containing the RPC response.

Overrides