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,190 +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 the properties of a virtual machine scale set virtual machine.
|
10
|
-
#
|
11
|
-
class VirtualMachineScaleSetVMProperties
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [Boolean] Specifies whether the latest model has been applied
|
16
|
-
# to the virtual machine.
|
17
|
-
attr_accessor :latest_model_applied
|
18
|
-
|
19
|
-
# @return [VirtualMachineInstanceView] Gets the virtual machine instance
|
20
|
-
# view.
|
21
|
-
attr_accessor :instance_view
|
22
|
-
|
23
|
-
# @return [HardwareProfile] Gets or sets the hardware profile.
|
24
|
-
attr_accessor :hardware_profile
|
25
|
-
|
26
|
-
# @return [StorageProfile] Gets or sets the storage profile.
|
27
|
-
attr_accessor :storage_profile
|
28
|
-
|
29
|
-
# @return [OSProfile] Gets or sets the OS profile.
|
30
|
-
attr_accessor :os_profile
|
31
|
-
|
32
|
-
# @return [NetworkProfile] Gets or sets the network profile.
|
33
|
-
attr_accessor :network_profile
|
34
|
-
|
35
|
-
# @return [DiagnosticsProfile] Gets or sets the diagnostics profile.
|
36
|
-
attr_accessor :diagnostics_profile
|
37
|
-
|
38
|
-
# @return [SubResource] Gets or sets the reference Id of the
|
39
|
-
# availability set to which this virtual machine belongs.
|
40
|
-
attr_accessor :availability_set
|
41
|
-
|
42
|
-
# @return [String] Gets or sets the provisioning state, which only
|
43
|
-
# appears in the response.
|
44
|
-
attr_accessor :provisioning_state
|
45
|
-
|
46
|
-
# @return [String] Gets or sets the license type, which is for bring
|
47
|
-
# your own license scenario.
|
48
|
-
attr_accessor :license_type
|
49
|
-
|
50
|
-
#
|
51
|
-
# Validate the object. Throws ValidationError if validation fails.
|
52
|
-
#
|
53
|
-
def validate
|
54
|
-
@instance_view.validate unless @instance_view.nil?
|
55
|
-
@hardware_profile.validate unless @hardware_profile.nil?
|
56
|
-
@storage_profile.validate unless @storage_profile.nil?
|
57
|
-
@os_profile.validate unless @os_profile.nil?
|
58
|
-
@network_profile.validate unless @network_profile.nil?
|
59
|
-
@diagnostics_profile.validate unless @diagnostics_profile.nil?
|
60
|
-
@availability_set.validate unless @availability_set.nil?
|
61
|
-
end
|
62
|
-
|
63
|
-
#
|
64
|
-
# Serializes given Model object into Ruby Hash.
|
65
|
-
# @param object Model object to serialize.
|
66
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
67
|
-
#
|
68
|
-
def self.serialize_object(object)
|
69
|
-
object.validate
|
70
|
-
output_object = {}
|
71
|
-
|
72
|
-
serialized_property = object.latest_model_applied
|
73
|
-
output_object['latestModelApplied'] = serialized_property unless serialized_property.nil?
|
74
|
-
|
75
|
-
serialized_property = object.instance_view
|
76
|
-
unless serialized_property.nil?
|
77
|
-
serialized_property = VirtualMachineInstanceView.serialize_object(serialized_property)
|
78
|
-
end
|
79
|
-
output_object['instanceView'] = serialized_property unless serialized_property.nil?
|
80
|
-
|
81
|
-
serialized_property = object.hardware_profile
|
82
|
-
unless serialized_property.nil?
|
83
|
-
serialized_property = HardwareProfile.serialize_object(serialized_property)
|
84
|
-
end
|
85
|
-
output_object['hardwareProfile'] = serialized_property unless serialized_property.nil?
|
86
|
-
|
87
|
-
serialized_property = object.storage_profile
|
88
|
-
unless serialized_property.nil?
|
89
|
-
serialized_property = StorageProfile.serialize_object(serialized_property)
|
90
|
-
end
|
91
|
-
output_object['storageProfile'] = serialized_property unless serialized_property.nil?
|
92
|
-
|
93
|
-
serialized_property = object.os_profile
|
94
|
-
unless serialized_property.nil?
|
95
|
-
serialized_property = OSProfile.serialize_object(serialized_property)
|
96
|
-
end
|
97
|
-
output_object['osProfile'] = serialized_property unless serialized_property.nil?
|
98
|
-
|
99
|
-
serialized_property = object.network_profile
|
100
|
-
unless serialized_property.nil?
|
101
|
-
serialized_property = NetworkProfile.serialize_object(serialized_property)
|
102
|
-
end
|
103
|
-
output_object['networkProfile'] = serialized_property unless serialized_property.nil?
|
104
|
-
|
105
|
-
serialized_property = object.diagnostics_profile
|
106
|
-
unless serialized_property.nil?
|
107
|
-
serialized_property = DiagnosticsProfile.serialize_object(serialized_property)
|
108
|
-
end
|
109
|
-
output_object['diagnosticsProfile'] = serialized_property unless serialized_property.nil?
|
110
|
-
|
111
|
-
serialized_property = object.availability_set
|
112
|
-
unless serialized_property.nil?
|
113
|
-
serialized_property = MsRestAzure::SubResource.serialize_object(serialized_property)
|
114
|
-
end
|
115
|
-
output_object['availabilitySet'] = serialized_property unless serialized_property.nil?
|
116
|
-
|
117
|
-
serialized_property = object.provisioning_state
|
118
|
-
output_object['provisioningState'] = serialized_property unless serialized_property.nil?
|
119
|
-
|
120
|
-
serialized_property = object.license_type
|
121
|
-
output_object['licenseType'] = serialized_property unless serialized_property.nil?
|
122
|
-
|
123
|
-
output_object
|
124
|
-
end
|
125
|
-
|
126
|
-
#
|
127
|
-
# Deserializes given Ruby Hash into Model object.
|
128
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
129
|
-
# @return [VirtualMachineScaleSetVMProperties] Deserialized object.
|
130
|
-
#
|
131
|
-
def self.deserialize_object(object)
|
132
|
-
return if object.nil?
|
133
|
-
output_object = VirtualMachineScaleSetVMProperties.new
|
134
|
-
|
135
|
-
deserialized_property = object['latestModelApplied']
|
136
|
-
output_object.latest_model_applied = deserialized_property
|
137
|
-
|
138
|
-
deserialized_property = object['instanceView']
|
139
|
-
unless deserialized_property.nil?
|
140
|
-
deserialized_property = VirtualMachineInstanceView.deserialize_object(deserialized_property)
|
141
|
-
end
|
142
|
-
output_object.instance_view = deserialized_property
|
143
|
-
|
144
|
-
deserialized_property = object['hardwareProfile']
|
145
|
-
unless deserialized_property.nil?
|
146
|
-
deserialized_property = HardwareProfile.deserialize_object(deserialized_property)
|
147
|
-
end
|
148
|
-
output_object.hardware_profile = deserialized_property
|
149
|
-
|
150
|
-
deserialized_property = object['storageProfile']
|
151
|
-
unless deserialized_property.nil?
|
152
|
-
deserialized_property = StorageProfile.deserialize_object(deserialized_property)
|
153
|
-
end
|
154
|
-
output_object.storage_profile = deserialized_property
|
155
|
-
|
156
|
-
deserialized_property = object['osProfile']
|
157
|
-
unless deserialized_property.nil?
|
158
|
-
deserialized_property = OSProfile.deserialize_object(deserialized_property)
|
159
|
-
end
|
160
|
-
output_object.os_profile = deserialized_property
|
161
|
-
|
162
|
-
deserialized_property = object['networkProfile']
|
163
|
-
unless deserialized_property.nil?
|
164
|
-
deserialized_property = NetworkProfile.deserialize_object(deserialized_property)
|
165
|
-
end
|
166
|
-
output_object.network_profile = deserialized_property
|
167
|
-
|
168
|
-
deserialized_property = object['diagnosticsProfile']
|
169
|
-
unless deserialized_property.nil?
|
170
|
-
deserialized_property = DiagnosticsProfile.deserialize_object(deserialized_property)
|
171
|
-
end
|
172
|
-
output_object.diagnostics_profile = deserialized_property
|
173
|
-
|
174
|
-
deserialized_property = object['availabilitySet']
|
175
|
-
unless deserialized_property.nil?
|
176
|
-
deserialized_property = MsRestAzure::SubResource.deserialize_object(deserialized_property)
|
177
|
-
end
|
178
|
-
output_object.availability_set = deserialized_property
|
179
|
-
|
180
|
-
deserialized_property = object['provisioningState']
|
181
|
-
output_object.provisioning_state = deserialized_property
|
182
|
-
|
183
|
-
deserialized_property = object['licenseType']
|
184
|
-
output_object.license_type = deserialized_property
|
185
|
-
|
186
|
-
output_object
|
187
|
-
end
|
188
|
-
end
|
189
|
-
end
|
190
|
-
end
|
@@ -1,109 +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 the properties of a VM size.
|
10
|
-
#
|
11
|
-
class VirtualMachineSize
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets or sets the VM size name.
|
16
|
-
attr_accessor :name
|
17
|
-
|
18
|
-
# @return [Integer] Gets or sets the Number of cores supported by a VM
|
19
|
-
# size.
|
20
|
-
attr_accessor :number_of_cores
|
21
|
-
|
22
|
-
# @return [Integer] Gets or sets the OS disk size allowed by a VM size.
|
23
|
-
attr_accessor :os_disk_size_in_mb
|
24
|
-
|
25
|
-
# @return [Integer] Gets or sets the Resource disk size allowed by a VM
|
26
|
-
# size.
|
27
|
-
attr_accessor :resource_disk_size_in_mb
|
28
|
-
|
29
|
-
# @return [Integer] Gets or sets the Memory size supported by a VM size.
|
30
|
-
attr_accessor :memory_in_mb
|
31
|
-
|
32
|
-
# @return [Integer] Gets or sets the Maximum number of data disks
|
33
|
-
# allowed by a VM size.
|
34
|
-
attr_accessor :max_data_disk_count
|
35
|
-
|
36
|
-
#
|
37
|
-
# Validate the object. Throws ValidationError if validation fails.
|
38
|
-
#
|
39
|
-
def validate
|
40
|
-
# Nothing to validate
|
41
|
-
end
|
42
|
-
|
43
|
-
#
|
44
|
-
# Serializes given Model object into Ruby Hash.
|
45
|
-
# @param object Model object to serialize.
|
46
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
47
|
-
#
|
48
|
-
def self.serialize_object(object)
|
49
|
-
object.validate
|
50
|
-
output_object = {}
|
51
|
-
|
52
|
-
serialized_property = object.name
|
53
|
-
output_object['name'] = serialized_property unless serialized_property.nil?
|
54
|
-
|
55
|
-
serialized_property = object.number_of_cores
|
56
|
-
output_object['numberOfCores'] = serialized_property unless serialized_property.nil?
|
57
|
-
|
58
|
-
serialized_property = object.os_disk_size_in_mb
|
59
|
-
output_object['osDiskSizeInMB'] = serialized_property unless serialized_property.nil?
|
60
|
-
|
61
|
-
serialized_property = object.resource_disk_size_in_mb
|
62
|
-
output_object['resourceDiskSizeInMB'] = serialized_property unless serialized_property.nil?
|
63
|
-
|
64
|
-
serialized_property = object.memory_in_mb
|
65
|
-
output_object['memoryInMB'] = serialized_property unless serialized_property.nil?
|
66
|
-
|
67
|
-
serialized_property = object.max_data_disk_count
|
68
|
-
output_object['maxDataDiskCount'] = serialized_property unless serialized_property.nil?
|
69
|
-
|
70
|
-
output_object
|
71
|
-
end
|
72
|
-
|
73
|
-
#
|
74
|
-
# Deserializes given Ruby Hash into Model object.
|
75
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
76
|
-
# @return [VirtualMachineSize] Deserialized object.
|
77
|
-
#
|
78
|
-
def self.deserialize_object(object)
|
79
|
-
return if object.nil?
|
80
|
-
output_object = VirtualMachineSize.new
|
81
|
-
|
82
|
-
deserialized_property = object['name']
|
83
|
-
output_object.name = deserialized_property
|
84
|
-
|
85
|
-
deserialized_property = object['numberOfCores']
|
86
|
-
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
87
|
-
output_object.number_of_cores = deserialized_property
|
88
|
-
|
89
|
-
deserialized_property = object['osDiskSizeInMB']
|
90
|
-
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
91
|
-
output_object.os_disk_size_in_mb = deserialized_property
|
92
|
-
|
93
|
-
deserialized_property = object['resourceDiskSizeInMB']
|
94
|
-
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
95
|
-
output_object.resource_disk_size_in_mb = deserialized_property
|
96
|
-
|
97
|
-
deserialized_property = object['memoryInMB']
|
98
|
-
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
99
|
-
output_object.memory_in_mb = deserialized_property
|
100
|
-
|
101
|
-
deserialized_property = object['maxDataDiskCount']
|
102
|
-
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
103
|
-
output_object.max_data_disk_count = deserialized_property
|
104
|
-
|
105
|
-
output_object
|
106
|
-
end
|
107
|
-
end
|
108
|
-
end
|
109
|
-
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 List Virtual Machine operation response.
|
10
|
-
#
|
11
|
-
class VirtualMachineSizeListResult
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [Array<VirtualMachineSize>] Gets or sets the list of virtual
|
16
|
-
# machine sizes.
|
17
|
-
attr_accessor :value
|
18
|
-
|
19
|
-
#
|
20
|
-
# Validate the object. Throws ValidationError if validation fails.
|
21
|
-
#
|
22
|
-
def validate
|
23
|
-
@value.each{ |e| e.validate if e.respond_to?(:validate) } unless @value.nil?
|
24
|
-
end
|
25
|
-
|
26
|
-
#
|
27
|
-
# Serializes given Model object into Ruby Hash.
|
28
|
-
# @param object Model object to serialize.
|
29
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
30
|
-
#
|
31
|
-
def self.serialize_object(object)
|
32
|
-
object.validate
|
33
|
-
output_object = {}
|
34
|
-
|
35
|
-
serialized_property = object.value
|
36
|
-
unless serialized_property.nil?
|
37
|
-
serializedArray = []
|
38
|
-
serialized_property.each do |element|
|
39
|
-
unless element.nil?
|
40
|
-
element = VirtualMachineSize.serialize_object(element)
|
41
|
-
end
|
42
|
-
serializedArray.push(element)
|
43
|
-
end
|
44
|
-
serialized_property = serializedArray
|
45
|
-
end
|
46
|
-
output_object['value'] = serialized_property unless serialized_property.nil?
|
47
|
-
|
48
|
-
output_object
|
49
|
-
end
|
50
|
-
|
51
|
-
#
|
52
|
-
# Deserializes given Ruby Hash into Model object.
|
53
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
54
|
-
# @return [VirtualMachineSizeListResult] Deserialized object.
|
55
|
-
#
|
56
|
-
def self.deserialize_object(object)
|
57
|
-
return if object.nil?
|
58
|
-
output_object = VirtualMachineSizeListResult.new
|
59
|
-
|
60
|
-
deserialized_property = object['value']
|
61
|
-
unless deserialized_property.nil?
|
62
|
-
deserialized_array = []
|
63
|
-
deserialized_property.each do |element1|
|
64
|
-
unless element1.nil?
|
65
|
-
element1 = VirtualMachineSize.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,68 +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 status code and count of the virtual machine scale set instance view
|
10
|
-
# status summary.
|
11
|
-
#
|
12
|
-
class VirtualMachineStatusCodeCount
|
13
|
-
|
14
|
-
include MsRestAzure
|
15
|
-
|
16
|
-
# @return [String] Gets the instance view status code.
|
17
|
-
attr_accessor :code
|
18
|
-
|
19
|
-
# @return [Integer] Gets the number of instances having a particular
|
20
|
-
# status code.
|
21
|
-
attr_accessor :count
|
22
|
-
|
23
|
-
#
|
24
|
-
# Validate the object. Throws ValidationError if validation fails.
|
25
|
-
#
|
26
|
-
def validate
|
27
|
-
# Nothing to validate
|
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.code
|
40
|
-
output_object['code'] = serialized_property unless serialized_property.nil?
|
41
|
-
|
42
|
-
serialized_property = object.count
|
43
|
-
output_object['count'] = serialized_property unless serialized_property.nil?
|
44
|
-
|
45
|
-
output_object
|
46
|
-
end
|
47
|
-
|
48
|
-
#
|
49
|
-
# Deserializes given Ruby Hash into Model object.
|
50
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
51
|
-
# @return [VirtualMachineStatusCodeCount] Deserialized object.
|
52
|
-
#
|
53
|
-
def self.deserialize_object(object)
|
54
|
-
return if object.nil?
|
55
|
-
output_object = VirtualMachineStatusCodeCount.new
|
56
|
-
|
57
|
-
deserialized_property = object['code']
|
58
|
-
output_object.code = deserialized_property
|
59
|
-
|
60
|
-
deserialized_property = object['count']
|
61
|
-
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
62
|
-
output_object.count = deserialized_property
|
63
|
-
|
64
|
-
output_object
|
65
|
-
end
|
66
|
-
end
|
67
|
-
end
|
68
|
-
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 Windows Remote Management configuration of the VM
|
10
|
-
#
|
11
|
-
class WinRMConfiguration
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [Array<WinRMListener>] Gets or sets the list of Windows Remote
|
16
|
-
# Management listeners
|
17
|
-
attr_accessor :listeners
|
18
|
-
|
19
|
-
#
|
20
|
-
# Validate the object. Throws ValidationError if validation fails.
|
21
|
-
#
|
22
|
-
def validate
|
23
|
-
@listeners.each{ |e| e.validate if e.respond_to?(:validate) } unless @listeners.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.listeners
|
36
|
-
unless serialized_property.nil?
|
37
|
-
serializedArray = []
|
38
|
-
serialized_property.each do |element|
|
39
|
-
unless element.nil?
|
40
|
-
element = WinRMListener.serialize_object(element)
|
41
|
-
end
|
42
|
-
serializedArray.push(element)
|
43
|
-
end
|
44
|
-
serialized_property = serializedArray
|
45
|
-
end
|
46
|
-
output_object['listeners'] = 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 [WinRMConfiguration] Deserialized object.
|
55
|
-
#
|
56
|
-
def self.deserialize_object(object)
|
57
|
-
return if object.nil?
|
58
|
-
output_object = WinRMConfiguration.new
|
59
|
-
|
60
|
-
deserialized_property = object['listeners']
|
61
|
-
unless deserialized_property.nil?
|
62
|
-
deserialized_array = []
|
63
|
-
deserialized_property.each do |element1|
|
64
|
-
unless element1.nil?
|
65
|
-
element1 = WinRMListener.deserialize_object(element1)
|
66
|
-
end
|
67
|
-
deserialized_array.push(element1)
|
68
|
-
end
|
69
|
-
deserialized_property = deserialized_array
|
70
|
-
end
|
71
|
-
output_object.listeners = deserialized_property
|
72
|
-
|
73
|
-
output_object
|
74
|
-
end
|
75
|
-
end
|
76
|
-
end
|
77
|
-
end
|