public abstract class InstantSnapshotGroupsClientReference documentation and code samples for the Compute Engine v1 API class InstantSnapshotGroupsClient.
InstantSnapshotGroups client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Remarks
The InstantSnapshotGroups API.
Properties
DefaultEndpoint
public static string DefaultEndpoint { get; }The default endpoint for the InstantSnapshotGroups service, which is a host of "compute.googleapis.com" and a port of 443.
| Property Value | |
|---|---|
| Type | Description |
string |
|
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }The default InstantSnapshotGroups scopes.
| Property Value | |
|---|---|
| Type | Description |
IReadOnlyListstring |
|
The default InstantSnapshotGroups scopes are:
DeleteOperationsClient
public virtual OperationsClient DeleteOperationsClient { get; }The long-running operations client for Delete.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
GrpcClient
public virtual InstantSnapshotGroups.InstantSnapshotGroupsClient GrpcClient { get; }The underlying gRPC InstantSnapshotGroups client
| Property Value | |
|---|---|
| Type | Description |
InstantSnapshotGroupsInstantSnapshotGroupsClient |
|
InsertOperationsClient
public virtual OperationsClient InsertOperationsClient { get; }The long-running operations client for Insert.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }The service metadata associated with this client type.
| Property Value | |
|---|---|
| Type | Description |
ServiceMetadata |
|
Methods
Create()
public static InstantSnapshotGroupsClient Create()Synchronously creates a InstantSnapshotGroupsClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use InstantSnapshotGroupsClientBuilder.
| Returns | |
|---|---|
| Type | Description |
InstantSnapshotGroupsClient |
The created InstantSnapshotGroupsClient. |
CreateAsync(CancellationToken)
public static Task<InstantSnapshotGroupsClient> CreateAsync(CancellationToken cancellationToken = default)Asynchronously creates a InstantSnapshotGroupsClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use InstantSnapshotGroupsClientBuilder.
| Parameter | |
|---|---|
| Name | Description |
cancellationToken |
CancellationTokenThe CancellationToken to use while creating the client. |
| Returns | |
|---|---|
| Type | Description |
TaskInstantSnapshotGroupsClient |
The task representing the created InstantSnapshotGroupsClient. |
Delete(DeleteInstantSnapshotGroupRequest, CallSettings)
public virtual Operation<Operation, Operation> Delete(DeleteInstantSnapshotGroupRequest request, CallSettings callSettings = null)deletes a Zonal InstantSnapshotGroup resource
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteInstantSnapshotGroupRequestThe 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. |
// Create client
InstantSnapshotGroupsClient instantSnapshotGroupsClient = InstantSnapshotGroupsClient.Create();
// Initialize request argument(s)
DeleteInstantSnapshotGroupRequest request = new DeleteInstantSnapshotGroupRequest
{
Zone = "",
RequestId = "",
InstantSnapshotGroup = "",
Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = instantSnapshotGroupsClient.Delete(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = instantSnapshotGroupsClient.PollOnceDelete(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
Delete(string, string, string, CallSettings)
public virtual Operation<Operation, Operation> Delete(string project, string zone, string instantSnapshotGroup, CallSettings callSettings = null)deletes a Zonal InstantSnapshotGroup resource
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
zone |
stringThe name of the zone for this request. |
instantSnapshotGroup |
stringName of the InstantSnapshot resource to delete. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOperationOperation |
The RPC response. |
// Create client
InstantSnapshotGroupsClient instantSnapshotGroupsClient = InstantSnapshotGroupsClient.Create();
// Initialize request argument(s)
string project = "";
string zone = "";
string instantSnapshotGroup = "";
// Make the request
lro::Operation<Operation, Operation> response = instantSnapshotGroupsClient.Delete(project, zone, instantSnapshotGroup);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = instantSnapshotGroupsClient.PollOnceDelete(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
DeleteAsync(DeleteInstantSnapshotGroupRequest, CallSettings)
public virtual Task<Operation<Operation, Operation>> DeleteAsync(DeleteInstantSnapshotGroupRequest request, CallSettings callSettings = null)deletes a Zonal InstantSnapshotGroup resource
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteInstantSnapshotGroupRequestThe 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. |
// Create client
InstantSnapshotGroupsClient instantSnapshotGroupsClient = await InstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
DeleteInstantSnapshotGroupRequest request = new DeleteInstantSnapshotGroupRequest
{
Zone = "",
RequestId = "",
InstantSnapshotGroup = "",
Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await instantSnapshotGroupsClient.DeleteAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await instantSnapshotGroupsClient.PollOnceDeleteAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
DeleteAsync(DeleteInstantSnapshotGroupRequest, CancellationToken)
public virtual Task<Operation<Operation, Operation>> DeleteAsync(DeleteInstantSnapshotGroupRequest request, CancellationToken cancellationToken)deletes a Zonal InstantSnapshotGroup resource
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteInstantSnapshotGroupRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
// Create client
InstantSnapshotGroupsClient instantSnapshotGroupsClient = await InstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
DeleteInstantSnapshotGroupRequest request = new DeleteInstantSnapshotGroupRequest
{
Zone = "",
RequestId = "",
InstantSnapshotGroup = "",
Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await instantSnapshotGroupsClient.DeleteAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await instantSnapshotGroupsClient.PollOnceDeleteAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
DeleteAsync(string, string, string, CallSettings)
public virtual Task<Operation<Operation, Operation>> DeleteAsync(string project, string zone, string instantSnapshotGroup, CallSettings callSettings = null)deletes a Zonal InstantSnapshotGroup resource
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
zone |
stringThe name of the zone for this request. |
instantSnapshotGroup |
stringName of the InstantSnapshot resource to delete. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
// Create client
InstantSnapshotGroupsClient instantSnapshotGroupsClient = await InstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string zone = "";
string instantSnapshotGroup = "";
// Make the request
lro::Operation<Operation, Operation> response = await instantSnapshotGroupsClient.DeleteAsync(project, zone, instantSnapshotGroup);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await instantSnapshotGroupsClient.PollOnceDeleteAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
DeleteAsync(string, string, string, CancellationToken)
public virtual Task<Operation<Operation, Operation>> DeleteAsync(string project, string zone, string instantSnapshotGroup, CancellationToken cancellationToken)deletes a Zonal InstantSnapshotGroup resource
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
zone |
stringThe name of the zone for this request. |
instantSnapshotGroup |
stringName of the InstantSnapshot resource to delete. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
// Create client
InstantSnapshotGroupsClient instantSnapshotGroupsClient = await InstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string zone = "";
string instantSnapshotGroup = "";
// Make the request
lro::Operation<Operation, Operation> response = await instantSnapshotGroupsClient.DeleteAsync(project, zone, instantSnapshotGroup);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await instantSnapshotGroupsClient.PollOnceDeleteAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
Get(GetInstantSnapshotGroupRequest, CallSettings)
public virtual InstantSnapshotGroup Get(GetInstantSnapshotGroupRequest request, CallSettings callSettings = null)returns the specified InstantSnapshotGroup resource in the specified zone.
| Parameters | |
|---|---|
| Name | Description |
request |
GetInstantSnapshotGroupRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
InstantSnapshotGroup |
The RPC response. |
// Create client
InstantSnapshotGroupsClient instantSnapshotGroupsClient = InstantSnapshotGroupsClient.Create();
// Initialize request argument(s)
GetInstantSnapshotGroupRequest request = new GetInstantSnapshotGroupRequest
{
Zone = "",
InstantSnapshotGroup = "",
Project = "",
};
// Make the request
InstantSnapshotGroup response = instantSnapshotGroupsClient.Get(request);
Get(string, string, string, CallSettings)
public virtual InstantSnapshotGroup Get(string project, string zone, string instantSnapshotGroup, CallSettings callSettings = null)returns the specified InstantSnapshotGroup resource in the specified zone.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
zone |
stringThe name of the zone for this request. |
instantSnapshotGroup |
stringName of the InstantSnapshotGroup resource to return. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
InstantSnapshotGroup |
The RPC response. |
// Create client
InstantSnapshotGroupsClient instantSnapshotGroupsClient = InstantSnapshotGroupsClient.Create();
// Initialize request argument(s)
string project = "";
string zone = "";
string instantSnapshotGroup = "";
// Make the request
InstantSnapshotGroup response = instantSnapshotGroupsClient.Get(project, zone, instantSnapshotGroup);
GetAsync(GetInstantSnapshotGroupRequest, CallSettings)
public virtual Task<InstantSnapshotGroup> GetAsync(GetInstantSnapshotGroupRequest request, CallSettings callSettings = null)returns the specified InstantSnapshotGroup resource in the specified zone.
| Parameters | |
|---|---|
| Name | Description |
request |
GetInstantSnapshotGroupRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskInstantSnapshotGroup |
A Task containing the RPC response. |
// Create client
InstantSnapshotGroupsClient instantSnapshotGroupsClient = await InstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
GetInstantSnapshotGroupRequest request = new GetInstantSnapshotGroupRequest
{
Zone = "",
InstantSnapshotGroup = "",
Project = "",
};
// Make the request
InstantSnapshotGroup response = await instantSnapshotGroupsClient.GetAsync(request);
GetAsync(GetInstantSnapshotGroupRequest, CancellationToken)
public virtual Task<InstantSnapshotGroup> GetAsync(GetInstantSnapshotGroupRequest request, CancellationToken cancellationToken)returns the specified InstantSnapshotGroup resource in the specified zone.
| Parameters | |
|---|---|
| Name | Description |
request |
GetInstantSnapshotGroupRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskInstantSnapshotGroup |
A Task containing the RPC response. |
// Create client
InstantSnapshotGroupsClient instantSnapshotGroupsClient = await InstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
GetInstantSnapshotGroupRequest request = new GetInstantSnapshotGroupRequest
{
Zone = "",
InstantSnapshotGroup = "",
Project = "",
};
// Make the request
InstantSnapshotGroup response = await instantSnapshotGroupsClient.GetAsync(request);
GetAsync(string, string, string, CallSettings)
public virtual Task<InstantSnapshotGroup> GetAsync(string project, string zone, string instantSnapshotGroup, CallSettings callSettings = null)returns the specified InstantSnapshotGroup resource in the specified zone.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
zone |
stringThe name of the zone for this request. |
instantSnapshotGroup |
stringName of the InstantSnapshotGroup resource to return. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskInstantSnapshotGroup |
A Task containing the RPC response. |
// Create client
InstantSnapshotGroupsClient instantSnapshotGroupsClient = await InstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string zone = "";
string instantSnapshotGroup = "";
// Make the request
InstantSnapshotGroup response = await instantSnapshotGroupsClient.GetAsync(project, zone, instantSnapshotGroup);
GetAsync(string, string, string, CancellationToken)
public virtual Task<InstantSnapshotGroup> GetAsync(string project, string zone, string instantSnapshotGroup, CancellationToken cancellationToken)returns the specified InstantSnapshotGroup resource in the specified zone.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
zone |
stringThe name of the zone for this request. |
instantSnapshotGroup |
stringName of the InstantSnapshotGroup resource to return. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskInstantSnapshotGroup |
A Task containing the RPC response. |
// Create client
InstantSnapshotGroupsClient instantSnapshotGroupsClient = await InstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string zone = "";
string instantSnapshotGroup = "";
// Make the request
InstantSnapshotGroup response = await instantSnapshotGroupsClient.GetAsync(project, zone, instantSnapshotGroup);
GetIamPolicy(GetIamPolicyInstantSnapshotGroupRequest, CallSettings)
public virtual Policy GetIamPolicy(GetIamPolicyInstantSnapshotGroupRequest 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 |
GetIamPolicyInstantSnapshotGroupRequestThe 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. |
// Create client
InstantSnapshotGroupsClient instantSnapshotGroupsClient = InstantSnapshotGroupsClient.Create();
// Initialize request argument(s)
GetIamPolicyInstantSnapshotGroupRequest request = new GetIamPolicyInstantSnapshotGroupRequest
{
Zone = "",
Resource = "",
Project = "",
OptionsRequestedPolicyVersion = 0,
};
// Make the request
Policy response = instantSnapshotGroupsClient.GetIamPolicy(request);
GetIamPolicy(string, string, string, CallSettings)
public virtual Policy GetIamPolicy(string project, string zone, string resource, CallSettings callSettings = null)Gets the access control policy for a resource. May be empty if no such policy or resource exists.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
zone |
stringThe name of the zone for this request. |
resource |
stringName or id of the resource for this request. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Policy |
The RPC response. |
// Create client
InstantSnapshotGroupsClient instantSnapshotGroupsClient = InstantSnapshotGroupsClient.Create();
// Initialize request argument(s)
string project = "";
string zone = "";
string resource = "";
// Make the request
Policy response = instantSnapshotGroupsClient.GetIamPolicy(project, zone, resource);
GetIamPolicyAsync(GetIamPolicyInstantSnapshotGroupRequest, CallSettings)
public virtual Task<Policy> GetIamPolicyAsync(GetIamPolicyInstantSnapshotGroupRequest 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 |
GetIamPolicyInstantSnapshotGroupRequestThe 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. |
// Create client
InstantSnapshotGroupsClient instantSnapshotGroupsClient = await InstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
GetIamPolicyInstantSnapshotGroupRequest request = new GetIamPolicyInstantSnapshotGroupRequest
{
Zone = "",
Resource = "",
Project = "",
OptionsRequestedPolicyVersion = 0,
};
// Make the request
Policy response = await instantSnapshotGroupsClient.GetIamPolicyAsync(request);
GetIamPolicyAsync(GetIamPolicyInstantSnapshotGroupRequest, CancellationToken)
public virtual Task<Policy> GetIamPolicyAsync(GetIamPolicyInstantSnapshotGroupRequest request, CancellationToken cancellationToken)Gets the access control policy for a resource. May be empty if no such policy or resource exists.
| Parameters | |
|---|---|
| Name | Description |
request |
GetIamPolicyInstantSnapshotGroupRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskPolicy |
A Task containing the RPC response. |
// Create client
InstantSnapshotGroupsClient instantSnapshotGroupsClient = await InstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
GetIamPolicyInstantSnapshotGroupRequest request = new GetIamPolicyInstantSnapshotGroupRequest
{
Zone = "",
Resource = "",
Project = "",
OptionsRequestedPolicyVersion = 0,
};
// Make the request
Policy response = await instantSnapshotGroupsClient.GetIamPolicyAsync(request);
GetIamPolicyAsync(string, string, string, CallSettings)
public virtual Task<Policy> GetIamPolicyAsync(string project, string zone, string resource, CallSettings callSettings = null)Gets the access control policy for a resource. May be empty if no such policy or resource exists.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
zone |
stringThe name of the zone for this request. |
resource |
stringName or id of the resource for this request. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskPolicy |
A Task containing the RPC response. |
// Create client
InstantSnapshotGroupsClient instantSnapshotGroupsClient = await InstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string zone = "";
string resource = "";
// Make the request
Policy response = await instantSnapshotGroupsClient.GetIamPolicyAsync(project, zone, resource);
GetIamPolicyAsync(string, string, string, CancellationToken)
public virtual Task<Policy> GetIamPolicyAsync(string project, string zone, string resource, CancellationToken cancellationToken)Gets the access control policy for a resource. May be empty if no such policy or resource exists.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
zone |
stringThe name of the zone for this request. |
resource |
stringName or id of the resource for this request. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskPolicy |
A Task containing the RPC response. |
// Create client
InstantSnapshotGroupsClient instantSnapshotGroupsClient = await InstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string zone = "";
string resource = "";
// Make the request
Policy response = await instantSnapshotGroupsClient.GetIamPolicyAsync(project, zone, resource);
Insert(InsertInstantSnapshotGroupRequest, CallSettings)
public virtual Operation<Operation, Operation> Insert(InsertInstantSnapshotGroupRequest request, CallSettings callSettings = null)inserts a Zonal InstantSnapshotGroup resource
| Parameters | |
|---|---|
| Name | Description |
request |
InsertInstantSnapshotGroupRequestThe 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. |
// Create client
InstantSnapshotGroupsClient instantSnapshotGroupsClient = InstantSnapshotGroupsClient.Create();
// Initialize request argument(s)
InsertInstantSnapshotGroupRequest request = new InsertInstantSnapshotGroupRequest
{
Zone = "",
RequestId = "",
InstantSnapshotGroupResource = new InstantSnapshotGroup(),
Project = "",
SourceConsistencyGroup = "",
};
// Make the request
lro::Operation<Operation, Operation> response = instantSnapshotGroupsClient.Insert(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = instantSnapshotGroupsClient.PollOnceInsert(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
Insert(string, string, InstantSnapshotGroup, CallSettings)
public virtual Operation<Operation, Operation> Insert(string project, string zone, InstantSnapshotGroup instantSnapshotGroupResource, CallSettings callSettings = null)inserts a Zonal InstantSnapshotGroup resource
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
zone |
stringName of the zone for this request. |
instantSnapshotGroupResource |
InstantSnapshotGroupThe body resource for this request |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOperationOperation |
The RPC response. |
// Create client
InstantSnapshotGroupsClient instantSnapshotGroupsClient = InstantSnapshotGroupsClient.Create();
// Initialize request argument(s)
string project = "";
string zone = "";
InstantSnapshotGroup instantSnapshotGroupResource = new InstantSnapshotGroup();
// Make the request
lro::Operation<Operation, Operation> response = instantSnapshotGroupsClient.Insert(project, zone, instantSnapshotGroupResource);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = instantSnapshotGroupsClient.PollOnceInsert(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
InsertAsync(InsertInstantSnapshotGroupRequest, CallSettings)
public virtual Task<Operation<Operation, Operation>> InsertAsync(InsertInstantSnapshotGroupRequest request, CallSettings callSettings = null)inserts a Zonal InstantSnapshotGroup resource
| Parameters | |
|---|---|
| Name | Description |
request |
InsertInstantSnapshotGroupRequestThe 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. |
// Create client
InstantSnapshotGroupsClient instantSnapshotGroupsClient = await InstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
InsertInstantSnapshotGroupRequest request = new InsertInstantSnapshotGroupRequest
{
Zone = "",
RequestId = "",
InstantSnapshotGroupResource = new InstantSnapshotGroup(),
Project = "",
SourceConsistencyGroup = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await instantSnapshotGroupsClient.InsertAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await instantSnapshotGroupsClient.PollOnceInsertAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
InsertAsync(InsertInstantSnapshotGroupRequest, CancellationToken)
public virtual Task<Operation<Operation, Operation>> InsertAsync(InsertInstantSnapshotGroupRequest request, CancellationToken cancellationToken)inserts a Zonal InstantSnapshotGroup resource
| Parameters | |
|---|---|
| Name | Description |
request |
InsertInstantSnapshotGroupRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
// Create client
InstantSnapshotGroupsClient instantSnapshotGroupsClient = await InstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
InsertInstantSnapshotGroupRequest request = new InsertInstantSnapshotGroupRequest
{
Zone = "",
RequestId = "",
InstantSnapshotGroupResource = new InstantSnapshotGroup(),
Project = "",
SourceConsistencyGroup = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await instantSnapshotGroupsClient.InsertAsync(request);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await instantSnapshotGroupsClient.PollOnceInsertAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
InsertAsync(string, string, InstantSnapshotGroup, CallSettings)
public virtual Task<Operation<Operation, Operation>> InsertAsync(string project, string zone, InstantSnapshotGroup instantSnapshotGroupResource, CallSettings callSettings = null)inserts a Zonal InstantSnapshotGroup resource
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
zone |
stringName of the zone for this request. |
instantSnapshotGroupResource |
InstantSnapshotGroupThe body resource for this request |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
// Create client
InstantSnapshotGroupsClient instantSnapshotGroupsClient = await InstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string zone = "";
InstantSnapshotGroup instantSnapshotGroupResource = new InstantSnapshotGroup();
// Make the request
lro::Operation<Operation, Operation> response = await instantSnapshotGroupsClient.InsertAsync(project, zone, instantSnapshotGroupResource);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await instantSnapshotGroupsClient.PollOnceInsertAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
InsertAsync(string, string, InstantSnapshotGroup, CancellationToken)
public virtual Task<Operation<Operation, Operation>> InsertAsync(string project, string zone, InstantSnapshotGroup instantSnapshotGroupResource, CancellationToken cancellationToken)inserts a Zonal InstantSnapshotGroup resource
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
zone |
stringName of the zone for this request. |
instantSnapshotGroupResource |
InstantSnapshotGroupThe body resource for this request |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A Task containing the RPC response. |
// Create client
InstantSnapshotGroupsClient instantSnapshotGroupsClient = await InstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string zone = "";
InstantSnapshotGroup instantSnapshotGroupResource = new InstantSnapshotGroup();
// Make the request
lro::Operation<Operation, Operation> response = await instantSnapshotGroupsClient.InsertAsync(project, zone, instantSnapshotGroupResource);
// Poll until the returned long-running operation is complete
lro::Operation<Operation, Operation> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Operation result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
lro::Operation<Operation, Operation> retrievedResponse = await instantSnapshotGroupsClient.PollOnceInsertAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Operation retrievedResult = retrievedResponse.Result;
}
List(ListInstantSnapshotGroupsRequest, CallSettings)
public virtual PagedEnumerable<ListInstantSnapshotGroups, InstantSnapshotGroup> List(ListInstantSnapshotGroupsRequest request, CallSettings callSettings = null)retrieves the list of InstantSnapshotGroup resources contained within the specified zone.
| Parameters | |
|---|---|
| Name | Description |
request |
ListInstantSnapshotGroupsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListInstantSnapshotGroupsInstantSnapshotGroup |
A pageable sequence of InstantSnapshotGroup resources. |
// Create client
InstantSnapshotGroupsClient instantSnapshotGroupsClient = InstantSnapshotGroupsClient.Create();
// Initialize request argument(s)
ListInstantSnapshotGroupsRequest request = new ListInstantSnapshotGroupsRequest
{
Zone = "",
OrderBy = "",
Project = "",
Filter = "",
ReturnPartialSuccess = false,
};
// Make the request
PagedEnumerable<ListInstantSnapshotGroups, InstantSnapshotGroup> response = instantSnapshotGroupsClient.List(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (InstantSnapshotGroup item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListInstantSnapshotGroups page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (InstantSnapshotGroup item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<InstantSnapshotGroup> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (InstantSnapshotGroup item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
List(string, string, string, int?, CallSettings)
public virtual PagedEnumerable<ListInstantSnapshotGroups, InstantSnapshotGroup> List(string project, string zone, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)retrieves the list of InstantSnapshotGroup resources contained within the specified zone.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
zone |
stringThe name of the zone for this request. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListInstantSnapshotGroupsInstantSnapshotGroup |
A pageable sequence of InstantSnapshotGroup resources. |
// Create client
InstantSnapshotGroupsClient instantSnapshotGroupsClient = InstantSnapshotGroupsClient.Create();
// Initialize request argument(s)
string project = "";
string zone = "";
// Make the request
PagedEnumerable<ListInstantSnapshotGroups, InstantSnapshotGroup> response = instantSnapshotGroupsClient.List(project, zone);
// Iterate over all response items, lazily performing RPCs as required
foreach (InstantSnapshotGroup item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListInstantSnapshotGroups page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (InstantSnapshotGroup item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<InstantSnapshotGroup> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (InstantSnapshotGroup item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListAsync(ListInstantSnapshotGroupsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListInstantSnapshotGroups, InstantSnapshotGroup> ListAsync(ListInstantSnapshotGroupsRequest request, CallSettings callSettings = null)retrieves the list of InstantSnapshotGroup resources contained within the specified zone.
| Parameters | |
|---|---|
| Name | Description |
request |
ListInstantSnapshotGroupsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListInstantSnapshotGroupsInstantSnapshotGroup |
A pageable asynchronous sequence of InstantSnapshotGroup resources. |
// Create client
InstantSnapshotGroupsClient instantSnapshotGroupsClient = await InstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
ListInstantSnapshotGroupsRequest request = new ListInstantSnapshotGroupsRequest
{
Zone = "",
OrderBy = "",
Project = "",
Filter = "",
ReturnPartialSuccess = false,
};
// Make the request
PagedAsyncEnumerable<ListInstantSnapshotGroups, InstantSnapshotGroup> response = instantSnapshotGroupsClient.ListAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await foreach (InstantSnapshotGroup item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListInstantSnapshotGroups page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (InstantSnapshotGroup item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<InstantSnapshotGroup> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (InstantSnapshotGroup item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListAsync(string, string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListInstantSnapshotGroups, InstantSnapshotGroup> ListAsync(string project, string zone, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)retrieves the list of InstantSnapshotGroup resources contained within the specified zone.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
zone |
stringThe name of the zone for this request. |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListInstantSnapshotGroupsInstantSnapshotGroup |
A pageable asynchronous sequence of InstantSnapshotGroup resources. |
// Create client
InstantSnapshotGroupsClient instantSnapshotGroupsClient = await InstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string zone = "";
// Make the request
PagedAsyncEnumerable<ListInstantSnapshotGroups, InstantSnapshotGroup> response = instantSnapshotGroupsClient.ListAsync(project, zone);
// Iterate over all response items, lazily performing RPCs as required
await foreach (InstantSnapshotGroup item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListInstantSnapshotGroups page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (InstantSnapshotGroup item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<InstantSnapshotGroup> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (InstantSnapshotGroup item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
PollOnceDelete(string, CallSettings)
public virtual Operation<Operation, Operation> PollOnceDelete(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of Delete.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOperationOperation |
The result of polling the operation. |
PollOnceDeleteAsync(string, CallSettings)
public virtual Task<Operation<Operation, Operation>> PollOnceDeleteAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of Delete
.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A task representing the result of polling the operation. |
PollOnceInsert(string, CallSettings)
public virtual Operation<Operation, Operation> PollOnceInsert(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of Insert.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationOperationOperation |
The result of polling the operation. |
PollOnceInsertAsync(string, CallSettings)
public virtual Task<Operation<Operation, Operation>> PollOnceInsertAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of Insert
.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationOperationOperation |
A task representing the result of polling the operation. |
SetIamPolicy(SetIamPolicyInstantSnapshotGroupRequest, CallSettings)
public virtual Policy SetIamPolicy(SetIamPolicyInstantSnapshotGroupRequest request, CallSettings callSettings = null)Sets the access control policy on the specified resource. Replaces any existing policy.
| Parameters | |
|---|---|
| Name | Description |
request |
SetIamPolicyInstantSnapshotGroupRequestThe 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. |
// Create client
InstantSnapshotGroupsClient instantSnapshotGroupsClient = InstantSnapshotGroupsClient.Create();
// Initialize request argument(s)
SetIamPolicyInstantSnapshotGroupRequest request = new SetIamPolicyInstantSnapshotGroupRequest
{
Zone = "",
Resource = "",
Project = "",
ZoneSetPolicyRequestResource = new ZoneSetPolicyRequest(),
};
// Make the request
Policy response = instantSnapshotGroupsClient.SetIamPolicy(request);
SetIamPolicy(string, string, string, ZoneSetPolicyRequest, CallSettings)
public virtual Policy SetIamPolicy(string project, string zone, string resource, ZoneSetPolicyRequest zoneSetPolicyRequestResource, CallSettings callSettings = null)Sets the access control policy on the specified resource. Replaces any existing policy.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
zone |
stringThe name of the zone for this request. |
resource |
stringName or id of the resource for this request. |
zoneSetPolicyRequestResource |
ZoneSetPolicyRequestThe body resource for this request |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Policy |
The RPC response. |
// Create client
InstantSnapshotGroupsClient instantSnapshotGroupsClient = InstantSnapshotGroupsClient.Create();
// Initialize request argument(s)
string project = "";
string zone = "";
string resource = "";
ZoneSetPolicyRequest zoneSetPolicyRequestResource = new ZoneSetPolicyRequest();
// Make the request
Policy response = instantSnapshotGroupsClient.SetIamPolicy(project, zone, resource, zoneSetPolicyRequestResource);
SetIamPolicyAsync(SetIamPolicyInstantSnapshotGroupRequest, CallSettings)
public virtual Task<Policy> SetIamPolicyAsync(SetIamPolicyInstantSnapshotGroupRequest request, CallSettings callSettings = null)Sets the access control policy on the specified resource. Replaces any existing policy.
| Parameters | |
|---|---|
| Name | Description |
request |
SetIamPolicyInstantSnapshotGroupRequestThe 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. |
// Create client
InstantSnapshotGroupsClient instantSnapshotGroupsClient = await InstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
SetIamPolicyInstantSnapshotGroupRequest request = new SetIamPolicyInstantSnapshotGroupRequest
{
Zone = "",
Resource = "",
Project = "",
ZoneSetPolicyRequestResource = new ZoneSetPolicyRequest(),
};
// Make the request
Policy response = await instantSnapshotGroupsClient.SetIamPolicyAsync(request);
SetIamPolicyAsync(SetIamPolicyInstantSnapshotGroupRequest, CancellationToken)
public virtual Task<Policy> SetIamPolicyAsync(SetIamPolicyInstantSnapshotGroupRequest request, CancellationToken cancellationToken)Sets the access control policy on the specified resource. Replaces any existing policy.
| Parameters | |
|---|---|
| Name | Description |
request |
SetIamPolicyInstantSnapshotGroupRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskPolicy |
A Task containing the RPC response. |
// Create client
InstantSnapshotGroupsClient instantSnapshotGroupsClient = await InstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
SetIamPolicyInstantSnapshotGroupRequest request = new SetIamPolicyInstantSnapshotGroupRequest
{
Zone = "",
Resource = "",
Project = "",
ZoneSetPolicyRequestResource = new ZoneSetPolicyRequest(),
};
// Make the request
Policy response = await instantSnapshotGroupsClient.SetIamPolicyAsync(request);
SetIamPolicyAsync(string, string, string, ZoneSetPolicyRequest, CallSettings)
public virtual Task<Policy> SetIamPolicyAsync(string project, string zone, string resource, ZoneSetPolicyRequest zoneSetPolicyRequestResource, CallSettings callSettings = null)Sets the access control policy on the specified resource. Replaces any existing policy.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
zone |
stringThe name of the zone for this request. |
resource |
stringName or id of the resource for this request. |
zoneSetPolicyRequestResource |
ZoneSetPolicyRequestThe body resource for this request |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskPolicy |
A Task containing the RPC response. |
// Create client
InstantSnapshotGroupsClient instantSnapshotGroupsClient = await InstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string zone = "";
string resource = "";
ZoneSetPolicyRequest zoneSetPolicyRequestResource = new ZoneSetPolicyRequest();
// Make the request
Policy response = await instantSnapshotGroupsClient.SetIamPolicyAsync(project, zone, resource, zoneSetPolicyRequestResource);
SetIamPolicyAsync(string, string, string, ZoneSetPolicyRequest, CancellationToken)
public virtual Task<Policy> SetIamPolicyAsync(string project, string zone, string resource, ZoneSetPolicyRequest zoneSetPolicyRequestResource, CancellationToken cancellationToken)Sets the access control policy on the specified resource. Replaces any existing policy.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
zone |
stringThe name of the zone for this request. |
resource |
stringName or id of the resource for this request. |
zoneSetPolicyRequestResource |
ZoneSetPolicyRequestThe body resource for this request |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskPolicy |
A Task containing the RPC response. |
// Create client
InstantSnapshotGroupsClient instantSnapshotGroupsClient = await InstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string zone = "";
string resource = "";
ZoneSetPolicyRequest zoneSetPolicyRequestResource = new ZoneSetPolicyRequest();
// Make the request
Policy response = await instantSnapshotGroupsClient.SetIamPolicyAsync(project, zone, resource, zoneSetPolicyRequestResource);
ShutdownDefaultChannelsAsync()
public static Task ShutdownDefaultChannelsAsync()Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.
| Returns | |
|---|---|
| Type | Description |
Task |
A task representing the asynchronous shutdown operation. |
After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.
TestIamPermissions(TestIamPermissionsInstantSnapshotGroupRequest, CallSettings)
public virtual TestPermissionsResponse TestIamPermissions(TestIamPermissionsInstantSnapshotGroupRequest request, CallSettings callSettings = null)Returns permissions that a caller has on the specified resource.
| Parameters | |
|---|---|
| Name | Description |
request |
TestIamPermissionsInstantSnapshotGroupRequestThe 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. |
// Create client
InstantSnapshotGroupsClient instantSnapshotGroupsClient = InstantSnapshotGroupsClient.Create();
// Initialize request argument(s)
TestIamPermissionsInstantSnapshotGroupRequest request = new TestIamPermissionsInstantSnapshotGroupRequest
{
Zone = "",
Resource = "",
Project = "",
TestPermissionsRequestResource = new TestPermissionsRequest(),
};
// Make the request
TestPermissionsResponse response = instantSnapshotGroupsClient.TestIamPermissions(request);
TestIamPermissions(string, string, string, TestPermissionsRequest, CallSettings)
public virtual TestPermissionsResponse TestIamPermissions(string project, string zone, string resource, TestPermissionsRequest testPermissionsRequestResource, CallSettings callSettings = null)Returns permissions that a caller has on the specified resource.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
zone |
stringThe name of the zone for this request. |
resource |
stringName or id of the resource for this request. |
testPermissionsRequestResource |
TestPermissionsRequestThe body resource for this request |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TestPermissionsResponse |
The RPC response. |
// Create client
InstantSnapshotGroupsClient instantSnapshotGroupsClient = InstantSnapshotGroupsClient.Create();
// Initialize request argument(s)
string project = "";
string zone = "";
string resource = "";
TestPermissionsRequest testPermissionsRequestResource = new TestPermissionsRequest();
// Make the request
TestPermissionsResponse response = instantSnapshotGroupsClient.TestIamPermissions(project, zone, resource, testPermissionsRequestResource);
TestIamPermissionsAsync(TestIamPermissionsInstantSnapshotGroupRequest, CallSettings)
public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsInstantSnapshotGroupRequest request, CallSettings callSettings = null)Returns permissions that a caller has on the specified resource.
| Parameters | |
|---|---|
| Name | Description |
request |
TestIamPermissionsInstantSnapshotGroupRequestThe 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. |
// Create client
InstantSnapshotGroupsClient instantSnapshotGroupsClient = await InstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
TestIamPermissionsInstantSnapshotGroupRequest request = new TestIamPermissionsInstantSnapshotGroupRequest
{
Zone = "",
Resource = "",
Project = "",
TestPermissionsRequestResource = new TestPermissionsRequest(),
};
// Make the request
TestPermissionsResponse response = await instantSnapshotGroupsClient.TestIamPermissionsAsync(request);
TestIamPermissionsAsync(TestIamPermissionsInstantSnapshotGroupRequest, CancellationToken)
public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsInstantSnapshotGroupRequest request, CancellationToken cancellationToken)Returns permissions that a caller has on the specified resource.
| Parameters | |
|---|---|
| Name | Description |
request |
TestIamPermissionsInstantSnapshotGroupRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskTestPermissionsResponse |
A Task containing the RPC response. |
// Create client
InstantSnapshotGroupsClient instantSnapshotGroupsClient = await InstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
TestIamPermissionsInstantSnapshotGroupRequest request = new TestIamPermissionsInstantSnapshotGroupRequest
{
Zone = "",
Resource = "",
Project = "",
TestPermissionsRequestResource = new TestPermissionsRequest(),
};
// Make the request
TestPermissionsResponse response = await instantSnapshotGroupsClient.TestIamPermissionsAsync(request);
TestIamPermissionsAsync(string, string, string, TestPermissionsRequest, CallSettings)
public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(string project, string zone, string resource, TestPermissionsRequest testPermissionsRequestResource, CallSettings callSettings = null)Returns permissions that a caller has on the specified resource.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
zone |
stringThe name of the zone for this request. |
resource |
stringName or id of the resource for this request. |
testPermissionsRequestResource |
TestPermissionsRequestThe body resource for this request |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskTestPermissionsResponse |
A Task containing the RPC response. |
// Create client
InstantSnapshotGroupsClient instantSnapshotGroupsClient = await InstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string zone = "";
string resource = "";
TestPermissionsRequest testPermissionsRequestResource = new TestPermissionsRequest();
// Make the request
TestPermissionsResponse response = await instantSnapshotGroupsClient.TestIamPermissionsAsync(project, zone, resource, testPermissionsRequestResource);
TestIamPermissionsAsync(string, string, string, TestPermissionsRequest, CancellationToken)
public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(string project, string zone, string resource, TestPermissionsRequest testPermissionsRequestResource, CancellationToken cancellationToken)Returns permissions that a caller has on the specified resource.
| Parameters | |
|---|---|
| Name | Description |
project |
stringProject ID for this request. |
zone |
stringThe name of the zone for this request. |
resource |
stringName or id of the resource for this request. |
testPermissionsRequestResource |
TestPermissionsRequestThe body resource for this request |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskTestPermissionsResponse |
A Task containing the RPC response. |
// Create client
InstantSnapshotGroupsClient instantSnapshotGroupsClient = await InstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string zone = "";
string resource = "";
TestPermissionsRequest testPermissionsRequestResource = new TestPermissionsRequest();
// Make the request
TestPermissionsResponse response = await instantSnapshotGroupsClient.TestIamPermissionsAsync(project, zone, resource, testPermissionsRequestResource);