Class: Azure::ARM::Compute::Models::VirtualMachineCaptureParameters
- Inherits:
-
Object
- Object
- Azure::ARM::Compute::Models::VirtualMachineCaptureParameters
- Includes:
- MsRestAzure
- Defined in:
- lib/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb
Overview
Capture Virtual Machine parameters.
Instance Attribute Summary collapse
-
#destination_container_name ⇒ String
Gets or sets the destination container name.
-
#overwrite_vhds ⇒ Boolean
VirtualHardDisk if true, in case of conflict.
-
#vhd_prefix ⇒ String
prefix.
Class Method Summary collapse
-
.deserialize_object(object) ⇒ VirtualMachineCaptureParameters
Deserializes given Ruby Hash into Model object.
-
.serialize_object(object) ⇒ Hash
Serializes given Model object into Ruby Hash.
Instance Method Summary collapse
-
#validate ⇒ Object
Validate the object.
Instance Attribute Details
#destination_container_name ⇒ String
Returns Gets or sets the destination container name.
20 21 22 |
# File 'lib/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb', line 20 def destination_container_name @destination_container_name end |
#overwrite_vhds ⇒ Boolean
VirtualHardDisk if true, in case of conflict.
24 25 26 |
# File 'lib/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb', line 24 def overwrite_vhds @overwrite_vhds end |
#vhd_prefix ⇒ String
prefix.
17 18 19 |
# File 'lib/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb', line 17 def vhd_prefix @vhd_prefix end |
Class Method Details
.deserialize_object(object) ⇒ VirtualMachineCaptureParameters
Deserializes given Ruby Hash into Model object.
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb', line 59 def self.deserialize_object(object) return if object.nil? output_object = VirtualMachineCaptureParameters.new deserialized_property = object['vhdPrefix'] output_object.vhd_prefix = deserialized_property deserialized_property = object['destinationContainerName'] output_object.destination_container_name = deserialized_property deserialized_property = object['overwriteVhds'] output_object.overwrite_vhds = deserialized_property output_object.validate output_object end |
.serialize_object(object) ⇒ Hash
Serializes given Model object into Ruby Hash.
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb', line 38 def self.serialize_object(object) object.validate output_object = {} serialized_property = object.vhd_prefix output_object['vhdPrefix'] = serialized_property unless serialized_property.nil? serialized_property = object.destination_container_name output_object['destinationContainerName'] = serialized_property unless serialized_property.nil? serialized_property = object.overwrite_vhds output_object['overwriteVhds'] = serialized_property unless serialized_property.nil? output_object end |
Instance Method Details
#validate ⇒ Object
Validate the object. Throws ValidationError if validation fails.
29 30 31 |
# File 'lib/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb', line 29 def validate # Nothing to validate end |