Class: Azure::ARM::Compute::Models::VirtualMachineExtensionImageProperties
- Inherits:
-
Object
- Object
- Azure::ARM::Compute::Models::VirtualMachineExtensionImageProperties
- 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
-
#compute_role ⇒ String
extension supports.
-
#handler_schema ⇒ String
extension consumers should provide settings in a matching schema.
-
#operating_system ⇒ String
supports.
-
#supports_multiple_extensions ⇒ Boolean
multiple extensions.
-
#vm_scale_set_enabled ⇒ Boolean
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.
Class Method Summary collapse
-
.deserialize_object(object) ⇒ VirtualMachineExtensionImageProperties
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
#compute_role ⇒ String
extension supports.
21 22 23 |
# File 'lib/azure_mgmt_compute/models/virtual_machine_extension_image_properties.rb', line 21 def compute_role @compute_role end |
#handler_schema ⇒ String
extension consumers should provide settings in a matching schema.
25 26 27 |
# File 'lib/azure_mgmt_compute/models/virtual_machine_extension_image_properties.rb', line 25 def handler_schema @handler_schema end |
#operating_system ⇒ String
supports.
17 18 19 |
# File 'lib/azure_mgmt_compute/models/virtual_machine_extension_image_properties.rb', line 17 def @operating_system end |
#supports_multiple_extensions ⇒ Boolean
multiple extensions.
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_enabled ⇒ Boolean
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.
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.
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. = 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.
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. 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
#validate ⇒ Object
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 |