Class: Azure::ARM::Web::Models::DatabaseBackupSetting

Inherits:
Object
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/generated/azure_mgmt_web/models/database_backup_setting.rb

Overview

Database backup settings.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#connection_stringString

being backed up or restored. If the restore should happen to a new database, the database name inside is the new one.

Returns:

  • (String)

    Contains a connection string to a database which is



31
32
33
# File 'lib/generated/azure_mgmt_web/models/database_backup_setting.rb', line 31

def connection_string
  @connection_string
end

#connection_string_nameString

the SiteConfig.ConnectionStrings. This is used during restore with overwrite connection strings options.

Returns:

  • (String)

    Contains a connection string name that is linked to



26
27
28
# File 'lib/generated/azure_mgmt_web/models/database_backup_setting.rb', line 26

def connection_string_name
  @connection_string_name
end

#database_typeDatabaseType

values include: ‘SqlAzure’, ‘MySql’, ‘LocalMySql’, ‘PostgreSql’

Returns:

  • (DatabaseType)

    Database type (e.g. SqlAzure / MySql). Possible



18
19
20
# File 'lib/generated/azure_mgmt_web/models/database_backup_setting.rb', line 18

def database_type
  @database_type
end

#nameString

Returns:

  • (String)


21
22
23
# File 'lib/generated/azure_mgmt_web/models/database_backup_setting.rb', line 21

def name
  @name
end

Class Method Details

.mapperObject

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



38
39
40
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
# File 'lib/generated/azure_mgmt_web/models/database_backup_setting.rb', line 38

def self.mapper()
  {
    required: false,
    serialized_name: 'DatabaseBackupSetting',
    type: {
      name: 'Composite',
      class_name: 'DatabaseBackupSetting',
      model_properties: {
        database_type: {
          required: true,
          serialized_name: 'databaseType',
          type: {
            name: 'String'
          }
        },
        name: {
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        connection_string_name: {
          required: false,
          serialized_name: 'connectionStringName',
          type: {
            name: 'String'
          }
        },
        connection_string: {
          required: false,
          serialized_name: 'connectionString',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end