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,90 +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 Encryption Settings for a Disk
|
10
|
-
#
|
11
|
-
class DiskEncryptionSettings
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [KeyVaultSecretReference] Gets or sets the disk encryption key
|
16
|
-
# which is a KeyVault Secret.
|
17
|
-
attr_accessor :disk_encryption_key
|
18
|
-
|
19
|
-
# @return [KeyVaultKeyReference] Gets or sets the key encryption key
|
20
|
-
# which is KeyVault Key.
|
21
|
-
attr_accessor :key_encryption_key
|
22
|
-
|
23
|
-
# @return [Boolean] Gets or sets whether disk encryption should be
|
24
|
-
# enabled on the Virtual Machine.
|
25
|
-
attr_accessor :enabled
|
26
|
-
|
27
|
-
#
|
28
|
-
# Validate the object. Throws ValidationError if validation fails.
|
29
|
-
#
|
30
|
-
def validate
|
31
|
-
@disk_encryption_key.validate unless @disk_encryption_key.nil?
|
32
|
-
@key_encryption_key.validate unless @key_encryption_key.nil?
|
33
|
-
end
|
34
|
-
|
35
|
-
#
|
36
|
-
# Serializes given Model object into Ruby Hash.
|
37
|
-
# @param object Model object to serialize.
|
38
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
39
|
-
#
|
40
|
-
def self.serialize_object(object)
|
41
|
-
object.validate
|
42
|
-
output_object = {}
|
43
|
-
|
44
|
-
serialized_property = object.disk_encryption_key
|
45
|
-
unless serialized_property.nil?
|
46
|
-
serialized_property = KeyVaultSecretReference.serialize_object(serialized_property)
|
47
|
-
end
|
48
|
-
output_object['diskEncryptionKey'] = serialized_property unless serialized_property.nil?
|
49
|
-
|
50
|
-
serialized_property = object.key_encryption_key
|
51
|
-
unless serialized_property.nil?
|
52
|
-
serialized_property = KeyVaultKeyReference.serialize_object(serialized_property)
|
53
|
-
end
|
54
|
-
output_object['keyEncryptionKey'] = serialized_property unless serialized_property.nil?
|
55
|
-
|
56
|
-
serialized_property = object.enabled
|
57
|
-
output_object['enabled'] = serialized_property unless serialized_property.nil?
|
58
|
-
|
59
|
-
output_object
|
60
|
-
end
|
61
|
-
|
62
|
-
#
|
63
|
-
# Deserializes given Ruby Hash into Model object.
|
64
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
65
|
-
# @return [DiskEncryptionSettings] Deserialized object.
|
66
|
-
#
|
67
|
-
def self.deserialize_object(object)
|
68
|
-
return if object.nil?
|
69
|
-
output_object = DiskEncryptionSettings.new
|
70
|
-
|
71
|
-
deserialized_property = object['diskEncryptionKey']
|
72
|
-
unless deserialized_property.nil?
|
73
|
-
deserialized_property = KeyVaultSecretReference.deserialize_object(deserialized_property)
|
74
|
-
end
|
75
|
-
output_object.disk_encryption_key = deserialized_property
|
76
|
-
|
77
|
-
deserialized_property = object['keyEncryptionKey']
|
78
|
-
unless deserialized_property.nil?
|
79
|
-
deserialized_property = KeyVaultKeyReference.deserialize_object(deserialized_property)
|
80
|
-
end
|
81
|
-
output_object.key_encryption_key = deserialized_property
|
82
|
-
|
83
|
-
deserialized_property = object['enabled']
|
84
|
-
output_object.enabled = deserialized_property
|
85
|
-
|
86
|
-
output_object
|
87
|
-
end
|
88
|
-
end
|
89
|
-
end
|
90
|
-
end
|
@@ -1,86 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::Compute
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# The instance view of the disk.
|
10
|
-
#
|
11
|
-
class DiskInstanceView
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets or sets the disk name.
|
16
|
-
attr_accessor :name
|
17
|
-
|
18
|
-
# @return [Array<InstanceViewStatus>] Gets or sets the resource status
|
19
|
-
# information.
|
20
|
-
attr_accessor :statuses
|
21
|
-
|
22
|
-
#
|
23
|
-
# Validate the object. Throws ValidationError if validation fails.
|
24
|
-
#
|
25
|
-
def validate
|
26
|
-
@statuses.each{ |e| e.validate if e.respond_to?(:validate) } unless @statuses.nil?
|
27
|
-
end
|
28
|
-
|
29
|
-
#
|
30
|
-
# Serializes given Model object into Ruby Hash.
|
31
|
-
# @param object Model object to serialize.
|
32
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
33
|
-
#
|
34
|
-
def self.serialize_object(object)
|
35
|
-
object.validate
|
36
|
-
output_object = {}
|
37
|
-
|
38
|
-
serialized_property = object.name
|
39
|
-
output_object['name'] = serialized_property unless serialized_property.nil?
|
40
|
-
|
41
|
-
serialized_property = object.statuses
|
42
|
-
unless serialized_property.nil?
|
43
|
-
serializedArray = []
|
44
|
-
serialized_property.each do |element|
|
45
|
-
unless element.nil?
|
46
|
-
element = InstanceViewStatus.serialize_object(element)
|
47
|
-
end
|
48
|
-
serializedArray.push(element)
|
49
|
-
end
|
50
|
-
serialized_property = serializedArray
|
51
|
-
end
|
52
|
-
output_object['statuses'] = serialized_property unless serialized_property.nil?
|
53
|
-
|
54
|
-
output_object
|
55
|
-
end
|
56
|
-
|
57
|
-
#
|
58
|
-
# Deserializes given Ruby Hash into Model object.
|
59
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
60
|
-
# @return [DiskInstanceView] Deserialized object.
|
61
|
-
#
|
62
|
-
def self.deserialize_object(object)
|
63
|
-
return if object.nil?
|
64
|
-
output_object = DiskInstanceView.new
|
65
|
-
|
66
|
-
deserialized_property = object['name']
|
67
|
-
output_object.name = deserialized_property
|
68
|
-
|
69
|
-
deserialized_property = object['statuses']
|
70
|
-
unless deserialized_property.nil?
|
71
|
-
deserialized_array = []
|
72
|
-
deserialized_property.each do |element1|
|
73
|
-
unless element1.nil?
|
74
|
-
element1 = InstanceViewStatus.deserialize_object(element1)
|
75
|
-
end
|
76
|
-
deserialized_array.push(element1)
|
77
|
-
end
|
78
|
-
deserialized_property = deserialized_array
|
79
|
-
end
|
80
|
-
output_object.statuses = deserialized_property
|
81
|
-
|
82
|
-
output_object
|
83
|
-
end
|
84
|
-
end
|
85
|
-
end
|
86
|
-
end
|
@@ -1,85 +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 image reference.
|
10
|
-
#
|
11
|
-
class ImageReference
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets or sets the image publisher.
|
16
|
-
attr_accessor :publisher
|
17
|
-
|
18
|
-
# @return [String] Gets or sets the image offer.
|
19
|
-
attr_accessor :offer
|
20
|
-
|
21
|
-
# @return [String] Gets or sets the image sku.
|
22
|
-
attr_accessor :sku
|
23
|
-
|
24
|
-
# @return [String] Gets or sets the image version. The allowed formats
|
25
|
-
# are Major.Minor.Build or 'latest'. Major, Minor and Build being
|
26
|
-
# decimal numbers. Specify 'latest' to use the latest version of image.
|
27
|
-
attr_accessor :version
|
28
|
-
|
29
|
-
#
|
30
|
-
# Validate the object. Throws ValidationError if validation fails.
|
31
|
-
#
|
32
|
-
def validate
|
33
|
-
# Nothing to validate
|
34
|
-
end
|
35
|
-
|
36
|
-
#
|
37
|
-
# Serializes given Model object into Ruby Hash.
|
38
|
-
# @param object Model object to serialize.
|
39
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
40
|
-
#
|
41
|
-
def self.serialize_object(object)
|
42
|
-
object.validate
|
43
|
-
output_object = {}
|
44
|
-
|
45
|
-
serialized_property = object.publisher
|
46
|
-
output_object['publisher'] = serialized_property unless serialized_property.nil?
|
47
|
-
|
48
|
-
serialized_property = object.offer
|
49
|
-
output_object['offer'] = serialized_property unless serialized_property.nil?
|
50
|
-
|
51
|
-
serialized_property = object.sku
|
52
|
-
output_object['sku'] = serialized_property unless serialized_property.nil?
|
53
|
-
|
54
|
-
serialized_property = object.version
|
55
|
-
output_object['version'] = 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 [ImageReference] Deserialized object.
|
64
|
-
#
|
65
|
-
def self.deserialize_object(object)
|
66
|
-
return if object.nil?
|
67
|
-
output_object = ImageReference.new
|
68
|
-
|
69
|
-
deserialized_property = object['publisher']
|
70
|
-
output_object.publisher = deserialized_property
|
71
|
-
|
72
|
-
deserialized_property = object['offer']
|
73
|
-
output_object.offer = deserialized_property
|
74
|
-
|
75
|
-
deserialized_property = object['sku']
|
76
|
-
output_object.sku = deserialized_property
|
77
|
-
|
78
|
-
deserialized_property = object['version']
|
79
|
-
output_object.version = deserialized_property
|
80
|
-
|
81
|
-
output_object
|
82
|
-
end
|
83
|
-
end
|
84
|
-
end
|
85
|
-
end
|
@@ -1,66 +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
|
-
# Inner error details.
|
10
|
-
#
|
11
|
-
class InnerError
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets or sets the exception type.
|
16
|
-
attr_accessor :exceptiontype
|
17
|
-
|
18
|
-
# @return [String] Gets or sets the internal error message or exception
|
19
|
-
# dump.
|
20
|
-
attr_accessor :errordetail
|
21
|
-
|
22
|
-
#
|
23
|
-
# Validate the object. Throws ValidationError if validation fails.
|
24
|
-
#
|
25
|
-
def validate
|
26
|
-
# Nothing to validate
|
27
|
-
end
|
28
|
-
|
29
|
-
#
|
30
|
-
# Serializes given Model object into Ruby Hash.
|
31
|
-
# @param object Model object to serialize.
|
32
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
33
|
-
#
|
34
|
-
def self.serialize_object(object)
|
35
|
-
object.validate
|
36
|
-
output_object = {}
|
37
|
-
|
38
|
-
serialized_property = object.exceptiontype
|
39
|
-
output_object['exceptiontype'] = serialized_property unless serialized_property.nil?
|
40
|
-
|
41
|
-
serialized_property = object.errordetail
|
42
|
-
output_object['errordetail'] = serialized_property unless serialized_property.nil?
|
43
|
-
|
44
|
-
output_object
|
45
|
-
end
|
46
|
-
|
47
|
-
#
|
48
|
-
# Deserializes given Ruby Hash into Model object.
|
49
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
50
|
-
# @return [InnerError] Deserialized object.
|
51
|
-
#
|
52
|
-
def self.deserialize_object(object)
|
53
|
-
return if object.nil?
|
54
|
-
output_object = InnerError.new
|
55
|
-
|
56
|
-
deserialized_property = object['exceptiontype']
|
57
|
-
output_object.exceptiontype = deserialized_property
|
58
|
-
|
59
|
-
deserialized_property = object['errordetail']
|
60
|
-
output_object.errordetail = deserialized_property
|
61
|
-
|
62
|
-
output_object
|
63
|
-
end
|
64
|
-
end
|
65
|
-
end
|
66
|
-
end
|
@@ -1,100 +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
|
-
# Instance view status.
|
10
|
-
#
|
11
|
-
class InstanceViewStatus
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets the status Code.
|
16
|
-
attr_accessor :code
|
17
|
-
|
18
|
-
# @return [StatusLevelTypes] Gets or sets the level Code. Possible
|
19
|
-
# values include: 'Info', 'Warning', 'Error'
|
20
|
-
attr_accessor :level
|
21
|
-
|
22
|
-
# @return [String] Gets or sets the short localizable label for the
|
23
|
-
# status.
|
24
|
-
attr_accessor :display_status
|
25
|
-
|
26
|
-
# @return [String] Gets or sets the detailed Message, including for
|
27
|
-
# alerts and error messages.
|
28
|
-
attr_accessor :message
|
29
|
-
|
30
|
-
# @return [DateTime] Gets or sets the time of the status.
|
31
|
-
attr_accessor :time
|
32
|
-
|
33
|
-
#
|
34
|
-
# Validate the object. Throws ValidationError if validation fails.
|
35
|
-
#
|
36
|
-
def validate
|
37
|
-
end
|
38
|
-
|
39
|
-
#
|
40
|
-
# Serializes given Model object into Ruby Hash.
|
41
|
-
# @param object Model object to serialize.
|
42
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
43
|
-
#
|
44
|
-
def self.serialize_object(object)
|
45
|
-
object.validate
|
46
|
-
output_object = {}
|
47
|
-
|
48
|
-
serialized_property = object.code
|
49
|
-
output_object['code'] = serialized_property unless serialized_property.nil?
|
50
|
-
|
51
|
-
serialized_property = object.level
|
52
|
-
output_object['level'] = serialized_property unless serialized_property.nil?
|
53
|
-
|
54
|
-
serialized_property = object.display_status
|
55
|
-
output_object['displayStatus'] = serialized_property unless serialized_property.nil?
|
56
|
-
|
57
|
-
serialized_property = object.message
|
58
|
-
output_object['message'] = serialized_property unless serialized_property.nil?
|
59
|
-
|
60
|
-
serialized_property = object.time
|
61
|
-
serialized_property = serialized_property.new_offset(0).strftime('%FT%TZ')
|
62
|
-
output_object['time'] = serialized_property unless serialized_property.nil?
|
63
|
-
|
64
|
-
output_object
|
65
|
-
end
|
66
|
-
|
67
|
-
#
|
68
|
-
# Deserializes given Ruby Hash into Model object.
|
69
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
70
|
-
# @return [InstanceViewStatus] Deserialized object.
|
71
|
-
#
|
72
|
-
def self.deserialize_object(object)
|
73
|
-
return if object.nil?
|
74
|
-
output_object = InstanceViewStatus.new
|
75
|
-
|
76
|
-
deserialized_property = object['code']
|
77
|
-
output_object.code = deserialized_property
|
78
|
-
|
79
|
-
deserialized_property = object['level']
|
80
|
-
if (!deserialized_property.nil? && !deserialized_property.empty?)
|
81
|
-
enum_is_valid = StatusLevelTypes.constants.any? { |e| StatusLevelTypes.const_get(e).to_s.downcase == deserialized_property.downcase }
|
82
|
-
warn 'Enum StatusLevelTypes does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid
|
83
|
-
end
|
84
|
-
output_object.level = deserialized_property
|
85
|
-
|
86
|
-
deserialized_property = object['displayStatus']
|
87
|
-
output_object.display_status = deserialized_property
|
88
|
-
|
89
|
-
deserialized_property = object['message']
|
90
|
-
output_object.message = deserialized_property
|
91
|
-
|
92
|
-
deserialized_property = object['time']
|
93
|
-
deserialized_property = DateTime.parse(deserialized_property) unless deserialized_property.to_s.empty?
|
94
|
-
output_object.time = deserialized_property
|
95
|
-
|
96
|
-
output_object
|
97
|
-
end
|
98
|
-
end
|
99
|
-
end
|
100
|
-
end
|
@@ -1,74 +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 Key
|
10
|
-
#
|
11
|
-
class KeyVaultKeyReference
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets or sets the URL referencing a key in a Key Vault.
|
16
|
-
attr_accessor :key_url
|
17
|
-
|
18
|
-
# @return [SubResource] Gets or sets the Relative URL of the Key Vault
|
19
|
-
# containing the key
|
20
|
-
attr_accessor :source_vault
|
21
|
-
|
22
|
-
#
|
23
|
-
# Validate the object. Throws ValidationError if validation fails.
|
24
|
-
#
|
25
|
-
def validate
|
26
|
-
fail MsRest::ValidationError, 'property key_url is nil' if @key_url.nil?
|
27
|
-
fail MsRest::ValidationError, 'property source_vault is nil' if @source_vault.nil?
|
28
|
-
@source_vault.validate unless @source_vault.nil?
|
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.key_url
|
41
|
-
output_object['keyUrl'] = serialized_property unless serialized_property.nil?
|
42
|
-
|
43
|
-
serialized_property = object.source_vault
|
44
|
-
unless serialized_property.nil?
|
45
|
-
serialized_property = MsRestAzure::SubResource.serialize_object(serialized_property)
|
46
|
-
end
|
47
|
-
output_object['sourceVault'] = 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 [KeyVaultKeyReference] Deserialized object.
|
56
|
-
#
|
57
|
-
def self.deserialize_object(object)
|
58
|
-
return if object.nil?
|
59
|
-
output_object = KeyVaultKeyReference.new
|
60
|
-
|
61
|
-
deserialized_property = object['keyUrl']
|
62
|
-
output_object.key_url = deserialized_property
|
63
|
-
|
64
|
-
deserialized_property = object['sourceVault']
|
65
|
-
unless deserialized_property.nil?
|
66
|
-
deserialized_property = MsRestAzure::SubResource.deserialize_object(deserialized_property)
|
67
|
-
end
|
68
|
-
output_object.source_vault = deserialized_property
|
69
|
-
|
70
|
-
output_object
|
71
|
-
end
|
72
|
-
end
|
73
|
-
end
|
74
|
-
end
|