1.16.0 (latest) 1.15.0 1.14.0 1.13.0 1.12.0 1.11.0 1.10.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

```sql
public abstract class AlloyDBCSQLAdminClient
```
Reference documentation and code samples for the AlloyDB v1 API class AlloyDBCSQLAdminClient.

AlloyDBCSQLAdmin client wrapper, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> AlloyDBCSQLAdminClient

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Derived Types

[AlloyDBCSQLAdminClientImpl](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.AlloyDBCSQLAdminClientImpl.md.txt)

## Namespace

[Google.Cloud.AlloyDb.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.md.txt)

## Assembly

Google.Cloud.AlloyDb.V1.dll

## Remarks

Service for interactions with CloudSQL.

## Properties

### DefaultEndpoint

```sql
public static string DefaultEndpoint { get; }
```
The default endpoint for the AlloyDBCSQLAdmin service, which is a host of "alloydb.googleapis.com" and a
port of 443.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### DefaultScopes

```sql
public static IReadOnlyList<string> DefaultScopes { get; }
```
The default AlloyDBCSQLAdmin scopes.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `IReadOnlyListstring` |   |

**Remarks** The default AlloyDBCSQLAdmin scopes are:

- <https://www.googleapis.com/auth/cloud-platform>

### GrpcClient

```sql
public virtual AlloyDBCSQLAdmin.AlloyDBCSQLAdminClient GrpcClient { get; }
```
The underlying gRPC AlloyDBCSQLAdmin client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `AlloyDBCSQLAdminAlloyDBCSQLAdminClient` |   |

### IAMPolicyClient

```sql
public virtual IAMPolicyClient IAMPolicyClient { get; }
```
The [IAMPolicyClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.IAMPolicyClient.md.txt) associated with this client.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `IAMPolicyClient` |   |

### LocationsClient

```sql
public virtual LocationsClient LocationsClient { get; }
```
The [LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.md.txt) associated with this client.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `LocationsClient` |   |

### RestoreFromCloudSQLOperationsClient

```sql
public virtual OperationsClient RestoreFromCloudSQLOperationsClient { get; }
```
The long-running operations client for `RestoreFromCloudSQL`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `OperationsClient` |   |

### ServiceMetadata

```sql
public static ServiceMetadata ServiceMetadata { get; }
```
The service metadata associated with this client type.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ServiceMetadata` |   |

## Methods

### Create()

```sql
public static AlloyDBCSQLAdminClient Create()
```
Synchronously creates a [AlloyDBCSQLAdminClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.AlloyDBCSQLAdminClient.md.txt) using the default credentials, endpoint and
settings. To specify custom credentials or other settings, use [AlloyDBCSQLAdminClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.AlloyDBCSQLAdminClientBuilder.md.txt).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AlloyDBCSQLAdminClient` | The created [AlloyDBCSQLAdminClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.AlloyDBCSQLAdminClient.md.txt). |

### CreateAsync(CancellationToken)

