Class: Google::Apis::SpannerV1::CopyBackupRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/spanner_v1/classes.rb,
lib/google/apis/spanner_v1/representations.rb,
lib/google/apis/spanner_v1/representations.rb

Overview

The request for CopyBackup.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CopyBackupRequest

Returns a new instance of CopyBackupRequest.



1553
1554
1555
# File 'lib/google/apis/spanner_v1/classes.rb', line 1553

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#backup_idString

Required. The id of the backup copy. The backup_id appended to parent forms the full backup_uri of the form projects//instances//backups/. Corresponds to the JSON property backupId

Returns:

  • (String)


1529
1530
1531
# File 'lib/google/apis/spanner_v1/classes.rb', line 1529

def backup_id
  @backup_id
end

#encryption_configGoogle::Apis::SpannerV1::CopyBackupEncryptionConfig

Encryption configuration for the copied backup. Corresponds to the JSON property encryptionConfig



1534
1535
1536
# File 'lib/google/apis/spanner_v1/classes.rb', line 1534

def encryption_config
  @encryption_config
end

#expire_timeString

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. Corresponds to the JSON property expireTime

Returns:

  • (String)


1543
1544
1545
# File 'lib/google/apis/spanner_v1/classes.rb', line 1543

def expire_time
  @expire_time
end

#source_backupString

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//instances//backups/. Corresponds to the JSON property sourceBackup

Returns:

  • (String)


1551
1552
1553
# File 'lib/google/apis/spanner_v1/classes.rb', line 1551

def source_backup
  @source_backup
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1558
1559
1560
1561
1562
1563
# File 'lib/google/apis/spanner_v1/classes.rb', line 1558

def update!(**args)
  @backup_id = args[:backup_id] if args.key?(:backup_id)
  @encryption_config = args[:encryption_config] if args.key?(:encryption_config)
  @expire_time = args[:expire_time] if args.key?(:expire_time)
  @source_backup = args[:source_backup] if args.key?(:source_backup)
end