Class: Azure::RecoveryServicesBackup::Mgmt::V2016_06_01::Models::ProtectionContainer
- Inherits:
-
Object
- Object
- Azure::RecoveryServicesBackup::Mgmt::V2016_06_01::Models::ProtectionContainer
- Includes:
- MsRestAzure
- Defined in:
- lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/protection_container.rb
Overview
The base class for a container with backup items. Containers with specific workloads are derived from this class.
Direct Known Subclasses
Constant Summary collapse
- @@discriminatorMap =
Hash.new
Instance Attribute Summary collapse
-
#backup_management_type ⇒ BackupManagementType
container.
-
#container_type ⇒ String
for each of these propertes are:<br/> 1.
-
#friendly_name ⇒ String
Friendly name of the container.
-
#health_status ⇒ String
The status of the container’s health.
-
#protectableObjectType ⇒ Object
Returns the value of attribute protectableObjectType.
-
#registration_status ⇒ String
Services vault.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ProtectionContainer class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ ProtectionContainer
constructor
A new instance of ProtectionContainer.
Constructor Details
#initialize ⇒ ProtectionContainer
Returns a new instance of ProtectionContainer.
27 28 29 |
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/protection_container.rb', line 27 def initialize @protectableObjectType = "ProtectionContainer" end |
Instance Attribute Details
#backup_management_type ⇒ BackupManagementType
container. Possible values include: ‘Invalid’, ‘AzureIaasVM’, ‘MAB’, ‘DPM’, ‘AzureBackupServer’, ‘AzureSql’
39 40 41 |
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/protection_container.rb', line 39 def backup_management_type @backup_management_type end |
#container_type ⇒ String
for each of these propertes are:<br/> 1. Compute Azure VM is Microsoft.Compute/virtualMachines<br/> 2. Classic Compute Azure VM is Microsoft.ClassicCompute/virtualMachines<br/> 3. Windows machines (like Azure Backup Server and DPM) is Windows<br/> 4. Azure SQL instance is AzureSqlContainer.
54 55 56 |
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/protection_container.rb', line 54 def container_type @container_type end |
#friendly_name ⇒ String
Returns Friendly name of the container.
34 35 36 |
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/protection_container.rb', line 34 def friendly_name @friendly_name end |
#health_status ⇒ String
Returns The status of the container’s health.
46 47 48 |
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/protection_container.rb', line 46 def health_status @health_status end |
#protectableObjectType ⇒ Object
Returns the value of attribute protectableObjectType.
31 32 33 |
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/protection_container.rb', line 31 def protectableObjectType @protectableObjectType end |
#registration_status ⇒ String
Services vault.
43 44 45 |
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/protection_container.rb', line 43 def registration_status @registration_status end |
Class Method Details
.mapper ⇒ Object
Mapper for ProtectionContainer class as Ruby Hash. This will be used for serialization/deserialization.
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 |
# File 'lib/2016-06-01/generated/azure_mgmt_recovery_services_backup/models/protection_container.rb', line 61 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ProtectionContainer', type: { name: 'Composite', polymorphic_discriminator: 'protectableObjectType', uber_parent: 'ProtectionContainer', class_name: 'ProtectionContainer', model_properties: { friendly_name: { client_side_validation: true, required: false, serialized_name: 'friendlyName', type: { name: 'String' } }, backup_management_type: { client_side_validation: true, required: false, serialized_name: 'backupManagementType', type: { name: 'Enum', module: 'BackupManagementType' } }, registration_status: { client_side_validation: true, required: false, serialized_name: 'registrationStatus', type: { name: 'String' } }, health_status: { client_side_validation: true, required: false, serialized_name: 'healthStatus', type: { name: 'String' } }, container_type: { client_side_validation: true, required: false, read_only: true, serialized_name: 'containerType', type: { name: 'String' } } } } } end |