haipa_compute 0.1.0 → 0.2.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.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/lib/1.0/generated/haipa_compute.rb +3 -3
  3. data/lib/1.0/generated/haipa_compute/haipa_compute.rb +5 -5
  4. data/lib/1.0/generated/haipa_compute/machines.rb +27 -39
  5. data/lib/1.0/generated/haipa_compute/models/agent.rb +2 -2
  6. data/lib/1.0/generated/haipa_compute/models/agent_network.rb +2 -2
  7. data/lib/1.0/generated/haipa_compute/models/machine.rb +2 -2
  8. data/lib/1.0/generated/haipa_compute/models/machine_config.rb +24 -2
  9. data/lib/1.0/generated/haipa_compute/models/machine_network.rb +2 -2
  10. data/lib/1.0/generated/haipa_compute/models/machine_network_config.rb +2 -2
  11. data/lib/1.0/generated/haipa_compute/models/machine_subnet_config.rb +2 -2
  12. data/lib/1.0/generated/haipa_compute/models/network.rb +2 -2
  13. data/lib/1.0/generated/haipa_compute/models/odata_value_ienumerable_machine.rb +2 -2
  14. data/lib/1.0/generated/haipa_compute/models/odata_value_ienumerable_operation.rb +2 -2
  15. data/lib/1.0/generated/haipa_compute/models/odata_value_ienumerable_operation_log.rb +2 -2
  16. data/lib/1.0/generated/haipa_compute/models/operation.rb +2 -2
  17. data/lib/1.0/generated/haipa_compute/models/operation_log.rb +2 -2
  18. data/lib/1.0/generated/haipa_compute/models/subnet.rb +2 -2
  19. data/lib/1.0/generated/haipa_compute/models/virtual_machine.rb +2 -2
  20. data/lib/1.0/generated/haipa_compute/models/virtual_machine_config.rb +22 -11
  21. data/lib/1.0/generated/haipa_compute/models/virtual_machine_cpu_config.rb +2 -2
  22. data/lib/1.0/generated/haipa_compute/models/{virtual_machine_disk_config.rb → virtual_machine_drive_config.rb} +32 -9
  23. data/lib/1.0/generated/haipa_compute/models/virtual_machine_memory_config.rb +2 -2
  24. data/lib/1.0/generated/haipa_compute/models/virtual_machine_network_adapter.rb +2 -2
  25. data/lib/1.0/generated/haipa_compute/models/virtual_machine_network_adapter_config.rb +2 -2
  26. data/lib/1.0/generated/haipa_compute/models/virtual_machine_provisioning_config.rb +13 -2
  27. data/lib/1.0/generated/haipa_compute/module_definition.rb +1 -1
  28. data/lib/1.0/generated/haipa_compute/networks.rb +20 -30
  29. data/lib/1.0/generated/haipa_compute/operations.rb +14 -20
  30. data/lib/1.0/generated/haipa_compute/subnets.rb +5 -7
  31. data/lib/version.rb +1 -1
  32. metadata +3 -3
@@ -6,4 +6,4 @@
6
6
  module Haipa end
7
7
  module Haipa::Client end
8
8
  module Haipa::Client::Compute end
9
- module Haipa::Client::Compute::V1_0 end
9
+ module Haipa::Client::Compute::V1 end
@@ -3,12 +3,12 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Haipa::Client::Compute::V1_0
6
+ module Haipa::Client::Compute::V1
7
7
  #
8
8
  # Haipa management API
9
9
  #
10
10
  class Networks
11
- include Haipa::Client
11
+ include MsRestAzure
12
12
 
13
13
  #
14
14
  # Creates and initializes a new instance of the Networks class.
@@ -41,7 +41,7 @@ module Haipa::Client::Compute::V1_0
41
41
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
42
42
  # will be added to the HTTP request.
43
43
  #
44
- # @return [Haipa::Client::HaipaOperationResponse] HTTP response information.
44
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
45
45
  #
