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,102 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::Compute
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Describes the properties of a Virtual Machine Extension Image.
|
10
|
-
#
|
11
|
-
class VirtualMachineExtensionImageProperties
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets or sets the operating system this extension
|
16
|
-
# supports.
|
17
|
-
attr_accessor :operating_system
|
18
|
-
|
19
|
-
# @return [String] Gets or sets the type of role (IaaS or PaaS) this
|
20
|
-
# extension supports.
|
21
|
-
attr_accessor :compute_role
|
22
|
-
|
23
|
-
# @return [String] Gets or sets the schema defined by publisher, where
|
24
|
-
# extension consumers should provide settings in a matching schema.
|
25
|
-
attr_accessor :handler_schema
|
26
|
-
|
27
|
-
# @return [Boolean] Gets or sets whether the extension can be used on
|
28
|
-
# xRP VMScaleSets.By default existing extensions are usable on
|
29
|
-
# scalesets, but there might be cases where a publisher wants to
|
30
|
-
# explicitly indicate the extension is only enabled for CRP VMs but not
|
31
|
-
# VMSS.
|
32
|
-
attr_accessor :vm_scale_set_enabled
|
33
|
-
|
34
|
-
# @return [Boolean] Gets or sets whether the handler can support
|
35
|
-
# multiple extensions.
|
36
|
-
attr_accessor :supports_multiple_extensions
|
37
|
-
|
38
|
-
#
|
39
|
-
# Validate the object. Throws ValidationError if validation fails.
|
40
|
-
#
|
41
|
-
def validate
|
42
|
-
fail MsRest::ValidationError, 'property operating_system is nil' if @operating_system.nil?
|
43
|
-
fail MsRest::ValidationError, 'property compute_role is nil' if @compute_role.nil?
|
44
|
-
fail MsRest::ValidationError, 'property handler_schema is nil' if @handler_schema.nil?
|
45
|
-
end
|
46
|
-
|
47
|
-
#
|
48
|
-
# Serializes given Model object into Ruby Hash.
|
49
|
-
# @param object Model object to serialize.
|
50
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
51
|
-
#
|
52
|
-
def self.serialize_object(object)
|
53
|
-
object.validate
|
54
|
-
output_object = {}
|
55
|
-
|
56
|
-
serialized_property = object.operating_system
|
57
|
-
output_object['operatingSystem'] = serialized_property unless serialized_property.nil?
|
58
|
-
|
59
|
-
serialized_property = object.compute_role
|
60
|
-
output_object['computeRole'] = serialized_property unless serialized_property.nil?
|
61
|
-
|
62
|
-
serialized_property = object.handler_schema
|
63
|
-
output_object['handlerSchema'] = serialized_property unless serialized_property.nil?
|
64
|
-
|
65
|
-
serialized_property = object.vm_scale_set_enabled
|
66
|
-
output_object['vmScaleSetEnabled'] = serialized_property unless serialized_property.nil?
|
67
|
-
|
68
|
-
serialized_property = object.supports_multiple_extensions
|
69
|
-
output_object['supportsMultipleExtensions'] = serialized_property unless serialized_property.nil?
|
70
|
-
|
71
|
-
output_object
|
72
|
-
end
|
73
|
-
|
74
|
-
#
|
75
|
-
# Deserializes given Ruby Hash into Model object.
|
76
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
77
|
-
# @return [VirtualMachineExtensionImageProperties] Deserialized object.
|
78
|
-
#
|
79
|
-
def self.deserialize_object(object)
|
80
|
-
return if object.nil?
|
81
|
-
output_object = VirtualMachineExtensionImageProperties.new
|
82
|
-
|
83
|
-
deserialized_property = object['operatingSystem']
|
84
|
-
output_object.operating_system = deserialized_property
|
85
|
-
|
86
|
-
deserialized_property = object['computeRole']
|
87
|
-
output_object.compute_role = deserialized_property
|
88
|
-
|
89
|
-
deserialized_property = object['handlerSchema']
|
90
|
-
output_object.handler_schema = deserialized_property
|
91
|
-
|
92
|
-
deserialized_property = object['vmScaleSetEnabled']
|
93
|
-
output_object.vm_scale_set_enabled = deserialized_property
|
94
|
-
|
95
|
-
deserialized_property = object['supportsMultipleExtensions']
|
96
|
-
output_object.supports_multiple_extensions = deserialized_property
|
97
|
-
|
98
|
-
output_object
|
99
|
-
end
|
100
|
-
end
|
101
|
-
end
|
102
|
-
end
|
@@ -1,137 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::Compute
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# The instance view of a virtual machine extension.
|
10
|
-
#
|
11
|
-
class VirtualMachineExtensionInstanceView
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets or sets the virtual machine extension name.
|
16
|
-
attr_accessor :name
|
17
|
-
|
18
|
-
# @return [String] Gets or sets the full type of the extension handler
|
19
|
-
# which includes both publisher and type.
|
20
|
-
attr_accessor :type
|
21
|
-
|
22
|
-
# @return [String] Gets or sets the type version of the extension
|
23
|
-
# handler.
|
24
|
-
attr_accessor :type_handler_version
|
25
|
-
|
26
|
-
# @return [Array<InstanceViewStatus>] Gets or sets the resource status
|
27
|
-
# information.
|
28
|
-
attr_accessor :substatuses
|
29
|
-
|
30
|
-
# @return [Array<InstanceViewStatus>] Gets or sets the resource status
|
31
|
-
# information.
|
32
|
-
attr_accessor :statuses
|
33
|
-
|
34
|
-
#
|
35
|
-
# Validate the object. Throws ValidationError if validation fails.
|
36
|
-
#
|
37
|
-
def validate
|
38
|
-
@substatuses.each{ |e| e.validate if e.respond_to?(:validate) } unless @substatuses.nil?
|
39
|
-
@statuses.each{ |e| e.validate if e.respond_to?(:validate) } unless @statuses.nil?
|
40
|
-
end
|
41
|
-
|
42
|
-
#
|
43
|
-
# Serializes given Model object into Ruby Hash.
|
44
|
-
# @param object Model object to serialize.
|
45
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
46
|
-
#
|
47
|
-
def self.serialize_object(object)
|
48
|
-
object.validate
|
49
|
-
output_object = {}
|
50
|
-
|
51
|
-
serialized_property = object.name
|
52
|
-
output_object['name'] = serialized_property unless serialized_property.nil?
|
53
|
-
|
54
|
-
serialized_property = object.type
|
55
|
-
output_object['type'] = serialized_property unless serialized_property.nil?
|
56
|
-
|
57
|
-
serialized_property = object.type_handler_version
|
58
|
-
output_object['typeHandlerVersion'] = serialized_property unless serialized_property.nil?
|
59
|
-
|
60
|
-
serialized_property = object.substatuses
|
61
|
-
unless serialized_property.nil?
|
62
|
-
serializedArray = []
|
63
|
-
serialized_property.each do |element|
|
64
|
-
unless element.nil?
|
65
|
-
element = InstanceViewStatus.serialize_object(element)
|
66
|
-
end
|
67
|
-
serializedArray.push(element)
|
68
|
-
end
|
69
|
-
serialized_property = serializedArray
|
70
|
-
end
|
71
|
-
output_object['substatuses'] = serialized_property unless serialized_property.nil?
|
72
|
-
|
73
|
-
serialized_property = object.statuses
|
74
|
-
unless serialized_property.nil?
|
75
|
-
serializedArray = []
|
76
|
-
serialized_property.each do |element1|
|
77
|
-
unless element1.nil?
|
78
|
-
element1 = InstanceViewStatus.serialize_object(element1)
|
79
|
-
end
|
80
|
-
serializedArray.push(element1)
|
81
|
-
end
|
82
|
-
serialized_property = serializedArray
|
83
|
-
end
|
84
|
-
output_object['statuses'] = serialized_property unless serialized_property.nil?
|
85
|
-
|
86
|
-
output_object
|
87
|
-
end
|
88
|
-
|
89
|
-
#
|
90
|
-
# Deserializes given Ruby Hash into Model object.
|
91
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
92
|
-
# @return [VirtualMachineExtensionInstanceView] Deserialized object.
|
93
|
-
#
|
94
|
-
def self.deserialize_object(object)
|
95
|
-
return if object.nil?
|
96
|
-
output_object = VirtualMachineExtensionInstanceView.new
|
97
|
-
|
98
|
-
deserialized_property = object['name']
|
99
|
-
output_object.name = deserialized_property
|
100
|
-
|
101
|
-
deserialized_property = object['type']
|
102
|
-
output_object.type = deserialized_property
|
103
|
-
|
104
|
-
deserialized_property = object['typeHandlerVersion']
|
105
|
-
output_object.type_handler_version = deserialized_property
|
106
|
-
|
107
|
-
deserialized_property = object['substatuses']
|
108
|
-
unless deserialized_property.nil?
|
109
|
-
deserialized_array = []
|
110
|
-
deserialized_property.each do |element2|
|
111
|
-
unless element2.nil?
|
112
|
-
element2 = InstanceViewStatus.deserialize_object(element2)
|
113
|
-
end
|
114
|
-
deserialized_array.push(element2)
|
115
|
-
end
|
116
|
-
deserialized_property = deserialized_array
|
117
|
-
end
|
118
|
-
output_object.substatuses = deserialized_property
|
119
|
-
|
120
|
-
deserialized_property = object['statuses']
|
121
|
-
unless deserialized_property.nil?
|
122
|
-
deserialized_array = []
|
123
|
-
deserialized_property.each do |element3|
|
124
|
-
unless element3.nil?
|
125
|
-
element3 = InstanceViewStatus.deserialize_object(element3)
|
126
|
-
end
|
127
|
-
deserialized_array.push(element3)
|
128
|
-
end
|
129
|
-
deserialized_property = deserialized_array
|
130
|
-
end
|
131
|
-
output_object.statuses = deserialized_property
|
132
|
-
|
133
|
-
output_object
|
134
|
-
end
|
135
|
-
end
|
136
|
-
end
|
137
|
-
end
|
@@ -1,141 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::Compute
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Describes the properties of a Virtual Machine Extension.
|
10
|
-
#
|
11
|
-
class VirtualMachineExtensionProperties
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets or sets how the extension handler should be
|
16
|
-
# forced to update even if the extension configuration has not changed.
|
17
|
-
attr_accessor :force_update_tag
|
18
|
-
|
19
|
-
# @return [String] Gets or sets the name of the extension handler
|
20
|
-
# publisher.
|
21
|
-
attr_accessor :publisher
|
22
|
-
|
23
|
-
# @return [String] Gets or sets the type of the extension handler.
|
24
|
-
attr_accessor :type
|
25
|
-
|
26
|
-
# @return [String] Gets or sets the type version of the extension
|
27
|
-
# handler.
|
28
|
-
attr_accessor :type_handler_version
|
29
|
-
|
30
|
-
# @return [Boolean] Gets or sets whether the extension handler should be
|
31
|
-
# automatically upgraded across minor versions.
|
32
|
-
attr_accessor :auto_upgrade_minor_version
|
33
|
-
|
34
|
-
# @return Gets or sets Json formatted public settings for the extension.
|
35
|
-
attr_accessor :settings
|
36
|
-
|
37
|
-
# @return Gets or sets Json formatted protected settings for the
|
38
|
-
# extension.
|
39
|
-
attr_accessor :protected_settings
|
40
|
-
|
41
|
-
# @return [String] Gets or sets the provisioning state, which only
|
42
|
-
# appears in the response.
|
43
|
-
attr_accessor :provisioning_state
|
44
|
-
|
45
|
-
# @return [VirtualMachineExtensionInstanceView] Gets or sets the virtual
|
46
|
-
# machine extension instance view.
|
47
|
-
attr_accessor :instance_view
|
48
|
-
|
49
|
-
#
|
50
|
-
# Validate the object. Throws ValidationError if validation fails.
|
51
|
-
#
|
52
|
-
def validate
|
53
|
-
@instance_view.validate unless @instance_view.nil?
|
54
|
-
end
|
55
|
-
|
56
|
-
#
|
57
|
-
# Serializes given Model object into Ruby Hash.
|
58
|
-
# @param object Model object to serialize.
|
59
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
60
|
-
#
|
61
|
-
def self.serialize_object(object)
|
62
|
-
object.validate
|
63
|
-
output_object = {}
|
64
|
-
|
65
|
-
serialized_property = object.force_update_tag
|
66
|
-
output_object['forceUpdateTag'] = serialized_property unless serialized_property.nil?
|
67
|
-
|
68
|
-
serialized_property = object.publisher
|
69
|
-
output_object['publisher'] = serialized_property unless serialized_property.nil?
|
70
|
-
|
71
|
-
serialized_property = object.type
|
72
|
-
output_object['type'] = serialized_property unless serialized_property.nil?
|
73
|
-
|
74
|
-
serialized_property = object.type_handler_version
|
75
|
-
output_object['typeHandlerVersion'] = serialized_property unless serialized_property.nil?
|
76
|
-
|
77
|
-
serialized_property = object.auto_upgrade_minor_version
|
78
|
-
output_object['autoUpgradeMinorVersion'] = serialized_property unless serialized_property.nil?
|
79
|
-
|
80
|
-
serialized_property = object.settings
|
81
|
-
output_object['settings'] = serialized_property unless serialized_property.nil?
|
82
|
-
|
83
|
-
serialized_property = object.protected_settings
|
84
|
-
output_object['protectedSettings'] = serialized_property unless serialized_property.nil?
|
85
|
-
|
86
|
-
serialized_property = object.provisioning_state
|
87
|
-
output_object['provisioningState'] = serialized_property unless serialized_property.nil?
|
88
|
-
|
89
|
-
serialized_property = object.instance_view
|
90
|
-
unless serialized_property.nil?
|
91
|
-
serialized_property = VirtualMachineExtensionInstanceView.serialize_object(serialized_property)
|
92
|
-
end
|
93
|
-
output_object['instanceView'] = serialized_property unless serialized_property.nil?
|
94
|
-
|
95
|
-
output_object
|
96
|
-
end
|
97
|
-
|
98
|
-
#
|
99
|
-
# Deserializes given Ruby Hash into Model object.
|
100
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
101
|
-
# @return [VirtualMachineExtensionProperties] Deserialized object.
|
102
|
-
#
|
103
|
-
def self.deserialize_object(object)
|
104
|
-
return if object.nil?
|
105
|
-
output_object = VirtualMachineExtensionProperties.new
|
106
|
-
|
107
|
-
deserialized_property = object['forceUpdateTag']
|
108
|
-
output_object.force_update_tag = deserialized_property
|
109
|
-
|
110
|
-
deserialized_property = object['publisher']
|
111
|
-
output_object.publisher = deserialized_property
|
112
|
-
|
113
|
-
deserialized_property = object['type']
|
114
|
-
output_object.type = deserialized_property
|
115
|
-
|
116
|
-
deserialized_property = object['typeHandlerVersion']
|
117
|
-
output_object.type_handler_version = deserialized_property
|
118
|
-
|
119
|
-
deserialized_property = object['autoUpgradeMinorVersion']
|
120
|
-
output_object.auto_upgrade_minor_version = deserialized_property
|
121
|
-
|
122
|
-
deserialized_property = object['settings']
|
123
|
-
output_object.settings = deserialized_property
|
124
|
-
|
125
|
-
deserialized_property = object['protectedSettings']
|
126
|
-
output_object.protected_settings = deserialized_property
|
127
|
-
|
128
|
-
deserialized_property = object['provisioningState']
|
129
|
-
output_object.provisioning_state = deserialized_property
|
130
|
-
|
131
|
-
deserialized_property = object['instanceView']
|
132
|
-
unless deserialized_property.nil?
|
133
|
-
deserialized_property = VirtualMachineExtensionInstanceView.deserialize_object(deserialized_property)
|
134
|
-
end
|
135
|
-
output_object.instance_view = deserialized_property
|
136
|
-
|
137
|
-
output_object
|
138
|
-
end
|
139
|
-
end
|
140
|
-
end
|
141
|
-
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
|
-
# Describes a Virtual Machine Image.
|
10
|
-
#
|
11
|
-
class VirtualMachineImage < VirtualMachineImageResource
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [VirtualMachineImageProperties]
|
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.name
|
35
|
-
output_object['name'] = serialized_property unless serialized_property.nil?
|
36
|
-
|
37
|
-
serialized_property = object.location
|
38
|
-
output_object['location'] = serialized_property unless serialized_property.nil?
|
39
|
-
|
40
|
-
serialized_property = object.id
|
41
|
-
output_object['id'] = serialized_property unless serialized_property.nil?
|
42
|
-
|
43
|
-
serialized_property = object.tags
|
44
|
-
output_object['tags'] = serialized_property unless serialized_property.nil?
|
45
|
-
|
46
|
-
serialized_property = object.properties
|
47
|
-
unless serialized_property.nil?
|
48
|
-
serialized_property = VirtualMachineImageProperties.serialize_object(serialized_property)
|
49
|
-
end
|
50
|
-
output_object['properties'] = 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 [VirtualMachineImage] Deserialized object.
|
59
|
-
#
|
60
|
-
def self.deserialize_object(object)
|
61
|
-
return if object.nil?
|
62
|
-
output_object = VirtualMachineImage.new
|
63
|
-
|
64
|
-
deserialized_property = object['name']
|
65
|
-
output_object.name = deserialized_property
|
66
|
-
|
67
|
-
deserialized_property = object['location']
|
68
|
-
output_object.location = deserialized_property
|
69
|
-
|
70
|
-
deserialized_property = object['id']
|
71
|
-
output_object.id = deserialized_property
|
72
|
-
|
73
|
-
deserialized_property = object['tags']
|
74
|
-
output_object.tags = deserialized_property
|
75
|
-
|
76
|
-
deserialized_property = object['properties']
|
77
|
-
unless deserialized_property.nil?
|
78
|
-
deserialized_property = VirtualMachineImageProperties.deserialize_object(deserialized_property)
|
79
|
-
end
|
80
|
-
output_object.properties = deserialized_property
|
81
|
-
|
82
|
-
output_object
|
83
|
-
end
|
84
|
-
end
|
85
|
-
end
|
86
|
-
end
|