Class: Azure::ARM::Compute::Models::VirtualMachineExtensionProperties

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/azure_mgmt_compute/models/virtual_machine_extension_properties.rb

Overview

Describes the properties of a Virtual Machine Extension.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#auto_upgrade_minor_versionBoolean

automatically upgraded across minor versions.

Returns:

  • (Boolean)

    Gets or sets whether the extension handler should be



28
29
30
# File 'lib/azure_mgmt_compute/models/virtual_machine_extension_properties.rb', line 28

def auto_upgrade_minor_version
  @auto_upgrade_minor_version
end

#instance_viewVirtualMachineExtensionInstanceView

machine extension instance view.

Returns:



43
44
45
# File 'lib/azure_mgmt_compute/models/virtual_machine_extension_properties.rb', line 43

def instance_view
  @instance_view
end

#protected_settingsObject

extension.

Returns:

  • Gets or sets Json formatted protected settings for the



35
36
37
# File 'lib/azure_mgmt_compute/models/virtual_machine_extension_properties.rb', line 35

def protected_settings
  @protected_settings
end

#provisioning_stateString

appears in the response.

Returns:

  • (String)

    Gets or sets the provisioning state, which only



39
40
41
# File 'lib/azure_mgmt_compute/models/virtual_machine_extension_properties.rb', line 39

def provisioning_state
  @provisioning_state
end

#publisherString

publisher.

Returns:

  • (String)

    Gets or sets the name of the extension handler



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

def publisher
  @publisher
end

#settingsObject

Returns Gets or sets Json formatted public settings for the extension.

Returns:

  • Gets or sets Json formatted public settings for the extension.



31
32
33
# File 'lib/azure_mgmt_compute/models/virtual_machine_extension_properties.rb', line 31

def settings
  @settings
end

#typeString

Returns Gets or sets the type of the extension handler.

Returns:

  • (String)

    Gets or sets the type of the extension handler.



20
21
22
# File 'lib/azure_mgmt_compute/models/virtual_machine_extension_properties.rb', line 20

def type
  @type
end

#type_handler_versionString

handler.

Returns:

  • (String)

    Gets or sets the type version of the extension



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

def type_handler_version
  @type_handler_version
end

Class Method Details

.deserialize_object(object) ⇒ VirtualMachineExtensionProperties

Deserializes given Ruby Hash into Model object.

Parameters:

  • object (Hash)

    Ruby Hash object to deserialize.

Returns:



96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# File 'lib/azure_mgmt_compute/models/virtual_machine_extension_properties.rb', line 96

def self.deserialize_object(object)
  return if object.nil?
  output_object = VirtualMachineExtensionProperties.new

  deserialized_property = object['publisher']
  output_object.publisher = deserialized_property

  deserialized_property = object['type']
  output_object.type = deserialized_property

  deserialized_property = object['typeHandlerVersion']
  output_object.type_handler_version = deserialized_property

  deserialized_property = object['autoUpgradeMinorVersion']
  output_object.auto_upgrade_minor_version = deserialized_property

  deserialized_property = object['settings']
  output_object.settings = deserialized_property

  deserialized_property = object['protectedSettings']
  output_object.protected_settings = deserialized_property

  deserialized_property = object['provisioningState']
  output_object.provisioning_state = deserialized_property

  deserialized_property = object['instanceView']
  unless deserialized_property.nil?
    deserialized_property = VirtualMachineExtensionInstanceView.deserialize_object(deserialized_property)
  end
  output_object.instance_view = 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.



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
# File 'lib/azure_mgmt_compute/models/virtual_machine_extension_properties.rb', line 57

def self.serialize_object(object)
  object.validate
  output_object = {}

  serialized_property = object.publisher
  output_object['publisher'] = serialized_property unless serialized_property.nil?

  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.auto_upgrade_minor_version
  output_object['autoUpgradeMinorVersion'] = serialized_property unless serialized_property.nil?

  serialized_property = object.settings
  output_object['settings'] = serialized_property unless serialized_property.nil?

  serialized_property = object.protected_settings
  output_object['protectedSettings'] = serialized_property unless serialized_property.nil?

  serialized_property = object.provisioning_state
  output_object['provisioningState'] = serialized_property unless serialized_property.nil?

  serialized_property = object.instance_view
  unless serialized_property.nil?
    serialized_property = VirtualMachineExtensionInstanceView.serialize_object(serialized_property)
  end
  output_object['instanceView'] = serialized_property unless serialized_property.nil?

  output_object
end

Instance Method Details

#validateObject

Validate the object. Throws ValidationError if validation fails.



48
49
50
# File 'lib/azure_mgmt_compute/models/virtual_machine_extension_properties.rb', line 48

def validate
  @instance_view.validate unless @instance_view.nil?
end