azure_mgmt_compute 0.3.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +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,108 +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 Image.
|
10
|
-
#
|
11
|
-
class VirtualMachineImageProperties
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [PurchasePlan]
|
16
|
-
attr_accessor :plan
|
17
|
-
|
18
|
-
# @return [OSDiskImage]
|
19
|
-
attr_accessor :os_disk_image
|
20
|
-
|
21
|
-
# @return [Array<DataDiskImage>]
|
22
|
-
attr_accessor :data_disk_images
|
23
|
-
|
24
|
-
#
|
25
|
-
# Validate the object. Throws ValidationError if validation fails.
|
26
|
-
#
|
27
|
-
def validate
|
28
|
-
@plan.validate unless @plan.nil?
|
29
|
-
@os_disk_image.validate unless @os_disk_image.nil?
|
30
|
-
@data_disk_images.each{ |e| e.validate if e.respond_to?(:validate) } unless @data_disk_images.nil?
|
31
|
-
end
|
32
|
-
|
33
|
-
#
|
34
|
-
# Serializes given Model object into Ruby Hash.
|
35
|
-
# @param object Model object to serialize.
|
36
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
37
|
-
#
|
38
|
-
def self.serialize_object(object)
|
39
|
-
object.validate
|
40
|
-
output_object = {}
|
41
|
-
|
42
|
-
serialized_property = object.plan
|
43
|
-
unless serialized_property.nil?
|
44
|
-
serialized_property = PurchasePlan.serialize_object(serialized_property)
|
45
|
-
end
|
46
|
-
output_object['plan'] = serialized_property unless serialized_property.nil?
|
47
|
-
|
48
|
-
serialized_property = object.os_disk_image
|
49
|
-
unless serialized_property.nil?
|
50
|
-
serialized_property = OSDiskImage.serialize_object(serialized_property)
|
51
|
-
end
|
52
|
-
output_object['osDiskImage'] = serialized_property unless serialized_property.nil?
|
53
|
-
|
54
|
-
serialized_property = object.data_disk_images
|
55
|
-
unless serialized_property.nil?
|
56
|
-
serializedArray = []
|
57
|
-
serialized_property.each do |element|
|
58
|
-
unless element.nil?
|
59
|
-
element = DataDiskImage.serialize_object(element)
|
60
|
-
end
|
61
|
-
serializedArray.push(element)
|
62
|
-
end
|
63
|
-
serialized_property = serializedArray
|
64
|
-
end
|
65
|
-
output_object['dataDiskImages'] = serialized_property unless serialized_property.nil?
|
66
|
-
|
67
|
-
output_object
|
68
|
-
end
|
69
|
-
|
70
|
-
#
|
71
|
-
# Deserializes given Ruby Hash into Model object.
|
72
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
73
|
-
# @return [VirtualMachineImageProperties] Deserialized object.
|
74
|
-
#
|
75
|
-
def self.deserialize_object(object)
|
76
|
-
return if object.nil?
|
77
|
-
output_object = VirtualMachineImageProperties.new
|
78
|
-
|
79
|
-
deserialized_property = object['plan']
|
80
|
-
unless deserialized_property.nil?
|
81
|
-
deserialized_property = PurchasePlan.deserialize_object(deserialized_property)
|
82
|
-
end
|
83
|
-
output_object.plan = deserialized_property
|
84
|
-
|
85
|
-
deserialized_property = object['osDiskImage']
|
86
|
-
unless deserialized_property.nil?
|
87
|
-
deserialized_property = OSDiskImage.deserialize_object(deserialized_property)
|
88
|
-
end
|
89
|
-
output_object.os_disk_image = deserialized_property
|
90
|
-
|
91
|
-
deserialized_property = object['dataDiskImages']
|
92
|
-
unless deserialized_property.nil?
|
93
|
-
deserialized_array = []
|
94
|
-
deserialized_property.each do |element1|
|
95
|
-
unless element1.nil?
|
96
|
-
element1 = DataDiskImage.deserialize_object(element1)
|
97
|
-
end
|
98
|
-
deserialized_array.push(element1)
|
99
|
-
end
|
100
|
-
deserialized_property = deserialized_array
|
101
|
-
end
|
102
|
-
output_object.data_disk_images = deserialized_property
|
103
|
-
|
104
|
-
output_object
|
105
|
-
end
|
106
|
-
end
|
107
|
-
end
|
108
|
-
end
|
@@ -1,83 +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
|
-
# Virtual machine image resource information.
|
10
|
-
#
|
11
|
-
class VirtualMachineImageResource < MsRestAzure::SubResource
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets or sets the name of the resource.
|
16
|
-
attr_accessor :name
|
17
|
-
|
18
|
-
# @return [String] Gets or sets the location of the resource.
|
19
|
-
attr_accessor :location
|
20
|
-
|
21
|
-
# @return [Hash{String => String}] Gets or sets the tags attached to the
|
22
|
-
# resource.
|
23
|
-
attr_accessor :tags
|
24
|
-
|
25
|
-
#
|
26
|
-
# Validate the object. Throws ValidationError if validation fails.
|
27
|
-
#
|
28
|
-
def validate
|
29
|
-
fail MsRest::ValidationError, 'property name is nil' if @name.nil?
|
30
|
-
fail MsRest::ValidationError, 'property location is nil' if @location.nil?
|
31
|
-
@tags.each{ |e| e.validate if e.respond_to?(:validate) } unless @tags.nil?
|
32
|
-
end
|
33
|
-
|
34
|
-
#
|
35
|
-
# Serializes given Model object into Ruby Hash.
|
36
|
-
# @param object Model object to serialize.
|
37
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
38
|
-
#
|
39
|
-
def self.serialize_object(object)
|
40
|
-
object.validate
|
41
|
-
output_object = {}
|
42
|
-
|
43
|
-
serialized_property = object.name
|
44
|
-
output_object['name'] = serialized_property unless serialized_property.nil?
|
45
|
-
|
46
|
-
serialized_property = object.location
|
47
|
-
output_object['location'] = serialized_property unless serialized_property.nil?
|
48
|
-
|
49
|
-
serialized_property = object.id
|
50
|
-
output_object['id'] = serialized_property unless serialized_property.nil?
|
51
|
-
|
52
|
-
serialized_property = object.tags
|
53
|
-
output_object['tags'] = serialized_property unless serialized_property.nil?
|
54
|
-
|
55
|
-
output_object
|
56
|
-
end
|
57
|
-
|
58
|
-
#
|
59
|
-
# Deserializes given Ruby Hash into Model object.
|
60
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
61
|
-
# @return [VirtualMachineImageResource] Deserialized object.
|
62
|
-
#
|
63
|
-
def self.deserialize_object(object)
|
64
|
-
return if object.nil?
|
65
|
-
output_object = VirtualMachineImageResource.new
|
66
|
-
|
67
|
-
deserialized_property = object['name']
|
68
|
-
output_object.name = deserialized_property
|
69
|
-
|
70
|
-
deserialized_property = object['location']
|
71
|
-
output_object.location = deserialized_property
|
72
|
-
|
73
|
-
deserialized_property = object['id']
|
74
|
-
output_object.id = deserialized_property
|
75
|
-
|
76
|
-
deserialized_property = object['tags']
|
77
|
-
output_object.tags = deserialized_property
|
78
|
-
|
79
|
-
output_object
|
80
|
-
end
|
81
|
-
end
|
82
|
-
end
|
83
|
-
end
|
@@ -1,202 +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 instance view of a virtual machine.
|
10
|
-
#
|
11
|
-
class VirtualMachineInstanceView
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [Integer] Gets or sets the Update Domain count.
|
16
|
-
attr_accessor :platform_update_domain
|
17
|
-
|
18
|
-
# @return [Integer] Gets or sets the Fault Domain count.
|
19
|
-
attr_accessor :platform_fault_domain
|
20
|
-
|
21
|
-
# @return [String] Gets or sets the Remote desktop certificate
|
22
|
-
# thumbprint.
|
23
|
-
attr_accessor :rdp_thumb_print
|
24
|
-
|
25
|
-
# @return [VirtualMachineAgentInstanceView] Gets or sets the VM Agent
|
26
|
-
# running on the virtual machine.
|
27
|
-
attr_accessor :vm_agent
|
28
|
-
|
29
|
-
# @return [Array<DiskInstanceView>] Gets or sets the disks information.
|
30
|
-
attr_accessor :disks
|
31
|
-
|
32
|
-
# @return [Array<VirtualMachineExtensionInstanceView>] Gets or sets the
|
33
|
-
# extensions information.
|
34
|
-
attr_accessor :extensions
|
35
|
-
|
36
|
-
# @return [BootDiagnosticsInstanceView] Gets or sets the boot
|
37
|
-
# diagnostics.
|
38
|
-
attr_accessor :boot_diagnostics
|
39
|
-
|
40
|
-
# @return [Array<InstanceViewStatus>] Gets or sets the resource status
|
41
|
-
# information.
|
42
|
-
attr_accessor :statuses
|
43
|
-
|
44
|
-
#
|
45
|
-
# Validate the object. Throws ValidationError if validation fails.
|
46
|
-
#
|
47
|
-
def validate
|
48
|
-
@vm_agent.validate unless @vm_agent.nil?
|
49
|
-
@disks.each{ |e| e.validate if e.respond_to?(:validate) } unless @disks.nil?
|
50
|
-
@extensions.each{ |e| e.validate if e.respond_to?(:validate) } unless @extensions.nil?
|
51
|
-
@boot_diagnostics.validate unless @boot_diagnostics.nil?
|
52
|
-
@statuses.each{ |e| e.validate if e.respond_to?(:validate) } unless @statuses.nil?
|
53
|
-
end
|
54
|
-
|
55
|
-
#
|
56
|
-
# Serializes given Model object into Ruby Hash.
|
57
|
-
# @param object Model object to serialize.
|
58
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
59
|
-
#
|
60
|
-
def self.serialize_object(object)
|
61
|
-
object.validate
|
62
|
-
output_object = {}
|
63
|
-
|
64
|
-
serialized_property = object.platform_update_domain
|
65
|
-
output_object['platformUpdateDomain'] = serialized_property unless serialized_property.nil?
|
66
|
-
|
67
|
-
serialized_property = object.platform_fault_domain
|
68
|
-
output_object['platformFaultDomain'] = serialized_property unless serialized_property.nil?
|
69
|
-
|
70
|
-
serialized_property = object.rdp_thumb_print
|
71
|
-
output_object['rdpThumbPrint'] = serialized_property unless serialized_property.nil?
|
72
|
-
|
73
|
-
serialized_property = object.vm_agent
|
74
|
-
unless serialized_property.nil?
|
75
|
-
serialized_property = VirtualMachineAgentInstanceView.serialize_object(serialized_property)
|
76
|
-
end
|
77
|
-
output_object['vmAgent'] = serialized_property unless serialized_property.nil?
|
78
|
-
|
79
|
-
serialized_property = object.disks
|
80
|
-
unless serialized_property.nil?
|
81
|
-
serializedArray = []
|
82
|
-
serialized_property.each do |element|
|
83
|
-
unless element.nil?
|
84
|
-
element = DiskInstanceView.serialize_object(element)
|
85
|
-
end
|
86
|
-
serializedArray.push(element)
|
87
|
-
end
|
88
|
-
serialized_property = serializedArray
|
89
|
-
end
|
90
|
-
output_object['disks'] = serialized_property unless serialized_property.nil?
|
91
|
-
|
92
|
-
serialized_property = object.extensions
|
93
|
-
unless serialized_property.nil?
|
94
|
-
serializedArray = []
|
95
|
-
serialized_property.each do |element1|
|
96
|
-
unless element1.nil?
|
97
|
-
element1 = VirtualMachineExtensionInstanceView.serialize_object(element1)
|
98
|
-
end
|
99
|
-
serializedArray.push(element1)
|
100
|
-
end
|
101
|
-
serialized_property = serializedArray
|
102
|
-
end
|
103
|
-
output_object['extensions'] = serialized_property unless serialized_property.nil?
|
104
|
-
|
105
|
-
serialized_property = object.boot_diagnostics
|
106
|
-
unless serialized_property.nil?
|
107
|
-
serialized_property = BootDiagnosticsInstanceView.serialize_object(serialized_property)
|
108
|
-
end
|
109
|
-
output_object['bootDiagnostics'] = serialized_property unless serialized_property.nil?
|
110
|
-
|
111
|
-
serialized_property = object.statuses
|
112
|
-
unless serialized_property.nil?
|
113
|
-
serializedArray = []
|
114
|
-
serialized_property.each do |element2|
|
115
|
-
unless element2.nil?
|
116
|
-
element2 = InstanceViewStatus.serialize_object(element2)
|
117
|
-
end
|
118
|
-
serializedArray.push(element2)
|
119
|
-
end
|
120
|
-
serialized_property = serializedArray
|
121
|
-
end
|
122
|
-
output_object['statuses'] = serialized_property unless serialized_property.nil?
|
123
|
-
|
124
|
-
output_object
|
125
|
-
end
|
126
|
-
|
127
|
-
#
|
128
|
-
# Deserializes given Ruby Hash into Model object.
|
129
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
130
|
-
# @return [VirtualMachineInstanceView] Deserialized object.
|
131
|
-
#
|
132
|
-
def self.deserialize_object(object)
|
133
|
-
return if object.nil?
|
134
|
-
output_object = VirtualMachineInstanceView.new
|
135
|
-
|
136
|
-
deserialized_property = object['platformUpdateDomain']
|
137
|
-
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
138
|
-
output_object.platform_update_domain = deserialized_property
|
139
|
-
|
140
|
-
deserialized_property = object['platformFaultDomain']
|
141
|
-
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
142
|
-
output_object.platform_fault_domain = deserialized_property
|
143
|
-
|
144
|
-
deserialized_property = object['rdpThumbPrint']
|
145
|
-
output_object.rdp_thumb_print = deserialized_property
|
146
|
-
|
147
|
-
deserialized_property = object['vmAgent']
|
148
|
-
unless deserialized_property.nil?
|
149
|
-
deserialized_property = VirtualMachineAgentInstanceView.deserialize_object(deserialized_property)
|
150
|
-
end
|
151
|
-
output_object.vm_agent = deserialized_property
|
152
|
-
|
153
|
-
deserialized_property = object['disks']
|
154
|
-
unless deserialized_property.nil?
|
155
|
-
deserialized_array = []
|
156
|
-
deserialized_property.each do |element3|
|
157
|
-
unless element3.nil?
|
158
|
-
element3 = DiskInstanceView.deserialize_object(element3)
|
159
|
-
end
|
160
|
-
deserialized_array.push(element3)
|
161
|
-
end
|
162
|
-
deserialized_property = deserialized_array
|
163
|
-
end
|
164
|
-
output_object.disks = deserialized_property
|
165
|
-
|
166
|
-
deserialized_property = object['extensions']
|
167
|
-
unless deserialized_property.nil?
|
168
|
-
deserialized_array = []
|
169
|
-
deserialized_property.each do |element4|
|
170
|
-
unless element4.nil?
|
171
|
-
element4 = VirtualMachineExtensionInstanceView.deserialize_object(element4)
|
172
|
-
end
|
173
|
-
deserialized_array.push(element4)
|
174
|
-
end
|
175
|
-
deserialized_property = deserialized_array
|
176
|
-
end
|
177
|
-
output_object.extensions = deserialized_property
|
178
|
-
|
179
|
-
deserialized_property = object['bootDiagnostics']
|
180
|
-
unless deserialized_property.nil?
|
181
|
-
deserialized_property = BootDiagnosticsInstanceView.deserialize_object(deserialized_property)
|
182
|
-
end
|
183
|
-
output_object.boot_diagnostics = deserialized_property
|
184
|
-
|
185
|
-
deserialized_property = object['statuses']
|
186
|
-
unless deserialized_property.nil?
|
187
|
-
deserialized_array = []
|
188
|
-
deserialized_property.each do |element5|
|
189
|
-
unless element5.nil?
|
190
|
-
element5 = InstanceViewStatus.deserialize_object(element5)
|
191
|
-
end
|
192
|
-
deserialized_array.push(element5)
|
193
|
-
end
|
194
|
-
deserialized_property = deserialized_array
|
195
|
-
end
|
196
|
-
output_object.statuses = deserialized_property
|
197
|
-
|
198
|
-
output_object
|
199
|
-
end
|
200
|
-
end
|
201
|
-
end
|
202
|
-
end
|
@@ -1,87 +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 VirtualMachineListResult
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [Array<VirtualMachine>] Gets or sets the list of virtual
|
16
|
-
# machines.
|
17
|
-
attr_accessor :value
|
18
|
-
|
19
|
-
# @return [String] Gets or sets the uri to fetch the next page of VMs.
|
20
|
-
# Call ListNext() with this to fetch the next page of Virtual Machines.
|
21
|
-
attr_accessor :next_link
|
22
|
-
|
23
|
-
#
|
24
|
-
# Validate the object. Throws ValidationError if validation fails.
|
25
|
-
#
|
26
|
-
def validate
|
27
|
-
@value.each{ |e| e.validate if e.respond_to?(:validate) } unless @value.nil?
|
28
|
-
end
|
29
|
-
|
30
|
-
#
|
31
|
-
# Serializes given Model object into Ruby Hash.
|
32
|
-
# @param object Model object to serialize.
|
33
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
34
|
-
#
|
35
|
-
def self.serialize_object(object)
|
36
|
-
object.validate
|
37
|
-
output_object = {}
|
38
|
-
|
39
|
-
serialized_property = object.value
|
40
|
-
unless serialized_property.nil?
|
41
|
-
serializedArray = []
|
42
|
-
serialized_property.each do |element|
|
43
|
-
unless element.nil?
|
44
|
-
element = VirtualMachine.serialize_object(element)
|
45
|
-
end
|
46
|
-
serializedArray.push(element)
|
47
|
-
end
|
48
|
-
serialized_property = serializedArray
|
49
|
-
end
|
50
|
-
output_object['value'] = serialized_property unless serialized_property.nil?
|
51
|
-
|
52
|
-
serialized_property = object.next_link
|
53
|
-
output_object['nextLink'] = serialized_property unless serialized_property.nil?
|
54
|
-
|
55
|
-
output_object
|
56
|
-
end
|
57
|
-
|
58
|
-
#
|
59
|
-
# Deserializes given Ruby Hash into Model object.
|
60
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
61
|
-
# @return [VirtualMachineListResult] Deserialized object.
|
62
|
-
#
|
63
|
-
def self.deserialize_object(object)
|
64
|
-
return if object.nil?
|
65
|
-
output_object = VirtualMachineListResult.new
|
66
|
-
|
67
|
-
deserialized_property = object['value']
|
68
|
-
unless deserialized_property.nil?
|
69
|
-
deserialized_array = []
|
70
|
-
deserialized_property.each do |element1|
|
71
|
-
unless element1.nil?
|
72
|
-
element1 = VirtualMachine.deserialize_object(element1)
|
73
|
-
end
|
74
|
-
deserialized_array.push(element1)
|
75
|
-
end
|
76
|
-
deserialized_property = deserialized_array
|
77
|
-
end
|
78
|
-
output_object.value = deserialized_property
|
79
|
-
|
80
|
-
deserialized_property = object['nextLink']
|
81
|
-
output_object.next_link = deserialized_property
|
82
|
-
|
83
|
-
output_object
|
84
|
-
end
|
85
|
-
end
|
86
|
-
end
|
87
|
-
end
|