Class: Azure::ARM::Web::Models::DatabaseBackupSetting
- Inherits:
-
Object
- Object
- Azure::ARM::Web::Models::DatabaseBackupSetting
- Includes:
- MsRest::JSONable, MsRestAzure
- Defined in:
- lib/generated/azure_mgmt_web/models/database_backup_setting.rb
Overview
Database backup settings.
Instance Attribute Summary collapse
-
#connection_string ⇒ String
being backed up or restored.
-
#connection_string_name ⇒ String
the SiteConfig.ConnectionStrings.
-
#database_type ⇒ DatabaseType
values include: ‘SqlAzure’, ‘MySql’, ‘LocalMySql’, ‘PostgreSql’.
- #name ⇒ String
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for DatabaseBackupSetting class as Ruby Hash.
Instance Attribute Details
#connection_string ⇒ String
being backed up or restored. If the restore should happen to a new database, the database name inside is the new one.
31 32 33 |
# File 'lib/generated/azure_mgmt_web/models/database_backup_setting.rb', line 31 def connection_string @connection_string end |
#connection_string_name ⇒ String
the SiteConfig.ConnectionStrings. This is used during restore with overwrite connection strings options.
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_type ⇒ DatabaseType
values include: ‘SqlAzure’, ‘MySql’, ‘LocalMySql’, ‘PostgreSql’
18 19 20 |
# File 'lib/generated/azure_mgmt_web/models/database_backup_setting.rb', line 18 def database_type @database_type end |
#name ⇒ String
21 22 23 |
# File 'lib/generated/azure_mgmt_web/models/database_backup_setting.rb', line 21 def name @name end |
Class Method Details
.mapper ⇒ Object
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 |