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,61 +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
|
-
# Contains the os disk image information.
|
10
|
-
#
|
11
|
-
class OSDiskImage
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [OperatingSystemTypes] Gets or sets the operating system of
|
16
|
-
# the osDiskImage. Possible values include: 'Windows', 'Linux'
|
17
|
-
attr_accessor :operating_system
|
18
|
-
|
19
|
-
#
|
20
|
-
# Validate the object. Throws ValidationError if validation fails.
|
21
|
-
#
|
22
|
-
def validate
|
23
|
-
fail MsRest::ValidationError, 'property operating_system is nil' if @operating_system.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.operating_system
|
36
|
-
output_object['operatingSystem'] = serialized_property unless serialized_property.nil?
|
37
|
-
|
38
|
-
output_object
|
39
|
-
end
|
40
|
-
|
41
|
-
#
|
42
|
-
# Deserializes given Ruby Hash into Model object.
|
43
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
44
|
-
# @return [OSDiskImage] Deserialized object.
|
45
|
-
#
|
46
|
-
def self.deserialize_object(object)
|
47
|
-
return if object.nil?
|
48
|
-
output_object = OSDiskImage.new
|
49
|
-
|
50
|
-
deserialized_property = object['operatingSystem']
|
51
|
-
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
52
|
-
enum_is_valid = OperatingSystemTypes.constants.any? { |e| OperatingSystemTypes.const_get(e).to_s.downcase == deserialized_property.downcase }
|
53
|
-
warn 'Enum OperatingSystemTypes does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
54
|
-
end
|
55
|
-
output_object.operating_system = deserialized_property
|
56
|
-
|
57
|
-
output_object
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|
61
|
-
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 an OS profile.
|
10
|
-
#
|
11
|
-
class OSProfile
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets or sets the computer name.
|
16
|
-
attr_accessor :computer_name
|
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
|
58
|
-
output_object['computerName'] = 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 [OSProfile] Deserialized object.
|
101
|
-
#
|
102
|
-
def self.deserialize_object(object)
|
103
|
-
return if object.nil?
|
104
|
-
output_object = OSProfile.new
|
105
|
-
|
106
|
-
deserialized_property = object['computerName']
|
107
|
-
output_object.computer_name = 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,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
|
-
# Plan for the resource.
|
10
|
-
#
|
11
|
-
class Plan
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets or sets the plan ID.
|
16
|
-
attr_accessor :name
|
17
|
-
|
18
|
-
# @return [String] Gets or sets the publisher ID.
|
19
|
-
attr_accessor :publisher
|
20
|
-
|
21
|
-
# @return [String] Gets or sets the offer ID.
|
22
|
-
attr_accessor :product
|
23
|
-
|
24
|
-
# @return [String] Gets or sets the promotion code.
|
25
|
-
attr_accessor :promotion_code
|
26
|
-
|
27
|
-
#
|
28
|
-
# Validate the object. Throws ValidationError if validation fails.
|
29
|
-
#
|
30
|
-
def validate
|
31
|
-
# Nothing to validate
|
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.publisher
|
47
|
-
output_object['publisher'] = serialized_property unless serialized_property.nil?
|
48
|
-
|
49
|
-
serialized_property = object.product
|
50
|
-
output_object['product'] = serialized_property unless serialized_property.nil?
|
51
|
-
|
52
|
-
serialized_property = object.promotion_code
|
53
|
-
output_object['promotionCode'] = 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 [Plan] Deserialized object.
|
62
|
-
#
|
63
|
-
def self.deserialize_object(object)
|
64
|
-
return if object.nil?
|
65
|
-
output_object = Plan.new
|
66
|
-
|
67
|
-
deserialized_property = object['name']
|
68
|
-
output_object.name = deserialized_property
|
69
|
-
|
70
|
-
deserialized_property = object['publisher']
|
71
|
-
output_object.publisher = deserialized_property
|
72
|
-
|
73
|
-
deserialized_property = object['product']
|
74
|
-
output_object.product = deserialized_property
|
75
|
-
|
76
|
-
deserialized_property = object['promotionCode']
|
77
|
-
output_object.promotion_code = deserialized_property
|
78
|
-
|
79
|
-
output_object
|
80
|
-
end
|
81
|
-
end
|
82
|
-
end
|
83
|
-
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
|
-
# Used for establishing the purchase context of any 3rd Party artifact
|
10
|
-
# through MarketPlace.
|
11
|
-
#
|
12
|
-
class PurchasePlan
|
13
|
-
|
14
|
-
include MsRestAzure
|
15
|
-
|
16
|
-
# @return [String] Gets or sets the publisher ID.
|
17
|
-
attr_accessor :publisher
|
18
|
-
|
19
|
-
# @return [String] Gets or sets the plan ID.
|
20
|
-
attr_accessor :name
|
21
|
-
|
22
|
-
# @return [String] Gets or sets the product ID.
|
23
|
-
attr_accessor :product
|
24
|
-
|
25
|
-
#
|
26
|
-
# Validate the object. Throws ValidationError if validation fails.
|
27
|
-
#
|
28
|
-
def validate
|
29
|
-
fail MsRest::ValidationError, 'property publisher is nil' if @publisher.nil?
|
30
|
-
fail MsRest::ValidationError, 'property name is nil' if @name.nil?
|
31
|
-
fail MsRest::ValidationError, 'property product is nil' if @product.nil?
|
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.publisher
|
44
|
-
output_object['publisher'] = serialized_property unless serialized_property.nil?
|
45
|
-
|
46
|
-
serialized_property = object.name
|
47
|
-
output_object['name'] = serialized_property unless serialized_property.nil?
|
48
|
-
|
49
|
-
serialized_property = object.product
|
50
|
-
output_object['product'] = serialized_property unless serialized_property.nil?
|
51
|
-
|
52
|
-
output_object
|
53
|
-
end
|
54
|
-
|
55
|
-
#
|
56
|
-
# Deserializes given Ruby Hash into Model object.
|
57
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
58
|
-
# @return [PurchasePlan] Deserialized object.
|
59
|
-
#
|
60
|
-
def self.deserialize_object(object)
|
61
|
-
return if object.nil?
|
62
|
-
output_object = PurchasePlan.new
|
63
|
-
|
64
|
-
deserialized_property = object['publisher']
|
65
|
-
output_object.publisher = deserialized_property
|
66
|
-
|
67
|
-
deserialized_property = object['name']
|
68
|
-
output_object.name = deserialized_property
|
69
|
-
|
70
|
-
deserialized_property = object['product']
|
71
|
-
output_object.product = deserialized_property
|
72
|
-
|
73
|
-
output_object
|
74
|
-
end
|
75
|
-
end
|
76
|
-
end
|
77
|
-
end
|
@@ -1,75 +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 sku.
|
10
|
-
#
|
11
|
-
class Sku
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets or sets the sku name.
|
16
|
-
attr_accessor :name
|
17
|
-
|
18
|
-
# @return [String] Gets or sets the sku tier.
|
19
|
-
attr_accessor :tier
|
20
|
-
|
21
|
-
# @return [Integer] Gets or sets the sku capacity.
|
22
|
-
attr_accessor :capacity
|
23
|
-
|
24
|
-
#
|
25
|
-
# Validate the object. Throws ValidationError if validation fails.
|
26
|
-
#
|
27
|
-
def validate
|
28
|
-
# Nothing to validate
|
29
|
-
end
|
30
|
-
|
31
|
-
#
|
32
|
-
# Serializes given Model object into Ruby Hash.
|
33
|
-
# @param object Model object to serialize.
|
34
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
35
|
-
#
|
36
|
-
def self.serialize_object(object)
|
37
|
-
object.validate
|
38
|
-
output_object = {}
|
39
|
-
|
40
|
-
serialized_property = object.name
|
41
|
-
output_object['name'] = serialized_property unless serialized_property.nil?
|
42
|
-
|
43
|
-
serialized_property = object.tier
|
44
|
-
output_object['tier'] = serialized_property unless serialized_property.nil?
|
45
|
-
|
46
|
-
serialized_property = object.capacity
|
47
|
-
output_object['capacity'] = serialized_property unless serialized_property.nil?
|
48
|
-
|
49
|
-
output_object
|
50
|
-
end
|
51
|
-
|
52
|
-
#
|
53
|
-
# Deserializes given Ruby Hash into Model object.
|
54
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
55
|
-
# @return [Sku] Deserialized object.
|
56
|
-
#
|
57
|
-
def self.deserialize_object(object)
|
58
|
-
return if object.nil?
|
59
|
-
output_object = Sku.new
|
60
|
-
|
61
|
-
deserialized_property = object['name']
|
62
|
-
output_object.name = deserialized_property
|
63
|
-
|
64
|
-
deserialized_property = object['tier']
|
65
|
-
output_object.tier = deserialized_property
|
66
|
-
|
67
|
-
deserialized_property = object['capacity']
|
68
|
-
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
69
|
-
output_object.capacity = deserialized_property
|
70
|
-
|
71
|
-
output_object
|
72
|
-
end
|
73
|
-
end
|
74
|
-
end
|
75
|
-
end
|