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.
Namespace
Google.Cloud.Compute.V1Assembly
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 | |
---|---|
Name | Description |
grpcClient |
RegionInstantSnapshotsRegionInstantSnapshotsClient The underlying gRPC client. |
settings |
RegionInstantSnapshotsSettings The base RegionInstantSnapshotsSettings 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 |
GrpcClient
public override RegionInstantSnapshots.RegionInstantSnapshotsClient GrpcClient { get; }
The underlying gRPC RegionInstantSnapshots client
Property Value | |
---|---|
Type | Description |
RegionInstantSnapshotsRegionInstantSnapshotsClient |
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 |
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 | |
---|---|
Name | Description |
request |
DeleteRegionInstantSnapshotRequest 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. |
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 | |
---|---|
Name | Description |
request |
DeleteRegionInstantSnapshotRequest 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. |
Get(GetRegionInstantSnapshotRequest, CallSettings)
public override InstantSnapshot Get(GetRegionInstantSnapshotRequest request, CallSettings callSettings = null)
Returns the specified InstantSnapshot resource in the specified region.
Parameters | |
---|---|
Name | Description |
request |
GetRegionInstantSnapshotRequest 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 |
InstantSnapshot |
The RPC response. |
GetAsync(GetRegionInstantSnapshotRequest, CallSettings)
public override Task<InstantSnapshot> GetAsync(GetRegionInstantSnapshotRequest request, CallSettings callSettings = null)
Returns the specified InstantSnapshot resource in the specified region.
Parameters | |
---|---|
Name | Description |
request |
GetRegionInstantSnapshotRequest 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 |
TaskInstantSnapshot |
A Task containing the RPC response. |
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 | |
---|---|
Name | Description |
request |
GetIamPolicyRegionInstantSnapshotRequest 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. |
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 | |
---|---|
Name | Description |
request |
GetIamPolicyRegionInstantSnapshotRequest 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. |
Insert(InsertRegionInstantSnapshotRequest, CallSettings)
public override Operation<Operation, Operation> Insert(InsertRegionInstantSnapshotRequest request, CallSettings callSettings = null)
Creates an instant snapshot in the specified region.
Parameters | |
---|---|
Name | Description |
request |
InsertRegionInstantSnapshotRequest 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. |
InsertAsync(InsertRegionInstantSnapshotRequest, CallSettings)
public override Task<Operation<Operation, Operation>> InsertAsync(InsertRegionInstantSnapshotRequest request, CallSettings callSettings = null)
Creates an instant snapshot in the specified region.
Parameters | |
---|---|
Name | Description |
request |
InsertRegionInstantSnapshotRequest 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. |
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 | |
---|---|
Name | Description |
request |
ListRegionInstantSnapshotsRequest 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 |
PagedEnumerableInstantSnapshotListInstantSnapshot |
A pageable sequence of InstantSnapshot resources. |
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 | |
---|---|
Name | Description |
request |
ListRegionInstantSnapshotsRequest 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 |
PagedAsyncEnumerableInstantSnapshotListInstantSnapshot |
A pageable asynchronous sequence of InstantSnapshot resources. |
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 | |
---|---|
Name | Description |
request |
SetIamPolicyRegionInstantSnapshotRequest 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. |
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 | |
---|---|
Name | Description |
request |
SetIamPolicyRegionInstantSnapshotRequest 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. |
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 | |
---|---|
Name | Description |
request |
SetLabelsRegionInstantSnapshotRequest 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. |
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 | |
---|---|
Name | Description |
request |
SetLabelsRegionInstantSnapshotRequest 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. |
TestIamPermissions(TestIamPermissionsRegionInstantSnapshotRequest, CallSettings)
public override TestPermissionsResponse TestIamPermissions(TestIamPermissionsRegionInstantSnapshotRequest request, CallSettings callSettings = null)
Returns permissions that a caller has on the specified resource.
Parameters | |
---|---|
Name | Description |
request |
TestIamPermissionsRegionInstantSnapshotRequest 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. |
TestIamPermissionsAsync(TestIamPermissionsRegionInstantSnapshotRequest, CallSettings)
public override Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRegionInstantSnapshotRequest request, CallSettings callSettings = null)
Returns permissions that a caller has on the specified resource.
Parameters | |
---|---|
Name | Description |
request |
TestIamPermissionsRegionInstantSnapshotRequest 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. |