```sql
public static Task<AlloyDBCSQLAdminClient> CreateAsync(CancellationToken cancellationToken = default)
```
Asynchronously creates a [AlloyDBCSQLAdminClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.AlloyDBCSQLAdminClient.md.txt) using the default credentials, endpoint and
settings. To specify custom credentials or other settings, use [AlloyDBCSQLAdminClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.AlloyDBCSQLAdminClientBuilder.md.txt).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `cancellationToken` | `CancellationToken` The [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use while creating the client. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskAlloyDBCSQLAdminClient` | The task representing the created [AlloyDBCSQLAdminClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.AlloyDBCSQLAdminClient.md.txt). |

### PollOnceRestoreFromCloudSQL(string, CallSettings)

```sql
public virtual Operation<Cluster, OperationMetadata> PollOnceRestoreFromCloudSQL(string operationName, CallSettings callSettings = null)
```
Poll an operation once, using an `operationName` from a previous invocation of `RestoreFromCloudSQL`
.

| **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** |
| `OperationClusterOperationMetadata` | The result of polling the operation. |

### PollOnceRestoreFromCloudSQLAsync(string, CallSettings)

```sql
public virtual Task<Operation<Cluster, OperationMetadata>> PollOnceRestoreFromCloudSQLAsync(string operationName, CallSettings callSettings = null)
```
Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`RestoreFromCloudSQL`.

| **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** |
| `TaskOperationClusterOperationMetadata` | A task representing the result of polling the operation. |

### RestoreFromCloudSQL(LocationName, string, CallSettings)

```sql
public virtual Operation<Cluster, OperationMetadata> RestoreFromCloudSQL(LocationName parent, string clusterId, CallSettings callSettings = null)
```
Restores an AlloyDB cluster from a CloudSQL resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. The location of the new cluster. For the required format, see the comment on Cluster.name field. |
| `clusterId` | `string` Required. ID of the requesting object. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationClusterOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
string clusterId = "";
// Make the request
Operation<Cluster, OperationMetadata> response = alloyDBCSQLAdminClient.RestoreFromCloudSQL(parent, clusterId);

// Poll until the returned long-running operation is complete
Operation<Cluster, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Cluster 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
Operation<Cluster, OperationMetadata> retrievedResponse = alloyDBCSQLAdminClient.PollOnceRestoreFromCloudSQL(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Cluster retrievedResult = retrievedResponse.Result;
}
```

### RestoreFromCloudSQL(RestoreFromCloudSQLRequest, CallSettings)

```sql
public virtual Operation<Cluster, OperationMetadata> RestoreFromCloudSQL(RestoreFromCloudSQLRequest request, CallSettings callSettings = null)
```
Restores an AlloyDB cluster from a CloudSQL resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `RestoreFromCloudSQLRequest` 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** |
| `OperationClusterOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.Create();
// Initialize request argument(s)
RestoreFromCloudSQLRequest request = new RestoreFromCloudSQLRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ClusterId = "",
    Cluster = new Cluster(),
    CloudsqlBackupRunSource = new CloudSQLBackupRunSource(),
};
// Make the request
Operation<Cluster, OperationMetadata> response = alloyDBCSQLAdminClient.RestoreFromCloudSQL(request);

// Poll until the returned long-running operation is complete
Operation<Cluster, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Cluster 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
Operation<Cluster, OperationMetadata> retrievedResponse = alloyDBCSQLAdminClient.PollOnceRestoreFromCloudSQL(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Cluster retrievedResult = retrievedResponse.Result;
}
```

### RestoreFromCloudSQL(string, string, CallSettings)

```sql
public virtual Operation<Cluster, OperationMetadata> RestoreFromCloudSQL(string parent, string clusterId, CallSettings callSettings = null)
```
Restores an AlloyDB cluster from a CloudSQL resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The location of the new cluster. For the required format, see the comment on Cluster.name field. |
| `clusterId` | `string` Required. ID of the requesting object. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationClusterOperationMetadata` | The RPC response. |

**Example**

```cs
// Create client
AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = AlloyDBCSQLAdminClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
string clusterId = "";
// Make the request
Operation<Cluster, OperationMetadata> response = alloyDBCSQLAdminClient.RestoreFromCloudSQL(parent, clusterId);

// Poll until the returned long-running operation is complete
Operation<Cluster, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Cluster 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
Operation<Cluster, OperationMetadata> retrievedResponse = alloyDBCSQLAdminClient.PollOnceRestoreFromCloudSQL(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Cluster retrievedResult = retrievedResponse.Result;
}
```

### RestoreFromCloudSQLAsync(LocationName, string, CallSettings)

```sql
public virtual Task<Operation<Cluster, OperationMetadata>> RestoreFromCloudSQLAsync(LocationName parent, string clusterId, CallSettings callSettings = null)
```
Restores an AlloyDB cluster from a CloudSQL resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. The location of the new cluster. For the required format, see the comment on Cluster.name field. |
| `clusterId` | `string` Required. ID of the requesting object. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationClusterOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = await AlloyDBCSQLAdminClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
string clusterId = "";
// Make the request
Operation<Cluster, OperationMetadata> response = await alloyDBCSQLAdminClient.RestoreFromCloudSQLAsync(parent, clusterId);

// Poll until the returned long-running operation is complete
Operation<Cluster, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Cluster 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
Operation<Cluster, OperationMetadata> retrievedResponse = await alloyDBCSQLAdminClient.PollOnceRestoreFromCloudSQLAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Cluster retrievedResult = retrievedResponse.Result;
}
```

### RestoreFromCloudSQLAsync(LocationName, string, CancellationToken)

```sql
public virtual Task<Operation<Cluster, OperationMetadata>> RestoreFromCloudSQLAsync(LocationName parent, string clusterId, CancellationToken cancellationToken)
```
Restores an AlloyDB cluster from a CloudSQL resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `LocationName` Required. The location of the new cluster. For the required format, see the comment on Cluster.name field. |
| `clusterId` | `string` Required. ID of the requesting object. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationClusterOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = await AlloyDBCSQLAdminClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
string clusterId = "";
// Make the request
Operation<Cluster, OperationMetadata> response = await alloyDBCSQLAdminClient.RestoreFromCloudSQLAsync(parent, clusterId);

// Poll until the returned long-running operation is complete
Operation<Cluster, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Cluster 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
Operation<Cluster, OperationMetadata> retrievedResponse = await alloyDBCSQLAdminClient.PollOnceRestoreFromCloudSQLAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Cluster retrievedResult = retrievedResponse.Result;
}
```

### RestoreFromCloudSQLAsync(RestoreFromCloudSQLRequest, CallSettings)

```sql
public virtual Task<Operation<Cluster, OperationMetadata>> RestoreFromCloudSQLAsync(RestoreFromCloudSQLRequest request, CallSettings callSettings = null)
```
Restores an AlloyDB cluster from a CloudSQL resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `RestoreFromCloudSQLRequest` 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** |
| `TaskOperationClusterOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = await AlloyDBCSQLAdminClient.CreateAsync();
// Initialize request argument(s)
RestoreFromCloudSQLRequest request = new RestoreFromCloudSQLRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ClusterId = "",
    Cluster = new Cluster(),
    CloudsqlBackupRunSource = new CloudSQLBackupRunSource(),
};
// Make the request
Operation<Cluster, OperationMetadata> response = await alloyDBCSQLAdminClient.RestoreFromCloudSQLAsync(request);

