Class: Azure::RecoveryServicesBackup::Mgmt::V2016_06_01::Models::ProtectionPolicy
- Inherits:
-
Object
- Object
- Azure::RecoveryServicesBackup::Mgmt::V2016_06_01::Models::ProtectionPolicy
- Includes:
- MsRestAzure
- Defined in:
- lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/protection_policy.rb
Overview
The base class for a backup policy. Workload-specific backup policies are derived from this class.
Direct Known Subclasses
AzureIaaSVMProtectionPolicy, AzureSqlProtectionPolicy, MabProtectionPolicy
Constant Summary collapse
- @@discriminatorMap =
Hash.new
Instance Attribute Summary collapse
-
#backupManagementType ⇒ Object
Returns the value of attribute backupManagementType.
-
#protected_items_count ⇒ Integer
The number of items associated with this policy.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ProtectionPolicy class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ ProtectionPolicy
constructor
A new instance of ProtectionPolicy.
Constructor Details
#initialize ⇒ ProtectionPolicy
Returns a new instance of ProtectionPolicy.
25 26 27 |
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/protection_policy.rb', line 25 def initialize @backupManagementType = "ProtectionPolicy" end |
Instance Attribute Details
#backupManagementType ⇒ Object
Returns the value of attribute backupManagementType.
29 30 31 |
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/protection_policy.rb', line 29 def backupManagementType @backupManagementType end |
#protected_items_count ⇒ Integer
Returns The number of items associated with this policy.
32 33 34 |
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/protection_policy.rb', line 32 def protected_items_count @protected_items_count end |
Class Method Details
.mapper ⇒ Object
Mapper for ProtectionPolicy class as Ruby Hash. This will be used for serialization/deserialization.
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/protection_policy.rb', line 39 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ProtectionPolicy', type: { name: 'Composite', polymorphic_discriminator: 'backupManagementType', uber_parent: 'ProtectionPolicy', class_name: 'ProtectionPolicy', model_properties: { protected_items_count: { client_side_validation: true, required: false, serialized_name: 'protectedItemsCount', type: { name: 'Number' } } } } } end |