Class: Azure::ARM::Compute::Models::VirtualMachineExtensionImageProperties

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

Overview

Describes the properties of a Virtual Machine Extension Image.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#compute_roleString

extension supports.

Returns:

  • (String)

    Gets or sets the type of role (IaaS or PaaS) this



21
22
23
# File 'lib/azure_mgmt_compute/models/virtual_machine_extension_image_properties.rb', line 21

def compute_role
  @compute_role
end

#handler_schemaString

extension consumers should provide settings in a matching schema.

Returns:

  • (String)

    Gets or sets the schema defined by publisher, where



25
26
27
# File 'lib/azure_mgmt_compute/models/virtual_machine_extension_image_properties.rb', line 25

def handler_schema
  @handler_schema
end

#operating_systemString

supports.

Returns:

  • (String)

    Gets or sets the operating system this extension



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

def operating_system
  @operating_system
end

#supports_multiple_extensionsBoolean

multiple extensions.

Returns:

  • (Boolean)

    Gets or sets whether the handler can support



36
37
38
# File 'lib/azure_mgmt_compute/models/virtual_machine_extension_image_properties.rb', line 36

def supports_multiple_extensions
  @supports_multiple_extensions
end

#vm_scale_set_enabledBoolean

xRP VMScaleSets.By default existing extensions are usable on scalesets, but there might be cases where a publisher wants to explicitly indicate the extension is only enabled for CRP VMs but not VMSS.

Returns:

  • (Boolean)

    Gets or sets whether the extension can be used on



32
33
34
# File 'lib/azure_mgmt_compute/models/virtual_machine_extension_image_properties.rb', line 32

def vm_scale_set_enabled
  @vm_scale_set_enabled
end

Class Method Details

.deserialize_object(object) ⇒ VirtualMachineExtensionImageProperties

Deserializes given Ruby Hash into Model object.

Parameters:

  • object (Hash)

    Ruby Hash object to deserialize.

Returns:



77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# File 'lib/azure_mgmt_compute/models/virtual_machine_extension_image_properties.rb', line 77

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

  deserialized_property = object['operatingSystem']
  output_object.operating_system = deserialized_property

  deserialized_property = object['computeRole']
  output_object.compute_role = deserialized_property

  deserialized_property = object['handlerSchema']
  output_object.handler_schema = deserialized_property

  deserialized_property = object['vmScaleSetEnabled']
  output_object.vm_scale_set_enabled = deserialized_property

  deserialized_property = object['supportsMultipleExtensions']
  output_object.supports_multiple_extensions = 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.



50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# File 'lib/azure_mgmt_compute/models/virtual_machine_extension_image_properties.rb', line 50

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

  serialized_property = object.operating_system
  output_object['operatingSystem'] = serialized_property unless serialized_property.nil?

  serialized_property = object.compute_role
  output_object['computeRole'] = serialized_property unless serialized_property.nil?

  serialized_property = object.handler_schema
  output_object['handlerSchema'] = serialized_property unless serialized_property.nil?

  serialized_property = object.vm_scale_set_enabled
  output_object['vmScaleSetEnabled'] = serialized_property unless serialized_property.nil?

  serialized_property = object.supports_multiple_extensions
  output_object['supportsMultipleExtensions'] = serialized_property unless serialized_property.nil?

  output_object
end

Instance Method Details

#validateObject

Validate the object. Throws ValidationError if validation fails.



41
42
43
# File 'lib/azure_mgmt_compute/models/virtual_machine_extension_image_properties.rb', line 41

def validate
  # Nothing to validate
end