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,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 reference to Key Vault Secret
|
10
|
-
#
|
11
|
-
class KeyVaultSecretReference
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets or sets the URL referencing a secret in a Key
|
16
|
-
# Vault.
|
17
|
-
attr_accessor :secret_url
|
18
|
-
|
19
|
-
# @return [SubResource] Gets or sets the Relative URL of the Key Vault
|
20
|
-
# containing the secret.
|
21
|
-
attr_accessor :source_vault
|
22
|
-
|
23
|
-
#
|
24
|
-
# Validate the object. Throws ValidationError if validation fails.
|
25
|
-
#
|
26
|
-
def validate
|
27
|
-
fail MsRest::ValidationError, 'property secret_url is nil' if @secret_url.nil?
|
28
|
-
fail MsRest::ValidationError, 'property source_vault is nil' if @source_vault.nil?
|
29
|
-
@source_vault.validate unless @source_vault.nil?
|
30
|
-
end
|
31
|
-
|
32
|
-
#
|
33
|
-
# Serializes given Model object into Ruby Hash.
|
34
|
-
# @param object Model object to serialize.
|
35
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
36
|
-
#
|
37
|
-
def self.serialize_object(object)
|
38
|
-
object.validate
|
39
|
-
output_object = {}
|
40
|
-
|
41
|
-
serialized_property = object.secret_url
|
42
|
-
output_object['secretUrl'] = serialized_property unless serialized_property.nil?
|
43
|
-
|
44
|
-
serialized_property = object.source_vault
|
45
|
-
unless serialized_property.nil?
|
46
|
-
serialized_property = MsRestAzure::SubResource.serialize_object(serialized_property)
|
47
|
-
end
|
48
|
-
output_object['sourceVault'] = serialized_property unless serialized_property.nil?
|
49
|
-
|
50
|
-
output_object
|
51
|
-
end
|
52
|
-
|
53
|
-
#
|
54
|
-
# Deserializes given Ruby Hash into Model object.
|
55
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
56
|
-
# @return [KeyVaultSecretReference] Deserialized object.
|
57
|
-
#
|
58
|
-
def self.deserialize_object(object)
|
59
|
-
return if object.nil?
|
60
|
-
output_object = KeyVaultSecretReference.new
|
61
|
-
|
62
|
-
deserialized_property = object['secretUrl']
|
63
|
-
output_object.secret_url = deserialized_property
|
64
|
-
|
65
|
-
deserialized_property = object['sourceVault']
|
66
|
-
unless deserialized_property.nil?
|
67
|
-
deserialized_property = MsRestAzure::SubResource.deserialize_object(deserialized_property)
|
68
|
-
end
|
69
|
-
output_object.source_vault = deserialized_property
|
70
|
-
|
71
|
-
output_object
|
72
|
-
end
|
73
|
-
end
|
74
|
-
end
|
75
|
-
end
|
@@ -1,73 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::Compute
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Describes Windows Configuration of the OS Profile.
|
10
|
-
#
|
11
|
-
class LinuxConfiguration
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [Boolean] Gets or sets whether Authentication using user name
|
16
|
-
# and password is allowed or not
|
17
|
-
attr_accessor :disable_password_authentication
|
18
|
-
|
19
|
-
# @return [SshConfiguration] Gets or sets the SSH configuration for
|
20
|
-
# linux VMs
|
21
|
-
attr_accessor :ssh
|
22
|
-
|
23
|
-
#
|
24
|
-
# Validate the object. Throws ValidationError if validation fails.
|
25
|
-
#
|
26
|
-
def validate
|
27
|
-
@ssh.validate unless @ssh.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.disable_password_authentication
|
40
|
-
output_object['disablePasswordAuthentication'] = serialized_property unless serialized_property.nil?
|
41
|
-
|
42
|
-
serialized_property = object.ssh
|
43
|
-
unless serialized_property.nil?
|
44
|
-
serialized_property = SshConfiguration.serialize_object(serialized_property)
|
45
|
-
end
|
46
|
-
output_object['ssh'] = serialized_property unless serialized_property.nil?
|
47
|
-
|
48
|
-
output_object
|
49
|
-
end
|
50
|
-
|
51
|
-
#
|
52
|
-
# Deserializes given Ruby Hash into Model object.
|
53
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
54
|
-
# @return [LinuxConfiguration] Deserialized object.
|
55
|
-
#
|
56
|
-
def self.deserialize_object(object)
|
57
|
-
return if object.nil?
|
58
|
-
output_object = LinuxConfiguration.new
|
59
|
-
|
60
|
-
deserialized_property = object['disablePasswordAuthentication']
|
61
|
-
output_object.disable_password_authentication = deserialized_property
|
62
|
-
|
63
|
-
deserialized_property = object['ssh']
|
64
|
-
unless deserialized_property.nil?
|
65
|
-
deserialized_property = SshConfiguration.deserialize_object(deserialized_property)
|
66
|
-
end
|
67
|
-
output_object.ssh = deserialized_property
|
68
|
-
|
69
|
-
output_object
|
70
|
-
end
|
71
|
-
end
|
72
|
-
end
|
73
|
-
end
|
@@ -1,76 +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 Usages operation response.
|
10
|
-
#
|
11
|
-
class ListUsagesResult
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [Array<Usage>] Gets or sets the list Compute Resource Usages.
|
16
|
-
attr_accessor :value
|
17
|
-
|
18
|
-
#
|
19
|
-
# Validate the object. Throws ValidationError if validation fails.
|
20
|
-
#
|
21
|
-
def validate
|
22
|
-
@value.each{ |e| e.validate if e.respond_to?(:validate) } unless @value.nil?
|
23
|
-
end
|
24
|
-
|
25
|
-
#
|
26
|
-
# Serializes given Model object into Ruby Hash.
|
27
|
-
# @param object Model object to serialize.
|
28
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
29
|
-
#
|
30
|
-
def self.serialize_object(object)
|
31
|
-
object.validate
|
32
|
-
output_object = {}
|
33
|
-
|
34
|
-
serialized_property = object.value
|
35
|
-
unless serialized_property.nil?
|
36
|
-
serializedArray = []
|
37
|
-
serialized_property.each do |element|
|
38
|
-
unless element.nil?
|
39
|
-
element = Usage.serialize_object(element)
|
40
|
-
end
|
41
|
-
serializedArray.push(element)
|
42
|
-
end
|
43
|
-
serialized_property = serializedArray
|
44
|
-
end
|
45
|
-
output_object['value'] = serialized_property unless serialized_property.nil?
|
46
|
-
|
47
|
-
output_object
|
48
|
-
end
|
49
|
-
|
50
|
-
#
|
51
|
-
# Deserializes given Ruby Hash into Model object.
|
52
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
53
|
-
# @return [ListUsagesResult] Deserialized object.
|
54
|
-
#
|
55
|
-
def self.deserialize_object(object)
|
56
|
-
return if object.nil?
|
57
|
-
output_object = ListUsagesResult.new
|
58
|
-
|
59
|
-
deserialized_property = object['value']
|
60
|
-
unless deserialized_property.nil?
|
61
|
-
deserialized_array = []
|
62
|
-
deserialized_property.each do |element1|
|
63
|
-
unless element1.nil?
|
64
|
-
element1 = Usage.deserialize_object(element1)
|
65
|
-
end
|
66
|
-
deserialized_array.push(element1)
|
67
|
-
end
|
68
|
-
deserialized_property = deserialized_array
|
69
|
-
end
|
70
|
-
output_object.value = deserialized_property
|
71
|
-
|
72
|
-
output_object
|
73
|
-
end
|
74
|
-
end
|
75
|
-
end
|
76
|
-
end
|
@@ -1,68 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::Compute
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Describes a network interface reference.
|
10
|
-
#
|
11
|
-
class NetworkInterfaceReference < MsRestAzure::SubResource
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [NetworkInterfaceReferenceProperties]
|
16
|
-
attr_accessor :properties
|
17
|
-
|
18
|
-
#
|
19
|
-
# Validate the object. Throws ValidationError if validation fails.
|
20
|
-
#
|
21
|
-
def validate
|
22
|
-
@properties.validate unless @properties.nil?
|
23
|
-
end
|
24
|
-
|
25
|
-
#
|
26
|
-
# Serializes given Model object into Ruby Hash.
|
27
|
-
# @param object Model object to serialize.
|
28
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
29
|
-
#
|
30
|
-
def self.serialize_object(object)
|
31
|
-
object.validate
|
32
|
-
output_object = {}
|
33
|
-
|
34
|
-
serialized_property = object.id
|
35
|
-
output_object['id'] = serialized_property unless serialized_property.nil?
|
36
|
-
|
37
|
-
serialized_property = object.properties
|
38
|
-
unless serialized_property.nil?
|
39
|
-
serialized_property = NetworkInterfaceReferenceProperties.serialize_object(serialized_property)
|
40
|
-
end
|
41
|
-
output_object['properties'] = serialized_property unless serialized_property.nil?
|
42
|
-
|
43
|
-
output_object
|
44
|
-
end
|
45
|
-
|
46
|
-
#
|
47
|
-
# Deserializes given Ruby Hash into Model object.
|
48
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
49
|
-
# @return [NetworkInterfaceReference] Deserialized object.
|
50
|
-
#
|
51
|
-
def self.deserialize_object(object)
|
52
|
-
return if object.nil?
|
53
|
-
output_object = NetworkInterfaceReference.new
|
54
|
-
|
55
|
-
deserialized_property = object['id']
|
56
|
-
output_object.id = deserialized_property
|
57
|
-
|
58
|
-
deserialized_property = object['properties']
|
59
|
-
unless deserialized_property.nil?
|
60
|
-
deserialized_property = NetworkInterfaceReferenceProperties.deserialize_object(deserialized_property)
|
61
|
-
end
|
62
|
-
output_object.properties = deserialized_property
|
63
|
-
|
64
|
-
output_object
|
65
|
-
end
|
66
|
-
end
|
67
|
-
end
|
68
|
-
end
|
@@ -1,57 +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 network interface reference properties.
|
10
|
-
#
|
11
|
-
class NetworkInterfaceReferenceProperties
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [Boolean] Gets or sets whether this is a primary NIC on a
|
16
|
-
# virtual machine
|
17
|
-
attr_accessor :primary
|
18
|
-
|
19
|
-
#
|
20
|
-
# Validate the object. Throws ValidationError if validation fails.
|
21
|
-
#
|
22
|
-
def validate
|
23
|
-
# Nothing to validate
|
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.primary
|
36
|
-
output_object['primary'] = 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 [NetworkInterfaceReferenceProperties] Deserialized object.
|
45
|
-
#
|
46
|
-
def self.deserialize_object(object)
|
47
|
-
return if object.nil?
|
48
|
-
output_object = NetworkInterfaceReferenceProperties.new
|
49
|
-
|
50
|
-
deserialized_property = object['primary']
|
51
|
-
output_object.primary = deserialized_property
|
52
|
-
|
53
|
-
output_object
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|
@@ -1,77 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::Compute
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Describes a network profile.
|
10
|
-
#
|
11
|
-
class NetworkProfile
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [Array<NetworkInterfaceReference>] Gets or sets the network
|
16
|
-
# interfaces.
|
17
|
-
attr_accessor :network_interfaces
|
18
|
-
|
19
|
-
#
|
20
|
-
# Validate the object. Throws ValidationError if validation fails.
|
21
|
-
#
|
22
|
-
def validate
|
23
|
-
@network_interfaces.each{ |e| e.validate if e.respond_to?(:validate) } unless @network_interfaces.nil?
|
24
|
-
end
|
25
|
-
|
26
|
-
#
|
27
|
-
# Serializes given Model object into Ruby Hash.
|
28
|
-
# @param object Model object to serialize.
|
29
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
30
|
-
#
|
31
|
-
def self.serialize_object(object)
|
32
|
-
object.validate
|
33
|
-
output_object = {}
|
34
|
-
|
35
|
-
serialized_property = object.network_interfaces
|
36
|
-
unless serialized_property.nil?
|
37
|
-
serializedArray = []
|
38
|
-
serialized_property.each do |element|
|
39
|
-
unless element.nil?
|
40
|
-
element = NetworkInterfaceReference.serialize_object(element)
|
41
|
-
end
|
42
|
-
serializedArray.push(element)
|
43
|
-
end
|
44
|
-
serialized_property = serializedArray
|
45
|
-
end
|
46
|
-
output_object['networkInterfaces'] = serialized_property unless serialized_property.nil?
|
47
|
-
|
48
|
-
output_object
|
49
|
-
end
|
50
|
-
|
51
|
-
#
|
52
|
-
# Deserializes given Ruby Hash into Model object.
|
53
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
54
|
-
# @return [NetworkProfile] Deserialized object.
|
55
|
-
#
|
56
|
-
def self.deserialize_object(object)
|
57
|
-
return if object.nil?
|
58
|
-
output_object = NetworkProfile.new
|
59
|
-
|
60
|
-
deserialized_property = object['networkInterfaces']
|
61
|
-
unless deserialized_property.nil?
|
62
|
-
deserialized_array = []
|
63
|
-
deserialized_property.each do |element1|
|
64
|
-
unless element1.nil?
|
65
|
-
element1 = NetworkInterfaceReference.deserialize_object(element1)
|
66
|
-
end
|
67
|
-
deserialized_array.push(element1)
|
68
|
-
end
|
69
|
-
deserialized_property = deserialized_array
|
70
|
-
end
|
71
|
-
output_object.network_interfaces = deserialized_property
|
72
|
-
|
73
|
-
output_object
|
74
|
-
end
|
75
|
-
end
|
76
|
-
end
|
77
|
-
end
|
@@ -1,163 +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 Operating System disk.
|
10
|
-
#
|
11
|
-
class OSDisk
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [OperatingSystemTypes] Gets or sets the Operating System type.
|
16
|
-
# Possible values include: 'Windows', 'Linux'
|
17
|
-
attr_accessor :os_type
|
18
|
-
|
19
|
-
# @return [DiskEncryptionSettings] Gets or sets the disk encryption
|
20
|
-
# settings.
|
21
|
-
attr_accessor :encryption_settings
|
22
|
-
|
23
|
-
# @return [String] Gets or sets the disk name.
|
24
|
-
attr_accessor :name
|
25
|
-
|
26
|
-
# @return [VirtualHardDisk] Gets or sets the Virtual Hard Disk.
|
27
|
-
attr_accessor :vhd
|
28
|
-
|
29
|
-
# @return [VirtualHardDisk] Gets or sets the Source User Image
|
30
|
-
# VirtualHardDisk. This VirtualHardDisk will be copied before using it
|
31
|
-
# to attach to the Virtual Machine.If SourceImage is provided, the
|
32
|
-
# destination VirtualHardDisk should not exist.
|
33
|
-
attr_accessor :image
|
34
|
-
|
35
|
-
# @return [CachingTypes] Gets or sets the caching type. Possible values
|
36
|
-
# include: 'None', 'ReadOnly', 'ReadWrite'
|
37
|
-
attr_accessor :caching
|
38
|
-
|
39
|
-
# @return [DiskCreateOptionTypes] Gets or sets the create option.
|
40
|
-
# Possible values include: 'fromImage', 'empty', 'attach'
|
41
|
-
attr_accessor :create_option
|
42
|
-
|
43
|
-
# @return [Integer] Gets or sets the initial disk size in GB for blank
|
44
|
-
# data disks, and the new desired size for existing OS and Data disks.
|
45
|
-
attr_accessor :disk_size_gb
|
46
|
-
|
47
|
-
#
|
48
|
-
# Validate the object. Throws ValidationError if validation fails.
|
49
|
-
#
|
50
|
-
def validate
|
51
|
-
fail MsRest::ValidationError, 'property name is nil' if @name.nil?
|
52
|
-
fail MsRest::ValidationError, 'property vhd is nil' if @vhd.nil?
|
53
|
-
fail MsRest::ValidationError, 'property create_option is nil' if @create_option.nil?
|
54
|
-
@encryption_settings.validate unless @encryption_settings.nil?
|
55
|
-
@vhd.validate unless @vhd.nil?
|
56
|
-
@image.validate unless @image.nil?
|
57
|
-
end
|
58
|
-
|
59
|
-
#
|
60
|
-
# Serializes given Model object into Ruby Hash.
|
61
|
-
# @param object Model object to serialize.
|
62
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
63
|
-
#
|
64
|
-
def self.serialize_object(object)
|
65
|
-
object.validate
|
66
|
-
output_object = {}
|
67
|
-
|
68
|
-
serialized_property = object.name
|
69
|
-
output_object['name'] = serialized_property unless serialized_property.nil?
|
70
|
-
|
71
|
-
serialized_property = object.vhd
|
72
|
-
unless serialized_property.nil?
|
73
|
-
serialized_property = VirtualHardDisk.serialize_object(serialized_property)
|
74
|
-
end
|
75
|
-
output_object['vhd'] = serialized_property unless serialized_property.nil?
|
76
|
-
|
77
|
-
serialized_property = object.create_option
|
78
|
-
output_object['createOption'] = serialized_property unless serialized_property.nil?
|
79
|
-
|
80
|
-
serialized_property = object.os_type
|
81
|
-
output_object['osType'] = serialized_property unless serialized_property.nil?
|
82
|
-
|
83
|
-
serialized_property = object.encryption_settings
|
84
|
-
unless serialized_property.nil?
|
85
|
-
serialized_property = DiskEncryptionSettings.serialize_object(serialized_property)
|
86
|
-
end
|
87
|
-
output_object['encryptionSettings'] = serialized_property unless serialized_property.nil?
|
88
|
-
|
89
|
-
serialized_property = object.image
|
90
|
-
unless serialized_property.nil?
|
91
|
-
serialized_property = VirtualHardDisk.serialize_object(serialized_property)
|
92
|
-
end
|
93
|
-
output_object['image'] = serialized_property unless serialized_property.nil?
|
94
|
-
|
95
|
-
serialized_property = object.caching
|
96
|
-
output_object['caching'] = serialized_property unless serialized_property.nil?
|
97
|
-
|
98
|
-
serialized_property = object.disk_size_gb
|
99
|
-
output_object['diskSizeGB'] = serialized_property unless serialized_property.nil?
|
100
|
-
|
101
|
-
output_object
|
102
|
-
end
|
103
|
-
|
104
|
-
#
|
105
|
-
# Deserializes given Ruby Hash into Model object.
|
106
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
107
|
-
# @return [OSDisk] Deserialized object.
|
108
|
-
#
|
109
|
-
def self.deserialize_object(object)
|
110
|
-
return if object.nil?
|
111
|
-
output_object = OSDisk.new
|
112
|
-
|
113
|
-
deserialized_property = object['name']
|
114
|
-
output_object.name = deserialized_property
|
115
|
-
|
116
|
-
deserialized_property = object['vhd']
|
117
|
-
unless deserialized_property.nil?
|
118
|
-
deserialized_property = VirtualHardDisk.deserialize_object(deserialized_property)
|
119
|
-
end
|
120
|
-
output_object.vhd = deserialized_property
|
121
|
-
|
122
|
-
deserialized_property = object['createOption']
|
123
|
-
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
124
|
-
enum_is_valid = DiskCreateOptionTypes.constants.any? { |e| DiskCreateOptionTypes.const_get(e).to_s.downcase == deserialized_property.downcase }
|
125
|
-
warn 'Enum DiskCreateOptionTypes does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
126
|
-
end
|
127
|
-
output_object.create_option = deserialized_property
|
128
|
-
|
129
|
-
deserialized_property = object['osType']
|
130
|
-
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
131
|
-
enum_is_valid = OperatingSystemTypes.constants.any? { |e| OperatingSystemTypes.const_get(e).to_s.downcase == deserialized_property.downcase }
|
132
|
-
warn 'Enum OperatingSystemTypes does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
133
|
-
end
|
134
|
-
output_object.os_type = deserialized_property
|
135
|
-
|
136
|
-
deserialized_property = object['encryptionSettings']
|
137
|
-
unless deserialized_property.nil?
|
138
|
-
deserialized_property = DiskEncryptionSettings.deserialize_object(deserialized_property)
|
139
|
-
end
|
140
|
-
output_object.encryption_settings = deserialized_property
|
141
|
-
|
142
|
-
deserialized_property = object['image']
|
143
|
-
unless deserialized_property.nil?
|
144
|
-
deserialized_property = VirtualHardDisk.deserialize_object(deserialized_property)
|
145
|
-
end
|
146
|
-
output_object.image = deserialized_property
|
147
|
-
|
148
|
-
deserialized_property = object['caching']
|
149
|
-
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
150
|
-
enum_is_valid = CachingTypes.constants.any? { |e| CachingTypes.const_get(e).to_s.downcase == deserialized_property.downcase }
|
151
|
-
warn 'Enum CachingTypes does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
152
|
-
end
|
153
|
-
output_object.caching = deserialized_property
|
154
|
-
|
155
|
-
deserialized_property = object['diskSizeGB']
|
156
|
-
deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty?
|
157
|
-
output_object.disk_size_gb = deserialized_property
|
158
|
-
|
159
|
-
output_object
|
160
|
-
end
|
161
|
-
end
|
162
|
-
end
|
163
|
-
end
|