Class: Azure::Web::Mgmt::V2018_02_01::Models::DatabaseBackupSetting
- Inherits:
-
Object
- Object
- Azure::Web::Mgmt::V2018_02_01::Models::DatabaseBackupSetting
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-02-01/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.
30 31 32 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/database_backup_setting.rb', line 30 def connection_string @connection_string end |
#connection_string_name ⇒ String
the SiteConfig.ConnectionStrings. This is used during restore with overwrite connection strings options.
25 26 27 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/database_backup_setting.rb', line 25 def connection_string_name @connection_string_name end |
#database_type ⇒ DatabaseType
values include: ‘SqlAzure’, ‘MySql’, ‘LocalMySql’, ‘PostgreSql’
17 18 19 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/database_backup_setting.rb', line 17 def database_type @database_type end |
#name ⇒ String
20 21 22 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/database_backup_setting.rb', line 20 def name @name end |
Class Method Details
.mapper ⇒ Object
Mapper for DatabaseBackupSetting class as Ruby Hash. This will be used for serialization/deserialization.
37 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 78 79 80 81 |
# File 'lib/2018-02-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 |