Class: Azure::DataMigration::Mgmt::V2018_04_19::Models::MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-04-19/generated/azure_mgmt_data_migration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_database_input.rb

Overview

Database specific information for PostgreSQL to Azure Database for PostgreSQL migration task inputs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#migration_settingHash{String => String}

migration behavior

Returns:

  • (Hash{String => String})

    Migration settings which tune the



25
26
27
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_database_input.rb', line 25

def migration_setting
  @migration_setting
end

#nameString

Returns Name of the database.

Returns:

  • (String)

    Name of the database



17
18
19
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_database_input.rb', line 17

def name
  @name
end

#source_settingHash{String => String}

endpoint migration behavior

Returns:

  • (Hash{String => String})

    Source settings to tune source



29
30
31
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_database_input.rb', line 29

def source_setting
  @source_setting
end

#target_database_nameString

truncated before starting migration.

Returns:

  • (String)

    Name of target database. Note: Target database will be



21
22
23
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_database_input.rb', line 21

def target_database_name
  @target_database_name
end

#target_settingHash{String => String}

endpoint migration behavior

Returns:

  • (Hash{String => String})

    Target settings to tune target



33
34
35
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_database_input.rb', line 33

def target_setting
  @target_setting
end

Class Method Details

.mapperObject

Mapper for MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput class as Ruby Hash. This will be used for serialization/deserialization.



41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/migrate_postgre_sql_azure_db_for_postgre_sql_sync_database_input.rb', line 41

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput',
    type: {
      name: 'Composite',
      class_name: 'MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput',
      model_properties: {
        name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        target_database_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'targetDatabaseName',
          type: {
            name: 'String'
          }
        },
        migration_setting: {
          client_side_validation: true,
          required: false,
          serialized_name: 'migrationSetting',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        source_setting: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sourceSetting',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        target_setting: {
          client_side_validation: true,
          required: false,
          serialized_name: 'targetSetting',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        }
      }
    }
  }
end