# Google Cloud Spanner Database Administration v1 API - Class DatabaseAdminClient (5.13.0-beta07)

5.13.0-beta07 5.13.0-beta06 5.12.0 (latest) 5.11.0 5.10.0 5.9.0 5.8.0 5.7.0 5.6.0 5.5.0 5.4.0 5.3.0 5.2.0 5.1.0 5.0.0 4.6.0 4.5.0 4.4.0 4.3.0 4.2.0 4.1.0 4.0.0 3.15.1 3.14.0 3.13.0 3.12.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0

    public abstract class DatabaseAdminClient

Reference documentation and code samples for the Google Cloud Spanner Database Administration v1 API class DatabaseAdminClient.

DatabaseAdmin client wrapper, for convenient use.

## Inheritance

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

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

[DatabaseAdminClientImpl](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.DatabaseAdminClientImpl)

## Namespace

[Google.Cloud.Spanner.Admin.Database.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1)

## Assembly

Google.Cloud.Spanner.Admin.Database.V1.dll

## Remarks

Cloud Spanner Database Admin API

The Cloud Spanner Database Admin API can be used to:

- create, drop, and list databases
- update the schema of pre-existing databases
- create, delete, copy and list backups for a database
- restore a database from an existing backup

## Properties

### CopyBackupOperationsClient

    public virtual OperationsClient CopyBackupOperationsClient { get; }

The long-running operations client for `CopyBackup`.

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

### CreateBackupOperationsClient

    public virtual OperationsClient CreateBackupOperationsClient { get; }

The long-running operations client for `CreateBackup`.

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

### CreateDatabaseOperationsClient

    public virtual OperationsClient CreateDatabaseOperationsClient { get; }

The long-running operations client for `CreateDatabase`.

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

### DefaultEndpoint

    public static string DefaultEndpoint { get; }

The default endpoint for the DatabaseAdmin service, which is a host of "spanner.googleapis.com" and a port
of 443.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### DefaultScopes

    public static IReadOnlyList<string> DefaultScopes { get; }

The default DatabaseAdmin scopes.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1https://learn.microsoft.com/dotnet/api/system.string` |   |

**Remarks** The default DatabaseAdmin scopes are:

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

### GrpcClient

    public virtual DatabaseAdmin.DatabaseAdminClient GrpcClient { get; }

The underlying gRPC DatabaseAdmin client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.DatabaseAdminhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.DatabaseAdmin.DatabaseAdminClient` |   |

### RestoreDatabaseOperationsClient

    public virtual OperationsClient RestoreDatabaseOperationsClient { get; }

The long-running operations client for `RestoreDatabase`.

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

### ServiceMetadata

    public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ServiceMetadata.html` |   |

### UpdateDatabaseDdlOperationsClient

    public virtual OperationsClient UpdateDatabaseDdlOperationsClient { get; }

The long-running operations client for `UpdateDatabaseDdl`.

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

### UpdateDatabaseOperationsClient

    public virtual OperationsClient UpdateDatabaseOperationsClient { get; }

The long-running operations client for `UpdateDatabase`.

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

## Methods

### AddSplitPoints(AddSplitPointsRequest, CallSettings)

    public virtual AddSplitPointsResponse AddSplitPoints(AddSplitPointsRequest request, CallSettings callSettings = null)

Adds split points to specified tables, indexes of a database.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.AddSplitPointsRequest` 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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.AddSplitPointsResponse` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    AddSplitPointsRequest request = new AddSplitPointsRequest
    {
        DatabaseAsDatabaseName = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]"),
        SplitPoints = { new SplitPoints(), },
        Initiator = "",
    };
    // Make the request
    AddSplitPointsResponse response = databaseAdminClient.AddSplitPoints(request);

### AddSplitPoints(DatabaseName, IEnumerable\<SplitPoints\>, CallSettings)

    public virtual AddSplitPointsResponse AddSplitPoints(DatabaseName database, IEnumerable<SplitPoints> splitPoints, CallSettings callSettings = null)

Adds split points to specified tables, indexes of a database.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `database` | `Google.Cloud.Spanner.Common.V1.DatabaseName` Required. The database on whose tables/indexes split points are to be added. Values are of the form `projects/<project>/instances/<instance>/databases/<database>`. |
| `splitPoints` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.SplitPoints` Required. The split points to add. |
| `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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.AddSplitPointsResponse` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    DatabaseName database = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]");
    IEnumerable<SplitPoints> splitPoints = new SplitPoints[] { new SplitPoints(), };
    // Make the request
    AddSplitPointsResponse response = databaseAdminClient.AddSplitPoints(database, splitPoints);

### AddSplitPoints(string, IEnumerable\<SplitPoints\>, CallSettings)

    public virtual AddSplitPointsResponse AddSplitPoints(string database, IEnumerable<SplitPoints> splitPoints, CallSettings callSettings = null)

Adds split points to specified tables, indexes of a database.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `database` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The database on whose tables/indexes split points are to be added. Values are of the form `projects/<project>/instances/<instance>/databases/<database>`. |
| `splitPoints` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.SplitPoints` Required. The split points to add. |
| `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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.AddSplitPointsResponse` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    string database = "projects/[PROJECT]/instances/[INSTANCE]/databases/[DATABASE]";
    IEnumerable<SplitPoints> splitPoints = new SplitPoints[] { new SplitPoints(), };
    // Make the request
    AddSplitPointsResponse response = databaseAdminClient.AddSplitPoints(database, splitPoints);

### AddSplitPointsAsync(AddSplitPointsRequest, CallSettings)

    public virtual Task<AddSplitPointsResponse> AddSplitPointsAsync(AddSplitPointsRequest request, CallSettings callSettings = null)

Adds split points to specified tables, indexes of a database.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.AddSplitPointsRequest` 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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.AddSplitPointsResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    AddSplitPointsRequest request = new AddSplitPointsRequest
    {
        DatabaseAsDatabaseName = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]"),
        SplitPoints = { new SplitPoints(), },
        Initiator = "",
    };
    // Make the request
    AddSplitPointsResponse response = await databaseAdminClient.AddSplitPointsAsync(request);

### AddSplitPointsAsync(AddSplitPointsRequest, CancellationToken)

    public virtual Task<AddSplitPointsResponse> AddSplitPointsAsync(AddSplitPointsRequest request, CancellationToken cancellationToken)

Adds split points to specified tables, indexes of a database.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.AddSplitPointsRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.AddSplitPointsResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    AddSplitPointsRequest request = new AddSplitPointsRequest
    {
        DatabaseAsDatabaseName = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]"),
        SplitPoints = { new SplitPoints(), },
        Initiator = "",
    };
    // Make the request
    AddSplitPointsResponse response = await databaseAdminClient.AddSplitPointsAsync(request);

### AddSplitPointsAsync(DatabaseName, IEnumerable\<SplitPoints\>, CallSettings)

    public virtual Task<AddSplitPointsResponse> AddSplitPointsAsync(DatabaseName database, IEnumerable<SplitPoints> splitPoints, CallSettings callSettings = null)

Adds split points to specified tables, indexes of a database.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `database` | `Google.Cloud.Spanner.Common.V1.DatabaseName` Required. The database on whose tables/indexes split points are to be added. Values are of the form `projects/<project>/instances/<instance>/databases/<database>`. |
| `splitPoints` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.SplitPoints` Required. The split points to add. |
| `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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.AddSplitPointsResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    DatabaseName database = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]");
    IEnumerable<SplitPoints> splitPoints = new SplitPoints[] { new SplitPoints(), };
    // Make the request
    AddSplitPointsResponse response = await databaseAdminClient.AddSplitPointsAsync(database, splitPoints);

### AddSplitPointsAsync(DatabaseName, IEnumerable\<SplitPoints\>, CancellationToken)

    public virtual Task<AddSplitPointsResponse> AddSplitPointsAsync(DatabaseName database, IEnumerable<SplitPoints> splitPoints, CancellationToken cancellationToken)

Adds split points to specified tables, indexes of a database.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `database` | `Google.Cloud.Spanner.Common.V1.DatabaseName` Required. The database on whose tables/indexes split points are to be added. Values are of the form `projects/<project>/instances/<instance>/databases/<database>`. |
| `splitPoints` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.SplitPoints` Required. The split points to add. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.AddSplitPointsResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    DatabaseName database = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]");
    IEnumerable<SplitPoints> splitPoints = new SplitPoints[] { new SplitPoints(), };
    // Make the request
    AddSplitPointsResponse response = await databaseAdminClient.AddSplitPointsAsync(database, splitPoints);

### AddSplitPointsAsync(string, IEnumerable\<SplitPoints\>, CallSettings)

    public virtual Task<AddSplitPointsResponse> AddSplitPointsAsync(string database, IEnumerable<SplitPoints> splitPoints, CallSettings callSettings = null)

Adds split points to specified tables, indexes of a database.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `database` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The database on whose tables/indexes split points are to be added. Values are of the form `projects/<project>/instances/<instance>/databases/<database>`. |
| `splitPoints` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.SplitPoints` Required. The split points to add. |
| `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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.AddSplitPointsResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string database = "projects/[PROJECT]/instances/[INSTANCE]/databases/[DATABASE]";
    IEnumerable<SplitPoints> splitPoints = new SplitPoints[] { new SplitPoints(), };
    // Make the request
    AddSplitPointsResponse response = await databaseAdminClient.AddSplitPointsAsync(database, splitPoints);

### AddSplitPointsAsync(string, IEnumerable\<SplitPoints\>, CancellationToken)

    public virtual Task<AddSplitPointsResponse> AddSplitPointsAsync(string database, IEnumerable<SplitPoints> splitPoints, CancellationToken cancellationToken)

Adds split points to specified tables, indexes of a database.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `database` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The database on whose tables/indexes split points are to be added. Values are of the form `projects/<project>/instances/<instance>/databases/<database>`. |
| `splitPoints` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.SplitPoints` Required. The split points to add. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.AddSplitPointsResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string database = "projects/[PROJECT]/instances/[INSTANCE]/databases/[DATABASE]";
    IEnumerable<SplitPoints> splitPoints = new SplitPoints[] { new SplitPoints(), };
    // Make the request
    AddSplitPointsResponse response = await databaseAdminClient.AddSplitPointsAsync(database, splitPoints);

### CopyBackup(CopyBackupRequest, CallSettings)

    public virtual Operation<Backup, CopyBackupMetadata> CopyBackup(CopyBackupRequest request, CallSettings callSettings = null)

Starts copying a Cloud Spanner Backup.
The returned backup \[long-running operation\]\[google.longrunning.Operation\]
will have a name of the format
`projects/<project>/instances/<instance>/backups/<backup>/operations/<operation_id>`
and can be used to track copying of the backup. The operation is associated
with the destination backup.
The \[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[CopyBackupMetadata\]\[google.spanner.admin.database.v1.CopyBackupMetadata\].
The \[response\]\[google.longrunning.Operation.response\] field type is
\[Backup\]\[google.spanner.admin.database.v1.Backup\], if successful.
Cancelling the returned operation will stop the copying and delete the
destination backup. Concurrent CopyBackup requests can run on the same
source backup.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CopyBackupRequest` 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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backuphttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CopyBackupMetadata` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    CopyBackupRequest request = new CopyBackupRequest
    {
        ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"),
        BackupId = "",
        SourceBackupAsBackupName = BackupName.FromProjectInstanceBackup("[PROJECT]", "[INSTANCE]", "[BACKUP]"),
        ExpireTime = new Timestamp(),
        EncryptionConfig = new CopyBackupEncryptionConfig(),
    };
    // Make the request
    Operation<Backup, CopyBackupMetadata> response = databaseAdminClient.CopyBackup(request);

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

### CopyBackup(InstanceName, string, BackupName, Timestamp, CallSettings)

    public virtual Operation<Backup, CopyBackupMetadata> CopyBackup(InstanceName parent, string backupId, BackupName sourceBackup, Timestamp expireTime, CallSettings callSettings = null)

Starts copying a Cloud Spanner Backup.
The returned backup \[long-running operation\]\[google.longrunning.Operation\]
will have a name of the format
`projects/<project>/instances/<instance>/backups/<backup>/operations/<operation_id>`
and can be used to track copying of the backup. The operation is associated
with the destination backup.
The \[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[CopyBackupMetadata\]\[google.spanner.admin.database.v1.CopyBackupMetadata\].
The \[response\]\[google.longrunning.Operation.response\] field type is
\[Backup\]\[google.spanner.admin.database.v1.Backup\], if successful.
Cancelling the returned operation will stop the copying and delete the
destination backup. Concurrent CopyBackup requests can run on the same
source backup.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `Google.Cloud.Spanner.Common.V1.InstanceName` Required. The name of the destination instance that will contain the backup copy. Values are of the form: `projects/<project>/instances/<instance>`. |
| `backupId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The id of the backup copy. The `backup_id` appended to `parent` forms the full backup_uri of the form `projects/<project>/instances/<instance>/backups/<backup>`. |
| `sourceBackup` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupName` Required. The source backup to be copied. The source backup needs to be in READY state for it to be copied. Once CopyBackup is in progress, the source backup cannot be deleted or cleaned up on expiration until CopyBackup is finished. Values are of the form: `projects/<project>/instances/<instance>/backups/<backup>`. |
| `expireTime` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` Required. The expiration time of the backup in microsecond granularity. The expiration time must be at least 6 hours and at most 366 days from the `create_time` of the source backup. Once the `expire_time` has passed, the backup is eligible to be automatically deleted by Cloud Spanner to free the resources used by the backup. |
| `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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backuphttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CopyBackupMetadata` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]");
    string backupId = "";
    BackupName sourceBackup = BackupName.FromProjectInstanceBackup("[PROJECT]", "[INSTANCE]", "[BACKUP]");
    Timestamp expireTime = new Timestamp();
    // Make the request
    Operation<Backup, CopyBackupMetadata> response = databaseAdminClient.CopyBackup(parent, backupId, sourceBackup, expireTime);

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

### CopyBackup(string, string, string, Timestamp, CallSettings)

    public virtual Operation<Backup, CopyBackupMetadata> CopyBackup(string parent, string backupId, string sourceBackup, Timestamp expireTime, CallSettings callSettings = null)

