Class: Azure::ARM::Compute::Models::VirtualMachineExtensionProperties
- Inherits:
-
Object
- Object
- Azure::ARM::Compute::Models::VirtualMachineExtensionProperties
- 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
-
#auto_upgrade_minor_version ⇒ Boolean
automatically upgraded across minor versions.
-
#instance_view ⇒ VirtualMachineExtensionInstanceView
machine extension instance view.
-
#protected_settings ⇒ Object
extension.
-
#provisioning_state ⇒ String
appears in the response.
-
#publisher ⇒ String
publisher.
-
#settings ⇒ Object
Gets or sets Json formatted public settings for the extension.
-
#type ⇒ String
Gets or sets the type of the extension handler.
-
#type_handler_version ⇒ String
handler.
Class Method Summary collapse
-
.deserialize_object(object) ⇒ VirtualMachineExtensionProperties
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
#auto_upgrade_minor_version ⇒ Boolean
automatically upgraded across minor versions.
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_view ⇒ VirtualMachineExtensionInstanceView
machine extension instance view.
43 44 45 |
# File 'lib/azure_mgmt_compute/models/virtual_machine_extension_properties.rb', line 43 def instance_view @instance_view end |
#protected_settings ⇒ Object
extension.
35 36 37 |
# File 'lib/azure_mgmt_compute/models/virtual_machine_extension_properties.rb', line 35 def protected_settings @protected_settings end |
#provisioning_state ⇒ String
appears in the response.
39 40 41 |
# File 'lib/azure_mgmt_compute/models/virtual_machine_extension_properties.rb', line 39 def provisioning_state @provisioning_state end |
#publisher ⇒ String
publisher.
17 18 19 |
# File 'lib/azure_mgmt_compute/models/virtual_machine_extension_properties.rb', line 17 def publisher @publisher end |
#settings ⇒ Object
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 |
#type ⇒ String
Returns 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_version ⇒ String
handler.
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.
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.
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
#validate ⇒ Object
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 |