Class: Google::Apis::DatamigrationV1::SqlServerHomogeneousMigrationJobConfig
- Inherits:
-
Object
- Object
- Google::Apis::DatamigrationV1::SqlServerHomogeneousMigrationJobConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/datamigration_v1/classes.rb,
lib/google/apis/datamigration_v1/representations.rb,
lib/google/apis/datamigration_v1/representations.rb
Overview
Configuration for homogeneous migration to Cloud SQL for SQL Server.
Instance Attribute Summary collapse
-
#backup_file_pattern ⇒ String
Required.
-
#database_backups ⇒ Array<Google::Apis::DatamigrationV1::SqlServerDatabaseBackup>
Required.
-
#promote_when_ready ⇒ Boolean
(also: #promote_when_ready?)
Optional.
-
#use_diff_backup ⇒ Boolean
(also: #use_diff_backup?)
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SqlServerHomogeneousMigrationJobConfig
constructor
A new instance of SqlServerHomogeneousMigrationJobConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SqlServerHomogeneousMigrationJobConfig
Returns a new instance of SqlServerHomogeneousMigrationJobConfig.
4898 4899 4900 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4898 def initialize(**args) update!(**args) end |
Instance Attribute Details
#backup_file_pattern ⇒ String
Required. Pattern that describes the default backup naming strategy. The
specified pattern should ensure lexicographical order of backups. The pattern
must define one of the following capture group sets: Capture group set #1 yy/
yyyy - year, 2 or 4 digits mm - month number, 1-12 dd - day of month, 1-31 hh -
hour of day, 00-23 mi - minutes, 00-59 ss - seconds, 00-59 Example: For
backup file TestDB_20230802_155400.trn, use pattern: (?.)backup(?\d4
)(?\d
2
)(?\d2
)_(?\d2
)(?\d2
)(?\d2
).trn Capture group set #2 timestamp - unix
timestamp Example: For backup file TestDB.1691448254.trn, use pattern: (?.).(
?\d*).trn or (?.).(?\d).trn
Corresponds to the JSON property backupFilePattern
4879 4880 4881 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4879 def backup_file_pattern @backup_file_pattern end |
#database_backups ⇒ Array<Google::Apis::DatamigrationV1::SqlServerDatabaseBackup>
Required. Backup details per database in Cloud Storage.
Corresponds to the JSON property databaseBackups
4884 4885 4886 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4884 def database_backups @database_backups end |
#promote_when_ready ⇒ Boolean Also known as: promote_when_ready?
Optional. Promote databases when ready.
Corresponds to the JSON property promoteWhenReady
4889 4890 4891 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4889 def promote_when_ready @promote_when_ready end |
#use_diff_backup ⇒ Boolean Also known as: use_diff_backup?
Optional. Enable differential backups.
Corresponds to the JSON property useDiffBackup
4895 4896 4897 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4895 def use_diff_backup @use_diff_backup end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4903 4904 4905 4906 4907 4908 |
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4903 def update!(**args) @backup_file_pattern = args[:backup_file_pattern] if args.key?(:backup_file_pattern) @database_backups = args[:database_backups] if args.key?(:database_backups) @promote_when_ready = args[:promote_when_ready] if args.key?(:promote_when_ready) @use_diff_backup = args[:use_diff_backup] if args.key?(:use_diff_backup) end |