Class: Azure::ARM::Web::Models::BackupSchedule
- Inherits:
-
Object
- Object
- Azure::ARM::Web::Models::BackupSchedule
- Includes:
- MsRest::JSONable, 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
should be executed (e.g. 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
Last time when this schedule was triggered.
-
#retention_period_in_days ⇒ Integer
Default value: 30 .
-
#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). Default value: 7 .
20 21 22 |
# File 'lib/generated/azure_mgmt_web/models/backup_schedule.rb', line 20 def frequency_interval @frequency_interval end |
#frequency_unit ⇒ FrequencyUnit
should be executed (e.g. for weekly backup, this should be set to Day and FrequencyInterval should be set to 7). Possible values include: ‘Day’, ‘Hour’. Default value: ‘Day’ .
26 27 28 |
# File 'lib/generated/azure_mgmt_web/models/backup_schedule.rb', line 26 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. Default value: true .
31 32 33 |
# File 'lib/generated/azure_mgmt_web/models/backup_schedule.rb', line 31 def keep_at_least_one_backup @keep_at_least_one_backup end |
#last_execution_time ⇒ DateTime
Returns Last time when this schedule was triggered.
41 42 43 |
# File 'lib/generated/azure_mgmt_web/models/backup_schedule.rb', line 41 def last_execution_time @last_execution_time end |
#retention_period_in_days ⇒ Integer
Default value: 30 .
35 36 37 |
# File 'lib/generated/azure_mgmt_web/models/backup_schedule.rb', line 35 def retention_period_in_days @retention_period_in_days end |
#start_time ⇒ DateTime
Returns When the schedule should start working.
38 39 40 |
# File 'lib/generated/azure_mgmt_web/models/backup_schedule.rb', line 38 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.
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 100 101 102 103 104 105 106 107 |
# File 'lib/generated/azure_mgmt_web/models/backup_schedule.rb', line 48 def self.mapper() { required: false, serialized_name: 'BackupSchedule', type: { name: 'Composite', class_name: 'BackupSchedule', model_properties: { frequency_interval: { required: true, serialized_name: 'frequencyInterval', default_value: 7, type: { name: 'Number' } }, frequency_unit: { required: true, serialized_name: 'frequencyUnit', default_value: 'Day', type: { name: 'Enum', module: 'FrequencyUnit' } }, keep_at_least_one_backup: { required: true, serialized_name: 'keepAtLeastOneBackup', default_value: true, type: { name: 'Boolean' } }, retention_period_in_days: { required: true, serialized_name: 'retentionPeriodInDays', default_value: 30, type: { name: 'Number' } }, start_time: { required: false, serialized_name: 'startTime', type: { name: 'DateTime' } }, last_execution_time: { required: false, read_only: true, serialized_name: 'lastExecutionTime', type: { name: 'DateTime' } } } } } end |