# Cloud Spanner Database Admin V1 API - Class Google::Cloud::Spanner::Admin::Database::V1::CreateBackupMetadata (v1.14.0)

1.14.0 (latest) 1.13.1 1.12.0 1.11.1 1.10.0 1.9.0 1.8.0 1.7.0 1.6.1 1.5.0 1.4.0 1.3.0 1.2.1 1.1.1 1.0.0 0.20.0 0.19.0 0.18.0 0.17.1 0.16.1 0.15.0 0.14.2 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.6 Reference documentation and code samples for the Cloud Spanner Database Admin V1 API class Google::Cloud::Spanner::Admin::Database::V1::CreateBackupMetadata.

Metadata type for the operation returned by
[CreateBackup](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-database-v1/latest/Google-Cloud-Spanner-Admin-Database-V1-DatabaseAdmin-Client#Google__Cloud__Spanner__Admin__Database__V1__DatabaseAdmin__Client_create_backup_instance_ "Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Client#create_backup (method)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #cancel_time

    def cancel_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-database-v1/latest/Google-Protobuf-Timestamp)) --- The time at which cancellation of this operation was received. Operations.CancelOperation starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an [Operation.error](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-database-v1/latest/Google-Longrunning-Operation#Google__Longrunning__Operation_error_instance_ "Google::Longrunning::Operation#error (method)") value with a [google.rpc.Status.code](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-database-v1/latest/Google-Rpc-Status#Google__Rpc__Status_code_instance_ "Google::Rpc::Status#code (method)") of 1, corresponding to `Code.CANCELLED`.

### #cancel_time=

    def cancel_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-database-v1/latest/Google-Protobuf-Timestamp)) --- The time at which cancellation of this operation was received. Operations.CancelOperation starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an [Operation.error](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-database-v1/latest/Google-Longrunning-Operation#Google__Longrunning__Operation_error_instance_ "Google::Longrunning::Operation#error (method)") value with a [google.rpc.Status.code](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-database-v1/latest/Google-Rpc-Status#Google__Rpc__Status_code_instance_ "Google::Rpc::Status#code (method)") of 1, corresponding to `Code.CANCELLED`.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-database-v1/latest/Google-Protobuf-Timestamp)) --- The time at which cancellation of this operation was received. Operations.CancelOperation starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an [Operation.error](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-database-v1/latest/Google-Longrunning-Operation#Google__Longrunning__Operation_error_instance_ "Google::Longrunning::Operation#error (method)") value with a [google.rpc.Status.code](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-database-v1/latest/Google-Rpc-Status#Google__Rpc__Status_code_instance_ "Google::Rpc::Status#code (method)") of 1, corresponding to `Code.CANCELLED`.

### #database

    def database() -> ::String

**Returns**

- (::String) --- The name of the database the backup is created from.

### #database=

    def database=(value) -> ::String

**Parameter**

- **value** (::String) --- The name of the database the backup is created from.
**Returns**

- (::String) --- The name of the database the backup is created from.

### #name

    def name() -> ::String

**Returns**

- (::String) --- The name of the backup being created.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- The name of the backup being created.
**Returns**

- (::String) --- The name of the backup being created.

### #progress

    def progress() -> ::Google::Cloud::Spanner::Admin::Database::V1::OperationProgress

**Returns**

- ([::Google::Cloud::Spanner::Admin::Database::V1::OperationProgress](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-database-v1/latest/Google-Cloud-Spanner-Admin-Database-V1-OperationProgress)) --- The progress of the [CreateBackup](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-database-v1/latest/Google-Cloud-Spanner-Admin-Database-V1-DatabaseAdmin-Client#Google__Cloud__Spanner__Admin__Database__V1__DatabaseAdmin__Client_create_backup_instance_ "Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Client#create_backup (method)") operation.

### #progress=

    def progress=(value) -> ::Google::Cloud::Spanner::Admin::Database::V1::OperationProgress

**Parameter**

- **value** ([::Google::Cloud::Spanner::Admin::Database::V1::OperationProgress](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-database-v1/latest/Google-Cloud-Spanner-Admin-Database-V1-OperationProgress)) --- The progress of the [CreateBackup](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-database-v1/latest/Google-Cloud-Spanner-Admin-Database-V1-DatabaseAdmin-Client#Google__Cloud__Spanner__Admin__Database__V1__DatabaseAdmin__Client_create_backup_instance_ "Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Client#create_backup (method)") operation.
**Returns**

- ([::Google::Cloud::Spanner::Admin::Database::V1::OperationProgress](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-database-v1/latest/Google-Cloud-Spanner-Admin-Database-V1-OperationProgress)) --- The progress of the [CreateBackup](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-spanner-admin-database-v1/latest/Google-Cloud-Spanner-Admin-Database-V1-DatabaseAdmin-Client#Google__Cloud__Spanner__Admin__Database__V1__DatabaseAdmin__Client_create_backup_instance_ "Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Client#create_backup (method)") operation.