Class: Azure::NetApp::Mgmt::V2020_07_01::Models::SnapshotPolicy
- Inherits:
-
Object
- Object
- Azure::NetApp::Mgmt::V2020_07_01::Models::SnapshotPolicy
- Includes:
- MsRestAzure
- Defined in:
- lib/2020-07-01/generated/azure_mgmt_netapp/models/snapshot_policy.rb
Overview
Snapshot policy information
Instance Attribute Summary collapse
-
#daily_schedule ⇒ DailySchedule
DailySchedule.
-
#enabled ⇒ Boolean
The property to decide policy is enabled or not.
-
#hourly_schedule ⇒ HourlySchedule
HourlySchedule.
-
#id ⇒ String
Resource Id.
-
#location ⇒ String
Resource location.
-
#monthly_schedule ⇒ MonthlySchedule
snapshots.
-
#name ⇒ String
Resource name.
-
#name1 ⇒ String
Snapshot policy name.
-
#provisioning_state ⇒ String
Azure lifecycle management.
-
#tags ⇒ Hash{String => String}
Resource tags.
-
#type ⇒ String
Resource type.
-
#weekly_schedule ⇒ WeeklySchedule
WeeklySchedule.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for SnapshotPolicy class as Ruby Hash.
Instance Attribute Details
#daily_schedule ⇒ DailySchedule
Returns dailySchedule. Schedule for daily snapshots.
37 38 39 |
# File 'lib/2020-07-01/generated/azure_mgmt_netapp/models/snapshot_policy.rb', line 37 def daily_schedule @daily_schedule end |
#enabled ⇒ Boolean
Returns The property to decide policy is enabled or not.
47 48 49 |
# File 'lib/2020-07-01/generated/azure_mgmt_netapp/models/snapshot_policy.rb', line 47 def enabled @enabled end |
#hourly_schedule ⇒ HourlySchedule
Returns hourlySchedule. Schedule for hourly snapshots.
34 35 36 |
# File 'lib/2020-07-01/generated/azure_mgmt_netapp/models/snapshot_policy.rb', line 34 def hourly_schedule @hourly_schedule end |
#id ⇒ String
Returns Resource Id.
19 20 21 |
# File 'lib/2020-07-01/generated/azure_mgmt_netapp/models/snapshot_policy.rb', line 19 def id @id end |
#location ⇒ String
Returns Resource location.
16 17 18 |
# File 'lib/2020-07-01/generated/azure_mgmt_netapp/models/snapshot_policy.rb', line 16 def location @location end |
#monthly_schedule ⇒ MonthlySchedule
snapshots
44 45 46 |
# File 'lib/2020-07-01/generated/azure_mgmt_netapp/models/snapshot_policy.rb', line 44 def monthly_schedule @monthly_schedule end |
#name ⇒ String
Returns Resource name.
22 23 24 |
# File 'lib/2020-07-01/generated/azure_mgmt_netapp/models/snapshot_policy.rb', line 22 def name @name end |
#name1 ⇒ String
Returns Snapshot policy name.
31 32 33 |
# File 'lib/2020-07-01/generated/azure_mgmt_netapp/models/snapshot_policy.rb', line 31 def name1 @name1 end |
#provisioning_state ⇒ String
Returns Azure lifecycle management.
50 51 52 |
# File 'lib/2020-07-01/generated/azure_mgmt_netapp/models/snapshot_policy.rb', line 50 def provisioning_state @provisioning_state end |
#tags ⇒ Hash{String => String}
Returns Resource tags.
28 29 30 |
# File 'lib/2020-07-01/generated/azure_mgmt_netapp/models/snapshot_policy.rb', line 28 def @tags end |
#type ⇒ String
Returns Resource type.
25 26 27 |
# File 'lib/2020-07-01/generated/azure_mgmt_netapp/models/snapshot_policy.rb', line 25 def type @type end |
#weekly_schedule ⇒ WeeklySchedule
Returns weeklySchedule. Schedule for weekly snapshots.
40 41 42 |
# File 'lib/2020-07-01/generated/azure_mgmt_netapp/models/snapshot_policy.rb', line 40 def weekly_schedule @weekly_schedule end |
Class Method Details
.mapper ⇒ Object
Mapper for SnapshotPolicy class as Ruby Hash. This will be used for serialization/deserialization.
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 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 |
# File 'lib/2020-07-01/generated/azure_mgmt_netapp/models/snapshot_policy.rb', line 57 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'snapshotPolicy', type: { name: 'Composite', class_name: 'SnapshotPolicy', model_properties: { location: { client_side_validation: true, required: true, serialized_name: 'location', type: { name: 'String' } }, id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'name', type: { name: 'String' } }, type: { client_side_validation: true, required: false, read_only: true, serialized_name: 'type', type: { name: 'String' } }, tags: { client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, name1: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.name', type: { name: 'String' } }, hourly_schedule: { client_side_validation: true, required: false, serialized_name: 'properties.hourlySchedule', type: { name: 'Composite', class_name: 'HourlySchedule' } }, daily_schedule: { client_side_validation: true, required: false, serialized_name: 'properties.dailySchedule', type: { name: 'Composite', class_name: 'DailySchedule' } }, weekly_schedule: { client_side_validation: true, required: false, serialized_name: 'properties.weeklySchedule', type: { name: 'Composite', class_name: 'WeeklySchedule' } }, monthly_schedule: { client_side_validation: true, required: false, serialized_name: 'properties.monthlySchedule', type: { name: 'Composite', class_name: 'MonthlySchedule' } }, enabled: { client_side_validation: true, required: false, serialized_name: 'properties.enabled', type: { name: 'Boolean' } }, provisioning_state: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.provisioningState', type: { name: 'String' } } } } } end |