Class: Azure::ARM::Compute::Models::VirtualMachineCaptureParameters

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

Overview

Capture Virtual Machine parameters.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#destination_container_nameString

Returns Gets or sets the destination container name.

Returns:

  • (String)

    Gets or sets the destination container name.



20
21
22
# File 'lib/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb', line 20

def destination_container_name
  @destination_container_name
end

#overwrite_vhdsBoolean

VirtualHardDisk if true, in case of conflict.

Returns:

  • (Boolean)

    Gets or sets whether it overwrites destination



24
25
26
# File 'lib/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb', line 24

def overwrite_vhds
  @overwrite_vhds
end

#vhd_prefixString

prefix.

Returns:

  • (String)

    Gets or sets the captured VirtualHardDisk’s name



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

def vhd_prefix
  @vhd_prefix
end

Class Method Details

.deserialize_object(object) ⇒ VirtualMachineCaptureParameters

Deserializes given Ruby Hash into Model object.

Parameters:

  • object (Hash)

    Ruby Hash object to deserialize.

Returns:



59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'lib/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb', line 59

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

  deserialized_property = object['vhdPrefix']
  output_object.vhd_prefix = deserialized_property

  deserialized_property = object['destinationContainerName']
  output_object.destination_container_name = deserialized_property

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



38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb', line 38

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

  serialized_property = object.vhd_prefix
  output_object['vhdPrefix'] = serialized_property unless serialized_property.nil?

  serialized_property = object.destination_container_name
  output_object['destinationContainerName'] = serialized_property unless serialized_property.nil?

  serialized_property = object.overwrite_vhds
  output_object['overwriteVhds'] = serialized_property unless serialized_property.nil?

  output_object
end

Instance Method Details

#validateObject

Validate the object. Throws ValidationError if validation fails.



29
30
31
# File 'lib/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb', line 29

def validate
  # Nothing to validate
end