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
|
|
@@ -58,19 +58,17 @@ module Azure::ARM::Compute
|
|
58
58
|
|
59
59
|
deserialized_property = object['value']
|
60
60
|
unless deserialized_property.nil?
|
61
|
-
|
61
|
+
deserialized_array = []
|
62
62
|
deserialized_property.each do |element1|
|
63
63
|
unless element1.nil?
|
64
64
|
element1 = Usage.deserialize_object(element1)
|
65
65
|
end
|
66
|
-
|
66
|
+
deserialized_array.push(element1)
|
67
67
|
end
|
68
|
-
deserialized_property =
|
68
|
+
deserialized_property = deserialized_array
|
69
69
|
end
|
70
70
|
output_object.value = deserialized_property
|
71
71
|
|
72
|
-
output_object.validate
|
73
|
-
|
74
72
|
output_object
|
75
73
|
end
|
76
74
|
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
|
|
@@ -61,8 +61,6 @@ module Azure::ARM::Compute
|
|
61
61
|
end
|
62
62
|
output_object.properties = deserialized_property
|
63
63
|
|
64
|
-
output_object.validate
|
65
|
-
|
66
64
|
output_object
|
67
65
|
end
|
68
66
|
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
|
|
@@ -50,8 +50,6 @@ module Azure::ARM::Compute
|
|
50
50
|
deserialized_property = object['primary']
|
51
51
|
output_object.primary = deserialized_property
|
52
52
|
|
53
|
-
output_object.validate
|
54
|
-
|
55
53
|
output_object
|
56
54
|
end
|
57
55
|
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
|
|
@@ -59,19 +59,17 @@ module Azure::ARM::Compute
|
|
59
59
|
|
60
60
|
deserialized_property = object['networkInterfaces']
|
61
61
|
unless deserialized_property.nil?
|
62
|
-
|
62
|
+
deserialized_array = []
|
63
63
|
deserialized_property.each do |element1|
|
64
64
|
unless element1.nil?
|
65
65
|
element1 = NetworkInterfaceReference.deserialize_object(element1)
|
66
66
|
end
|
67
|
-
|
67
|
+
deserialized_array.push(element1)
|
68
68
|
end
|
69
|
-
deserialized_property =
|
69
|
+
deserialized_property = deserialized_array
|
70
70
|
end
|
71
71
|
output_object.network_interfaces = deserialized_property
|
72
72
|
|
73
|
-
output_object.validate
|
74
|
-
|
75
73
|
output_object
|
76
74
|
end
|
77
75
|
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
|
|
@@ -13,9 +13,13 @@ module Azure::ARM::Compute
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
15
|
# @return [OperatingSystemTypes] Gets or sets the Operating System type.
|
16
|
-
# Possible values
|
16
|
+
# Possible values include: 'Windows', 'Linux'
|
17
17
|
attr_accessor :os_type
|
18
18
|
|
19
|
+
# @return [DiskEncryptionSettings] Gets or sets the disk encryption
|
20
|
+
# settings.
|
21
|
+
attr_accessor :encryption_settings
|
22
|
+
|
19
23
|
# @return [String] Gets or sets the disk name.
|
20
24
|
attr_accessor :name
|
21
25
|
|
@@ -29,18 +33,25 @@ module Azure::ARM::Compute
|
|
29
33
|
attr_accessor :image
|
30
34
|
|
31
35
|
# @return [CachingTypes] Gets or sets the caching type. Possible values
|
32
|
-
#
|
36
|
+
# include: 'None', 'ReadOnly', 'ReadWrite'
|
33
37
|
attr_accessor :caching
|
34
38
|
|
35
39
|
# @return [DiskCreateOptionTypes] Gets or sets the create option.
|
36
|
-
# Possible values
|
37
|
-
# 'attach'.
|
40
|
+
# Possible values include: 'fromImage', 'empty', 'attach'
|
38
41
|
attr_accessor :create_option
|
39
42
|
|
43
|
+
# @return [Integer] Gets or sets the initial disk size in GB for blank
|
44
|
+
# data disks, and the new desired size for existing OS and Data disks.
|
45
|
+
attr_accessor :disk_size_gb
|
46
|
+
|
40
47
|
#
|
41
48
|
# Validate the object. Throws ValidationError if validation fails.
|
42
49
|
#
|
43
50
|
def validate
|
51
|
+
fail MsRest::ValidationError, 'property name is nil' if @name.nil?
|
52
|
+
fail MsRest::ValidationError, 'property vhd is nil' if @vhd.nil?
|
53
|
+
fail MsRest::ValidationError, 'property create_option is nil' if @create_option.nil?
|
54
|
+
@encryption_settings.validate unless @encryption_settings.nil?
|
44
55
|
@vhd.validate unless @vhd.nil?
|
45
56
|
@image.validate unless @image.nil?
|
46
57
|
end
|
@@ -54,9 +65,6 @@ module Azure::ARM::Compute
|
|
54
65
|
object.validate
|
55
66
|
output_object = {}
|
56
67
|
|
57
|
-
serialized_property = object.os_type
|
58
|
-
output_object['osType'] = serialized_property unless serialized_property.nil?
|
59
|
-
|
60
68
|
serialized_property = object.name
|
61
69
|
output_object['name'] = serialized_property unless serialized_property.nil?
|
62
70
|
|
@@ -66,6 +74,18 @@ module Azure::ARM::Compute
|
|
66
74
|
end
|
67
75
|
output_object['vhd'] = serialized_property unless serialized_property.nil?
|
68
76
|
|
77
|
+
serialized_property = object.create_option
|
78
|
+
output_object['createOption'] = serialized_property unless serialized_property.nil?
|
79
|
+
|
80
|
+
serialized_property = object.os_type
|
81
|
+
output_object['osType'] = serialized_property unless serialized_property.nil?
|
82
|
+
|
83
|
+
serialized_property = object.encryption_settings
|
84
|
+
unless serialized_property.nil?
|
85
|
+
serialized_property = DiskEncryptionSettings.serialize_object(serialized_property)
|
86
|
+
end
|
87
|
+
output_object['encryptionSettings'] = serialized_property unless serialized_property.nil?
|
88
|
+
|
69
89
|
serialized_property = object.image
|
70
90
|
unless serialized_property.nil?
|
71
91
|
serialized_property = VirtualHardDisk.serialize_object(serialized_property)
|
@@ -75,8 +95,8 @@ module Azure::ARM::Compute
|
|
75
95
|
serialized_property = object.caching
|
76
96
|
output_object['caching'] = serialized_property unless serialized_property.nil?
|
77
97
|
|
78
|
-
serialized_property = object.
|
79
|
-
output_object['
|
98
|
+
serialized_property = object.disk_size_gb
|
99
|
+
output_object['diskSizeGB'] = serialized_property unless serialized_property.nil?
|
80
100
|
|
81
101
|
output_object
|
82
102
|
end
|
@@ -90,13 +110,6 @@ module Azure::ARM::Compute
|
|
90
110
|
return if object.nil?
|
91
111
|
output_object = OSDisk.new
|
92
112
|
|
93
|
-
deserialized_property = object['osType']
|
94
|
-
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
95
|
-
enum_is_valid = OperatingSystemTypes.constants.any? { |e| OperatingSystemTypes.const_get(e).to_s.downcase == deserialized_property.downcase }
|
96
|
-
fail MsRest::DeserializationError.new('Error occured while deserializing the enum', nil, nil, nil) unless enum_is_valid
|
97
|
-
end
|
98
|
-
output_object.os_type = deserialized_property
|
99
|
-
|
100
113
|
deserialized_property = object['name']
|
101
114
|
output_object.name = deserialized_property
|
102
115
|
|
@@ -106,6 +119,26 @@ module Azure::ARM::Compute
|
|
106
119
|
end
|
107
120
|
output_object.vhd = deserialized_property
|
108
121
|
|
122
|
+
deserialized_property = object['createOption']
|
123
|
+
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
124
|
+
enum_is_valid = DiskCreateOptionTypes.constants.any? { |e| DiskCreateOptionTypes.const_get(e).to_s.downcase == deserialized_property.downcase }
|
125
|
+
warn 'Enum DiskCreateOptionTypes does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
126
|
+
end
|
127
|
+
output_object.create_option = deserialized_property
|
128
|
+
|
129
|
+
deserialized_property = object['osType']
|
130
|
+
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
131
|
+
enum_is_valid = OperatingSystemTypes.constants.any? { |e| OperatingSystemTypes.const_get(e).to_s.downcase == deserialized_property.downcase }
|
132
|
+
warn 'Enum OperatingSystemTypes does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
133
|
+
end
|
134
|
+
output_object.os_type = deserialized_property
|
135
|
+
|
136
|
+
deserialized_property = object['encryptionSettings']
|
137
|
+
unless deserialized_property.nil?
|
138
|
+
deserialized_property = DiskEncryptionSettings.deserialize_object(deserialized_property)
|
139
|
+
end
|
140
|
+
output_object.encryption_settings = deserialized_property
|
141
|
+
|
109
142
|
deserialized_property = object['image']
|
110
143
|
unless deserialized_property.nil?
|
111
144
|
deserialized_property = VirtualHardDisk.deserialize_object(deserialized_property)
|
@@ -115,18 +148,13 @@ module Azure::ARM::Compute
|
|
115
148
|
deserialized_property = object['caching']
|
116
149
|
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
117
150
|
enum_is_valid = CachingTypes.constants.any? { |e| CachingTypes.const_get(e).to_s.downcase == deserialized_property.downcase }
|
118
|
-
|
151
|
+
warn 'Enum CachingTypes does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
119
152
|
end
|
120
153
|
output_object.caching = deserialized_property
|
121
154
|
|
122
|
-
deserialized_property = object['
|
123
|
-
|
124
|
-
|
125
|
-
fail MsRest::DeserializationError.new('Error occured while deserializing the enum', nil, nil, nil) unless enum_is_valid
|
126
|
-
end
|
127
|
-
output_object.create_option = deserialized_property
|
128
|
-
|
129
|
-
output_object.validate
|
155
|
+
deserialized_property = object['diskSizeGB']
|
156
|
+
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
157
|
+
output_object.disk_size_gb = deserialized_property
|
130
158
|
|
131
159
|
output_object
|
132
160
|
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
|
|
@@ -13,14 +13,14 @@ module Azure::ARM::Compute
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
15
|
# @return [OperatingSystemTypes] Gets or sets the operating system of
|
16
|
-
# the osDiskImage. Possible values
|
17
|
-
# 'Windows', 'Linux'.
|
16
|
+
# the osDiskImage. Possible values include: 'Windows', 'Linux'
|
18
17
|
attr_accessor :operating_system
|
19
18
|
|
20
19
|
#
|
21
20
|
# Validate the object. Throws ValidationError if validation fails.
|
22
21
|
#
|
23
22
|
def validate
|
23
|
+
fail MsRest::ValidationError, 'property operating_system is nil' if @operating_system.nil?
|
24
24
|
end
|
25
25
|
|
26
26
|
#
|
@@ -50,12 +50,10 @@ module Azure::ARM::Compute
|
|
50
50
|
deserialized_property = object['operatingSystem']
|
51
51
|
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
52
52
|
enum_is_valid = OperatingSystemTypes.constants.any? { |e| OperatingSystemTypes.const_get(e).to_s.downcase == deserialized_property.downcase }
|
53
|
-
|
53
|
+
warn 'Enum OperatingSystemTypes does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
54
54
|
end
|
55
55
|
output_object.operating_system = deserialized_property
|
56
56
|
|
57
|
-
output_object.validate
|
58
|
-
|
59
57
|
output_object
|
60
58
|
end
|
61
59
|
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
|
|
@@ -129,19 +129,17 @@ module Azure::ARM::Compute
|
|
129
129
|
|
130
130
|
deserialized_property = object['secrets']
|
131
131
|
unless deserialized_property.nil?
|
132
|
-
|
132
|
+
deserialized_array = []
|
133
133
|
deserialized_property.each do |element1|
|
134
134
|
unless element1.nil?
|
135
135
|
element1 = VaultSecretGroup.deserialize_object(element1)
|
136
136
|
end
|
137
|
-
|
137
|
+
deserialized_array.push(element1)
|
138
138
|
end
|
139
|
-
deserialized_property =
|
139
|
+
deserialized_property = deserialized_array
|
140
140
|
end
|
141
141
|
output_object.secrets = deserialized_property
|
142
142
|
|
143
|
-
output_object.validate
|
144
|
-
|
145
143
|
output_object
|
146
144
|
end
|
147
145
|
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
|
|
@@ -76,8 +76,6 @@ module Azure::ARM::Compute
|
|
76
76
|
deserialized_property = object['promotionCode']
|
77
77
|
output_object.promotion_code = deserialized_property
|
78
78
|
|
79
|
-
output_object.validate
|
80
|
-
|
81
79
|
output_object
|
82
80
|
end
|
83
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,7 +26,9 @@ module Azure::ARM::Compute
|
|
26
26
|
# Validate the object. Throws ValidationError if validation fails.
|
27
27
|
#
|
28
28
|
def validate
|
29
|
-
|
29
|
+
fail MsRest::ValidationError, 'property publisher is nil' if @publisher.nil?
|
30
|
+
fail MsRest::ValidationError, 'property name is nil' if @name.nil?
|
31
|
+
fail MsRest::ValidationError, 'property product is nil' if @product.nil?
|
30
32
|
end
|
31
33
|
|
32
34
|
#
|
@@ -68,8 +70,6 @@ module Azure::ARM::Compute
|
|
68
70
|
deserialized_property = object['product']
|
69
71
|
output_object.product = deserialized_property
|
70
72
|
|
71
|
-
output_object.validate
|
72
|
-
|
73
73
|
output_object
|
74
74
|
end
|
75
75
|
end
|
@@ -0,0 +1,75 @@
|
|
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 sku.
|
10
|
+
#
|
11
|
+
class Sku
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Gets or sets the sku name.
|
16
|
+
attr_accessor :name
|
17
|
+
|
18
|
+
# @return [String] Gets or sets the sku tier.
|
19
|
+
attr_accessor :tier
|
20
|
+
|
21
|
+
# @return [Integer] Gets or sets the sku capacity.
|
22
|
+
attr_accessor :capacity
|
23
|
+
|
24
|
+
#
|
25
|
+
# Validate the object. Throws ValidationError if validation fails.
|
26
|
+
#
|
27
|
+
def validate
|
28
|
+
# Nothing to validate
|
29
|
+
end
|
30
|
+
|
31
|
+
#
|
32
|
+
# Serializes given Model object into Ruby Hash.
|
33
|
+
# @param object Model object to serialize.
|
34
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
35
|
+
#
|
36
|
+
def self.serialize_object(object)
|
37
|
+
object.validate
|
38
|
+
output_object = {}
|
39
|
+
|
40
|
+
serialized_property = object.name
|
41
|
+
output_object['name'] = serialized_property unless serialized_property.nil?
|
42
|
+
|
43
|
+
serialized_property = object.tier
|
44
|
+
output_object['tier'] = serialized_property unless serialized_property.nil?
|
45
|
+
|
46
|
+
serialized_property = object.capacity
|
47
|
+
output_object['capacity'] = 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 [Sku] Deserialized object.
|
56
|
+
#
|
57
|
+
def self.deserialize_object(object)
|
58
|
+
return if object.nil?
|
59
|
+
output_object = Sku.new
|
60
|
+
|
61
|
+
deserialized_property = object['name']
|
62
|
+
output_object.name = deserialized_property
|
63
|
+
|
64
|
+
deserialized_property = object['tier']
|
65
|
+
output_object.tier = deserialized_property
|
66
|
+
|
67
|
+
deserialized_property = object['capacity']
|
68
|
+
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
69
|
+
output_object.capacity = deserialized_property
|
70
|
+
|
71
|
+
output_object
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
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
|
|
@@ -59,19 +59,17 @@ module Azure::ARM::Compute
|
|
59
59
|
|
60
60
|
deserialized_property = object['publicKeys']
|
61
61
|
unless deserialized_property.nil?
|
62
|
-
|
62
|
+
deserialized_array = []
|
63
63
|
deserialized_property.each do |element1|
|
64
64
|
unless element1.nil?
|
65
65
|
element1 = SshPublicKey.deserialize_object(element1)
|
66
66
|
end
|
67
|
-
|
67
|
+
deserialized_array.push(element1)
|
68
68
|
end
|
69
|
-
deserialized_property =
|
69
|
+
deserialized_property = deserialized_array
|
70
70
|
end
|
71
71
|
output_object.public_keys = deserialized_property
|
72
72
|
|
73
|
-
output_object.validate
|
74
|
-
|
75
73
|
output_object
|
76
74
|
end
|
77
75
|
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
|
|
@@ -63,8 +63,6 @@ module Azure::ARM::Compute
|
|
63
63
|
deserialized_property = object['keyData']
|
64
64
|
output_object.key_data = deserialized_property
|
65
65
|
|
66
|
-
output_object.validate
|
67
|
-
|
68
66
|
output_object
|
69
67
|
end
|
70
68
|
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
|
|
@@ -90,19 +90,17 @@ module Azure::ARM::Compute
|
|
90
90
|
|
91
91
|
deserialized_property = object['dataDisks']
|
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 = DataDisk.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_disks = deserialized_property
|
103
103
|
|
104
|
-
output_object.validate
|
105
|
-
|
106
104
|
output_object
|
107
105
|
end
|
108
106
|
end
|
@@ -1,15 +1,16 @@
|
|
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
|
|
6
6
|
module Azure::ARM::Compute
|
7
7
|
module Models
|
8
8
|
#
|
9
|
-
# Defines values for
|
9
|
+
# Defines values for UpgradeMode
|
10
10
|
#
|
11
|
-
module
|
12
|
-
|
11
|
+
module UpgradeMode
|
12
|
+
Automatic = "Automatic"
|
13
|
+
Manual = "Manual"
|
13
14
|
end
|
14
15
|
end
|
15
16
|
end
|
@@ -0,0 +1,60 @@
|
|
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 an upgrade policy - automatic or manual.
|
10
|
+
#
|
11
|
+
class UpgradePolicy
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [UpgradeMode] Gets or sets the upgrade mode. Possible values
|
16
|
+
# include: 'Automatic', 'Manual'
|
17
|
+
attr_accessor :mode
|
18
|
+
|
19
|
+
#
|
20
|
+
# Validate the object. Throws ValidationError if validation fails.
|
21
|
+
#
|
22
|
+
def validate
|
23
|
+
end
|
24
|
+
|
25
|
+
#
|
26
|
+
# Serializes given Model object into Ruby Hash.
|
27
|
+
# @param object Model object to serialize.
|
28
|
+
# @return [Hash] Serialized object in form of Ruby Hash.
|
29
|
+
#
|
30
|
+
def self.serialize_object(object)
|
31
|
+
object.validate
|
32
|
+
output_object = {}
|
33
|
+
|
34
|
+
serialized_property = object.mode
|
35
|
+
output_object['mode'] = serialized_property unless serialized_property.nil?
|
36
|
+
|
37
|
+
output_object
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Deserializes given Ruby Hash into Model object.
|
42
|
+
# @param object [Hash] Ruby Hash object to deserialize.
|
43
|
+
# @return [UpgradePolicy] Deserialized object.
|
44
|
+
#
|
45
|
+
def self.deserialize_object(object)
|
46
|
+
return if object.nil?
|
47
|
+
output_object = UpgradePolicy.new
|
48
|
+
|
49
|
+
deserialized_property = object['mode']
|
50
|
+
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
51
|
+
enum_is_valid = UpgradeMode.constants.any? { |e| UpgradeMode.const_get(e).to_s.downcase == deserialized_property.downcase }
|
52
|
+
warn 'Enum UpgradeMode does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
53
|
+
end
|
54
|
+
output_object.mode = deserialized_property
|
55
|
+
|
56
|
+
output_object
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|