@@ -132,7 +132,17 @@ class Backup(proto.Message):
132132 """
133133
134134 class State (proto .Enum ):
135- r"""Indicates the current state of the backup."""
135+ r"""Indicates the current state of the backup.
136+
137+ Values:
138+ STATE_UNSPECIFIED (0):
139+ Not specified.
140+ CREATING (1):
141+ The pending backup is still being created. Operations on the
142+ backup may fail with ``FAILED_PRECONDITION`` in this state.
143+ READY (2):
144+ The backup is complete and ready for use.
145+ """
136146 STATE_UNSPECIFIED = 0
137147 CREATING = 1
138148 READY = 2
@@ -810,7 +820,24 @@ class CreateBackupEncryptionConfig(proto.Message):
810820 """
811821
812822 class EncryptionType (proto .Enum ):
813- r"""Encryption types for the backup."""
823+ r"""Encryption types for the backup.
824+
825+ Values:
826+ ENCRYPTION_TYPE_UNSPECIFIED (0):
827+ Unspecified. Do not use.
828+ USE_DATABASE_ENCRYPTION (1):
829+ Use the same encryption configuration as the database. This
830+ is the default option when
831+ [encryption_config][google.spanner.admin.database.v1.CreateBackupEncryptionConfig]
832+ is empty. For example, if the database is using
833+ ``Customer_Managed_Encryption``, the backup will be using
834+ the same Cloud KMS key as the database.
835+ GOOGLE_DEFAULT_ENCRYPTION (2):
836+ Use Google default encryption.
837+ CUSTOMER_MANAGED_ENCRYPTION (3):
838+ Use customer managed encryption. If specified,
839+ ``kms_key_name`` must contain a valid Cloud KMS key.
840+ """
814841 ENCRYPTION_TYPE_UNSPECIFIED = 0
815842 USE_DATABASE_ENCRYPTION = 1
816843 GOOGLE_DEFAULT_ENCRYPTION = 2
@@ -842,7 +869,25 @@ class CopyBackupEncryptionConfig(proto.Message):
842869 """
843870
844871 class EncryptionType (proto .Enum ):
845- r"""Encryption types for the backup."""
872+ r"""Encryption types for the backup.
873+
874+ Values:
875+ ENCRYPTION_TYPE_UNSPECIFIED (0):
876+ Unspecified. Do not use.
877+ USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION (1):
878+ This is the default option for
879+ [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup]
880+ when
881+ [encryption_config][google.spanner.admin.database.v1.CopyBackupEncryptionConfig]
882+ is not specified. For example, if the source backup is using
883+ ``Customer_Managed_Encryption``, the backup will be using
884+ the same Cloud KMS key as the source backup.
885+ GOOGLE_DEFAULT_ENCRYPTION (2):
886+ Use Google default encryption.
887+ CUSTOMER_MANAGED_ENCRYPTION (3):
888+ Use customer managed encryption. If specified,
889+ ``kms_key_name`` must contain a valid Cloud KMS key.
890+ """
846891 ENCRYPTION_TYPE_UNSPECIFIED = 0
847892 USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION = 1
848893 GOOGLE_DEFAULT_ENCRYPTION = 2
0 commit comments