46
46
  def list_with_http_info(select:nil, expand:nil, custom_headers:nil)
47
47
  list_async(select:select, expand:expand, custom_headers:custom_headers).value!
@@ -70,7 +70,7 @@ module Haipa::Client::Compute::V1_0
70
70
  request_url = @base_url || @client.base_url
71
71
 
72
72
  options = {
73
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02]],
73
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
74
74
  query_params: {'$select' => select,'$expand' => expand},
75
75
  headers: request_headers.merge(custom_headers || {}),
76
76
  base_url: request_url
@@ -83,12 +83,10 @@ module Haipa::Client::Compute::V1_0
83
83
  response_content = http_response.body
84
84
  unless status_code == 200
85
85
  error_model = JSON.load(response_content)
86
- fail Haipa::Client::HaipaOperationError.new(result.request, http_response, error_model)
86
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
87
87
  end
88
88
 
89
89
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
90
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
91
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
92
90
 
93
91
  result
94
92
  end
@@ -112,7 +110,7 @@ module Haipa::Client::Compute::V1_0
112
110
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
113
111
  # will be added to the HTTP request.
114
112
  #
115
- # @return [Haipa::Client::HaipaOperationResponse] HTTP response information.
113
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
116
114
  #
117
115
  def create_with_http_info(network:nil, custom_headers:nil)
118
116
  create_async(network:network, custom_headers:custom_headers).value!
@@ -136,7 +134,7 @@ module Haipa::Client::Compute::V1_0
136
134
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
137
135
 
138
136
  # Serialize Request
139
- request_mapper = Haipa::Client::Compute::V1_0::Models::Network.mapper()
137
+ request_mapper = Haipa::Client::Compute::V1::Models::Network.mapper()
140
138
  request_content = @client.serialize(request_mapper, network)
141
139
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
142
140
 
@@ -145,7 +143,7 @@ module Haipa::Client::Compute::V1_0
145
143
  request_url = @base_url || @client.base_url
146
144
 
147
145
  options = {
148
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02]],
146
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
149
147
  body: request_content,
150
148
  headers: request_headers.merge(custom_headers || {}),
151
149
  base_url: request_url
@@ -158,12 +156,10 @@ module Haipa::Client::Compute::V1_0
158
156
  response_content = http_response.body
159
157
  unless status_code == 200
160
158
  error_model = JSON.load(response_content)
161
- fail Haipa::Client::HaipaOperationError.new(result.request, http_response, error_model)
159
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
162
160
  end
163
161
 
164
162
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
165
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
166
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
167
163
 
168
164
  result
169
165
  end
@@ -193,7 +189,7 @@ module Haipa::Client::Compute::V1_0
193
189
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
194
190
  # will be added to the HTTP request.
195
191
  #
196
- # @return [Haipa::Client::HaipaOperationResponse] HTTP response information.
192
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
197
193
  #
198
194
  def get_with_http_info(key, select:nil, expand:nil, custom_headers:nil)
199
195
  get_async(key, select:select, expand:expand, custom_headers:custom_headers).value!
@@ -224,7 +220,7 @@ module Haipa::Client::Compute::V1_0
224
220
  request_url = @base_url || @client.base_url
225
221
 
226
222
  options = {
227
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02]],
223
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
228
224
  path_params: {'key' => key},
229
225
  query_params: {'$select' => select,'$expand' => expand},
230
226
  headers: request_headers.merge(custom_headers || {}),
@@ -238,12 +234,10 @@ module Haipa::Client::Compute::V1_0
238
234
  response_content = http_response.body
239
235
  unless status_code == 200
240
236
  error_model = JSON.load(response_content)
241
- fail Haipa::Client::HaipaOperationError.new(result.request, http_response, error_model)
237
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
242
238
  end
243
239
 
244
240
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
245
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
246
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
247
241
 
248
242
  result
249
243
  end
@@ -269,7 +263,7 @@ module Haipa::Client::Compute::V1_0
269
263
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
270
264
  # will be added to the HTTP request.
