Class: Azure::ARM::Compute::Models::VirtualMachineExtensionHandlerInstanceView
- Inherits:
-
Object
- Object
- Azure::ARM::Compute::Models::VirtualMachineExtensionHandlerInstanceView
- Includes:
- MsRestAzure
- Defined in:
- lib/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb
Overview
The instance view of a virtual machine extension handler.
Instance Attribute Summary collapse
-
#status ⇒ InstanceViewStatus
Gets or sets the extension handler status.
-
#type ⇒ String
includes both publisher and type.
-
#type_handler_version ⇒ String
handler.
Class Method Summary collapse
-
.deserialize_object(object) ⇒ VirtualMachineExtensionHandlerInstanceView
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
#status ⇒ InstanceViewStatus
Returns Gets or sets the extension handler status.
24 25 26 |
# File 'lib/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb', line 24 def status @status end |
#type ⇒ String
includes both publisher and type.
17 18 19 |
# File 'lib/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb', line 17 def type @type end |
#type_handler_version ⇒ String
handler.
21 22 23 |
# File 'lib/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb', line 21 def type_handler_version @type_handler_version end |
Class Method Details
.deserialize_object(object) ⇒ VirtualMachineExtensionHandlerInstanceView
Deserializes given Ruby Hash into Model object. object.
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb', line 63 def self.deserialize_object(object) return if object.nil? output_object = VirtualMachineExtensionHandlerInstanceView.new deserialized_property = object['type'] output_object.type = deserialized_property deserialized_property = object['typeHandlerVersion'] output_object.type_handler_version = deserialized_property deserialized_property = object['status'] unless deserialized_property.nil? deserialized_property = InstanceViewStatus.deserialize_object(deserialized_property) end output_object.status = 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 53 54 55 |
# File 'lib/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb', line 38 def self.serialize_object(object) object.validate output_object = {} serialized_property = object.type output_object['type'] = serialized_property unless serialized_property.nil? serialized_property = object.type_handler_version output_object['typeHandlerVersion'] = serialized_property unless serialized_property.nil? serialized_property = object.status unless serialized_property.nil? serialized_property = InstanceViewStatus.serialize_object(serialized_property) end output_object['status'] = 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_extension_handler_instance_view.rb', line 29 def validate @status.validate unless @status.nil? end |