Class: Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::AzureIaaSVMProtectedItem

Inherits:
ProtectedItem
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item.rb

Overview

IaaS VM workload-specific backup item.

Instance Attribute Summary collapse

Attributes inherited from ProtectedItem

#backup_management_type, #backup_set_name, #container_name, #create_mode, #last_recovery_point, #policy_id, #source_resource_id, #workload_type

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAzureIaaSVMProtectedItem

Returns a new instance of AzureIaaSVMProtectedItem.

[View source]

20
21
22
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item.rb', line 20

def initialize
  @protectedItemType = "AzureIaaSVMProtectedItem"
end

Instance Attribute Details

#extended_infoAzureIaaSVMProtectedItemExtendedInfo

for this backup item.

Returns:


62
63
64
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item.rb', line 62

def extended_info
  @extended_info
end

#friendly_nameString

item.

Returns:

  • (String)

    Friendly name of the VM represented by this backup


28
29
30
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item.rb', line 28

def friendly_name
  @friendly_name
end

#health_detailsArray<AzureIaaSVMHealthDetails>

item.

Returns:


48
49
50
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item.rb', line 48

def health_details
  @health_details
end

#health_statusHealthStatus

include: ‘Passed’, ‘ActionRequired’, ‘ActionSuggested’, ‘Invalid’

Returns:

  • (HealthStatus)

    Health status of protected item. Possible values


44
45
46
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item.rb', line 44

def health_status
  @health_status
end

#last_backup_statusString

Returns Last backup operation status.

Returns:

  • (String)

    Last backup operation status.


51
52
53
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item.rb', line 51

def last_backup_status
  @last_backup_status
end

#last_backup_timeDateTime

backup item.

Returns:

  • (DateTime)

    Timestamp of the last backup operation on this


55
56
57
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item.rb', line 55

def last_backup_time
  @last_backup_time
end

#protected_item_data_idString

Returns Data ID of the protected item.

Returns:

  • (String)

    Data ID of the protected item.


58
59
60
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item.rb', line 58

def protected_item_data_id
  @protected_item_data_id
end

#protectedItemTypeObject

Returns the value of attribute protectedItemType.


24
25
26
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item.rb', line 24

def protectedItemType
  @protectedItemType
end

#protection_stateProtectionState

values include: ‘Invalid’, ‘IRPending’, ‘Protected’, ‘ProtectionError’, ‘ProtectionStopped’, ‘ProtectionPaused’

Returns:


40
41
42
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item.rb', line 40

def protection_state
  @protection_state
end

#protection_statusString

Returns Backup status of this backup item.

Returns:

  • (String)

    Backup status of this backup item.


35
36
37
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item.rb', line 35

def protection_status
  @protection_status
end

#virtual_machine_idString

represented by this item.

Returns:

  • (String)

    Fully qualified ARM ID of the virtual machine


32
33
34
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item.rb', line 32

def virtual_machine_id
  @virtual_machine_id
end

Class Method Details

.mapperObject

Mapper for AzureIaaSVMProtectedItem class as Ruby Hash. This will be used for serialization/deserialization.

[View source]

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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/azure_iaa_svmprotected_item.rb', line 69

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'AzureIaaSVMProtectedItem',
    type: {
      name: 'Composite',
      class_name: 'AzureIaaSVMProtectedItem',
      model_properties: {
        backup_management_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'backupManagementType',
          type: {
            name: 'String'
          }
        },
        workload_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'workloadType',
          type: {
            name: 'String'
          }
        },
        container_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'containerName',
          type: {
            name: 'String'
          }
        },
        source_resource_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sourceResourceId',
          type: {
            name: 'String'
          }
        },
        policy_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'policyId',
          type: {
            name: 'String'
          }
        },
        last_recovery_point: {
          client_side_validation: true,
          required: false,
          serialized_name: 'lastRecoveryPoint',
          type: {
            name: 'DateTime'
          }
        },
        backup_set_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'backupSetName',
          type: {
            name: 'String'
          }
        },
        create_mode: {
          client_side_validation: true,
          required: false,
          serialized_name: 'createMode',
          type: {
            name: 'String'
          }
        },
        protectedItemType: {
          client_side_validation: true,
          required: true,
          serialized_name: 'protectedItemType',
          type: {
            name: 'String'
          }
        },
        friendly_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'friendlyName',
          type: {
            name: 'String'
          }
        },
        virtual_machine_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'virtualMachineId',
          type: {
            name: 'String'
          }
        },
        protection_status: {
          client_side_validation: true,
          required: false,
          serialized_name: 'protectionStatus',
          type: {
            name: 'String'
          }
        },
        protection_state: {
          client_side_validation: true,
          required: false,
          serialized_name: 'protectionState',
          type: {
            name: 'String'
          }
        },
        health_status: {
          client_side_validation: true,
          required: false,
          serialized_name: 'healthStatus',
          type: {
            name: 'String'
          }
        },
        health_details: {
          client_side_validation: true,
          required: false,
          serialized_name: 'healthDetails',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'AzureIaaSVMHealthDetailsElementType',
                type: {
                  name: 'Composite',
                  class_name: 'AzureIaaSVMHealthDetails'
                }
            }
          }
        },
        last_backup_status: {
          client_side_validation: true,
          required: false,
          serialized_name: 'lastBackupStatus',
          type: {
            name: 'String'
          }
        },
        last_backup_time: {
          client_side_validation: true,
          required: false,
          serialized_name: 'lastBackupTime',
          type: {
            name: 'DateTime'
          }
        },
        protected_item_data_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'protectedItemDataId',
          type: {
            name: 'String'
          }
        },
        extended_info: {
          client_side_validation: true,
          required: false,
          serialized_name: 'extendedInfo',
          type: {
            name: 'Composite',
            class_name: 'AzureIaaSVMProtectedItemExtendedInfo'
          }
        }
      }
    }
  }
end