Class: Azure::ARM::Compute::Models::VirtualMachineExtensionHandlerInstanceView

Inherits:
Object
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#statusInstanceViewStatus

Returns Gets or sets the extension handler status.

Returns:



24
25
26
# File 'lib/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb', line 24

def status
  @status
end

#typeString

includes both publisher and type.

Returns:

  • (String)

    Gets or sets full type of the extension handler which



17
18
19
# File 'lib/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb', line 17

def type
  @type
end

#type_handler_versionString

handler.

Returns:

  • (String)

    Gets or sets the type version of the extension



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.

Parameters:

  • object (Hash)

    Ruby Hash object to deserialize.

Returns:



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.

Parameters:

  • object

    Model object to serialize.

Returns:

  • (Hash)

    Serialized object in form of 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

#validateObject

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