public class InstantSnapshots.InstantSnapshotsClient : ClientBase<InstantSnapshots.InstantSnapshotsClient>
Reference documentation and code samples for the Compute Engine v1 API class InstantSnapshots.InstantSnapshotsClient.
Client for InstantSnapshots
Inheritance
object > ClientBase > ClientBaseInstantSnapshotsInstantSnapshotsClient > InstantSnapshots.InstantSnapshotsClientNamespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Constructors
InstantSnapshotsClient()
protected InstantSnapshotsClient()
Protected parameterless constructor to allow creation of test doubles.
InstantSnapshotsClient(CallInvoker)
public InstantSnapshotsClient(CallInvoker callInvoker)
Creates a new client for InstantSnapshots that uses a custom CallInvoker
.
Parameter | |
---|---|
Name | Description |
callInvoker |
CallInvoker The callInvoker to use to make remote calls. |
InstantSnapshotsClient(ChannelBase)
public InstantSnapshotsClient(ChannelBase channel)
Creates a new client for InstantSnapshots
Parameter | |
---|---|
Name | Description |
channel |
ChannelBase The channel to use to make remote calls. |
InstantSnapshotsClient(ClientBaseConfiguration)
protected InstantSnapshotsClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration |
ClientBaseClientBaseConfiguration The client configuration. |
Methods
AggregatedList(AggregatedListInstantSnapshotsRequest, CallOptions)
public virtual InstantSnapshotAggregatedList AggregatedList(AggregatedListInstantSnapshotsRequest request, CallOptions options)
Retrieves an aggregated list of instantSnapshots. To prevent failure, Google recommends that you set the returnPartialSuccess
parameter to true
.
Parameters | |
---|---|
Name | Description |
request |
AggregatedListInstantSnapshotsRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
InstantSnapshotAggregatedList |
The response received from the server. |
AggregatedList(AggregatedListInstantSnapshotsRequest, Metadata, DateTime?, CancellationToken)
public virtual InstantSnapshotAggregatedList AggregatedList(AggregatedListInstantSnapshotsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Retrieves an aggregated list of instantSnapshots. To prevent failure, Google recommends that you set the returnPartialSuccess
parameter to true
.
Parameters | |
---|---|
Name | Description |
request |
AggregatedListInstantSnapshotsRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
InstantSnapshotAggregatedList |
The response received from the server. |
AggregatedListAsync(AggregatedListInstantSnapshotsRequest, CallOptions)
public virtual AsyncUnaryCall<InstantSnapshotAggregatedList> AggregatedListAsync(AggregatedListInstantSnapshotsRequest request, CallOptions options)
Retrieves an aggregated list of instantSnapshots. To prevent failure, Google recommends that you set the returnPartialSuccess
parameter to true
.
Parameters | |
---|---|
Name | Description |
request |
AggregatedListInstantSnapshotsRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallInstantSnapshotAggregatedList |
The call object. |
AggregatedListAsync(AggregatedListInstantSnapshotsRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<InstantSnapshotAggregatedList> AggregatedListAsync(AggregatedListInstantSnapshotsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Retrieves an aggregated list of instantSnapshots. To prevent failure, Google recommends that you set the returnPartialSuccess
parameter to true
.
Parameters | |
---|---|
Name | Description |
request |
AggregatedListInstantSnapshotsRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallInstantSnapshotAggregatedList |
The call object. |
CreateOperationsClientForZoneOperations()
public virtual Operations.OperationsClient CreateOperationsClientForZoneOperations()
Creates a new instance of Operations.OperationsClient using the same call invoker as this client, delegating to ZoneOperations.
Returns | |
---|---|
Type | Description |
OperationsOperationsClient |
A new Operations client for the same target as this client. |
Delete(DeleteInstantSnapshotRequest, CallOptions)
public virtual Operation Delete(DeleteInstantSnapshotRequest request, CallOptions options)
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 |
DeleteInstantSnapshotRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Operation |
The response received from the server. |
Delete(DeleteInstantSnapshotRequest, Metadata, DateTime?, CancellationToken)
public virtual Operation Delete(DeleteInstantSnapshotRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
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 |
DeleteInstantSnapshotRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Operation |
The response received from the server. |
DeleteAsync(DeleteInstantSnapshotRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteInstantSnapshotRequest request, CallOptions options)
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 |
DeleteInstantSnapshotRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallOperation |
The call object. |
DeleteAsync(DeleteInstantSnapshotRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteInstantSnapshotRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
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 |
DeleteInstantSnapshotRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallOperation |
The call object. |
Get(GetInstantSnapshotRequest, CallOptions)
public virtual InstantSnapshot Get(GetInstantSnapshotRequest request, CallOptions options)
Returns the specified InstantSnapshot resource in the specified zone.
Parameters | |
---|---|
Name | Description |
request |
GetInstantSnapshotRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
InstantSnapshot |
The response received from the server. |
Get(GetInstantSnapshotRequest, Metadata, DateTime?, CancellationToken)
public virtual InstantSnapshot Get(GetInstantSnapshotRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Returns the specified InstantSnapshot resource in the specified zone.
Parameters | |
---|---|
Name | Description |
request |
GetInstantSnapshotRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
InstantSnapshot |
The response received from the server. |
GetAsync(GetInstantSnapshotRequest, CallOptions)
public virtual AsyncUnaryCall<InstantSnapshot> GetAsync(GetInstantSnapshotRequest request, CallOptions options)
Returns the specified InstantSnapshot resource in the specified zone.
Parameters | |
---|---|
Name | Description |
request |
GetInstantSnapshotRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallInstantSnapshot |
The call object. |
GetAsync(GetInstantSnapshotRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<InstantSnapshot> GetAsync(GetInstantSnapshotRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Returns the specified InstantSnapshot resource in the specified zone.
Parameters | |
---|---|
Name | Description |
request |
GetInstantSnapshotRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallInstantSnapshot |
The call object. |
GetIamPolicy(GetIamPolicyInstantSnapshotRequest, CallOptions)
public virtual Policy GetIamPolicy(GetIamPolicyInstantSnapshotRequest request, CallOptions options)
Gets the access control policy for a resource. May be empty if no such policy or resource exists.
Parameters | |
---|---|
Name | Description |
request |
GetIamPolicyInstantSnapshotRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Policy |
The response received from the server. |
GetIamPolicy(GetIamPolicyInstantSnapshotRequest, Metadata, DateTime?, CancellationToken)
public virtual Policy GetIamPolicy(GetIamPolicyInstantSnapshotRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Gets the access control policy for a resource. May be empty if no such policy or resource exists.
Parameters | |
---|---|
Name | Description |
request |
GetIamPolicyInstantSnapshotRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Policy |
The response received from the server. |
GetIamPolicyAsync(GetIamPolicyInstantSnapshotRequest, CallOptions)
public virtual AsyncUnaryCall<Policy> GetIamPolicyAsync(GetIamPolicyInstantSnapshotRequest request, CallOptions options)
Gets the access control policy for a resource. May be empty if no such policy or resource exists.
Parameters | |
---|---|
Name | Description |
request |
GetIamPolicyInstantSnapshotRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallPolicy |
The call object. |
GetIamPolicyAsync(GetIamPolicyInstantSnapshotRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<Policy> GetIamPolicyAsync(GetIamPolicyInstantSnapshotRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Gets the access control policy for a resource. May be empty if no such policy or resource exists.
Parameters | |
---|---|
Name | Description |
request |
GetIamPolicyInstantSnapshotRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallPolicy |
The call object. |
Insert(InsertInstantSnapshotRequest, CallOptions)
public virtual Operation Insert(InsertInstantSnapshotRequest request, CallOptions options)
Creates an instant snapshot in the specified zone.
Parameters | |
---|---|
Name | Description |
request |
InsertInstantSnapshotRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Operation |
The response received from the server. |
Insert(InsertInstantSnapshotRequest, Metadata, DateTime?, CancellationToken)
public virtual Operation Insert(InsertInstantSnapshotRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Creates an instant snapshot in the specified zone.
Parameters | |
---|---|
Name | Description |
request |
InsertInstantSnapshotRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Operation |
The response received from the server. |
InsertAsync(InsertInstantSnapshotRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> InsertAsync(InsertInstantSnapshotRequest request, CallOptions options)
Creates an instant snapshot in the specified zone.
Parameters | |
---|---|
Name | Description |
request |
InsertInstantSnapshotRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallOperation |
The call object. |
InsertAsync(InsertInstantSnapshotRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<Operation> InsertAsync(InsertInstantSnapshotRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Creates an instant snapshot in the specified zone.
Parameters | |
---|---|
Name | Description |
request |
InsertInstantSnapshotRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallOperation |
The call object. |
List(ListInstantSnapshotsRequest, CallOptions)
public virtual InstantSnapshotList List(ListInstantSnapshotsRequest request, CallOptions options)
Retrieves the list of InstantSnapshot resources contained within the specified zone.
Parameters | |
---|---|
Name | Description |
request |
ListInstantSnapshotsRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
InstantSnapshotList |
The response received from the server. |
List(ListInstantSnapshotsRequest, Metadata, DateTime?, CancellationToken)
public virtual InstantSnapshotList List(ListInstantSnapshotsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Retrieves the list of InstantSnapshot resources contained within the specified zone.
Parameters | |
---|---|
Name | Description |
request |
ListInstantSnapshotsRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
InstantSnapshotList |
The response received from the server. |
ListAsync(ListInstantSnapshotsRequest, CallOptions)
public virtual AsyncUnaryCall<InstantSnapshotList> ListAsync(ListInstantSnapshotsRequest request, CallOptions options)
Retrieves the list of InstantSnapshot resources contained within the specified zone.
Parameters | |
---|---|
Name | Description |
request |
ListInstantSnapshotsRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallInstantSnapshotList |
The call object. |
ListAsync(ListInstantSnapshotsRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<InstantSnapshotList> ListAsync(ListInstantSnapshotsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Retrieves the list of InstantSnapshot resources contained within the specified zone.
Parameters | |
---|---|
Name | Description |
request |
ListInstantSnapshotsRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallInstantSnapshotList |
The call object. |
NewInstance(ClientBaseConfiguration)
protected override InstantSnapshots.InstantSnapshotsClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Creates a new instance of client from given ClientBaseConfiguration
.
Parameter | |
---|---|
Name | Description |
configuration |
ClientBaseClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
InstantSnapshotsInstantSnapshotsClient |
SetIamPolicy(SetIamPolicyInstantSnapshotRequest, CallOptions)
public virtual Policy SetIamPolicy(SetIamPolicyInstantSnapshotRequest request, CallOptions options)
Sets the access control policy on the specified resource. Replaces any existing policy.
Parameters | |
---|---|
Name | Description |
request |
SetIamPolicyInstantSnapshotRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Policy |
The response received from the server. |
SetIamPolicy(SetIamPolicyInstantSnapshotRequest, Metadata, DateTime?, CancellationToken)
public virtual Policy SetIamPolicy(SetIamPolicyInstantSnapshotRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Sets the access control policy on the specified resource. Replaces any existing policy.
Parameters | |
---|---|
Name | Description |
request |
SetIamPolicyInstantSnapshotRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Policy |
The response received from the server. |
SetIamPolicyAsync(SetIamPolicyInstantSnapshotRequest, CallOptions)
public virtual AsyncUnaryCall<Policy> SetIamPolicyAsync(SetIamPolicyInstantSnapshotRequest request, CallOptions options)
Sets the access control policy on the specified resource. Replaces any existing policy.
Parameters | |
---|---|
Name | Description |
request |
SetIamPolicyInstantSnapshotRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallPolicy |
The call object. |
SetIamPolicyAsync(SetIamPolicyInstantSnapshotRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<Policy> SetIamPolicyAsync(SetIamPolicyInstantSnapshotRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Sets the access control policy on the specified resource. Replaces any existing policy.
Parameters | |
---|---|
Name | Description |
request |
SetIamPolicyInstantSnapshotRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallPolicy |
The call object. |
SetLabels(SetLabelsInstantSnapshotRequest, CallOptions)
public virtual Operation SetLabels(SetLabelsInstantSnapshotRequest request, CallOptions options)
Sets the labels on a instantSnapshot in the given zone. To learn more about labels, read the Labeling Resources documentation.
Parameters | |
---|---|
Name | Description |
request |
SetLabelsInstantSnapshotRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Operation |
The response received from the server. |
SetLabels(SetLabelsInstantSnapshotRequest, Metadata, DateTime?, CancellationToken)
public virtual Operation SetLabels(SetLabelsInstantSnapshotRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Sets the labels on a instantSnapshot in the given zone. To learn more about labels, read the Labeling Resources documentation.
Parameters | |
---|---|
Name | Description |
request |
SetLabelsInstantSnapshotRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
Operation |
The response received from the server. |
SetLabelsAsync(SetLabelsInstantSnapshotRequest, CallOptions)
public virtual AsyncUnaryCall<Operation> SetLabelsAsync(SetLabelsInstantSnapshotRequest request, CallOptions options)
Sets the labels on a instantSnapshot in the given zone. To learn more about labels, read the Labeling Resources documentation.
Parameters | |
---|---|
Name | Description |
request |
SetLabelsInstantSnapshotRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallOperation |
The call object. |
SetLabelsAsync(SetLabelsInstantSnapshotRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<Operation> SetLabelsAsync(SetLabelsInstantSnapshotRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Sets the labels on a instantSnapshot in the given zone. To learn more about labels, read the Labeling Resources documentation.
Parameters | |
---|---|
Name | Description |
request |
SetLabelsInstantSnapshotRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallOperation |
The call object. |
TestIamPermissions(TestIamPermissionsInstantSnapshotRequest, CallOptions)
public virtual TestPermissionsResponse TestIamPermissions(TestIamPermissionsInstantSnapshotRequest request, CallOptions options)
Returns permissions that a caller has on the specified resource.
Parameters | |
---|---|
Name | Description |
request |
TestIamPermissionsInstantSnapshotRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
TestPermissionsResponse |
The response received from the server. |
TestIamPermissions(TestIamPermissionsInstantSnapshotRequest, Metadata, DateTime?, CancellationToken)
public virtual TestPermissionsResponse TestIamPermissions(TestIamPermissionsInstantSnapshotRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Returns permissions that a caller has on the specified resource.
Parameters | |
---|---|
Name | Description |
request |
TestIamPermissionsInstantSnapshotRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
TestPermissionsResponse |
The response received from the server. |
TestIamPermissionsAsync(TestIamPermissionsInstantSnapshotRequest, CallOptions)
public virtual AsyncUnaryCall<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsInstantSnapshotRequest request, CallOptions options)
Returns permissions that a caller has on the specified resource.
Parameters | |
---|---|
Name | Description |
request |
TestIamPermissionsInstantSnapshotRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallTestPermissionsResponse |
The call object. |
TestIamPermissionsAsync(TestIamPermissionsInstantSnapshotRequest, Metadata, DateTime?, CancellationToken)
public virtual AsyncUnaryCall<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsInstantSnapshotRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Returns permissions that a caller has on the specified resource.
Parameters | |
---|---|
Name | Description |
request |
TestIamPermissionsInstantSnapshotRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
System.DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallTestPermissionsResponse |
The call object. |