Class: Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadRestoreRequest
- Inherits:
-
RestoreRequest
- Object
- RestoreRequest
- Azure::RecoveryServicesBackup::Mgmt::V2017_07_01::Models::AzureWorkloadRestoreRequest
- Includes:
- MsRestAzure
- Defined in:
- lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_workload_restore_request.rb
Overview
AzureWorkload-specific restore.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#objectType ⇒ Object
Returns the value of attribute objectType.
-
#property_bag ⇒ Hash{String => String}
Workload specific property bag.
-
#recovery_type ⇒ RecoveryType
Possible values include: ‘Invalid’, ‘OriginalLocation’, ‘AlternateLocation’, ‘RestoreDisks’.
-
#source_resource_id ⇒ String
that was running is being recovered.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for AzureWorkloadRestoreRequest class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ AzureWorkloadRestoreRequest
constructor
A new instance of AzureWorkloadRestoreRequest.
Constructor Details
#initialize ⇒ AzureWorkloadRestoreRequest
Returns a new instance of AzureWorkloadRestoreRequest.
20 21 22 |
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_workload_restore_request.rb', line 20 def initialize @objectType = "AzureWorkloadRestoreRequest" end |
Instance Attribute Details
#objectType ⇒ Object
Returns the value of attribute objectType.
24 25 26 |
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_workload_restore_request.rb', line 24 def objectType @objectType end |
#property_bag ⇒ Hash{String => String}
Returns Workload specific property bag.
36 37 38 |
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_workload_restore_request.rb', line 36 def property_bag @property_bag end |
#recovery_type ⇒ RecoveryType
Possible values include: ‘Invalid’, ‘OriginalLocation’, ‘AlternateLocation’, ‘RestoreDisks’
29 30 31 |
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_workload_restore_request.rb', line 29 def recovery_type @recovery_type end |
#source_resource_id ⇒ String
that was running is being recovered.
33 34 35 |
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_workload_restore_request.rb', line 33 def source_resource_id @source_resource_id end |
Class Method Details
.mapper ⇒ Object
Mapper for AzureWorkloadRestoreRequest class as Ruby Hash. This will be used for serialization/deserialization.
43 44 45 46 47 48 49 50 51 52 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 |
# File 'lib/2017-07-01/generated/azure_mgmt_recovery_services_backup/models/azure_workload_restore_request.rb', line 43 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'AzureWorkloadRestoreRequest', type: { name: 'Composite', class_name: 'AzureWorkloadRestoreRequest', model_properties: { objectType: { client_side_validation: true, required: true, serialized_name: 'objectType', type: { name: 'String' } }, recovery_type: { client_side_validation: true, required: false, serialized_name: 'recoveryType', type: { name: 'String' } }, source_resource_id: { client_side_validation: true, required: false, serialized_name: 'sourceResourceId', type: { name: 'String' } }, property_bag: { client_side_validation: true, required: false, serialized_name: 'propertyBag', type: { name: 'Dictionary', value: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } } } } } end |