azure_mgmt_compute 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +10 -0
- data/.rspec +3 -0
- data/.travis.yml +3 -0
- data/Gemfile +17 -0
- data/LICENSE.txt +21 -0
- data/README.md +139 -0
- data/Rakefile +5 -0
- data/azure_mgmt_compute.gemspec +39 -0
- data/lib/azure_mgmt_compute.rb +103 -0
- data/lib/azure_mgmt_compute/Models/additional_unattend_content.rb +108 -0
- data/lib/azure_mgmt_compute/Models/api_error.rb +121 -0
- data/lib/azure_mgmt_compute/Models/api_error_base.rb +76 -0
- data/lib/azure_mgmt_compute/Models/availability_set.rb +94 -0
- data/lib/azure_mgmt_compute/Models/availability_set_list_result.rb +79 -0
- data/lib/azure_mgmt_compute/Models/availability_set_properties.rb +130 -0
- data/lib/azure_mgmt_compute/Models/caching_types.rb +17 -0
- data/lib/azure_mgmt_compute/Models/component_names.rb +15 -0
- data/lib/azure_mgmt_compute/Models/compute_long_running_operation_properties.rb +58 -0
- data/lib/azure_mgmt_compute/Models/compute_long_running_operation_result.rb +126 -0
- data/lib/azure_mgmt_compute/Models/compute_operation_status.rb +18 -0
- data/lib/azure_mgmt_compute/Models/data_disk.rb +142 -0
- data/lib/azure_mgmt_compute/Models/data_disk_image.rb +62 -0
- data/lib/azure_mgmt_compute/Models/delete_operation_result.rb +109 -0
- data/lib/azure_mgmt_compute/Models/disk_create_option_types.rb +17 -0
- data/lib/azure_mgmt_compute/Models/disk_instance_view.rb +88 -0
- data/lib/azure_mgmt_compute/Models/hardware_profile.rb +67 -0
- data/lib/azure_mgmt_compute/Models/image_reference.rb +87 -0
- data/lib/azure_mgmt_compute/Models/inner_error.rb +68 -0
- data/lib/azure_mgmt_compute/Models/instance_view_status.rb +102 -0
- data/lib/azure_mgmt_compute/Models/linux_configuration.rb +75 -0
- data/lib/azure_mgmt_compute/Models/list_usages_result.rb +78 -0
- data/lib/azure_mgmt_compute/Models/network_interface_reference.rb +70 -0
- data/lib/azure_mgmt_compute/Models/network_interface_reference_properties.rb +59 -0
- data/lib/azure_mgmt_compute/Models/network_profile.rb +79 -0
- data/lib/azure_mgmt_compute/Models/operating_system_types.rb +16 -0
- data/lib/azure_mgmt_compute/Models/operation_status.rb +17 -0
- data/lib/azure_mgmt_compute/Models/osdisk.rb +135 -0
- data/lib/azure_mgmt_compute/Models/osdisk_image.rb +63 -0
- data/lib/azure_mgmt_compute/Models/osprofile.rb +149 -0
- data/lib/azure_mgmt_compute/Models/pass_names.rb +15 -0
- data/lib/azure_mgmt_compute/Models/plan.rb +85 -0
- data/lib/azure_mgmt_compute/Models/protocol_types.rb +16 -0
- data/lib/azure_mgmt_compute/Models/purchase_plan.rb +77 -0
- data/lib/azure_mgmt_compute/Models/setting_names.rb +16 -0
- data/lib/azure_mgmt_compute/Models/ssh_configuration.rb +79 -0
- data/lib/azure_mgmt_compute/Models/ssh_public_key.rb +72 -0
- data/lib/azure_mgmt_compute/Models/status_level_types.rb +17 -0
- data/lib/azure_mgmt_compute/Models/storage_profile.rb +110 -0
- data/lib/azure_mgmt_compute/Models/usage.rb +98 -0
- data/lib/azure_mgmt_compute/Models/usage_name.rb +68 -0
- data/lib/azure_mgmt_compute/Models/usage_unit.rb +15 -0
- data/lib/azure_mgmt_compute/Models/vault_certificate.rb +70 -0
- data/lib/azure_mgmt_compute/Models/vault_secret_group.rb +96 -0
- data/lib/azure_mgmt_compute/Models/virtual_hard_disk.rb +59 -0
- data/lib/azure_mgmt_compute/Models/virtual_machine.rb +142 -0
- data/lib/azure_mgmt_compute/Models/virtual_machine_agent_instance_view.rb +119 -0
- data/lib/azure_mgmt_compute/Models/virtual_machine_capture_parameters.rb +78 -0
- data/lib/azure_mgmt_compute/Models/virtual_machine_extension.rb +94 -0
- data/lib/azure_mgmt_compute/Models/virtual_machine_extension_handler_instance_view.rb +85 -0
- data/lib/azure_mgmt_compute/Models/virtual_machine_extension_image.rb +99 -0
- data/lib/azure_mgmt_compute/Models/virtual_machine_extension_image_properties.rb +102 -0
- data/lib/azure_mgmt_compute/Models/virtual_machine_extension_instance_view.rb +139 -0
- data/lib/azure_mgmt_compute/Models/virtual_machine_extension_properties.rb +133 -0
- data/lib/azure_mgmt_compute/Models/virtual_machine_image.rb +99 -0
- data/lib/azure_mgmt_compute/Models/virtual_machine_image_properties.rb +110 -0
- data/lib/azure_mgmt_compute/Models/virtual_machine_image_resource.rb +83 -0
- data/lib/azure_mgmt_compute/Models/virtual_machine_instance_view.rb +188 -0
- data/lib/azure_mgmt_compute/Models/virtual_machine_list_result.rb +89 -0
- data/lib/azure_mgmt_compute/Models/virtual_machine_properties.rb +156 -0
- data/lib/azure_mgmt_compute/Models/virtual_machine_size.rb +111 -0
- data/lib/azure_mgmt_compute/Models/virtual_machine_size_list_result.rb +79 -0
- data/lib/azure_mgmt_compute/Models/virtual_machine_size_types.rb +34 -0
- data/lib/azure_mgmt_compute/Models/win_rmconfiguration.rb +79 -0
- data/lib/azure_mgmt_compute/Models/win_rmlistener.rb +73 -0
- data/lib/azure_mgmt_compute/Models/windows_configuration.rb +126 -0
- data/lib/azure_mgmt_compute/availability_sets.rb +473 -0
- data/lib/azure_mgmt_compute/compute_management_client.rb +85 -0
- data/lib/azure_mgmt_compute/module_definition.rb +6 -0
- data/lib/azure_mgmt_compute/usage_operations.rb +113 -0
- data/lib/azure_mgmt_compute/version.rb +6 -0
- data/lib/azure_mgmt_compute/virtual_machine_extension_images.rb +325 -0
- data/lib/azure_mgmt_compute/virtual_machine_extensions.rb +384 -0
- data/lib/azure_mgmt_compute/virtual_machine_images.rb +525 -0
- data/lib/azure_mgmt_compute/virtual_machine_sizes.rb +114 -0
- data/lib/azure_mgmt_compute/virtual_machines.rb +1412 -0
- metadata +303 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
|
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
|
+
# regenerated.
|
|
5
|
+
|
|
6
|
+
module Azure::ARM::Compute
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# The List Virtual Machine operation response.
|
|
10
|
+
#
|
|
11
|
+
class VirtualMachineListResult
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [Array<VirtualMachine>] Gets or sets the list of virtual
|
|
16
|
+
# machines.
|
|
17
|
+
attr_accessor :value
|
|
18
|
+
|
|
19
|
+
# @return [String] Gets or sets the uri to fetch the next page of VMs.
|
|
20
|
+
# Call ListNext() with this to fetch the next page of Virtual Machines.
|
|
21
|
+
attr_accessor :next_link
|
|
22
|
+
|
|
23
|
+
#
|
|
24
|
+
# Validate the object. Throws ValidationError if validation fails.
|
|
25
|
+
#
|
|
26
|
+
def validate
|
|
27
|
+
@value.each{ |e| e.validate if e.respond_to?(:validate) } unless @value.nil?
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
#
|
|
31
|
+
# Serializes given Model object into Ruby Hash.
|
|
32
|
+
# @param object Model object to serialize.
|
|
33
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
|
34
|
+
#
|
|
35
|
+
def self.serialize_object(object)
|
|
36
|
+
object.validate
|
|
37
|
+
output_object = {}
|
|
38
|
+
|
|
39
|
+
serialized_property = object.value
|
|
40
|
+
unless serialized_property.nil?
|
|
41
|
+
serializedArray = []
|
|
42
|
+
serialized_property.each do |element|
|
|
43
|
+
unless element.nil?
|
|
44
|
+
element = VirtualMachine.serialize_object(element)
|
|
45
|
+
end
|
|
46
|
+
serializedArray.push(element)
|
|
47
|
+
end
|
|
48
|
+
serialized_property = serializedArray
|
|
49
|
+
end
|
|
50
|
+
output_object['value'] = serialized_property unless serialized_property.nil?
|
|
51
|
+
|
|
52
|
+
serialized_property = object.next_link
|
|
53
|
+
output_object['nextLink'] = serialized_property unless serialized_property.nil?
|
|
54
|
+
|
|
55
|
+
output_object
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
#
|
|
59
|
+
# Deserializes given Ruby Hash into Model object.
|
|
60
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
|
61
|
+
# @return [VirtualMachineListResult] Deserialized object.
|
|
62
|
+
#
|
|
63
|
+
def self.deserialize_object(object)
|
|
64
|
+
return if object.nil?
|
|
65
|
+
output_object = VirtualMachineListResult.new
|
|
66
|
+
|
|
67
|
+
deserialized_property = object['value']
|
|
68
|
+
unless deserialized_property.nil?
|
|
69
|
+
deserializedArray = [];
|
|
70
|
+
deserialized_property.each do |element1|
|
|
71
|
+
unless element1.nil?
|
|
72
|
+
element1 = VirtualMachine.deserialize_object(element1)
|
|
73
|
+
end
|
|
74
|
+
deserializedArray.push(element1);
|
|
75
|
+
end
|
|
76
|
+
deserialized_property = deserializedArray;
|
|
77
|
+
end
|
|
78
|
+
output_object.value = deserialized_property
|
|
79
|
+
|
|
80
|
+
deserialized_property = object['nextLink']
|
|
81
|
+
output_object.next_link = deserialized_property
|
|
82
|
+
|
|
83
|
+
output_object.validate
|
|
84
|
+
|
|
85
|
+
output_object
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
end
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
|
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
|
+
# regenerated.
|
|
5
|
+
|
|
6
|
+
module Azure::ARM::Compute
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# Describes the properties of a Virtual Machine.
|
|
10
|
+
#
|
|
11
|
+
class VirtualMachineProperties
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [HardwareProfile] Gets or sets the hardware profile.
|
|
16
|
+
attr_accessor :hardware_profile
|
|
17
|
+
|
|
18
|
+
# @return [StorageProfile] Gets or sets the storage profile.
|
|
19
|
+
attr_accessor :storage_profile
|
|
20
|
+
|
|
21
|
+
# @return [OSProfile] Gets or sets the OS profile.
|
|
22
|
+
attr_accessor :os_profile
|
|
23
|
+
|
|
24
|
+
# @return [NetworkProfile] Gets or sets the network profile.
|
|
25
|
+
attr_accessor :network_profile
|
|
26
|
+
|
|
27
|
+
# @return [SubResource] Gets or sets the reference Id of the
|
|
28
|
+
# availailbity set to which this virtual machine belongs.
|
|
29
|
+
attr_accessor :availability_set
|
|
30
|
+
|
|
31
|
+
# @return [String] Gets or sets the provisioning state, which only
|
|
32
|
+
# appears in the response.
|
|
33
|
+
attr_accessor :provisioning_state
|
|
34
|
+
|
|
35
|
+
# @return [VirtualMachineInstanceView] Gets the virtual machine instance
|
|
36
|
+
# view.
|
|
37
|
+
attr_accessor :instance_view
|
|
38
|
+
|
|
39
|
+
#
|
|
40
|
+
# Validate the object. Throws ValidationError if validation fails.
|
|
41
|
+
#
|
|
42
|
+
def validate
|
|
43
|
+
@hardware_profile.validate unless @hardware_profile.nil?
|
|
44
|
+
@storage_profile.validate unless @storage_profile.nil?
|
|
45
|
+
@os_profile.validate unless @os_profile.nil?
|
|
46
|
+
@network_profile.validate unless @network_profile.nil?
|
|
47
|
+
@availability_set.validate unless @availability_set.nil?
|
|
48
|
+
@instance_view.validate unless @instance_view.nil?
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
#
|
|
52
|
+
# Serializes given Model object into Ruby Hash.
|
|
53
|
+
# @param object Model object to serialize.
|
|
54
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
|
55
|
+
#
|
|
56
|
+
def self.serialize_object(object)
|
|
57
|
+
object.validate
|
|
58
|
+
output_object = {}
|
|
59
|
+
|
|
60
|
+
serialized_property = object.hardware_profile
|
|
61
|
+
unless serialized_property.nil?
|
|
62
|
+
serialized_property = HardwareProfile.serialize_object(serialized_property)
|
|
63
|
+
end
|
|
64
|
+
output_object['hardwareProfile'] = serialized_property unless serialized_property.nil?
|
|
65
|
+
|
|
66
|
+
serialized_property = object.storage_profile
|
|
67
|
+
unless serialized_property.nil?
|
|
68
|
+
serialized_property = StorageProfile.serialize_object(serialized_property)
|
|
69
|
+
end
|
|
70
|
+
output_object['storageProfile'] = serialized_property unless serialized_property.nil?
|
|
71
|
+
|
|
72
|
+
serialized_property = object.os_profile
|
|
73
|
+
unless serialized_property.nil?
|
|
74
|
+
serialized_property = OSProfile.serialize_object(serialized_property)
|
|
75
|
+
end
|
|
76
|
+
output_object['osProfile'] = serialized_property unless serialized_property.nil?
|
|
77
|
+
|
|
78
|
+
serialized_property = object.network_profile
|
|
79
|
+
unless serialized_property.nil?
|
|
80
|
+
serialized_property = NetworkProfile.serialize_object(serialized_property)
|
|
81
|
+
end
|
|
82
|
+
output_object['networkProfile'] = serialized_property unless serialized_property.nil?
|
|
83
|
+
|
|
84
|
+
serialized_property = object.availability_set
|
|
85
|
+
unless serialized_property.nil?
|
|
86
|
+
serialized_property = SubResource.serialize_object(serialized_property)
|
|
87
|
+
end
|
|
88
|
+
output_object['availabilitySet'] = serialized_property unless serialized_property.nil?
|
|
89
|
+
|
|
90
|
+
serialized_property = object.provisioning_state
|
|
91
|
+
output_object['provisioningState'] = serialized_property unless serialized_property.nil?
|
|
92
|
+
|
|
93
|
+
serialized_property = object.instance_view
|
|
94
|
+
unless serialized_property.nil?
|
|
95
|
+
serialized_property = VirtualMachineInstanceView.serialize_object(serialized_property)
|
|
96
|
+
end
|
|
97
|
+
output_object['instanceView'] = serialized_property unless serialized_property.nil?
|
|
98
|
+
|
|
99
|
+
output_object
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
#
|
|
103
|
+
# Deserializes given Ruby Hash into Model object.
|
|
104
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
|
105
|
+
# @return [VirtualMachineProperties] Deserialized object.
|
|
106
|
+
#
|
|
107
|
+
def self.deserialize_object(object)
|
|
108
|
+
return if object.nil?
|
|
109
|
+
output_object = VirtualMachineProperties.new
|
|
110
|
+
|
|
111
|
+
deserialized_property = object['hardwareProfile']
|
|
112
|
+
unless deserialized_property.nil?
|
|
113
|
+
deserialized_property = HardwareProfile.deserialize_object(deserialized_property)
|
|
114
|
+
end
|
|
115
|
+
output_object.hardware_profile = deserialized_property
|
|
116
|
+
|
|
117
|
+
deserialized_property = object['storageProfile']
|
|
118
|
+
unless deserialized_property.nil?
|
|
119
|
+
deserialized_property = StorageProfile.deserialize_object(deserialized_property)
|
|
120
|
+
end
|
|
121
|
+
output_object.storage_profile = deserialized_property
|
|
122
|
+
|
|
123
|
+
deserialized_property = object['osProfile']
|
|
124
|
+
unless deserialized_property.nil?
|
|
125
|
+
deserialized_property = OSProfile.deserialize_object(deserialized_property)
|
|
126
|
+
end
|
|
127
|
+
output_object.os_profile = deserialized_property
|
|
128
|
+
|
|
129
|
+
deserialized_property = object['networkProfile']
|
|
130
|
+
unless deserialized_property.nil?
|
|
131
|
+
deserialized_property = NetworkProfile.deserialize_object(deserialized_property)
|
|
132
|
+
end
|
|
133
|
+
output_object.network_profile = deserialized_property
|
|
134
|
+
|
|
135
|
+
deserialized_property = object['availabilitySet']
|
|
136
|
+
unless deserialized_property.nil?
|
|
137
|
+
deserialized_property = SubResource.deserialize_object(deserialized_property)
|
|
138
|
+
end
|
|
139
|
+
output_object.availability_set = deserialized_property
|
|
140
|
+
|
|
141
|
+
deserialized_property = object['provisioningState']
|
|
142
|
+
output_object.provisioning_state = deserialized_property
|
|
143
|
+
|
|
144
|
+
deserialized_property = object['instanceView']
|
|
145
|
+
unless deserialized_property.nil?
|
|
146
|
+
deserialized_property = VirtualMachineInstanceView.deserialize_object(deserialized_property)
|
|
147
|
+
end
|
|
148
|
+
output_object.instance_view = deserialized_property
|
|
149
|
+
|
|
150
|
+
output_object.validate
|
|
151
|
+
|
|
152
|
+
output_object
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
end
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
|
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
|
+
# regenerated.
|
|
5
|
+
|
|
6
|
+
module Azure::ARM::Compute
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# Describes the properties of a VM size.
|
|
10
|
+
#
|
|
11
|
+
class VirtualMachineSize
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [String] Gets or sets the VM size name.
|
|
16
|
+
attr_accessor :name
|
|
17
|
+
|
|
18
|
+
# @return [Integer] Gets or sets the Number of cores supported by a VM
|
|
19
|
+
# size.
|
|
20
|
+
attr_accessor :number_of_cores
|
|
21
|
+
|
|
22
|
+
# @return [Integer] Gets or sets the OS disk size allowed by a VM size.
|
|
23
|
+
attr_accessor :os_disk_size_in_mb
|
|
24
|
+
|
|
25
|
+
# @return [Integer] Gets or sets the Resource disk size allowed by a VM
|
|
26
|
+
# size.
|
|
27
|
+
attr_accessor :resource_disk_size_in_mb
|
|
28
|
+
|
|
29
|
+
# @return [Integer] Gets or sets the Memory size supported by a VM size.
|
|
30
|
+
attr_accessor :memory_in_mb
|
|
31
|
+
|
|
32
|
+
# @return [Integer] Gets or sets the Maximum number of data disks
|
|
33
|
+
# allowed by a VM size.
|
|
34
|
+
attr_accessor :max_data_disk_count
|
|
35
|
+
|
|
36
|
+
#
|
|
37
|
+
# Validate the object. Throws ValidationError if validation fails.
|
|
38
|
+
#
|
|
39
|
+
def validate
|
|
40
|
+
# Nothing to validate
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
#
|
|
44
|
+
# Serializes given Model object into Ruby Hash.
|
|
45
|
+
# @param object Model object to serialize.
|
|
46
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
|
47
|
+
#
|
|
48
|
+
def self.serialize_object(object)
|
|
49
|
+
object.validate
|
|
50
|
+
output_object = {}
|
|
51
|
+
|
|
52
|
+
serialized_property = object.name
|
|
53
|
+
output_object['name'] = serialized_property unless serialized_property.nil?
|
|
54
|
+
|
|
55
|
+
serialized_property = object.number_of_cores
|
|
56
|
+
output_object['numberOfCores'] = serialized_property unless serialized_property.nil?
|
|
57
|
+
|
|
58
|
+
serialized_property = object.os_disk_size_in_mb
|
|
59
|
+
output_object['osDiskSizeInMB'] = serialized_property unless serialized_property.nil?
|
|
60
|
+
|
|
61
|
+
serialized_property = object.resource_disk_size_in_mb
|
|
62
|
+
output_object['resourceDiskSizeInMB'] = serialized_property unless serialized_property.nil?
|
|
63
|
+
|
|
64
|
+
serialized_property = object.memory_in_mb
|
|
65
|
+
output_object['memoryInMB'] = serialized_property unless serialized_property.nil?
|
|
66
|
+
|
|
67
|
+
serialized_property = object.max_data_disk_count
|
|
68
|
+
output_object['maxDataDiskCount'] = serialized_property unless serialized_property.nil?
|
|
69
|
+
|
|
70
|
+
output_object
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
#
|
|
74
|
+
# Deserializes given Ruby Hash into Model object.
|
|
75
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
|
76
|
+
# @return [VirtualMachineSize] Deserialized object.
|
|
77
|
+
#
|
|
78
|
+
def self.deserialize_object(object)
|
|
79
|
+
return if object.nil?
|
|
80
|
+
output_object = VirtualMachineSize.new
|
|
81
|
+
|
|
82
|
+
deserialized_property = object['name']
|
|
83
|
+
output_object.name = deserialized_property
|
|
84
|
+
|
|
85
|
+
deserialized_property = object['numberOfCores']
|
|
86
|
+
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
|
87
|
+
output_object.number_of_cores = deserialized_property
|
|
88
|
+
|
|
89
|
+
deserialized_property = object['osDiskSizeInMB']
|
|
90
|
+
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
|
91
|
+
output_object.os_disk_size_in_mb = deserialized_property
|
|
92
|
+
|
|
93
|
+
deserialized_property = object['resourceDiskSizeInMB']
|
|
94
|
+
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
|
95
|
+
output_object.resource_disk_size_in_mb = deserialized_property
|
|
96
|
+
|
|
97
|
+
deserialized_property = object['memoryInMB']
|
|
98
|
+
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
|
99
|
+
output_object.memory_in_mb = deserialized_property
|
|
100
|
+
|
|
101
|
+
deserialized_property = object['maxDataDiskCount']
|
|
102
|
+
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
|
103
|
+
output_object.max_data_disk_count = deserialized_property
|
|
104
|
+
|
|
105
|
+
output_object.validate
|
|
106
|
+
|
|
107
|
+
output_object
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
end
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
|
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
|
+
# regenerated.
|
|
5
|
+
|
|
6
|
+
module Azure::ARM::Compute
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# The List Virtual Machine operation response.
|
|
10
|
+
#
|
|
11
|
+
class VirtualMachineSizeListResult
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [Array<VirtualMachineSize>] Gets or sets the list of virtual
|
|
16
|
+
# machine sizes.
|
|
17
|
+
attr_accessor :value
|
|
18
|
+
|
|
19
|
+
#
|
|
20
|
+
# Validate the object. Throws ValidationError if validation fails.
|
|
21
|
+
#
|
|
22
|
+
def validate
|
|
23
|
+
@value.each{ |e| e.validate if e.respond_to?(:validate) } unless @value.nil?
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
#
|
|
27
|
+
# Serializes given Model object into Ruby Hash.
|
|
28
|
+
# @param object Model object to serialize.
|
|
29
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
|
30
|
+
#
|
|
31
|
+
def self.serialize_object(object)
|
|
32
|
+
object.validate
|
|
33
|
+
output_object = {}
|
|
34
|
+
|
|
35
|
+
serialized_property = object.value
|
|
36
|
+
unless serialized_property.nil?
|
|
37
|
+
serializedArray = []
|
|
38
|
+
serialized_property.each do |element|
|
|
39
|
+
unless element.nil?
|
|
40
|
+
element = VirtualMachineSize.serialize_object(element)
|
|
41
|
+
end
|
|
42
|
+
serializedArray.push(element)
|
|
43
|
+
end
|
|
44
|
+
serialized_property = serializedArray
|
|
45
|
+
end
|
|
46
|
+
output_object['value'] = serialized_property unless serialized_property.nil?
|
|
47
|
+
|
|
48
|
+
output_object
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
#
|
|
52
|
+
# Deserializes given Ruby Hash into Model object.
|
|
53
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
|
54
|
+
# @return [VirtualMachineSizeListResult] Deserialized object.
|
|
55
|
+
#
|
|
56
|
+
def self.deserialize_object(object)
|
|
57
|
+
return if object.nil?
|
|
58
|
+
output_object = VirtualMachineSizeListResult.new
|
|
59
|
+
|
|
60
|
+
deserialized_property = object['value']
|
|
61
|
+
unless deserialized_property.nil?
|
|
62
|
+
deserializedArray = [];
|
|
63
|
+
deserialized_property.each do |element1|
|
|
64
|
+
unless element1.nil?
|
|
65
|
+
element1 = VirtualMachineSize.deserialize_object(element1)
|
|
66
|
+
end
|
|
67
|
+
deserializedArray.push(element1);
|
|
68
|
+
end
|
|
69
|
+
deserialized_property = deserializedArray;
|
|
70
|
+
end
|
|
71
|
+
output_object.value = deserialized_property
|
|
72
|
+
|
|
73
|
+
output_object.validate
|
|
74
|
+
|
|
75
|
+
output_object
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.11.0.0
|
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
|
+
# regenerated.
|
|
5
|
+
|
|
6
|
+
module Azure::ARM::Compute
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# Defines values for VirtualMachineSizeTypes
|
|
10
|
+
#
|
|
11
|
+
module VirtualMachineSizeTypes
|
|
12
|
+
BasicA0 = "Basic_A0"
|
|
13
|
+
BasicA1 = "Basic_A1"
|
|
14
|
+
BasicA2 = "Basic_A2"
|
|
15
|
+
BasicA3 = "Basic_A3"
|
|
16
|
+
BasicA4 = "Basic_A4"
|
|
17
|
+
StandardA0 = "Standard_A0"
|
|
18
|
+
StandardA1 = "Standard_A1"
|
|
19
|
+
StandardA2 = "Standard_A2"
|
|
20
|
+
StandardA3 = "Standard_A3"
|
|
21
|
+
StandardA4 = "Standard_A4"
|
|
22
|
+
StandardA5 = "Standard_A5"
|
|
23
|
+
StandardA6 = "Standard_A6"
|
|
24
|
+
StandardA7 = "Standard_A7"
|
|
25
|
+
StandardA8 = "Standard_A8"
|
|
26
|
+
StandardA9 = "Standard_A9"
|
|
27
|
+
StandardG1 = "Standard_G1"
|
|
28
|
+
StandardG2 = "Standard_G2"
|
|
29
|
+
StandardG3 = "Standard_G3"
|
|
30
|
+
StandardG4 = "Standard_G4"
|
|
31
|
+
StandardG5 = "Standard_G5"
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|