271
265
  #
272
- # @return [Haipa::Client::HaipaOperationResponse] HTTP response information.
266
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
273
267
  #
274
268
  def update_with_http_info(key, update:nil, custom_headers:nil)
275
269
  update_async(key, update:update, custom_headers:custom_headers).value!
@@ -295,7 +289,7 @@ module Haipa::Client::Compute::V1_0
295
289
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
296
290
 
297
291
  # Serialize Request
298
- request_mapper = Haipa::Client::Compute::V1_0::Models::Network.mapper()
292
+ request_mapper = Haipa::Client::Compute::V1::Models::Network.mapper()
299
293
  request_content = @client.serialize(request_mapper, update)
300
294
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
301
295
 
@@ -304,7 +298,7 @@ module Haipa::Client::Compute::V1_0
304
298
  request_url = @base_url || @client.base_url
305
299
 
306
300
  options = {
307
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02]],
301
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
308
302
  path_params: {'key' => key},
309
303
  body: request_content,
310
304
  headers: request_headers.merge(custom_headers || {}),
@@ -318,12 +312,10 @@ module Haipa::Client::Compute::V1_0
318
312
  response_content = http_response.body
319
313
  unless status_code == 200
320
314
  error_model = JSON.load(response_content)
321
- fail Haipa::Client::HaipaOperationError.new(result.request, http_response, error_model)
315
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
322
316
  end
323
317
 
324
318
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
325
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
326
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
327
319
 
328
320
  result
329
321
  end
@@ -349,7 +341,7 @@ module Haipa::Client::Compute::V1_0
349
341
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
350
342
  # will be added to the HTTP request.
351
343
  #
352
- # @return [Haipa::Client::HaipaOperationResponse] HTTP response information.
344
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
353
345
  #
354
346
  def patch_with_http_info(key, product:nil, custom_headers:nil)
355
347
  patch_async(key, product:product, custom_headers:custom_headers).value!
@@ -375,7 +367,7 @@ module Haipa::Client::Compute::V1_0
375
367
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
376
368
 
377
369
  # Serialize Request
378
- request_mapper = Haipa::Client::Compute::V1_0::Models::Network.mapper()
370
+ request_mapper = Haipa::Client::Compute::V1::Models::Network.mapper()
379
371
  request_content = @client.serialize(request_mapper, product)
380
372
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
381
373
 
@@ -384,7 +376,7 @@ module Haipa::Client::Compute::V1_0
384
376
  request_url = @base_url || @client.base_url
385
377
 
386
378
  options = {
387
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02]],
379
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
388
380
  path_params: {'key' => key},
389
381
  body: request_content,
390
382
  headers: request_headers.merge(custom_headers || {}),
@@ -398,12 +390,10 @@ module Haipa::Client::Compute::V1_0
398
390
  response_content = http_response.body
399
391
  unless status_code == 200
400
392
  error_model = JSON.load(response_content)
401
- fail Haipa::Client::HaipaOperationError.new(result.request, http_response, error_model)
393
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
402
394
  end
403
395
 
404
396
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
405
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
406
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
407
397
 
408
398
  result
409
399
  end
@@ -3,12 +3,12 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Haipa::Client::Compute::V1_0
6
+ module Haipa::Client::Compute::V1
7
7
  #
8
8
  # Haipa management API
9
9
  #
10
10
  class Operations
11
- include Haipa::Client
11
+ include MsRestAzure
12
12
 
13
13
  #
14
14
  # Creates and initializes a new instance of the Operations class.
@@ -60,7 +60,7 @@ module Haipa::Client::Compute::V1_0
60
60
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
61
61
  # will be added to the HTTP request.
62
62
  #
63
- # @return [Haipa::Client::HaipaOperationResponse] HTTP response information.
63
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
64
64
  #
65
65
  def list_with_http_info(select:nil, expand:nil, filter:nil, orderby:nil, top:nil, skip:nil, count:false, custom_headers:nil)
