proto_docs/google/bigtable/admin/v2/table.rb in google-cloud-bigtable-admin-v2-1.1.0 vs proto_docs/google/bigtable/admin/v2/table.rb in google-cloud-bigtable-admin-v2-1.2.0
- old
+ new
@@ -470,18 +470,21 @@
# `projects/{project}/instances/{instance}/tables/{source_table}`.
# @!attribute [r] source_backup
# @return [::String]
# Output only. Name of the backup from which this backup was copied. If a
# backup is not created by copying a backup, this field will be empty. Values
- # are of the form: projects/<project>/instances/<instance>/backups/<backup>.
+ # are of the form:
+ # projects/<project>/instances/<instance>/clusters/<cluster>/backups/<backup>
# @!attribute [rw] expire_time
# @return [::Google::Protobuf::Timestamp]
- # Required. The expiration time of the backup, with microseconds
- # granularity that must be at least 6 hours and at most 90 days
- # from the time the request is received. Once the `expire_time`
- # has passed, Cloud Bigtable will delete the backup and free the
- # resources used by the backup.
+ # Required. The expiration time of the backup.
+ # When creating a backup or updating its `expire_time`, the value must be
+ # greater than the backup creation time by:
+ # - At least 6 hours
+ # - At most 90 days
+ #
+ # Once the `expire_time` has passed, Cloud Bigtable will delete the backup.
# @!attribute [r] start_time
# @return [::Google::Protobuf::Timestamp]
# Output only. `start_time` is the time that the backup was started
# (i.e. approximately the time the
# {::Google::Cloud::Bigtable::Admin::V2::BigtableTableAdmin::Client#create_backup CreateBackup}
@@ -498,10 +501,23 @@
# @return [::Google::Cloud::Bigtable::Admin::V2::Backup::State]
# Output only. The current state of the backup.
# @!attribute [r] encryption_info
# @return [::Google::Cloud::Bigtable::Admin::V2::EncryptionInfo]
# Output only. The encryption information for the backup.
+ # @!attribute [rw] backup_type
+ # @return [::Google::Cloud::Bigtable::Admin::V2::Backup::BackupType]
+ # Indicates the backup type of the backup.
+ # @!attribute [rw] hot_to_standard_time
+ # @return [::Google::Protobuf::Timestamp]
+ # The time at which the hot backup will be converted to a standard backup.
+ # Once the `hot_to_standard_time` has passed, Cloud Bigtable will convert the
+ # hot backup to a standard backup. This value must be greater than the backup
+ # creation time by:
+ # - At least 24 hours
+ #
+ # This field only applies for hot backups. When creating or updating a
+ # standard backup, attempting to set this field will fail the request.
class Backup
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
# Indicates the current state of the backup.
@@ -514,10 +530,27 @@
CREATING = 1
# The backup is complete and ready for use.
READY = 2
end
+
+ # The type of the backup.
+ module BackupType
+ # Not specified.
+ BACKUP_TYPE_UNSPECIFIED = 0
+
+ # The default type for Cloud Bigtable managed backups. Supported for
+ # backups created in both HDD and SSD instances. Requires optimization when
+ # restored to a table in an SSD instance.
+ STANDARD = 1
+
+ # A backup type with faster restore to SSD performance. Only supported for
+ # backups created in SSD instances. A new SSD table restored from a hot
+ # backup reaches production performance more quickly than a standard
+ # backup.
+ HOT = 2
+ end
end
# Information about a backup.
# @!attribute [r] backup
# @return [::String]
@@ -535,10 +568,11 @@
# Output only. Name of the table the backup was created from.
# @!attribute [r] source_backup
# @return [::String]
# Output only. Name of the backup from which this backup was copied. If a
# backup is not created by copying a backup, this field will be empty. Values
- # are of the form: projects/<project>/instances/<instance>/backups/<backup>.
+ # are of the form:
+ # projects/<project>/instances/<instance>/clusters/<cluster>/backups/<backup>
class BackupInfo
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
end