class Azure::Web::Mgmt::V2020_09_01::Models::DatabaseBackupSetting

Database backup settings.

Attributes

connection_string[RW]

@return [String] Contains a connection string to a database which is being backed up or restored. If the restore should happen to a new database, the database name inside is the new one.

connection_string_name[RW]

@return [String] Contains a connection string name that is linked to the SiteConfig.ConnectionStrings. This is used during restore with overwrite connection strings options.

database_type[RW]

@return [DatabaseType] Database type (e.g. SqlAzure / MySql). Possible values include: 'SqlAzure', 'MySql', 'LocalMySql', 'PostgreSql'

name[RW]

@return [String]

Private Class Methods

mapper() click to toggle source

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

# File lib/2020-09-01/generated/azure_mgmt_web/models/database_backup_setting.rb, line 37
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'DatabaseBackupSetting',
    type: {
      name: 'Composite',
      class_name: 'DatabaseBackupSetting',
      model_properties: {
        database_type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'databaseType',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        connection_string_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'connectionStringName',
          type: {
            name: 'String'
          }
        },
        connection_string: {
          client_side_validation: true,
          required: false,
          serialized_name: 'connectionString',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end