Class: Azure::Cosmosdb::Mgmt::V2020_09_01::Models::PeriodicModeBackupPolicy
- Inherits:
-
BackupPolicy
- Object
- BackupPolicy
- Azure::Cosmosdb::Mgmt::V2020_09_01::Models::PeriodicModeBackupPolicy
- Includes:
- MsRestAzure
- Defined in:
- lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/periodic_mode_backup_policy.rb
Overview
The object representing periodic mode backup policy.
Instance Attribute Summary collapse
-
#periodic_mode_properties ⇒ PeriodicModeProperties
backup.
-
#type ⇒ Object
Returns the value of attribute type.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for PeriodicModeBackupPolicy class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ PeriodicModeBackupPolicy
constructor
A new instance of PeriodicModeBackupPolicy.
Constructor Details
#initialize ⇒ PeriodicModeBackupPolicy
Returns a new instance of PeriodicModeBackupPolicy.
16 17 18 |
# File 'lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/periodic_mode_backup_policy.rb', line 16 def initialize @type = "Periodic" end |
Instance Attribute Details
#periodic_mode_properties ⇒ PeriodicModeProperties
backup
24 25 26 |
# File 'lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/periodic_mode_backup_policy.rb', line 24 def periodic_mode_properties @periodic_mode_properties end |
#type ⇒ Object
Returns the value of attribute type.
20 21 22 |
# File 'lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/periodic_mode_backup_policy.rb', line 20 def type @type end |
Class Method Details
.mapper ⇒ Object
Mapper for PeriodicModeBackupPolicy class as Ruby Hash. This will be used for serialization/deserialization.
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/periodic_mode_backup_policy.rb', line 31 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Periodic', type: { name: 'Composite', class_name: 'PeriodicModeBackupPolicy', model_properties: { type: { client_side_validation: true, required: true, serialized_name: 'type', type: { name: 'String' } }, periodic_mode_properties: { client_side_validation: true, required: false, serialized_name: 'periodicModeProperties', type: { name: 'Composite', class_name: 'PeriodicModeProperties' } } } } } end |