1.0.0-alpha19 (latest) 1.0.0-alpha18

    public sealed class AlloyDBCSQLAdminClientImpl : AlloyDBCSQLAdminClient

Reference documentation and code samples for the AlloyDB v1alpha API class AlloyDBCSQLAdminClientImpl.

AlloyDBCSQLAdmin client wrapper implementation, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [AlloyDBCSQLAdminClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.AlloyDBCSQLAdminClient) \> AlloyDBCSQLAdminClientImpl

## Inherited Members

[AlloyDBCSQLAdminClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.AlloyDBCSQLAdminClient#Google_Cloud_AlloyDb_V1Alpha_AlloyDBCSQLAdminClient_DefaultEndpoint) [AlloyDBCSQLAdminClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.AlloyDBCSQLAdminClient#Google_Cloud_AlloyDb_V1Alpha_AlloyDBCSQLAdminClient_DefaultScopes) [AlloyDBCSQLAdminClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.AlloyDBCSQLAdminClient#Google_Cloud_AlloyDb_V1Alpha_AlloyDBCSQLAdminClient_ServiceMetadata) [AlloyDBCSQLAdminClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.AlloyDBCSQLAdminClient#Google_Cloud_AlloyDb_V1Alpha_AlloyDBCSQLAdminClient_CreateAsync_System_Threading_CancellationToken_) [AlloyDBCSQLAdminClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.AlloyDBCSQLAdminClient#Google_Cloud_AlloyDb_V1Alpha_AlloyDBCSQLAdminClient_Create) [AlloyDBCSQLAdminClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.AlloyDBCSQLAdminClient#Google_Cloud_AlloyDb_V1Alpha_AlloyDBCSQLAdminClient_ShutdownDefaultChannelsAsync) [AlloyDBCSQLAdminClient.RestoreFromCloudSQLAsync(RestoreFromCloudSQLRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.AlloyDBCSQLAdminClient#Google_Cloud_AlloyDb_V1Alpha_AlloyDBCSQLAdminClient_RestoreFromCloudSQLAsync_Google_Cloud_AlloyDb_V1Alpha_RestoreFromCloudSQLRequest_System_Threading_CancellationToken_) [AlloyDBCSQLAdminClient.PollOnceRestoreFromCloudSQL(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.AlloyDBCSQLAdminClient#Google_Cloud_AlloyDb_V1Alpha_AlloyDBCSQLAdminClient_PollOnceRestoreFromCloudSQL_System_String_Google_Api_Gax_Grpc_CallSettings_) [AlloyDBCSQLAdminClient.PollOnceRestoreFromCloudSQLAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.AlloyDBCSQLAdminClient#Google_Cloud_AlloyDb_V1Alpha_AlloyDBCSQLAdminClient_PollOnceRestoreFromCloudSQLAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [AlloyDBCSQLAdminClient.RestoreFromCloudSQL(string, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.AlloyDBCSQLAdminClient#Google_Cloud_AlloyDb_V1Alpha_AlloyDBCSQLAdminClient_RestoreFromCloudSQL_System_String_System_String_Google_Api_Gax_Grpc_CallSettings_) [AlloyDBCSQLAdminClient.RestoreFromCloudSQLAsync(string, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.AlloyDBCSQLAdminClient#Google_Cloud_AlloyDb_V1Alpha_AlloyDBCSQLAdminClient_RestoreFromCloudSQLAsync_System_String_System_String_Google_Api_Gax_Grpc_CallSettings_) [AlloyDBCSQLAdminClient.RestoreFromCloudSQLAsync(string, string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.AlloyDBCSQLAdminClient#Google_Cloud_AlloyDb_V1Alpha_AlloyDBCSQLAdminClient_RestoreFromCloudSQLAsync_System_String_System_String_System_Threading_CancellationToken_) [AlloyDBCSQLAdminClient.RestoreFromCloudSQL(LocationName, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.AlloyDBCSQLAdminClient#Google_Cloud_AlloyDb_V1Alpha_AlloyDBCSQLAdminClient_RestoreFromCloudSQL_Google_Api_Gax_ResourceNames_LocationName_System_String_Google_Api_Gax_Grpc_CallSettings_) [AlloyDBCSQLAdminClient.RestoreFromCloudSQLAsync(LocationName, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.AlloyDBCSQLAdminClient#Google_Cloud_AlloyDb_V1Alpha_AlloyDBCSQLAdminClient_RestoreFromCloudSQLAsync_Google_Api_Gax_ResourceNames_LocationName_System_String_Google_Api_Gax_Grpc_CallSettings_) [AlloyDBCSQLAdminClient.RestoreFromCloudSQLAsync(LocationName, string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.AlloyDBCSQLAdminClient#Google_Cloud_AlloyDb_V1Alpha_AlloyDBCSQLAdminClient_RestoreFromCloudSQLAsync_Google_Api_Gax_ResourceNames_LocationName_System_String_System_Threading_CancellationToken_) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

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

## Assembly

Google.Cloud.AlloyDb.V1Alpha.dll

## Remarks

Service for interactions with CloudSQL.

## Constructors

### AlloyDBCSQLAdminClientImpl(AlloyDBCSQLAdminClient, AlloyDBCSQLAdminSettings, ILogger)

    public AlloyDBCSQLAdminClientImpl(AlloyDBCSQLAdmin.AlloyDBCSQLAdminClient grpcClient, AlloyDBCSQLAdminSettings settings, ILogger logger)

Constructs a client wrapper for the AlloyDBCSQLAdmin service, with the specified gRPC client and settings.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.AlloyDBCSQLAdminhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.AlloyDBCSQLAdmin.AlloyDBCSQLAdminClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.AlloyDBCSQLAdminSettings` The base [AlloyDBCSQLAdminSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.AlloyDBCSQLAdminSettings) used within this client. |
| `logger` | `https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger` Optional [ILogger](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger) to use within this client. |

## Properties

### GrpcClient

    public override AlloyDBCSQLAdmin.AlloyDBCSQLAdminClient GrpcClient { get; }

The underlying gRPC AlloyDBCSQLAdmin client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.AlloyDBCSQLAdminhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.AlloyDBCSQLAdmin.AlloyDBCSQLAdminClient` |   |

**Overrides** [AlloyDBCSQLAdminClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.AlloyDBCSQLAdminClient#Google_Cloud_AlloyDb_V1Alpha_AlloyDBCSQLAdminClient_GrpcClient)

### IAMPolicyClient

    public override IAMPolicyClient IAMPolicyClient { get; }

The [IAMPolicyClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.IAMPolicyClient.html) associated with this client.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.IAMPolicyClient.html` |   |

**Overrides** [AlloyDBCSQLAdminClient.IAMPolicyClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.AlloyDBCSQLAdminClient#Google_Cloud_AlloyDb_V1Alpha_AlloyDBCSQLAdminClient_IAMPolicyClient)

### LocationsClient

    public override LocationsClient LocationsClient { get; }

The [LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.html) associated with this client.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.html` |   |

**Overrides** [AlloyDBCSQLAdminClient.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.AlloyDBCSQLAdminClient#Google_Cloud_AlloyDb_V1Alpha_AlloyDBCSQLAdminClient_LocationsClient)

### RestoreFromCloudSQLOperationsClient

    public override OperationsClient RestoreFromCloudSQLOperationsClient { get; }

The long-running operations client for `RestoreFromCloudSQL`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

**Overrides** [AlloyDBCSQLAdminClient.RestoreFromCloudSQLOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.AlloyDBCSQLAdminClient#Google_Cloud_AlloyDb_V1Alpha_AlloyDBCSQLAdminClient_RestoreFromCloudSQLOperationsClient)

## Methods

### RestoreFromCloudSQL(RestoreFromCloudSQLRequest, CallSettings)

    public override Operation<Cluster, OperationMetadata> RestoreFromCloudSQL(RestoreFromCloudSQLRequest request, CallSettings callSettings = null)

Restores an AlloyDB cluster from a CloudSQL resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.RestoreFromCloudSQLRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.Clusterhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.OperationMetadata` | The RPC response. |

**Overrides** [AlloyDBCSQLAdminClient.RestoreFromCloudSQL(RestoreFromCloudSQLRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.AlloyDBCSQLAdminClient#Google_Cloud_AlloyDb_V1Alpha_AlloyDBCSQLAdminClient_RestoreFromCloudSQL_Google_Cloud_AlloyDb_V1Alpha_RestoreFromCloudSQLRequest_Google_Api_Gax_Grpc_CallSettings_)

### RestoreFromCloudSQLAsync(RestoreFromCloudSQLRequest, CallSettings)

    public override Task<Operation<Cluster, OperationMetadata>> RestoreFromCloudSQLAsync(RestoreFromCloudSQLRequest request, CallSettings callSettings = null)

Restores an AlloyDB cluster from a CloudSQL resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.RestoreFromCloudSQLRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.Clusterhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.OperationMetadata` | A Task containing the RPC response. |

**Overrides** [AlloyDBCSQLAdminClient.RestoreFromCloudSQLAsync(RestoreFromCloudSQLRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.AlloyDBCSQLAdminClient#Google_Cloud_AlloyDb_V1Alpha_AlloyDBCSQLAdminClient_RestoreFromCloudSQLAsync_Google_Cloud_AlloyDb_V1Alpha_RestoreFromCloudSQLRequest_Google_Api_Gax_Grpc_CallSettings_)