azure_mgmt_compute 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/azure_mgmt_compute.gemspec +3 -11
- data/lib/azure_mgmt_compute/availability_sets.rb +226 -241
- data/lib/azure_mgmt_compute/compute_management_client.rb +26 -11
- data/lib/azure_mgmt_compute/models/additional_unattend_content.rb +8 -11
- data/lib/azure_mgmt_compute/models/api_entity_reference.rb +58 -0
- data/lib/azure_mgmt_compute/models/api_error.rb +4 -6
- data/lib/azure_mgmt_compute/models/api_error_base.rb +1 -3
- data/lib/azure_mgmt_compute/models/availability_set.rb +1 -3
- data/lib/azure_mgmt_compute/models/availability_set_list_result.rb +4 -6
- data/lib/azure_mgmt_compute/models/availability_set_properties.rb +9 -11
- data/lib/azure_mgmt_compute/models/boot_diagnostics.rb +67 -0
- data/lib/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +65 -0
- data/lib/azure_mgmt_compute/models/caching_types.rb +1 -1
- data/lib/azure_mgmt_compute/models/component_names.rb +1 -1
- data/lib/azure_mgmt_compute/models/compute_long_running_operation_properties.rb +1 -3
- data/lib/azure_mgmt_compute/models/compute_long_running_operation_result.rb +3 -6
- data/lib/azure_mgmt_compute/models/compute_operation_status.rb +1 -1
- data/lib/azure_mgmt_compute/models/data_disk.rb +27 -26
- data/lib/azure_mgmt_compute/models/data_disk_image.rb +1 -3
- data/lib/azure_mgmt_compute/models/delete_operation_result.rb +6 -5
- data/lib/azure_mgmt_compute/models/diagnostics_profile.rb +62 -0
- data/lib/azure_mgmt_compute/models/disk_create_option_types.rb +1 -1
- data/lib/azure_mgmt_compute/models/disk_encryption_settings.rb +81 -0
- data/lib/azure_mgmt_compute/models/disk_instance_view.rb +4 -6
- data/lib/azure_mgmt_compute/models/hardware_profile.rb +15 -9
- data/lib/azure_mgmt_compute/models/image_reference.rb +1 -3
- data/lib/azure_mgmt_compute/models/inner_error.rb +1 -3
- data/lib/azure_mgmt_compute/models/instance_view_status.rb +3 -5
- data/lib/azure_mgmt_compute/models/key_vault_key_reference.rb +74 -0
- data/lib/azure_mgmt_compute/models/key_vault_secret_reference.rb +75 -0
- data/lib/azure_mgmt_compute/models/linux_configuration.rb +1 -3
- data/lib/azure_mgmt_compute/models/list_usages_result.rb +4 -6
- data/lib/azure_mgmt_compute/models/network_interface_reference.rb +1 -3
- data/lib/azure_mgmt_compute/models/network_interface_reference_properties.rb +1 -3
- data/lib/azure_mgmt_compute/models/network_profile.rb +4 -6
- data/lib/azure_mgmt_compute/models/operating_system_types.rb +1 -1
- data/lib/azure_mgmt_compute/models/operation_status.rb +1 -1
- data/lib/azure_mgmt_compute/models/osdisk.rb +54 -26
- data/lib/azure_mgmt_compute/models/osdisk_image.rb +4 -6
- data/lib/azure_mgmt_compute/models/osprofile.rb +4 -6
- data/lib/azure_mgmt_compute/models/pass_names.rb +1 -1
- data/lib/azure_mgmt_compute/models/plan.rb +1 -3
- data/lib/azure_mgmt_compute/models/protocol_types.rb +1 -1
- data/lib/azure_mgmt_compute/models/purchase_plan.rb +4 -4
- data/lib/azure_mgmt_compute/models/setting_names.rb +1 -1
- data/lib/azure_mgmt_compute/models/sku.rb +75 -0
- data/lib/azure_mgmt_compute/models/ssh_configuration.rb +4 -6
- data/lib/azure_mgmt_compute/models/ssh_public_key.rb +1 -3
- data/lib/azure_mgmt_compute/models/status_level_types.rb +1 -1
- data/lib/azure_mgmt_compute/models/storage_profile.rb +4 -6
- data/lib/azure_mgmt_compute/models/{usage_unit.rb → upgrade_mode.rb} +5 -4
- data/lib/azure_mgmt_compute/models/upgrade_policy.rb +60 -0
- data/lib/azure_mgmt_compute/models/usage.rb +7 -9
- data/lib/azure_mgmt_compute/models/usage_name.rb +1 -3
- data/lib/azure_mgmt_compute/models/vault_certificate.rb +1 -3
- data/lib/azure_mgmt_compute/models/vault_secret_group.rb +6 -8
- data/lib/azure_mgmt_compute/models/virtual_hard_disk.rb +1 -3
- data/lib/azure_mgmt_compute/models/virtual_machine.rb +4 -6
- data/lib/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb +7 -9
- data/lib/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb +4 -4
- data/lib/azure_mgmt_compute/models/virtual_machine_capture_result.rb +68 -0
- data/lib/azure_mgmt_compute/models/virtual_machine_capture_result_properties.rb +56 -0
- data/lib/azure_mgmt_compute/models/virtual_machine_extension.rb +1 -3
- data/lib/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +1 -3
- data/lib/azure_mgmt_compute/models/virtual_machine_extension_image.rb +15 -15
- data/lib/azure_mgmt_compute/models/virtual_machine_extension_image_properties.rb +4 -4
- data/lib/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +7 -9
- data/lib/azure_mgmt_compute/models/virtual_machine_extension_properties.rb +11 -3
- data/lib/azure_mgmt_compute/models/virtual_machine_image.rb +15 -15
- data/lib/azure_mgmt_compute/models/virtual_machine_image_properties.rb +4 -6
- data/lib/azure_mgmt_compute/models/virtual_machine_image_resource.rb +9 -9
- data/lib/azure_mgmt_compute/models/virtual_machine_instance_view.rb +28 -14
- data/lib/azure_mgmt_compute/models/virtual_machine_list_result.rb +4 -6
- data/lib/azure_mgmt_compute/models/virtual_machine_properties.rb +29 -5
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set.rb +108 -0
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +77 -0
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +77 -0
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_extension_properties.rb +116 -0
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +125 -0
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +79 -0
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +78 -0
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration_properties.rb +127 -0
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +77 -0
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +77 -0
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +88 -0
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +80 -0
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration_properties.rb +89 -0
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +77 -0
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +129 -0
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +147 -0
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_properties.rb +89 -0
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +88 -0
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +90 -0
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_sku_scale_type.rb +16 -0
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +78 -0
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +165 -0
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +87 -0
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +57 -0
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +59 -0
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +202 -0
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +77 -0
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +114 -0
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vmproperties.rb +190 -0
- data/lib/azure_mgmt_compute/models/virtual_machine_size.rb +1 -3
- data/lib/azure_mgmt_compute/models/virtual_machine_size_list_result.rb +4 -6
- data/lib/azure_mgmt_compute/models/virtual_machine_size_types.rb +53 -45
- data/lib/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +68 -0
- data/lib/azure_mgmt_compute/models/win_rmconfiguration.rb +4 -6
- data/lib/azure_mgmt_compute/models/win_rmlistener.rb +3 -5
- data/lib/azure_mgmt_compute/models/windows_configuration.rb +4 -6
- data/lib/azure_mgmt_compute/module_definition.rb +5 -3
- data/lib/azure_mgmt_compute/usage_operations.rb +75 -42
- data/lib/azure_mgmt_compute/version.rb +5 -3
- data/lib/azure_mgmt_compute/virtual_machine_extension_images.rb +71 -158
- data/lib/azure_mgmt_compute/virtual_machine_extensions.rb +66 -149
- data/lib/azure_mgmt_compute/virtual_machine_images.rb +121 -264
- data/lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +750 -0
- data/lib/azure_mgmt_compute/virtual_machine_scale_sets.rb +1327 -0
- data/lib/azure_mgmt_compute/virtual_machine_sizes.rb +75 -42
- data/lib/azure_mgmt_compute/virtual_machines.rb +397 -623
- data/lib/azure_mgmt_compute.rb +57 -18
- metadata +50 -128
- data/.gitignore +0 -10
- data/.travis.yml +0 -3
- data/Gemfile +0 -17
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -90,19 +90,17 @@ module Azure::ARM::Compute
|
|
90
90
|
|
91
91
|
deserialized_property = object['dataDiskImages']
|
92
92
|
unless deserialized_property.nil?
|
93
|
-
|
93
|
+
deserialized_array = []
|
94
94
|
deserialized_property.each do |element1|
|
95
95
|
unless element1.nil?
|
96
96
|
element1 = DataDiskImage.deserialize_object(element1)
|
97
97
|
end
|
98
|
-
|
98
|
+
deserialized_array.push(element1)
|
99
99
|
end
|
100
|
-
deserialized_property =
|
100
|
+
deserialized_property = deserialized_array
|
101
101
|
end
|
102
102
|
output_object.data_disk_images = deserialized_property
|
103
103
|
|
104
|
-
output_object.validate
|
105
|
-
|
106
104
|
output_object
|
107
105
|
end
|
108
106
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -26,6 +26,8 @@ module Azure::ARM::Compute
|
|
26
26
|
# Validate the object. Throws ValidationError if validation fails.
|
27
27
|
#
|
28
28
|
def validate
|
29
|
+
fail MsRest::ValidationError, 'property name is nil' if @name.nil?
|
30
|
+
fail MsRest::ValidationError, 'property location is nil' if @location.nil?
|
29
31
|
@tags.each{ |e| e.validate if e.respond_to?(:validate) } unless @tags.nil?
|
30
32
|
end
|
31
33
|
|
@@ -38,15 +40,15 @@ module Azure::ARM::Compute
|
|
38
40
|
object.validate
|
39
41
|
output_object = {}
|
40
42
|
|
41
|
-
serialized_property = object.id
|
42
|
-
output_object['id'] = serialized_property unless serialized_property.nil?
|
43
|
-
|
44
43
|
serialized_property = object.name
|
45
44
|
output_object['name'] = serialized_property unless serialized_property.nil?
|
46
45
|
|
47
46
|
serialized_property = object.location
|
48
47
|
output_object['location'] = serialized_property unless serialized_property.nil?
|
49
48
|
|
49
|
+
serialized_property = object.id
|
50
|
+
output_object['id'] = serialized_property unless serialized_property.nil?
|
51
|
+
|
50
52
|
serialized_property = object.tags
|
51
53
|
output_object['tags'] = serialized_property unless serialized_property.nil?
|
52
54
|
|
@@ -62,20 +64,18 @@ module Azure::ARM::Compute
|
|
62
64
|
return if object.nil?
|
63
65
|
output_object = VirtualMachineImageResource.new
|
64
66
|
|
65
|
-
deserialized_property = object['id']
|
66
|
-
output_object.id = deserialized_property
|
67
|
-
|
68
67
|
deserialized_property = object['name']
|
69
68
|
output_object.name = deserialized_property
|
70
69
|
|
71
70
|
deserialized_property = object['location']
|
72
71
|
output_object.location = deserialized_property
|
73
72
|
|
73
|
+
deserialized_property = object['id']
|
74
|
+
output_object.id = deserialized_property
|
75
|
+
|
74
76
|
deserialized_property = object['tags']
|
75
77
|
output_object.tags = deserialized_property
|
76
78
|
|
77
|
-
output_object.validate
|
78
|
-
|
79
79
|
output_object
|
80
80
|
end
|
81
81
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -26,14 +26,17 @@ module Azure::ARM::Compute
|
|
26
26
|
# running on the virtual machine.
|
27
27
|
attr_accessor :vm_agent
|
28
28
|
|
29
|
-
# @return [Array<DiskInstanceView>] Gets or sets the
|
30
|
-
# information.
|
29
|
+
# @return [Array<DiskInstanceView>] Gets or sets the disks information.
|
31
30
|
attr_accessor :disks
|
32
31
|
|
33
32
|
# @return [Array<VirtualMachineExtensionInstanceView>] Gets or sets the
|
34
33
|
# extensions information.
|
35
34
|
attr_accessor :extensions
|
36
35
|
|
36
|
+
# @return [BootDiagnosticsInstanceView] Gets or sets the boot
|
37
|
+
# diagnostics.
|
38
|
+
attr_accessor :boot_diagnostics
|
39
|
+
|
37
40
|
# @return [Array<InstanceViewStatus>] Gets or sets the resource status
|
38
41
|
# information.
|
39
42
|
attr_accessor :statuses
|
@@ -45,6 +48,7 @@ module Azure::ARM::Compute
|
|
45
48
|
@vm_agent.validate unless @vm_agent.nil?
|
46
49
|
@disks.each{ |e| e.validate if e.respond_to?(:validate) } unless @disks.nil?
|
47
50
|
@extensions.each{ |e| e.validate if e.respond_to?(:validate) } unless @extensions.nil?
|
51
|
+
@boot_diagnostics.validate unless @boot_diagnostics.nil?
|
48
52
|
@statuses.each{ |e| e.validate if e.respond_to?(:validate) } unless @statuses.nil?
|
49
53
|
end
|
50
54
|
|
@@ -98,6 +102,12 @@ module Azure::ARM::Compute
|
|
98
102
|
end
|
99
103
|
output_object['extensions'] = serialized_property unless serialized_property.nil?
|
100
104
|
|
105
|
+
serialized_property = object.boot_diagnostics
|
106
|
+
unless serialized_property.nil?
|
107
|
+
serialized_property = BootDiagnosticsInstanceView.serialize_object(serialized_property)
|
108
|
+
end
|
109
|
+
output_object['bootDiagnostics'] = serialized_property unless serialized_property.nil?
|
110
|
+
|
101
111
|
serialized_property = object.statuses
|
102
112
|
unless serialized_property.nil?
|
103
113
|
serializedArray = []
|
@@ -142,45 +152,49 @@ module Azure::ARM::Compute
|
|
142
152
|
|
143
153
|
deserialized_property = object['disks']
|
144
154
|
unless deserialized_property.nil?
|
145
|
-
|
155
|
+
deserialized_array = []
|
146
156
|
deserialized_property.each do |element3|
|
147
157
|
unless element3.nil?
|
148
158
|
element3 = DiskInstanceView.deserialize_object(element3)
|
149
159
|
end
|
150
|
-
|
160
|
+
deserialized_array.push(element3)
|
151
161
|
end
|
152
|
-
deserialized_property =
|
162
|
+
deserialized_property = deserialized_array
|
153
163
|
end
|
154
164
|
output_object.disks = deserialized_property
|
155
165
|
|
156
166
|
deserialized_property = object['extensions']
|
157
167
|
unless deserialized_property.nil?
|
158
|
-
|
168
|
+
deserialized_array = []
|
159
169
|
deserialized_property.each do |element4|
|
160
170
|
unless element4.nil?
|
161
171
|
element4 = VirtualMachineExtensionInstanceView.deserialize_object(element4)
|
162
172
|
end
|
163
|
-
|
173
|
+
deserialized_array.push(element4)
|
164
174
|
end
|
165
|
-
deserialized_property =
|
175
|
+
deserialized_property = deserialized_array
|
166
176
|
end
|
167
177
|
output_object.extensions = deserialized_property
|
168
178
|
|
179
|
+
deserialized_property = object['bootDiagnostics']
|
180
|
+
unless deserialized_property.nil?
|
181
|
+
deserialized_property = BootDiagnosticsInstanceView.deserialize_object(deserialized_property)
|
182
|
+
end
|
183
|
+
output_object.boot_diagnostics = deserialized_property
|
184
|
+
|
169
185
|
deserialized_property = object['statuses']
|
170
186
|
unless deserialized_property.nil?
|
171
|
-
|
187
|
+
deserialized_array = []
|
172
188
|
deserialized_property.each do |element5|
|
173
189
|
unless element5.nil?
|
174
190
|
element5 = InstanceViewStatus.deserialize_object(element5)
|
175
191
|
end
|
176
|
-
|
192
|
+
deserialized_array.push(element5)
|
177
193
|
end
|
178
|
-
deserialized_property =
|
194
|
+
deserialized_property = deserialized_array
|
179
195
|
end
|
180
196
|
output_object.statuses = deserialized_property
|
181
197
|
|
182
|
-
output_object.validate
|
183
|
-
|
184
198
|
output_object
|
185
199
|
end
|
186
200
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -66,22 +66,20 @@ module Azure::ARM::Compute
|
|
66
66
|
|
67
67
|
deserialized_property = object['value']
|
68
68
|
unless deserialized_property.nil?
|
69
|
-
|
69
|
+
deserialized_array = []
|
70
70
|
deserialized_property.each do |element1|
|
71
71
|
unless element1.nil?
|
72
72
|
element1 = VirtualMachine.deserialize_object(element1)
|
73
73
|
end
|
74
|
-
|
74
|
+
deserialized_array.push(element1)
|
75
75
|
end
|
76
|
-
deserialized_property =
|
76
|
+
deserialized_property = deserialized_array
|
77
77
|
end
|
78
78
|
output_object.value = deserialized_property
|
79
79
|
|
80
80
|
deserialized_property = object['nextLink']
|
81
81
|
output_object.next_link = deserialized_property
|
82
82
|
|
83
|
-
output_object.validate
|
84
|
-
|
85
83
|
output_object
|
86
84
|
end
|
87
85
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -24,8 +24,11 @@ module Azure::ARM::Compute
|
|
24
24
|
# @return [NetworkProfile] Gets or sets the network profile.
|
25
25
|
attr_accessor :network_profile
|
26
26
|
|
27
|
+
# @return [DiagnosticsProfile] Gets or sets the diagnostics profile.
|
28
|
+
attr_accessor :diagnostics_profile
|
29
|
+
|
27
30
|
# @return [SubResource] Gets or sets the reference Id of the
|
28
|
-
#
|
31
|
+
# availability set to which this virtual machine belongs.
|
29
32
|
attr_accessor :availability_set
|
30
33
|
|
31
34
|
# @return [String] Gets or sets the provisioning state, which only
|
@@ -36,6 +39,10 @@ module Azure::ARM::Compute
|
|
36
39
|
# view.
|
37
40
|
attr_accessor :instance_view
|
38
41
|
|
42
|
+
# @return [String] Gets or sets the license type, which is for bring
|
43
|
+
# your own license scenario.
|
44
|
+
attr_accessor :license_type
|
45
|
+
|
39
46
|
#
|
40
47
|
# Validate the object. Throws ValidationError if validation fails.
|
41
48
|
#
|
@@ -44,6 +51,7 @@ module Azure::ARM::Compute
|
|
44
51
|
@storage_profile.validate unless @storage_profile.nil?
|
45
52
|
@os_profile.validate unless @os_profile.nil?
|
46
53
|
@network_profile.validate unless @network_profile.nil?
|
54
|
+
@diagnostics_profile.validate unless @diagnostics_profile.nil?
|
47
55
|
@availability_set.validate unless @availability_set.nil?
|
48
56
|
@instance_view.validate unless @instance_view.nil?
|
49
57
|
end
|
@@ -81,9 +89,15 @@ module Azure::ARM::Compute
|
|
81
89
|
end
|
82
90
|
output_object['networkProfile'] = serialized_property unless serialized_property.nil?
|
83
91
|
|
92
|
+
serialized_property = object.diagnostics_profile
|
93
|
+
unless serialized_property.nil?
|
94
|
+
serialized_property = DiagnosticsProfile.serialize_object(serialized_property)
|
95
|
+
end
|
96
|
+
output_object['diagnosticsProfile'] = serialized_property unless serialized_property.nil?
|
97
|
+
|
84
98
|
serialized_property = object.availability_set
|
85
99
|
unless serialized_property.nil?
|
86
|
-
serialized_property = SubResource.serialize_object(serialized_property)
|
100
|
+
serialized_property = MsRestAzure::SubResource.serialize_object(serialized_property)
|
87
101
|
end
|
88
102
|
output_object['availabilitySet'] = serialized_property unless serialized_property.nil?
|
89
103
|
|
@@ -96,6 +110,9 @@ module Azure::ARM::Compute
|
|
96
110
|
end
|
97
111
|
output_object['instanceView'] = serialized_property unless serialized_property.nil?
|
98
112
|
|
113
|
+
serialized_property = object.license_type
|
114
|
+
output_object['licenseType'] = serialized_property unless serialized_property.nil?
|
115
|
+
|
99
116
|
output_object
|
100
117
|
end
|
101
118
|
|
@@ -132,9 +149,15 @@ module Azure::ARM::Compute
|
|
132
149
|
end
|
133
150
|
output_object.network_profile = deserialized_property
|
134
151
|
|
152
|
+
deserialized_property = object['diagnosticsProfile']
|
153
|
+
unless deserialized_property.nil?
|
154
|
+
deserialized_property = DiagnosticsProfile.deserialize_object(deserialized_property)
|
155
|
+
end
|
156
|
+
output_object.diagnostics_profile = deserialized_property
|
157
|
+
|
135
158
|
deserialized_property = object['availabilitySet']
|
136
159
|
unless deserialized_property.nil?
|
137
|
-
deserialized_property = SubResource.deserialize_object(deserialized_property)
|
160
|
+
deserialized_property = MsRestAzure::SubResource.deserialize_object(deserialized_property)
|
138
161
|
end
|
139
162
|
output_object.availability_set = deserialized_property
|
140
163
|
|
@@ -147,7 +170,8 @@ module Azure::ARM::Compute
|
|
147
170
|
end
|
148
171
|
output_object.instance_view = deserialized_property
|
149
172
|
|
150
|
-
|
173
|
+
deserialized_property = object['licenseType']
|
174
|
+
output_object.license_type = deserialized_property
|
151
175
|
|
152
176
|
output_object
|
153
177
|
end
|
@@ -0,0 +1,108 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.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 a Virtual Machine Scale Set.
|
10
|
+
#
|
11
|
+
class VirtualMachineScaleSet < MsRestAzure::Resource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Sku] Gets or sets the virtual machine scale set sku.
|
16
|
+
attr_accessor :sku
|
17
|
+
|
18
|
+
# @return [VirtualMachineScaleSetProperties]
|
19
|
+
attr_accessor :properties
|
20
|
+
|
21
|
+
#
|
22
|
+
# Validate the object. Throws ValidationError if validation fails.
|
23
|
+
#
|
24
|
+
def validate
|
25
|
+
@sku.validate unless @sku.nil?
|
26
|
+
@properties.validate unless @properties.nil?
|
27
|
+
end
|
28
|
+
|
29
|
+
#
|
30
|
+
# Serializes given Model object into Ruby Hash.
|
31
|
+
# @param object Model object to serialize.
|
32
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
33
|
+
#
|
34
|
+
def self.serialize_object(object)
|
35
|
+
object.validate
|
36
|
+
output_object = {}
|
37
|
+
|
38
|
+
serialized_property = object.location
|
39
|
+
output_object['location'] = serialized_property unless serialized_property.nil?
|
40
|
+
|
41
|
+
serialized_property = object.id
|
42
|
+
output_object['id'] = serialized_property unless serialized_property.nil?
|
43
|
+
|
44
|
+
serialized_property = object.name
|
45
|
+
output_object['name'] = serialized_property unless serialized_property.nil?
|
46
|
+
|
47
|
+
serialized_property = object.type
|
48
|
+
output_object['type'] = serialized_property unless serialized_property.nil?
|
49
|
+
|
50
|
+
serialized_property = object.tags
|
51
|
+
output_object['tags'] = serialized_property unless serialized_property.nil?
|
52
|
+
|
53
|
+
serialized_property = object.sku
|
54
|
+
unless serialized_property.nil?
|
55
|
+
serialized_property = Sku.serialize_object(serialized_property)
|
56
|
+
end
|
57
|
+
output_object['sku'] = serialized_property unless serialized_property.nil?
|
58
|
+
|
59
|
+
serialized_property = object.properties
|
60
|
+
unless serialized_property.nil?
|
61
|
+
serialized_property = VirtualMachineScaleSetProperties.serialize_object(serialized_property)
|
62
|
+
end
|
63
|
+
output_object['properties'] = serialized_property unless serialized_property.nil?
|
64
|
+
|
65
|
+
output_object
|
66
|
+
end
|
67
|
+
|
68
|
+
#
|
69
|
+
# Deserializes given Ruby Hash into Model object.
|
70
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
71
|
+
# @return [VirtualMachineScaleSet] Deserialized object.
|
72
|
+
#
|
73
|
+
def self.deserialize_object(object)
|
74
|
+
return if object.nil?
|
75
|
+
output_object = VirtualMachineScaleSet.new
|
76
|
+
|
77
|
+
deserialized_property = object['location']
|
78
|
+
output_object.location = deserialized_property
|
79
|
+
|
80
|
+
deserialized_property = object['id']
|
81
|
+
output_object.id = deserialized_property
|
82
|
+
|
83
|
+
deserialized_property = object['name']
|
84
|
+
output_object.name = deserialized_property
|
85
|
+
|
86
|
+
deserialized_property = object['type']
|
87
|
+
output_object.type = deserialized_property
|
88
|
+
|
89
|
+
deserialized_property = object['tags']
|
90
|
+
output_object.tags = deserialized_property
|
91
|
+
|
92
|
+
deserialized_property = object['sku']
|
93
|
+
unless deserialized_property.nil?
|
94
|
+
deserialized_property = Sku.deserialize_object(deserialized_property)
|
95
|
+
end
|
96
|
+
output_object.sku = deserialized_property
|
97
|
+
|
98
|
+
deserialized_property = object['properties']
|
99
|
+
unless deserialized_property.nil?
|
100
|
+
deserialized_property = VirtualMachineScaleSetProperties.deserialize_object(deserialized_property)
|
101
|
+
end
|
102
|
+
output_object.properties = deserialized_property
|
103
|
+
|
104
|
+
output_object
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
@@ -0,0 +1,77 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.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 a Virtual Machine Scale Set Extension.
|
10
|
+
#
|
11
|
+
class VirtualMachineScaleSetExtension < MsRestAzure::SubResource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Gets or sets the name of the extension.
|
16
|
+
attr_accessor :name
|
17
|
+
|
18
|
+
# @return [VirtualMachineScaleSetExtensionProperties]
|
19
|
+
attr_accessor :properties
|
20
|
+
|
21
|
+
#
|
22
|
+
# Validate the object. Throws ValidationError if validation fails.
|
23
|
+
#
|
24
|
+
def validate
|
25
|
+
@properties.validate unless @properties.nil?
|
26
|
+
end
|
27
|
+
|
28
|
+
#
|
29
|
+
# Serializes given Model object into Ruby Hash.
|
30
|
+
# @param object Model object to serialize.
|
31
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
32
|
+
#
|
33
|
+
def self.serialize_object(object)
|
34
|
+
object.validate
|
35
|
+
output_object = {}
|
36
|
+
|
37
|
+
serialized_property = object.id
|
38
|
+
output_object['id'] = serialized_property unless serialized_property.nil?
|
39
|
+
|
40
|
+
serialized_property = object.name
|
41
|
+
output_object['name'] = serialized_property unless serialized_property.nil?
|
42
|
+
|
43
|
+
serialized_property = object.properties
|
44
|
+
unless serialized_property.nil?
|
45
|
+
serialized_property = VirtualMachineScaleSetExtensionProperties.serialize_object(serialized_property)
|
46
|
+
end
|
47
|
+
output_object['properties'] = serialized_property unless serialized_property.nil?
|
48
|
+
|
49
|
+
output_object
|
50
|
+
end
|
51
|
+
|
52
|
+
#
|
53
|
+
# Deserializes given Ruby Hash into Model object.
|
54
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
55
|
+
# @return [VirtualMachineScaleSetExtension] Deserialized object.
|
56
|
+
#
|
57
|
+
def self.deserialize_object(object)
|
58
|
+
return if object.nil?
|
59
|
+
output_object = VirtualMachineScaleSetExtension.new
|
60
|
+
|
61
|
+
deserialized_property = object['id']
|
62
|
+
output_object.id = deserialized_property
|
63
|
+
|
64
|
+
deserialized_property = object['name']
|
65
|
+
output_object.name = deserialized_property
|
66
|
+
|
67
|
+
deserialized_property = object['properties']
|
68
|
+
unless deserialized_property.nil?
|
69
|
+
deserialized_property = VirtualMachineScaleSetExtensionProperties.deserialize_object(deserialized_property)
|
70
|
+
end
|
71
|
+
output_object.properties = deserialized_property
|
72
|
+
|
73
|
+
output_object
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
@@ -0,0 +1,77 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.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 a virtual machine scale set extension profile.
|
10
|
+
#
|
11
|
+
class VirtualMachineScaleSetExtensionProfile
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<VirtualMachineScaleSetExtension>] Gets the virtual
|
16
|
+
# machine scale set child extension resources.
|
17
|
+
attr_accessor :extensions
|
18
|
+
|
19
|
+
#
|
20
|
+
# Validate the object. Throws ValidationError if validation fails.
|
21
|
+
#
|
22
|
+
def validate
|
23
|
+
@extensions.each{ |e| e.validate if e.respond_to?(:validate) } unless @extensions.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.extensions
|
36
|
+
unless serialized_property.nil?
|
37
|
+
serializedArray = []
|
38
|
+
serialized_property.each do |element|
|
39
|
+
unless element.nil?
|
40
|
+
element = VirtualMachineScaleSetExtension.serialize_object(element)
|
41
|
+
end
|
42
|
+
serializedArray.push(element)
|
43
|
+
end
|
44
|
+
serialized_property = serializedArray
|
45
|
+
end
|
46
|
+
output_object['extensions'] = 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 [VirtualMachineScaleSetExtensionProfile] Deserialized object.
|
55
|
+
#
|
56
|
+
def self.deserialize_object(object)
|
57
|
+
return if object.nil?
|
58
|
+
output_object = VirtualMachineScaleSetExtensionProfile.new
|
59
|
+
|
60
|
+
deserialized_property = object['extensions']
|
61
|
+
unless deserialized_property.nil?
|
62
|
+
deserialized_array = []
|
63
|
+
deserialized_property.each do |element1|
|
64
|
+
unless element1.nil?
|
65
|
+
element1 = VirtualMachineScaleSetExtension.deserialize_object(element1)
|
66
|
+
end
|
67
|
+
deserialized_array.push(element1)
|
68
|
+
end
|
69
|
+
deserialized_property = deserialized_array
|
70
|
+
end
|
71
|
+
output_object.extensions = deserialized_property
|
72
|
+
|
73
|
+
output_object
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|