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 class AlloyDBCSQLAdmin.AlloyDBCSQLAdminClient : ClientBase<AlloyDBCSQLAdmin.AlloyDBCSQLAdminClient>
```
Reference documentation and code samples for the AlloyDB v1 API class AlloyDBCSQLAdmin.AlloyDBCSQLAdminClient.

Client for AlloyDBCSQLAdmin

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [ClientBase](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.md.txt) \> [ClientBase](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase-1.md.txt)[AlloyDBCSQLAdmin](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.AlloyDBCSQLAdmin.md.txt)[AlloyDBCSQLAdminClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.AlloyDBCSQLAdmin.AlloyDBCSQLAdminClient.md.txt) \> AlloyDBCSQLAdmin.AlloyDBCSQLAdminClient

## Inherited Members

[ClientBase\<AlloyDBCSQLAdmin.AlloyDBCSQLAdminClient\>.WithHost(string)](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase-1.md.txt#Grpc_Core_ClientBase_1_WithHost_System_String_) [ClientBase.CallInvoker](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.md.txt#Grpc_Core_ClientBase_CallInvoker) [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)

## 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

## Constructors

### AlloyDBCSQLAdminClient()

```sql
protected AlloyDBCSQLAdminClient()
```
Protected parameterless constructor to allow creation of test doubles.

### AlloyDBCSQLAdminClient(CallInvoker)

```sql
public AlloyDBCSQLAdminClient(CallInvoker callInvoker)
```
Creates a new client for AlloyDBCSQLAdmin that uses a custom `CallInvoker`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `callInvoker` | `CallInvoker` The callInvoker to use to make remote calls. |

### AlloyDBCSQLAdminClient(ChannelBase)

```sql
public AlloyDBCSQLAdminClient(ChannelBase channel)
```
Creates a new client for AlloyDBCSQLAdmin

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `channel` | `ChannelBase` The channel to use to make remote calls. |

### AlloyDBCSQLAdminClient(ClientBaseConfiguration)

```sql
protected AlloyDBCSQLAdminClient(ClientBase.ClientBaseConfiguration configuration)
```
Protected constructor to allow creation of configured clients.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `configuration` | `ClientBaseClientBaseConfiguration` The client configuration. |

## Methods

### CreateIAMPolicyClient()

```sql
public virtual IAMPolicy.IAMPolicyClient CreateIAMPolicyClient()
```
Creates a new instance of [IAMPolicy.IAMPolicyClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.IAMPolicy.IAMPolicyClient.md.txt) using the same call invoker as
this client.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `IAMPolicyIAMPolicyClient` | A new [IAMPolicy.IAMPolicyClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.IAMPolicy.IAMPolicyClient.md.txt) for the same target as this client. |

### CreateLocationsClient()

```sql
public virtual Locations.LocationsClient CreateLocationsClient()
```
Creates a new instance of [Locations.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.Locations.LocationsClient.md.txt) using the same call invoker as
this client.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `LocationsLocationsClient` | A new [Locations.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.Locations.LocationsClient.md.txt) for the same target as this client. |

### CreateOperationsClient()

```sql
public virtual Operations.OperationsClient CreateOperationsClient()
```
Creates a new instance of [Operations.OperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operations.OperationsClient.md.txt) using the same call invoker as
this client.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationsOperationsClient` | A new Operations client for the same target as this client. |

### NewInstance(ClientBaseConfiguration)

```sql
protected override AlloyDBCSQLAdmin.AlloyDBCSQLAdminClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
```
Creates a new instance of client from given `ClientBaseConfiguration`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `configuration` | `ClientBaseClientBaseConfiguration` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AlloyDBCSQLAdminAlloyDBCSQLAdminClient` |   |

**Overrides** Grpc.Core.ClientBase\<Google.Cloud.AlloyDb.V1.AlloyDBCSQLAdmin.AlloyDBCSQLAdminClient\>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

### RestoreFromCloudSQL(RestoreFromCloudSQLRequest, CallOptions)

```sql
public virtual Operation RestoreFromCloudSQL(RestoreFromCloudSQLRequest request, CallOptions options)
```
Restores an AlloyDB cluster from a CloudSQL resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `RestoreFromCloudSQLRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Operation` | The response received from the server. |

### RestoreFromCloudSQL(RestoreFromCloudSQLRequest, Metadata, DateTime?, CancellationToken)

```sql
public virtual Operation RestoreFromCloudSQL(RestoreFromCloudSQLRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
```
Restores an AlloyDB cluster from a CloudSQL resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `RestoreFromCloudSQLRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Operation` | The response received from the server. |

### RestoreFromCloudSQLAsync(RestoreFromCloudSQLRequest, CallOptions)

```sql
public virtual AsyncUnaryCall<Operation> RestoreFromCloudSQLAsync(RestoreFromCloudSQLRequest request, CallOptions options)
```
Restores an AlloyDB cluster from a CloudSQL resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `RestoreFromCloudSQLRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallOperation` | The call object. |

### RestoreFromCloudSQLAsync(RestoreFromCloudSQLRequest, Metadata, DateTime?, CancellationToken)

```sql
public virtual AsyncUnaryCall<Operation> RestoreFromCloudSQLAsync(RestoreFromCloudSQLRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
```
Restores an AlloyDB cluster from a CloudSQL resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `RestoreFromCloudSQLRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallOperation` | The call object. |