azure_mgmt_compute 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/README.md +1 -27
- data/azure_mgmt_compute.gemspec +1 -1
- data/lib/azure_mgmt_compute/availability_sets.rb +184 -141
- data/lib/azure_mgmt_compute/compute_management_client.rb +2 -2
- data/lib/azure_mgmt_compute/models/additional_unattend_content.rb +1 -1
- data/lib/azure_mgmt_compute/models/api_entity_reference.rb +2 -3
- data/lib/azure_mgmt_compute/models/api_error.rb +1 -1
- data/lib/azure_mgmt_compute/models/api_error_base.rb +1 -1
- data/lib/azure_mgmt_compute/models/availability_set.rb +1 -1
- data/lib/azure_mgmt_compute/models/availability_set_list_result.rb +1 -1
- data/lib/azure_mgmt_compute/models/availability_set_properties.rb +2 -2
- data/lib/azure_mgmt_compute/models/boot_diagnostics.rb +3 -3
- data/lib/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +1 -1
- data/lib/azure_mgmt_compute/models/caching_types.rb +1 -1
- data/lib/azure_mgmt_compute/models/component_names.rb +1 -1
- data/lib/azure_mgmt_compute/models/compute_long_running_operation_properties.rb +1 -1
- data/lib/azure_mgmt_compute/models/data_disk.rb +1 -1
- data/lib/azure_mgmt_compute/models/data_disk_image.rb +1 -1
- data/lib/azure_mgmt_compute/models/diagnostics_profile.rb +1 -1
- data/lib/azure_mgmt_compute/models/disk_create_option_types.rb +1 -1
- data/lib/azure_mgmt_compute/models/disk_encryption_settings.rb +11 -2
- data/lib/azure_mgmt_compute/models/disk_instance_view.rb +1 -1
- data/lib/azure_mgmt_compute/models/hardware_profile.rb +9 -6
- data/lib/azure_mgmt_compute/models/image_reference.rb +1 -1
- data/lib/azure_mgmt_compute/models/inner_error.rb +1 -1
- data/lib/azure_mgmt_compute/models/instance_view_status.rb +4 -4
- data/lib/azure_mgmt_compute/models/instance_view_types.rb +15 -0
- data/lib/azure_mgmt_compute/models/key_vault_key_reference.rb +1 -1
- data/lib/azure_mgmt_compute/models/key_vault_secret_reference.rb +1 -1
- data/lib/azure_mgmt_compute/models/linux_configuration.rb +1 -1
- data/lib/azure_mgmt_compute/models/list_usages_result.rb +1 -1
- data/lib/azure_mgmt_compute/models/network_interface_reference.rb +1 -1
- data/lib/azure_mgmt_compute/models/network_interface_reference_properties.rb +1 -1
- data/lib/azure_mgmt_compute/models/network_profile.rb +1 -1
- data/lib/azure_mgmt_compute/models/operating_system_types.rb +1 -1
- data/lib/azure_mgmt_compute/models/osdisk.rb +1 -1
- data/lib/azure_mgmt_compute/models/osdisk_image.rb +1 -1
- data/lib/azure_mgmt_compute/models/osprofile.rb +1 -1
- data/lib/azure_mgmt_compute/models/pass_names.rb +1 -1
- data/lib/azure_mgmt_compute/models/plan.rb +1 -1
- data/lib/azure_mgmt_compute/models/protocol_types.rb +1 -1
- data/lib/azure_mgmt_compute/models/purchase_plan.rb +1 -1
- data/lib/azure_mgmt_compute/models/setting_names.rb +1 -1
- data/lib/azure_mgmt_compute/models/sku.rb +1 -1
- data/lib/azure_mgmt_compute/models/ssh_configuration.rb +1 -1
- data/lib/azure_mgmt_compute/models/ssh_public_key.rb +1 -1
- data/lib/azure_mgmt_compute/models/status_level_types.rb +1 -1
- data/lib/azure_mgmt_compute/models/storage_profile.rb +1 -1
- data/lib/azure_mgmt_compute/models/upgrade_mode.rb +1 -1
- data/lib/azure_mgmt_compute/models/upgrade_policy.rb +1 -1
- data/lib/azure_mgmt_compute/models/usage.rb +1 -1
- data/lib/azure_mgmt_compute/models/usage_name.rb +1 -1
- data/lib/azure_mgmt_compute/models/vault_certificate.rb +1 -1
- data/lib/azure_mgmt_compute/models/vault_secret_group.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_hard_disk.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_capture_result.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_capture_result_properties.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_extension.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_extension_image.rb +20 -27
- data/lib/azure_mgmt_compute/models/virtual_machine_extension_image_properties.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_extension_properties.rb +11 -11
- data/lib/azure_mgmt_compute/models/virtual_machine_image.rb +8 -21
- data/lib/azure_mgmt_compute/models/virtual_machine_image_properties.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_image_resource.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_instance_view.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_list_result.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_properties.rb +10 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_extension_properties.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration_properties.rb +43 -12
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration_properties.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_properties.rb +11 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_sku_scale_type.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vmproperties.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_size.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_size_list_result.rb +1 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_size_types.rb +12 -1
- data/lib/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +1 -1
- data/lib/azure_mgmt_compute/models/win_rmconfiguration.rb +1 -1
- data/lib/azure_mgmt_compute/models/win_rmlistener.rb +1 -1
- data/lib/azure_mgmt_compute/models/windows_configuration.rb +1 -1
- data/lib/azure_mgmt_compute/module_definition.rb +1 -1
- data/lib/azure_mgmt_compute/usage_operations.rb +71 -11
- data/lib/azure_mgmt_compute/version.rb +2 -2
- data/lib/azure_mgmt_compute/virtual_machine_extension_images.rb +123 -18
- data/lib/azure_mgmt_compute/virtual_machine_extensions.rb +132 -22
- data/lib/azure_mgmt_compute/virtual_machine_images.rb +197 -26
- data/lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +419 -79
- data/lib/azure_mgmt_compute/virtual_machine_scale_sets.rb +736 -147
- data/lib/azure_mgmt_compute/virtual_machine_sizes.rb +36 -64
- data/lib/azure_mgmt_compute/virtual_machines.rb +531 -200
- data/lib/azure_mgmt_compute.rb +3 -6
- metadata +26 -24
- data/lib/azure_mgmt_compute/models/compute_long_running_operation_result.rb +0 -123
- data/lib/azure_mgmt_compute/models/compute_operation_status.rb +0 -18
- data/lib/azure_mgmt_compute/models/delete_operation_result.rb +0 -110
- data/lib/azure_mgmt_compute/models/operation_status.rb +0 -17
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -26,13 +26,39 @@ module Azure::ARM::Compute
|
|
26
26
|
# Lists compute usages for a subscription.
|
27
27
|
#
|
28
28
|
# @param location [String] The location upon which resource usage is queried.
|
29
|
-
# @param [Hash{String => String}]
|
30
|
-
#
|
29
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
30
|
+
# will be added to the HTTP request.
|
31
31
|
#
|
32
|
-
# @return [
|
33
|
-
# response.
|
32
|
+
# @return [ListUsagesResult] operation results.
|
34
33
|
#
|
35
34
|
def list(location, custom_headers = nil)
|
35
|
+
response = list_async(location, custom_headers).value!
|
36
|
+
response.body unless response.nil?
|
37
|
+
end
|
38
|
+
|
39
|
+
#
|
40
|
+
# Lists compute usages for a subscription.
|
41
|
+
#
|
42
|
+
# @param location [String] The location upon which resource usage is queried.
|
43
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
44
|
+
# will be added to the HTTP request.
|
45
|
+
#
|
46
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
47
|
+
#
|
48
|
+
def list_with_http_info(location, custom_headers = nil)
|
49
|
+
list_async(location, custom_headers).value!
|
50
|
+
end
|
51
|
+
|
52
|
+
#
|
53
|
+
# Lists compute usages for a subscription.
|
54
|
+
#
|
55
|
+
# @param location [String] The location upon which resource usage is queried.
|
56
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
57
|
+
# to the HTTP request.
|
58
|
+
#
|
59
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
60
|
+
#
|
61
|
+
def list_async(location, custom_headers = nil)
|
36
62
|
fail ArgumentError, 'location is nil' if location.nil?
|
37
63
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
38
64
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -48,7 +74,10 @@ module Azure::ARM::Compute
|
|
48
74
|
query_params: {'api-version' => @client.api_version},
|
49
75
|
headers: request_headers.merge(custom_headers || {})
|
50
76
|
}
|
51
|
-
|
77
|
+
|
78
|
+
request_url = @base_url || @client.base_url
|
79
|
+
|
80
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
52
81
|
promise = request.run_promise do |req|
|
53
82
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
54
83
|
end
|
@@ -88,13 +117,41 @@ module Azure::ARM::Compute
|
|
88
117
|
#
|
89
118
|
# @param next_page_link [String] The NextLink from the previous successful
|
90
119
|
# call to List operation.
|
91
|
-
# @param [Hash{String => String}]
|
92
|
-
#
|
120
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
121
|
+
# will be added to the HTTP request.
|
93
122
|
#
|
94
|
-
# @return [
|
95
|
-
# response.
|
123
|
+
# @return [ListUsagesResult] operation results.
|
96
124
|
#
|
97
125
|
def list_next(next_page_link, custom_headers = nil)
|
126
|
+
response = list_next_async(next_page_link, custom_headers).value!
|
127
|
+
response.body unless response.nil?
|
128
|
+
end
|
129
|
+
|
130
|
+
#
|
131
|
+
# Lists compute usages for a subscription.
|
132
|
+
#
|
133
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
134
|
+
# call to List operation.
|
135
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
136
|
+
# will be added to the HTTP request.
|
137
|
+
#
|
138
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
139
|
+
#
|
140
|
+
def list_next_with_http_info(next_page_link, custom_headers = nil)
|
141
|
+
list_next_async(next_page_link, custom_headers).value!
|
142
|
+
end
|
143
|
+
|
144
|
+
#
|
145
|
+
# Lists compute usages for a subscription.
|
146
|
+
#
|
147
|
+
# @param next_page_link [String] The NextLink from the previous successful
|
148
|
+
# call to List operation.
|
149
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
150
|
+
# to the HTTP request.
|
151
|
+
#
|
152
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
153
|
+
#
|
154
|
+
def list_next_async(next_page_link, custom_headers = nil)
|
98
155
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
99
156
|
request_headers = {}
|
100
157
|
|
@@ -107,7 +164,10 @@ module Azure::ARM::Compute
|
|
107
164
|
skip_encoding_path_params: {'nextLink' => next_page_link},
|
108
165
|
headers: request_headers.merge(custom_headers || {})
|
109
166
|
}
|
110
|
-
|
167
|
+
|
168
|
+
request_url = @base_url || @client.base_url
|
169
|
+
|
170
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
111
171
|
promise = request.run_promise do |req|
|
112
172
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
113
173
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
6
|
module Azure::ARM::Compute
|
7
|
-
VERSION = '0.
|
7
|
+
VERSION = '0.3.0'
|
8
8
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -29,13 +29,45 @@ module Azure::ARM::Compute
|
|
29
29
|
# @param publisher_name [String]
|
30
30
|
# @param type [String]
|
31
31
|
# @param version [String]
|
32
|
-
# @param [Hash{String => String}]
|
33
|
-
#
|
32
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
33
|
+
# will be added to the HTTP request.
|
34
34
|
#
|
35
|
-
# @return [
|
36
|
-
# response.
|
35
|
+
# @return [VirtualMachineExtensionImage] operation results.
|
37
36
|
#
|
38
37
|
def get(location, publisher_name, type, version, custom_headers = nil)
|
38
|
+
response = get_async(location, publisher_name, type, version, custom_headers).value!
|
39
|
+
response.body unless response.nil?
|
40
|
+
end
|
41
|
+
|
42
|
+
#
|
43
|
+
# Gets a virtual machine extension image.
|
44
|
+
#
|
45
|
+
# @param location [String]
|
46
|
+
# @param publisher_name [String]
|
47
|
+
# @param type [String]
|
48
|
+
# @param version [String]
|
49
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
50
|
+
# will be added to the HTTP request.
|
51
|
+
#
|
52
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
53
|
+
#
|
54
|
+
def get_with_http_info(location, publisher_name, type, version, custom_headers = nil)
|
55
|
+
get_async(location, publisher_name, type, version, custom_headers).value!
|
56
|
+
end
|
57
|
+
|
58
|
+
#
|
59
|
+
# Gets a virtual machine extension image.
|
60
|
+
#
|
61
|
+
# @param location [String]
|
62
|
+
# @param publisher_name [String]
|
63
|
+
# @param type [String]
|
64
|
+
# @param version [String]
|
65
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
66
|
+
# to the HTTP request.
|
67
|
+
#
|
68
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
69
|
+
#
|
70
|
+
def get_async(location, publisher_name, type, version, custom_headers = nil)
|
39
71
|
fail ArgumentError, 'location is nil' if location.nil?
|
40
72
|
fail ArgumentError, 'publisher_name is nil' if publisher_name.nil?
|
41
73
|
fail ArgumentError, 'type is nil' if type.nil?
|
@@ -54,7 +86,10 @@ module Azure::ARM::Compute
|
|
54
86
|
query_params: {'api-version' => @client.api_version},
|
55
87
|
headers: request_headers.merge(custom_headers || {})
|
56
88
|
}
|
57
|
-
|
89
|
+
|
90
|
+
request_url = @base_url || @client.base_url
|
91
|
+
|
92
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
58
93
|
promise = request.run_promise do |req|
|
59
94
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
60
95
|
end
|
@@ -94,13 +129,41 @@ module Azure::ARM::Compute
|
|
94
129
|
#
|
95
130
|
# @param location [String]
|
96
131
|
# @param publisher_name [String]
|
97
|
-
# @param [Hash{String => String}]
|
98
|
-
#
|
132
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
133
|
+
# will be added to the HTTP request.
|
99
134
|
#
|
100
|
-
# @return [
|
101
|
-
# response.
|
135
|
+
# @return [Array] operation results.
|
102
136
|
#
|
103
137
|
def list_types(location, publisher_name, custom_headers = nil)
|
138
|
+
response = list_types_async(location, publisher_name, custom_headers).value!
|
139
|
+
response.body unless response.nil?
|
140
|
+
end
|
141
|
+
|
142
|
+
#
|
143
|
+
# Gets a list of virtual machine extension image types.
|
144
|
+
#
|
145
|
+
# @param location [String]
|
146
|
+
# @param publisher_name [String]
|
147
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
148
|
+
# will be added to the HTTP request.
|
149
|
+
#
|
150
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
151
|
+
#
|
152
|
+
def list_types_with_http_info(location, publisher_name, custom_headers = nil)
|
153
|
+
list_types_async(location, publisher_name, custom_headers).value!
|
154
|
+
end
|
155
|
+
|
156
|
+
#
|
157
|
+
# Gets a list of virtual machine extension image types.
|
158
|
+
#
|
159
|
+
# @param location [String]
|
160
|
+
# @param publisher_name [String]
|
161
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
162
|
+
# to the HTTP request.
|
163
|
+
#
|
164
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
165
|
+
#
|
166
|
+
def list_types_async(location, publisher_name, custom_headers = nil)
|
104
167
|
fail ArgumentError, 'location is nil' if location.nil?
|
105
168
|
fail ArgumentError, 'publisher_name is nil' if publisher_name.nil?
|
106
169
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -117,7 +180,10 @@ module Azure::ARM::Compute
|
|
117
180
|
query_params: {'api-version' => @client.api_version},
|
118
181
|
headers: request_headers.merge(custom_headers || {})
|
119
182
|
}
|
120
|
-
|
183
|
+
|
184
|
+
request_url = @base_url || @client.base_url
|
185
|
+
|
186
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
121
187
|
promise = request.run_promise do |req|
|
122
188
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
123
189
|
end
|
@@ -141,7 +207,7 @@ module Azure::ARM::Compute
|
|
141
207
|
deserialized_array = []
|
142
208
|
parsed_response.each do |element|
|
143
209
|
unless element.nil?
|
144
|
-
element =
|
210
|
+
element = VirtualMachineExtensionImage.deserialize_object(element)
|
145
211
|
end
|
146
212
|
deserialized_array.push(element)
|
147
213
|
end
|
@@ -168,13 +234,49 @@ module Azure::ARM::Compute
|
|
168
234
|
# @param filter [String] The filter to apply on the operation.
|
169
235
|
# @param top [Integer]
|
170
236
|
# @param orderby [String]
|
171
|
-
# @param [Hash{String => String}]
|
172
|
-
#
|
237
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
238
|
+
# will be added to the HTTP request.
|
173
239
|
#
|
174
|
-
# @return [
|
175
|
-
# response.
|
240
|
+
# @return [Array] operation results.
|
176
241
|
#
|
177
242
|
def list_versions(location, publisher_name, type, filter = nil, top = nil, orderby = nil, custom_headers = nil)
|
243
|
+
response = list_versions_async(location, publisher_name, type, filter, top, orderby, custom_headers).value!
|
244
|
+
response.body unless response.nil?
|
245
|
+
end
|
246
|
+
|
247
|
+
#
|
248
|
+
# Gets a list of virtual machine extension image versions.
|
249
|
+
#
|
250
|
+
# @param location [String]
|
251
|
+
# @param publisher_name [String]
|
252
|
+
# @param type [String]
|
253
|
+
# @param filter [String] The filter to apply on the operation.
|
254
|
+
# @param top [Integer]
|
255
|
+
# @param orderby [String]
|
256
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
257
|
+
# will be added to the HTTP request.
|
258
|
+
#
|
259
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
260
|
+
#
|
261
|
+
def list_versions_with_http_info(location, publisher_name, type, filter = nil, top = nil, orderby = nil, custom_headers = nil)
|
262
|
+
list_versions_async(location, publisher_name, type, filter, top, orderby, custom_headers).value!
|
263
|
+
end
|
264
|
+
|
265
|
+
#
|
266
|
+
# Gets a list of virtual machine extension image versions.
|
267
|
+
#
|
268
|
+
# @param location [String]
|
269
|
+
# @param publisher_name [String]
|
270
|
+
# @param type [String]
|
271
|
+
# @param filter [String] The filter to apply on the operation.
|
272
|
+
# @param top [Integer]
|
273
|
+
# @param orderby [String]
|
274
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
275
|
+
# to the HTTP request.
|
276
|
+
#
|
277
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
278
|
+
#
|
279
|
+
def list_versions_async(location, publisher_name, type, filter = nil, top = nil, orderby = nil, custom_headers = nil)
|
178
280
|
fail ArgumentError, 'location is nil' if location.nil?
|
179
281
|
fail ArgumentError, 'publisher_name is nil' if publisher_name.nil?
|
180
282
|
fail ArgumentError, 'type is nil' if type.nil?
|
@@ -192,7 +294,10 @@ module Azure::ARM::Compute
|
|
192
294
|
query_params: {'$filter' => filter,'$top' => top,'$orderby' => orderby,'api-version' => @client.api_version},
|
193
295
|
headers: request_headers.merge(custom_headers || {})
|
194
296
|
}
|
195
|
-
|
297
|
+
|
298
|
+
request_url = @base_url || @client.base_url
|
299
|
+
|
300
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
196
301
|
promise = request.run_promise do |req|
|
197
302
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
198
303
|
end
|
@@ -216,7 +321,7 @@ module Azure::ARM::Compute
|
|
216
321
|
deserialized_array = []
|
217
322
|
parsed_response.each do |element|
|
218
323
|
unless element.nil?
|
219
|
-
element =
|
324
|
+
element = VirtualMachineExtensionImage.deserialize_object(element)
|
220
325
|
end
|
221
326
|
deserialized_array.push(element)
|
222
327
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -43,7 +43,7 @@ module Azure::ARM::Compute
|
|
43
43
|
#
|
44
44
|
def create_or_update(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers = nil)
|
45
45
|
# Send request
|
46
|
-
promise =
|
46
|
+
promise = begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers)
|
47
47
|
|
48
48
|
promise = promise.then do |response|
|
49
49
|
# Defining deserialization method.
|
@@ -54,7 +54,7 @@ module Azure::ARM::Compute
|
|
54
54
|
end
|
55
55
|
|
56
56
|
# Waiting for response.
|
57
|
-
@client.
|
57
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
58
58
|
end
|
59
59
|
|
60
60
|
promise
|
@@ -69,13 +69,49 @@ module Azure::ARM::Compute
|
|
69
69
|
# @param vm_extension_name [String] The name of the virtual machine extension.
|
70
70
|
# @param extension_parameters [VirtualMachineExtension] Parameters supplied to
|
71
71
|
# the Create Virtual Machine Extension operation.
|
72
|
-
# @param [Hash{String => String}]
|
73
|
-
#
|
72
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
73
|
+
# will be added to the HTTP request.
|
74
74
|
#
|
75
|
-
# @return [
|
76
|
-
# response.
|
75
|
+
# @return [VirtualMachineExtension] operation results.
|
77
76
|
#
|
78
77
|
def begin_create_or_update(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers = nil)
|
78
|
+
response = begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers).value!
|
79
|
+
response.body unless response.nil?
|
80
|
+
end
|
81
|
+
|
82
|
+
#
|
83
|
+
# The operation to create or update the extension.
|
84
|
+
#
|
85
|
+
# @param resource_group_name [String] The name of the resource group.
|
86
|
+
# @param vm_name [String] The name of the virtual machine where the extension
|
87
|
+
# should be create or updated.
|
88
|
+
# @param vm_extension_name [String] The name of the virtual machine extension.
|
89
|
+
# @param extension_parameters [VirtualMachineExtension] Parameters supplied to
|
90
|
+
# the Create Virtual Machine Extension operation.
|
91
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
92
|
+
# will be added to the HTTP request.
|
93
|
+
#
|
94
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
95
|
+
#
|
96
|
+
def begin_create_or_update_with_http_info(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers = nil)
|
97
|
+
begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers).value!
|
98
|
+
end
|
99
|
+
|
100
|
+
#
|
101
|
+
# The operation to create or update the extension.
|
102
|
+
#
|
103
|
+
# @param resource_group_name [String] The name of the resource group.
|
104
|
+
# @param vm_name [String] The name of the virtual machine where the extension
|
105
|
+
# should be create or updated.
|
106
|
+
# @param vm_extension_name [String] The name of the virtual machine extension.
|
107
|
+
# @param extension_parameters [VirtualMachineExtension] Parameters supplied to
|
108
|
+
# the Create Virtual Machine Extension operation.
|
109
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
110
|
+
# to the HTTP request.
|
111
|
+
#
|
112
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
113
|
+
#
|
114
|
+
def begin_create_or_update_async(resource_group_name, vm_name, vm_extension_name, extension_parameters, custom_headers = nil)
|
79
115
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
80
116
|
fail ArgumentError, 'vm_name is nil' if vm_name.nil?
|
81
117
|
fail ArgumentError, 'vm_extension_name is nil' if vm_extension_name.nil?
|
@@ -94,7 +130,7 @@ module Azure::ARM::Compute
|
|
94
130
|
unless extension_parameters.nil?
|
95
131
|
extension_parameters = VirtualMachineExtension.serialize_object(extension_parameters)
|
96
132
|
end
|
97
|
-
request_content = JSON.generate(extension_parameters, quirks_mode: true)
|
133
|
+
request_content = extension_parameters != nil ? JSON.generate(extension_parameters, quirks_mode: true) : nil
|
98
134
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}'
|
99
135
|
options = {
|
100
136
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -103,7 +139,10 @@ module Azure::ARM::Compute
|
|
103
139
|
body: request_content,
|
104
140
|
headers: request_headers.merge(custom_headers || {})
|
105
141
|
}
|
106
|
-
|
142
|
+
|
143
|
+
request_url = @base_url || @client.base_url
|
144
|
+
|
145
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options)
|
107
146
|
promise = request.run_promise do |req|
|
108
147
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
109
148
|
end
|
@@ -162,7 +201,7 @@ module Azure::ARM::Compute
|
|
162
201
|
#
|
163
202
|
def delete(resource_group_name, vm_name, vm_extension_name, custom_headers = nil)
|
164
203
|
# Send request
|
165
|
-
promise =
|
204
|
+
promise = begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers)
|
166
205
|
|
167
206
|
promise = promise.then do |response|
|
168
207
|
# Defining deserialization method.
|
@@ -170,7 +209,7 @@ module Azure::ARM::Compute
|
|
170
209
|
end
|
171
210
|
|
172
211
|
# Waiting for response.
|
173
|
-
@client.
|
212
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
174
213
|
end
|
175
214
|
|
176
215
|
promise
|
@@ -183,13 +222,44 @@ module Azure::ARM::Compute
|
|
183
222
|
# @param vm_name [String] The name of the virtual machine where the extension
|
184
223
|
# should be deleted.
|
185
224
|
# @param vm_extension_name [String] The name of the virtual machine extension.
|
186
|
-
# @param [Hash{String => String}]
|
187
|
-
#
|
225
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
226
|
+
# will be added to the HTTP request.
|
188
227
|
#
|
189
|
-
# @return [Concurrent::Promise] Promise object which allows to get HTTP
|
190
|
-
# response.
|
191
228
|
#
|
192
229
|
def begin_delete(resource_group_name, vm_name, vm_extension_name, custom_headers = nil)
|
230
|
+
response = begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers).value!
|
231
|
+
nil
|
232
|
+
end
|
233
|
+
|
234
|
+
#
|
235
|
+
# The operation to delete the extension.
|
236
|
+
#
|
237
|
+
# @param resource_group_name [String] The name of the resource group.
|
238
|
+
# @param vm_name [String] The name of the virtual machine where the extension
|
239
|
+
# should be deleted.
|
240
|
+
# @param vm_extension_name [String] The name of the virtual machine extension.
|
241
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
242
|
+
# will be added to the HTTP request.
|
243
|
+
#
|
244
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
245
|
+
#
|
246
|
+
def begin_delete_with_http_info(resource_group_name, vm_name, vm_extension_name, custom_headers = nil)
|
247
|
+
begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers).value!
|
248
|
+
end
|
249
|
+
|
250
|
+
#
|
251
|
+
# The operation to delete the extension.
|
252
|
+
#
|
253
|
+
# @param resource_group_name [String] The name of the resource group.
|
254
|
+
# @param vm_name [String] The name of the virtual machine where the extension
|
255
|
+
# should be deleted.
|
256
|
+
# @param vm_extension_name [String] The name of the virtual machine extension.
|
257
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
258
|
+
# to the HTTP request.
|
259
|
+
#
|
260
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
261
|
+
#
|
262
|
+
def begin_delete_async(resource_group_name, vm_name, vm_extension_name, custom_headers = nil)
|
193
263
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
194
264
|
fail ArgumentError, 'vm_name is nil' if vm_name.nil?
|
195
265
|
fail ArgumentError, 'vm_extension_name is nil' if vm_extension_name.nil?
|
@@ -207,7 +277,10 @@ module Azure::ARM::Compute
|
|
207
277
|
query_params: {'api-version' => @client.api_version},
|
208
278
|
headers: request_headers.merge(custom_headers || {})
|
209
279
|
}
|
210
|
-
|
280
|
+
|
281
|
+
request_url = @base_url || @client.base_url
|
282
|
+
|
283
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options)
|
211
284
|
promise = request.run_promise do |req|
|
212
285
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
213
286
|
end
|
@@ -215,7 +288,7 @@ module Azure::ARM::Compute
|
|
215
288
|
promise = promise.then do |http_response|
|
216
289
|
status_code = http_response.status
|
217
290
|
response_content = http_response.body
|
218
|
-
unless status_code ==
|
291
|
+
unless status_code == 202 || status_code == 204
|
219
292
|
error_model = JSON.load(response_content)
|
220
293
|
fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
|
221
294
|
end
|
@@ -238,13 +311,47 @@ module Azure::ARM::Compute
|
|
238
311
|
# extension.
|
239
312
|
# @param vm_extension_name [String] The name of the virtual machine extension.
|
240
313
|
# @param expand [String] The expand expression to apply on the operation.
|
241
|
-
# @param [Hash{String => String}]
|
242
|
-
#
|
314
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
315
|
+
# will be added to the HTTP request.
|
243
316
|
#
|
244
|
-
# @return [
|
245
|
-
# response.
|
317
|
+
# @return [VirtualMachineExtension] operation results.
|
246
318
|
#
|
247
319
|
def get(resource_group_name, vm_name, vm_extension_name, expand = nil, custom_headers = nil)
|
320
|
+
response = get_async(resource_group_name, vm_name, vm_extension_name, expand, custom_headers).value!
|
321
|
+
response.body unless response.nil?
|
322
|
+
end
|
323
|
+
|
324
|
+
#
|
325
|
+
# The operation to get the extension.
|
326
|
+
#
|
327
|
+
# @param resource_group_name [String] The name of the resource group.
|
328
|
+
# @param vm_name [String] The name of the virtual machine containing the
|
329
|
+
# extension.
|
330
|
+
# @param vm_extension_name [String] The name of the virtual machine extension.
|
331
|
+
# @param expand [String] The expand expression to apply on the operation.
|
332
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
333
|
+
# will be added to the HTTP request.
|
334
|
+
#
|
335
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
336
|
+
#
|
337
|
+
def get_with_http_info(resource_group_name, vm_name, vm_extension_name, expand = nil, custom_headers = nil)
|
338
|
+
get_async(resource_group_name, vm_name, vm_extension_name, expand, custom_headers).value!
|
339
|
+
end
|
340
|
+
|
341
|
+
#
|
342
|
+
# The operation to get the extension.
|
343
|
+
#
|
344
|
+
# @param resource_group_name [String] The name of the resource group.
|
345
|
+
# @param vm_name [String] The name of the virtual machine containing the
|
346
|
+
# extension.
|
347
|
+
# @param vm_extension_name [String] The name of the virtual machine extension.
|
348
|
+
# @param expand [String] The expand expression to apply on the operation.
|
349
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
350
|
+
# to the HTTP request.
|
351
|
+
#
|
352
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
353
|
+
#
|
354
|
+
def get_async(resource_group_name, vm_name, vm_extension_name, expand = nil, custom_headers = nil)
|
248
355
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
249
356
|
fail ArgumentError, 'vm_name is nil' if vm_name.nil?
|
250
357
|
fail ArgumentError, 'vm_extension_name is nil' if vm_extension_name.nil?
|
@@ -262,7 +369,10 @@ module Azure::ARM::Compute
|
|
262
369
|
query_params: {'$expand' => expand,'api-version' => @client.api_version},
|
263
370
|
headers: request_headers.merge(custom_headers || {})
|
264
371
|
}
|
265
|
-
|
372
|
+
|
373
|
+
request_url = @base_url || @client.base_url
|
374
|
+
|
375
|
+
request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
|
266
376
|
promise = request.run_promise do |req|
|
267
377
|
@client.credentials.sign_request(req) unless @client.credentials.nil?
|
268
378
|
end
|