Class: Azure::ARM::Compute::Models::BootDiagnostics

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

Overview

Describes Boot Diagnostics.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#enabledBoolean

enabled on the Virtual Machine.

Returns:

  • (Boolean)

    Gets or sets whether boot diagnostics should be



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

def enabled
  @enabled
end

#storage_uriString

should be a valid Uri

Returns:

  • (String)

    Gets or sets the boot diagnostics storage Uri. It



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.

Parameters:

  • object (Hash)

    Ruby Hash object to deserialize.

Returns:



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.

Parameters:

  • object

    Model object to serialize.

Returns:

  • (Hash)

    Serialized object in form of 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

#validateObject

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