Class: Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectedItem
- Inherits:
-
Object
- Object
- Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::ProtectedItem
- Includes:
- MsRestAzure
- Defined in:
- lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb
Overview
Base class for backup items.
Direct Known Subclasses
AzureFileshareProtectedItem, AzureIaaSVMProtectedItem, AzureSqlProtectedItem, AzureVmWorkloadProtectedItem, AzureVmWorkloadSQLDatabaseProtectedItem, DPMProtectedItem, GenericProtectedItem, MabFileFolderProtectedItem
Constant Summary collapse
- @@discriminatorMap =
Hash.new
Instance Attribute Summary collapse
-
#backup_management_type ⇒ BackupManagementType
backed up item.
-
#backup_set_name ⇒ String
Name of the backup set the backup item belongs to.
-
#container_name ⇒ String
Unique name of container.
-
#create_mode ⇒ CreateMode
deleted data source or creation of new data source.
-
#last_recovery_point ⇒ DateTime
created for this backup item.
-
#policy_id ⇒ String
up.
-
#protectedItemType ⇒ Object
Returns the value of attribute protectedItemType.
-
#source_resource_id ⇒ String
ARM ID of the resource to be backed up.
-
#workload_type ⇒ DataSourceType
Possible values include: ‘Invalid’, ‘VM’, ‘FileFolder’, ‘AzureSqlDb’, ‘SQLDB’, ‘Exchange’, ‘Sharepoint’, ‘VMwareVM’, ‘SystemState’, ‘Client’, ‘GenericDataSource’, ‘SQLDataBase’, ‘AzureFileShare’, ‘SAPHanaDatabase’.
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.
32 33 34 |
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb', line 32 def initialize @protectedItemType = "ProtectedItem" end |
Instance Attribute Details
#backup_management_type ⇒ BackupManagementType
backed up item. Possible values include: ‘Invalid’, ‘AzureIaasVM’, ‘MAB’, ‘DPM’, ‘AzureBackupServer’, ‘AzureSql’, ‘AzureStorage’, ‘AzureWorkload’, ‘DefaultBackup’
42 43 44 |
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb', line 42 def backup_management_type @backup_management_type end |
#backup_set_name ⇒ String
Returns Name of the backup set the backup item belongs to.
65 66 67 |
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb', line 65 def backup_set_name @backup_set_name end |
#container_name ⇒ String
Returns Unique name of container.
51 52 53 |
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb', line 51 def container_name @container_name end |
#create_mode ⇒ CreateMode
deleted data source or creation of new data source. Possible values include: ‘Invalid’, ‘Default’, ‘Recover’
70 71 72 |
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb', line 70 def create_mode @create_mode end |
#last_recovery_point ⇒ DateTime
created for this backup item.
62 63 64 |
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb', line 62 def last_recovery_point @last_recovery_point end |
#policy_id ⇒ String
up.
58 59 60 |
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb', line 58 def policy_id @policy_id end |
#protectedItemType ⇒ Object
Returns the value of attribute protectedItemType.
36 37 38 |
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb', line 36 def protectedItemType @protectedItemType end |
#source_resource_id ⇒ String
Returns ARM ID of the resource to be backed up.
54 55 56 |
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb', line 54 def source_resource_id @source_resource_id end |
#workload_type ⇒ DataSourceType
Possible values include: ‘Invalid’, ‘VM’, ‘FileFolder’, ‘AzureSqlDb’, ‘SQLDB’, ‘Exchange’, ‘Sharepoint’, ‘VMwareVM’, ‘SystemState’, ‘Client’, ‘GenericDataSource’, ‘SQLDataBase’, ‘AzureFileShare’, ‘SAPHanaDatabase’
48 49 50 |
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb', line 48 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.
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 |
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/protected_item.rb', line 77 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: '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' } } } } } end |