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

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

Overview

Note: properties are serialized in JSON format and stored in DB. if new properties are added they might not be in the previous data rows so please handle nulls

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#connection_stringString

being backed up/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



33
34
35
# File 'lib/generated/azure_mgmt_web/models/database_backup_setting.rb', line 33

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



28
29
30
# File 'lib/generated/azure_mgmt_web/models/database_backup_setting.rb', line 28

def connection_string_name
  @connection_string_name
end

#database_typeString

Returns SqlAzure / MySql.

Returns:

  • (String)

    SqlAzure / MySql



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

def database_type
  @database_type
end

#nameString

Returns:

  • (String)


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

def name
  @name
end

Class Method Details

.mapperObject

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



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

def self.mapper()
  {
    required: false,
    serialized_name: 'DatabaseBackupSetting',
    type: {
      name: 'Composite',
      class_name: 'DatabaseBackupSetting',
      model_properties: {
        database_type: {
          required: false,
          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