66
66
  list_async(select:select, expand:expand, filter:filter, orderby:orderby, top:top, skip:skip, count:count, custom_headers:custom_headers).value!
@@ -98,7 +98,7 @@ module Haipa::Client::Compute::V1_0
98
98
  request_url = @base_url || @client.base_url
99
99
 
100
100
  options = {
101
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02]],
101
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
102
102
  query_params: {'$select' => select,'$expand' => expand,'$filter' => filter,'$orderby' => orderby,'$top' => top,'$skip' => skip,'$count' => count},
103
103
  headers: request_headers.merge(custom_headers || {}),
104
104
  base_url: request_url
@@ -111,17 +111,15 @@ module Haipa::Client::Compute::V1_0
111
111
  response_content = http_response.body
112
112
  unless status_code == 200
113
113
  error_model = JSON.load(response_content)
114
- fail Haipa::Client::HaipaOperationError.new(result.request, http_response, error_model)
114
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
115
115
  end
116
116
 
117
117
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
118
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
119
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
120
118
  # Deserialize Response
121
119
  if status_code == 200
122
120
  begin
123
121
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
124
- result_mapper = Haipa::Client::Compute::V1_0::Models::ODataValueIEnumerableOperation.mapper()
122
+ result_mapper = Haipa::Client::Compute::V1::Models::ODataValueIEnumerableOperation.mapper()
125
123
  result.body = @client.deserialize(result_mapper, parsed_response)
126
124
  rescue Exception => e
127
125
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -157,7 +155,7 @@ module Haipa::Client::Compute::V1_0
157
155
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
158
156
  # will be added to the HTTP request.
159
157
  #
160
- # @return [Haipa::Client::HaipaOperationResponse] HTTP response information.
158
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
161
159
  #
162
160
  def get_with_http_info(key, select:nil, expand:nil, custom_headers:nil)
163
161
  get_async(key, select:select, expand:expand, custom_headers:custom_headers).value!
@@ -188,7 +186,7 @@ module Haipa::Client::Compute::V1_0
188
186
  request_url = @base_url || @client.base_url
189
187
 
190
188
  options = {
191
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02]],
189
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
192
190
  path_params: {'key' => key},
193
191
  query_params: {'$select' => select,'$expand' => expand},
194
192
  headers: request_headers.merge(custom_headers || {}),
@@ -202,17 +200,15 @@ module Haipa::Client::Compute::V1_0
202
200
  response_content = http_response.body
203
201
  unless status_code == 200
204
202
  error_model = JSON.load(response_content)
205
- fail Haipa::Client::HaipaOperationError.new(result.request, http_response, error_model)
203
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
206
204
  end
207
205
 
208
206
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
209
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
210
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
211
207
  # Deserialize Response
212
208
  if status_code == 200
213
209
  begin
214
210
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
215
- result_mapper = Haipa::Client::Compute::V1_0::Models::Operation.mapper()
211
+ result_mapper = Haipa::Client::Compute::V1::Models::Operation.mapper()
216
212
  result.body = @client.deserialize(result_mapper, parsed_response)
217
213
  rescue Exception => e
218
214
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -266,7 +262,7 @@ module Haipa::Client::Compute::V1_0
266
262
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
267
263
  # will be added to the HTTP request.
268
264
  #
269
- # @return [Haipa::Client::HaipaOperationResponse] HTTP response information.
265
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
270
266
  #
271
267
  def get_log_entries_with_http_info(key, select:nil, expand:nil, filter:nil, orderby:nil, top:nil, skip:nil, count:false, custom_headers:nil)
272
268
  get_log_entries_async(key, select:select, expand:expand, filter:filter, orderby:orderby, top:top, skip:skip, count:count, custom_headers:custom_headers).value!
@@ -306,7 +302,7 @@ module Haipa::Client::Compute::V1_0
306
302
  request_url = @base_url || @client.base_url
307
303
 
308
304
  options = {
309
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02]],
305
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
310
306
  path_params: {'key' => key},