// Poll until the returned long-running operation is complete
Operation<Cluster, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Cluster 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
Operation<Cluster, OperationMetadata> retrievedResponse = await alloyDBCSQLAdminClient.PollOnceRestoreFromCloudSQLAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Cluster retrievedResult = retrievedResponse.Result;
}
```

### RestoreFromCloudSQLAsync(RestoreFromCloudSQLRequest, CancellationToken)

```sql
public virtual Task<Operation<Cluster, OperationMetadata>> RestoreFromCloudSQLAsync(RestoreFromCloudSQLRequest request, CancellationToken cancellationToken)
```
Restores an AlloyDB cluster from a CloudSQL resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `RestoreFromCloudSQLRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationClusterOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = await AlloyDBCSQLAdminClient.CreateAsync();
// Initialize request argument(s)
RestoreFromCloudSQLRequest request = new RestoreFromCloudSQLRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    ClusterId = "",
    Cluster = new Cluster(),
    CloudsqlBackupRunSource = new CloudSQLBackupRunSource(),
};
// Make the request
Operation<Cluster, OperationMetadata> response = await alloyDBCSQLAdminClient.RestoreFromCloudSQLAsync(request);

// Poll until the returned long-running operation is complete
Operation<Cluster, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Cluster 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
Operation<Cluster, OperationMetadata> retrievedResponse = await alloyDBCSQLAdminClient.PollOnceRestoreFromCloudSQLAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Cluster retrievedResult = retrievedResponse.Result;
}
```

### RestoreFromCloudSQLAsync(string, string, CallSettings)

```sql
public virtual Task<Operation<Cluster, OperationMetadata>> RestoreFromCloudSQLAsync(string parent, string clusterId, CallSettings callSettings = null)
```
Restores an AlloyDB cluster from a CloudSQL resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The location of the new cluster. For the required format, see the comment on Cluster.name field. |
| `clusterId` | `string` Required. ID of the requesting object. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationClusterOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = await AlloyDBCSQLAdminClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
string clusterId = "";
// Make the request
Operation<Cluster, OperationMetadata> response = await alloyDBCSQLAdminClient.RestoreFromCloudSQLAsync(parent, clusterId);

// Poll until the returned long-running operation is complete
Operation<Cluster, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Cluster 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
Operation<Cluster, OperationMetadata> retrievedResponse = await alloyDBCSQLAdminClient.PollOnceRestoreFromCloudSQLAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Cluster retrievedResult = retrievedResponse.Result;
}
```

### RestoreFromCloudSQLAsync(string, string, CancellationToken)

```sql
public virtual Task<Operation<Cluster, OperationMetadata>> RestoreFromCloudSQLAsync(string parent, string clusterId, CancellationToken cancellationToken)
```
Restores an AlloyDB cluster from a CloudSQL resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The location of the new cluster. For the required format, see the comment on Cluster.name field. |
| `clusterId` | `string` Required. ID of the requesting object. |
| `cancellationToken` | `CancellationToken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationClusterOperationMetadata` | A Task containing the RPC response. |

**Example**

```cs
// Create client
AlloyDBCSQLAdminClient alloyDBCSQLAdminClient = await AlloyDBCSQLAdminClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
string clusterId = "";
// Make the request
Operation<Cluster, OperationMetadata> response = await alloyDBCSQLAdminClient.RestoreFromCloudSQLAsync(parent, clusterId);

// Poll until the returned long-running operation is complete
Operation<Cluster, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Cluster 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
Operation<Cluster, OperationMetadata> retrievedResponse = await alloyDBCSQLAdminClient.PollOnceRestoreFromCloudSQLAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Cluster retrievedResult = retrievedResponse.Result;
}
```

### ShutdownDefaultChannelsAsync()

```sql
public static Task ShutdownDefaultChannelsAsync()
```
Shuts down any channels automatically created by [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.AlloyDBCSQLAdminClient.md.txt#Google_Cloud_AlloyDb_V1_AlloyDBCSQLAdminClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.AlloyDBCSQLAdminClient.md.txt#Google_Cloud_AlloyDb_V1_AlloyDBCSQLAdminClient_CreateAsync_System_Threading_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()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.AlloyDBCSQLAdminClient.md.txt#Google_Cloud_AlloyDb_V1_AlloyDBCSQLAdminClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.AlloyDBCSQLAdminClient.md.txt#Google_Cloud_AlloyDb_V1_AlloyDBCSQLAdminClient_CreateAsync_System_Threading_CancellationToken_) will create new channels, which could in turn be shut down
by another call to this method.