azure_mgmt_compute 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/azure_mgmt_compute.gemspec +4 -4
- data/lib/azure_mgmt_compute.rb +3 -138
- data/lib/generated/azure_mgmt_compute.rb +128 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/availability_sets.rb +24 -22
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/compute_management_client.rb +12 -12
- data/lib/generated/azure_mgmt_compute/models/additional_unattend_content.rb +88 -0
- data/lib/generated/azure_mgmt_compute/models/api_entity_reference.rb +45 -0
- data/lib/generated/azure_mgmt_compute/models/api_error.rb +93 -0
- data/lib/generated/azure_mgmt_compute/models/api_error_base.rb +64 -0
- data/lib/generated/azure_mgmt_compute/models/availability_set.rb +136 -0
- data/lib/generated/azure_mgmt_compute/models/availability_set_list_result.rb +52 -0
- data/lib/generated/azure_mgmt_compute/models/boot_diagnostics.rb +56 -0
- data/lib/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +54 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/caching_types.rb +0 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/component_names.rb +0 -0
- data/lib/generated/azure_mgmt_compute/models/compute_long_running_operation_properties.rb +44 -0
- data/lib/generated/azure_mgmt_compute/models/data_disk.rb +114 -0
- data/lib/generated/azure_mgmt_compute/models/data_disk_image.rb +48 -0
- data/lib/generated/azure_mgmt_compute/models/diagnostics_profile.rb +45 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/disk_create_option_types.rb +0 -0
- data/lib/generated/azure_mgmt_compute/models/disk_encryption_settings.rb +69 -0
- data/lib/generated/azure_mgmt_compute/models/disk_instance_view.rb +62 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/hardware_profile.rb +20 -35
- data/lib/generated/azure_mgmt_compute/models/image_reference.rb +76 -0
- data/lib/generated/azure_mgmt_compute/models/inner_error.rb +54 -0
- data/lib/generated/azure_mgmt_compute/models/instance_view_status.rb +87 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/instance_view_types.rb +0 -0
- data/lib/generated/azure_mgmt_compute/models/key_vault_key_reference.rb +56 -0
- data/lib/generated/azure_mgmt_compute/models/key_vault_secret_reference.rb +56 -0
- data/lib/generated/azure_mgmt_compute/models/linux_configuration.rb +56 -0
- data/lib/generated/azure_mgmt_compute/models/list_usages_result.rb +95 -0
- data/lib/generated/azure_mgmt_compute/models/network_interface_reference.rb +51 -0
- data/lib/generated/azure_mgmt_compute/models/network_profile.rb +52 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/operating_system_types.rb +0 -0
- data/lib/generated/azure_mgmt_compute/models/osdisk.rb +127 -0
- data/lib/generated/azure_mgmt_compute/models/osdisk_image.rb +46 -0
- data/lib/generated/azure_mgmt_compute/models/osprofile.rb +116 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/pass_names.rb +0 -0
- data/lib/generated/azure_mgmt_compute/models/plan.rb +74 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/protocol_types.rb +0 -0
- data/lib/generated/azure_mgmt_compute/models/purchase_plan.rb +65 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/setting_names.rb +0 -0
- data/lib/generated/azure_mgmt_compute/models/sku.rb +64 -0
- data/lib/generated/azure_mgmt_compute/models/ssh_configuration.rb +53 -0
- data/lib/generated/azure_mgmt_compute/models/ssh_public_key.rb +59 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/status_level_types.rb +0 -0
- data/lib/generated/azure_mgmt_compute/models/storage_profile.rb +74 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/upgrade_mode.rb +0 -0
- data/lib/generated/azure_mgmt_compute/models/upgrade_policy.rb +46 -0
- data/lib/generated/azure_mgmt_compute/models/usage.rb +78 -0
- data/lib/generated/azure_mgmt_compute/models/usage_name.rb +54 -0
- data/lib/generated/azure_mgmt_compute/models/vault_certificate.rb +57 -0
- data/lib/generated/azure_mgmt_compute/models/vault_secret_group.rb +65 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_hard_disk.rb +45 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine.rb +224 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb +81 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb +65 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_capture_result.rb +51 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_extension.rb +175 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +67 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb +134 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +101 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_image.rb +109 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb +78 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb +142 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb +135 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +124 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +53 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +85 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +56 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +117 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +95 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +97 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +97 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +82 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +53 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +111 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +116 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +70 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +80 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/virtual_machine_scale_set_sku_scale_type.rb +0 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +56 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +248 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +66 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +51 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +52 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +142 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +96 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +82 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_size.rb +95 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_size_list_result.rb +52 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/virtual_machine_size_types.rb +0 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +58 -0
- data/lib/generated/azure_mgmt_compute/models/win_rmconfiguration.rb +53 -0
- data/lib/generated/azure_mgmt_compute/models/win_rmlistener.rb +58 -0
- data/lib/generated/azure_mgmt_compute/models/windows_configuration.rb +98 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/module_definition.rb +0 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/usage_operations.rb +32 -11
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/version.rb +1 -1
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/virtual_machine_extension_images.rb +40 -26
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/virtual_machine_extensions.rb +59 -31
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/virtual_machine_images.rb +76 -48
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/virtual_machine_scale_set_vms.rb +169 -41
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/virtual_machine_scale_sets.rb +341 -125
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/virtual_machine_sizes.rb +4 -4
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/virtual_machines.rb +340 -84
- metadata +126 -142
- data/lib/azure_mgmt_compute/models/additional_unattend_content.rb +0 -105
- data/lib/azure_mgmt_compute/models/api_entity_reference.rb +0 -57
- data/lib/azure_mgmt_compute/models/api_error.rb +0 -119
- data/lib/azure_mgmt_compute/models/api_error_base.rb +0 -74
- data/lib/azure_mgmt_compute/models/availability_set.rb +0 -92
- data/lib/azure_mgmt_compute/models/availability_set_list_result.rb +0 -77
- data/lib/azure_mgmt_compute/models/availability_set_properties.rb +0 -128
- data/lib/azure_mgmt_compute/models/boot_diagnostics.rb +0 -67
- data/lib/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +0 -65
- data/lib/azure_mgmt_compute/models/compute_long_running_operation_properties.rb +0 -56
- data/lib/azure_mgmt_compute/models/data_disk.rb +0 -143
- data/lib/azure_mgmt_compute/models/data_disk_image.rb +0 -60
- data/lib/azure_mgmt_compute/models/diagnostics_profile.rb +0 -62
- data/lib/azure_mgmt_compute/models/disk_encryption_settings.rb +0 -90
- data/lib/azure_mgmt_compute/models/disk_instance_view.rb +0 -86
- data/lib/azure_mgmt_compute/models/image_reference.rb +0 -85
- data/lib/azure_mgmt_compute/models/inner_error.rb +0 -66
- data/lib/azure_mgmt_compute/models/instance_view_status.rb +0 -100
- data/lib/azure_mgmt_compute/models/key_vault_key_reference.rb +0 -74
- data/lib/azure_mgmt_compute/models/key_vault_secret_reference.rb +0 -75
- data/lib/azure_mgmt_compute/models/linux_configuration.rb +0 -73
- data/lib/azure_mgmt_compute/models/list_usages_result.rb +0 -76
- data/lib/azure_mgmt_compute/models/network_interface_reference.rb +0 -68
- data/lib/azure_mgmt_compute/models/network_interface_reference_properties.rb +0 -57
- data/lib/azure_mgmt_compute/models/network_profile.rb +0 -77
- data/lib/azure_mgmt_compute/models/osdisk.rb +0 -163
- data/lib/azure_mgmt_compute/models/osdisk_image.rb +0 -61
- data/lib/azure_mgmt_compute/models/osprofile.rb +0 -147
- data/lib/azure_mgmt_compute/models/plan.rb +0 -83
- data/lib/azure_mgmt_compute/models/purchase_plan.rb +0 -77
- data/lib/azure_mgmt_compute/models/sku.rb +0 -75
- data/lib/azure_mgmt_compute/models/ssh_configuration.rb +0 -77
- data/lib/azure_mgmt_compute/models/ssh_public_key.rb +0 -70
- data/lib/azure_mgmt_compute/models/storage_profile.rb +0 -108
- data/lib/azure_mgmt_compute/models/upgrade_policy.rb +0 -60
- data/lib/azure_mgmt_compute/models/usage.rb +0 -96
- data/lib/azure_mgmt_compute/models/usage_name.rb +0 -66
- data/lib/azure_mgmt_compute/models/vault_certificate.rb +0 -68
- data/lib/azure_mgmt_compute/models/vault_secret_group.rb +0 -94
- data/lib/azure_mgmt_compute/models/virtual_hard_disk.rb +0 -57
- data/lib/azure_mgmt_compute/models/virtual_machine.rb +0 -140
- data/lib/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb +0 -117
- data/lib/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb +0 -78
- data/lib/azure_mgmt_compute/models/virtual_machine_capture_result.rb +0 -68
- data/lib/azure_mgmt_compute/models/virtual_machine_capture_result_properties.rb +0 -56
- data/lib/azure_mgmt_compute/models/virtual_machine_extension.rb +0 -92
- data/lib/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +0 -83
- data/lib/azure_mgmt_compute/models/virtual_machine_extension_image.rb +0 -92
- data/lib/azure_mgmt_compute/models/virtual_machine_extension_image_properties.rb +0 -102
- data/lib/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +0 -137
- data/lib/azure_mgmt_compute/models/virtual_machine_extension_properties.rb +0 -141
- data/lib/azure_mgmt_compute/models/virtual_machine_image.rb +0 -86
- data/lib/azure_mgmt_compute/models/virtual_machine_image_properties.rb +0 -108
- data/lib/azure_mgmt_compute/models/virtual_machine_image_resource.rb +0 -83
- data/lib/azure_mgmt_compute/models/virtual_machine_instance_view.rb +0 -202
- data/lib/azure_mgmt_compute/models/virtual_machine_list_result.rb +0 -87
- data/lib/azure_mgmt_compute/models/virtual_machine_properties.rb +0 -189
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set.rb +0 -108
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +0 -77
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +0 -77
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_extension_properties.rb +0 -116
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +0 -125
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +0 -79
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +0 -78
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration_properties.rb +0 -158
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +0 -77
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +0 -77
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +0 -88
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +0 -80
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration_properties.rb +0 -89
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +0 -77
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +0 -129
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +0 -147
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_properties.rb +0 -99
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +0 -88
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +0 -90
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +0 -78
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +0 -165
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +0 -87
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +0 -57
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +0 -59
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +0 -202
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +0 -77
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +0 -114
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vmproperties.rb +0 -190
- data/lib/azure_mgmt_compute/models/virtual_machine_size.rb +0 -109
- data/lib/azure_mgmt_compute/models/virtual_machine_size_list_result.rb +0 -77
- data/lib/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +0 -68
- data/lib/azure_mgmt_compute/models/win_rmconfiguration.rb +0 -77
- data/lib/azure_mgmt_compute/models/win_rmlistener.rb +0 -71
- data/lib/azure_mgmt_compute/models/windows_configuration.rb +0 -124
@@ -1,77 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.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 VirtualMachineScaleSetListResult
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [Array<VirtualMachineScaleSet>] Gets or sets the list of
|
16
|
-
# virtual machine scale sets.
|
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 = VirtualMachineScaleSet.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 [VirtualMachineScaleSetListResult] Deserialized object.
|
55
|
-
#
|
56
|
-
def self.deserialize_object(object)
|
57
|
-
return if object.nil?
|
58
|
-
output_object = VirtualMachineScaleSetListResult.new
|
59
|
-
|
60
|
-
deserialized_property = object['value']
|
61
|
-
unless deserialized_property.nil?
|
62
|
-
deserialized_array = []
|
63
|
-
deserialized_property.each do |element1|
|
64
|
-
unless element1.nil?
|
65
|
-
element1 = VirtualMachineScaleSet.deserialize_object(element1)
|
66
|
-
end
|
67
|
-
deserialized_array.push(element1)
|
68
|
-
end
|
69
|
-
deserialized_property = deserialized_array
|
70
|
-
end
|
71
|
-
output_object.value = deserialized_property
|
72
|
-
|
73
|
-
output_object
|
74
|
-
end
|
75
|
-
end
|
76
|
-
end
|
77
|
-
end
|
@@ -1,77 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.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 Virtual Machine Scale Set List Skus operation response.
|
10
|
-
#
|
11
|
-
class VirtualMachineScaleSetListSkusResult
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [Array<VirtualMachineScaleSetSku>] Gets the list of skus
|
16
|
-
# available for the virtual machine scale set.
|
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 = VirtualMachineScaleSetSku.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 [VirtualMachineScaleSetListSkusResult] Deserialized object.
|
55
|
-
#
|
56
|
-
def self.deserialize_object(object)
|
57
|
-
return if object.nil?
|
58
|
-
output_object = VirtualMachineScaleSetListSkusResult.new
|
59
|
-
|
60
|
-
deserialized_property = object['value']
|
61
|
-
unless deserialized_property.nil?
|
62
|
-
deserialized_array = []
|
63
|
-
deserialized_property.each do |element1|
|
64
|
-
unless element1.nil?
|
65
|
-
element1 = VirtualMachineScaleSetSku.deserialize_object(element1)
|
66
|
-
end
|
67
|
-
deserialized_array.push(element1)
|
68
|
-
end
|
69
|
-
deserialized_property = deserialized_array
|
70
|
-
end
|
71
|
-
output_object.value = deserialized_property
|
72
|
-
|
73
|
-
output_object
|
74
|
-
end
|
75
|
-
end
|
76
|
-
end
|
77
|
-
end
|
@@ -1,88 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.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 VirtualMachineScaleSetListWithLinkResult
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [Array<VirtualMachineScaleSet>] Gets or sets the list of
|
16
|
-
# virtual machine scale sets.
|
17
|
-
attr_accessor :value
|
18
|
-
|
19
|
-
# @return [String] Gets or sets the uri to fetch the next page of
|
20
|
-
# Virtual Machine Scale Sets. Call ListNext() with this to fetch the
|
21
|
-
# next page of Virtual Machine Scale Sets.
|
22
|
-
attr_accessor :next_link
|
23
|
-
|
24
|
-
#
|
25
|
-
# Validate the object. Throws ValidationError if validation fails.
|
26
|
-
#
|
27
|
-
def validate
|
28
|
-
@value.each{ |e| e.validate if e.respond_to?(:validate) } unless @value.nil?
|
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.value
|
41
|
-
unless serialized_property.nil?
|
42
|
-
serializedArray = []
|
43
|
-
serialized_property.each do |element|
|
44
|
-
unless element.nil?
|
45
|
-
element = VirtualMachineScaleSet.serialize_object(element)
|
46
|
-
end
|
47
|
-
serializedArray.push(element)
|
48
|
-
end
|
49
|
-
serialized_property = serializedArray
|
50
|
-
end
|
51
|
-
output_object['value'] = serialized_property unless serialized_property.nil?
|
52
|
-
|
53
|
-
serialized_property = object.next_link
|
54
|
-
output_object['nextLink'] = serialized_property unless serialized_property.nil?
|
55
|
-
|
56
|
-
output_object
|
57
|
-
end
|
58
|
-
|
59
|
-
#
|
60
|
-
# Deserializes given Ruby Hash into Model object.
|
61
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
62
|
-
# @return [VirtualMachineScaleSetListWithLinkResult] Deserialized object.
|
63
|
-
#
|
64
|
-
def self.deserialize_object(object)
|
65
|
-
return if object.nil?
|
66
|
-
output_object = VirtualMachineScaleSetListWithLinkResult.new
|
67
|
-
|
68
|
-
deserialized_property = object['value']
|
69
|
-
unless deserialized_property.nil?
|
70
|
-
deserialized_array = []
|
71
|
-
deserialized_property.each do |element1|
|
72
|
-
unless element1.nil?
|
73
|
-
element1 = VirtualMachineScaleSet.deserialize_object(element1)
|
74
|
-
end
|
75
|
-
deserialized_array.push(element1)
|
76
|
-
end
|
77
|
-
deserialized_property = deserialized_array
|
78
|
-
end
|
79
|
-
output_object.value = deserialized_property
|
80
|
-
|
81
|
-
deserialized_property = object['nextLink']
|
82
|
-
output_object.next_link = deserialized_property
|
83
|
-
|
84
|
-
output_object
|
85
|
-
end
|
86
|
-
end
|
87
|
-
end
|
88
|
-
end
|
@@ -1,80 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.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 network profile's network
|
10
|
-
# configurations.
|
11
|
-
#
|
12
|
-
class VirtualMachineScaleSetNetworkConfiguration < MsRestAzure::SubResource
|
13
|
-
|
14
|
-
include MsRestAzure
|
15
|
-
|
16
|
-
# @return [String] Gets or sets the network configuration name.
|
17
|
-
attr_accessor :name
|
18
|
-
|
19
|
-
# @return [VirtualMachineScaleSetNetworkConfigurationProperties]
|
20
|
-
attr_accessor :properties
|
21
|
-
|
22
|
-
#
|
23
|
-
# Validate the object. Throws ValidationError if validation fails.
|
24
|
-
#
|
25
|
-
def validate
|
26
|
-
fail MsRest::ValidationError, 'property name is nil' if @name.nil?
|
27
|
-
@properties.validate unless @properties.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.name
|
40
|
-
output_object['name'] = serialized_property unless serialized_property.nil?
|
41
|
-
|
42
|
-
serialized_property = object.id
|
43
|
-
output_object['id'] = serialized_property unless serialized_property.nil?
|
44
|
-
|
45
|
-
serialized_property = object.properties
|
46
|
-
unless serialized_property.nil?
|
47
|
-
serialized_property = VirtualMachineScaleSetNetworkConfigurationProperties.serialize_object(serialized_property)
|
48
|
-
end
|
49
|
-
output_object['properties'] = serialized_property unless serialized_property.nil?
|
50
|
-
|
51
|
-
output_object
|
52
|
-
end
|
53
|
-
|
54
|
-
#
|
55
|
-
# Deserializes given Ruby Hash into Model object.
|
56
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
57
|
-
# @return [VirtualMachineScaleSetNetworkConfiguration] Deserialized
|
58
|
-
# object.
|
59
|
-
#
|
60
|
-
def self.deserialize_object(object)
|
61
|
-
return if object.nil?
|
62
|
-
output_object = VirtualMachineScaleSetNetworkConfiguration.new
|
63
|
-
|
64
|
-
deserialized_property = object['name']
|
65
|
-
output_object.name = deserialized_property
|
66
|
-
|
67
|
-
deserialized_property = object['id']
|
68
|
-
output_object.id = deserialized_property
|
69
|
-
|
70
|
-
deserialized_property = object['properties']
|
71
|
-
unless deserialized_property.nil?
|
72
|
-
deserialized_property = VirtualMachineScaleSetNetworkConfigurationProperties.deserialize_object(deserialized_property)
|
73
|
-
end
|
74
|
-
output_object.properties = deserialized_property
|
75
|
-
|
76
|
-
output_object
|
77
|
-
end
|
78
|
-
end
|
79
|
-
end
|
80
|
-
end
|
data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration_properties.rb
DELETED
@@ -1,89 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.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 network profile's IP configuration.
|
10
|
-
#
|
11
|
-
class VirtualMachineScaleSetNetworkConfigurationProperties
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [Boolean] Gets or sets whether this is a primary NIC on a
|
16
|
-
# virtual machine.
|
17
|
-
attr_accessor :primary
|
18
|
-
|
19
|
-
# @return [Array<VirtualMachineScaleSetIPConfiguration>] Gets or sets
|
20
|
-
# the virtual machine scale set IP Configuration.
|
21
|
-
attr_accessor :ip_configurations
|
22
|
-
|
23
|
-
#
|
24
|
-
# Validate the object. Throws ValidationError if validation fails.
|
25
|
-
#
|
26
|
-
def validate
|
27
|
-
fail MsRest::ValidationError, 'property ip_configurations is nil' if @ip_configurations.nil?
|
28
|
-
@ip_configurations.each{ |e| e.validate if e.respond_to?(:validate) } unless @ip_configurations.nil?
|
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.ip_configurations
|
41
|
-
unless serialized_property.nil?
|
42
|
-
serializedArray = []
|
43
|
-
serialized_property.each do |element|
|
44
|
-
unless element.nil?
|
45
|
-
element = VirtualMachineScaleSetIPConfiguration.serialize_object(element)
|
46
|
-
end
|
47
|
-
serializedArray.push(element)
|
48
|
-
end
|
49
|
-
serialized_property = serializedArray
|
50
|
-
end
|
51
|
-
output_object['ipConfigurations'] = serialized_property unless serialized_property.nil?
|
52
|
-
|
53
|
-
serialized_property = object.primary
|
54
|
-
output_object['primary'] = serialized_property unless serialized_property.nil?
|
55
|
-
|
56
|
-
output_object
|
57
|
-
end
|
58
|
-
|
59
|
-
#
|
60
|
-
# Deserializes given Ruby Hash into Model object.
|
61
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
62
|
-
# @return [VirtualMachineScaleSetNetworkConfigurationProperties]
|
63
|
-
# Deserialized object.
|
64
|
-
#
|
65
|
-
def self.deserialize_object(object)
|
66
|
-
return if object.nil?
|
67
|
-
output_object = VirtualMachineScaleSetNetworkConfigurationProperties.new
|
68
|
-
|
69
|
-
deserialized_property = object['ipConfigurations']
|
70
|
-
unless deserialized_property.nil?
|
71
|
-
deserialized_array = []
|
72
|
-
deserialized_property.each do |element1|
|
73
|
-
unless element1.nil?
|
74
|
-
element1 = VirtualMachineScaleSetIPConfiguration.deserialize_object(element1)
|
75
|
-
end
|
76
|
-
deserialized_array.push(element1)
|
77
|
-
end
|
78
|
-
deserialized_property = deserialized_array
|
79
|
-
end
|
80
|
-
output_object.ip_configurations = deserialized_property
|
81
|
-
|
82
|
-
deserialized_property = object['primary']
|
83
|
-
output_object.primary = deserialized_property
|
84
|
-
|
85
|
-
output_object
|
86
|
-
end
|
87
|
-
end
|
88
|
-
end
|
89
|
-
end
|
@@ -1,77 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.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 network profile.
|
10
|
-
#
|
11
|
-
class VirtualMachineScaleSetNetworkProfile
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [Array<VirtualMachineScaleSetNetworkConfiguration>] Gets or
|
16
|
-
# sets the list of network configurations.
|
17
|
-
attr_accessor :network_interface_configurations
|
18
|
-
|
19
|
-
#
|
20
|
-
# Validate the object. Throws ValidationError if validation fails.
|
21
|
-
#
|
22
|
-
def validate
|
23
|
-
@network_interface_configurations.each{ |e| e.validate if e.respond_to?(:validate) } unless @network_interface_configurations.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.network_interface_configurations
|
36
|
-
unless serialized_property.nil?
|
37
|
-
serializedArray = []
|
38
|
-
serialized_property.each do |element|
|
39
|
-
unless element.nil?
|
40
|
-
element = VirtualMachineScaleSetNetworkConfiguration.serialize_object(element)
|
41
|
-
end
|
42
|
-
serializedArray.push(element)
|
43
|
-
end
|
44
|
-
serialized_property = serializedArray
|
45
|
-
end
|
46
|
-
output_object['networkInterfaceConfigurations'] = 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 [VirtualMachineScaleSetNetworkProfile] Deserialized object.
|
55
|
-
#
|
56
|
-
def self.deserialize_object(object)
|
57
|
-
return if object.nil?
|
58
|
-
output_object = VirtualMachineScaleSetNetworkProfile.new
|
59
|
-
|
60
|
-
deserialized_property = object['networkInterfaceConfigurations']
|
61
|
-
unless deserialized_property.nil?
|
62
|
-
deserialized_array = []
|
63
|
-
deserialized_property.each do |element1|
|
64
|
-
unless element1.nil?
|
65
|
-
element1 = VirtualMachineScaleSetNetworkConfiguration.deserialize_object(element1)
|
66
|
-
end
|
67
|
-
deserialized_array.push(element1)
|
68
|
-
end
|
69
|
-
deserialized_property = deserialized_array
|
70
|
-
end
|
71
|
-
output_object.network_interface_configurations = deserialized_property
|
72
|
-
|
73
|
-
output_object
|
74
|
-
end
|
75
|
-
end
|
76
|
-
end
|
77
|
-
end
|