Compute Engine v1 API - Class RegionInstantSnapshotGroupsClient (3.27.0)

public abstract class RegionInstantSnapshotGroupsClient

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

RegionInstantSnapshotGroups client wrapper, for convenient use.

Inheritance

object > RegionInstantSnapshotGroupsClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Remarks

The RegionInstantSnapshotGroups API.

Properties

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the RegionInstantSnapshotGroups 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 RegionInstantSnapshotGroups scopes.

Property Value
Type Description
IReadOnlyListstring
Remarks

DeleteOperationsClient

public virtual OperationsClient DeleteOperationsClient { get; }

The long-running operations client for Delete.

Property Value
Type Description
OperationsClient

GrpcClient

public virtual RegionInstantSnapshotGroups.RegionInstantSnapshotGroupsClient GrpcClient { get; }

The underlying gRPC RegionInstantSnapshotGroups client

Property Value
Type Description
RegionInstantSnapshotGroupsRegionInstantSnapshotGroupsClient

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 RegionInstantSnapshotGroupsClient Create()

Synchronously creates a RegionInstantSnapshotGroupsClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use RegionInstantSnapshotGroupsClientBuilder.

Returns
Type Description
RegionInstantSnapshotGroupsClient

The created RegionInstantSnapshotGroupsClient.

CreateAsync(CancellationToken)

public static Task<RegionInstantSnapshotGroupsClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a RegionInstantSnapshotGroupsClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use RegionInstantSnapshotGroupsClientBuilder.

Parameter
Name Description
cancellationToken CancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
TaskRegionInstantSnapshotGroupsClient

The task representing the created RegionInstantSnapshotGroupsClient.

Delete(DeleteRegionInstantSnapshotGroupRequest, CallSettings)

public virtual Operation<Operation, Operation> Delete(DeleteRegionInstantSnapshotGroupRequest request, CallSettings callSettings = null)

deletes a Regional InstantSnapshotGroup resource

Parameters
Name Description
request DeleteRegionInstantSnapshotGroupRequest

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.

Example
// Create client
RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = RegionInstantSnapshotGroupsClient.Create();
// Initialize request argument(s)
DeleteRegionInstantSnapshotGroupRequest request = new DeleteRegionInstantSnapshotGroupRequest
{
    RequestId = "",
    Region = "",
    InstantSnapshotGroup = "",
    Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = regionInstantSnapshotGroupsClient.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 = regionInstantSnapshotGroupsClient.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 region, string instantSnapshotGroup, CallSettings callSettings = null)

deletes a Regional InstantSnapshotGroup resource

Parameters
Name Description
project string

Project ID for this request.

region string

The name of the region for this request.

instantSnapshotGroup string