Starts copying a Cloud Spanner Backup.
The returned backup \[long-running operation\]\[google.longrunning.Operation\]
will have a name of the format
`projects/<project>/instances/<instance>/backups/<backup>/operations/<operation_id>`
and can be used to track copying of the backup. The operation is associated
with the destination backup.
The \[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[CopyBackupMetadata\]\[google.spanner.admin.database.v1.CopyBackupMetadata\].
The \[response\]\[google.longrunning.Operation.response\] field type is
\[Backup\]\[google.spanner.admin.database.v1.Backup\], if successful.
Cancelling the returned operation will stop the copying and delete the
destination backup. Concurrent CopyBackup requests can run on the same
source backup.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the destination instance that will contain the backup copy. Values are of the form: `projects/<project>/instances/<instance>`. |
| `backupId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The id of the backup copy. The `backup_id` appended to `parent` forms the full backup_uri of the form `projects/<project>/instances/<instance>/backups/<backup>`. |
| `sourceBackup` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The source backup to be copied. The source backup needs to be in READY state for it to be copied. Once CopyBackup is in progress, the source backup cannot be deleted or cleaned up on expiration until CopyBackup is finished. Values are of the form: `projects/<project>/instances/<instance>/backups/<backup>`. |
| `expireTime` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` Required. The expiration time of the backup in microsecond granularity. The expiration time must be at least 6 hours and at most 366 days from the `create_time` of the source backup. Once the `expire_time` has passed, the backup is eligible to be automatically deleted by Cloud Spanner to free the resources used by the backup. |
| `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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backuphttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CopyBackupMetadata` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/instances/[INSTANCE]";
    string backupId = "";
    string sourceBackup = "projects/[PROJECT]/instances/[INSTANCE]/backups/[BACKUP]";
    Timestamp expireTime = new Timestamp();
    // Make the request
    Operation<Backup, CopyBackupMetadata> response = databaseAdminClient.CopyBackup(parent, backupId, sourceBackup, expireTime);

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

### CopyBackupAsync(CopyBackupRequest, CallSettings)

    public virtual Task<Operation<Backup, CopyBackupMetadata>> CopyBackupAsync(CopyBackupRequest request, CallSettings callSettings = null)

Starts copying a Cloud Spanner Backup.
The returned backup \[long-running operation\]\[google.longrunning.Operation\]
will have a name of the format
`projects/<project>/instances/<instance>/backups/<backup>/operations/<operation_id>`
and can be used to track copying of the backup. The operation is associated
with the destination backup.
The \[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[CopyBackupMetadata\]\[google.spanner.admin.database.v1.CopyBackupMetadata\].
The \[response\]\[google.longrunning.Operation.response\] field type is
\[Backup\]\[google.spanner.admin.database.v1.Backup\], if successful.
Cancelling the returned operation will stop the copying and delete the
destination backup. Concurrent CopyBackup requests can run on the same
source backup.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CopyBackupRequest` 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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backuphttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CopyBackupMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    CopyBackupRequest request = new CopyBackupRequest
    {
        ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"),
        BackupId = "",
        SourceBackupAsBackupName = BackupName.FromProjectInstanceBackup("[PROJECT]", "[INSTANCE]", "[BACKUP]"),
        ExpireTime = new Timestamp(),
        EncryptionConfig = new CopyBackupEncryptionConfig(),
    };
    // Make the request
    Operation<Backup, CopyBackupMetadata> response = await databaseAdminClient.CopyBackupAsync(request);

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

### CopyBackupAsync(CopyBackupRequest, CancellationToken)

    public virtual Task<Operation<Backup, CopyBackupMetadata>> CopyBackupAsync(CopyBackupRequest request, CancellationToken cancellationToken)

Starts copying a Cloud Spanner Backup.
The returned backup \[long-running operation\]\[google.longrunning.Operation\]
will have a name of the format
`projects/<project>/instances/<instance>/backups/<backup>/operations/<operation_id>`
and can be used to track copying of the backup. The operation is associated
with the destination backup.
The \[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[CopyBackupMetadata\]\[google.spanner.admin.database.v1.CopyBackupMetadata\].
The \[response\]\[google.longrunning.Operation.response\] field type is
\[Backup\]\[google.spanner.admin.database.v1.Backup\], if successful.
Cancelling the returned operation will stop the copying and delete the
destination backup. Concurrent CopyBackup requests can run on the same
source backup.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CopyBackupRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backuphttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CopyBackupMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    CopyBackupRequest request = new CopyBackupRequest
    {
        ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"),
        BackupId = "",
        SourceBackupAsBackupName = BackupName.FromProjectInstanceBackup("[PROJECT]", "[INSTANCE]", "[BACKUP]"),
        ExpireTime = new Timestamp(),
        EncryptionConfig = new CopyBackupEncryptionConfig(),
    };
    // Make the request
    Operation<Backup, CopyBackupMetadata> response = await databaseAdminClient.CopyBackupAsync(request);

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

### CopyBackupAsync(InstanceName, string, BackupName, Timestamp, CallSettings)

    public virtual Task<Operation<Backup, CopyBackupMetadata>> CopyBackupAsync(InstanceName parent, string backupId, BackupName sourceBackup, Timestamp expireTime, CallSettings callSettings = null)

Starts copying a Cloud Spanner Backup.
The returned backup \[long-running operation\]\[google.longrunning.Operation\]
will have a name of the format
`projects/<project>/instances/<instance>/backups/<backup>/operations/<operation_id>`
and can be used to track copying of the backup. The operation is associated
with the destination backup.
The \[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[CopyBackupMetadata\]\[google.spanner.admin.database.v1.CopyBackupMetadata\].
The \[response\]\[google.longrunning.Operation.response\] field type is
\[Backup\]\[google.spanner.admin.database.v1.Backup\], if successful.
Cancelling the returned operation will stop the copying and delete the
destination backup. Concurrent CopyBackup requests can run on the same
source backup.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `Google.Cloud.Spanner.Common.V1.InstanceName` Required. The name of the destination instance that will contain the backup copy. Values are of the form: `projects/<project>/instances/<instance>`. |
| `backupId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The id of the backup copy. The `backup_id` appended to `parent` forms the full backup_uri of the form `projects/<project>/instances/<instance>/backups/<backup>`. |
| `sourceBackup` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupName` Required. The source backup to be copied. The source backup needs to be in READY state for it to be copied. Once CopyBackup is in progress, the source backup cannot be deleted or cleaned up on expiration until CopyBackup is finished. Values are of the form: `projects/<project>/instances/<instance>/backups/<backup>`. |
| `expireTime` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` Required. The expiration time of the backup in microsecond granularity. The expiration time must be at least 6 hours and at most 366 days from the `create_time` of the source backup. Once the `expire_time` has passed, the backup is eligible to be automatically deleted by Cloud Spanner to free the resources used by the backup. |
| `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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backuphttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CopyBackupMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]");
    string backupId = "";
    BackupName sourceBackup = BackupName.FromProjectInstanceBackup("[PROJECT]", "[INSTANCE]", "[BACKUP]");
    Timestamp expireTime = new Timestamp();
    // Make the request
    Operation<Backup, CopyBackupMetadata> response = await databaseAdminClient.CopyBackupAsync(parent, backupId, sourceBackup, expireTime);

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

### CopyBackupAsync(InstanceName, string, BackupName, Timestamp, CancellationToken)

    public virtual Task<Operation<Backup, CopyBackupMetadata>> CopyBackupAsync(InstanceName parent, string backupId, BackupName sourceBackup, Timestamp expireTime, CancellationToken cancellationToken)

Starts copying a Cloud Spanner Backup.
The returned backup \[long-running operation\]\[google.longrunning.Operation\]
will have a name of the format
`projects/<project>/instances/<instance>/backups/<backup>/operations/<operation_id>`
and can be used to track copying of the backup. The operation is associated
with the destination backup.
The \[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[CopyBackupMetadata\]\[google.spanner.admin.database.v1.CopyBackupMetadata\].
The \[response\]\[google.longrunning.Operation.response\] field type is
\[Backup\]\[google.spanner.admin.database.v1.Backup\], if successful.
Cancelling the returned operation will stop the copying and delete the
destination backup. Concurrent CopyBackup requests can run on the same
source backup.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `Google.Cloud.Spanner.Common.V1.InstanceName` Required. The name of the destination instance that will contain the backup copy. Values are of the form: `projects/<project>/instances/<instance>`. |
| `backupId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The id of the backup copy. The `backup_id` appended to `parent` forms the full backup_uri of the form `projects/<project>/instances/<instance>/backups/<backup>`. |
| `sourceBackup` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupName` Required. The source backup to be copied. The source backup needs to be in READY state for it to be copied. Once CopyBackup is in progress, the source backup cannot be deleted or cleaned up on expiration until CopyBackup is finished. Values are of the form: `projects/<project>/instances/<instance>/backups/<backup>`. |
| `expireTime` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` Required. The expiration time of the backup in microsecond granularity. The expiration time must be at least 6 hours and at most 366 days from the `create_time` of the source backup. Once the `expire_time` has passed, the backup is eligible to be automatically deleted by Cloud Spanner to free the resources used by the backup. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backuphttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CopyBackupMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]");
    string backupId = "";
    BackupName sourceBackup = BackupName.FromProjectInstanceBackup("[PROJECT]", "[INSTANCE]", "[BACKUP]");
    Timestamp expireTime = new Timestamp();
    // Make the request
    Operation<Backup, CopyBackupMetadata> response = await databaseAdminClient.CopyBackupAsync(parent, backupId, sourceBackup, expireTime);

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

### CopyBackupAsync(string, string, string, Timestamp, CallSettings)

    public virtual Task<Operation<Backup, CopyBackupMetadata>> CopyBackupAsync(string parent, string backupId, string sourceBackup, Timestamp expireTime, CallSettings callSettings = null)

Starts copying a Cloud Spanner Backup.
The returned backup \[long-running operation\]\[google.longrunning.Operation\]
will have a name of the format
`projects/<project>/instances/<instance>/backups/<backup>/operations/<operation_id>`
and can be used to track copying of the backup. The operation is associated
with the destination backup.
The \[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[CopyBackupMetadata\]\[google.spanner.admin.database.v1.CopyBackupMetadata\].
The \[response\]\[google.longrunning.Operation.response\] field type is
\[Backup\]\[google.spanner.admin.database.v1.Backup\], if successful.
Cancelling the returned operation will stop the copying and delete the
destination backup. Concurrent CopyBackup requests can run on the same
source backup.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the destination instance that will contain the backup copy. Values are of the form: `projects/<project>/instances/<instance>`. |
| `backupId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The id of the backup copy. The `backup_id` appended to `parent` forms the full backup_uri of the form `projects/<project>/instances/<instance>/backups/<backup>`. |
| `sourceBackup` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The source backup to be copied. The source backup needs to be in READY state for it to be copied. Once CopyBackup is in progress, the source backup cannot be deleted or cleaned up on expiration until CopyBackup is finished. Values are of the form: `projects/<project>/instances/<instance>/backups/<backup>`. |
| `expireTime` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` Required. The expiration time of the backup in microsecond granularity. The expiration time must be at least 6 hours and at most 366 days from the `create_time` of the source backup. Once the `expire_time` has passed, the backup is eligible to be automatically deleted by Cloud Spanner to free the resources used by the backup. |
| `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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backuphttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CopyBackupMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/instances/[INSTANCE]";
    string backupId = "";
    string sourceBackup = "projects/[PROJECT]/instances/[INSTANCE]/backups/[BACKUP]";
    Timestamp expireTime = new Timestamp();
    // Make the request
    Operation<Backup, CopyBackupMetadata> response = await databaseAdminClient.CopyBackupAsync(parent, backupId, sourceBackup, expireTime);

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

### CopyBackupAsync(string, string, string, Timestamp, CancellationToken)

    public virtual Task<Operation<Backup, CopyBackupMetadata>> CopyBackupAsync(string parent, string backupId, string sourceBackup, Timestamp expireTime, CancellationToken cancellationToken)

Starts copying a Cloud Spanner Backup.
The returned backup \[long-running operation\]\[google.longrunning.Operation\]
will have a name of the format
`projects/<project>/instances/<instance>/backups/<backup>/operations/<operation_id>`
and can be used to track copying of the backup. The operation is associated
with the destination backup.
The \[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[CopyBackupMetadata\]\[google.spanner.admin.database.v1.CopyBackupMetadata\].
The \[response\]\[google.longrunning.Operation.response\] field type is
\[Backup\]\[google.spanner.admin.database.v1.Backup\], if successful.
Cancelling the returned operation will stop the copying and delete the
destination backup. Concurrent CopyBackup requests can run on the same
source backup.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the destination instance that will contain the backup copy. Values are of the form: `projects/<project>/instances/<instance>`. |
| `backupId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The id of the backup copy. The `backup_id` appended to `parent` forms the full backup_uri of the form `projects/<project>/instances/<instance>/backups/<backup>`. |
| `sourceBackup` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The source backup to be copied. The source backup needs to be in READY state for it to be copied. Once CopyBackup is in progress, the source backup cannot be deleted or cleaned up on expiration until CopyBackup is finished. Values are of the form: `projects/<project>/instances/<instance>/backups/<backup>`. |
| `expireTime` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` Required. The expiration time of the backup in microsecond granularity. The expiration time must be at least 6 hours and at most 366 days from the `create_time` of the source backup. Once the `expire_time` has passed, the backup is eligible to be automatically deleted by Cloud Spanner to free the resources used by the backup. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backuphttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CopyBackupMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/instances/[INSTANCE]";
    string backupId = "";
    string sourceBackup = "projects/[PROJECT]/instances/[INSTANCE]/backups/[BACKUP]";
    Timestamp expireTime = new Timestamp();
    // Make the request
    Operation<Backup, CopyBackupMetadata> response = await databaseAdminClient.CopyBackupAsync(parent, backupId, sourceBackup, expireTime);

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

### Create()

    public static DatabaseAdminClient Create()

Synchronously creates a [DatabaseAdminClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.DatabaseAdminClient) using the default credentials, endpoint and
settings. To specify custom credentials or other settings, use [DatabaseAdminClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.DatabaseAdminClientBuilder).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.DatabaseAdminClient` | The created [DatabaseAdminClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.DatabaseAdminClient). |

### CreateAsync(CancellationToken)

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

Asynchronously creates a [DatabaseAdminClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.DatabaseAdminClient) using the default credentials, endpoint and
settings. To specify custom credentials or other settings, use [DatabaseAdminClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.DatabaseAdminClientBuilder).

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.DatabaseAdminClient` | The task representing the created [DatabaseAdminClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.DatabaseAdminClient). |

### CreateBackup(CreateBackupRequest, CallSettings)

    public virtual Operation<Backup, CreateBackupMetadata> CreateBackup(CreateBackupRequest request, CallSettings callSettings = null)

Starts creating a new Cloud Spanner Backup.
The returned backup \[long-running operation\]\[google.longrunning.Operation\]
will have a name of the format
`projects/<project>/instances/<instance>/backups/<backup>/operations/<operation_id>`
and can be used to track creation of the backup. The
\[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[CreateBackupMetadata\]\[google.spanner.admin.database.v1.CreateBackupMetadata\].
The \[response\]\[google.longrunning.Operation.response\] field type is
\[Backup\]\[google.spanner.admin.database.v1.Backup\], if successful.
Cancelling the returned operation will stop the creation and delete the
backup. There can be only one pending backup creation per database. Backup
creation of different databases can run concurrently.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CreateBackupRequest` 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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backuphttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CreateBackupMetadata` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    CreateBackupRequest request = new CreateBackupRequest
    {
        ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"),
        BackupId = "",
        Backup = new Backup(),
        EncryptionConfig = new CreateBackupEncryptionConfig(),
    };
    // Make the request
    Operation<Backup, CreateBackupMetadata> response = databaseAdminClient.CreateBackup(request);

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

### CreateBackup(InstanceName, Backup, string, CallSettings)

    public virtual Operation<Backup, CreateBackupMetadata> CreateBackup(InstanceName parent, Backup backup, string backupId, CallSettings callSettings = null)

Starts creating a new Cloud Spanner Backup.
The returned backup \[long-running operation\]\[google.longrunning.Operation\]
will have a name of the format
`projects/<project>/instances/<instance>/backups/<backup>/operations/<operation_id>`
and can be used to track creation of the backup. The
\[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[CreateBackupMetadata\]\[google.spanner.admin.database.v1.CreateBackupMetadata\].
The \[response\]\[google.longrunning.Operation.response\] field type is
\[Backup\]\[google.spanner.admin.database.v1.Backup\], if successful.
Cancelling the returned operation will stop the creation and delete the
backup. There can be only one pending backup creation per database. Backup
creation of different databases can run concurrently.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `Google.Cloud.Spanner.Common.V1.InstanceName` Required. The name of the instance in which the backup will be created. This must be the same instance that contains the database the backup will be created from. The backup will be stored in the location(s) specified in the instance configuration of this instance. Values are of the form `projects/<project>/instances/<instance>`. |
| `backup` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backup` Required. The backup to create. |
| `backupId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The id of the backup to be created. The `backup_id` appended to `parent` forms the full backup name of the form `projects/<project>/instances/<instance>/backups/<backup_id>`. |
| `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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backuphttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CreateBackupMetadata` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]");
    Backup backup = new Backup();
    string backupId = "";
    // Make the request
    Operation<Backup, CreateBackupMetadata> response = databaseAdminClient.CreateBackup(parent, backup, backupId);

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

### CreateBackup(string, Backup, string, CallSettings)

    public virtual Operation<Backup, CreateBackupMetadata> CreateBackup(string parent, Backup backup, string backupId, CallSettings callSettings = null)

Starts creating a new Cloud Spanner Backup.
The returned backup \[long-running operation\]\[google.longrunning.Operation\]
will have a name of the format
`projects/<project>/instances/<instance>/backups/<backup>/operations/<operation_id>`
and can be used to track creation of the backup. The
\[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[CreateBackupMetadata\]\[google.spanner.admin.database.v1.CreateBackupMetadata\].
The \[response\]\[google.longrunning.Operation.response\] field type is
\[Backup\]\[google.spanner.admin.database.v1.Backup\], if successful.
Cancelling the returned operation will stop the creation and delete the
backup. There can be only one pending backup creation per database. Backup
creation of different databases can run concurrently.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the instance in which the backup will be created. This must be the same instance that contains the database the backup will be created from. The backup will be stored in the location(s) specified in the instance configuration of this instance. Values are of the form `projects/<project>/instances/<instance>`. |
| `backup` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backup` Required. The backup to create. |
| `backupId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The id of the backup to be created. The `backup_id` appended to `parent` forms the full backup name of the form `projects/<project>/instances/<instance>/backups/<backup_id>`. |
| `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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backuphttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CreateBackupMetadata` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/instances/[INSTANCE]";
    Backup backup = new Backup();
    string backupId = "";
    // Make the request
    Operation<Backup, CreateBackupMetadata> response = databaseAdminClient.CreateBackup(parent, backup, backupId);

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

### CreateBackupAsync(CreateBackupRequest, CallSettings)

    public virtual Task<Operation<Backup, CreateBackupMetadata>> CreateBackupAsync(CreateBackupRequest request, CallSettings callSettings = null)

Starts creating a new Cloud Spanner Backup.
The returned backup \[long-running operation\]\[google.longrunning.Operation\]
will have a name of the format
`projects/<project>/instances/<instance>/backups/<backup>/operations/<operation_id>`
and can be used to track creation of the backup. The
\[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[CreateBackupMetadata\]\[google.spanner.admin.database.v1.CreateBackupMetadata\].
The \[response\]\[google.longrunning.Operation.response\] field type is
\[Backup\]\[google.spanner.admin.database.v1.Backup\], if successful.
Cancelling the returned operation will stop the creation and delete the
backup. There can be only one pending backup creation per database. Backup
creation of different databases can run concurrently.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CreateBackupRequest` 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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backuphttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CreateBackupMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    CreateBackupRequest request = new CreateBackupRequest
    {
        ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"),
        BackupId = "",
        Backup = new Backup(),
        EncryptionConfig = new CreateBackupEncryptionConfig(),
    };
    // Make the request
    Operation<Backup, CreateBackupMetadata> response = await databaseAdminClient.CreateBackupAsync(request);

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

### CreateBackupAsync(CreateBackupRequest, CancellationToken)

    public virtual Task<Operation<Backup, CreateBackupMetadata>> CreateBackupAsync(CreateBackupRequest request, CancellationToken cancellationToken)

Starts creating a new Cloud Spanner Backup.
The returned backup \[long-running operation\]\[google.longrunning.Operation\]
will have a name of the format
`projects/<project>/instances/<instance>/backups/<backup>/operations/<operation_id>`
and can be used to track creation of the backup. The
\[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[CreateBackupMetadata\]\[google.spanner.admin.database.v1.CreateBackupMetadata\].
The \[response\]\[google.longrunning.Operation.response\] field type is
\[Backup\]\[google.spanner.admin.database.v1.Backup\], if successful.
Cancelling the returned operation will stop the creation and delete the
backup. There can be only one pending backup creation per database. Backup
creation of different databases can run concurrently.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CreateBackupRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backuphttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CreateBackupMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    CreateBackupRequest request = new CreateBackupRequest
    {
        ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"),
        BackupId = "",
        Backup = new Backup(),
        EncryptionConfig = new CreateBackupEncryptionConfig(),
    };
    // Make the request
    Operation<Backup, CreateBackupMetadata> response = await databaseAdminClient.CreateBackupAsync(request);

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

### CreateBackupAsync(InstanceName, Backup, string, CallSettings)

    public virtual Task<Operation<Backup, CreateBackupMetadata>> CreateBackupAsync(InstanceName parent, Backup backup, string backupId, CallSettings callSettings = null)

Starts creating a new Cloud Spanner Backup.
The returned backup \[long-running operation\]\[google.longrunning.Operation\]
will have a name of the format
`projects/<project>/instances/<instance>/backups/<backup>/operations/<operation_id>`
and can be used to track creation of the backup. The
\[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[CreateBackupMetadata\]\[google.spanner.admin.database.v1.CreateBackupMetadata\].
The \[response\]\[google.longrunning.Operation.response\] field type is
\[Backup\]\[google.spanner.admin.database.v1.Backup\], if successful.
Cancelling the returned operation will stop the creation and delete the
backup. There can be only one pending backup creation per database. Backup
creation of different databases can run concurrently.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `Google.Cloud.Spanner.Common.V1.InstanceName` Required. The name of the instance in which the backup will be created. This must be the same instance that contains the database the backup will be created from. The backup will be stored in the location(s) specified in the instance configuration of this instance. Values are of the form `projects/<project>/instances/<instance>`. |
| `backup` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backup` Required. The backup to create. |
| `backupId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The id of the backup to be created. The `backup_id` appended to `parent` forms the full backup name of the form `projects/<project>/instances/<instance>/backups/<backup_id>`. |
| `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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backuphttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CreateBackupMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]");
    Backup backup = new Backup();
    string backupId = "";
    // Make the request
    Operation<Backup, CreateBackupMetadata> response = await databaseAdminClient.CreateBackupAsync(parent, backup, backupId);

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

### CreateBackupAsync(InstanceName, Backup, string, CancellationToken)

    public virtual Task<Operation<Backup, CreateBackupMetadata>> CreateBackupAsync(InstanceName parent, Backup backup, string backupId, CancellationToken cancellationToken)

Starts creating a new Cloud Spanner Backup.
The returned backup \[long-running operation\]\[google.longrunning.Operation\]
will have a name of the format
`projects/<project>/instances/<instance>/backups/<backup>/operations/<operation_id>`
and can be used to track creation of the backup. The
\[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[CreateBackupMetadata\]\[google.spanner.admin.database.v1.CreateBackupMetadata\].
The \[response\]\[google.longrunning.Operation.response\] field type is
\[Backup\]\[google.spanner.admin.database.v1.Backup\], if successful.
Cancelling the returned operation will stop the creation and delete the
backup. There can be only one pending backup creation per database. Backup
creation of different databases can run concurrently.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `Google.Cloud.Spanner.Common.V1.InstanceName` Required. The name of the instance in which the backup will be created. This must be the same instance that contains the database the backup will be created from. The backup will be stored in the location(s) specified in the instance configuration of this instance. Values are of the form `projects/<project>/instances/<instance>`. |
| `backup` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backup` Required. The backup to create. |
| `backupId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The id of the backup to be created. The `backup_id` appended to `parent` forms the full backup name of the form `projects/<project>/instances/<instance>/backups/<backup_id>`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backuphttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CreateBackupMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]");
    Backup backup = new Backup();
    string backupId = "";
    // Make the request
    Operation<Backup, CreateBackupMetadata> response = await databaseAdminClient.CreateBackupAsync(parent, backup, backupId);

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

### CreateBackupAsync(string, Backup, string, CallSettings)

    public virtual Task<Operation<Backup, CreateBackupMetadata>> CreateBackupAsync(string parent, Backup backup, string backupId, CallSettings callSettings = null)

Starts creating a new Cloud Spanner Backup.
The returned backup \[long-running operation\]\[google.longrunning.Operation\]
will have a name of the format
`projects/<project>/instances/<instance>/backups/<backup>/operations/<operation_id>`
and can be used to track creation of the backup. The
\[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[CreateBackupMetadata\]\[google.spanner.admin.database.v1.CreateBackupMetadata\].
The \[response\]\[google.longrunning.Operation.response\] field type is
\[Backup\]\[google.spanner.admin.database.v1.Backup\], if successful.
Cancelling the returned operation will stop the creation and delete the
backup. There can be only one pending backup creation per database. Backup
creation of different databases can run concurrently.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the instance in which the backup will be created. This must be the same instance that contains the database the backup will be created from. The backup will be stored in the location(s) specified in the instance configuration of this instance. Values are of the form `projects/<project>/instances/<instance>`. |
| `backup` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backup` Required. The backup to create. |
| `backupId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The id of the backup to be created. The `backup_id` appended to `parent` forms the full backup name of the form `projects/<project>/instances/<instance>/backups/<backup_id>`. |
| `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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backuphttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CreateBackupMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/instances/[INSTANCE]";
    Backup backup = new Backup();
    string backupId = "";
    // Make the request
    Operation<Backup, CreateBackupMetadata> response = await databaseAdminClient.CreateBackupAsync(parent, backup, backupId);

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

### CreateBackupAsync(string, Backup, string, CancellationToken)

    public virtual Task<Operation<Backup, CreateBackupMetadata>> CreateBackupAsync(string parent, Backup backup, string backupId, CancellationToken cancellationToken)

Starts creating a new Cloud Spanner Backup.
The returned backup \[long-running operation\]\[google.longrunning.Operation\]
will have a name of the format
`projects/<project>/instances/<instance>/backups/<backup>/operations/<operation_id>`
and can be used to track creation of the backup. The
\[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[CreateBackupMetadata\]\[google.spanner.admin.database.v1.CreateBackupMetadata\].
The \[response\]\[google.longrunning.Operation.response\] field type is
\[Backup\]\[google.spanner.admin.database.v1.Backup\], if successful.
Cancelling the returned operation will stop the creation and delete the
backup. There can be only one pending backup creation per database. Backup
creation of different databases can run concurrently.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the instance in which the backup will be created. This must be the same instance that contains the database the backup will be created from. The backup will be stored in the location(s) specified in the instance configuration of this instance. Values are of the form `projects/<project>/instances/<instance>`. |
| `backup` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backup` Required. The backup to create. |
| `backupId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The id of the backup to be created. The `backup_id` appended to `parent` forms the full backup name of the form `projects/<project>/instances/<instance>/backups/<backup_id>`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backuphttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CreateBackupMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/instances/[INSTANCE]";
    Backup backup = new Backup();
    string backupId = "";
    // Make the request
    Operation<Backup, CreateBackupMetadata> response = await databaseAdminClient.CreateBackupAsync(parent, backup, backupId);

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

### CreateBackupSchedule(CreateBackupScheduleRequest, CallSettings)

    public virtual BackupSchedule CreateBackupSchedule(CreateBackupScheduleRequest request, CallSettings callSettings = null)

Creates a new backup schedule.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CreateBackupScheduleRequest` 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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    CreateBackupScheduleRequest request = new CreateBackupScheduleRequest
    {
        ParentAsDatabaseName = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]"),
        BackupScheduleId = "",
        BackupSchedule = new BackupSchedule(),
    };
    // Make the request
    BackupSchedule response = databaseAdminClient.CreateBackupSchedule(request);

### CreateBackupSchedule(DatabaseName, BackupSchedule, string, CallSettings)

    public virtual BackupSchedule CreateBackupSchedule(DatabaseName parent, BackupSchedule backupSchedule, string backupScheduleId, CallSettings callSettings = null)

Creates a new backup schedule.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `Google.Cloud.Spanner.Common.V1.DatabaseName` Required. The name of the database that this backup schedule applies to. |
| `backupSchedule` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule` Required. The backup schedule to create. |
| `backupScheduleId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The Id to use for the backup schedule. The `backup_schedule_id` appended to `parent` forms the full backup schedule name of the form `projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>`. |
| `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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    DatabaseName parent = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]");
    BackupSchedule backupSchedule = new BackupSchedule();
    string backupScheduleId = "";
    // Make the request
    BackupSchedule response = databaseAdminClient.CreateBackupSchedule(parent, backupSchedule, backupScheduleId);

### CreateBackupSchedule(string, BackupSchedule, string, CallSettings)

    public virtual BackupSchedule CreateBackupSchedule(string parent, BackupSchedule backupSchedule, string backupScheduleId, CallSettings callSettings = null)

Creates a new backup schedule.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the database that this backup schedule applies to. |
| `backupSchedule` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule` Required. The backup schedule to create. |
| `backupScheduleId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The Id to use for the backup schedule. The `backup_schedule_id` appended to `parent` forms the full backup schedule name of the form `projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>`. |
| `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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/instances/[INSTANCE]/databases/[DATABASE]";
    BackupSchedule backupSchedule = new BackupSchedule();
    string backupScheduleId = "";
    // Make the request
    BackupSchedule response = databaseAdminClient.CreateBackupSchedule(parent, backupSchedule, backupScheduleId);

### CreateBackupScheduleAsync(CreateBackupScheduleRequest, CallSettings)

    public virtual Task<BackupSchedule> CreateBackupScheduleAsync(CreateBackupScheduleRequest request, CallSettings callSettings = null)

Creates a new backup schedule.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CreateBackupScheduleRequest` 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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    CreateBackupScheduleRequest request = new CreateBackupScheduleRequest
    {
        ParentAsDatabaseName = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]"),
        BackupScheduleId = "",
        BackupSchedule = new BackupSchedule(),
    };
    // Make the request
    BackupSchedule response = await databaseAdminClient.CreateBackupScheduleAsync(request);

### CreateBackupScheduleAsync(CreateBackupScheduleRequest, CancellationToken)

    public virtual Task<BackupSchedule> CreateBackupScheduleAsync(CreateBackupScheduleRequest request, CancellationToken cancellationToken)

Creates a new backup schedule.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CreateBackupScheduleRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    CreateBackupScheduleRequest request = new CreateBackupScheduleRequest
    {
        ParentAsDatabaseName = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]"),
        BackupScheduleId = "",
        BackupSchedule = new BackupSchedule(),
    };
    // Make the request
    BackupSchedule response = await databaseAdminClient.CreateBackupScheduleAsync(request);

### CreateBackupScheduleAsync(DatabaseName, BackupSchedule, string, CallSettings)

    public virtual Task<BackupSchedule> CreateBackupScheduleAsync(DatabaseName parent, BackupSchedule backupSchedule, string backupScheduleId, CallSettings callSettings = null)

Creates a new backup schedule.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `Google.Cloud.Spanner.Common.V1.DatabaseName` Required. The name of the database that this backup schedule applies to. |
| `backupSchedule` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule` Required. The backup schedule to create. |
| `backupScheduleId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The Id to use for the backup schedule. The `backup_schedule_id` appended to `parent` forms the full backup schedule name of the form `projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>`. |
| `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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    DatabaseName parent = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]");
    BackupSchedule backupSchedule = new BackupSchedule();
    string backupScheduleId = "";
    // Make the request
    BackupSchedule response = await databaseAdminClient.CreateBackupScheduleAsync(parent, backupSchedule, backupScheduleId);

### CreateBackupScheduleAsync(DatabaseName, BackupSchedule, string, CancellationToken)

    public virtual Task<BackupSchedule> CreateBackupScheduleAsync(DatabaseName parent, BackupSchedule backupSchedule, string backupScheduleId, CancellationToken cancellationToken)

Creates a new backup schedule.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `Google.Cloud.Spanner.Common.V1.DatabaseName` Required. The name of the database that this backup schedule applies to. |
| `backupSchedule` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule` Required. The backup schedule to create. |
| `backupScheduleId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The Id to use for the backup schedule. The `backup_schedule_id` appended to `parent` forms the full backup schedule name of the form `projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    DatabaseName parent = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]");
    BackupSchedule backupSchedule = new BackupSchedule();
    string backupScheduleId = "";
    // Make the request
    BackupSchedule response = await databaseAdminClient.CreateBackupScheduleAsync(parent, backupSchedule, backupScheduleId);

### CreateBackupScheduleAsync(string, BackupSchedule, string, CallSettings)

    public virtual Task<BackupSchedule> CreateBackupScheduleAsync(string parent, BackupSchedule backupSchedule, string backupScheduleId, CallSettings callSettings = null)

Creates a new backup schedule.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the database that this backup schedule applies to. |
| `backupSchedule` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule` Required. The backup schedule to create. |
| `backupScheduleId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The Id to use for the backup schedule. The `backup_schedule_id` appended to `parent` forms the full backup schedule name of the form `projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>`. |
| `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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/instances/[INSTANCE]/databases/[DATABASE]";
    BackupSchedule backupSchedule = new BackupSchedule();
    string backupScheduleId = "";
    // Make the request
    BackupSchedule response = await databaseAdminClient.CreateBackupScheduleAsync(parent, backupSchedule, backupScheduleId);

### CreateBackupScheduleAsync(string, BackupSchedule, string, CancellationToken)

    public virtual Task<BackupSchedule> CreateBackupScheduleAsync(string parent, BackupSchedule backupSchedule, string backupScheduleId, CancellationToken cancellationToken)

Creates a new backup schedule.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the database that this backup schedule applies to. |
| `backupSchedule` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule` Required. The backup schedule to create. |
| `backupScheduleId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The Id to use for the backup schedule. The `backup_schedule_id` appended to `parent` forms the full backup schedule name of the form `projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/instances/[INSTANCE]/databases/[DATABASE]";
    BackupSchedule backupSchedule = new BackupSchedule();
    string backupScheduleId = "";
    // Make the request
    BackupSchedule response = await databaseAdminClient.CreateBackupScheduleAsync(parent, backupSchedule, backupScheduleId);

### CreateDatabase(CreateDatabaseRequest, CallSettings)

    public virtual Operation<Database, CreateDatabaseMetadata> CreateDatabase(CreateDatabaseRequest request, CallSettings callSettings = null)

Creates a new Cloud Spanner database and starts to prepare it for serving.
The returned \[long-running operation\]\[google.longrunning.Operation\] will
have a name of the format `<database_name>/operations/<operation_id>` and
can be used to track preparation of the database. The
\[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[CreateDatabaseMetadata\]\[google.spanner.admin.database.v1.CreateDatabaseMetadata\].
The \[response\]\[google.longrunning.Operation.response\] field type is
\[Database\]\[google.spanner.admin.database.v1.Database\], if successful.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CreateDatabaseRequest` 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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Databasehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CreateDatabaseMetadata` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    CreateDatabaseRequest request = new CreateDatabaseRequest
    {
        ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"),
        CreateStatement = "",
        ExtraStatements = { "", },
        EncryptionConfig = new EncryptionConfig(),
        DatabaseDialect = DatabaseDialect.Unspecified,
        ProtoDescriptors = ByteString.Empty,
    };
    // Make the request
    Operation<Database, CreateDatabaseMetadata> response = databaseAdminClient.CreateDatabase(request);

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

### CreateDatabase(InstanceName, string, CallSettings)

    public virtual Operation<Database, CreateDatabaseMetadata> CreateDatabase(InstanceName parent, string createStatement, CallSettings callSettings = null)

Creates a new Cloud Spanner database and starts to prepare it for serving.
The returned \[long-running operation\]\[google.longrunning.Operation\] will
have a name of the format `<database_name>/operations/<operation_id>` and
can be used to track preparation of the database. The
\[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[CreateDatabaseMetadata\]\[google.spanner.admin.database.v1.CreateDatabaseMetadata\].
The \[response\]\[google.longrunning.Operation.response\] field type is
\[Database\]\[google.spanner.admin.database.v1.Database\], if successful.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `Google.Cloud.Spanner.Common.V1.InstanceName` Required. The name of the instance that will serve the new database. Values are of the form `projects/<project>/instances/<instance>`. |
| `createStatement` | `https://learn.microsoft.com/dotnet/api/system.string` Required. A `CREATE DATABASE` statement, which specifies the ID of the new database. The database ID must conform to the regular expression `[a-z][a-z0-9_\-]*[a-z0-9]` and be between 2 and 30 characters in length. If the database ID is a reserved word or if it contains a hyphen, the database ID must be enclosed in backticks (`` ` ``). |
| `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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Databasehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CreateDatabaseMetadata` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]");
    string createStatement = "";
    // Make the request
    Operation<Database, CreateDatabaseMetadata> response = databaseAdminClient.CreateDatabase(parent, createStatement);

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

### CreateDatabase(string, string, CallSettings)

    public virtual Operation<Database, CreateDatabaseMetadata> CreateDatabase(string parent, string createStatement, CallSettings callSettings = null)

Creates a new Cloud Spanner database and starts to prepare it for serving.
The returned \[long-running operation\]\[google.longrunning.Operation\] will
have a name of the format `<database_name>/operations/<operation_id>` and
can be used to track preparation of the database. The
\[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[CreateDatabaseMetadata\]\[google.spanner.admin.database.v1.CreateDatabaseMetadata\].
The \[response\]\[google.longrunning.Operation.response\] field type is
\[Database\]\[google.spanner.admin.database.v1.Database\], if successful.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the instance that will serve the new database. Values are of the form `projects/<project>/instances/<instance>`. |
| `createStatement` | `https://learn.microsoft.com/dotnet/api/system.string` Required. A `CREATE DATABASE` statement, which specifies the ID of the new database. The database ID must conform to the regular expression `[a-z][a-z0-9_\-]*[a-z0-9]` and be between 2 and 30 characters in length. If the database ID is a reserved word or if it contains a hyphen, the database ID must be enclosed in backticks (`` ` ``). |
| `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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Databasehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CreateDatabaseMetadata` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/instances/[INSTANCE]";
    string createStatement = "";
    // Make the request
    Operation<Database, CreateDatabaseMetadata> response = databaseAdminClient.CreateDatabase(parent, createStatement);

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

### CreateDatabaseAsync(CreateDatabaseRequest, CallSettings)

    public virtual Task<Operation<Database, CreateDatabaseMetadata>> CreateDatabaseAsync(CreateDatabaseRequest request, CallSettings callSettings = null)

Creates a new Cloud Spanner database and starts to prepare it for serving.
The returned \[long-running operation\]\[google.longrunning.Operation\] will
have a name of the format `<database_name>/operations/<operation_id>` and
can be used to track preparation of the database. The
\[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[CreateDatabaseMetadata\]\[google.spanner.admin.database.v1.CreateDatabaseMetadata\].
The \[response\]\[google.longrunning.Operation.response\] field type is
\[Database\]\[google.spanner.admin.database.v1.Database\], if successful.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CreateDatabaseRequest` 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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Databasehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CreateDatabaseMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    CreateDatabaseRequest request = new CreateDatabaseRequest
    {
        ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"),
        CreateStatement = "",
        ExtraStatements = { "", },
        EncryptionConfig = new EncryptionConfig(),
        DatabaseDialect = DatabaseDialect.Unspecified,
        ProtoDescriptors = ByteString.Empty,
    };
    // Make the request
    Operation<Database, CreateDatabaseMetadata> response = await databaseAdminClient.CreateDatabaseAsync(request);

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

### CreateDatabaseAsync(CreateDatabaseRequest, CancellationToken)

    public virtual Task<Operation<Database, CreateDatabaseMetadata>> CreateDatabaseAsync(CreateDatabaseRequest request, CancellationToken cancellationToken)

Creates a new Cloud Spanner database and starts to prepare it for serving.
The returned \[long-running operation\]\[google.longrunning.Operation\] will
have a name of the format `<database_name>/operations/<operation_id>` and
can be used to track preparation of the database. The
\[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[CreateDatabaseMetadata\]\[google.spanner.admin.database.v1.CreateDatabaseMetadata\].
The \[response\]\[google.longrunning.Operation.response\] field type is
\[Database\]\[google.spanner.admin.database.v1.Database\], if successful.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CreateDatabaseRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Databasehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CreateDatabaseMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    CreateDatabaseRequest request = new CreateDatabaseRequest
    {
        ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"),
        CreateStatement = "",
        ExtraStatements = { "", },
        EncryptionConfig = new EncryptionConfig(),
        DatabaseDialect = DatabaseDialect.Unspecified,
        ProtoDescriptors = ByteString.Empty,
    };
    // Make the request
    Operation<Database, CreateDatabaseMetadata> response = await databaseAdminClient.CreateDatabaseAsync(request);

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

### CreateDatabaseAsync(InstanceName, string, CallSettings)

    public virtual Task<Operation<Database, CreateDatabaseMetadata>> CreateDatabaseAsync(InstanceName parent, string createStatement, CallSettings callSettings = null)

Creates a new Cloud Spanner database and starts to prepare it for serving.
The returned \[long-running operation\]\[google.longrunning.Operation\] will
have a name of the format `<database_name>/operations/<operation_id>` and
can be used to track preparation of the database. The
\[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[CreateDatabaseMetadata\]\[google.spanner.admin.database.v1.CreateDatabaseMetadata\].
The \[response\]\[google.longrunning.Operation.response\] field type is
\[Database\]\[google.spanner.admin.database.v1.Database\], if successful.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `Google.Cloud.Spanner.Common.V1.InstanceName` Required. The name of the instance that will serve the new database. Values are of the form `projects/<project>/instances/<instance>`. |
| `createStatement` | `https://learn.microsoft.com/dotnet/api/system.string` Required. A `CREATE DATABASE` statement, which specifies the ID of the new database. The database ID must conform to the regular expression `[a-z][a-z0-9_\-]*[a-z0-9]` and be between 2 and 30 characters in length. If the database ID is a reserved word or if it contains a hyphen, the database ID must be enclosed in backticks (`` ` ``). |
| `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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Databasehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CreateDatabaseMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]");
    string createStatement = "";
    // Make the request
    Operation<Database, CreateDatabaseMetadata> response = await databaseAdminClient.CreateDatabaseAsync(parent, createStatement);

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

### CreateDatabaseAsync(InstanceName, string, CancellationToken)

    public virtual Task<Operation<Database, CreateDatabaseMetadata>> CreateDatabaseAsync(InstanceName parent, string createStatement, CancellationToken cancellationToken)

Creates a new Cloud Spanner database and starts to prepare it for serving.
The returned \[long-running operation\]\[google.longrunning.Operation\] will
have a name of the format `<database_name>/operations/<operation_id>` and
can be used to track preparation of the database. The
\[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[CreateDatabaseMetadata\]\[google.spanner.admin.database.v1.CreateDatabaseMetadata\].
The \[response\]\[google.longrunning.Operation.response\] field type is
\[Database\]\[google.spanner.admin.database.v1.Database\], if successful.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `Google.Cloud.Spanner.Common.V1.InstanceName` Required. The name of the instance that will serve the new database. Values are of the form `projects/<project>/instances/<instance>`. |
| `createStatement` | `https://learn.microsoft.com/dotnet/api/system.string` Required. A `CREATE DATABASE` statement, which specifies the ID of the new database. The database ID must conform to the regular expression `[a-z][a-z0-9_\-]*[a-z0-9]` and be between 2 and 30 characters in length. If the database ID is a reserved word or if it contains a hyphen, the database ID must be enclosed in backticks (`` ` ``). |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Databasehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CreateDatabaseMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]");
    string createStatement = "";
    // Make the request
    Operation<Database, CreateDatabaseMetadata> response = await databaseAdminClient.CreateDatabaseAsync(parent, createStatement);

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

### CreateDatabaseAsync(string, string, CallSettings)

    public virtual Task<Operation<Database, CreateDatabaseMetadata>> CreateDatabaseAsync(string parent, string createStatement, CallSettings callSettings = null)

Creates a new Cloud Spanner database and starts to prepare it for serving.
The returned \[long-running operation\]\[google.longrunning.Operation\] will
have a name of the format `<database_name>/operations/<operation_id>` and
can be used to track preparation of the database. The
\[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[CreateDatabaseMetadata\]\[google.spanner.admin.database.v1.CreateDatabaseMetadata\].
The \[response\]\[google.longrunning.Operation.response\] field type is
\[Database\]\[google.spanner.admin.database.v1.Database\], if successful.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the instance that will serve the new database. Values are of the form `projects/<project>/instances/<instance>`. |
| `createStatement` | `https://learn.microsoft.com/dotnet/api/system.string` Required. A `CREATE DATABASE` statement, which specifies the ID of the new database. The database ID must conform to the regular expression `[a-z][a-z0-9_\-]*[a-z0-9]` and be between 2 and 30 characters in length. If the database ID is a reserved word or if it contains a hyphen, the database ID must be enclosed in backticks (`` ` ``). |
| `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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Databasehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CreateDatabaseMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/instances/[INSTANCE]";
    string createStatement = "";
    // Make the request
    Operation<Database, CreateDatabaseMetadata> response = await databaseAdminClient.CreateDatabaseAsync(parent, createStatement);

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

### CreateDatabaseAsync(string, string, CancellationToken)

    public virtual Task<Operation<Database, CreateDatabaseMetadata>> CreateDatabaseAsync(string parent, string createStatement, CancellationToken cancellationToken)

Creates a new Cloud Spanner database and starts to prepare it for serving.
The returned \[long-running operation\]\[google.longrunning.Operation\] will
have a name of the format `<database_name>/operations/<operation_id>` and
can be used to track preparation of the database. The
\[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[CreateDatabaseMetadata\]\[google.spanner.admin.database.v1.CreateDatabaseMetadata\].
The \[response\]\[google.longrunning.Operation.response\] field type is
\[Database\]\[google.spanner.admin.database.v1.Database\], if successful.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the instance that will serve the new database. Values are of the form `projects/<project>/instances/<instance>`. |
| `createStatement` | `https://learn.microsoft.com/dotnet/api/system.string` Required. A `CREATE DATABASE` statement, which specifies the ID of the new database. The database ID must conform to the regular expression `[a-z][a-z0-9_\-]*[a-z0-9]` and be between 2 and 30 characters in length. If the database ID is a reserved word or if it contains a hyphen, the database ID must be enclosed in backticks (`` ` ``). |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Databasehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CreateDatabaseMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/instances/[INSTANCE]";
    string createStatement = "";
    // Make the request
    Operation<Database, CreateDatabaseMetadata> response = await databaseAdminClient.CreateDatabaseAsync(parent, createStatement);

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

### DeleteBackup(BackupName, CallSettings)

    public virtual void DeleteBackup(BackupName name, CallSettings callSettings = null)

Deletes a pending or completed
\[Backup\]\[google.spanner.admin.database.v1.Backup\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupName` Required. Name of the backup to delete. Values are of the form `projects/<project>/instances/<instance>/backups/<backup>`. |
| `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. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    BackupName name = BackupName.FromProjectInstanceBackup("[PROJECT]", "[INSTANCE]", "[BACKUP]");
    // Make the request
    databaseAdminClient.DeleteBackup(name);

### DeleteBackup(DeleteBackupRequest, CallSettings)

    public virtual void DeleteBackup(DeleteBackupRequest request, CallSettings callSettings = null)

Deletes a pending or completed
\[Backup\]\[google.spanner.admin.database.v1.Backup\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.DeleteBackupRequest` 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. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    DeleteBackupRequest request = new DeleteBackupRequest
    {
        BackupName = BackupName.FromProjectInstanceBackup("[PROJECT]", "[INSTANCE]", "[BACKUP]"),
    };
    // Make the request
    databaseAdminClient.DeleteBackup(request);

### DeleteBackup(string, CallSettings)

    public virtual void DeleteBackup(string name, CallSettings callSettings = null)

Deletes a pending or completed
\[Backup\]\[google.spanner.admin.database.v1.Backup\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the backup to delete. Values are of the form `projects/<project>/instances/<instance>/backups/<backup>`. |
| `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. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/instances/[INSTANCE]/backups/[BACKUP]";
    // Make the request
    databaseAdminClient.DeleteBackup(name);

### DeleteBackupAsync(BackupName, CallSettings)

    public virtual Task DeleteBackupAsync(BackupName name, CallSettings callSettings = null)

Deletes a pending or completed
\[Backup\]\[google.spanner.admin.database.v1.Backup\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupName` Required. Name of the backup to delete. Values are of the form `projects/<project>/instances/<instance>/backups/<backup>`. |
| `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` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    BackupName name = BackupName.FromProjectInstanceBackup("[PROJECT]", "[INSTANCE]", "[BACKUP]");
    // Make the request
    await databaseAdminClient.DeleteBackupAsync(name);

### DeleteBackupAsync(BackupName, CancellationToken)

    public virtual Task DeleteBackupAsync(BackupName name, CancellationToken cancellationToken)

Deletes a pending or completed
\[Backup\]\[google.spanner.admin.database.v1.Backup\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupName` Required. Name of the backup to delete. Values are of the form `projects/<project>/instances/<instance>/backups/<backup>`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    BackupName name = BackupName.FromProjectInstanceBackup("[PROJECT]", "[INSTANCE]", "[BACKUP]");
    // Make the request
    await databaseAdminClient.DeleteBackupAsync(name);

### DeleteBackupAsync(DeleteBackupRequest, CallSettings)

    public virtual Task DeleteBackupAsync(DeleteBackupRequest request, CallSettings callSettings = null)

Deletes a pending or completed
\[Backup\]\[google.spanner.admin.database.v1.Backup\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.DeleteBackupRequest` 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` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    DeleteBackupRequest request = new DeleteBackupRequest
    {
        BackupName = BackupName.FromProjectInstanceBackup("[PROJECT]", "[INSTANCE]", "[BACKUP]"),
    };
    // Make the request
    await databaseAdminClient.DeleteBackupAsync(request);

### DeleteBackupAsync(DeleteBackupRequest, CancellationToken)

    public virtual Task DeleteBackupAsync(DeleteBackupRequest request, CancellationToken cancellationToken)

Deletes a pending or completed
\[Backup\]\[google.spanner.admin.database.v1.Backup\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.DeleteBackupRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    DeleteBackupRequest request = new DeleteBackupRequest
    {
        BackupName = BackupName.FromProjectInstanceBackup("[PROJECT]", "[INSTANCE]", "[BACKUP]"),
    };
    // Make the request
    await databaseAdminClient.DeleteBackupAsync(request);

### DeleteBackupAsync(string, CallSettings)

    public virtual Task DeleteBackupAsync(string name, CallSettings callSettings = null)

Deletes a pending or completed
\[Backup\]\[google.spanner.admin.database.v1.Backup\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the backup to delete. Values are of the form `projects/<project>/instances/<instance>/backups/<backup>`. |
| `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` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/instances/[INSTANCE]/backups/[BACKUP]";
    // Make the request
    await databaseAdminClient.DeleteBackupAsync(name);

### DeleteBackupAsync(string, CancellationToken)

    public virtual Task DeleteBackupAsync(string name, CancellationToken cancellationToken)

Deletes a pending or completed
\[Backup\]\[google.spanner.admin.database.v1.Backup\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the backup to delete. Values are of the form `projects/<project>/instances/<instance>/backups/<backup>`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/instances/[INSTANCE]/backups/[BACKUP]";
    // Make the request
    await databaseAdminClient.DeleteBackupAsync(name);

### DeleteBackupSchedule(BackupScheduleName, CallSettings)

    public virtual void DeleteBackupSchedule(BackupScheduleName name, CallSettings callSettings = null)

Deletes a backup schedule.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupScheduleName` Required. The name of the schedule to delete. Values are of the form `projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>`. |
| `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. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    BackupScheduleName name = BackupScheduleName.FromProjectInstanceDatabaseSchedule("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SCHEDULE]");
    // Make the request
    databaseAdminClient.DeleteBackupSchedule(name);

### DeleteBackupSchedule(DeleteBackupScheduleRequest, CallSettings)

    public virtual void DeleteBackupSchedule(DeleteBackupScheduleRequest request, CallSettings callSettings = null)

Deletes a backup schedule.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.DeleteBackupScheduleRequest` 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. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    DeleteBackupScheduleRequest request = new DeleteBackupScheduleRequest
    {
        BackupScheduleName = BackupScheduleName.FromProjectInstanceDatabaseSchedule("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SCHEDULE]"),
    };
    // Make the request
    databaseAdminClient.DeleteBackupSchedule(request);

### DeleteBackupSchedule(string, CallSettings)

    public virtual void DeleteBackupSchedule(string name, CallSettings callSettings = null)

Deletes a backup schedule.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the schedule to delete. Values are of the form `projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>`. |
| `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. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/instances/[INSTANCE]/databases/[DATABASE]/backupSchedules/[SCHEDULE]";
    // Make the request
    databaseAdminClient.DeleteBackupSchedule(name);

### DeleteBackupScheduleAsync(BackupScheduleName, CallSettings)

    public virtual Task DeleteBackupScheduleAsync(BackupScheduleName name, CallSettings callSettings = null)

Deletes a backup schedule.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupScheduleName` Required. The name of the schedule to delete. Values are of the form `projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>`. |
| `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` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    BackupScheduleName name = BackupScheduleName.FromProjectInstanceDatabaseSchedule("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SCHEDULE]");
    // Make the request
    await databaseAdminClient.DeleteBackupScheduleAsync(name);

### DeleteBackupScheduleAsync(BackupScheduleName, CancellationToken)

    public virtual Task DeleteBackupScheduleAsync(BackupScheduleName name, CancellationToken cancellationToken)

Deletes a backup schedule.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupScheduleName` Required. The name of the schedule to delete. Values are of the form `projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    BackupScheduleName name = BackupScheduleName.FromProjectInstanceDatabaseSchedule("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SCHEDULE]");
    // Make the request
    await databaseAdminClient.DeleteBackupScheduleAsync(name);

### DeleteBackupScheduleAsync(DeleteBackupScheduleRequest, CallSettings)

    public virtual Task DeleteBackupScheduleAsync(DeleteBackupScheduleRequest request, CallSettings callSettings = null)

Deletes a backup schedule.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.DeleteBackupScheduleRequest` 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` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    DeleteBackupScheduleRequest request = new DeleteBackupScheduleRequest
    {
        BackupScheduleName = BackupScheduleName.FromProjectInstanceDatabaseSchedule("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SCHEDULE]"),
    };
    // Make the request
    await databaseAdminClient.DeleteBackupScheduleAsync(request);

### DeleteBackupScheduleAsync(DeleteBackupScheduleRequest, CancellationToken)

    public virtual Task DeleteBackupScheduleAsync(DeleteBackupScheduleRequest request, CancellationToken cancellationToken)

Deletes a backup schedule.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.DeleteBackupScheduleRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    DeleteBackupScheduleRequest request = new DeleteBackupScheduleRequest
    {
        BackupScheduleName = BackupScheduleName.FromProjectInstanceDatabaseSchedule("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SCHEDULE]"),
    };
    // Make the request
    await databaseAdminClient.DeleteBackupScheduleAsync(request);

### DeleteBackupScheduleAsync(string, CallSettings)

    public virtual Task DeleteBackupScheduleAsync(string name, CallSettings callSettings = null)

Deletes a backup schedule.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the schedule to delete. Values are of the form `projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>`. |
| `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` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/instances/[INSTANCE]/databases/[DATABASE]/backupSchedules/[SCHEDULE]";
    // Make the request
    await databaseAdminClient.DeleteBackupScheduleAsync(name);

### DeleteBackupScheduleAsync(string, CancellationToken)

    public virtual Task DeleteBackupScheduleAsync(string name, CancellationToken cancellationToken)

Deletes a backup schedule.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the schedule to delete. Values are of the form `projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/instances/[INSTANCE]/databases/[DATABASE]/backupSchedules/[SCHEDULE]";
    // Make the request
    await databaseAdminClient.DeleteBackupScheduleAsync(name);

### DropDatabase(DropDatabaseRequest, CallSettings)

    public virtual void DropDatabase(DropDatabaseRequest request, CallSettings callSettings = null)

Drops (aka deletes) a Cloud Spanner database.
Completed backups for the database will be retained according to their
`expire_time`.
Note: Cloud Spanner might continue to accept requests for a few seconds
after the database has been deleted.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.DropDatabaseRequest` 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. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    DropDatabaseRequest request = new DropDatabaseRequest
    {
        DatabaseAsDatabaseName = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]"),
    };
    // Make the request
    databaseAdminClient.DropDatabase(request);

### DropDatabase(DatabaseName, CallSettings)

    public virtual void DropDatabase(DatabaseName database, CallSettings callSettings = null)

Drops (aka deletes) a Cloud Spanner database.
Completed backups for the database will be retained according to their
`expire_time`.
Note: Cloud Spanner might continue to accept requests for a few seconds
after the database has been deleted.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `database` | `Google.Cloud.Spanner.Common.V1.DatabaseName` Required. The database to be dropped. |
| `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. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    DatabaseName database = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]");
    // Make the request
    databaseAdminClient.DropDatabase(database);

### DropDatabase(string, CallSettings)

    public virtual void DropDatabase(string database, CallSettings callSettings = null)

Drops (aka deletes) a Cloud Spanner database.
Completed backups for the database will be retained according to their
`expire_time`.
Note: Cloud Spanner might continue to accept requests for a few seconds
after the database has been deleted.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `database` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The database to be dropped. |
| `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. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    string database = "projects/[PROJECT]/instances/[INSTANCE]/databases/[DATABASE]";
    // Make the request
    databaseAdminClient.DropDatabase(database);

### DropDatabaseAsync(DropDatabaseRequest, CallSettings)

    public virtual Task DropDatabaseAsync(DropDatabaseRequest request, CallSettings callSettings = null)

Drops (aka deletes) a Cloud Spanner database.
Completed backups for the database will be retained according to their
`expire_time`.
Note: Cloud Spanner might continue to accept requests for a few seconds
after the database has been deleted.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.DropDatabaseRequest` 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` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    DropDatabaseRequest request = new DropDatabaseRequest
    {
        DatabaseAsDatabaseName = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]"),
    };
    // Make the request
    await databaseAdminClient.DropDatabaseAsync(request);

### DropDatabaseAsync(DropDatabaseRequest, CancellationToken)

    public virtual Task DropDatabaseAsync(DropDatabaseRequest request, CancellationToken cancellationToken)

Drops (aka deletes) a Cloud Spanner database.
Completed backups for the database will be retained according to their
`expire_time`.
Note: Cloud Spanner might continue to accept requests for a few seconds
after the database has been deleted.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.DropDatabaseRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    DropDatabaseRequest request = new DropDatabaseRequest
    {
        DatabaseAsDatabaseName = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]"),
    };
    // Make the request
    await databaseAdminClient.DropDatabaseAsync(request);

### DropDatabaseAsync(DatabaseName, CallSettings)

    public virtual Task DropDatabaseAsync(DatabaseName database, CallSettings callSettings = null)

Drops (aka deletes) a Cloud Spanner database.
Completed backups for the database will be retained according to their
`expire_time`.
Note: Cloud Spanner might continue to accept requests for a few seconds
after the database has been deleted.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `database` | `Google.Cloud.Spanner.Common.V1.DatabaseName` Required. The database to be dropped. |
| `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` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    DatabaseName database = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]");
    // Make the request
    await databaseAdminClient.DropDatabaseAsync(database);

### DropDatabaseAsync(DatabaseName, CancellationToken)

    public virtual Task DropDatabaseAsync(DatabaseName database, CancellationToken cancellationToken)

Drops (aka deletes) a Cloud Spanner database.
Completed backups for the database will be retained according to their
`expire_time`.
Note: Cloud Spanner might continue to accept requests for a few seconds
after the database has been deleted.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `database` | `Google.Cloud.Spanner.Common.V1.DatabaseName` Required. The database to be dropped. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    DatabaseName database = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]");
    // Make the request
    await databaseAdminClient.DropDatabaseAsync(database);

### DropDatabaseAsync(string, CallSettings)

    public virtual Task DropDatabaseAsync(string database, CallSettings callSettings = null)

Drops (aka deletes) a Cloud Spanner database.
Completed backups for the database will be retained according to their
`expire_time`.
Note: Cloud Spanner might continue to accept requests for a few seconds
after the database has been deleted.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `database` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The database to be dropped. |
| `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` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string database = "projects/[PROJECT]/instances/[INSTANCE]/databases/[DATABASE]";
    // Make the request
    await databaseAdminClient.DropDatabaseAsync(database);

### DropDatabaseAsync(string, CancellationToken)

    public virtual Task DropDatabaseAsync(string database, CancellationToken cancellationToken)

Drops (aka deletes) a Cloud Spanner database.
Completed backups for the database will be retained according to their
`expire_time`.
Note: Cloud Spanner might continue to accept requests for a few seconds
after the database has been deleted.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `database` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The database to be dropped. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string database = "projects/[PROJECT]/instances/[INSTANCE]/databases/[DATABASE]";
    // Make the request
    await databaseAdminClient.DropDatabaseAsync(database);

### GetBackup(BackupName, CallSettings)

    public virtual Backup GetBackup(BackupName name, CallSettings callSettings = null)

Gets metadata on a pending or completed
\[Backup\]\[google.spanner.admin.database.v1.Backup\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupName` Required. Name of the backup. Values are of the form `projects/<project>/instances/<instance>/backups/<backup>`. |
| `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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backup` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    BackupName name = BackupName.FromProjectInstanceBackup("[PROJECT]", "[INSTANCE]", "[BACKUP]");
    // Make the request
    Backup response = databaseAdminClient.GetBackup(name);

### GetBackup(GetBackupRequest, CallSettings)

    public virtual Backup GetBackup(GetBackupRequest request, CallSettings callSettings = null)

Gets metadata on a pending or completed
\[Backup\]\[google.spanner.admin.database.v1.Backup\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.GetBackupRequest` 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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backup` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    GetBackupRequest request = new GetBackupRequest
    {
        BackupName = BackupName.FromProjectInstanceBackup("[PROJECT]", "[INSTANCE]", "[BACKUP]"),
    };
    // Make the request
    Backup response = databaseAdminClient.GetBackup(request);

### GetBackup(string, CallSettings)

    public virtual Backup GetBackup(string name, CallSettings callSettings = null)

Gets metadata on a pending or completed
\[Backup\]\[google.spanner.admin.database.v1.Backup\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the backup. Values are of the form `projects/<project>/instances/<instance>/backups/<backup>`. |
| `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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backup` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/instances/[INSTANCE]/backups/[BACKUP]";
    // Make the request
    Backup response = databaseAdminClient.GetBackup(name);

### GetBackupAsync(BackupName, CallSettings)

    public virtual Task<Backup> GetBackupAsync(BackupName name, CallSettings callSettings = null)

Gets metadata on a pending or completed
\[Backup\]\[google.spanner.admin.database.v1.Backup\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupName` Required. Name of the backup. Values are of the form `projects/<project>/instances/<instance>/backups/<backup>`. |
| `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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backup` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    BackupName name = BackupName.FromProjectInstanceBackup("[PROJECT]", "[INSTANCE]", "[BACKUP]");
    // Make the request
    Backup response = await databaseAdminClient.GetBackupAsync(name);

### GetBackupAsync(BackupName, CancellationToken)

    public virtual Task<Backup> GetBackupAsync(BackupName name, CancellationToken cancellationToken)

Gets metadata on a pending or completed
\[Backup\]\[google.spanner.admin.database.v1.Backup\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupName` Required. Name of the backup. Values are of the form `projects/<project>/instances/<instance>/backups/<backup>`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backup` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    BackupName name = BackupName.FromProjectInstanceBackup("[PROJECT]", "[INSTANCE]", "[BACKUP]");
    // Make the request
    Backup response = await databaseAdminClient.GetBackupAsync(name);

### GetBackupAsync(GetBackupRequest, CallSettings)

    public virtual Task<Backup> GetBackupAsync(GetBackupRequest request, CallSettings callSettings = null)

Gets metadata on a pending or completed
\[Backup\]\[google.spanner.admin.database.v1.Backup\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.GetBackupRequest` 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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backup` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    GetBackupRequest request = new GetBackupRequest
    {
        BackupName = BackupName.FromProjectInstanceBackup("[PROJECT]", "[INSTANCE]", "[BACKUP]"),
    };
    // Make the request
    Backup response = await databaseAdminClient.GetBackupAsync(request);

### GetBackupAsync(GetBackupRequest, CancellationToken)

    public virtual Task<Backup> GetBackupAsync(GetBackupRequest request, CancellationToken cancellationToken)

Gets metadata on a pending or completed
\[Backup\]\[google.spanner.admin.database.v1.Backup\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.GetBackupRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backup` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    GetBackupRequest request = new GetBackupRequest
    {
        BackupName = BackupName.FromProjectInstanceBackup("[PROJECT]", "[INSTANCE]", "[BACKUP]"),
    };
    // Make the request
    Backup response = await databaseAdminClient.GetBackupAsync(request);

### GetBackupAsync(string, CallSettings)

    public virtual Task<Backup> GetBackupAsync(string name, CallSettings callSettings = null)

Gets metadata on a pending or completed
\[Backup\]\[google.spanner.admin.database.v1.Backup\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the backup. Values are of the form `projects/<project>/instances/<instance>/backups/<backup>`. |
| `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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backup` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/instances/[INSTANCE]/backups/[BACKUP]";
    // Make the request
    Backup response = await databaseAdminClient.GetBackupAsync(name);

### GetBackupAsync(string, CancellationToken)

    public virtual Task<Backup> GetBackupAsync(string name, CancellationToken cancellationToken)

Gets metadata on a pending or completed
\[Backup\]\[google.spanner.admin.database.v1.Backup\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the backup. Values are of the form `projects/<project>/instances/<instance>/backups/<backup>`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backup` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/instances/[INSTANCE]/backups/[BACKUP]";
    // Make the request
    Backup response = await databaseAdminClient.GetBackupAsync(name);

### GetBackupSchedule(BackupScheduleName, CallSettings)

    public virtual BackupSchedule GetBackupSchedule(BackupScheduleName name, CallSettings callSettings = null)

Gets backup schedule for the input schedule name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupScheduleName` Required. The name of the schedule to retrieve. Values are of the form `projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>`. |
| `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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    BackupScheduleName name = BackupScheduleName.FromProjectInstanceDatabaseSchedule("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SCHEDULE]");
    // Make the request
    BackupSchedule response = databaseAdminClient.GetBackupSchedule(name);

### GetBackupSchedule(GetBackupScheduleRequest, CallSettings)

    public virtual BackupSchedule GetBackupSchedule(GetBackupScheduleRequest request, CallSettings callSettings = null)

Gets backup schedule for the input schedule name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.GetBackupScheduleRequest` 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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    GetBackupScheduleRequest request = new GetBackupScheduleRequest
    {
        BackupScheduleName = BackupScheduleName.FromProjectInstanceDatabaseSchedule("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SCHEDULE]"),
    };
    // Make the request
    BackupSchedule response = databaseAdminClient.GetBackupSchedule(request);

### GetBackupSchedule(string, CallSettings)

    public virtual BackupSchedule GetBackupSchedule(string name, CallSettings callSettings = null)

Gets backup schedule for the input schedule name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the schedule to retrieve. Values are of the form `projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>`. |
| `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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/instances/[INSTANCE]/databases/[DATABASE]/backupSchedules/[SCHEDULE]";
    // Make the request
    BackupSchedule response = databaseAdminClient.GetBackupSchedule(name);

### GetBackupScheduleAsync(BackupScheduleName, CallSettings)

    public virtual Task<BackupSchedule> GetBackupScheduleAsync(BackupScheduleName name, CallSettings callSettings = null)

Gets backup schedule for the input schedule name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupScheduleName` Required. The name of the schedule to retrieve. Values are of the form `projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>`. |
| `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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    BackupScheduleName name = BackupScheduleName.FromProjectInstanceDatabaseSchedule("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SCHEDULE]");
    // Make the request
    BackupSchedule response = await databaseAdminClient.GetBackupScheduleAsync(name);

### GetBackupScheduleAsync(BackupScheduleName, CancellationToken)

    public virtual Task<BackupSchedule> GetBackupScheduleAsync(BackupScheduleName name, CancellationToken cancellationToken)

Gets backup schedule for the input schedule name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupScheduleName` Required. The name of the schedule to retrieve. Values are of the form `projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    BackupScheduleName name = BackupScheduleName.FromProjectInstanceDatabaseSchedule("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SCHEDULE]");
    // Make the request
    BackupSchedule response = await databaseAdminClient.GetBackupScheduleAsync(name);

### GetBackupScheduleAsync(GetBackupScheduleRequest, CallSettings)

    public virtual Task<BackupSchedule> GetBackupScheduleAsync(GetBackupScheduleRequest request, CallSettings callSettings = null)

Gets backup schedule for the input schedule name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.GetBackupScheduleRequest` 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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    GetBackupScheduleRequest request = new GetBackupScheduleRequest
    {
        BackupScheduleName = BackupScheduleName.FromProjectInstanceDatabaseSchedule("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SCHEDULE]"),
    };
    // Make the request
    BackupSchedule response = await databaseAdminClient.GetBackupScheduleAsync(request);

### GetBackupScheduleAsync(GetBackupScheduleRequest, CancellationToken)

    public virtual Task<BackupSchedule> GetBackupScheduleAsync(GetBackupScheduleRequest request, CancellationToken cancellationToken)

Gets backup schedule for the input schedule name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.GetBackupScheduleRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    GetBackupScheduleRequest request = new GetBackupScheduleRequest
    {
        BackupScheduleName = BackupScheduleName.FromProjectInstanceDatabaseSchedule("[PROJECT]", "[INSTANCE]", "[DATABASE]", "[SCHEDULE]"),
    };
    // Make the request
    BackupSchedule response = await databaseAdminClient.GetBackupScheduleAsync(request);

### GetBackupScheduleAsync(string, CallSettings)

    public virtual Task<BackupSchedule> GetBackupScheduleAsync(string name, CallSettings callSettings = null)

Gets backup schedule for the input schedule name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the schedule to retrieve. Values are of the form `projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>`. |
| `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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/instances/[INSTANCE]/databases/[DATABASE]/backupSchedules/[SCHEDULE]";
    // Make the request
    BackupSchedule response = await databaseAdminClient.GetBackupScheduleAsync(name);

### GetBackupScheduleAsync(string, CancellationToken)

    public virtual Task<BackupSchedule> GetBackupScheduleAsync(string name, CancellationToken cancellationToken)

Gets backup schedule for the input schedule name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the schedule to retrieve. Values are of the form `projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/instances/[INSTANCE]/databases/[DATABASE]/backupSchedules/[SCHEDULE]";
    // Make the request
    BackupSchedule response = await databaseAdminClient.GetBackupScheduleAsync(name);

### GetDatabase(GetDatabaseRequest, CallSettings)

    public virtual Database GetDatabase(GetDatabaseRequest request, CallSettings callSettings = null)

Gets the state of a Cloud Spanner database.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.GetDatabaseRequest` 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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Database` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    GetDatabaseRequest request = new GetDatabaseRequest
    {
        DatabaseName = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]"),
    };
    // Make the request
    Database response = databaseAdminClient.GetDatabase(request);

### GetDatabase(DatabaseName, CallSettings)

    public virtual Database GetDatabase(DatabaseName name, CallSettings callSettings = null)

Gets the state of a Cloud Spanner database.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `Google.Cloud.Spanner.Common.V1.DatabaseName` Required. The name of the requested database. Values are of the form `projects/<project>/instances/<instance>/databases/<database>`. |
| `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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Database` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    DatabaseName name = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]");
    // Make the request
    Database response = databaseAdminClient.GetDatabase(name);

### GetDatabase(string, CallSettings)

    public virtual Database GetDatabase(string name, CallSettings callSettings = null)

Gets the state of a Cloud Spanner database.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the requested database. Values are of the form `projects/<project>/instances/<instance>/databases/<database>`. |
| `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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Database` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/instances/[INSTANCE]/databases/[DATABASE]";
    // Make the request
    Database response = databaseAdminClient.GetDatabase(name);

### GetDatabaseAsync(GetDatabaseRequest, CallSettings)

    public virtual Task<Database> GetDatabaseAsync(GetDatabaseRequest request, CallSettings callSettings = null)

Gets the state of a Cloud Spanner database.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.GetDatabaseRequest` 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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Database` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    GetDatabaseRequest request = new GetDatabaseRequest
    {
        DatabaseName = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]"),
    };
    // Make the request
    Database response = await databaseAdminClient.GetDatabaseAsync(request);

### GetDatabaseAsync(GetDatabaseRequest, CancellationToken)

    public virtual Task<Database> GetDatabaseAsync(GetDatabaseRequest request, CancellationToken cancellationToken)

Gets the state of a Cloud Spanner database.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.GetDatabaseRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Database` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    GetDatabaseRequest request = new GetDatabaseRequest
    {
        DatabaseName = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]"),
    };
    // Make the request
    Database response = await databaseAdminClient.GetDatabaseAsync(request);

### GetDatabaseAsync(DatabaseName, CallSettings)

    public virtual Task<Database> GetDatabaseAsync(DatabaseName name, CallSettings callSettings = null)

Gets the state of a Cloud Spanner database.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `Google.Cloud.Spanner.Common.V1.DatabaseName` Required. The name of the requested database. Values are of the form `projects/<project>/instances/<instance>/databases/<database>`. |
| `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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Database` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    DatabaseName name = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]");
    // Make the request
    Database response = await databaseAdminClient.GetDatabaseAsync(name);

### GetDatabaseAsync(DatabaseName, CancellationToken)

    public virtual Task<Database> GetDatabaseAsync(DatabaseName name, CancellationToken cancellationToken)

Gets the state of a Cloud Spanner database.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `Google.Cloud.Spanner.Common.V1.DatabaseName` Required. The name of the requested database. Values are of the form `projects/<project>/instances/<instance>/databases/<database>`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Database` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    DatabaseName name = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]");
    // Make the request
    Database response = await databaseAdminClient.GetDatabaseAsync(name);

### GetDatabaseAsync(string, CallSettings)

    public virtual Task<Database> GetDatabaseAsync(string name, CallSettings callSettings = null)

Gets the state of a Cloud Spanner database.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the requested database. Values are of the form `projects/<project>/instances/<instance>/databases/<database>`. |
| `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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Database` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/instances/[INSTANCE]/databases/[DATABASE]";
    // Make the request
    Database response = await databaseAdminClient.GetDatabaseAsync(name);

### GetDatabaseAsync(string, CancellationToken)

    public virtual Task<Database> GetDatabaseAsync(string name, CancellationToken cancellationToken)

Gets the state of a Cloud Spanner database.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the requested database. Values are of the form `projects/<project>/instances/<instance>/databases/<database>`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Database` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/instances/[INSTANCE]/databases/[DATABASE]";
    // Make the request
    Database response = await databaseAdminClient.GetDatabaseAsync(name);

### GetDatabaseDdl(GetDatabaseDdlRequest, CallSettings)

    public virtual GetDatabaseDdlResponse GetDatabaseDdl(GetDatabaseDdlRequest request, CallSettings callSettings = null)

Returns the schema of a Cloud Spanner database as a list of formatted
DDL statements. This method does not show pending schema updates, those may
be queried using the \[Operations\]\[google.longrunning.Operations\] API.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.GetDatabaseDdlRequest` 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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.GetDatabaseDdlResponse` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    GetDatabaseDdlRequest request = new GetDatabaseDdlRequest
    {
        DatabaseAsDatabaseName = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]"),
    };
    // Make the request
    GetDatabaseDdlResponse response = databaseAdminClient.GetDatabaseDdl(request);

### GetDatabaseDdl(DatabaseName, CallSettings)

    public virtual GetDatabaseDdlResponse GetDatabaseDdl(DatabaseName database, CallSettings callSettings = null)

Returns the schema of a Cloud Spanner database as a list of formatted
DDL statements. This method does not show pending schema updates, those may
be queried using the \[Operations\]\[google.longrunning.Operations\] API.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `database` | `Google.Cloud.Spanner.Common.V1.DatabaseName` Required. The database whose schema we wish to get. Values are of the form `projects/<project>/instances/<instance>/databases/<database>` |
| `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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.GetDatabaseDdlResponse` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    DatabaseName database = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]");
    // Make the request
    GetDatabaseDdlResponse response = databaseAdminClient.GetDatabaseDdl(database);

### GetDatabaseDdl(string, CallSettings)

    public virtual GetDatabaseDdlResponse GetDatabaseDdl(string database, CallSettings callSettings = null)

Returns the schema of a Cloud Spanner database as a list of formatted
DDL statements. This method does not show pending schema updates, those may
be queried using the \[Operations\]\[google.longrunning.Operations\] API.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `database` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The database whose schema we wish to get. Values are of the form `projects/<project>/instances/<instance>/databases/<database>` |
| `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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.GetDatabaseDdlResponse` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    string database = "projects/[PROJECT]/instances/[INSTANCE]/databases/[DATABASE]";
    // Make the request
    GetDatabaseDdlResponse response = databaseAdminClient.GetDatabaseDdl(database);

### GetDatabaseDdlAsync(GetDatabaseDdlRequest, CallSettings)

    public virtual Task<GetDatabaseDdlResponse> GetDatabaseDdlAsync(GetDatabaseDdlRequest request, CallSettings callSettings = null)

Returns the schema of a Cloud Spanner database as a list of formatted
DDL statements. This method does not show pending schema updates, those may
be queried using the \[Operations\]\[google.longrunning.Operations\] API.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.GetDatabaseDdlRequest` 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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.GetDatabaseDdlResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    GetDatabaseDdlRequest request = new GetDatabaseDdlRequest
    {
        DatabaseAsDatabaseName = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]"),
    };
    // Make the request
    GetDatabaseDdlResponse response = await databaseAdminClient.GetDatabaseDdlAsync(request);

### GetDatabaseDdlAsync(GetDatabaseDdlRequest, CancellationToken)

    public virtual Task<GetDatabaseDdlResponse> GetDatabaseDdlAsync(GetDatabaseDdlRequest request, CancellationToken cancellationToken)

Returns the schema of a Cloud Spanner database as a list of formatted
DDL statements. This method does not show pending schema updates, those may
be queried using the \[Operations\]\[google.longrunning.Operations\] API.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.GetDatabaseDdlRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.GetDatabaseDdlResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    GetDatabaseDdlRequest request = new GetDatabaseDdlRequest
    {
        DatabaseAsDatabaseName = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]"),
    };
    // Make the request
    GetDatabaseDdlResponse response = await databaseAdminClient.GetDatabaseDdlAsync(request);

### GetDatabaseDdlAsync(DatabaseName, CallSettings)

    public virtual Task<GetDatabaseDdlResponse> GetDatabaseDdlAsync(DatabaseName database, CallSettings callSettings = null)

Returns the schema of a Cloud Spanner database as a list of formatted
DDL statements. This method does not show pending schema updates, those may
be queried using the \[Operations\]\[google.longrunning.Operations\] API.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `database` | `Google.Cloud.Spanner.Common.V1.DatabaseName` Required. The database whose schema we wish to get. Values are of the form `projects/<project>/instances/<instance>/databases/<database>` |
| `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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.GetDatabaseDdlResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    DatabaseName database = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]");
    // Make the request
    GetDatabaseDdlResponse response = await databaseAdminClient.GetDatabaseDdlAsync(database);

### GetDatabaseDdlAsync(DatabaseName, CancellationToken)

    public virtual Task<GetDatabaseDdlResponse> GetDatabaseDdlAsync(DatabaseName database, CancellationToken cancellationToken)

Returns the schema of a Cloud Spanner database as a list of formatted
DDL statements. This method does not show pending schema updates, those may
be queried using the \[Operations\]\[google.longrunning.Operations\] API.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `database` | `Google.Cloud.Spanner.Common.V1.DatabaseName` Required. The database whose schema we wish to get. Values are of the form `projects/<project>/instances/<instance>/databases/<database>` |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.GetDatabaseDdlResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    DatabaseName database = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]");
    // Make the request
    GetDatabaseDdlResponse response = await databaseAdminClient.GetDatabaseDdlAsync(database);

### GetDatabaseDdlAsync(string, CallSettings)

    public virtual Task<GetDatabaseDdlResponse> GetDatabaseDdlAsync(string database, CallSettings callSettings = null)

Returns the schema of a Cloud Spanner database as a list of formatted
DDL statements. This method does not show pending schema updates, those may
be queried using the \[Operations\]\[google.longrunning.Operations\] API.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `database` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The database whose schema we wish to get. Values are of the form `projects/<project>/instances/<instance>/databases/<database>` |
| `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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.GetDatabaseDdlResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string database = "projects/[PROJECT]/instances/[INSTANCE]/databases/[DATABASE]";
    // Make the request
    GetDatabaseDdlResponse response = await databaseAdminClient.GetDatabaseDdlAsync(database);

### GetDatabaseDdlAsync(string, CancellationToken)

    public virtual Task<GetDatabaseDdlResponse> GetDatabaseDdlAsync(string database, CancellationToken cancellationToken)

Returns the schema of a Cloud Spanner database as a list of formatted
DDL statements. This method does not show pending schema updates, those may
be queried using the \[Operations\]\[google.longrunning.Operations\] API.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `database` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The database whose schema we wish to get. Values are of the form `projects/<project>/instances/<instance>/databases/<database>` |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.GetDatabaseDdlResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string database = "projects/[PROJECT]/instances/[INSTANCE]/databases/[DATABASE]";
    // Make the request
    GetDatabaseDdlResponse response = await databaseAdminClient.GetDatabaseDdlAsync(database);

### GetIamPolicy(IResourceName, CallSettings)

    public virtual Policy GetIamPolicy(IResourceName resource, CallSettings callSettings = null)

Gets the access control policy for a database or backup resource.
Returns an empty policy if a database or backup exists but does not have a
policy set.

Authorization requires `spanner.databases.getIamPolicy` permission on
\[resource\]\[google.iam.v1.GetIamPolicyRequest.resource\].
For backups, authorization requires `spanner.backups.getIamPolicy`
permission on \[resource\]\[google.iam.v1.GetIamPolicyRequest.resource\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. |
| `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.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
    // Make the request
    Policy response = databaseAdminClient.GetIamPolicy(resource);

### GetIamPolicy(GetIamPolicyRequest, CallSettings)

    public virtual Policy GetIamPolicy(GetIamPolicyRequest request, CallSettings callSettings = null)

Gets the access control policy for a database or backup resource.
Returns an empty policy if a database or backup exists but does not have a
policy set.

Authorization requires `spanner.databases.getIamPolicy` permission on
\[resource\]\[google.iam.v1.GetIamPolicyRequest.resource\].
For backups, authorization requires `spanner.backups.getIamPolicy`
permission on \[resource\]\[google.iam.v1.GetIamPolicyRequest.resource\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.GetIamPolicyRequest.html` 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.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    GetIamPolicyRequest request = new GetIamPolicyRequest
    {
        ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
        Options = new GetPolicyOptions(),
    };
    // Make the request
    Policy response = databaseAdminClient.GetIamPolicy(request);

### GetIamPolicy(string, CallSettings)

    public virtual Policy GetIamPolicy(string resource, CallSettings callSettings = null)

Gets the access control policy for a database or backup resource.
Returns an empty policy if a database or backup exists but does not have a
policy set.

Authorization requires `spanner.databases.getIamPolicy` permission on
\[resource\]\[google.iam.v1.GetIamPolicyRequest.resource\].
For backups, authorization requires `spanner.backups.getIamPolicy`
permission on \[resource\]\[google.iam.v1.GetIamPolicyRequest.resource\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://learn.microsoft.com/dotnet/api/system.string` REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. |
| `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.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    string resource = "a/wildcard/resource";
    // Make the request
    Policy response = databaseAdminClient.GetIamPolicy(resource);

### GetIamPolicyAsync(IResourceName, CallSettings)

    public virtual Task<Policy> GetIamPolicyAsync(IResourceName resource, CallSettings callSettings = null)

Gets the access control policy for a database or backup resource.
Returns an empty policy if a database or backup exists but does not have a
policy set.

Authorization requires `spanner.databases.getIamPolicy` permission on
\[resource\]\[google.iam.v1.GetIamPolicyRequest.resource\].
For backups, authorization requires `spanner.backups.getIamPolicy`
permission on \[resource\]\[google.iam.v1.GetIamPolicyRequest.resource\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. |
| `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.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
    // Make the request
    Policy response = await databaseAdminClient.GetIamPolicyAsync(resource);

### GetIamPolicyAsync(IResourceName, CancellationToken)

    public virtual Task<Policy> GetIamPolicyAsync(IResourceName resource, CancellationToken cancellationToken)

Gets the access control policy for a database or backup resource.
Returns an empty policy if a database or backup exists but does not have a
policy set.

Authorization requires `spanner.databases.getIamPolicy` permission on
\[resource\]\[google.iam.v1.GetIamPolicyRequest.resource\].
For backups, authorization requires `spanner.backups.getIamPolicy`
permission on \[resource\]\[google.iam.v1.GetIamPolicyRequest.resource\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
    // Make the request
    Policy response = await databaseAdminClient.GetIamPolicyAsync(resource);

### GetIamPolicyAsync(GetIamPolicyRequest, CallSettings)

    public virtual Task<Policy> GetIamPolicyAsync(GetIamPolicyRequest request, CallSettings callSettings = null)

Gets the access control policy for a database or backup resource.
Returns an empty policy if a database or backup exists but does not have a
policy set.

Authorization requires `spanner.databases.getIamPolicy` permission on
\[resource\]\[google.iam.v1.GetIamPolicyRequest.resource\].
For backups, authorization requires `spanner.backups.getIamPolicy`
permission on \[resource\]\[google.iam.v1.GetIamPolicyRequest.resource\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.GetIamPolicyRequest.html` 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.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    GetIamPolicyRequest request = new GetIamPolicyRequest
    {
        ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
        Options = new GetPolicyOptions(),
    };
    // Make the request
    Policy response = await databaseAdminClient.GetIamPolicyAsync(request);

### GetIamPolicyAsync(GetIamPolicyRequest, CancellationToken)

    public virtual Task<Policy> GetIamPolicyAsync(GetIamPolicyRequest request, CancellationToken cancellationToken)

Gets the access control policy for a database or backup resource.
Returns an empty policy if a database or backup exists but does not have a
policy set.

Authorization requires `spanner.databases.getIamPolicy` permission on
\[resource\]\[google.iam.v1.GetIamPolicyRequest.resource\].
For backups, authorization requires `spanner.backups.getIamPolicy`
permission on \[resource\]\[google.iam.v1.GetIamPolicyRequest.resource\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.GetIamPolicyRequest.html` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    GetIamPolicyRequest request = new GetIamPolicyRequest
    {
        ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
        Options = new GetPolicyOptions(),
    };
    // Make the request
    Policy response = await databaseAdminClient.GetIamPolicyAsync(request);

### GetIamPolicyAsync(string, CallSettings)

    public virtual Task<Policy> GetIamPolicyAsync(string resource, CallSettings callSettings = null)

Gets the access control policy for a database or backup resource.
Returns an empty policy if a database or backup exists but does not have a
policy set.

Authorization requires `spanner.databases.getIamPolicy` permission on
\[resource\]\[google.iam.v1.GetIamPolicyRequest.resource\].
For backups, authorization requires `spanner.backups.getIamPolicy`
permission on \[resource\]\[google.iam.v1.GetIamPolicyRequest.resource\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://learn.microsoft.com/dotnet/api/system.string` REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. |
| `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.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string resource = "a/wildcard/resource";
    // Make the request
    Policy response = await databaseAdminClient.GetIamPolicyAsync(resource);

### GetIamPolicyAsync(string, CancellationToken)

    public virtual Task<Policy> GetIamPolicyAsync(string resource, CancellationToken cancellationToken)

Gets the access control policy for a database or backup resource.
Returns an empty policy if a database or backup exists but does not have a
policy set.

Authorization requires `spanner.databases.getIamPolicy` permission on
\[resource\]\[google.iam.v1.GetIamPolicyRequest.resource\].
For backups, authorization requires `spanner.backups.getIamPolicy`
permission on \[resource\]\[google.iam.v1.GetIamPolicyRequest.resource\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://learn.microsoft.com/dotnet/api/system.string` REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string resource = "a/wildcard/resource";
    // Make the request
    Policy response = await databaseAdminClient.GetIamPolicyAsync(resource);

### InternalUpdateGraphOperation(InternalUpdateGraphOperationRequest, CallSettings)

    public virtual InternalUpdateGraphOperationResponse InternalUpdateGraphOperation(InternalUpdateGraphOperationRequest request, CallSettings callSettings = null)

This is an internal API called by Spanner Graph jobs. You should never need
to call this API directly.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.InternalUpdateGraphOperationRequest` 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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.InternalUpdateGraphOperationResponse` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    InternalUpdateGraphOperationRequest request = new InternalUpdateGraphOperationRequest
    {
        DatabaseAsDatabaseName = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]"),
        OperationId = "",
        Progress = 0,
        VmIdentityToken = "",
        Status = new Status(),
    };
    // Make the request
    InternalUpdateGraphOperationResponse response = databaseAdminClient.InternalUpdateGraphOperation(request);

### InternalUpdateGraphOperation(DatabaseName, string, CallSettings)

    public virtual InternalUpdateGraphOperationResponse InternalUpdateGraphOperation(DatabaseName database, string operationId, CallSettings callSettings = null)

This is an internal API called by Spanner Graph jobs. You should never need
to call this API directly.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `database` | `Google.Cloud.Spanner.Common.V1.DatabaseName` Internal field, do not use directly. |
| `operationId` | `https://learn.microsoft.com/dotnet/api/system.string` Internal field, do not use directly. |
| `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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.InternalUpdateGraphOperationResponse` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    DatabaseName database = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]");
    string operationId = "";
    // Make the request
    InternalUpdateGraphOperationResponse response = databaseAdminClient.InternalUpdateGraphOperation(database, operationId);

### InternalUpdateGraphOperation(string, string, CallSettings)

    public virtual InternalUpdateGraphOperationResponse InternalUpdateGraphOperation(string database, string operationId, CallSettings callSettings = null)

This is an internal API called by Spanner Graph jobs. You should never need
to call this API directly.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `database` | `https://learn.microsoft.com/dotnet/api/system.string` Internal field, do not use directly. |
| `operationId` | `https://learn.microsoft.com/dotnet/api/system.string` Internal field, do not use directly. |
| `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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.InternalUpdateGraphOperationResponse` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    string database = "projects/[PROJECT]/instances/[INSTANCE]/databases/[DATABASE]";
    string operationId = "";
    // Make the request
    InternalUpdateGraphOperationResponse response = databaseAdminClient.InternalUpdateGraphOperation(database, operationId);

### InternalUpdateGraphOperationAsync(InternalUpdateGraphOperationRequest, CallSettings)

    public virtual Task<InternalUpdateGraphOperationResponse> InternalUpdateGraphOperationAsync(InternalUpdateGraphOperationRequest request, CallSettings callSettings = null)

This is an internal API called by Spanner Graph jobs. You should never need
to call this API directly.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.InternalUpdateGraphOperationRequest` 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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.InternalUpdateGraphOperationResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    InternalUpdateGraphOperationRequest request = new InternalUpdateGraphOperationRequest
    {
        DatabaseAsDatabaseName = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]"),
        OperationId = "",
        Progress = 0,
        VmIdentityToken = "",
        Status = new Status(),
    };
    // Make the request
    InternalUpdateGraphOperationResponse response = await databaseAdminClient.InternalUpdateGraphOperationAsync(request);

### InternalUpdateGraphOperationAsync(InternalUpdateGraphOperationRequest, CancellationToken)

    public virtual Task<InternalUpdateGraphOperationResponse> InternalUpdateGraphOperationAsync(InternalUpdateGraphOperationRequest request, CancellationToken cancellationToken)

This is an internal API called by Spanner Graph jobs. You should never need
to call this API directly.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.InternalUpdateGraphOperationRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.InternalUpdateGraphOperationResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    InternalUpdateGraphOperationRequest request = new InternalUpdateGraphOperationRequest
    {
        DatabaseAsDatabaseName = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]"),
        OperationId = "",
        Progress = 0,
        VmIdentityToken = "",
        Status = new Status(),
    };
    // Make the request
    InternalUpdateGraphOperationResponse response = await databaseAdminClient.InternalUpdateGraphOperationAsync(request);

### InternalUpdateGraphOperationAsync(DatabaseName, string, CallSettings)

    public virtual Task<InternalUpdateGraphOperationResponse> InternalUpdateGraphOperationAsync(DatabaseName database, string operationId, CallSettings callSettings = null)

This is an internal API called by Spanner Graph jobs. You should never need
to call this API directly.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `database` | `Google.Cloud.Spanner.Common.V1.DatabaseName` Internal field, do not use directly. |
| `operationId` | `https://learn.microsoft.com/dotnet/api/system.string` Internal field, do not use directly. |
| `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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.InternalUpdateGraphOperationResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    DatabaseName database = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]");
    string operationId = "";
    // Make the request
    InternalUpdateGraphOperationResponse response = await databaseAdminClient.InternalUpdateGraphOperationAsync(database, operationId);

### InternalUpdateGraphOperationAsync(DatabaseName, string, CancellationToken)

    public virtual Task<InternalUpdateGraphOperationResponse> InternalUpdateGraphOperationAsync(DatabaseName database, string operationId, CancellationToken cancellationToken)

This is an internal API called by Spanner Graph jobs. You should never need
to call this API directly.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `database` | `Google.Cloud.Spanner.Common.V1.DatabaseName` Internal field, do not use directly. |
| `operationId` | `https://learn.microsoft.com/dotnet/api/system.string` Internal field, do not use directly. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.InternalUpdateGraphOperationResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    DatabaseName database = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]");
    string operationId = "";
    // Make the request
    InternalUpdateGraphOperationResponse response = await databaseAdminClient.InternalUpdateGraphOperationAsync(database, operationId);

### InternalUpdateGraphOperationAsync(string, string, CallSettings)

    public virtual Task<InternalUpdateGraphOperationResponse> InternalUpdateGraphOperationAsync(string database, string operationId, CallSettings callSettings = null)

This is an internal API called by Spanner Graph jobs. You should never need
to call this API directly.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `database` | `https://learn.microsoft.com/dotnet/api/system.string` Internal field, do not use directly. |
| `operationId` | `https://learn.microsoft.com/dotnet/api/system.string` Internal field, do not use directly. |
| `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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.InternalUpdateGraphOperationResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string database = "projects/[PROJECT]/instances/[INSTANCE]/databases/[DATABASE]";
    string operationId = "";
    // Make the request
    InternalUpdateGraphOperationResponse response = await databaseAdminClient.InternalUpdateGraphOperationAsync(database, operationId);

### InternalUpdateGraphOperationAsync(string, string, CancellationToken)

    public virtual Task<InternalUpdateGraphOperationResponse> InternalUpdateGraphOperationAsync(string database, string operationId, CancellationToken cancellationToken)

This is an internal API called by Spanner Graph jobs. You should never need
to call this API directly.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `database` | `https://learn.microsoft.com/dotnet/api/system.string` Internal field, do not use directly. |
| `operationId` | `https://learn.microsoft.com/dotnet/api/system.string` Internal field, do not use directly. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.InternalUpdateGraphOperationResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string database = "projects/[PROJECT]/instances/[INSTANCE]/databases/[DATABASE]";
    string operationId = "";
    // Make the request
    InternalUpdateGraphOperationResponse response = await databaseAdminClient.InternalUpdateGraphOperationAsync(database, operationId);

### ListBackupOperations(ListBackupOperationsRequest, CallSettings)

    public virtual PagedEnumerable<ListBackupOperationsResponse, Operation> ListBackupOperations(ListBackupOperationsRequest request, CallSettings callSettings = null)

Lists the backup \[long-running operations\]\[google.longrunning.Operation\] in
the given instance. A backup operation has a name of the form
`projects/<project>/instances/<instance>/backups/<backup>/operations/<operation>`.
The long-running operation
\[metadata\]\[google.longrunning.Operation.metadata\] field type
`metadata.type_url` describes the type of the metadata. Operations returned
include those that have completed/failed/canceled within the last 7 days,
and pending operations. Operations returned are ordered by
`operation.metadata.value.progress.start_time` in descending order starting
from the most recently started operation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListBackupOperationsRequest` 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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListBackupOperationsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html` | A pageable sequence of [Operation](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html) resources. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    ListBackupOperationsRequest request = new ListBackupOperationsRequest
    {
        ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"),
        Filter = "",
    };
    // Make the request
    PagedEnumerable<ListBackupOperationsResponse, Operation> response = databaseAdminClient.ListBackupOperations(request);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (Operation 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 (ListBackupOperationsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Operation 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<Operation> 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 (Operation 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;

### ListBackupOperations(InstanceName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListBackupOperationsResponse, Operation> ListBackupOperations(InstanceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists the backup \[long-running operations\]\[google.longrunning.Operation\] in
the given instance. A backup operation has a name of the form
`projects/<project>/instances/<instance>/backups/<backup>/operations/<operation>`.
The long-running operation
\[metadata\]\[google.longrunning.Operation.metadata\] field type
`metadata.type_url` describes the type of the metadata. Operations returned
include those that have completed/failed/canceled within the last 7 days,
and pending operations. Operations returned are ordered by
`operation.metadata.value.progress.start_time` in descending order starting
from the most recently started operation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `Google.Cloud.Spanner.Common.V1.InstanceName` Required. The instance of the backup operations. Values are of the form `projects/<project>/instances/<instance>`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` 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` | `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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListBackupOperationsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html` | A pageable sequence of [Operation](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html) resources. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]");
    // Make the request
    PagedEnumerable<ListBackupOperationsResponse, Operation> response = databaseAdminClient.ListBackupOperations(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (Operation 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 (ListBackupOperationsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Operation 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<Operation> 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 (Operation 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;

### ListBackupOperations(string, string, int?, CallSettings)

    public virtual PagedEnumerable<ListBackupOperationsResponse, Operation> ListBackupOperations(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists the backup \[long-running operations\]\[google.longrunning.Operation\] in
the given instance. A backup operation has a name of the form
`projects/<project>/instances/<instance>/backups/<backup>/operations/<operation>`.
The long-running operation
\[metadata\]\[google.longrunning.Operation.metadata\] field type
`metadata.type_url` describes the type of the metadata. Operations returned
include those that have completed/failed/canceled within the last 7 days,
and pending operations. Operations returned are ordered by
`operation.metadata.value.progress.start_time` in descending order starting
from the most recently started operation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The instance of the backup operations. Values are of the form `projects/<project>/instances/<instance>`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` 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` | `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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListBackupOperationsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html` | A pageable sequence of [Operation](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html) resources. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/instances/[INSTANCE]";
    // Make the request
    PagedEnumerable<ListBackupOperationsResponse, Operation> response = databaseAdminClient.ListBackupOperations(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (Operation 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 (ListBackupOperationsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Operation 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<Operation> 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 (Operation 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;

### ListBackupOperationsAsync(ListBackupOperationsRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListBackupOperationsResponse, Operation> ListBackupOperationsAsync(ListBackupOperationsRequest request, CallSettings callSettings = null)

Lists the backup \[long-running operations\]\[google.longrunning.Operation\] in
the given instance. A backup operation has a name of the form
`projects/<project>/instances/<instance>/backups/<backup>/operations/<operation>`.
The long-running operation
\[metadata\]\[google.longrunning.Operation.metadata\] field type
`metadata.type_url` describes the type of the metadata. Operations returned
include those that have completed/failed/canceled within the last 7 days,
and pending operations. Operations returned are ordered by
`operation.metadata.value.progress.start_time` in descending order starting
from the most recently started operation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListBackupOperationsRequest` 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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListBackupOperationsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html` | A pageable asynchronous sequence of [Operation](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html) resources. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    ListBackupOperationsRequest request = new ListBackupOperationsRequest
    {
        ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"),
        Filter = "",
    };
    // Make the request
    PagedAsyncEnumerable<ListBackupOperationsResponse, Operation> response = databaseAdminClient.ListBackupOperationsAsync(request);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (Operation 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 (ListBackupOperationsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Operation 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<Operation> 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 (Operation 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;

### ListBackupOperationsAsync(InstanceName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListBackupOperationsResponse, Operation> ListBackupOperationsAsync(InstanceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists the backup \[long-running operations\]\[google.longrunning.Operation\] in
the given instance. A backup operation has a name of the form
`projects/<project>/instances/<instance>/backups/<backup>/operations/<operation>`.
The long-running operation
\[metadata\]\[google.longrunning.Operation.metadata\] field type
`metadata.type_url` describes the type of the metadata. Operations returned
include those that have completed/failed/canceled within the last 7 days,
and pending operations. Operations returned are ordered by
`operation.metadata.value.progress.start_time` in descending order starting
from the most recently started operation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `Google.Cloud.Spanner.Common.V1.InstanceName` Required. The instance of the backup operations. Values are of the form `projects/<project>/instances/<instance>`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` 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` | `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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListBackupOperationsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html` | A pageable asynchronous sequence of [Operation](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html) resources. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]");
    // Make the request
    PagedAsyncEnumerable<ListBackupOperationsResponse, Operation> response = databaseAdminClient.ListBackupOperationsAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (Operation 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 (ListBackupOperationsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Operation 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<Operation> 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 (Operation 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;

### ListBackupOperationsAsync(string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListBackupOperationsResponse, Operation> ListBackupOperationsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists the backup \[long-running operations\]\[google.longrunning.Operation\] in
the given instance. A backup operation has a name of the form
`projects/<project>/instances/<instance>/backups/<backup>/operations/<operation>`.
The long-running operation
\[metadata\]\[google.longrunning.Operation.metadata\] field type
`metadata.type_url` describes the type of the metadata. Operations returned
include those that have completed/failed/canceled within the last 7 days,
and pending operations. Operations returned are ordered by
`operation.metadata.value.progress.start_time` in descending order starting
from the most recently started operation.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The instance of the backup operations. Values are of the form `projects/<project>/instances/<instance>`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` 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` | `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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListBackupOperationsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html` | A pageable asynchronous sequence of [Operation](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html) resources. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/instances/[INSTANCE]";
    // Make the request
    PagedAsyncEnumerable<ListBackupOperationsResponse, Operation> response = databaseAdminClient.ListBackupOperationsAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (Operation 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 (ListBackupOperationsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Operation 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<Operation> 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 (Operation 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;

### ListBackupSchedules(ListBackupSchedulesRequest, CallSettings)

    public virtual PagedEnumerable<ListBackupSchedulesResponse, BackupSchedule> ListBackupSchedules(ListBackupSchedulesRequest request, CallSettings callSettings = null)

Lists all the backup schedules for the database.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListBackupSchedulesRequest` 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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListBackupSchedulesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule` | A pageable sequence of [BackupSchedule](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule) resources. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    ListBackupSchedulesRequest request = new ListBackupSchedulesRequest
    {
        ParentAsDatabaseName = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]"),
    };
    // Make the request
    PagedEnumerable<ListBackupSchedulesResponse, BackupSchedule> response = databaseAdminClient.ListBackupSchedules(request);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (BackupSchedule 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 (ListBackupSchedulesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (BackupSchedule 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<BackupSchedule> 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 (BackupSchedule 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;

### ListBackupSchedules(DatabaseName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListBackupSchedulesResponse, BackupSchedule> ListBackupSchedules(DatabaseName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all the backup schedules for the database.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `Google.Cloud.Spanner.Common.V1.DatabaseName` Required. Database is the parent resource whose backup schedules should be listed. Values are of the form projects/\<project\>/instances/\<instance\>/databases/\<database\> |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` 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` | `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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListBackupSchedulesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule` | A pageable sequence of [BackupSchedule](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule) resources. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    DatabaseName parent = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]");
    // Make the request
    PagedEnumerable<ListBackupSchedulesResponse, BackupSchedule> response = databaseAdminClient.ListBackupSchedules(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (BackupSchedule 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 (ListBackupSchedulesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (BackupSchedule 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<BackupSchedule> 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 (BackupSchedule 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;

### ListBackupSchedules(string, string, int?, CallSettings)

    public virtual PagedEnumerable<ListBackupSchedulesResponse, BackupSchedule> ListBackupSchedules(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all the backup schedules for the database.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Database is the parent resource whose backup schedules should be listed. Values are of the form projects/\<project\>/instances/\<instance\>/databases/\<database\> |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` 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` | `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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListBackupSchedulesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule` | A pageable sequence of [BackupSchedule](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule) resources. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/instances/[INSTANCE]/databases/[DATABASE]";
    // Make the request
    PagedEnumerable<ListBackupSchedulesResponse, BackupSchedule> response = databaseAdminClient.ListBackupSchedules(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (BackupSchedule 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 (ListBackupSchedulesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (BackupSchedule 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<BackupSchedule> 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 (BackupSchedule 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;

### ListBackupSchedulesAsync(ListBackupSchedulesRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListBackupSchedulesResponse, BackupSchedule> ListBackupSchedulesAsync(ListBackupSchedulesRequest request, CallSettings callSettings = null)

Lists all the backup schedules for the database.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListBackupSchedulesRequest` 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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListBackupSchedulesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule` | A pageable asynchronous sequence of [BackupSchedule](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule) resources. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    ListBackupSchedulesRequest request = new ListBackupSchedulesRequest
    {
        ParentAsDatabaseName = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]"),
    };
    // Make the request
    PagedAsyncEnumerable<ListBackupSchedulesResponse, BackupSchedule> response = databaseAdminClient.ListBackupSchedulesAsync(request);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (BackupSchedule 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 (ListBackupSchedulesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (BackupSchedule 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<BackupSchedule> 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 (BackupSchedule 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;

### ListBackupSchedulesAsync(DatabaseName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListBackupSchedulesResponse, BackupSchedule> ListBackupSchedulesAsync(DatabaseName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all the backup schedules for the database.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `Google.Cloud.Spanner.Common.V1.DatabaseName` Required. Database is the parent resource whose backup schedules should be listed. Values are of the form projects/\<project\>/instances/\<instance\>/databases/\<database\> |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` 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` | `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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListBackupSchedulesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule` | A pageable asynchronous sequence of [BackupSchedule](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule) resources. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    DatabaseName parent = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]");
    // Make the request
    PagedAsyncEnumerable<ListBackupSchedulesResponse, BackupSchedule> response = databaseAdminClient.ListBackupSchedulesAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (BackupSchedule 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 (ListBackupSchedulesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (BackupSchedule 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<BackupSchedule> 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 (BackupSchedule 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;

### ListBackupSchedulesAsync(string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListBackupSchedulesResponse, BackupSchedule> ListBackupSchedulesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists all the backup schedules for the database.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Database is the parent resource whose backup schedules should be listed. Values are of the form projects/\<project\>/instances/\<instance\>/databases/\<database\> |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` 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` | `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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListBackupSchedulesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule` | A pageable asynchronous sequence of [BackupSchedule](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule) resources. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/instances/[INSTANCE]/databases/[DATABASE]";
    // Make the request
    PagedAsyncEnumerable<ListBackupSchedulesResponse, BackupSchedule> response = databaseAdminClient.ListBackupSchedulesAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (BackupSchedule 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 (ListBackupSchedulesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (BackupSchedule 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<BackupSchedule> 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 (BackupSchedule 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;

### ListBackups(ListBackupsRequest, CallSettings)

    public virtual PagedEnumerable<ListBackupsResponse, Backup> ListBackups(ListBackupsRequest request, CallSettings callSettings = null)

Lists completed and pending backups.
Backups returned are ordered by `create_time` in descending order,
starting from the most recent `create_time`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListBackupsRequest` 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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListBackupsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backup` | A pageable sequence of [Backup](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backup) resources. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    ListBackupsRequest request = new ListBackupsRequest
    {
        ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"),
        Filter = "",
    };
    // Make the request
    PagedEnumerable<ListBackupsResponse, Backup> response = databaseAdminClient.ListBackups(request);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (Backup 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 (ListBackupsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Backup 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<Backup> 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 (Backup 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;

### ListBackups(InstanceName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListBackupsResponse, Backup> ListBackups(InstanceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists completed and pending backups.
Backups returned are ordered by `create_time` in descending order,
starting from the most recent `create_time`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `Google.Cloud.Spanner.Common.V1.InstanceName` Required. The instance to list backups from. Values are of the form `projects/<project>/instances/<instance>`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` 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` | `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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListBackupsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backup` | A pageable sequence of [Backup](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backup) resources. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]");
    // Make the request
    PagedEnumerable<ListBackupsResponse, Backup> response = databaseAdminClient.ListBackups(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (Backup 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 (ListBackupsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Backup 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<Backup> 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 (Backup 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;

### ListBackups(string, string, int?, CallSettings)

    public virtual PagedEnumerable<ListBackupsResponse, Backup> ListBackups(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists completed and pending backups.
Backups returned are ordered by `create_time` in descending order,
starting from the most recent `create_time`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The instance to list backups from. Values are of the form `projects/<project>/instances/<instance>`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` 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` | `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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListBackupsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backup` | A pageable sequence of [Backup](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backup) resources. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/instances/[INSTANCE]";
    // Make the request
    PagedEnumerable<ListBackupsResponse, Backup> response = databaseAdminClient.ListBackups(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (Backup 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 (ListBackupsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Backup 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<Backup> 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 (Backup 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;

### ListBackupsAsync(ListBackupsRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListBackupsResponse, Backup> ListBackupsAsync(ListBackupsRequest request, CallSettings callSettings = null)

Lists completed and pending backups.
Backups returned are ordered by `create_time` in descending order,
starting from the most recent `create_time`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListBackupsRequest` 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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListBackupsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backup` | A pageable asynchronous sequence of [Backup](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backup) resources. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    ListBackupsRequest request = new ListBackupsRequest
    {
        ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"),
        Filter = "",
    };
    // Make the request
    PagedAsyncEnumerable<ListBackupsResponse, Backup> response = databaseAdminClient.ListBackupsAsync(request);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (Backup 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 (ListBackupsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Backup 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<Backup> 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 (Backup 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;

### ListBackupsAsync(InstanceName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListBackupsResponse, Backup> ListBackupsAsync(InstanceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists completed and pending backups.
Backups returned are ordered by `create_time` in descending order,
starting from the most recent `create_time`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `Google.Cloud.Spanner.Common.V1.InstanceName` Required. The instance to list backups from. Values are of the form `projects/<project>/instances/<instance>`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` 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` | `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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListBackupsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backup` | A pageable asynchronous sequence of [Backup](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backup) resources. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]");
    // Make the request
    PagedAsyncEnumerable<ListBackupsResponse, Backup> response = databaseAdminClient.ListBackupsAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (Backup 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 (ListBackupsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Backup 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<Backup> 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 (Backup 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;

### ListBackupsAsync(string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListBackupsResponse, Backup> ListBackupsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists completed and pending backups.
Backups returned are ordered by `create_time` in descending order,
starting from the most recent `create_time`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The instance to list backups from. Values are of the form `projects/<project>/instances/<instance>`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` 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` | `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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListBackupsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backup` | A pageable asynchronous sequence of [Backup](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backup) resources. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/instances/[INSTANCE]";
    // Make the request
    PagedAsyncEnumerable<ListBackupsResponse, Backup> response = databaseAdminClient.ListBackupsAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (Backup 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 (ListBackupsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Backup 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<Backup> 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 (Backup 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;

### ListDatabaseOperations(ListDatabaseOperationsRequest, CallSettings)

    public virtual PagedEnumerable<ListDatabaseOperationsResponse, Operation> ListDatabaseOperations(ListDatabaseOperationsRequest request, CallSettings callSettings = null)

Lists database \[longrunning-operations\]\[google.longrunning.Operation\].
A database operation has a name of the form
`projects/<project>/instances/<instance>/databases/<database>/operations/<operation>`.
The long-running operation
\[metadata\]\[google.longrunning.Operation.metadata\] field type
`metadata.type_url` describes the type of the metadata. Operations returned
include those that have completed/failed/canceled within the last 7 days,
and pending operations.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListDatabaseOperationsRequest` 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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListDatabaseOperationsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html` | A pageable sequence of [Operation](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html) resources. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    ListDatabaseOperationsRequest request = new ListDatabaseOperationsRequest
    {
        ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"),
        Filter = "",
    };
    // Make the request
    PagedEnumerable<ListDatabaseOperationsResponse, Operation> response = databaseAdminClient.ListDatabaseOperations(request);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (Operation 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 (ListDatabaseOperationsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Operation 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<Operation> 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 (Operation 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;

### ListDatabaseOperations(InstanceName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListDatabaseOperationsResponse, Operation> ListDatabaseOperations(InstanceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists database \[longrunning-operations\]\[google.longrunning.Operation\].
A database operation has a name of the form
`projects/<project>/instances/<instance>/databases/<database>/operations/<operation>`.
The long-running operation
\[metadata\]\[google.longrunning.Operation.metadata\] field type
`metadata.type_url` describes the type of the metadata. Operations returned
include those that have completed/failed/canceled within the last 7 days,
and pending operations.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `Google.Cloud.Spanner.Common.V1.InstanceName` Required. The instance of the database operations. Values are of the form `projects/<project>/instances/<instance>`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` 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` | `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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListDatabaseOperationsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html` | A pageable sequence of [Operation](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html) resources. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]");
    // Make the request
    PagedEnumerable<ListDatabaseOperationsResponse, Operation> response = databaseAdminClient.ListDatabaseOperations(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (Operation 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 (ListDatabaseOperationsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Operation 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<Operation> 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 (Operation 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;

### ListDatabaseOperations(string, string, int?, CallSettings)

    public virtual PagedEnumerable<ListDatabaseOperationsResponse, Operation> ListDatabaseOperations(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists database \[longrunning-operations\]\[google.longrunning.Operation\].
A database operation has a name of the form
`projects/<project>/instances/<instance>/databases/<database>/operations/<operation>`.
The long-running operation
\[metadata\]\[google.longrunning.Operation.metadata\] field type
`metadata.type_url` describes the type of the metadata. Operations returned
include those that have completed/failed/canceled within the last 7 days,
and pending operations.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The instance of the database operations. Values are of the form `projects/<project>/instances/<instance>`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` 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` | `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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListDatabaseOperationsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html` | A pageable sequence of [Operation](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html) resources. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/instances/[INSTANCE]";
    // Make the request
    PagedEnumerable<ListDatabaseOperationsResponse, Operation> response = databaseAdminClient.ListDatabaseOperations(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (Operation 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 (ListDatabaseOperationsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Operation 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<Operation> 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 (Operation 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;

### ListDatabaseOperationsAsync(ListDatabaseOperationsRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListDatabaseOperationsResponse, Operation> ListDatabaseOperationsAsync(ListDatabaseOperationsRequest request, CallSettings callSettings = null)

Lists database \[longrunning-operations\]\[google.longrunning.Operation\].
A database operation has a name of the form
`projects/<project>/instances/<instance>/databases/<database>/operations/<operation>`.
The long-running operation
\[metadata\]\[google.longrunning.Operation.metadata\] field type
`metadata.type_url` describes the type of the metadata. Operations returned
include those that have completed/failed/canceled within the last 7 days,
and pending operations.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListDatabaseOperationsRequest` 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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListDatabaseOperationsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html` | A pageable asynchronous sequence of [Operation](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html) resources. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    ListDatabaseOperationsRequest request = new ListDatabaseOperationsRequest
    {
        ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"),
        Filter = "",
    };
    // Make the request
    PagedAsyncEnumerable<ListDatabaseOperationsResponse, Operation> response = databaseAdminClient.ListDatabaseOperationsAsync(request);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (Operation 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 (ListDatabaseOperationsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Operation 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<Operation> 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 (Operation 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;

### ListDatabaseOperationsAsync(InstanceName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListDatabaseOperationsResponse, Operation> ListDatabaseOperationsAsync(InstanceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists database \[longrunning-operations\]\[google.longrunning.Operation\].
A database operation has a name of the form
`projects/<project>/instances/<instance>/databases/<database>/operations/<operation>`.
The long-running operation
\[metadata\]\[google.longrunning.Operation.metadata\] field type
`metadata.type_url` describes the type of the metadata. Operations returned
include those that have completed/failed/canceled within the last 7 days,
and pending operations.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `Google.Cloud.Spanner.Common.V1.InstanceName` Required. The instance of the database operations. Values are of the form `projects/<project>/instances/<instance>`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` 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` | `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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListDatabaseOperationsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html` | A pageable asynchronous sequence of [Operation](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html) resources. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]");
    // Make the request
    PagedAsyncEnumerable<ListDatabaseOperationsResponse, Operation> response = databaseAdminClient.ListDatabaseOperationsAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (Operation 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 (ListDatabaseOperationsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Operation 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<Operation> 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 (Operation 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;

### ListDatabaseOperationsAsync(string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListDatabaseOperationsResponse, Operation> ListDatabaseOperationsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists database \[longrunning-operations\]\[google.longrunning.Operation\].
A database operation has a name of the form
`projects/<project>/instances/<instance>/databases/<database>/operations/<operation>`.
The long-running operation
\[metadata\]\[google.longrunning.Operation.metadata\] field type
`metadata.type_url` describes the type of the metadata. Operations returned
include those that have completed/failed/canceled within the last 7 days,
and pending operations.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The instance of the database operations. Values are of the form `projects/<project>/instances/<instance>`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` 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` | `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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListDatabaseOperationsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html` | A pageable asynchronous sequence of [Operation](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation.html) resources. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/instances/[INSTANCE]";
    // Make the request
    PagedAsyncEnumerable<ListDatabaseOperationsResponse, Operation> response = databaseAdminClient.ListDatabaseOperationsAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (Operation 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 (ListDatabaseOperationsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Operation 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<Operation> 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 (Operation 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;

### ListDatabaseRoles(ListDatabaseRolesRequest, CallSettings)

    public virtual PagedEnumerable<ListDatabaseRolesResponse, DatabaseRole> ListDatabaseRoles(ListDatabaseRolesRequest request, CallSettings callSettings = null)

Lists Cloud Spanner database roles.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListDatabaseRolesRequest` 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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListDatabaseRolesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.DatabaseRole` | A pageable sequence of [DatabaseRole](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.DatabaseRole) resources. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    ListDatabaseRolesRequest request = new ListDatabaseRolesRequest
    {
        ParentAsDatabaseName = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]"),
    };
    // Make the request
    PagedEnumerable<ListDatabaseRolesResponse, DatabaseRole> response = databaseAdminClient.ListDatabaseRoles(request);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (DatabaseRole 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 (ListDatabaseRolesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (DatabaseRole 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<DatabaseRole> 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 (DatabaseRole 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;

### ListDatabaseRoles(DatabaseName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListDatabaseRolesResponse, DatabaseRole> ListDatabaseRoles(DatabaseName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Cloud Spanner database roles.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `Google.Cloud.Spanner.Common.V1.DatabaseName` Required. The database whose roles should be listed. Values are of the form `projects/<project>/instances/<instance>/databases/<database>`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` 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` | `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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListDatabaseRolesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.DatabaseRole` | A pageable sequence of [DatabaseRole](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.DatabaseRole) resources. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    DatabaseName parent = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]");
    // Make the request
    PagedEnumerable<ListDatabaseRolesResponse, DatabaseRole> response = databaseAdminClient.ListDatabaseRoles(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (DatabaseRole 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 (ListDatabaseRolesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (DatabaseRole 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<DatabaseRole> 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 (DatabaseRole 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;

### ListDatabaseRoles(string, string, int?, CallSettings)

    public virtual PagedEnumerable<ListDatabaseRolesResponse, DatabaseRole> ListDatabaseRoles(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Cloud Spanner database roles.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The database whose roles should be listed. Values are of the form `projects/<project>/instances/<instance>/databases/<database>`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` 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` | `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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListDatabaseRolesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.DatabaseRole` | A pageable sequence of [DatabaseRole](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.DatabaseRole) resources. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/instances/[INSTANCE]/databases/[DATABASE]";
    // Make the request
    PagedEnumerable<ListDatabaseRolesResponse, DatabaseRole> response = databaseAdminClient.ListDatabaseRoles(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (DatabaseRole 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 (ListDatabaseRolesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (DatabaseRole 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<DatabaseRole> 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 (DatabaseRole 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;

### ListDatabaseRolesAsync(ListDatabaseRolesRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListDatabaseRolesResponse, DatabaseRole> ListDatabaseRolesAsync(ListDatabaseRolesRequest request, CallSettings callSettings = null)

Lists Cloud Spanner database roles.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListDatabaseRolesRequest` 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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListDatabaseRolesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.DatabaseRole` | A pageable asynchronous sequence of [DatabaseRole](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.DatabaseRole) resources. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    ListDatabaseRolesRequest request = new ListDatabaseRolesRequest
    {
        ParentAsDatabaseName = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]"),
    };
    // Make the request
    PagedAsyncEnumerable<ListDatabaseRolesResponse, DatabaseRole> response = databaseAdminClient.ListDatabaseRolesAsync(request);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (DatabaseRole 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 (ListDatabaseRolesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (DatabaseRole 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<DatabaseRole> 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 (DatabaseRole 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;

### ListDatabaseRolesAsync(DatabaseName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListDatabaseRolesResponse, DatabaseRole> ListDatabaseRolesAsync(DatabaseName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Cloud Spanner database roles.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `Google.Cloud.Spanner.Common.V1.DatabaseName` Required. The database whose roles should be listed. Values are of the form `projects/<project>/instances/<instance>/databases/<database>`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` 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` | `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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListDatabaseRolesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.DatabaseRole` | A pageable asynchronous sequence of [DatabaseRole](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.DatabaseRole) resources. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    DatabaseName parent = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]");
    // Make the request
    PagedAsyncEnumerable<ListDatabaseRolesResponse, DatabaseRole> response = databaseAdminClient.ListDatabaseRolesAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (DatabaseRole 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 (ListDatabaseRolesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (DatabaseRole 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<DatabaseRole> 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 (DatabaseRole 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;

### ListDatabaseRolesAsync(string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListDatabaseRolesResponse, DatabaseRole> ListDatabaseRolesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Cloud Spanner database roles.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The database whose roles should be listed. Values are of the form `projects/<project>/instances/<instance>/databases/<database>`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` 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` | `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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListDatabaseRolesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.DatabaseRole` | A pageable asynchronous sequence of [DatabaseRole](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.DatabaseRole) resources. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/instances/[INSTANCE]/databases/[DATABASE]";
    // Make the request
    PagedAsyncEnumerable<ListDatabaseRolesResponse, DatabaseRole> response = databaseAdminClient.ListDatabaseRolesAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (DatabaseRole 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 (ListDatabaseRolesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (DatabaseRole 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<DatabaseRole> 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 (DatabaseRole 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;

### ListDatabases(ListDatabasesRequest, CallSettings)

    public virtual PagedEnumerable<ListDatabasesResponse, Database> ListDatabases(ListDatabasesRequest request, CallSettings callSettings = null)

Lists Cloud Spanner databases.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListDatabasesRequest` 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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListDatabasesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Database` | A pageable sequence of [Database](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Database) resources. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    ListDatabasesRequest request = new ListDatabasesRequest
    {
        ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"),
    };
    // Make the request
    PagedEnumerable<ListDatabasesResponse, Database> response = databaseAdminClient.ListDatabases(request);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (Database 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 (ListDatabasesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Database 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<Database> 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 (Database 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;

### ListDatabases(InstanceName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListDatabasesResponse, Database> ListDatabases(InstanceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Cloud Spanner databases.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `Google.Cloud.Spanner.Common.V1.InstanceName` Required. The instance whose databases should be listed. Values are of the form `projects/<project>/instances/<instance>`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` 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` | `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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListDatabasesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Database` | A pageable sequence of [Database](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Database) resources. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]");
    // Make the request
    PagedEnumerable<ListDatabasesResponse, Database> response = databaseAdminClient.ListDatabases(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (Database 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 (ListDatabasesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Database 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<Database> 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 (Database 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;

### ListDatabases(string, string, int?, CallSettings)

    public virtual PagedEnumerable<ListDatabasesResponse, Database> ListDatabases(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Cloud Spanner databases.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The instance whose databases should be listed. Values are of the form `projects/<project>/instances/<instance>`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` 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` | `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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListDatabasesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Database` | A pageable sequence of [Database](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Database) resources. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/instances/[INSTANCE]";
    // Make the request
    PagedEnumerable<ListDatabasesResponse, Database> response = databaseAdminClient.ListDatabases(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (Database 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 (ListDatabasesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Database 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<Database> 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 (Database 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;

### ListDatabasesAsync(ListDatabasesRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListDatabasesResponse, Database> ListDatabasesAsync(ListDatabasesRequest request, CallSettings callSettings = null)

Lists Cloud Spanner databases.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListDatabasesRequest` 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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListDatabasesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Database` | A pageable asynchronous sequence of [Database](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Database) resources. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    ListDatabasesRequest request = new ListDatabasesRequest
    {
        ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"),
    };
    // Make the request
    PagedAsyncEnumerable<ListDatabasesResponse, Database> response = databaseAdminClient.ListDatabasesAsync(request);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (Database 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 (ListDatabasesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Database 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<Database> 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 (Database 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;

### ListDatabasesAsync(InstanceName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListDatabasesResponse, Database> ListDatabasesAsync(InstanceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Cloud Spanner databases.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `Google.Cloud.Spanner.Common.V1.InstanceName` Required. The instance whose databases should be listed. Values are of the form `projects/<project>/instances/<instance>`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` 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` | `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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListDatabasesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Database` | A pageable asynchronous sequence of [Database](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Database) resources. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]");
    // Make the request
    PagedAsyncEnumerable<ListDatabasesResponse, Database> response = databaseAdminClient.ListDatabasesAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (Database 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 (ListDatabasesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Database 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<Database> 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 (Database 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;

### ListDatabasesAsync(string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListDatabasesResponse, Database> ListDatabasesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists Cloud Spanner databases.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The instance whose databases should be listed. Values are of the form `projects/<project>/instances/<instance>`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` 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` | `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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.ListDatabasesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Database` | A pageable asynchronous sequence of [Database](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Database) resources. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/instances/[INSTANCE]";
    // Make the request
    PagedAsyncEnumerable<ListDatabasesResponse, Database> response = databaseAdminClient.ListDatabasesAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (Database 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 (ListDatabasesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Database 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<Database> 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 (Database 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;

### PollOnceCopyBackup(string, CallSettings)

    public virtual Operation<Backup, CopyBackupMetadata> PollOnceCopyBackup(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `CopyBackup`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backuphttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CopyBackupMetadata` | The result of polling the operation. |

### PollOnceCopyBackupAsync(string, CallSettings)

    public virtual Task<Operation<Backup, CopyBackupMetadata>> PollOnceCopyBackupAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`CopyBackup`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backuphttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CopyBackupMetadata` | A task representing the result of polling the operation. |

### PollOnceCreateBackup(string, CallSettings)

    public virtual Operation<Backup, CreateBackupMetadata> PollOnceCreateBackup(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `CreateBackup`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backuphttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CreateBackupMetadata` | The result of polling the operation. |

### PollOnceCreateBackupAsync(string, CallSettings)

    public virtual Task<Operation<Backup, CreateBackupMetadata>> PollOnceCreateBackupAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`CreateBackup`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backuphttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CreateBackupMetadata` | A task representing the result of polling the operation. |

### PollOnceCreateDatabase(string, CallSettings)

    public virtual Operation<Database, CreateDatabaseMetadata> PollOnceCreateDatabase(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `CreateDatabase`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Databasehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CreateDatabaseMetadata` | The result of polling the operation. |

### PollOnceCreateDatabaseAsync(string, CallSettings)

    public virtual Task<Operation<Database, CreateDatabaseMetadata>> PollOnceCreateDatabaseAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`CreateDatabase`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Databasehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.CreateDatabaseMetadata` | A task representing the result of polling the operation. |

### PollOnceRestoreDatabase(string, CallSettings)

    public virtual Operation<Database, RestoreDatabaseMetadata> PollOnceRestoreDatabase(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `RestoreDatabase`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Databasehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.RestoreDatabaseMetadata` | The result of polling the operation. |

### PollOnceRestoreDatabaseAsync(string, CallSettings)

    public virtual Task<Operation<Database, RestoreDatabaseMetadata>> PollOnceRestoreDatabaseAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`RestoreDatabase`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Databasehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.RestoreDatabaseMetadata` | A task representing the result of polling the operation. |

### PollOnceUpdateDatabase(string, CallSettings)

    public virtual Operation<Database, UpdateDatabaseMetadata> PollOnceUpdateDatabase(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `UpdateDatabase`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Databasehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.UpdateDatabaseMetadata` | The result of polling the operation. |

### PollOnceUpdateDatabaseAsync(string, CallSettings)

    public virtual Task<Operation<Database, UpdateDatabaseMetadata>> PollOnceUpdateDatabaseAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`UpdateDatabase`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Databasehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.UpdateDatabaseMetadata` | A task representing the result of polling the operation. |

### PollOnceUpdateDatabaseDdl(string, CallSettings)

    public virtual Operation<Empty, UpdateDatabaseDdlMetadata> PollOnceUpdateDatabaseDdl(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `UpdateDatabaseDdl`
.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `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://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.UpdateDatabaseDdlMetadata` | The result of polling the operation. |

### PollOnceUpdateDatabaseDdlAsync(string, CallSettings)

    public virtual Task<Operation<Empty, UpdateDatabaseDdlMetadata>> PollOnceUpdateDatabaseDdlAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`UpdateDatabaseDdl`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `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://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.UpdateDatabaseDdlMetadata` | A task representing the result of polling the operation. |

### RestoreDatabase(RestoreDatabaseRequest, CallSettings)

    public virtual Operation<Database, RestoreDatabaseMetadata> RestoreDatabase(RestoreDatabaseRequest request, CallSettings callSettings = null)

Create a new database by restoring from a completed backup. The new
database must be in the same project and in an instance with the same
instance configuration as the instance containing
the backup. The returned database \[long-running
operation\]\[google.longrunning.Operation\] has a name of the format
`projects/<project>/instances/<instance>/databases/<database>/operations/<operation_id>`,
and can be used to track the progress of the operation, and to cancel it.
The \[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[RestoreDatabaseMetadata\]\[google.spanner.admin.database.v1.RestoreDatabaseMetadata\].
The \[response\]\[google.longrunning.Operation.response\] type
is \[Database\]\[google.spanner.admin.database.v1.Database\], if
successful. Cancelling the returned operation will stop the restore and
delete the database.
There can be only one database being restored into an instance at a time.
Once the restore operation completes, a new restore operation can be
initiated, without waiting for the optimize operation associated with the
first restore to complete.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.RestoreDatabaseRequest` 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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Databasehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.RestoreDatabaseMetadata` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    RestoreDatabaseRequest request = new RestoreDatabaseRequest
    {
        ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"),
        DatabaseId = "",
        BackupAsBackupName = BackupName.FromProjectInstanceBackup("[PROJECT]", "[INSTANCE]", "[BACKUP]"),
        EncryptionConfig = new RestoreDatabaseEncryptionConfig(),
    };
    // Make the request
    Operation<Database, RestoreDatabaseMetadata> response = databaseAdminClient.RestoreDatabase(request);

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

### RestoreDatabase(InstanceName, string, BackupName, CallSettings)

    public virtual Operation<Database, RestoreDatabaseMetadata> RestoreDatabase(InstanceName parent, string databaseId, BackupName backup, CallSettings callSettings = null)

Create a new database by restoring from a completed backup. The new
database must be in the same project and in an instance with the same
instance configuration as the instance containing
the backup. The returned database \[long-running
operation\]\[google.longrunning.Operation\] has a name of the format
`projects/<project>/instances/<instance>/databases/<database>/operations/<operation_id>`,
and can be used to track the progress of the operation, and to cancel it.
The \[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[RestoreDatabaseMetadata\]\[google.spanner.admin.database.v1.RestoreDatabaseMetadata\].
The \[response\]\[google.longrunning.Operation.response\] type
is \[Database\]\[google.spanner.admin.database.v1.Database\], if
successful. Cancelling the returned operation will stop the restore and
delete the database.
There can be only one database being restored into an instance at a time.
Once the restore operation completes, a new restore operation can be
initiated, without waiting for the optimize operation associated with the
first restore to complete.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `Google.Cloud.Spanner.Common.V1.InstanceName` Required. The name of the instance in which to create the restored database. This instance must be in the same project and have the same instance configuration as the instance containing the source backup. Values are of the form `projects/<project>/instances/<instance>`. |
| `databaseId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The id of the database to create and restore to. This database must not already exist. The `database_id` appended to `parent` forms the full database name of the form `projects/<project>/instances/<instance>/databases/<database_id>`. |
| `backup` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupName` Name of the backup from which to restore. Values are of the form `projects/<project>/instances/<instance>/backups/<backup>`. |
| `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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Databasehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.RestoreDatabaseMetadata` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]");
    string databaseId = "";
    BackupName backup = BackupName.FromProjectInstanceBackup("[PROJECT]", "[INSTANCE]", "[BACKUP]");
    // Make the request
    Operation<Database, RestoreDatabaseMetadata> response = databaseAdminClient.RestoreDatabase(parent, databaseId, backup);

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

### RestoreDatabase(string, string, string, CallSettings)

    public virtual Operation<Database, RestoreDatabaseMetadata> RestoreDatabase(string parent, string databaseId, string backup, CallSettings callSettings = null)

Create a new database by restoring from a completed backup. The new
database must be in the same project and in an instance with the same
instance configuration as the instance containing
the backup. The returned database \[long-running
operation\]\[google.longrunning.Operation\] has a name of the format
`projects/<project>/instances/<instance>/databases/<database>/operations/<operation_id>`,
and can be used to track the progress of the operation, and to cancel it.
The \[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[RestoreDatabaseMetadata\]\[google.spanner.admin.database.v1.RestoreDatabaseMetadata\].
The \[response\]\[google.longrunning.Operation.response\] type
is \[Database\]\[google.spanner.admin.database.v1.Database\], if
successful. Cancelling the returned operation will stop the restore and
delete the database.
There can be only one database being restored into an instance at a time.
Once the restore operation completes, a new restore operation can be
initiated, without waiting for the optimize operation associated with the
first restore to complete.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the instance in which to create the restored database. This instance must be in the same project and have the same instance configuration as the instance containing the source backup. Values are of the form `projects/<project>/instances/<instance>`. |
| `databaseId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The id of the database to create and restore to. This database must not already exist. The `database_id` appended to `parent` forms the full database name of the form `projects/<project>/instances/<instance>/databases/<database_id>`. |
| `backup` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the backup from which to restore. Values are of the form `projects/<project>/instances/<instance>/backups/<backup>`. |
| `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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Databasehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.RestoreDatabaseMetadata` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/instances/[INSTANCE]";
    string databaseId = "";
    string backup = "projects/[PROJECT]/instances/[INSTANCE]/backups/[BACKUP]";
    // Make the request
    Operation<Database, RestoreDatabaseMetadata> response = databaseAdminClient.RestoreDatabase(parent, databaseId, backup);

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

### RestoreDatabaseAsync(RestoreDatabaseRequest, CallSettings)

    public virtual Task<Operation<Database, RestoreDatabaseMetadata>> RestoreDatabaseAsync(RestoreDatabaseRequest request, CallSettings callSettings = null)

Create a new database by restoring from a completed backup. The new
database must be in the same project and in an instance with the same
instance configuration as the instance containing
the backup. The returned database \[long-running
operation\]\[google.longrunning.Operation\] has a name of the format
`projects/<project>/instances/<instance>/databases/<database>/operations/<operation_id>`,
and can be used to track the progress of the operation, and to cancel it.
The \[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[RestoreDatabaseMetadata\]\[google.spanner.admin.database.v1.RestoreDatabaseMetadata\].
The \[response\]\[google.longrunning.Operation.response\] type
is \[Database\]\[google.spanner.admin.database.v1.Database\], if
successful. Cancelling the returned operation will stop the restore and
delete the database.
There can be only one database being restored into an instance at a time.
Once the restore operation completes, a new restore operation can be
initiated, without waiting for the optimize operation associated with the
first restore to complete.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.RestoreDatabaseRequest` 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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Databasehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.RestoreDatabaseMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    RestoreDatabaseRequest request = new RestoreDatabaseRequest
    {
        ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"),
        DatabaseId = "",
        BackupAsBackupName = BackupName.FromProjectInstanceBackup("[PROJECT]", "[INSTANCE]", "[BACKUP]"),
        EncryptionConfig = new RestoreDatabaseEncryptionConfig(),
    };
    // Make the request
    Operation<Database, RestoreDatabaseMetadata> response = await databaseAdminClient.RestoreDatabaseAsync(request);

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

### RestoreDatabaseAsync(RestoreDatabaseRequest, CancellationToken)

    public virtual Task<Operation<Database, RestoreDatabaseMetadata>> RestoreDatabaseAsync(RestoreDatabaseRequest request, CancellationToken cancellationToken)

Create a new database by restoring from a completed backup. The new
database must be in the same project and in an instance with the same
instance configuration as the instance containing
the backup. The returned database \[long-running
operation\]\[google.longrunning.Operation\] has a name of the format
`projects/<project>/instances/<instance>/databases/<database>/operations/<operation_id>`,
and can be used to track the progress of the operation, and to cancel it.
The \[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[RestoreDatabaseMetadata\]\[google.spanner.admin.database.v1.RestoreDatabaseMetadata\].
The \[response\]\[google.longrunning.Operation.response\] type
is \[Database\]\[google.spanner.admin.database.v1.Database\], if
successful. Cancelling the returned operation will stop the restore and
delete the database.
There can be only one database being restored into an instance at a time.
Once the restore operation completes, a new restore operation can be
initiated, without waiting for the optimize operation associated with the
first restore to complete.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.RestoreDatabaseRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Databasehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.RestoreDatabaseMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    RestoreDatabaseRequest request = new RestoreDatabaseRequest
    {
        ParentAsInstanceName = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]"),
        DatabaseId = "",
        BackupAsBackupName = BackupName.FromProjectInstanceBackup("[PROJECT]", "[INSTANCE]", "[BACKUP]"),
        EncryptionConfig = new RestoreDatabaseEncryptionConfig(),
    };
    // Make the request
    Operation<Database, RestoreDatabaseMetadata> response = await databaseAdminClient.RestoreDatabaseAsync(request);

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

### RestoreDatabaseAsync(InstanceName, string, BackupName, CallSettings)

    public virtual Task<Operation<Database, RestoreDatabaseMetadata>> RestoreDatabaseAsync(InstanceName parent, string databaseId, BackupName backup, CallSettings callSettings = null)

Create a new database by restoring from a completed backup. The new
database must be in the same project and in an instance with the same
instance configuration as the instance containing
the backup. The returned database \[long-running
operation\]\[google.longrunning.Operation\] has a name of the format
`projects/<project>/instances/<instance>/databases/<database>/operations/<operation_id>`,
and can be used to track the progress of the operation, and to cancel it.
The \[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[RestoreDatabaseMetadata\]\[google.spanner.admin.database.v1.RestoreDatabaseMetadata\].
The \[response\]\[google.longrunning.Operation.response\] type
is \[Database\]\[google.spanner.admin.database.v1.Database\], if
successful. Cancelling the returned operation will stop the restore and
delete the database.
There can be only one database being restored into an instance at a time.
Once the restore operation completes, a new restore operation can be
initiated, without waiting for the optimize operation associated with the
first restore to complete.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `Google.Cloud.Spanner.Common.V1.InstanceName` Required. The name of the instance in which to create the restored database. This instance must be in the same project and have the same instance configuration as the instance containing the source backup. Values are of the form `projects/<project>/instances/<instance>`. |
| `databaseId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The id of the database to create and restore to. This database must not already exist. The `database_id` appended to `parent` forms the full database name of the form `projects/<project>/instances/<instance>/databases/<database_id>`. |
| `backup` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupName` Name of the backup from which to restore. Values are of the form `projects/<project>/instances/<instance>/backups/<backup>`. |
| `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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Databasehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.RestoreDatabaseMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]");
    string databaseId = "";
    BackupName backup = BackupName.FromProjectInstanceBackup("[PROJECT]", "[INSTANCE]", "[BACKUP]");
    // Make the request
    Operation<Database, RestoreDatabaseMetadata> response = await databaseAdminClient.RestoreDatabaseAsync(parent, databaseId, backup);

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

### RestoreDatabaseAsync(InstanceName, string, BackupName, CancellationToken)

    public virtual Task<Operation<Database, RestoreDatabaseMetadata>> RestoreDatabaseAsync(InstanceName parent, string databaseId, BackupName backup, CancellationToken cancellationToken)

Create a new database by restoring from a completed backup. The new
database must be in the same project and in an instance with the same
instance configuration as the instance containing
the backup. The returned database \[long-running
operation\]\[google.longrunning.Operation\] has a name of the format
`projects/<project>/instances/<instance>/databases/<database>/operations/<operation_id>`,
and can be used to track the progress of the operation, and to cancel it.
The \[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[RestoreDatabaseMetadata\]\[google.spanner.admin.database.v1.RestoreDatabaseMetadata\].
The \[response\]\[google.longrunning.Operation.response\] type
is \[Database\]\[google.spanner.admin.database.v1.Database\], if
successful. Cancelling the returned operation will stop the restore and
delete the database.
There can be only one database being restored into an instance at a time.
Once the restore operation completes, a new restore operation can be
initiated, without waiting for the optimize operation associated with the
first restore to complete.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `Google.Cloud.Spanner.Common.V1.InstanceName` Required. The name of the instance in which to create the restored database. This instance must be in the same project and have the same instance configuration as the instance containing the source backup. Values are of the form `projects/<project>/instances/<instance>`. |
| `databaseId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The id of the database to create and restore to. This database must not already exist. The `database_id` appended to `parent` forms the full database name of the form `projects/<project>/instances/<instance>/databases/<database_id>`. |
| `backup` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupName` Name of the backup from which to restore. Values are of the form `projects/<project>/instances/<instance>/backups/<backup>`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Databasehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.RestoreDatabaseMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    InstanceName parent = InstanceName.FromProjectInstance("[PROJECT]", "[INSTANCE]");
    string databaseId = "";
    BackupName backup = BackupName.FromProjectInstanceBackup("[PROJECT]", "[INSTANCE]", "[BACKUP]");
    // Make the request
    Operation<Database, RestoreDatabaseMetadata> response = await databaseAdminClient.RestoreDatabaseAsync(parent, databaseId, backup);

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

### RestoreDatabaseAsync(string, string, string, CallSettings)

    public virtual Task<Operation<Database, RestoreDatabaseMetadata>> RestoreDatabaseAsync(string parent, string databaseId, string backup, CallSettings callSettings = null)

Create a new database by restoring from a completed backup. The new
database must be in the same project and in an instance with the same
instance configuration as the instance containing
the backup. The returned database \[long-running
operation\]\[google.longrunning.Operation\] has a name of the format
`projects/<project>/instances/<instance>/databases/<database>/operations/<operation_id>`,
and can be used to track the progress of the operation, and to cancel it.
The \[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[RestoreDatabaseMetadata\]\[google.spanner.admin.database.v1.RestoreDatabaseMetadata\].
The \[response\]\[google.longrunning.Operation.response\] type
is \[Database\]\[google.spanner.admin.database.v1.Database\], if
successful. Cancelling the returned operation will stop the restore and
delete the database.
There can be only one database being restored into an instance at a time.
Once the restore operation completes, a new restore operation can be
initiated, without waiting for the optimize operation associated with the
first restore to complete.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the instance in which to create the restored database. This instance must be in the same project and have the same instance configuration as the instance containing the source backup. Values are of the form `projects/<project>/instances/<instance>`. |
| `databaseId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The id of the database to create and restore to. This database must not already exist. The `database_id` appended to `parent` forms the full database name of the form `projects/<project>/instances/<instance>/databases/<database_id>`. |
| `backup` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the backup from which to restore. Values are of the form `projects/<project>/instances/<instance>/backups/<backup>`. |
| `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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Databasehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.RestoreDatabaseMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/instances/[INSTANCE]";
    string databaseId = "";
    string backup = "projects/[PROJECT]/instances/[INSTANCE]/backups/[BACKUP]";
    // Make the request
    Operation<Database, RestoreDatabaseMetadata> response = await databaseAdminClient.RestoreDatabaseAsync(parent, databaseId, backup);

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

### RestoreDatabaseAsync(string, string, string, CancellationToken)

    public virtual Task<Operation<Database, RestoreDatabaseMetadata>> RestoreDatabaseAsync(string parent, string databaseId, string backup, CancellationToken cancellationToken)

Create a new database by restoring from a completed backup. The new
database must be in the same project and in an instance with the same
instance configuration as the instance containing
the backup. The returned database \[long-running
operation\]\[google.longrunning.Operation\] has a name of the format
`projects/<project>/instances/<instance>/databases/<database>/operations/<operation_id>`,
and can be used to track the progress of the operation, and to cancel it.
The \[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[RestoreDatabaseMetadata\]\[google.spanner.admin.database.v1.RestoreDatabaseMetadata\].
The \[response\]\[google.longrunning.Operation.response\] type
is \[Database\]\[google.spanner.admin.database.v1.Database\], if
successful. Cancelling the returned operation will stop the restore and
delete the database.
There can be only one database being restored into an instance at a time.
Once the restore operation completes, a new restore operation can be
initiated, without waiting for the optimize operation associated with the
first restore to complete.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the instance in which to create the restored database. This instance must be in the same project and have the same instance configuration as the instance containing the source backup. Values are of the form `projects/<project>/instances/<instance>`. |
| `databaseId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The id of the database to create and restore to. This database must not already exist. The `database_id` appended to `parent` forms the full database name of the form `projects/<project>/instances/<instance>/databases/<database_id>`. |
| `backup` | `https://learn.microsoft.com/dotnet/api/system.string` Name of the backup from which to restore. Values are of the form `projects/<project>/instances/<instance>/backups/<backup>`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Databasehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.RestoreDatabaseMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/instances/[INSTANCE]";
    string databaseId = "";
    string backup = "projects/[PROJECT]/instances/[INSTANCE]/backups/[BACKUP]";
    // Make the request
    Operation<Database, RestoreDatabaseMetadata> response = await databaseAdminClient.RestoreDatabaseAsync(parent, databaseId, backup);

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

### SetIamPolicy(IResourceName, Policy, CallSettings)

    public virtual Policy SetIamPolicy(IResourceName resource, Policy policy, CallSettings callSettings = null)

Sets the access control policy on a database or backup resource.
Replaces any existing policy.

Authorization requires `spanner.databases.setIamPolicy`
permission on \[resource\]\[google.iam.v1.SetIamPolicyRequest.resource\].
For backups, authorization requires `spanner.backups.setIamPolicy`
permission on \[resource\]\[google.iam.v1.SetIamPolicyRequest.resource\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. |
| `policy` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them. |
| `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.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
    Policy policy = new Policy();
    // Make the request
    Policy response = databaseAdminClient.SetIamPolicy(resource, policy);

### SetIamPolicy(SetIamPolicyRequest, CallSettings)

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

Sets the access control policy on a database or backup resource.
Replaces any existing policy.

Authorization requires `spanner.databases.setIamPolicy`
permission on \[resource\]\[google.iam.v1.SetIamPolicyRequest.resource\].
For backups, authorization requires `spanner.backups.setIamPolicy`
permission on \[resource\]\[google.iam.v1.SetIamPolicyRequest.resource\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.SetIamPolicyRequest.html` 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.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    SetIamPolicyRequest request = new SetIamPolicyRequest
    {
        ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
        Policy = new Policy(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Policy response = databaseAdminClient.SetIamPolicy(request);

### SetIamPolicy(string, Policy, CallSettings)

    public virtual Policy SetIamPolicy(string resource, Policy policy, CallSettings callSettings = null)

Sets the access control policy on a database or backup resource.
Replaces any existing policy.

Authorization requires `spanner.databases.setIamPolicy`
permission on \[resource\]\[google.iam.v1.SetIamPolicyRequest.resource\].
For backups, authorization requires `spanner.backups.setIamPolicy`
permission on \[resource\]\[google.iam.v1.SetIamPolicyRequest.resource\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://learn.microsoft.com/dotnet/api/system.string` REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. |
| `policy` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them. |
| `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.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    string resource = "a/wildcard/resource";
    Policy policy = new Policy();
    // Make the request
    Policy response = databaseAdminClient.SetIamPolicy(resource, policy);

### SetIamPolicyAsync(IResourceName, Policy, CallSettings)

    public virtual Task<Policy> SetIamPolicyAsync(IResourceName resource, Policy policy, CallSettings callSettings = null)

Sets the access control policy on a database or backup resource.
Replaces any existing policy.

Authorization requires `spanner.databases.setIamPolicy`
permission on \[resource\]\[google.iam.v1.SetIamPolicyRequest.resource\].
For backups, authorization requires `spanner.backups.setIamPolicy`
permission on \[resource\]\[google.iam.v1.SetIamPolicyRequest.resource\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. |
| `policy` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them. |
| `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.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
    Policy policy = new Policy();
    // Make the request
    Policy response = await databaseAdminClient.SetIamPolicyAsync(resource, policy);

### SetIamPolicyAsync(IResourceName, Policy, CancellationToken)

    public virtual Task<Policy> SetIamPolicyAsync(IResourceName resource, Policy policy, CancellationToken cancellationToken)

Sets the access control policy on a database or backup resource.
Replaces any existing policy.

Authorization requires `spanner.databases.setIamPolicy`
permission on \[resource\]\[google.iam.v1.SetIamPolicyRequest.resource\].
For backups, authorization requires `spanner.backups.setIamPolicy`
permission on \[resource\]\[google.iam.v1.SetIamPolicyRequest.resource\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. |
| `policy` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
    Policy policy = new Policy();
    // Make the request
    Policy response = await databaseAdminClient.SetIamPolicyAsync(resource, policy);

### SetIamPolicyAsync(SetIamPolicyRequest, CallSettings)

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

Sets the access control policy on a database or backup resource.
Replaces any existing policy.

Authorization requires `spanner.databases.setIamPolicy`
permission on \[resource\]\[google.iam.v1.SetIamPolicyRequest.resource\].
For backups, authorization requires `spanner.backups.setIamPolicy`
permission on \[resource\]\[google.iam.v1.SetIamPolicyRequest.resource\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.SetIamPolicyRequest.html` 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.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    SetIamPolicyRequest request = new SetIamPolicyRequest
    {
        ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
        Policy = new Policy(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Policy response = await databaseAdminClient.SetIamPolicyAsync(request);

### SetIamPolicyAsync(SetIamPolicyRequest, CancellationToken)

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

Sets the access control policy on a database or backup resource.
Replaces any existing policy.

Authorization requires `spanner.databases.setIamPolicy`
permission on \[resource\]\[google.iam.v1.SetIamPolicyRequest.resource\].
For backups, authorization requires `spanner.backups.setIamPolicy`
permission on \[resource\]\[google.iam.v1.SetIamPolicyRequest.resource\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.SetIamPolicyRequest.html` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    SetIamPolicyRequest request = new SetIamPolicyRequest
    {
        ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
        Policy = new Policy(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Policy response = await databaseAdminClient.SetIamPolicyAsync(request);

### SetIamPolicyAsync(string, Policy, CallSettings)

    public virtual Task<Policy> SetIamPolicyAsync(string resource, Policy policy, CallSettings callSettings = null)

Sets the access control policy on a database or backup resource.
Replaces any existing policy.

Authorization requires `spanner.databases.setIamPolicy`
permission on \[resource\]\[google.iam.v1.SetIamPolicyRequest.resource\].
For backups, authorization requires `spanner.backups.setIamPolicy`
permission on \[resource\]\[google.iam.v1.SetIamPolicyRequest.resource\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://learn.microsoft.com/dotnet/api/system.string` REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. |
| `policy` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them. |
| `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.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string resource = "a/wildcard/resource";
    Policy policy = new Policy();
    // Make the request
    Policy response = await databaseAdminClient.SetIamPolicyAsync(resource, policy);

### SetIamPolicyAsync(string, Policy, CancellationToken)

    public virtual Task<Policy> SetIamPolicyAsync(string resource, Policy policy, CancellationToken cancellationToken)

Sets the access control policy on a database or backup resource.
Replaces any existing policy.

Authorization requires `spanner.databases.setIamPolicy`
permission on \[resource\]\[google.iam.v1.SetIamPolicyRequest.resource\].
For backups, authorization requires `spanner.backups.setIamPolicy`
permission on \[resource\]\[google.iam.v1.SetIamPolicyRequest.resource\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://learn.microsoft.com/dotnet/api/system.string` REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. |
| `policy` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.Policy.html` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string resource = "a/wildcard/resource";
    Policy policy = new Policy();
    // Make the request
    Policy response = await databaseAdminClient.SetIamPolicyAsync(resource, policy);

### ShutdownDefaultChannelsAsync()

    public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.DatabaseAdminClient#Google_Cloud_Spanner_Admin_Database_V1_DatabaseAdminClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.DatabaseAdminClient#Google_Cloud_Spanner_Admin_Database_V1_DatabaseAdminClient_CreateAsync_System_Threading_CancellationToken_). Channels which weren't automatically created are not
affected.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.DatabaseAdminClient#Google_Cloud_Spanner_Admin_Database_V1_DatabaseAdminClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.DatabaseAdminClient#Google_Cloud_Spanner_Admin_Database_V1_DatabaseAdminClient_CreateAsync_System_Threading_CancellationToken_) will create new channels, which could in turn be shut down
by another call to this method.

### TestIamPermissions(IResourceName, IEnumerable\<string\>, CallSettings)

    public virtual TestIamPermissionsResponse TestIamPermissions(IResourceName resource, IEnumerable<string> permissions, CallSettings callSettings = null)

Returns permissions that the caller has on the specified database or backup
resource.

Attempting this RPC on a non-existent Cloud Spanner database will
result in a NOT_FOUND error if the user has
`spanner.databases.list` permission on the containing Cloud
Spanner instance. Otherwise returns an empty set of permissions.
Calling this method on a backup that does not exist will
result in a NOT_FOUND error if the user has
`spanner.backups.list` permission on the containing instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. |
| `permissions` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1https://learn.microsoft.com/dotnet/api/system.string` The set of permissions to check for the `resource`. Permissions with wildcards (such as '*' or 'storage.* ') are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). |
| `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.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.TestIamPermissionsResponse.html` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
    IEnumerable<string> permissions = new string[] { "", };
    // Make the request
    TestIamPermissionsResponse response = databaseAdminClient.TestIamPermissions(resource, permissions);

### TestIamPermissions(TestIamPermissionsRequest, CallSettings)

    public virtual TestIamPermissionsResponse TestIamPermissions(TestIamPermissionsRequest request, CallSettings callSettings = null)

Returns permissions that the caller has on the specified database or backup
resource.

Attempting this RPC on a non-existent Cloud Spanner database will
result in a NOT_FOUND error if the user has
`spanner.databases.list` permission on the containing Cloud
Spanner instance. Otherwise returns an empty set of permissions.
Calling this method on a backup that does not exist will
result in a NOT_FOUND error if the user has
`spanner.backups.list` permission on the containing instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.TestIamPermissionsRequest.html` 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.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.TestIamPermissionsResponse.html` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    TestIamPermissionsRequest request = new TestIamPermissionsRequest
    {
        ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
        Permissions = { "", },
    };
    // Make the request
    TestIamPermissionsResponse response = databaseAdminClient.TestIamPermissions(request);

### TestIamPermissions(string, IEnumerable\<string\>, CallSettings)

    public virtual TestIamPermissionsResponse TestIamPermissions(string resource, IEnumerable<string> permissions, CallSettings callSettings = null)

Returns permissions that the caller has on the specified database or backup
resource.

Attempting this RPC on a non-existent Cloud Spanner database will
result in a NOT_FOUND error if the user has
`spanner.databases.list` permission on the containing Cloud
Spanner instance. Otherwise returns an empty set of permissions.
Calling this method on a backup that does not exist will
result in a NOT_FOUND error if the user has
`spanner.backups.list` permission on the containing instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://learn.microsoft.com/dotnet/api/system.string` REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. |
| `permissions` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1https://learn.microsoft.com/dotnet/api/system.string` The set of permissions to check for the `resource`. Permissions with wildcards (such as '*' or 'storage.* ') are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). |
| `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.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.TestIamPermissionsResponse.html` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    string resource = "a/wildcard/resource";
    IEnumerable<string> permissions = new string[] { "", };
    // Make the request
    TestIamPermissionsResponse response = databaseAdminClient.TestIamPermissions(resource, permissions);

### TestIamPermissionsAsync(IResourceName, IEnumerable\<string\>, CallSettings)

    public virtual Task<TestIamPermissionsResponse> TestIamPermissionsAsync(IResourceName resource, IEnumerable<string> permissions, CallSettings callSettings = null)

Returns permissions that the caller has on the specified database or backup
resource.

Attempting this RPC on a non-existent Cloud Spanner database will
result in a NOT_FOUND error if the user has
`spanner.databases.list` permission on the containing Cloud
Spanner instance. Otherwise returns an empty set of permissions.
Calling this method on a backup that does not exist will
result in a NOT_FOUND error if the user has
`spanner.backups.list` permission on the containing instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. |
| `permissions` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1https://learn.microsoft.com/dotnet/api/system.string` The set of permissions to check for the `resource`. Permissions with wildcards (such as '*' or 'storage.* ') are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). |
| `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.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.TestIamPermissionsResponse.html` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
    IEnumerable<string> permissions = new string[] { "", };
    // Make the request
    TestIamPermissionsResponse response = await databaseAdminClient.TestIamPermissionsAsync(resource, permissions);

### TestIamPermissionsAsync(IResourceName, IEnumerable\<string\>, CancellationToken)

    public virtual Task<TestIamPermissionsResponse> TestIamPermissionsAsync(IResourceName resource, IEnumerable<string> permissions, CancellationToken cancellationToken)

Returns permissions that the caller has on the specified database or backup
resource.

Attempting this RPC on a non-existent Cloud Spanner database will
result in a NOT_FOUND error if the user has
`spanner.databases.list` permission on the containing Cloud
Spanner instance. Otherwise returns an empty set of permissions.
Calling this method on a backup that does not exist will
result in a NOT_FOUND error if the user has
`spanner.backups.list` permission on the containing instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. |
| `permissions` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1https://learn.microsoft.com/dotnet/api/system.string` The set of permissions to check for the `resource`. Permissions with wildcards (such as '*' or 'storage.* ') are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.TestIamPermissionsResponse.html` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    IResourceName resource = new UnparsedResourceName("a/wildcard/resource");
    IEnumerable<string> permissions = new string[] { "", };
    // Make the request
    TestIamPermissionsResponse response = await databaseAdminClient.TestIamPermissionsAsync(resource, permissions);

### TestIamPermissionsAsync(TestIamPermissionsRequest, CallSettings)

    public virtual Task<TestIamPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRequest request, CallSettings callSettings = null)

Returns permissions that the caller has on the specified database or backup
resource.

Attempting this RPC on a non-existent Cloud Spanner database will
result in a NOT_FOUND error if the user has
`spanner.databases.list` permission on the containing Cloud
Spanner instance. Otherwise returns an empty set of permissions.
Calling this method on a backup that does not exist will
result in a NOT_FOUND error if the user has
`spanner.backups.list` permission on the containing instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.TestIamPermissionsRequest.html` 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.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.TestIamPermissionsResponse.html` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    TestIamPermissionsRequest request = new TestIamPermissionsRequest
    {
        ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
        Permissions = { "", },
    };
    // Make the request
    TestIamPermissionsResponse response = await databaseAdminClient.TestIamPermissionsAsync(request);

### TestIamPermissionsAsync(TestIamPermissionsRequest, CancellationToken)

    public virtual Task<TestIamPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRequest request, CancellationToken cancellationToken)

Returns permissions that the caller has on the specified database or backup
resource.

Attempting this RPC on a non-existent Cloud Spanner database will
result in a NOT_FOUND error if the user has
`spanner.databases.list` permission on the containing Cloud
Spanner instance. Otherwise returns an empty set of permissions.
Calling this method on a backup that does not exist will
result in a NOT_FOUND error if the user has
`spanner.backups.list` permission on the containing instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.TestIamPermissionsRequest.html` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.TestIamPermissionsResponse.html` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    TestIamPermissionsRequest request = new TestIamPermissionsRequest
    {
        ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
        Permissions = { "", },
    };
    // Make the request
    TestIamPermissionsResponse response = await databaseAdminClient.TestIamPermissionsAsync(request);

### TestIamPermissionsAsync(string, IEnumerable\<string\>, CallSettings)

    public virtual Task<TestIamPermissionsResponse> TestIamPermissionsAsync(string resource, IEnumerable<string> permissions, CallSettings callSettings = null)

Returns permissions that the caller has on the specified database or backup
resource.

Attempting this RPC on a non-existent Cloud Spanner database will
result in a NOT_FOUND error if the user has
`spanner.databases.list` permission on the containing Cloud
Spanner instance. Otherwise returns an empty set of permissions.
Calling this method on a backup that does not exist will
result in a NOT_FOUND error if the user has
`spanner.backups.list` permission on the containing instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://learn.microsoft.com/dotnet/api/system.string` REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. |
| `permissions` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1https://learn.microsoft.com/dotnet/api/system.string` The set of permissions to check for the `resource`. Permissions with wildcards (such as '*' or 'storage.* ') are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). |
| `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.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.TestIamPermissionsResponse.html` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string resource = "a/wildcard/resource";
    IEnumerable<string> permissions = new string[] { "", };
    // Make the request
    TestIamPermissionsResponse response = await databaseAdminClient.TestIamPermissionsAsync(resource, permissions);

### TestIamPermissionsAsync(string, IEnumerable\<string\>, CancellationToken)

    public virtual Task<TestIamPermissionsResponse> TestIamPermissionsAsync(string resource, IEnumerable<string> permissions, CancellationToken cancellationToken)

Returns permissions that the caller has on the specified database or backup
resource.

Attempting this RPC on a non-existent Cloud Spanner database will
result in a NOT_FOUND error if the user has
`spanner.databases.list` permission on the containing Cloud
Spanner instance. Otherwise returns an empty set of permissions.
Calling this method on a backup that does not exist will
result in a NOT_FOUND error if the user has
`spanner.backups.list` permission on the containing instance.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `resource` | `https://learn.microsoft.com/dotnet/api/system.string` REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. |
| `permissions` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1https://learn.microsoft.com/dotnet/api/system.string` The set of permissions to check for the `resource`. Permissions with wildcards (such as '*' or 'storage.* ') are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Iam.V1/latest/Google.Cloud.Iam.V1.TestIamPermissionsResponse.html` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string resource = "a/wildcard/resource";
    IEnumerable<string> permissions = new string[] { "", };
    // Make the request
    TestIamPermissionsResponse response = await databaseAdminClient.TestIamPermissionsAsync(resource, permissions);

### UpdateBackup(Backup, FieldMask, CallSettings)

    public virtual Backup UpdateBackup(Backup backup, FieldMask updateMask, CallSettings callSettings = null)

Updates a pending or completed
\[Backup\]\[google.spanner.admin.database.v1.Backup\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `backup` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backup` Required. The backup to update. `backup.name`, and the fields to be updated as specified by `update_mask` are required. Other fields are ignored. Update is only supported for the following fields: - `backup.expire_time`. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Required. A mask specifying which fields (e.g. `expire_time`) in the Backup resource should be updated. This mask is relative to the Backup resource, not to the request message. The field mask must always be specified; this prevents any future fields from being erased accidentally by clients that do not know about them. |
| `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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backup` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    Backup backup = new Backup();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Backup response = databaseAdminClient.UpdateBackup(backup, updateMask);

### UpdateBackup(UpdateBackupRequest, CallSettings)

    public virtual Backup UpdateBackup(UpdateBackupRequest request, CallSettings callSettings = null)

Updates a pending or completed
\[Backup\]\[google.spanner.admin.database.v1.Backup\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.UpdateBackupRequest` 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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backup` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    UpdateBackupRequest request = new UpdateBackupRequest
    {
        Backup = new Backup(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Backup response = databaseAdminClient.UpdateBackup(request);

### UpdateBackupAsync(Backup, FieldMask, CallSettings)

    public virtual Task<Backup> UpdateBackupAsync(Backup backup, FieldMask updateMask, CallSettings callSettings = null)

Updates a pending or completed
\[Backup\]\[google.spanner.admin.database.v1.Backup\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `backup` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backup` Required. The backup to update. `backup.name`, and the fields to be updated as specified by `update_mask` are required. Other fields are ignored. Update is only supported for the following fields: - `backup.expire_time`. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Required. A mask specifying which fields (e.g. `expire_time`) in the Backup resource should be updated. This mask is relative to the Backup resource, not to the request message. The field mask must always be specified; this prevents any future fields from being erased accidentally by clients that do not know about them. |
| `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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backup` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    Backup backup = new Backup();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Backup response = await databaseAdminClient.UpdateBackupAsync(backup, updateMask);

### UpdateBackupAsync(Backup, FieldMask, CancellationToken)

    public virtual Task<Backup> UpdateBackupAsync(Backup backup, FieldMask updateMask, CancellationToken cancellationToken)

Updates a pending or completed
\[Backup\]\[google.spanner.admin.database.v1.Backup\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `backup` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backup` Required. The backup to update. `backup.name`, and the fields to be updated as specified by `update_mask` are required. Other fields are ignored. Update is only supported for the following fields: - `backup.expire_time`. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Required. A mask specifying which fields (e.g. `expire_time`) in the Backup resource should be updated. This mask is relative to the Backup resource, not to the request message. The field mask must always be specified; this prevents any future fields from being erased accidentally by clients that do not know about them. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backup` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    Backup backup = new Backup();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Backup response = await databaseAdminClient.UpdateBackupAsync(backup, updateMask);

### UpdateBackupAsync(UpdateBackupRequest, CallSettings)

    public virtual Task<Backup> UpdateBackupAsync(UpdateBackupRequest request, CallSettings callSettings = null)

Updates a pending or completed
\[Backup\]\[google.spanner.admin.database.v1.Backup\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.UpdateBackupRequest` 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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backup` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    UpdateBackupRequest request = new UpdateBackupRequest
    {
        Backup = new Backup(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Backup response = await databaseAdminClient.UpdateBackupAsync(request);

### UpdateBackupAsync(UpdateBackupRequest, CancellationToken)

    public virtual Task<Backup> UpdateBackupAsync(UpdateBackupRequest request, CancellationToken cancellationToken)

Updates a pending or completed
\[Backup\]\[google.spanner.admin.database.v1.Backup\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.UpdateBackupRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Backup` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    UpdateBackupRequest request = new UpdateBackupRequest
    {
        Backup = new Backup(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Backup response = await databaseAdminClient.UpdateBackupAsync(request);

### UpdateBackupSchedule(BackupSchedule, FieldMask, CallSettings)

    public virtual BackupSchedule UpdateBackupSchedule(BackupSchedule backupSchedule, FieldMask updateMask, CallSettings callSettings = null)

Updates a backup schedule.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `backupSchedule` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule` Required. The backup schedule to update. `backup_schedule.name`, and the fields to be updated as specified by `update_mask` are required. Other fields are ignored. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Required. A mask specifying which fields in the BackupSchedule resource should be updated. This mask is relative to the BackupSchedule resource, not to the request message. The field mask must always be specified; this prevents any future fields from being erased accidentally. |
| `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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    BackupSchedule backupSchedule = new BackupSchedule();
    FieldMask updateMask = new FieldMask();
    // Make the request
    BackupSchedule response = databaseAdminClient.UpdateBackupSchedule(backupSchedule, updateMask);

### UpdateBackupSchedule(UpdateBackupScheduleRequest, CallSettings)

    public virtual BackupSchedule UpdateBackupSchedule(UpdateBackupScheduleRequest request, CallSettings callSettings = null)

Updates a backup schedule.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.UpdateBackupScheduleRequest` 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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    UpdateBackupScheduleRequest request = new UpdateBackupScheduleRequest
    {
        BackupSchedule = new BackupSchedule(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    BackupSchedule response = databaseAdminClient.UpdateBackupSchedule(request);

### UpdateBackupScheduleAsync(BackupSchedule, FieldMask, CallSettings)

    public virtual Task<BackupSchedule> UpdateBackupScheduleAsync(BackupSchedule backupSchedule, FieldMask updateMask, CallSettings callSettings = null)

Updates a backup schedule.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `backupSchedule` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule` Required. The backup schedule to update. `backup_schedule.name`, and the fields to be updated as specified by `update_mask` are required. Other fields are ignored. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Required. A mask specifying which fields in the BackupSchedule resource should be updated. This mask is relative to the BackupSchedule resource, not to the request message. The field mask must always be specified; this prevents any future fields from being erased accidentally. |
| `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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    BackupSchedule backupSchedule = new BackupSchedule();
    FieldMask updateMask = new FieldMask();
    // Make the request
    BackupSchedule response = await databaseAdminClient.UpdateBackupScheduleAsync(backupSchedule, updateMask);

### UpdateBackupScheduleAsync(BackupSchedule, FieldMask, CancellationToken)

    public virtual Task<BackupSchedule> UpdateBackupScheduleAsync(BackupSchedule backupSchedule, FieldMask updateMask, CancellationToken cancellationToken)

Updates a backup schedule.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `backupSchedule` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule` Required. The backup schedule to update. `backup_schedule.name`, and the fields to be updated as specified by `update_mask` are required. Other fields are ignored. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Required. A mask specifying which fields in the BackupSchedule resource should be updated. This mask is relative to the BackupSchedule resource, not to the request message. The field mask must always be specified; this prevents any future fields from being erased accidentally. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    BackupSchedule backupSchedule = new BackupSchedule();
    FieldMask updateMask = new FieldMask();
    // Make the request
    BackupSchedule response = await databaseAdminClient.UpdateBackupScheduleAsync(backupSchedule, updateMask);

### UpdateBackupScheduleAsync(UpdateBackupScheduleRequest, CallSettings)

    public virtual Task<BackupSchedule> UpdateBackupScheduleAsync(UpdateBackupScheduleRequest request, CallSettings callSettings = null)

Updates a backup schedule.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.UpdateBackupScheduleRequest` 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.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    UpdateBackupScheduleRequest request = new UpdateBackupScheduleRequest
    {
        BackupSchedule = new BackupSchedule(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    BackupSchedule response = await databaseAdminClient.UpdateBackupScheduleAsync(request);

### UpdateBackupScheduleAsync(UpdateBackupScheduleRequest, CancellationToken)

    public virtual Task<BackupSchedule> UpdateBackupScheduleAsync(UpdateBackupScheduleRequest request, CancellationToken cancellationToken)

Updates a backup schedule.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.UpdateBackupScheduleRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.BackupSchedule` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    UpdateBackupScheduleRequest request = new UpdateBackupScheduleRequest
    {
        BackupSchedule = new BackupSchedule(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    BackupSchedule response = await databaseAdminClient.UpdateBackupScheduleAsync(request);

### UpdateDatabase(Database, FieldMask, CallSettings)

    public virtual Operation<Database, UpdateDatabaseMetadata> UpdateDatabase(Database database, FieldMask updateMask, CallSettings callSettings = null)

Updates a Cloud Spanner database. The returned
\[long-running operation\]\[google.longrunning.Operation\] can be used to track
the progress of updating the database. If the named database does not
exist, returns `NOT_FOUND`.

While the operation is pending:

- The database's \[reconciling\]\[google.spanner.admin.database.v1.Database.reconciling\] field is set to true.
- Cancelling the operation is best-effort. If the cancellation succeeds, the operation metadata's \[cancel_time\]\[google.spanner.admin.database.v1.UpdateDatabaseMetadata.cancel_time\] is set, the updates are reverted, and the operation terminates with a `CANCELLED` status.
- New UpdateDatabase requests will return a `FAILED_PRECONDITION` error until the pending operation is done (returns successfully or with error).
- Reading the database via the API continues to give the pre-request values.

Upon completion of the returned operation:

- The new values are in effect and readable via the API.
- The database's \[reconciling\]\[google.spanner.admin.database.v1.Database.reconciling\] field becomes false.

The returned \[long-running operation\]\[google.longrunning.Operation\] will
have a name of the format
`projects/<project>/instances/<instance>/databases/<database>/operations/<operation_id>`
and can be used to track the database modification. The
\[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[UpdateDatabaseMetadata\]\[google.spanner.admin.database.v1.UpdateDatabaseMetadata\].
The \[response\]\[google.longrunning.Operation.response\] field type is
\[Database\]\[google.spanner.admin.database.v1.Database\], if successful.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `database` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Database` Required. The database to update. The `name` field of the database is of the form `projects/<project>/instances/<instance>/databases/<database>`. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Required. The list of fields to update. Currently, only `enable_drop_protection` field can be updated. |
| `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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Databasehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.UpdateDatabaseMetadata` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    Database database = new Database();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Operation<Database, UpdateDatabaseMetadata> response = databaseAdminClient.UpdateDatabase(database, updateMask);

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

### UpdateDatabase(UpdateDatabaseRequest, CallSettings)

    public virtual Operation<Database, UpdateDatabaseMetadata> UpdateDatabase(UpdateDatabaseRequest request, CallSettings callSettings = null)

Updates a Cloud Spanner database. The returned
\[long-running operation\]\[google.longrunning.Operation\] can be used to track
the progress of updating the database. If the named database does not
exist, returns `NOT_FOUND`.

While the operation is pending:

- The database's \[reconciling\]\[google.spanner.admin.database.v1.Database.reconciling\] field is set to true.
- Cancelling the operation is best-effort. If the cancellation succeeds, the operation metadata's \[cancel_time\]\[google.spanner.admin.database.v1.UpdateDatabaseMetadata.cancel_time\] is set, the updates are reverted, and the operation terminates with a `CANCELLED` status.
- New UpdateDatabase requests will return a `FAILED_PRECONDITION` error until the pending operation is done (returns successfully or with error).
- Reading the database via the API continues to give the pre-request values.

Upon completion of the returned operation:

- The new values are in effect and readable via the API.
- The database's \[reconciling\]\[google.spanner.admin.database.v1.Database.reconciling\] field becomes false.

The returned \[long-running operation\]\[google.longrunning.Operation\] will
have a name of the format
`projects/<project>/instances/<instance>/databases/<database>/operations/<operation_id>`
and can be used to track the database modification. The
\[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[UpdateDatabaseMetadata\]\[google.spanner.admin.database.v1.UpdateDatabaseMetadata\].
The \[response\]\[google.longrunning.Operation.response\] field type is
\[Database\]\[google.spanner.admin.database.v1.Database\], if successful.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.UpdateDatabaseRequest` 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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Databasehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.UpdateDatabaseMetadata` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    UpdateDatabaseRequest request = new UpdateDatabaseRequest
    {
        Database = new Database(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Operation<Database, UpdateDatabaseMetadata> response = databaseAdminClient.UpdateDatabase(request);

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

### UpdateDatabaseAsync(Database, FieldMask, CallSettings)

    public virtual Task<Operation<Database, UpdateDatabaseMetadata>> UpdateDatabaseAsync(Database database, FieldMask updateMask, CallSettings callSettings = null)

Updates a Cloud Spanner database. The returned
\[long-running operation\]\[google.longrunning.Operation\] can be used to track
the progress of updating the database. If the named database does not
exist, returns `NOT_FOUND`.

While the operation is pending:

- The database's \[reconciling\]\[google.spanner.admin.database.v1.Database.reconciling\] field is set to true.
- Cancelling the operation is best-effort. If the cancellation succeeds, the operation metadata's \[cancel_time\]\[google.spanner.admin.database.v1.UpdateDatabaseMetadata.cancel_time\] is set, the updates are reverted, and the operation terminates with a `CANCELLED` status.
- New UpdateDatabase requests will return a `FAILED_PRECONDITION` error until the pending operation is done (returns successfully or with error).
- Reading the database via the API continues to give the pre-request values.

Upon completion of the returned operation:

- The new values are in effect and readable via the API.
- The database's \[reconciling\]\[google.spanner.admin.database.v1.Database.reconciling\] field becomes false.

The returned \[long-running operation\]\[google.longrunning.Operation\] will
have a name of the format
`projects/<project>/instances/<instance>/databases/<database>/operations/<operation_id>`
and can be used to track the database modification. The
\[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[UpdateDatabaseMetadata\]\[google.spanner.admin.database.v1.UpdateDatabaseMetadata\].
The \[response\]\[google.longrunning.Operation.response\] field type is
\[Database\]\[google.spanner.admin.database.v1.Database\], if successful.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `database` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Database` Required. The database to update. The `name` field of the database is of the form `projects/<project>/instances/<instance>/databases/<database>`. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Required. The list of fields to update. Currently, only `enable_drop_protection` field can be updated. |
| `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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Databasehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.UpdateDatabaseMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    Database database = new Database();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Operation<Database, UpdateDatabaseMetadata> response = await databaseAdminClient.UpdateDatabaseAsync(database, updateMask);

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

### UpdateDatabaseAsync(Database, FieldMask, CancellationToken)

    public virtual Task<Operation<Database, UpdateDatabaseMetadata>> UpdateDatabaseAsync(Database database, FieldMask updateMask, CancellationToken cancellationToken)

Updates a Cloud Spanner database. The returned
\[long-running operation\]\[google.longrunning.Operation\] can be used to track
the progress of updating the database. If the named database does not
exist, returns `NOT_FOUND`.

While the operation is pending:

- The database's \[reconciling\]\[google.spanner.admin.database.v1.Database.reconciling\] field is set to true.
- Cancelling the operation is best-effort. If the cancellation succeeds, the operation metadata's \[cancel_time\]\[google.spanner.admin.database.v1.UpdateDatabaseMetadata.cancel_time\] is set, the updates are reverted, and the operation terminates with a `CANCELLED` status.
- New UpdateDatabase requests will return a `FAILED_PRECONDITION` error until the pending operation is done (returns successfully or with error).
- Reading the database via the API continues to give the pre-request values.

Upon completion of the returned operation:

- The new values are in effect and readable via the API.
- The database's \[reconciling\]\[google.spanner.admin.database.v1.Database.reconciling\] field becomes false.

The returned \[long-running operation\]\[google.longrunning.Operation\] will
have a name of the format
`projects/<project>/instances/<instance>/databases/<database>/operations/<operation_id>`
and can be used to track the database modification. The
\[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[UpdateDatabaseMetadata\]\[google.spanner.admin.database.v1.UpdateDatabaseMetadata\].
The \[response\]\[google.longrunning.Operation.response\] field type is
\[Database\]\[google.spanner.admin.database.v1.Database\], if successful.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `database` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Database` Required. The database to update. The `name` field of the database is of the form `projects/<project>/instances/<instance>/databases/<database>`. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Required. The list of fields to update. Currently, only `enable_drop_protection` field can be updated. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Databasehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.UpdateDatabaseMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    Database database = new Database();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Operation<Database, UpdateDatabaseMetadata> response = await databaseAdminClient.UpdateDatabaseAsync(database, updateMask);

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

### UpdateDatabaseAsync(UpdateDatabaseRequest, CallSettings)

    public virtual Task<Operation<Database, UpdateDatabaseMetadata>> UpdateDatabaseAsync(UpdateDatabaseRequest request, CallSettings callSettings = null)

Updates a Cloud Spanner database. The returned
\[long-running operation\]\[google.longrunning.Operation\] can be used to track
the progress of updating the database. If the named database does not
exist, returns `NOT_FOUND`.

While the operation is pending:

- The database's \[reconciling\]\[google.spanner.admin.database.v1.Database.reconciling\] field is set to true.
- Cancelling the operation is best-effort. If the cancellation succeeds, the operation metadata's \[cancel_time\]\[google.spanner.admin.database.v1.UpdateDatabaseMetadata.cancel_time\] is set, the updates are reverted, and the operation terminates with a `CANCELLED` status.
- New UpdateDatabase requests will return a `FAILED_PRECONDITION` error until the pending operation is done (returns successfully or with error).
- Reading the database via the API continues to give the pre-request values.

Upon completion of the returned operation:

- The new values are in effect and readable via the API.
- The database's \[reconciling\]\[google.spanner.admin.database.v1.Database.reconciling\] field becomes false.

The returned \[long-running operation\]\[google.longrunning.Operation\] will
have a name of the format
`projects/<project>/instances/<instance>/databases/<database>/operations/<operation_id>`
and can be used to track the database modification. The
\[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[UpdateDatabaseMetadata\]\[google.spanner.admin.database.v1.UpdateDatabaseMetadata\].
The \[response\]\[google.longrunning.Operation.response\] field type is
\[Database\]\[google.spanner.admin.database.v1.Database\], if successful.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.UpdateDatabaseRequest` 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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Databasehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.UpdateDatabaseMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    UpdateDatabaseRequest request = new UpdateDatabaseRequest
    {
        Database = new Database(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Operation<Database, UpdateDatabaseMetadata> response = await databaseAdminClient.UpdateDatabaseAsync(request);

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

### UpdateDatabaseAsync(UpdateDatabaseRequest, CancellationToken)

    public virtual Task<Operation<Database, UpdateDatabaseMetadata>> UpdateDatabaseAsync(UpdateDatabaseRequest request, CancellationToken cancellationToken)

Updates a Cloud Spanner database. The returned
\[long-running operation\]\[google.longrunning.Operation\] can be used to track
the progress of updating the database. If the named database does not
exist, returns `NOT_FOUND`.

While the operation is pending:

- The database's \[reconciling\]\[google.spanner.admin.database.v1.Database.reconciling\] field is set to true.
- Cancelling the operation is best-effort. If the cancellation succeeds, the operation metadata's \[cancel_time\]\[google.spanner.admin.database.v1.UpdateDatabaseMetadata.cancel_time\] is set, the updates are reverted, and the operation terminates with a `CANCELLED` status.
- New UpdateDatabase requests will return a `FAILED_PRECONDITION` error until the pending operation is done (returns successfully or with error).
- Reading the database via the API continues to give the pre-request values.

Upon completion of the returned operation:

- The new values are in effect and readable via the API.
- The database's \[reconciling\]\[google.spanner.admin.database.v1.Database.reconciling\] field becomes false.

The returned \[long-running operation\]\[google.longrunning.Operation\] will
have a name of the format
`projects/<project>/instances/<instance>/databases/<database>/operations/<operation_id>`
and can be used to track the database modification. The
\[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[UpdateDatabaseMetadata\]\[google.spanner.admin.database.v1.UpdateDatabaseMetadata\].
The \[response\]\[google.longrunning.Operation.response\] field type is
\[Database\]\[google.spanner.admin.database.v1.Database\], if successful.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.UpdateDatabaseRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.Databasehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.UpdateDatabaseMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    UpdateDatabaseRequest request = new UpdateDatabaseRequest
    {
        Database = new Database(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Operation<Database, UpdateDatabaseMetadata> response = await databaseAdminClient.UpdateDatabaseAsync(request);

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

### UpdateDatabaseDdl(UpdateDatabaseDdlRequest, CallSettings)

    public virtual Operation<Empty, UpdateDatabaseDdlMetadata> UpdateDatabaseDdl(UpdateDatabaseDdlRequest request, CallSettings callSettings = null)

Updates the schema of a Cloud Spanner database by
creating/altering/dropping tables, columns, indexes, etc. The returned
\[long-running operation\]\[google.longrunning.Operation\] will have a name of
the format `<database_name>/operations/<operation_id>` and can be used to
track execution of the schema change(s). The
\[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[UpdateDatabaseDdlMetadata\]\[google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata\].
The operation has no response.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.UpdateDatabaseDdlRequest` 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://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.UpdateDatabaseDdlMetadata` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    UpdateDatabaseDdlRequest request = new UpdateDatabaseDdlRequest
    {
        DatabaseAsDatabaseName = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]"),
        Statements = { "", },
        OperationId = "",
        ProtoDescriptors = ByteString.Empty,
        ThroughputMode = false,
    };
    // Make the request
    Operation<Empty, UpdateDatabaseDdlMetadata> response = databaseAdminClient.UpdateDatabaseDdl(request);

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

### UpdateDatabaseDdl(DatabaseName, IEnumerable\<string\>, CallSettings)

    public virtual Operation<Empty, UpdateDatabaseDdlMetadata> UpdateDatabaseDdl(DatabaseName database, IEnumerable<string> statements, CallSettings callSettings = null)

Updates the schema of a Cloud Spanner database by
creating/altering/dropping tables, columns, indexes, etc. The returned
\[long-running operation\]\[google.longrunning.Operation\] will have a name of
the format `<database_name>/operations/<operation_id>` and can be used to
track execution of the schema change(s). The
\[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[UpdateDatabaseDdlMetadata\]\[google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata\].
The operation has no response.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `database` | `Google.Cloud.Spanner.Common.V1.DatabaseName` Required. The database to update. |
| `statements` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1https://learn.microsoft.com/dotnet/api/system.string` Required. DDL statements to be applied to the database. |
| `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://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.UpdateDatabaseDdlMetadata` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    DatabaseName database = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]");
    IEnumerable<string> statements = new string[] { "", };
    // Make the request
    Operation<Empty, UpdateDatabaseDdlMetadata> response = databaseAdminClient.UpdateDatabaseDdl(database, statements);

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

### UpdateDatabaseDdl(string, IEnumerable\<string\>, CallSettings)

    public virtual Operation<Empty, UpdateDatabaseDdlMetadata> UpdateDatabaseDdl(string database, IEnumerable<string> statements, CallSettings callSettings = null)

Updates the schema of a Cloud Spanner database by
creating/altering/dropping tables, columns, indexes, etc. The returned
\[long-running operation\]\[google.longrunning.Operation\] will have a name of
the format `<database_name>/operations/<operation_id>` and can be used to
track execution of the schema change(s). The
\[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[UpdateDatabaseDdlMetadata\]\[google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata\].
The operation has no response.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `database` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The database to update. |
| `statements` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1https://learn.microsoft.com/dotnet/api/system.string` Required. DDL statements to be applied to the database. |
| `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://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.UpdateDatabaseDdlMetadata` | The RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.Create();
    // Initialize request argument(s)
    string database = "projects/[PROJECT]/instances/[INSTANCE]/databases/[DATABASE]";
    IEnumerable<string> statements = new string[] { "", };
    // Make the request
    Operation<Empty, UpdateDatabaseDdlMetadata> response = databaseAdminClient.UpdateDatabaseDdl(database, statements);

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

### UpdateDatabaseDdlAsync(UpdateDatabaseDdlRequest, CallSettings)

    public virtual Task<Operation<Empty, UpdateDatabaseDdlMetadata>> UpdateDatabaseDdlAsync(UpdateDatabaseDdlRequest request, CallSettings callSettings = null)

Updates the schema of a Cloud Spanner database by
creating/altering/dropping tables, columns, indexes, etc. The returned
\[long-running operation\]\[google.longrunning.Operation\] will have a name of
the format `<database_name>/operations/<operation_id>` and can be used to
track execution of the schema change(s). The
\[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[UpdateDatabaseDdlMetadata\]\[google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata\].
The operation has no response.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.UpdateDatabaseDdlRequest` 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://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.UpdateDatabaseDdlMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    UpdateDatabaseDdlRequest request = new UpdateDatabaseDdlRequest
    {
        DatabaseAsDatabaseName = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]"),
        Statements = { "", },
        OperationId = "",
        ProtoDescriptors = ByteString.Empty,
        ThroughputMode = false,
    };
    // Make the request
    Operation<Empty, UpdateDatabaseDdlMetadata> response = await databaseAdminClient.UpdateDatabaseDdlAsync(request);

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

### UpdateDatabaseDdlAsync(UpdateDatabaseDdlRequest, CancellationToken)

    public virtual Task<Operation<Empty, UpdateDatabaseDdlMetadata>> UpdateDatabaseDdlAsync(UpdateDatabaseDdlRequest request, CancellationToken cancellationToken)

Updates the schema of a Cloud Spanner database by
creating/altering/dropping tables, columns, indexes, etc. The returned
\[long-running operation\]\[google.longrunning.Operation\] will have a name of
the format `<database_name>/operations/<operation_id>` and can be used to
track execution of the schema change(s). The
\[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[UpdateDatabaseDdlMetadata\]\[google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata\].
The operation has no response.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.UpdateDatabaseDdlRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.UpdateDatabaseDdlMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    UpdateDatabaseDdlRequest request = new UpdateDatabaseDdlRequest
    {
        DatabaseAsDatabaseName = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]"),
        Statements = { "", },
        OperationId = "",
        ProtoDescriptors = ByteString.Empty,
        ThroughputMode = false,
    };
    // Make the request
    Operation<Empty, UpdateDatabaseDdlMetadata> response = await databaseAdminClient.UpdateDatabaseDdlAsync(request);

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

### UpdateDatabaseDdlAsync(DatabaseName, IEnumerable\<string\>, CallSettings)

    public virtual Task<Operation<Empty, UpdateDatabaseDdlMetadata>> UpdateDatabaseDdlAsync(DatabaseName database, IEnumerable<string> statements, CallSettings callSettings = null)

Updates the schema of a Cloud Spanner database by
creating/altering/dropping tables, columns, indexes, etc. The returned
\[long-running operation\]\[google.longrunning.Operation\] will have a name of
the format `<database_name>/operations/<operation_id>` and can be used to
track execution of the schema change(s). The
\[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[UpdateDatabaseDdlMetadata\]\[google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata\].
The operation has no response.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `database` | `Google.Cloud.Spanner.Common.V1.DatabaseName` Required. The database to update. |
| `statements` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1https://learn.microsoft.com/dotnet/api/system.string` Required. DDL statements to be applied to the database. |
| `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://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.UpdateDatabaseDdlMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    DatabaseName database = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]");
    IEnumerable<string> statements = new string[] { "", };
    // Make the request
    Operation<Empty, UpdateDatabaseDdlMetadata> response = await databaseAdminClient.UpdateDatabaseDdlAsync(database, statements);

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

### UpdateDatabaseDdlAsync(DatabaseName, IEnumerable\<string\>, CancellationToken)

    public virtual Task<Operation<Empty, UpdateDatabaseDdlMetadata>> UpdateDatabaseDdlAsync(DatabaseName database, IEnumerable<string> statements, CancellationToken cancellationToken)

Updates the schema of a Cloud Spanner database by
creating/altering/dropping tables, columns, indexes, etc. The returned
\[long-running operation\]\[google.longrunning.Operation\] will have a name of
the format `<database_name>/operations/<operation_id>` and can be used to
track execution of the schema change(s). The
\[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[UpdateDatabaseDdlMetadata\]\[google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata\].
The operation has no response.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `database` | `Google.Cloud.Spanner.Common.V1.DatabaseName` Required. The database to update. |
| `statements` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1https://learn.microsoft.com/dotnet/api/system.string` Required. DDL statements to be applied to the database. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.UpdateDatabaseDdlMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    DatabaseName database = DatabaseName.FromProjectInstanceDatabase("[PROJECT]", "[INSTANCE]", "[DATABASE]");
    IEnumerable<string> statements = new string[] { "", };
    // Make the request
    Operation<Empty, UpdateDatabaseDdlMetadata> response = await databaseAdminClient.UpdateDatabaseDdlAsync(database, statements);

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

### UpdateDatabaseDdlAsync(string, IEnumerable\<string\>, CallSettings)

    public virtual Task<Operation<Empty, UpdateDatabaseDdlMetadata>> UpdateDatabaseDdlAsync(string database, IEnumerable<string> statements, CallSettings callSettings = null)

Updates the schema of a Cloud Spanner database by
creating/altering/dropping tables, columns, indexes, etc. The returned
\[long-running operation\]\[google.longrunning.Operation\] will have a name of
the format `<database_name>/operations/<operation_id>` and can be used to
track execution of the schema change(s). The
\[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[UpdateDatabaseDdlMetadata\]\[google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata\].
The operation has no response.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `database` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The database to update. |
| `statements` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1https://learn.microsoft.com/dotnet/api/system.string` Required. DDL statements to be applied to the database. |
| `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://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.UpdateDatabaseDdlMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string database = "projects/[PROJECT]/instances/[INSTANCE]/databases/[DATABASE]";
    IEnumerable<string> statements = new string[] { "", };
    // Make the request
    Operation<Empty, UpdateDatabaseDdlMetadata> response = await databaseAdminClient.UpdateDatabaseDdlAsync(database, statements);

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

### UpdateDatabaseDdlAsync(string, IEnumerable\<string\>, CancellationToken)

    public virtual Task<Operation<Empty, UpdateDatabaseDdlMetadata>> UpdateDatabaseDdlAsync(string database, IEnumerable<string> statements, CancellationToken cancellationToken)

Updates the schema of a Cloud Spanner database by
creating/altering/dropping tables, columns, indexes, etc. The returned
\[long-running operation\]\[google.longrunning.Operation\] will have a name of
the format `<database_name>/operations/<operation_id>` and can be used to
track execution of the schema change(s). The
\[metadata\]\[google.longrunning.Operation.metadata\] field type is
\[UpdateDatabaseDdlMetadata\]\[google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata\].
The operation has no response.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `database` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The database to update. |
| `statements` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1https://learn.microsoft.com/dotnet/api/system.string` Required. DDL statements to be applied to the database. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **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://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Spanner.Admin.Database.V1/latest/Google.Cloud.Spanner.Admin.Database.V1.UpdateDatabaseDdlMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    DatabaseAdminClient databaseAdminClient = await DatabaseAdminClient.CreateAsync();
    // Initialize request argument(s)
    string database = "projects/[PROJECT]/instances/[INSTANCE]/databases/[DATABASE]";
    IEnumerable<string> statements = new string[] { "", };
    // Make the request
    Operation<Empty, UpdateDatabaseDdlMetadata> response = await databaseAdminClient.UpdateDatabaseDdlAsync(database, statements);

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