Class: Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::GenericProtectedItem
- Inherits:
-
ProtectedItem
- Object
- ProtectedItem
- Azure::RecoveryServicesBackup::Mgmt::V2016_12_01::Models::GenericProtectedItem
- Includes:
- MsRestAzure
- Defined in:
- lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/generic_protected_item.rb
Overview
Base class for backup items.
Instance Attribute Summary collapse
-
#fabric_name ⇒ String
Name of this backup item’s fabric.
-
#friendly_name ⇒ String
Friendly name of the container.
-
#policy_state ⇒ String
applied to this backup item.
-
#protected_item_id ⇒ Integer
Data Plane Service ID of the protected item.
-
#protectedItemType ⇒ Object
Returns the value of attribute protectedItemType.
-
#protection_state ⇒ ProtectionState
values include: ‘Invalid’, ‘IRPending’, ‘Protected’, ‘ProtectionError’, ‘ProtectionStopped’, ‘ProtectionPaused’.
-
#source_associations ⇒ Hash{String => String}
associations (example - parent of a protected item).
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
-
.mapper ⇒ Object
Mapper for GenericProtectedItem class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ GenericProtectedItem
constructor
A new instance of GenericProtectedItem.
Constructor Details
#initialize ⇒ GenericProtectedItem
Returns a new instance of GenericProtectedItem.
20 21 22 |
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/generic_protected_item.rb', line 20 def initialize @protectedItemType = "GenericProtectedItem" end |
Instance Attribute Details
#fabric_name ⇒ String
Returns Name of this backup item’s fabric.
46 47 48 |
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/generic_protected_item.rb', line 46 def fabric_name @fabric_name end |
#friendly_name ⇒ String
Returns Friendly name of the container.
27 28 29 |
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/generic_protected_item.rb', line 27 def friendly_name @friendly_name end |
#policy_state ⇒ String
applied to this backup item.
31 32 33 |
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/generic_protected_item.rb', line 31 def policy_state @policy_state end |
#protected_item_id ⇒ Integer
Returns Data Plane Service ID of the protected item.
39 40 41 |
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/generic_protected_item.rb', line 39 def protected_item_id @protected_item_id end |
#protectedItemType ⇒ Object
Returns the value of attribute protectedItemType.
24 25 26 |
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/generic_protected_item.rb', line 24 def protectedItemType @protectedItemType end |
#protection_state ⇒ ProtectionState
values include: ‘Invalid’, ‘IRPending’, ‘Protected’, ‘ProtectionError’, ‘ProtectionStopped’, ‘ProtectionPaused’
36 37 38 |
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/generic_protected_item.rb', line 36 def protection_state @protection_state end |
#source_associations ⇒ Hash{String => String}
associations (example - parent of a protected item)
43 44 45 |
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/generic_protected_item.rb', line 43 def source_associations @source_associations end |
Class Method Details
.mapper ⇒ Object
Mapper for GenericProtectedItem class as Ruby Hash. This will be used for serialization/deserialization.
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 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 |
# File 'lib/2016-12-01/generated/azure_mgmt_recovery_services_backup/models/generic_protected_item.rb', line 53 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'GenericProtectedItem', type: { name: 'Composite', class_name: 'GenericProtectedItem', 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' } }, policy_state: { client_side_validation: true, required: false, serialized_name: 'policyState', type: { name: 'String' } }, protection_state: { client_side_validation: true, required: false, serialized_name: 'protectionState', type: { name: 'String' } }, protected_item_id: { client_side_validation: true, required: false, serialized_name: 'protectedItemId', type: { name: 'Number' } }, source_associations: { client_side_validation: true, required: false, serialized_name: 'sourceAssociations', type: { name: 'Dictionary', value: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, fabric_name: { client_side_validation: true, required: false, serialized_name: 'fabricName', type: { name: 'String' } } } } } end |