Name of the InstantSnapshotGroup resource to delete.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Example
// Create client
RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = RegionInstantSnapshotGroupsClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string instantSnapshotGroup = "";
// Make the request
lro::Operation<Operation, Operation> response = regionInstantSnapshotGroupsClient.Delete(project, region, 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 = regionInstantSnapshotGroupsClient.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(DeleteRegionInstantSnapshotGroupRequest, CallSettings)

public virtual Task<Operation<Operation, Operation>> DeleteAsync(DeleteRegionInstantSnapshotGroupRequest request, CallSettings callSettings = null)

deletes a Regional InstantSnapshotGroup resource

Parameters
Name Description
request DeleteRegionInstantSnapshotGroupRequest

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.

Example
// Create client
RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = await RegionInstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
DeleteRegionInstantSnapshotGroupRequest request = new DeleteRegionInstantSnapshotGroupRequest
{
    RequestId = "",
    Region = "",
    InstantSnapshotGroup = "",
    Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await regionInstantSnapshotGroupsClient.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 regionInstantSnapshotGroupsClient.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(DeleteRegionInstantSnapshotGroupRequest, CancellationToken)

public virtual Task<Operation<Operation, Operation>> DeleteAsync(DeleteRegionInstantSnapshotGroupRequest request, CancellationToken cancellationToken)

deletes a Regional InstantSnapshotGroup resource

Parameters
Name Description
request DeleteRegionInstantSnapshotGroupRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = await RegionInstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
DeleteRegionInstantSnapshotGroupRequest request = new DeleteRegionInstantSnapshotGroupRequest
{
    RequestId = "",
    Region = "",
    InstantSnapshotGroup = "",
    Project = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await regionInstantSnapshotGroupsClient.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 regionInstantSnapshotGroupsClient.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 region, string instantSnapshotGroup, CallSettings callSettings = null)

deletes a Regional InstantSnapshotGroup resource

Parameters
Name Description
project string

Project ID for this request.

region string

The name of the region for this request.

instantSnapshotGroup string

Name of the InstantSnapshotGroup resource to delete.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = await RegionInstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string instantSnapshotGroup = "";
// Make the request
lro::Operation<Operation, Operation> response = await regionInstantSnapshotGroupsClient.DeleteAsync(project, region, 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 regionInstantSnapshotGroupsClient.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 region, string instantSnapshotGroup, CancellationToken cancellationToken)

deletes a Regional InstantSnapshotGroup resource

Parameters
Name Description
project string

Project ID for this request.

region string

The name of the region for this request.

instantSnapshotGroup string

Name of the InstantSnapshotGroup resource to delete.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = await RegionInstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string instantSnapshotGroup = "";
// Make the request
lro::Operation<Operation, Operation> response = await regionInstantSnapshotGroupsClient.DeleteAsync(project, region, 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 regionInstantSnapshotGroupsClient.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(GetRegionInstantSnapshotGroupRequest, CallSettings)

public virtual InstantSnapshotGroup Get(GetRegionInstantSnapshotGroupRequest request, CallSettings callSettings = null)

returns the specified InstantSnapshotGroup resource in the specified region.

Parameters
Name Description
request GetRegionInstantSnapshotGroupRequest

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
InstantSnapshotGroup

The RPC response.

Example
// Create client
RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = RegionInstantSnapshotGroupsClient.Create();
// Initialize request argument(s)
GetRegionInstantSnapshotGroupRequest request = new GetRegionInstantSnapshotGroupRequest
{
    Region = "",
    InstantSnapshotGroup = "",
    Project = "",
};
// Make the request
InstantSnapshotGroup response = regionInstantSnapshotGroupsClient.Get(request);

Get(string, string, string, CallSettings)

public virtual InstantSnapshotGroup Get(string project, string region, string instantSnapshotGroup, CallSettings callSettings = null)

returns the specified InstantSnapshotGroup resource in the specified region.

Parameters
Name Description
project string

Project ID for this request.

region string

The name of the region for this request.

instantSnapshotGroup string

Name of the InstantSnapshotGroup resource to return.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
InstantSnapshotGroup

The RPC response.

Example
// Create client
RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = RegionInstantSnapshotGroupsClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string instantSnapshotGroup = "";
// Make the request
InstantSnapshotGroup response = regionInstantSnapshotGroupsClient.Get(project, region, instantSnapshotGroup);

GetAsync(GetRegionInstantSnapshotGroupRequest, CallSettings)

public virtual Task<InstantSnapshotGroup> GetAsync(GetRegionInstantSnapshotGroupRequest request, CallSettings callSettings = null)

returns the specified InstantSnapshotGroup resource in the specified region.

Parameters
Name Description
request GetRegionInstantSnapshotGroupRequest

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
TaskInstantSnapshotGroup

A Task containing the RPC response.

Example
// Create client
RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = await RegionInstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
GetRegionInstantSnapshotGroupRequest request = new GetRegionInstantSnapshotGroupRequest
{
    Region = "",
    InstantSnapshotGroup = "",
    Project = "",
};
// Make the request
InstantSnapshotGroup response = await regionInstantSnapshotGroupsClient.GetAsync(request);

GetAsync(GetRegionInstantSnapshotGroupRequest, CancellationToken)

public virtual Task<InstantSnapshotGroup> GetAsync(GetRegionInstantSnapshotGroupRequest request, CancellationToken cancellationToken)

returns the specified InstantSnapshotGroup resource in the specified region.

Parameters
Name Description
request GetRegionInstantSnapshotGroupRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskInstantSnapshotGroup

A Task containing the RPC response.

Example
// Create client
RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = await RegionInstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
GetRegionInstantSnapshotGroupRequest request = new GetRegionInstantSnapshotGroupRequest
{
    Region = "",
    InstantSnapshotGroup = "",
    Project = "",
};
// Make the request
InstantSnapshotGroup response = await regionInstantSnapshotGroupsClient.GetAsync(request);

GetAsync(string, string, string, CallSettings)

public virtual Task<InstantSnapshotGroup> GetAsync(string project, string region, string instantSnapshotGroup, CallSettings callSettings = null)

returns the specified InstantSnapshotGroup resource in the specified region.

Parameters
Name Description
project string

Project ID for this request.

region string

The name of the region for this request.

instantSnapshotGroup string

Name of the InstantSnapshotGroup resource to return.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskInstantSnapshotGroup

A Task containing the RPC response.

Example
// Create client
RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = await RegionInstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string instantSnapshotGroup = "";
// Make the request
InstantSnapshotGroup response = await regionInstantSnapshotGroupsClient.GetAsync(project, region, instantSnapshotGroup);

GetAsync(string, string, string, CancellationToken)

public virtual Task<InstantSnapshotGroup> GetAsync(string project, string region, string instantSnapshotGroup, CancellationToken cancellationToken)

returns the specified InstantSnapshotGroup resource in the specified region.

Parameters
Name Description
project string

Project ID for this request.

region string

The name of the region for this request.

instantSnapshotGroup string

Name of the InstantSnapshotGroup resource to return.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskInstantSnapshotGroup

A Task containing the RPC response.

Example
// Create client
RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = await RegionInstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string instantSnapshotGroup = "";
// Make the request
InstantSnapshotGroup response = await regionInstantSnapshotGroupsClient.GetAsync(project, region, instantSnapshotGroup);

GetIamPolicy(GetIamPolicyRegionInstantSnapshotGroupRequest, CallSettings)

public virtual Policy GetIamPolicy(GetIamPolicyRegionInstantSnapshotGroupRequest 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 GetIamPolicyRegionInstantSnapshotGroupRequest

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.

Example
// Create client
RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = RegionInstantSnapshotGroupsClient.Create();
// Initialize request argument(s)
GetIamPolicyRegionInstantSnapshotGroupRequest request = new GetIamPolicyRegionInstantSnapshotGroupRequest
{
    Region = "",
    Resource = "",
    Project = "",
    OptionsRequestedPolicyVersion = 0,
};
// Make the request
Policy response = regionInstantSnapshotGroupsClient.GetIamPolicy(request);

GetIamPolicy(string, string, string, CallSettings)

public virtual Policy GetIamPolicy(string project, string region, 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 string

Project ID for this request.

region string

The name of the region for this request.

resource string

Name or id of the resource for this request.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Policy

The RPC response.

Example
// Create client
RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = RegionInstantSnapshotGroupsClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string resource = "";
// Make the request
Policy response = regionInstantSnapshotGroupsClient.GetIamPolicy(project, region, resource);

GetIamPolicyAsync(GetIamPolicyRegionInstantSnapshotGroupRequest, CallSettings)

public virtual Task<Policy> GetIamPolicyAsync(GetIamPolicyRegionInstantSnapshotGroupRequest 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 GetIamPolicyRegionInstantSnapshotGroupRequest

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.

Example
// Create client
RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = await RegionInstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
GetIamPolicyRegionInstantSnapshotGroupRequest request = new GetIamPolicyRegionInstantSnapshotGroupRequest
{
    Region = "",
    Resource = "",
    Project = "",
    OptionsRequestedPolicyVersion = 0,
};
// Make the request
Policy response = await regionInstantSnapshotGroupsClient.GetIamPolicyAsync(request);

GetIamPolicyAsync(GetIamPolicyRegionInstantSnapshotGroupRequest, CancellationToken)

public virtual Task<Policy> GetIamPolicyAsync(GetIamPolicyRegionInstantSnapshotGroupRequest 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 GetIamPolicyRegionInstantSnapshotGroupRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPolicy

A Task containing the RPC response.

Example
// Create client
RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = await RegionInstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
GetIamPolicyRegionInstantSnapshotGroupRequest request = new GetIamPolicyRegionInstantSnapshotGroupRequest
{
    Region = "",
    Resource = "",
    Project = "",
    OptionsRequestedPolicyVersion = 0,
};
// Make the request
Policy response = await regionInstantSnapshotGroupsClient.GetIamPolicyAsync(request);

GetIamPolicyAsync(string, string, string, CallSettings)

public virtual Task<Policy> GetIamPolicyAsync(string project, string region, 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 string

Project ID for this request.

region string

The name of the region for this request.

resource string

Name or id of the resource for this request.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPolicy

A Task containing the RPC response.

Example
// Create client
RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = await RegionInstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string resource = "";
// Make the request
Policy response = await regionInstantSnapshotGroupsClient.GetIamPolicyAsync(project, region, resource);

GetIamPolicyAsync(string, string, string, CancellationToken)

public virtual Task<Policy> GetIamPolicyAsync(string project, string region, 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 string

Project ID for this request.

region string

The name of the region for this request.

resource string

Name or id of the resource for this request.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPolicy

A Task containing the RPC response.

Example
// Create client
RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = await RegionInstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string resource = "";
// Make the request
Policy response = await regionInstantSnapshotGroupsClient.GetIamPolicyAsync(project, region, resource);

Insert(InsertRegionInstantSnapshotGroupRequest, CallSettings)

public virtual Operation<Operation, Operation> Insert(InsertRegionInstantSnapshotGroupRequest request, CallSettings callSettings = null)

creates a Regional InstantSnapshotGroup resource

Parameters
Name Description
request InsertRegionInstantSnapshotGroupRequest

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.

Example
// Create client
RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = RegionInstantSnapshotGroupsClient.Create();
// Initialize request argument(s)
InsertRegionInstantSnapshotGroupRequest request = new InsertRegionInstantSnapshotGroupRequest
{
    RequestId = "",
    Region = "",
    InstantSnapshotGroupResource = new InstantSnapshotGroup(),
    Project = "",
    SourceConsistencyGroup = "",
};
// Make the request
lro::Operation<Operation, Operation> response = regionInstantSnapshotGroupsClient.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 = regionInstantSnapshotGroupsClient.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 region, InstantSnapshotGroup instantSnapshotGroupResource, CallSettings callSettings = null)

creates a Regional InstantSnapshotGroup resource

Parameters
Name Description
project string

Project ID for this request.

region string

Name of the region for this request.

instantSnapshotGroupResource InstantSnapshotGroup

The body resource for this request

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationOperationOperation

The RPC response.

Example
// Create client
RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = RegionInstantSnapshotGroupsClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
InstantSnapshotGroup instantSnapshotGroupResource = new InstantSnapshotGroup();
// Make the request
lro::Operation<Operation, Operation> response = regionInstantSnapshotGroupsClient.Insert(project, region, 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 = regionInstantSnapshotGroupsClient.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(InsertRegionInstantSnapshotGroupRequest, CallSettings)

public virtual Task<Operation<Operation, Operation>> InsertAsync(InsertRegionInstantSnapshotGroupRequest request, CallSettings callSettings = null)

creates a Regional InstantSnapshotGroup resource

Parameters
Name Description
request InsertRegionInstantSnapshotGroupRequest

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.

Example
// Create client
RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = await RegionInstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
InsertRegionInstantSnapshotGroupRequest request = new InsertRegionInstantSnapshotGroupRequest
{
    RequestId = "",
    Region = "",
    InstantSnapshotGroupResource = new InstantSnapshotGroup(),
    Project = "",
    SourceConsistencyGroup = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await regionInstantSnapshotGroupsClient.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 regionInstantSnapshotGroupsClient.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(InsertRegionInstantSnapshotGroupRequest, CancellationToken)

public virtual Task<Operation<Operation, Operation>> InsertAsync(InsertRegionInstantSnapshotGroupRequest request, CancellationToken cancellationToken)

creates a Regional InstantSnapshotGroup resource

Parameters
Name Description
request InsertRegionInstantSnapshotGroupRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = await RegionInstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
InsertRegionInstantSnapshotGroupRequest request = new InsertRegionInstantSnapshotGroupRequest
{
    RequestId = "",
    Region = "",
    InstantSnapshotGroupResource = new InstantSnapshotGroup(),
    Project = "",
    SourceConsistencyGroup = "",
};
// Make the request
lro::Operation<Operation, Operation> response = await regionInstantSnapshotGroupsClient.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 regionInstantSnapshotGroupsClient.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 region, InstantSnapshotGroup instantSnapshotGroupResource, CallSettings callSettings = null)

creates a Regional InstantSnapshotGroup resource

Parameters
Name Description
project string

Project ID for this request.

region string

Name of the region for this request.

instantSnapshotGroupResource InstantSnapshotGroup

The body resource for this request

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = await RegionInstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
InstantSnapshotGroup instantSnapshotGroupResource = new InstantSnapshotGroup();
// Make the request
lro::Operation<Operation, Operation> response = await regionInstantSnapshotGroupsClient.InsertAsync(project, region, 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 regionInstantSnapshotGroupsClient.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 region, InstantSnapshotGroup instantSnapshotGroupResource, CancellationToken cancellationToken)

creates a Regional InstantSnapshotGroup resource

Parameters
Name Description
project string

Project ID for this request.

region string

Name of the region for this request.

instantSnapshotGroupResource InstantSnapshotGroup

The body resource for this request

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationOperationOperation

A Task containing the RPC response.

Example
// Create client
RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = await RegionInstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
InstantSnapshotGroup instantSnapshotGroupResource = new InstantSnapshotGroup();
// Make the request
lro::Operation<Operation, Operation> response = await regionInstantSnapshotGroupsClient.InsertAsync(project, region, 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 regionInstantSnapshotGroupsClient.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(ListRegionInstantSnapshotGroupsRequest, CallSettings)

public virtual PagedEnumerable<ListInstantSnapshotGroups, InstantSnapshotGroup> List(ListRegionInstantSnapshotGroupsRequest request, CallSettings callSettings = null)

retrieves the list of InstantSnapshotGroup resources contained within the specified region.

Parameters
Name Description
request ListRegionInstantSnapshotGroupsRequest

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
PagedEnumerableListInstantSnapshotGroupsInstantSnapshotGroup

A pageable sequence of InstantSnapshotGroup resources.

Example
// Create client
RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = RegionInstantSnapshotGroupsClient.Create();
// Initialize request argument(s)
ListRegionInstantSnapshotGroupsRequest request = new ListRegionInstantSnapshotGroupsRequest
{
    Region = "",
    OrderBy = "",
    Project = "",
    Filter = "",
    ReturnPartialSuccess = false,
};
// Make the request
PagedEnumerable<ListInstantSnapshotGroups, InstantSnapshotGroup> response = regionInstantSnapshotGroupsClient.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 region, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

retrieves the list of InstantSnapshotGroup resources contained within the specified region.

Parameters
Name Description
project string

Project ID for this request.

region string

The name of the region for this request.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListInstantSnapshotGroupsInstantSnapshotGroup

A pageable sequence of InstantSnapshotGroup resources.

Example
// Create client
RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = RegionInstantSnapshotGroupsClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
// Make the request
PagedEnumerable<ListInstantSnapshotGroups, InstantSnapshotGroup> response = regionInstantSnapshotGroupsClient.List(project, region);

// 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(ListRegionInstantSnapshotGroupsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListInstantSnapshotGroups, InstantSnapshotGroup> ListAsync(ListRegionInstantSnapshotGroupsRequest request, CallSettings callSettings = null)

retrieves the list of InstantSnapshotGroup resources contained within the specified region.

Parameters
Name Description
request ListRegionInstantSnapshotGroupsRequest

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
PagedAsyncEnumerableListInstantSnapshotGroupsInstantSnapshotGroup

A pageable asynchronous sequence of InstantSnapshotGroup resources.

Example
// Create client
RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = await RegionInstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
ListRegionInstantSnapshotGroupsRequest request = new ListRegionInstantSnapshotGroupsRequest
{
    Region = "",
    OrderBy = "",
    Project = "",
    Filter = "",
    ReturnPartialSuccess = false,
};
// Make the request
PagedAsyncEnumerable<ListInstantSnapshotGroups, InstantSnapshotGroup> response = regionInstantSnapshotGroupsClient.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 region, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

retrieves the list of InstantSnapshotGroup resources contained within the specified region.

Parameters
Name Description
project string

Project ID for this request.

region string

The name of the region for this request.

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListInstantSnapshotGroupsInstantSnapshotGroup

A pageable asynchronous sequence of InstantSnapshotGroup resources.

Example
// Create client
RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = await RegionInstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
// Make the request
PagedAsyncEnumerable<ListInstantSnapshotGroups, InstantSnapshotGroup> response = regionInstantSnapshotGroupsClient.ListAsync(project, region);

// 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 string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If 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 string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If 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 string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If 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 string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationOperationOperation

A task representing the result of polling the operation.

SetIamPolicy(SetIamPolicyRegionInstantSnapshotGroupRequest, CallSettings)

public virtual Policy SetIamPolicy(SetIamPolicyRegionInstantSnapshotGroupRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request SetIamPolicyRegionInstantSnapshotGroupRequest

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.

Example
// Create client
RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = RegionInstantSnapshotGroupsClient.Create();
// Initialize request argument(s)
SetIamPolicyRegionInstantSnapshotGroupRequest request = new SetIamPolicyRegionInstantSnapshotGroupRequest
{
    Region = "",
    Resource = "",
    Project = "",
    RegionSetPolicyRequestResource = new RegionSetPolicyRequest(),
};
// Make the request
Policy response = regionInstantSnapshotGroupsClient.SetIamPolicy(request);

SetIamPolicy(string, string, string, RegionSetPolicyRequest, CallSettings)

public virtual Policy SetIamPolicy(string project, string region, string resource, RegionSetPolicyRequest regionSetPolicyRequestResource, CallSettings callSettings = null)

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

Parameters
Name Description
project string

Project ID for this request.

region string

The name of the region for this request.

resource string

Name or id of the resource for this request.

regionSetPolicyRequestResource RegionSetPolicyRequest

The body resource for this request

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Policy

The RPC response.

Example
// Create client
RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = RegionInstantSnapshotGroupsClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string resource = "";
RegionSetPolicyRequest regionSetPolicyRequestResource = new RegionSetPolicyRequest();
// Make the request
Policy response = regionInstantSnapshotGroupsClient.SetIamPolicy(project, region, resource, regionSetPolicyRequestResource);

SetIamPolicyAsync(SetIamPolicyRegionInstantSnapshotGroupRequest, CallSettings)

public virtual Task<Policy> SetIamPolicyAsync(SetIamPolicyRegionInstantSnapshotGroupRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request SetIamPolicyRegionInstantSnapshotGroupRequest

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.

Example
// Create client
RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = await RegionInstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
SetIamPolicyRegionInstantSnapshotGroupRequest request = new SetIamPolicyRegionInstantSnapshotGroupRequest
{
    Region = "",
    Resource = "",
    Project = "",
    RegionSetPolicyRequestResource = new RegionSetPolicyRequest(),
};
// Make the request
Policy response = await regionInstantSnapshotGroupsClient.SetIamPolicyAsync(request);

SetIamPolicyAsync(SetIamPolicyRegionInstantSnapshotGroupRequest, CancellationToken)

public virtual Task<Policy> SetIamPolicyAsync(SetIamPolicyRegionInstantSnapshotGroupRequest request, CancellationToken cancellationToken)

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

Parameters
Name Description
request SetIamPolicyRegionInstantSnapshotGroupRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPolicy

A Task containing the RPC response.

Example
// Create client
RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = await RegionInstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
SetIamPolicyRegionInstantSnapshotGroupRequest request = new SetIamPolicyRegionInstantSnapshotGroupRequest
{
    Region = "",
    Resource = "",
    Project = "",
    RegionSetPolicyRequestResource = new RegionSetPolicyRequest(),
};
// Make the request
Policy response = await regionInstantSnapshotGroupsClient.SetIamPolicyAsync(request);

SetIamPolicyAsync(string, string, string, RegionSetPolicyRequest, CallSettings)

public virtual Task<Policy> SetIamPolicyAsync(string project, string region, string resource, RegionSetPolicyRequest regionSetPolicyRequestResource, CallSettings callSettings = null)

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

Parameters
Name Description
project string

Project ID for this request.

region string

The name of the region for this request.

resource string

Name or id of the resource for this request.

regionSetPolicyRequestResource RegionSetPolicyRequest

The body resource for this request

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskPolicy

A Task containing the RPC response.

Example
// Create client
RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = await RegionInstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string resource = "";
RegionSetPolicyRequest regionSetPolicyRequestResource = new RegionSetPolicyRequest();
// Make the request
Policy response = await regionInstantSnapshotGroupsClient.SetIamPolicyAsync(project, region, resource, regionSetPolicyRequestResource);

SetIamPolicyAsync(string, string, string, RegionSetPolicyRequest, CancellationToken)

public virtual Task<Policy> SetIamPolicyAsync(string project, string region, string resource, RegionSetPolicyRequest regionSetPolicyRequestResource, CancellationToken cancellationToken)

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

Parameters
Name Description
project string

Project ID for this request.

region string

The name of the region for this request.

resource string

Name or id of the resource for this request.

regionSetPolicyRequestResource RegionSetPolicyRequest

The body resource for this request

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskPolicy

A Task containing the RPC response.

Example
// Create client
RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = await RegionInstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string resource = "";
RegionSetPolicyRequest regionSetPolicyRequestResource = new RegionSetPolicyRequest();
// Make the request
Policy response = await regionInstantSnapshotGroupsClient.SetIamPolicyAsync(project, region, resource, regionSetPolicyRequestResource);

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.

Remarks

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(TestIamPermissionsRegionInstantSnapshotGroupRequest, CallSettings)

public virtual TestPermissionsResponse TestIamPermissions(TestIamPermissionsRegionInstantSnapshotGroupRequest request, CallSettings callSettings = null)

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
request TestIamPermissionsRegionInstantSnapshotGroupRequest

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.

Example
// Create client
RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = RegionInstantSnapshotGroupsClient.Create();
// Initialize request argument(s)
TestIamPermissionsRegionInstantSnapshotGroupRequest request = new TestIamPermissionsRegionInstantSnapshotGroupRequest
{
    Region = "",
    Resource = "",
    Project = "",
    TestPermissionsRequestResource = new TestPermissionsRequest(),
};
// Make the request
TestPermissionsResponse response = regionInstantSnapshotGroupsClient.TestIamPermissions(request);

TestIamPermissions(string, string, string, TestPermissionsRequest, CallSettings)

public virtual TestPermissionsResponse TestIamPermissions(string project, string region, string resource, TestPermissionsRequest testPermissionsRequestResource, CallSettings callSettings = null)

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
project string

Project ID for this request.

region string

The name of the region for this request.

resource string

Name or id of the resource for this request.

testPermissionsRequestResource TestPermissionsRequest

The body resource for this request

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TestPermissionsResponse

The RPC response.

Example
// Create client
RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = RegionInstantSnapshotGroupsClient.Create();
// Initialize request argument(s)
string project = "";
string region = "";
string resource = "";
TestPermissionsRequest testPermissionsRequestResource = new TestPermissionsRequest();
// Make the request
TestPermissionsResponse response = regionInstantSnapshotGroupsClient.TestIamPermissions(project, region, resource, testPermissionsRequestResource);

TestIamPermissionsAsync(TestIamPermissionsRegionInstantSnapshotGroupRequest, CallSettings)

public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRegionInstantSnapshotGroupRequest request, CallSettings callSettings = null)

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
request TestIamPermissionsRegionInstantSnapshotGroupRequest

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.

Example
// Create client
RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = await RegionInstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
TestIamPermissionsRegionInstantSnapshotGroupRequest request = new TestIamPermissionsRegionInstantSnapshotGroupRequest
{
    Region = "",
    Resource = "",
    Project = "",
    TestPermissionsRequestResource = new TestPermissionsRequest(),
};
// Make the request
TestPermissionsResponse response = await regionInstantSnapshotGroupsClient.TestIamPermissionsAsync(request);

TestIamPermissionsAsync(TestIamPermissionsRegionInstantSnapshotGroupRequest, CancellationToken)

public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRegionInstantSnapshotGroupRequest request, CancellationToken cancellationToken)

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
request TestIamPermissionsRegionInstantSnapshotGroupRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskTestPermissionsResponse

A Task containing the RPC response.

Example
// Create client
RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = await RegionInstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
TestIamPermissionsRegionInstantSnapshotGroupRequest request = new TestIamPermissionsRegionInstantSnapshotGroupRequest
{
    Region = "",
    Resource = "",
    Project = "",
    TestPermissionsRequestResource = new TestPermissionsRequest(),
};
// Make the request
TestPermissionsResponse response = await regionInstantSnapshotGroupsClient.TestIamPermissionsAsync(request);

TestIamPermissionsAsync(string, string, string, TestPermissionsRequest, CallSettings)

public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(string project, string region, string resource, TestPermissionsRequest testPermissionsRequestResource, CallSettings callSettings = null)

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
project string

Project ID for this request.

region string

The name of the region for this request.

resource string

Name or id of the resource for this request.

testPermissionsRequestResource TestPermissionsRequest

The body resource for this request

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskTestPermissionsResponse

A Task containing the RPC response.

Example
// Create client
RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = await RegionInstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string resource = "";
TestPermissionsRequest testPermissionsRequestResource = new TestPermissionsRequest();
// Make the request
TestPermissionsResponse response = await regionInstantSnapshotGroupsClient.TestIamPermissionsAsync(project, region, resource, testPermissionsRequestResource);

TestIamPermissionsAsync(string, string, string, TestPermissionsRequest, CancellationToken)

public virtual Task<TestPermissionsResponse> TestIamPermissionsAsync(string project, string region, string resource, TestPermissionsRequest testPermissionsRequestResource, CancellationToken cancellationToken)

Returns permissions that a caller has on the specified resource.

Parameters
Name Description
project string

Project ID for this request.

region string

The name of the region for this request.

resource string

Name or id of the resource for this request.

testPermissionsRequestResource TestPermissionsRequest

The body resource for this request

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskTestPermissionsResponse

A Task containing the RPC response.

Example
// Create client
RegionInstantSnapshotGroupsClient regionInstantSnapshotGroupsClient = await RegionInstantSnapshotGroupsClient.CreateAsync();
// Initialize request argument(s)
string project = "";
string region = "";
string resource = "";
TestPermissionsRequest testPermissionsRequestResource = new TestPermissionsRequest();
// Make the request
TestPermissionsResponse response = await regionInstantSnapshotGroupsClient.TestIamPermissionsAsync(project, region, resource, testPermissionsRequestResource);