Class: Azure::ARM::Compute::Models::BootDiagnostics
- Inherits:
-
Object
- Object
- Azure::ARM::Compute::Models::BootDiagnostics
- Includes:
- MsRestAzure
- Defined in:
- lib/azure_mgmt_compute/models/boot_diagnostics.rb
Overview
Describes Boot Diagnostics.
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean
enabled on the Virtual Machine.
-
#storage_uri ⇒ String
should be a valid Uri.
Class Method Summary collapse
-
.deserialize_object(object) ⇒ BootDiagnostics
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
#enabled ⇒ Boolean
enabled on the Virtual Machine.
17 18 19 |
# File 'lib/azure_mgmt_compute/models/boot_diagnostics.rb', line 17 def enabled @enabled end |
#storage_uri ⇒ String
should be a valid Uri
21 22 23 |
# File 'lib/azure_mgmt_compute/models/boot_diagnostics.rb', line 21 def storage_uri @storage_uri end |
Class Method Details
.deserialize_object(object) ⇒ BootDiagnostics
Deserializes given Ruby Hash into Model object.
53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/azure_mgmt_compute/models/boot_diagnostics.rb', line 53 def self.deserialize_object(object) return if object.nil? output_object = BootDiagnostics.new deserialized_property = object['enabled'] output_object.enabled = deserialized_property deserialized_property = object['storageUri'] output_object.storage_uri = deserialized_property output_object end |
.serialize_object(object) ⇒ Hash
Serializes given Model object into Ruby Hash.
35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/azure_mgmt_compute/models/boot_diagnostics.rb', line 35 def self.serialize_object(object) object.validate output_object = {} serialized_property = object.enabled output_object['enabled'] = serialized_property unless serialized_property.nil? serialized_property = object.storage_uri output_object['storageUri'] = serialized_property unless serialized_property.nil? output_object end |
Instance Method Details
#validate ⇒ Object
Validate the object. Throws ValidationError if validation fails.
26 27 28 |
# File 'lib/azure_mgmt_compute/models/boot_diagnostics.rb', line 26 def validate # Nothing to validate end |