Class: Azure::ARM::Web::Models::BackupSchedule
- Inherits:
-
Object
- Object
- Azure::ARM::Web::Models::BackupSchedule
- Includes:
- MsRestAzure
- Defined in:
- lib/generated/azure_mgmt_web/models/backup_schedule.rb
Overview
Description of a backup schedule. Describes how often should be the backup performed and what should be the retention policy.
Instance Attribute Summary collapse
-
#frequency_interval ⇒ Integer
weekly backup, this should be set to 7 and FrequencyUnit should be set to Day).
-
#frequency_unit ⇒ FrequencyUnit
for weekly backup, this should be set to Day and FrequencyInterval should be set to 7).
-
#keep_at_least_one_backup ⇒ Boolean
least one backup in the storage account, regardless how old it is; false otherwise.
-
#last_execution_time ⇒ DateTime
The last time when this schedule was triggered.
-
#retention_period_in_days ⇒ Integer
After how many days backups should be deleted.
-
#start_time ⇒ DateTime
When the schedule should start working.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for BackupSchedule class as Ruby Hash.
Instance Attribute Details
#frequency_interval ⇒ Integer
weekly backup, this should be set to 7 and FrequencyUnit should be set to Day)
19 20 21 |
# File 'lib/generated/azure_mgmt_web/models/backup_schedule.rb', line 19 def frequency_interval @frequency_interval end |
#frequency_unit ⇒ FrequencyUnit
for weekly backup, this should be set to Day and FrequencyInterval should be set to 7). Possible values include: ‘Day’, ‘Hour’
24 25 26 |
# File 'lib/generated/azure_mgmt_web/models/backup_schedule.rb', line 24 def frequency_unit @frequency_unit end |
#keep_at_least_one_backup ⇒ Boolean
least one backup in the storage account, regardless how old it is; false otherwise.
29 30 31 |
# File 'lib/generated/azure_mgmt_web/models/backup_schedule.rb', line 29 def keep_at_least_one_backup @keep_at_least_one_backup end |
#last_execution_time ⇒ DateTime
Returns The last time when this schedule was triggered.
38 39 40 |
# File 'lib/generated/azure_mgmt_web/models/backup_schedule.rb', line 38 def last_execution_time @last_execution_time end |
#retention_period_in_days ⇒ Integer
Returns After how many days backups should be deleted.
32 33 34 |
# File 'lib/generated/azure_mgmt_web/models/backup_schedule.rb', line 32 def retention_period_in_days @retention_period_in_days end |
#start_time ⇒ DateTime
Returns When the schedule should start working.
35 36 37 |
# File 'lib/generated/azure_mgmt_web/models/backup_schedule.rb', line 35 def start_time @start_time end |
Class Method Details
.mapper ⇒ Object
Mapper for BackupSchedule class as Ruby Hash. This will be used for serialization/deserialization.
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 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 |
# File 'lib/generated/azure_mgmt_web/models/backup_schedule.rb', line 45 def self.mapper() { required: false, serialized_name: 'BackupSchedule', type: { name: 'Composite', class_name: 'BackupSchedule', model_properties: { frequency_interval: { required: false, serialized_name: 'frequencyInterval', type: { name: 'Number' } }, frequency_unit: { required: true, serialized_name: 'frequencyUnit', type: { name: 'Enum', module: 'FrequencyUnit' } }, keep_at_least_one_backup: { required: false, serialized_name: 'keepAtLeastOneBackup', type: { name: 'Boolean' } }, retention_period_in_days: { required: false, serialized_name: 'retentionPeriodInDays', type: { name: 'Number' } }, start_time: { required: false, serialized_name: 'startTime', type: { name: 'DateTime' } }, last_execution_time: { required: false, serialized_name: 'lastExecutionTime', type: { name: 'DateTime' } } } } } end |