azure_mgmt_compute 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/azure_mgmt_compute.gemspec +4 -4
- data/lib/azure_mgmt_compute.rb +3 -138
- data/lib/generated/azure_mgmt_compute.rb +128 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/availability_sets.rb +24 -22
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/compute_management_client.rb +12 -12
- data/lib/generated/azure_mgmt_compute/models/additional_unattend_content.rb +88 -0
- data/lib/generated/azure_mgmt_compute/models/api_entity_reference.rb +45 -0
- data/lib/generated/azure_mgmt_compute/models/api_error.rb +93 -0
- data/lib/generated/azure_mgmt_compute/models/api_error_base.rb +64 -0
- data/lib/generated/azure_mgmt_compute/models/availability_set.rb +136 -0
- data/lib/generated/azure_mgmt_compute/models/availability_set_list_result.rb +52 -0
- data/lib/generated/azure_mgmt_compute/models/boot_diagnostics.rb +56 -0
- data/lib/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +54 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/caching_types.rb +0 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/component_names.rb +0 -0
- data/lib/generated/azure_mgmt_compute/models/compute_long_running_operation_properties.rb +44 -0
- data/lib/generated/azure_mgmt_compute/models/data_disk.rb +114 -0
- data/lib/generated/azure_mgmt_compute/models/data_disk_image.rb +48 -0
- data/lib/generated/azure_mgmt_compute/models/diagnostics_profile.rb +45 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/disk_create_option_types.rb +0 -0
- data/lib/generated/azure_mgmt_compute/models/disk_encryption_settings.rb +69 -0
- data/lib/generated/azure_mgmt_compute/models/disk_instance_view.rb +62 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/hardware_profile.rb +20 -35
- data/lib/generated/azure_mgmt_compute/models/image_reference.rb +76 -0
- data/lib/generated/azure_mgmt_compute/models/inner_error.rb +54 -0
- data/lib/generated/azure_mgmt_compute/models/instance_view_status.rb +87 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/instance_view_types.rb +0 -0
- data/lib/generated/azure_mgmt_compute/models/key_vault_key_reference.rb +56 -0
- data/lib/generated/azure_mgmt_compute/models/key_vault_secret_reference.rb +56 -0
- data/lib/generated/azure_mgmt_compute/models/linux_configuration.rb +56 -0
- data/lib/generated/azure_mgmt_compute/models/list_usages_result.rb +95 -0
- data/lib/generated/azure_mgmt_compute/models/network_interface_reference.rb +51 -0
- data/lib/generated/azure_mgmt_compute/models/network_profile.rb +52 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/operating_system_types.rb +0 -0
- data/lib/generated/azure_mgmt_compute/models/osdisk.rb +127 -0
- data/lib/generated/azure_mgmt_compute/models/osdisk_image.rb +46 -0
- data/lib/generated/azure_mgmt_compute/models/osprofile.rb +116 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/pass_names.rb +0 -0
- data/lib/generated/azure_mgmt_compute/models/plan.rb +74 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/protocol_types.rb +0 -0
- data/lib/generated/azure_mgmt_compute/models/purchase_plan.rb +65 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/setting_names.rb +0 -0
- data/lib/generated/azure_mgmt_compute/models/sku.rb +64 -0
- data/lib/generated/azure_mgmt_compute/models/ssh_configuration.rb +53 -0
- data/lib/generated/azure_mgmt_compute/models/ssh_public_key.rb +59 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/status_level_types.rb +0 -0
- data/lib/generated/azure_mgmt_compute/models/storage_profile.rb +74 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/upgrade_mode.rb +0 -0
- data/lib/generated/azure_mgmt_compute/models/upgrade_policy.rb +46 -0
- data/lib/generated/azure_mgmt_compute/models/usage.rb +78 -0
- data/lib/generated/azure_mgmt_compute/models/usage_name.rb +54 -0
- data/lib/generated/azure_mgmt_compute/models/vault_certificate.rb +57 -0
- data/lib/generated/azure_mgmt_compute/models/vault_secret_group.rb +65 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_hard_disk.rb +45 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine.rb +224 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb +81 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb +65 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_capture_result.rb +51 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_extension.rb +175 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +67 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb +134 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +101 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_image.rb +109 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb +78 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb +142 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb +135 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +124 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +53 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +85 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +56 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +117 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +95 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +97 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +97 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +82 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +53 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +111 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +116 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +70 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +80 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/virtual_machine_scale_set_sku_scale_type.rb +0 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +56 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +248 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +66 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +51 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +52 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +142 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +96 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +82 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_size.rb +95 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_size_list_result.rb +52 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/virtual_machine_size_types.rb +0 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +58 -0
- data/lib/generated/azure_mgmt_compute/models/win_rmconfiguration.rb +53 -0
- data/lib/generated/azure_mgmt_compute/models/win_rmlistener.rb +58 -0
- data/lib/generated/azure_mgmt_compute/models/windows_configuration.rb +98 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/module_definition.rb +0 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/usage_operations.rb +32 -11
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/version.rb +1 -1
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/virtual_machine_extension_images.rb +40 -26
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/virtual_machine_extensions.rb +59 -31
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/virtual_machine_images.rb +76 -48
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/virtual_machine_scale_set_vms.rb +169 -41
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/virtual_machine_scale_sets.rb +341 -125
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/virtual_machine_sizes.rb +4 -4
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/virtual_machines.rb +340 -84
- metadata +126 -142
- data/lib/azure_mgmt_compute/models/additional_unattend_content.rb +0 -105
- data/lib/azure_mgmt_compute/models/api_entity_reference.rb +0 -57
- data/lib/azure_mgmt_compute/models/api_error.rb +0 -119
- data/lib/azure_mgmt_compute/models/api_error_base.rb +0 -74
- data/lib/azure_mgmt_compute/models/availability_set.rb +0 -92
- data/lib/azure_mgmt_compute/models/availability_set_list_result.rb +0 -77
- data/lib/azure_mgmt_compute/models/availability_set_properties.rb +0 -128
- data/lib/azure_mgmt_compute/models/boot_diagnostics.rb +0 -67
- data/lib/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +0 -65
- data/lib/azure_mgmt_compute/models/compute_long_running_operation_properties.rb +0 -56
- data/lib/azure_mgmt_compute/models/data_disk.rb +0 -143
- data/lib/azure_mgmt_compute/models/data_disk_image.rb +0 -60
- data/lib/azure_mgmt_compute/models/diagnostics_profile.rb +0 -62
- data/lib/azure_mgmt_compute/models/disk_encryption_settings.rb +0 -90
- data/lib/azure_mgmt_compute/models/disk_instance_view.rb +0 -86
- data/lib/azure_mgmt_compute/models/image_reference.rb +0 -85
- data/lib/azure_mgmt_compute/models/inner_error.rb +0 -66
- data/lib/azure_mgmt_compute/models/instance_view_status.rb +0 -100
- data/lib/azure_mgmt_compute/models/key_vault_key_reference.rb +0 -74
- data/lib/azure_mgmt_compute/models/key_vault_secret_reference.rb +0 -75
- data/lib/azure_mgmt_compute/models/linux_configuration.rb +0 -73
- data/lib/azure_mgmt_compute/models/list_usages_result.rb +0 -76
- data/lib/azure_mgmt_compute/models/network_interface_reference.rb +0 -68
- data/lib/azure_mgmt_compute/models/network_interface_reference_properties.rb +0 -57
- data/lib/azure_mgmt_compute/models/network_profile.rb +0 -77
- data/lib/azure_mgmt_compute/models/osdisk.rb +0 -163
- data/lib/azure_mgmt_compute/models/osdisk_image.rb +0 -61
- data/lib/azure_mgmt_compute/models/osprofile.rb +0 -147
- data/lib/azure_mgmt_compute/models/plan.rb +0 -83
- data/lib/azure_mgmt_compute/models/purchase_plan.rb +0 -77
- data/lib/azure_mgmt_compute/models/sku.rb +0 -75
- data/lib/azure_mgmt_compute/models/ssh_configuration.rb +0 -77
- data/lib/azure_mgmt_compute/models/ssh_public_key.rb +0 -70
- data/lib/azure_mgmt_compute/models/storage_profile.rb +0 -108
- data/lib/azure_mgmt_compute/models/upgrade_policy.rb +0 -60
- data/lib/azure_mgmt_compute/models/usage.rb +0 -96
- data/lib/azure_mgmt_compute/models/usage_name.rb +0 -66
- data/lib/azure_mgmt_compute/models/vault_certificate.rb +0 -68
- data/lib/azure_mgmt_compute/models/vault_secret_group.rb +0 -94
- data/lib/azure_mgmt_compute/models/virtual_hard_disk.rb +0 -57
- data/lib/azure_mgmt_compute/models/virtual_machine.rb +0 -140
- data/lib/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb +0 -117
- data/lib/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb +0 -78
- data/lib/azure_mgmt_compute/models/virtual_machine_capture_result.rb +0 -68
- data/lib/azure_mgmt_compute/models/virtual_machine_capture_result_properties.rb +0 -56
- data/lib/azure_mgmt_compute/models/virtual_machine_extension.rb +0 -92
- data/lib/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +0 -83
- data/lib/azure_mgmt_compute/models/virtual_machine_extension_image.rb +0 -92
- data/lib/azure_mgmt_compute/models/virtual_machine_extension_image_properties.rb +0 -102
- data/lib/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +0 -137
- data/lib/azure_mgmt_compute/models/virtual_machine_extension_properties.rb +0 -141
- data/lib/azure_mgmt_compute/models/virtual_machine_image.rb +0 -86
- data/lib/azure_mgmt_compute/models/virtual_machine_image_properties.rb +0 -108
- data/lib/azure_mgmt_compute/models/virtual_machine_image_resource.rb +0 -83
- data/lib/azure_mgmt_compute/models/virtual_machine_instance_view.rb +0 -202
- data/lib/azure_mgmt_compute/models/virtual_machine_list_result.rb +0 -87
- data/lib/azure_mgmt_compute/models/virtual_machine_properties.rb +0 -189
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set.rb +0 -108
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +0 -77
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +0 -77
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_extension_properties.rb +0 -116
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +0 -125
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +0 -79
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +0 -78
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration_properties.rb +0 -158
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +0 -77
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +0 -77
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +0 -88
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +0 -80
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration_properties.rb +0 -89
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +0 -77
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +0 -129
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +0 -147
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_properties.rb +0 -99
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +0 -88
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +0 -90
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +0 -78
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +0 -165
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +0 -87
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +0 -57
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +0 -59
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +0 -202
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +0 -77
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +0 -114
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vmproperties.rb +0 -190
- data/lib/azure_mgmt_compute/models/virtual_machine_size.rb +0 -109
- data/lib/azure_mgmt_compute/models/virtual_machine_size_list_result.rb +0 -77
- data/lib/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +0 -68
- data/lib/azure_mgmt_compute/models/win_rmconfiguration.rb +0 -77
- data/lib/azure_mgmt_compute/models/win_rmlistener.rb +0 -71
- data/lib/azure_mgmt_compute/models/windows_configuration.rb +0 -124
@@ -0,0 +1,101 @@
|
|
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] the virtual machine extension name.
|
16
|
+
attr_accessor :name
|
17
|
+
|
18
|
+
# @return [String] the full type of the extension handler which includes
|
19
|
+
# both publisher and type.
|
20
|
+
attr_accessor :type
|
21
|
+
|
22
|
+
# @return [String] the type version of the extension handler.
|
23
|
+
attr_accessor :type_handler_version
|
24
|
+
|
25
|
+
# @return [Array<InstanceViewStatus>] the resource status information.
|
26
|
+
attr_accessor :substatuses
|
27
|
+
|
28
|
+
# @return [Array<InstanceViewStatus>] the resource status information.
|
29
|
+
attr_accessor :statuses
|
30
|
+
|
31
|
+
|
32
|
+
#
|
33
|
+
# Mapper for VirtualMachineExtensionInstanceView class as Ruby Hash.
|
34
|
+
# This will be used for serialization/deserialization.
|
35
|
+
#
|
36
|
+
def self.mapper()
|
37
|
+
{
|
38
|
+
required: false,
|
39
|
+
serialized_name: 'VirtualMachineExtensionInstanceView',
|
40
|
+
type: {
|
41
|
+
name: 'Composite',
|
42
|
+
class_name: 'VirtualMachineExtensionInstanceView',
|
43
|
+
model_properties: {
|
44
|
+
name: {
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'name',
|
47
|
+
type: {
|
48
|
+
name: 'String'
|
49
|
+
}
|
50
|
+
},
|
51
|
+
type: {
|
52
|
+
required: false,
|
53
|
+
serialized_name: 'type',
|
54
|
+
type: {
|
55
|
+
name: 'String'
|
56
|
+
}
|
57
|
+
},
|
58
|
+
type_handler_version: {
|
59
|
+
required: false,
|
60
|
+
serialized_name: 'typeHandlerVersion',
|
61
|
+
type: {
|
62
|
+
name: 'String'
|
63
|
+
}
|
64
|
+
},
|
65
|
+
substatuses: {
|
66
|
+
required: false,
|
67
|
+
serialized_name: 'substatuses',
|
68
|
+
type: {
|
69
|
+
name: 'Sequence',
|
70
|
+
element: {
|
71
|
+
required: false,
|
72
|
+
serialized_name: 'InstanceViewStatusElementType',
|
73
|
+
type: {
|
74
|
+
name: 'Composite',
|
75
|
+
class_name: 'InstanceViewStatus'
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
},
|
80
|
+
statuses: {
|
81
|
+
required: false,
|
82
|
+
serialized_name: 'statuses',
|
83
|
+
type: {
|
84
|
+
name: 'Sequence',
|
85
|
+
element: {
|
86
|
+
required: false,
|
87
|
+
serialized_name: 'InstanceViewStatusElementType',
|
88
|
+
type: {
|
89
|
+
name: 'Composite',
|
90
|
+
class_name: 'InstanceViewStatus'
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
@@ -0,0 +1,109 @@
|
|
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 [PurchasePlan]
|
16
|
+
attr_accessor :plan
|
17
|
+
|
18
|
+
# @return [OSDiskImage]
|
19
|
+
attr_accessor :os_disk_image
|
20
|
+
|
21
|
+
# @return [Array<DataDiskImage>]
|
22
|
+
attr_accessor :data_disk_images
|
23
|
+
|
24
|
+
|
25
|
+
#
|
26
|
+
# Mapper for VirtualMachineImage class as Ruby Hash.
|
27
|
+
# This will be used for serialization/deserialization.
|
28
|
+
#
|
29
|
+
def self.mapper()
|
30
|
+
{
|
31
|
+
required: false,
|
32
|
+
serialized_name: 'VirtualMachineImage',
|
33
|
+
type: {
|
34
|
+
name: 'Composite',
|
35
|
+
class_name: 'VirtualMachineImage',
|
36
|
+
model_properties: {
|
37
|
+
id: {
|
38
|
+
required: false,
|
39
|
+
serialized_name: 'id',
|
40
|
+
type: {
|
41
|
+
name: 'String'
|
42
|
+
}
|
43
|
+
},
|
44
|
+
name: {
|
45
|
+
required: true,
|
46
|
+
serialized_name: 'name',
|
47
|
+
type: {
|
48
|
+
name: 'String'
|
49
|
+
}
|
50
|
+
},
|
51
|
+
location: {
|
52
|
+
required: true,
|
53
|
+
serialized_name: 'location',
|
54
|
+
type: {
|
55
|
+
name: 'String'
|
56
|
+
}
|
57
|
+
},
|
58
|
+
tags: {
|
59
|
+
required: false,
|
60
|
+
serialized_name: 'tags',
|
61
|
+
type: {
|
62
|
+
name: 'Dictionary',
|
63
|
+
value: {
|
64
|
+
required: false,
|
65
|
+
serialized_name: 'StringElementType',
|
66
|
+
type: {
|
67
|
+
name: 'String'
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
},
|
72
|
+
plan: {
|
73
|
+
required: false,
|
74
|
+
serialized_name: 'properties.plan',
|
75
|
+
type: {
|
76
|
+
name: 'Composite',
|
77
|
+
class_name: 'PurchasePlan'
|
78
|
+
}
|
79
|
+
},
|
80
|
+
os_disk_image: {
|
81
|
+
required: false,
|
82
|
+
serialized_name: 'properties.osDiskImage',
|
83
|
+
type: {
|
84
|
+
name: 'Composite',
|
85
|
+
class_name: 'OSDiskImage'
|
86
|
+
}
|
87
|
+
},
|
88
|
+
data_disk_images: {
|
89
|
+
required: false,
|
90
|
+
serialized_name: 'properties.dataDiskImages',
|
91
|
+
type: {
|
92
|
+
name: 'Sequence',
|
93
|
+
element: {
|
94
|
+
required: false,
|
95
|
+
serialized_name: 'DataDiskImageElementType',
|
96
|
+
type: {
|
97
|
+
name: 'Composite',
|
98
|
+
class_name: 'DataDiskImage'
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
105
|
+
}
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|
@@ -0,0 +1,78 @@
|
|
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
|
+
# Virtual machine image resource information.
|
10
|
+
#
|
11
|
+
class VirtualMachineImageResource < MsRestAzure::SubResource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] the name of the resource.
|
16
|
+
attr_accessor :name
|
17
|
+
|
18
|
+
# @return [String] the location of the resource.
|
19
|
+
attr_accessor :location
|
20
|
+
|
21
|
+
# @return [Hash{String => String}] the tags attached to the resource.
|
22
|
+
attr_accessor :tags
|
23
|
+
|
24
|
+
|
25
|
+
#
|
26
|
+
# Mapper for VirtualMachineImageResource class as Ruby Hash.
|
27
|
+
# This will be used for serialization/deserialization.
|
28
|
+
#
|
29
|
+
def self.mapper()
|
30
|
+
{
|
31
|
+
required: false,
|
32
|
+
serialized_name: 'VirtualMachineImageResource',
|
33
|
+
type: {
|
34
|
+
name: 'Composite',
|
35
|
+
class_name: 'VirtualMachineImageResource',
|
36
|
+
model_properties: {
|
37
|
+
id: {
|
38
|
+
required: false,
|
39
|
+
serialized_name: 'id',
|
40
|
+
type: {
|
41
|
+
name: 'String'
|
42
|
+
}
|
43
|
+
},
|
44
|
+
name: {
|
45
|
+
required: true,
|
46
|
+
serialized_name: 'name',
|
47
|
+
type: {
|
48
|
+
name: 'String'
|
49
|
+
}
|
50
|
+
},
|
51
|
+
location: {
|
52
|
+
required: true,
|
53
|
+
serialized_name: 'location',
|
54
|
+
type: {
|
55
|
+
name: 'String'
|
56
|
+
}
|
57
|
+
},
|
58
|
+
tags: {
|
59
|
+
required: false,
|
60
|
+
serialized_name: 'tags',
|
61
|
+
type: {
|
62
|
+
name: 'Dictionary',
|
63
|
+
value: {
|
64
|
+
required: false,
|
65
|
+
serialized_name: 'StringElementType',
|
66
|
+
type: {
|
67
|
+
name: 'String'
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
@@ -0,0 +1,142 @@
|
|
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.
|
10
|
+
#
|
11
|
+
class VirtualMachineInstanceView
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Integer] the Update Domain count.
|
16
|
+
attr_accessor :platform_update_domain
|
17
|
+
|
18
|
+
# @return [Integer] the Fault Domain count.
|
19
|
+
attr_accessor :platform_fault_domain
|
20
|
+
|
21
|
+
# @return [String] the Remote desktop certificate thumbprint.
|
22
|
+
attr_accessor :rdp_thumb_print
|
23
|
+
|
24
|
+
# @return [VirtualMachineAgentInstanceView] the VM Agent running on the
|
25
|
+
# virtual machine.
|
26
|
+
attr_accessor :vm_agent
|
27
|
+
|
28
|
+
# @return [Array<DiskInstanceView>] the disks information.
|
29
|
+
attr_accessor :disks
|
30
|
+
|
31
|
+
# @return [Array<VirtualMachineExtensionInstanceView>] the extensions
|
32
|
+
# information.
|
33
|
+
attr_accessor :extensions
|
34
|
+
|
35
|
+
# @return [BootDiagnosticsInstanceView] the boot diagnostics.
|
36
|
+
attr_accessor :boot_diagnostics
|
37
|
+
|
38
|
+
# @return [Array<InstanceViewStatus>] the resource status information.
|
39
|
+
attr_accessor :statuses
|
40
|
+
|
41
|
+
|
42
|
+
#
|
43
|
+
# Mapper for VirtualMachineInstanceView class as Ruby Hash.
|
44
|
+
# This will be used for serialization/deserialization.
|
45
|
+
#
|
46
|
+
def self.mapper()
|
47
|
+
{
|
48
|
+
required: false,
|
49
|
+
serialized_name: 'VirtualMachineInstanceView',
|
50
|
+
type: {
|
51
|
+
name: 'Composite',
|
52
|
+
class_name: 'VirtualMachineInstanceView',
|
53
|
+
model_properties: {
|
54
|
+
platform_update_domain: {
|
55
|
+
required: false,
|
56
|
+
serialized_name: 'platformUpdateDomain',
|
57
|
+
type: {
|
58
|
+
name: 'Number'
|
59
|
+
}
|
60
|
+
},
|
61
|
+
platform_fault_domain: {
|
62
|
+
required: false,
|
63
|
+
serialized_name: 'platformFaultDomain',
|
64
|
+
type: {
|
65
|
+
name: 'Number'
|
66
|
+
}
|
67
|
+
},
|
68
|
+
rdp_thumb_print: {
|
69
|
+
required: false,
|
70
|
+
serialized_name: 'rdpThumbPrint',
|
71
|
+
type: {
|
72
|
+
name: 'String'
|
73
|
+
}
|
74
|
+
},
|
75
|
+
vm_agent: {
|
76
|
+
required: false,
|
77
|
+
serialized_name: 'vmAgent',
|
78
|
+
type: {
|
79
|
+
name: 'Composite',
|
80
|
+
class_name: 'VirtualMachineAgentInstanceView'
|
81
|
+
}
|
82
|
+
},
|
83
|
+
disks: {
|
84
|
+
required: false,
|
85
|
+
serialized_name: 'disks',
|
86
|
+
type: {
|
87
|
+
name: 'Sequence',
|
88
|
+
element: {
|
89
|
+
required: false,
|
90
|
+
serialized_name: 'DiskInstanceViewElementType',
|
91
|
+
type: {
|
92
|
+
name: 'Composite',
|
93
|
+
class_name: 'DiskInstanceView'
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
},
|
98
|
+
extensions: {
|
99
|
+
required: false,
|
100
|
+
serialized_name: 'extensions',
|
101
|
+
type: {
|
102
|
+
name: 'Sequence',
|
103
|
+
element: {
|
104
|
+
required: false,
|
105
|
+
serialized_name: 'VirtualMachineExtensionInstanceViewElementType',
|
106
|
+
type: {
|
107
|
+
name: 'Composite',
|
108
|
+
class_name: 'VirtualMachineExtensionInstanceView'
|
109
|
+
}
|
110
|
+
}
|
111
|
+
}
|
112
|
+
},
|
113
|
+
boot_diagnostics: {
|
114
|
+
required: false,
|
115
|
+
serialized_name: 'bootDiagnostics',
|
116
|
+
type: {
|
117
|
+
name: 'Composite',
|
118
|
+
class_name: 'BootDiagnosticsInstanceView'
|
119
|
+
}
|
120
|
+
},
|
121
|
+
statuses: {
|
122
|
+
required: false,
|
123
|
+
serialized_name: 'statuses',
|
124
|
+
type: {
|
125
|
+
name: 'Sequence',
|
126
|
+
element: {
|
127
|
+
required: false,
|
128
|
+
serialized_name: 'InstanceViewStatusElementType',
|
129
|
+
type: {
|
130
|
+
name: 'Composite',
|
131
|
+
class_name: 'InstanceViewStatus'
|
132
|
+
}
|
133
|
+
}
|
134
|
+
}
|
135
|
+
}
|
136
|
+
}
|
137
|
+
}
|
138
|
+
}
|
139
|
+
end
|
140
|
+
end
|
141
|
+
end
|
142
|
+
end
|
@@ -0,0 +1,94 @@
|
|
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 Virtual Machine operation response.
|
10
|
+
#
|
11
|
+
class VirtualMachineListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<VirtualMachine>] the list of virtual machines.
|
16
|
+
attr_accessor :value
|
17
|
+
|
18
|
+
# @return [String] the uri to fetch the next page of VMs. Call
|
19
|
+
# ListNext() with this to fetch the next page of Virtual Machines.
|
20
|
+
attr_accessor :next_link
|
21
|
+
|
22
|
+
# return [Proc] with next page method call.
|
23
|
+
attr_accessor :next_method
|
24
|
+
|
25
|
+
#
|
26
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
27
|
+
#
|
28
|
+
# @return [Array<VirtualMachine>] operation results.
|
29
|
+
#
|
30
|
+
def get_all_items
|
31
|
+
items = @value
|
32
|
+
page = self
|
33
|
+
while page.next_link != nil do
|
34
|
+
page = page.get_next_page
|
35
|
+
items.concat(page.value)
|
36
|
+
end
|
37
|
+
items
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Gets the next page of results.
|
42
|
+
#
|
43
|
+
# @return [VirtualMachineListResult] with next page content.
|
44
|
+
#
|
45
|
+
def get_next_page
|
46
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
47
|
+
unless response.nil?
|
48
|
+
@next_link = response.body.next_link
|
49
|
+
@value = response.body.value
|
50
|
+
self
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
#
|
55
|
+
# Mapper for VirtualMachineListResult class as Ruby Hash.
|
56
|
+
# This will be used for serialization/deserialization.
|
57
|
+
#
|
58
|
+
def self.mapper()
|
59
|
+
{
|
60
|
+
required: false,
|
61
|
+
serialized_name: 'VirtualMachineListResult',
|
62
|
+
type: {
|
63
|
+
name: 'Composite',
|
64
|
+
class_name: 'VirtualMachineListResult',
|
65
|
+
model_properties: {
|
66
|
+
value: {
|
67
|
+
required: false,
|
68
|
+
serialized_name: 'value',
|
69
|
+
type: {
|
70
|
+
name: 'Sequence',
|
71
|
+
element: {
|
72
|
+
required: false,
|
73
|
+
serialized_name: 'VirtualMachineElementType',
|
74
|
+
type: {
|
75
|
+
name: 'Composite',
|
76
|
+
class_name: 'VirtualMachine'
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
},
|
81
|
+
next_link: {
|
82
|
+
required: false,
|
83
|
+
serialized_name: 'nextLink',
|
84
|
+
type: {
|
85
|
+
name: 'String'
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|