311
307
  query_params: {'$select' => select,'$expand' => expand,'$filter' => filter,'$orderby' => orderby,'$top' => top,'$skip' => skip,'$count' => count},
312
308
  headers: request_headers.merge(custom_headers || {}),
@@ -320,17 +316,15 @@ module Haipa::Client::Compute::V1_0
320
316
  response_content = http_response.body
321
317
  unless status_code == 200
322
318
  error_model = JSON.load(response_content)
323
- fail Haipa::Client::HaipaOperationError.new(result.request, http_response, error_model)
319
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
324
320
  end
325
321
 
326
322
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
327
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
328
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
329
323
  # Deserialize Response
330
324
  if status_code == 200
331
325
  begin
332
326
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
333
- result_mapper = Haipa::Client::Compute::V1_0::Models::ODataValueIEnumerableOperationLog.mapper()
327
+ result_mapper = Haipa::Client::Compute::V1::Models::ODataValueIEnumerableOperationLog.mapper()
334
328
  result.body = @client.deserialize(result_mapper, parsed_response)
335
329
  rescue Exception => e
336
330
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -3,12 +3,12 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Haipa::Client::Compute::V1_0
6
+ module Haipa::Client::Compute::V1
7
7
  #
8
8
  # Haipa management API
9
9
  #
10
10
  class Subnets
11
- include Haipa::Client
11
+ include MsRestAzure
12
12
 
13
13
  #
14
14
  # Creates and initializes a new instance of the Subnets class.
@@ -41,7 +41,7 @@ module Haipa::Client::Compute::V1_0
41
41
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
42
42
  # will be added to the HTTP request.
43
43
  #
44
- # @return [Haipa::Client::HaipaOperationResponse] HTTP response information.
44
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
45
45
  #
46
46
  def list_with_http_info(select:nil, expand:nil, custom_headers:nil)
47
47
  list_async(select:select, expand:expand, custom_headers:custom_headers).value!
@@ -70,7 +70,7 @@ module Haipa::Client::Compute::V1_0
70
70
  request_url = @base_url || @client.base_url
71
71
 
72
72
  options = {
73
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02]],
73
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
74
74
  query_params: {'$select' => select,'$expand' => expand},
75
75
  headers: request_headers.merge(custom_headers || {}),
76
76
  base_url: request_url
@@ -83,12 +83,10 @@ module Haipa::Client::Compute::V1_0
83
83
  response_content = http_response.body
84
84
  unless status_code == 200
85
85
  error_model = JSON.load(response_content)
86
- fail Haipa::Client::HaipaOperationError.new(result.request, http_response, error_model)
86
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
87
87
  end
88
88
 
89
89
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
90
- result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
91
- result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
92
90
 
93
91
  result
94
92
  end
data/lib/version.rb CHANGED
@@ -4,5 +4,5 @@
4
4
 
5
5
  module Haipa::Client::Compute
6
6
 
7
- VERSION = '0.1.0'
7
+ VERSION = '0.2.0'
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: haipa_compute
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Haipa Contributors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-12 00:00:00.000000000 Z
11
+ date: 2019-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -107,7 +107,7 @@ files:
107
107
  - lib/1.0/generated/haipa_compute/models/virtual_machine.rb
108
108
  - lib/1.0/generated/haipa_compute/models/virtual_machine_config.rb
109
109
  - lib/1.0/generated/haipa_compute/models/virtual_machine_cpu_config.rb
110
- - lib/1.0/generated/haipa_compute/models/virtual_machine_disk_config.rb
110
+ - lib/1.0/generated/haipa_compute/models/virtual_machine_drive_config.rb
111
111
  - lib/1.0/generated/haipa_compute/models/virtual_machine_memory_config.rb
112
112
  - lib/1.0/generated/haipa_compute/models/virtual_machine_network_adapter.rb
113
113
  - lib/1.0/generated/haipa_compute/models/virtual_machine_network_adapter_config.rb