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,129 +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 operating system disk.
|
10
|
-
#
|
11
|
-
class VirtualMachineScaleSetOSDisk
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets or sets the disk name.
|
16
|
-
attr_accessor :name
|
17
|
-
|
18
|
-
# @return [CachingTypes] Gets or sets the caching type. Possible values
|
19
|
-
# include: 'None', 'ReadOnly', 'ReadWrite'
|
20
|
-
attr_accessor :caching
|
21
|
-
|
22
|
-
# @return [DiskCreateOptionTypes] Gets or sets the create option.
|
23
|
-
# Possible values include: 'fromImage', 'empty', 'attach'
|
24
|
-
attr_accessor :create_option
|
25
|
-
|
26
|
-
# @return [OperatingSystemTypes] Gets or sets the Operating System type.
|
27
|
-
# Possible values include: 'Windows', 'Linux'
|
28
|
-
attr_accessor :os_type
|
29
|
-
|
30
|
-
# @return [VirtualHardDisk] Gets or sets the Source User Image
|
31
|
-
# VirtualHardDisk. This VirtualHardDisk will be copied before using it
|
32
|
-
# to attach to the Virtual Machine.If SourceImage is provided, the
|
33
|
-
# destination VirtualHardDisk should not exist.
|
34
|
-
attr_accessor :image
|
35
|
-
|
36
|
-
# @return [Array<String>] Gets or sets the list of virtual hard disk
|
37
|
-
# container uris.
|
38
|
-
attr_accessor :vhd_containers
|
39
|
-
|
40
|
-
#
|
41
|
-
# Validate the object. Throws ValidationError if validation fails.
|
42
|
-
#
|
43
|
-
def validate
|
44
|
-
fail MsRest::ValidationError, 'property name is nil' if @name.nil?
|
45
|
-
fail MsRest::ValidationError, 'property create_option is nil' if @create_option.nil?
|
46
|
-
@image.validate unless @image.nil?
|
47
|
-
@vhd_containers.each{ |e| e.validate if e.respond_to?(:validate) } unless @vhd_containers.nil?
|
48
|
-
end
|
49
|
-
|
50
|
-
#
|
51
|
-
# Serializes given Model object into Ruby Hash.
|
52
|
-
# @param object Model object to serialize.
|
53
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
54
|
-
#
|
55
|
-
def self.serialize_object(object)
|
56
|
-
object.validate
|
57
|
-
output_object = {}
|
58
|
-
|
59
|
-
serialized_property = object.name
|
60
|
-
output_object['name'] = serialized_property unless serialized_property.nil?
|
61
|
-
|
62
|
-
serialized_property = object.create_option
|
63
|
-
output_object['createOption'] = serialized_property unless serialized_property.nil?
|
64
|
-
|
65
|
-
serialized_property = object.caching
|
66
|
-
output_object['caching'] = serialized_property unless serialized_property.nil?
|
67
|
-
|
68
|
-
serialized_property = object.os_type
|
69
|
-
output_object['osType'] = serialized_property unless serialized_property.nil?
|
70
|
-
|
71
|
-
serialized_property = object.image
|
72
|
-
unless serialized_property.nil?
|
73
|
-
serialized_property = VirtualHardDisk.serialize_object(serialized_property)
|
74
|
-
end
|
75
|
-
output_object['image'] = serialized_property unless serialized_property.nil?
|
76
|
-
|
77
|
-
serialized_property = object.vhd_containers
|
78
|
-
output_object['vhdContainers'] = serialized_property unless serialized_property.nil?
|
79
|
-
|
80
|
-
output_object
|
81
|
-
end
|
82
|
-
|
83
|
-
#
|
84
|
-
# Deserializes given Ruby Hash into Model object.
|
85
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
86
|
-
# @return [VirtualMachineScaleSetOSDisk] Deserialized object.
|
87
|
-
#
|
88
|
-
def self.deserialize_object(object)
|
89
|
-
return if object.nil?
|
90
|
-
output_object = VirtualMachineScaleSetOSDisk.new
|
91
|
-
|
92
|
-
deserialized_property = object['name']
|
93
|
-
output_object.name = deserialized_property
|
94
|
-
|
95
|
-
deserialized_property = object['createOption']
|
96
|
-
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
97
|
-
enum_is_valid = DiskCreateOptionTypes.constants.any? { |e| DiskCreateOptionTypes.const_get(e).to_s.downcase == deserialized_property.downcase }
|
98
|
-
warn 'Enum DiskCreateOptionTypes does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
99
|
-
end
|
100
|
-
output_object.create_option = deserialized_property
|
101
|
-
|
102
|
-
deserialized_property = object['caching']
|
103
|
-
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
104
|
-
enum_is_valid = CachingTypes.constants.any? { |e| CachingTypes.const_get(e).to_s.downcase == deserialized_property.downcase }
|
105
|
-
warn 'Enum CachingTypes does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
106
|
-
end
|
107
|
-
output_object.caching = deserialized_property
|
108
|
-
|
109
|
-
deserialized_property = object['osType']
|
110
|
-
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
111
|
-
enum_is_valid = OperatingSystemTypes.constants.any? { |e| OperatingSystemTypes.const_get(e).to_s.downcase == deserialized_property.downcase }
|
112
|
-
warn 'Enum OperatingSystemTypes does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
113
|
-
end
|
114
|
-
output_object.os_type = deserialized_property
|
115
|
-
|
116
|
-
deserialized_property = object['image']
|
117
|
-
unless deserialized_property.nil?
|
118
|
-
deserialized_property = VirtualHardDisk.deserialize_object(deserialized_property)
|
119
|
-
end
|
120
|
-
output_object.image = deserialized_property
|
121
|
-
|
122
|
-
deserialized_property = object['vhdContainers']
|
123
|
-
output_object.vhd_containers = deserialized_property
|
124
|
-
|
125
|
-
output_object
|
126
|
-
end
|
127
|
-
end
|
128
|
-
end
|
129
|
-
end
|
@@ -1,147 +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 OS profile.
|
10
|
-
#
|
11
|
-
class VirtualMachineScaleSetOSProfile
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets or sets the computer name prefix.
|
16
|
-
attr_accessor :computer_name_prefix
|
17
|
-
|
18
|
-
# @return [String] Gets or sets the admin user name.
|
19
|
-
attr_accessor :admin_username
|
20
|
-
|
21
|
-
# @return [String] Gets or sets the admin user password.
|
22
|
-
attr_accessor :admin_password
|
23
|
-
|
24
|
-
# @return [String] Gets or sets a base-64 encoded string of custom data.
|
25
|
-
attr_accessor :custom_data
|
26
|
-
|
27
|
-
# @return [WindowsConfiguration] Gets or sets the Windows Configuration
|
28
|
-
# of the OS profile.
|
29
|
-
attr_accessor :windows_configuration
|
30
|
-
|
31
|
-
# @return [LinuxConfiguration] Gets or sets the Linux Configuration of
|
32
|
-
# the OS profile.
|
33
|
-
attr_accessor :linux_configuration
|
34
|
-
|
35
|
-
# @return [Array<VaultSecretGroup>] Gets or sets the List of
|
36
|
-
# certificates for addition to the VM.
|
37
|
-
attr_accessor :secrets
|
38
|
-
|
39
|
-
#
|
40
|
-
# Validate the object. Throws ValidationError if validation fails.
|
41
|
-
#
|
42
|
-
def validate
|
43
|
-
@windows_configuration.validate unless @windows_configuration.nil?
|
44
|
-
@linux_configuration.validate unless @linux_configuration.nil?
|
45
|
-
@secrets.each{ |e| e.validate if e.respond_to?(:validate) } unless @secrets.nil?
|
46
|
-
end
|
47
|
-
|
48
|
-
#
|
49
|
-
# Serializes given Model object into Ruby Hash.
|
50
|
-
# @param object Model object to serialize.
|
51
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
52
|
-
#
|
53
|
-
def self.serialize_object(object)
|
54
|
-
object.validate
|
55
|
-
output_object = {}
|
56
|
-
|
57
|
-
serialized_property = object.computer_name_prefix
|
58
|
-
output_object['computerNamePrefix'] = serialized_property unless serialized_property.nil?
|
59
|
-
|
60
|
-
serialized_property = object.admin_username
|
61
|
-
output_object['adminUsername'] = serialized_property unless serialized_property.nil?
|
62
|
-
|
63
|
-
serialized_property = object.admin_password
|
64
|
-
output_object['adminPassword'] = serialized_property unless serialized_property.nil?
|
65
|
-
|
66
|
-
serialized_property = object.custom_data
|
67
|
-
output_object['customData'] = serialized_property unless serialized_property.nil?
|
68
|
-
|
69
|
-
serialized_property = object.windows_configuration
|
70
|
-
unless serialized_property.nil?
|
71
|
-
serialized_property = WindowsConfiguration.serialize_object(serialized_property)
|
72
|
-
end
|
73
|
-
output_object['windowsConfiguration'] = serialized_property unless serialized_property.nil?
|
74
|
-
|
75
|
-
serialized_property = object.linux_configuration
|
76
|
-
unless serialized_property.nil?
|
77
|
-
serialized_property = LinuxConfiguration.serialize_object(serialized_property)
|
78
|
-
end
|
79
|
-
output_object['linuxConfiguration'] = serialized_property unless serialized_property.nil?
|
80
|
-
|
81
|
-
serialized_property = object.secrets
|
82
|
-
unless serialized_property.nil?
|
83
|
-
serializedArray = []
|
84
|
-
serialized_property.each do |element|
|
85
|
-
unless element.nil?
|
86
|
-
element = VaultSecretGroup.serialize_object(element)
|
87
|
-
end
|
88
|
-
serializedArray.push(element)
|
89
|
-
end
|
90
|
-
serialized_property = serializedArray
|
91
|
-
end
|
92
|
-
output_object['secrets'] = serialized_property unless serialized_property.nil?
|
93
|
-
|
94
|
-
output_object
|
95
|
-
end
|
96
|
-
|
97
|
-
#
|
98
|
-
# Deserializes given Ruby Hash into Model object.
|
99
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
100
|
-
# @return [VirtualMachineScaleSetOSProfile] Deserialized object.
|
101
|
-
#
|
102
|
-
def self.deserialize_object(object)
|
103
|
-
return if object.nil?
|
104
|
-
output_object = VirtualMachineScaleSetOSProfile.new
|
105
|
-
|
106
|
-
deserialized_property = object['computerNamePrefix']
|
107
|
-
output_object.computer_name_prefix = deserialized_property
|
108
|
-
|
109
|
-
deserialized_property = object['adminUsername']
|
110
|
-
output_object.admin_username = deserialized_property
|
111
|
-
|
112
|
-
deserialized_property = object['adminPassword']
|
113
|
-
output_object.admin_password = deserialized_property
|
114
|
-
|
115
|
-
deserialized_property = object['customData']
|
116
|
-
output_object.custom_data = deserialized_property
|
117
|
-
|
118
|
-
deserialized_property = object['windowsConfiguration']
|
119
|
-
unless deserialized_property.nil?
|
120
|
-
deserialized_property = WindowsConfiguration.deserialize_object(deserialized_property)
|
121
|
-
end
|
122
|
-
output_object.windows_configuration = deserialized_property
|
123
|
-
|
124
|
-
deserialized_property = object['linuxConfiguration']
|
125
|
-
unless deserialized_property.nil?
|
126
|
-
deserialized_property = LinuxConfiguration.deserialize_object(deserialized_property)
|
127
|
-
end
|
128
|
-
output_object.linux_configuration = deserialized_property
|
129
|
-
|
130
|
-
deserialized_property = object['secrets']
|
131
|
-
unless deserialized_property.nil?
|
132
|
-
deserialized_array = []
|
133
|
-
deserialized_property.each do |element1|
|
134
|
-
unless element1.nil?
|
135
|
-
element1 = VaultSecretGroup.deserialize_object(element1)
|
136
|
-
end
|
137
|
-
deserialized_array.push(element1)
|
138
|
-
end
|
139
|
-
deserialized_property = deserialized_array
|
140
|
-
end
|
141
|
-
output_object.secrets = deserialized_property
|
142
|
-
|
143
|
-
output_object
|
144
|
-
end
|
145
|
-
end
|
146
|
-
end
|
147
|
-
end
|
@@ -1,99 +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.
|
10
|
-
#
|
11
|
-
class VirtualMachineScaleSetProperties
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [UpgradePolicy] Gets or sets the upgrade policy.
|
16
|
-
attr_accessor :upgrade_policy
|
17
|
-
|
18
|
-
# @return [VirtualMachineScaleSetVMProfile] Gets or sets the virtual
|
19
|
-
# machine profile.
|
20
|
-
attr_accessor :virtual_machine_profile
|
21
|
-
|
22
|
-
# @return [String] Gets or sets the provisioning state, which only
|
23
|
-
# appears in the response.
|
24
|
-
attr_accessor :provisioning_state
|
25
|
-
|
26
|
-
# @return [Boolean] Specifies whether the Virtual Machine Scale Set
|
27
|
-
# should be overprovisioned.
|
28
|
-
attr_accessor :over_provision
|
29
|
-
|
30
|
-
#
|
31
|
-
# Validate the object. Throws ValidationError if validation fails.
|
32
|
-
#
|
33
|
-
def validate
|
34
|
-
@upgrade_policy.validate unless @upgrade_policy.nil?
|
35
|
-
@virtual_machine_profile.validate unless @virtual_machine_profile.nil?
|
36
|
-
end
|
37
|
-
|
38
|
-
#
|
39
|
-
# Serializes given Model object into Ruby Hash.
|
40
|
-
# @param object Model object to serialize.
|
41
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
42
|
-
#
|
43
|
-
def self.serialize_object(object)
|
44
|
-
object.validate
|
45
|
-
output_object = {}
|
46
|
-
|
47
|
-
serialized_property = object.upgrade_policy
|
48
|
-
unless serialized_property.nil?
|
49
|
-
serialized_property = UpgradePolicy.serialize_object(serialized_property)
|
50
|
-
end
|
51
|
-
output_object['upgradePolicy'] = serialized_property unless serialized_property.nil?
|
52
|
-
|
53
|
-
serialized_property = object.virtual_machine_profile
|
54
|
-
unless serialized_property.nil?
|
55
|
-
serialized_property = VirtualMachineScaleSetVMProfile.serialize_object(serialized_property)
|
56
|
-
end
|
57
|
-
output_object['virtualMachineProfile'] = serialized_property unless serialized_property.nil?
|
58
|
-
|
59
|
-
serialized_property = object.provisioning_state
|
60
|
-
output_object['provisioningState'] = serialized_property unless serialized_property.nil?
|
61
|
-
|
62
|
-
serialized_property = object.over_provision
|
63
|
-
output_object['overProvision'] = serialized_property unless serialized_property.nil?
|
64
|
-
|
65
|
-
output_object
|
66
|
-
end
|
67
|
-
|
68
|
-
#
|
69
|
-
# Deserializes given Ruby Hash into Model object.
|
70
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
71
|
-
# @return [VirtualMachineScaleSetProperties] Deserialized object.
|
72
|
-
#
|
73
|
-
def self.deserialize_object(object)
|
74
|
-
return if object.nil?
|
75
|
-
output_object = VirtualMachineScaleSetProperties.new
|
76
|
-
|
77
|
-
deserialized_property = object['upgradePolicy']
|
78
|
-
unless deserialized_property.nil?
|
79
|
-
deserialized_property = UpgradePolicy.deserialize_object(deserialized_property)
|
80
|
-
end
|
81
|
-
output_object.upgrade_policy = deserialized_property
|
82
|
-
|
83
|
-
deserialized_property = object['virtualMachineProfile']
|
84
|
-
unless deserialized_property.nil?
|
85
|
-
deserialized_property = VirtualMachineScaleSetVMProfile.deserialize_object(deserialized_property)
|
86
|
-
end
|
87
|
-
output_object.virtual_machine_profile = deserialized_property
|
88
|
-
|
89
|
-
deserialized_property = object['provisioningState']
|
90
|
-
output_object.provisioning_state = deserialized_property
|
91
|
-
|
92
|
-
deserialized_property = object['overProvision']
|
93
|
-
output_object.over_provision = deserialized_property
|
94
|
-
|
95
|
-
output_object
|
96
|
-
end
|
97
|
-
end
|
98
|
-
end
|
99
|
-
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
|
-
# Describes an available virtual machine scale set sku.
|
10
|
-
#
|
11
|
-
class VirtualMachineScaleSetSku
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets the type of resource the sku applies to.
|
16
|
-
attr_accessor :resource_type
|
17
|
-
|
18
|
-
# @return [Sku] Gets the Sku.
|
19
|
-
attr_accessor :sku
|
20
|
-
|
21
|
-
# @return [VirtualMachineScaleSetSkuCapacity] Gets available scaling
|
22
|
-
# information.
|
23
|
-
attr_accessor :capacity
|
24
|
-
|
25
|
-
#
|
26
|
-
# Validate the object. Throws ValidationError if validation fails.
|
27
|
-
#
|
28
|
-
def validate
|
29
|
-
@sku.validate unless @sku.nil?
|
30
|
-
@capacity.validate unless @capacity.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.resource_type
|
43
|
-
output_object['resourceType'] = serialized_property unless serialized_property.nil?
|
44
|
-
|
45
|
-
serialized_property = object.sku
|
46
|
-
unless serialized_property.nil?
|
47
|
-
serialized_property = Sku.serialize_object(serialized_property)
|
48
|
-
end
|
49
|
-
output_object['sku'] = serialized_property unless serialized_property.nil?
|
50
|
-
|
51
|
-
serialized_property = object.capacity
|
52
|
-
unless serialized_property.nil?
|
53
|
-
serialized_property = VirtualMachineScaleSetSkuCapacity.serialize_object(serialized_property)
|
54
|
-
end
|
55
|
-
output_object['capacity'] = serialized_property unless serialized_property.nil?
|
56
|
-
|
57
|
-
output_object
|
58
|
-
end
|
59
|
-
|
60
|
-
#
|
61
|
-
# Deserializes given Ruby Hash into Model object.
|
62
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
63
|
-
# @return [VirtualMachineScaleSetSku] Deserialized object.
|
64
|
-
#
|
65
|
-
def self.deserialize_object(object)
|
66
|
-
return if object.nil?
|
67
|
-
output_object = VirtualMachineScaleSetSku.new
|
68
|
-
|
69
|
-
deserialized_property = object['resourceType']
|
70
|
-
output_object.resource_type = deserialized_property
|
71
|
-
|
72
|
-
deserialized_property = object['sku']
|
73
|
-
unless deserialized_property.nil?
|
74
|
-
deserialized_property = Sku.deserialize_object(deserialized_property)
|
75
|
-
end
|
76
|
-
output_object.sku = deserialized_property
|
77
|
-
|
78
|
-
deserialized_property = object['capacity']
|
79
|
-
unless deserialized_property.nil?
|
80
|
-
deserialized_property = VirtualMachineScaleSetSkuCapacity.deserialize_object(deserialized_property)
|
81
|
-
end
|
82
|
-
output_object.capacity = deserialized_property
|
83
|
-
|
84
|
-
output_object
|
85
|
-
end
|
86
|
-
end
|
87
|
-
end
|
88
|
-
end
|