Class: Azure::RecoveryServicesBackup::Mgmt::V2016_06_01::Models::ProtectedItem
- Inherits:
-
Object
- Object
- Azure::RecoveryServicesBackup::Mgmt::V2016_06_01::Models::ProtectedItem
- Includes:
- MsRestAzure
- Defined in:
- lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb
Overview
The base class for backup items.
Direct Known Subclasses
AzureIaaSVMProtectedItem, AzureSqlProtectedItem, MabFileFolderProtectedItem
Constant Summary collapse
- @@discriminatorMap =
Hash.new
Instance Attribute Summary collapse
-
#backup_management_type ⇒ BackupManagementType
with the backup item.
-
#last_recovery_point ⇒ DateTime
created for this backup item.
-
#policy_id ⇒ String
backup item.
-
#protectedItemType ⇒ Object
Returns the value of attribute protectedItemType.
-
#source_resource_id ⇒ String
The ID of the resource to be backed up.
-
#workload_type ⇒ DataSourceType
values include: ‘Invalid’, ‘VM’, ‘FileFolder’, ‘AzureSqlDb’, ‘SQLDB’, ‘Exchange’, ‘Sharepoint’, ‘DPMUnknown’.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ProtectedItem class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ ProtectedItem
constructor
A new instance of ProtectedItem.
Constructor Details
#initialize ⇒ ProtectedItem
Returns a new instance of ProtectedItem.
26 27 28 |
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb', line 26 def initialize @protectedItemType = "ProtectedItem" end |
Instance Attribute Details
#backup_management_type ⇒ BackupManagementType
with the backup item. Possible values include: ‘Invalid’, ‘AzureIaasVM’, ‘MAB’, ‘DPM’, ‘AzureBackupServer’, ‘AzureSql’
35 36 37 |
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb', line 35 def backup_management_type @backup_management_type end |
#last_recovery_point ⇒ DateTime
created for this backup item.
51 52 53 |
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb', line 51 def last_recovery_point @last_recovery_point end |
#policy_id ⇒ String
backup item.
47 48 49 |
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb', line 47 def policy_id @policy_id end |
#protectedItemType ⇒ Object
Returns the value of attribute protectedItemType.
30 31 32 |
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb', line 30 def protectedItemType @protectedItemType end |
#source_resource_id ⇒ String
Returns The ID of the resource to be backed up.
43 44 45 |
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb', line 43 def source_resource_id @source_resource_id end |
#workload_type ⇒ DataSourceType
values include: ‘Invalid’, ‘VM’, ‘FileFolder’, ‘AzureSqlDb’, ‘SQLDB’, ‘Exchange’, ‘Sharepoint’, ‘DPMUnknown’
40 41 42 |
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb', line 40 def workload_type @workload_type end |
Class Method Details
.mapper ⇒ Object
Mapper for ProtectedItem class as Ruby Hash. This will be used for serialization/deserialization.
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 |
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb', line 58 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ProtectedItem', type: { name: 'Composite', polymorphic_discriminator: 'protectedItemType', uber_parent: 'ProtectedItem', class_name: 'ProtectedItem', model_properties: { backup_management_type: { client_side_validation: true, required: false, serialized_name: 'backupManagementType', type: { name: 'Enum', module: 'BackupManagementType' } }, workload_type: { client_side_validation: true, required: false, serialized_name: 'workloadType', type: { name: 'Enum', module: 'DataSourceType' } }, 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' } } } } } end |