haipa_compute 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/1.0/generated/haipa_compute.rb +1 -1
- data/lib/1.0/generated/haipa_compute/haipa_compute.rb +5 -5
- data/lib/1.0/generated/haipa_compute/machines.rb +39 -27
- data/lib/1.0/generated/haipa_compute/models/agent.rb +2 -2
- data/lib/1.0/generated/haipa_compute/models/agent_network.rb +2 -2
- data/lib/1.0/generated/haipa_compute/models/machine.rb +2 -2
- data/lib/1.0/generated/haipa_compute/models/machine_config.rb +2 -2
- data/lib/1.0/generated/haipa_compute/models/machine_network.rb +2 -2
- data/lib/1.0/generated/haipa_compute/models/machine_network_config.rb +2 -2
- data/lib/1.0/generated/haipa_compute/models/machine_subnet_config.rb +2 -2
- data/lib/1.0/generated/haipa_compute/models/network.rb +2 -2
- data/lib/1.0/generated/haipa_compute/models/odata_value_ienumerable_machine.rb +2 -2
- data/lib/1.0/generated/haipa_compute/models/odata_value_ienumerable_operation.rb +2 -2
- data/lib/1.0/generated/haipa_compute/models/odata_value_ienumerable_operation_log.rb +2 -2
- data/lib/1.0/generated/haipa_compute/models/operation.rb +2 -2
- data/lib/1.0/generated/haipa_compute/models/operation_log.rb +2 -2
- data/lib/1.0/generated/haipa_compute/models/subnet.rb +2 -2
- data/lib/1.0/generated/haipa_compute/models/virtual_machine.rb +2 -2
- data/lib/1.0/generated/haipa_compute/models/virtual_machine_config.rb +2 -2
- data/lib/1.0/generated/haipa_compute/models/virtual_machine_cpu_config.rb +2 -2
- data/lib/1.0/generated/haipa_compute/models/virtual_machine_drive_config.rb +2 -2
- data/lib/1.0/generated/haipa_compute/models/virtual_machine_memory_config.rb +2 -2
- data/lib/1.0/generated/haipa_compute/models/virtual_machine_network_adapter.rb +2 -2
- data/lib/1.0/generated/haipa_compute/models/virtual_machine_network_adapter_config.rb +2 -2
- data/lib/1.0/generated/haipa_compute/models/virtual_machine_provisioning_config.rb +2 -2
- data/lib/1.0/generated/haipa_compute/module_definition.rb +1 -1
- data/lib/1.0/generated/haipa_compute/networks.rb +30 -20
- data/lib/1.0/generated/haipa_compute/operations.rb +20 -14
- data/lib/1.0/generated/haipa_compute/subnets.rb +7 -5
- data/lib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78c80e92e6f9a9c4dcb36cfa9068f855b4245d74dae441f27f3f0de9e06bb7f3
|
4
|
+
data.tar.gz: 11026b52e4656fe2d9c2e9c461b8d39ea1eaa27bc2a383ce1210eb37f797e959
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68d50f0d12ff70b41135ffe29e6987358ed6117f9b6d35cebde047464731ae773b3f436f74b963d7050a037311ad1adbe4ba3ef557765b745518a02c0bc19952
|
7
|
+
data.tar.gz: dd1facc821b0f302e044b523a159635f633c02f5cdc6fbe1303f3f2cd99c79fba65b5f3fd669ff57bb27a4e69243261db7a7d9a180ac7db9bebfbb6db0e65aef
|
@@ -19,7 +19,7 @@ require 'ms_rest'
|
|
19
19
|
require '1.0/generated/haipa_compute/module_definition'
|
20
20
|
require 'haipa_rest'
|
21
21
|
|
22
|
-
module Haipa::Client::Compute::
|
22
|
+
module Haipa::Client::Compute::V1_0
|
23
23
|
autoload :Machines, '1.0/generated/haipa_compute/machines.rb'
|
24
24
|
autoload :Networks, '1.0/generated/haipa_compute/networks.rb'
|
25
25
|
autoload :Operations, '1.0/generated/haipa_compute/operations.rb'
|
@@ -3,13 +3,13 @@
|
|
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::
|
6
|
+
module Haipa::Client::Compute::V1_0
|
7
7
|
#
|
8
8
|
# A service client - single point of access to the REST API.
|
9
9
|
#
|
10
|
-
class HaipaCompute <
|
11
|
-
include
|
12
|
-
include
|
10
|
+
class HaipaCompute < Haipa::Client::HaipaServiceClient
|
11
|
+
include Haipa::Client
|
12
|
+
include Haipa::Client::Serialization
|
13
13
|
|
14
14
|
# @return [String] the base URI of the service.
|
15
15
|
attr_accessor :base_url
|
@@ -90,7 +90,7 @@ module Haipa::Client::Compute::V1
|
|
90
90
|
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
91
91
|
# @param path [String] the path, relative to {base_url}.
|
92
92
|
# @param options [Hash{String=>String}] specifying any request options like :body.
|
93
|
-
# @return [
|
93
|
+
# @return [Haipa::Client::HaipaOperationResponse] Operation response containing the request, response and status.
|
94
94
|
#
|
95
95
|
def make_request_with_http_info(method, path, options = {})
|
96
96
|
result = make_request_async(method, path, options).value!
|
@@ -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::
|
6
|
+
module Haipa::Client::Compute::V1_0
|
7
7
|
#
|
8
8
|
# Haipa management API
|
9
9
|
#
|
10
10
|
class Machines
|
11
|
-
include
|
11
|
+
include Haipa::Client
|
12
12
|
|
13
13
|
#
|
14
14
|
# Creates and initializes a new instance of the Machines class.
|
@@ -60,7 +60,7 @@ module Haipa::Client::Compute::V1
|
|
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 [
|
63
|
+
# @return [Haipa::Client::HaipaOperationResponse] 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
|
|
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]],
|
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,15 +111,17 @@ module Haipa::Client::Compute::V1
|
|
111
111
|
response_content = http_response.body
|
112
112
|
unless status_code == 200 || status_code == 404
|
113
113
|
error_model = JSON.load(response_content)
|
114
|
-
fail
|
114
|
+
fail Haipa::Client::HaipaOperationError.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?
|
118
120
|
# Deserialize Response
|
119
121
|
if status_code == 200
|
120
122
|
begin
|
121
123
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
122
|
-
result_mapper = Haipa::Client::Compute::
|
124
|
+
result_mapper = Haipa::Client::Compute::V1_0::Models::ODataValueIEnumerableMachine.mapper()
|
123
125
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
124
126
|
rescue Exception => e
|
125
127
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -149,7 +151,7 @@ module Haipa::Client::Compute::V1
|
|
149
151
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
150
152
|
# will be added to the HTTP request.
|
151
153
|
#
|
152
|
-
# @return [
|
154
|
+
# @return [Haipa::Client::HaipaOperationResponse] HTTP response information.
|
153
155
|
#
|
154
156
|
def update_or_create_with_http_info(config:nil, custom_headers:nil)
|
155
157
|
update_or_create_async(config:config, custom_headers:custom_headers).value!
|
@@ -173,7 +175,7 @@ module Haipa::Client::Compute::V1
|
|
173
175
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
174
176
|
|
175
177
|
# Serialize Request
|
176
|
-
request_mapper = Haipa::Client::Compute::
|
178
|
+
request_mapper = Haipa::Client::Compute::V1_0::Models::MachineConfig.mapper()
|
177
179
|
request_content = @client.serialize(request_mapper, config)
|
178
180
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
179
181
|
|
@@ -182,7 +184,7 @@ module Haipa::Client::Compute::V1
|
|
182
184
|
request_url = @base_url || @client.base_url
|
183
185
|
|
184
186
|
options = {
|
185
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02]
|
187
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02]],
|
186
188
|
body: request_content,
|
187
189
|
headers: request_headers.merge(custom_headers || {}),
|
188
190
|
base_url: request_url
|
@@ -195,15 +197,17 @@ module Haipa::Client::Compute::V1
|
|
195
197
|
response_content = http_response.body
|
196
198
|
unless status_code == 200
|
197
199
|
error_model = JSON.load(response_content)
|
198
|
-
fail
|
200
|
+
fail Haipa::Client::HaipaOperationError.new(result.request, http_response, error_model)
|
199
201
|
end
|
200
202
|
|
201
203
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
204
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
205
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
202
206
|
# Deserialize Response
|
203
207
|
if status_code == 200
|
204
208
|
begin
|
205
209
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
206
|
-
result_mapper = Haipa::Client::Compute::
|
210
|
+
result_mapper = Haipa::Client::Compute::V1_0::Models::Operation.mapper()
|
207
211
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
208
212
|
rescue Exception => e
|
209
213
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -239,7 +243,7 @@ module Haipa::Client::Compute::V1
|
|
239
243
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
240
244
|
# will be added to the HTTP request.
|
241
245
|
#
|
242
|
-
# @return [
|
246
|
+
# @return [Haipa::Client::HaipaOperationResponse] HTTP response information.
|
243
247
|
#
|
244
248
|
def get_with_http_info(key, select:nil, expand:nil, custom_headers:nil)
|
245
249
|
get_async(key, select:select, expand:expand, custom_headers:custom_headers).value!
|
@@ -270,7 +274,7 @@ module Haipa::Client::Compute::V1
|
|
270
274
|
request_url = @base_url || @client.base_url
|
271
275
|
|
272
276
|
options = {
|
273
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02]
|
277
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02]],
|
274
278
|
path_params: {'key' => key},
|
275
279
|
query_params: {'$select' => select,'$expand' => expand},
|
276
280
|
headers: request_headers.merge(custom_headers || {}),
|
@@ -284,15 +288,17 @@ module Haipa::Client::Compute::V1
|
|
284
288
|
response_content = http_response.body
|
285
289
|
unless status_code == 200 || status_code == 404
|
286
290
|
error_model = JSON.load(response_content)
|
287
|
-
fail
|
291
|
+
fail Haipa::Client::HaipaOperationError.new(result.request, http_response, error_model)
|
288
292
|
end
|
289
293
|
|
290
294
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
295
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
296
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
291
297
|
# Deserialize Response
|
292
298
|
if status_code == 200
|
293
299
|
begin
|
294
300
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
295
|
-
result_mapper = Haipa::Client::Compute::
|
301
|
+
result_mapper = Haipa::Client::Compute::V1_0::Models::Machine.mapper()
|
296
302
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
297
303
|
rescue Exception => e
|
298
304
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -322,7 +328,7 @@ module Haipa::Client::Compute::V1
|
|
322
328
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
323
329
|
# will be added to the HTTP request.
|
324
330
|
#
|
325
|
-
# @return [
|
331
|
+
# @return [Haipa::Client::HaipaOperationResponse] HTTP response information.
|
326
332
|
#
|
327
333
|
def delete_with_http_info(key, custom_headers:nil)
|
328
334
|
delete_async(key, custom_headers:custom_headers).value!
|
@@ -350,7 +356,7 @@ module Haipa::Client::Compute::V1
|
|
350
356
|
request_url = @base_url || @client.base_url
|
351
357
|
|
352
358
|
options = {
|
353
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02]
|
359
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02]],
|
354
360
|
path_params: {'key' => key},
|
355
361
|
headers: request_headers.merge(custom_headers || {}),
|
356
362
|
base_url: request_url
|
@@ -363,15 +369,17 @@ module Haipa::Client::Compute::V1
|
|
363
369
|
response_content = http_response.body
|
364
370
|
unless status_code == 200
|
365
371
|
error_model = JSON.load(response_content)
|
366
|
-
fail
|
372
|
+
fail Haipa::Client::HaipaOperationError.new(result.request, http_response, error_model)
|
367
373
|
end
|
368
374
|
|
369
375
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
376
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
377
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
370
378
|
# Deserialize Response
|
371
379
|
if status_code == 200
|
372
380
|
begin
|
373
381
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
374
|
-
result_mapper = Haipa::Client::Compute::
|
382
|
+
result_mapper = Haipa::Client::Compute::V1_0::Models::Operation.mapper()
|
375
383
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
376
384
|
rescue Exception => e
|
377
385
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -407,7 +415,7 @@ module Haipa::Client::Compute::V1
|
|
407
415
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
408
416
|
# will be added to the HTTP request.
|
409
417
|
#
|
410
|
-
# @return [
|
418
|
+
# @return [Haipa::Client::HaipaOperationResponse] HTTP response information.
|
411
419
|
#
|
412
420
|
def start_with_http_info(key, select:nil, expand:nil, custom_headers:nil)
|
413
421
|
start_async(key, select:select, expand:expand, custom_headers:custom_headers).value!
|
@@ -438,7 +446,7 @@ module Haipa::Client::Compute::V1
|
|
438
446
|
request_url = @base_url || @client.base_url
|
439
447
|
|
440
448
|
options = {
|
441
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02]
|
449
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02]],
|
442
450
|
path_params: {'key' => key},
|
443
451
|
query_params: {'$select' => select,'$expand' => expand},
|
444
452
|
headers: request_headers.merge(custom_headers || {}),
|
@@ -452,15 +460,17 @@ module Haipa::Client::Compute::V1
|
|
452
460
|
response_content = http_response.body
|
453
461
|
unless status_code == 200
|
454
462
|
error_model = JSON.load(response_content)
|
455
|
-
fail
|
463
|
+
fail Haipa::Client::HaipaOperationError.new(result.request, http_response, error_model)
|
456
464
|
end
|
457
465
|
|
458
466
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
467
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
468
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
459
469
|
# Deserialize Response
|
460
470
|
if status_code == 200
|
461
471
|
begin
|
462
472
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
463
|
-
result_mapper = Haipa::Client::Compute::
|
473
|
+
result_mapper = Haipa::Client::Compute::V1_0::Models::Operation.mapper()
|
464
474
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
465
475
|
rescue Exception => e
|
466
476
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -496,7 +506,7 @@ module Haipa::Client::Compute::V1
|
|
496
506
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
497
507
|
# will be added to the HTTP request.
|
498
508
|
#
|
499
|
-
# @return [
|
509
|
+
# @return [Haipa::Client::HaipaOperationResponse] HTTP response information.
|
500
510
|
#
|
501
511
|
def stop_with_http_info(key, select:nil, expand:nil, custom_headers:nil)
|
502
512
|
stop_async(key, select:select, expand:expand, custom_headers:custom_headers).value!
|
@@ -527,7 +537,7 @@ module Haipa::Client::Compute::V1
|
|
527
537
|
request_url = @base_url || @client.base_url
|
528
538
|
|
529
539
|
options = {
|
530
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02]
|
540
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02]],
|
531
541
|
path_params: {'key' => key},
|
532
542
|
query_params: {'$select' => select,'$expand' => expand},
|
533
543
|
headers: request_headers.merge(custom_headers || {}),
|
@@ -541,15 +551,17 @@ module Haipa::Client::Compute::V1
|
|
541
551
|
response_content = http_response.body
|
542
552
|
unless status_code == 200
|
543
553
|
error_model = JSON.load(response_content)
|
544
|
-
fail
|
554
|
+
fail Haipa::Client::HaipaOperationError.new(result.request, http_response, error_model)
|
545
555
|
end
|
546
556
|
|
547
557
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
558
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
559
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
548
560
|
# Deserialize Response
|
549
561
|
if status_code == 200
|
550
562
|
begin
|
551
563
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
552
|
-
result_mapper = Haipa::Client::Compute::
|
564
|
+
result_mapper = Haipa::Client::Compute::V1_0::Models::Operation.mapper()
|
553
565
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
554
566
|
rescue Exception => e
|
555
567
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -3,7 +3,7 @@
|
|
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::
|
6
|
+
module Haipa::Client::Compute::V1_0
|
7
7
|
module Models
|
8
8
|
#
|
9
9
|
# Model object.
|
@@ -11,7 +11,7 @@ module Haipa::Client::Compute::V1
|
|
11
11
|
#
|
12
12
|
class Agent
|
13
13
|
|
14
|
-
include
|
14
|
+
include Haipa::Client
|
15
15
|
|
16
16
|
# @return [String]
|
17
17
|
attr_accessor :name
|
@@ -3,7 +3,7 @@
|
|
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::
|
6
|
+
module Haipa::Client::Compute::V1_0
|
7
7
|
module Models
|
8
8
|
#
|
9
9
|
# Model object.
|
@@ -11,7 +11,7 @@ module Haipa::Client::Compute::V1
|
|
11
11
|
#
|
12
12
|
class AgentNetwork
|
13
13
|
|
14
|
-
include
|
14
|
+
include Haipa::Client
|
15
15
|
|
16
16
|
# @return [Network]
|
17
17
|
attr_accessor :network
|
@@ -3,7 +3,7 @@
|
|
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::
|
6
|
+
module Haipa::Client::Compute::V1_0
|
7
7
|
module Models
|
8
8
|
#
|
9
9
|
# Model object.
|
@@ -11,7 +11,7 @@ module Haipa::Client::Compute::V1
|
|
11
11
|
#
|
12
12
|
class Machine
|
13
13
|
|
14
|
-
include
|
14
|
+
include Haipa::Client
|
15
15
|
|
16
16
|
# @return
|
17
17
|
attr_accessor :id
|
@@ -3,7 +3,7 @@
|
|
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::
|
6
|
+
module Haipa::Client::Compute::V1_0
|
7
7
|
module Models
|
8
8
|
#
|
9
9
|
# Model object.
|
@@ -11,7 +11,7 @@ module Haipa::Client::Compute::V1
|
|
11
11
|
#
|
12
12
|
class MachineConfig
|
13
13
|
|
14
|
-
include
|
14
|
+
include Haipa::Client
|
15
15
|
|
16
16
|
# @return [String]
|
17
17
|
attr_accessor :name
|
@@ -3,7 +3,7 @@
|
|
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::
|
6
|
+
module Haipa::Client::Compute::V1_0
|
7
7
|
module Models
|
8
8
|
#
|
9
9
|
# Model object.
|
@@ -11,7 +11,7 @@ module Haipa::Client::Compute::V1
|
|
11
11
|
#
|
12
12
|
class MachineNetwork
|
13
13
|
|
14
|
-
include
|
14
|
+
include Haipa::Client
|
15
15
|
|
16
16
|
# @return
|
17
17
|
attr_accessor :machine_id
|
@@ -3,7 +3,7 @@
|
|
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::
|
6
|
+
module Haipa::Client::Compute::V1_0
|
7
7
|
module Models
|
8
8
|
#
|
9
9
|
# Model object.
|
@@ -11,7 +11,7 @@ module Haipa::Client::Compute::V1
|
|
11
11
|
#
|
12
12
|
class MachineNetworkConfig
|
13
13
|
|
14
|
-
include
|
14
|
+
include Haipa::Client
|
15
15
|
|
16
16
|
# @return [String]
|
17
17
|
attr_accessor :adapter_name
|
@@ -3,7 +3,7 @@
|
|
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::
|
6
|
+
module Haipa::Client::Compute::V1_0
|
7
7
|
module Models
|
8
8
|
#
|
9
9
|
# Model object.
|
@@ -11,7 +11,7 @@ module Haipa::Client::Compute::V1
|
|
11
11
|
#
|
12
12
|
class MachineSubnetConfig
|
13
13
|
|
14
|
-
include
|
14
|
+
include Haipa::Client
|
15
15
|
|
16
16
|
# @return [String]
|
17
17
|
attr_accessor :type
|
@@ -3,7 +3,7 @@
|
|
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::
|
6
|
+
module Haipa::Client::Compute::V1_0
|
7
7
|
module Models
|
8
8
|
#
|
9
9
|
# Model object.
|
@@ -11,7 +11,7 @@ module Haipa::Client::Compute::V1
|
|
11
11
|
#
|
12
12
|
class Network
|
13
13
|
|
14
|
-
include
|
14
|
+
include Haipa::Client
|
15
15
|
|
16
16
|
# @return
|
17
17
|
attr_accessor :id
|
@@ -3,7 +3,7 @@
|
|
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::
|
6
|
+
module Haipa::Client::Compute::V1_0
|
7
7
|
module Models
|
8
8
|
#
|
9
9
|
# Model object.
|
@@ -11,7 +11,7 @@ module Haipa::Client::Compute::V1
|
|
11
11
|
#
|
12
12
|
class ODataValueIEnumerableMachine
|
13
13
|
|
14
|
-
include
|
14
|
+
include Haipa::Client
|
15
15
|
|
16
16
|
# @return [Array<Machine>]
|
17
17
|
attr_accessor :value
|
@@ -3,7 +3,7 @@
|
|
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::
|
6
|
+
module Haipa::Client::Compute::V1_0
|
7
7
|
module Models
|
8
8
|
#
|
9
9
|
# Model object.
|
@@ -11,7 +11,7 @@ module Haipa::Client::Compute::V1
|
|
11
11
|
#
|
12
12
|
class ODataValueIEnumerableOperation
|
13
13
|
|
14
|
-
include
|
14
|
+
include Haipa::Client
|
15
15
|
|
16
16
|
# @return [Array<Operation>]
|
17
17
|
attr_accessor :value
|
@@ -3,7 +3,7 @@
|
|
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::
|
6
|
+
module Haipa::Client::Compute::V1_0
|
7
7
|
module Models
|
8
8
|
#
|
9
9
|
# Model object.
|
@@ -11,7 +11,7 @@ module Haipa::Client::Compute::V1
|
|
11
11
|
#
|
12
12
|
class ODataValueIEnumerableOperationLog
|
13
13
|
|
14
|
-
include
|
14
|
+
include Haipa::Client
|
15
15
|
|
16
16
|
# @return [Array<OperationLog>]
|
17
17
|
attr_accessor :value
|
@@ -3,7 +3,7 @@
|
|
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::
|
6
|
+
module Haipa::Client::Compute::V1_0
|
7
7
|
module Models
|
8
8
|
#
|
9
9
|
# Model object.
|
@@ -11,7 +11,7 @@ module Haipa::Client::Compute::V1
|
|
11
11
|
#
|
12
12
|
class Operation
|
13
13
|
|
14
|
-
include
|
14
|
+
include Haipa::Client
|
15
15
|
|
16
16
|
# @return
|
17
17
|
attr_accessor :id
|
@@ -3,7 +3,7 @@
|
|
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::
|
6
|
+
module Haipa::Client::Compute::V1_0
|
7
7
|
module Models
|
8
8
|
#
|
9
9
|
# Model object.
|
@@ -11,7 +11,7 @@ module Haipa::Client::Compute::V1
|
|
11
11
|
#
|
12
12
|
class OperationLog
|
13
13
|
|
14
|
-
include
|
14
|
+
include Haipa::Client
|
15
15
|
|
16
16
|
# @return
|
17
17
|
attr_accessor :id
|
@@ -3,7 +3,7 @@
|
|
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::
|
6
|
+
module Haipa::Client::Compute::V1_0
|
7
7
|
module Models
|
8
8
|
#
|
9
9
|
# Model object.
|
@@ -11,7 +11,7 @@ module Haipa::Client::Compute::V1
|
|
11
11
|
#
|
12
12
|
class Subnet
|
13
13
|
|
14
|
-
include
|
14
|
+
include Haipa::Client
|
15
15
|
|
16
16
|
# @return
|
17
17
|
attr_accessor :id
|
@@ -3,7 +3,7 @@
|
|
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::
|
6
|
+
module Haipa::Client::Compute::V1_0
|
7
7
|
module Models
|
8
8
|
#
|
9
9
|
# Model object.
|
@@ -11,7 +11,7 @@ module Haipa::Client::Compute::V1
|
|
11
11
|
#
|
12
12
|
class VirtualMachine
|
13
13
|
|
14
|
-
include
|
14
|
+
include Haipa::Client
|
15
15
|
|
16
16
|
# @return
|
17
17
|
attr_accessor :id
|
@@ -3,7 +3,7 @@
|
|
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::
|
6
|
+
module Haipa::Client::Compute::V1_0
|
7
7
|
module Models
|
8
8
|
#
|
9
9
|
# Model object.
|
@@ -11,7 +11,7 @@ module Haipa::Client::Compute::V1
|
|
11
11
|
#
|
12
12
|
class VirtualMachineConfig
|
13
13
|
|
14
|
-
include
|
14
|
+
include Haipa::Client
|
15
15
|
|
16
16
|
# @return [String]
|
17
17
|
attr_accessor :slug
|
@@ -3,7 +3,7 @@
|
|
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::
|
6
|
+
module Haipa::Client::Compute::V1_0
|
7
7
|
module Models
|
8
8
|
#
|
9
9
|
# Model object.
|
@@ -11,7 +11,7 @@ module Haipa::Client::Compute::V1
|
|
11
11
|
#
|
12
12
|
class VirtualMachineCpuConfig
|
13
13
|
|
14
|
-
include
|
14
|
+
include Haipa::Client
|
15
15
|
|
16
16
|
# @return [Integer]
|
17
17
|
attr_accessor :count
|
@@ -3,7 +3,7 @@
|
|
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::
|
6
|
+
module Haipa::Client::Compute::V1_0
|
7
7
|
module Models
|
8
8
|
#
|
9
9
|
# Model object.
|
@@ -11,7 +11,7 @@ module Haipa::Client::Compute::V1
|
|
11
11
|
#
|
12
12
|
class VirtualMachineDriveConfig
|
13
13
|
|
14
|
-
include
|
14
|
+
include Haipa::Client
|
15
15
|
|
16
16
|
# @return [String]
|
17
17
|
attr_accessor :name
|
@@ -3,7 +3,7 @@
|
|
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::
|
6
|
+
module Haipa::Client::Compute::V1_0
|
7
7
|
module Models
|
8
8
|
#
|
9
9
|
# Model object.
|
@@ -11,7 +11,7 @@ module Haipa::Client::Compute::V1
|
|
11
11
|
#
|
12
12
|
class VirtualMachineMemoryConfig
|
13
13
|
|
14
|
-
include
|
14
|
+
include Haipa::Client
|
15
15
|
|
16
16
|
# @return [Integer]
|
17
17
|
attr_accessor :startup
|
@@ -3,7 +3,7 @@
|
|
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::
|
6
|
+
module Haipa::Client::Compute::V1_0
|
7
7
|
module Models
|
8
8
|
#
|
9
9
|
# Model object.
|
@@ -11,7 +11,7 @@ module Haipa::Client::Compute::V1
|
|
11
11
|
#
|
12
12
|
class VirtualMachineNetworkAdapter
|
13
13
|
|
14
|
-
include
|
14
|
+
include Haipa::Client
|
15
15
|
|
16
16
|
# @return
|
17
17
|
attr_accessor :machine_id
|
@@ -3,7 +3,7 @@
|
|
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::
|
6
|
+
module Haipa::Client::Compute::V1_0
|
7
7
|
module Models
|
8
8
|
#
|
9
9
|
# Model object.
|
@@ -11,7 +11,7 @@ module Haipa::Client::Compute::V1
|
|
11
11
|
#
|
12
12
|
class VirtualMachineNetworkAdapterConfig
|
13
13
|
|
14
|
-
include
|
14
|
+
include Haipa::Client
|
15
15
|
|
16
16
|
# @return [String]
|
17
17
|
attr_accessor :name
|
@@ -3,7 +3,7 @@
|
|
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::
|
6
|
+
module Haipa::Client::Compute::V1_0
|
7
7
|
module Models
|
8
8
|
#
|
9
9
|
# Model object.
|
@@ -11,7 +11,7 @@ module Haipa::Client::Compute::V1
|
|
11
11
|
#
|
12
12
|
class VirtualMachineProvisioningConfig
|
13
13
|
|
14
|
-
include
|
14
|
+
include Haipa::Client
|
15
15
|
|
16
16
|
# @return [String]
|
17
17
|
attr_accessor :hostname
|
@@ -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::
|
6
|
+
module Haipa::Client::Compute::V1_0
|
7
7
|
#
|
8
8
|
# Haipa management API
|
9
9
|
#
|
10
10
|
class Networks
|
11
|
-
include
|
11
|
+
include Haipa::Client
|
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
|
|
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 [
|
44
|
+
# @return [Haipa::Client::HaipaOperationResponse] 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
|
|
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]],
|
74
74
|
query_params: {'$select' => select,'$expand' => expand},
|
75
75
|
headers: request_headers.merge(custom_headers || {}),
|
76
76
|
base_url: request_url
|
@@ -83,10 +83,12 @@ module Haipa::Client::Compute::V1
|
|
83
83
|
response_content = http_response.body
|
84
84
|
unless status_code == 200
|
85
85
|
error_model = JSON.load(response_content)
|
86
|
-
fail
|
86
|
+
fail Haipa::Client::HaipaOperationError.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?
|
90
92
|
|
91
93
|
result
|
92
94
|
end
|
@@ -110,7 +112,7 @@ module Haipa::Client::Compute::V1
|
|
110
112
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
111
113
|
# will be added to the HTTP request.
|
112
114
|
#
|
113
|
-
# @return [
|
115
|
+
# @return [Haipa::Client::HaipaOperationResponse] HTTP response information.
|
114
116
|
#
|
115
117
|
def create_with_http_info(network:nil, custom_headers:nil)
|
116
118
|
create_async(network:network, custom_headers:custom_headers).value!
|
@@ -134,7 +136,7 @@ module Haipa::Client::Compute::V1
|
|
134
136
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
135
137
|
|
136
138
|
# Serialize Request
|
137
|
-
request_mapper = Haipa::Client::Compute::
|
139
|
+
request_mapper = Haipa::Client::Compute::V1_0::Models::Network.mapper()
|
138
140
|
request_content = @client.serialize(request_mapper, network)
|
139
141
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
140
142
|
|
@@ -143,7 +145,7 @@ module Haipa::Client::Compute::V1
|
|
143
145
|
request_url = @base_url || @client.base_url
|
144
146
|
|
145
147
|
options = {
|
146
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02]
|
148
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02]],
|
147
149
|
body: request_content,
|
148
150
|
headers: request_headers.merge(custom_headers || {}),
|
149
151
|
base_url: request_url
|
@@ -156,10 +158,12 @@ module Haipa::Client::Compute::V1
|
|
156
158
|
response_content = http_response.body
|
157
159
|
unless status_code == 200
|
158
160
|
error_model = JSON.load(response_content)
|
159
|
-
fail
|
161
|
+
fail Haipa::Client::HaipaOperationError.new(result.request, http_response, error_model)
|
160
162
|
end
|
161
163
|
|
162
164
|
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?
|
163
167
|
|
164
168
|
result
|
165
169
|
end
|
@@ -189,7 +193,7 @@ module Haipa::Client::Compute::V1
|
|
189
193
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
190
194
|
# will be added to the HTTP request.
|
191
195
|
#
|
192
|
-
# @return [
|
196
|
+
# @return [Haipa::Client::HaipaOperationResponse] HTTP response information.
|
193
197
|
#
|
194
198
|
def get_with_http_info(key, select:nil, expand:nil, custom_headers:nil)
|
195
199
|
get_async(key, select:select, expand:expand, custom_headers:custom_headers).value!
|
@@ -220,7 +224,7 @@ module Haipa::Client::Compute::V1
|
|
220
224
|
request_url = @base_url || @client.base_url
|
221
225
|
|
222
226
|
options = {
|
223
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02]
|
227
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02]],
|
224
228
|
path_params: {'key' => key},
|
225
229
|
query_params: {'$select' => select,'$expand' => expand},
|
226
230
|
headers: request_headers.merge(custom_headers || {}),
|
@@ -234,10 +238,12 @@ module Haipa::Client::Compute::V1
|
|
234
238
|
response_content = http_response.body
|
235
239
|
unless status_code == 200
|
236
240
|
error_model = JSON.load(response_content)
|
237
|
-
fail
|
241
|
+
fail Haipa::Client::HaipaOperationError.new(result.request, http_response, error_model)
|
238
242
|
end
|
239
243
|
|
240
244
|
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?
|
241
247
|
|
242
248
|
result
|
243
249
|
end
|
@@ -263,7 +269,7 @@ module Haipa::Client::Compute::V1
|
|
263
269
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
264
270
|
# will be added to the HTTP request.
|
265
271
|
#
|
266
|
-
# @return [
|
272
|
+
# @return [Haipa::Client::HaipaOperationResponse] HTTP response information.
|
267
273
|
#
|
268
274
|
def update_with_http_info(key, update:nil, custom_headers:nil)
|
269
275
|
update_async(key, update:update, custom_headers:custom_headers).value!
|
@@ -289,7 +295,7 @@ module Haipa::Client::Compute::V1
|
|
289
295
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
290
296
|
|
291
297
|
# Serialize Request
|
292
|
-
request_mapper = Haipa::Client::Compute::
|
298
|
+
request_mapper = Haipa::Client::Compute::V1_0::Models::Network.mapper()
|
293
299
|
request_content = @client.serialize(request_mapper, update)
|
294
300
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
295
301
|
|
@@ -298,7 +304,7 @@ module Haipa::Client::Compute::V1
|
|
298
304
|
request_url = @base_url || @client.base_url
|
299
305
|
|
300
306
|
options = {
|
301
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02]
|
307
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02]],
|
302
308
|
path_params: {'key' => key},
|
303
309
|
body: request_content,
|
304
310
|
headers: request_headers.merge(custom_headers || {}),
|
@@ -312,10 +318,12 @@ module Haipa::Client::Compute::V1
|
|
312
318
|
response_content = http_response.body
|
313
319
|
unless status_code == 200
|
314
320
|
error_model = JSON.load(response_content)
|
315
|
-
fail
|
321
|
+
fail Haipa::Client::HaipaOperationError.new(result.request, http_response, error_model)
|
316
322
|
end
|
317
323
|
|
318
324
|
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?
|
319
327
|
|
320
328
|
result
|
321
329
|
end
|
@@ -341,7 +349,7 @@ module Haipa::Client::Compute::V1
|
|
341
349
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
342
350
|
# will be added to the HTTP request.
|
343
351
|
#
|
344
|
-
# @return [
|
352
|
+
# @return [Haipa::Client::HaipaOperationResponse] HTTP response information.
|
345
353
|
#
|
346
354
|
def patch_with_http_info(key, product:nil, custom_headers:nil)
|
347
355
|
patch_async(key, product:product, custom_headers:custom_headers).value!
|
@@ -367,7 +375,7 @@ module Haipa::Client::Compute::V1
|
|
367
375
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
368
376
|
|
369
377
|
# Serialize Request
|
370
|
-
request_mapper = Haipa::Client::Compute::
|
378
|
+
request_mapper = Haipa::Client::Compute::V1_0::Models::Network.mapper()
|
371
379
|
request_content = @client.serialize(request_mapper, product)
|
372
380
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
373
381
|
|
@@ -376,7 +384,7 @@ module Haipa::Client::Compute::V1
|
|
376
384
|
request_url = @base_url || @client.base_url
|
377
385
|
|
378
386
|
options = {
|
379
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02]
|
387
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02]],
|
380
388
|
path_params: {'key' => key},
|
381
389
|
body: request_content,
|
382
390
|
headers: request_headers.merge(custom_headers || {}),
|
@@ -390,10 +398,12 @@ module Haipa::Client::Compute::V1
|
|
390
398
|
response_content = http_response.body
|
391
399
|
unless status_code == 200
|
392
400
|
error_model = JSON.load(response_content)
|
393
|
-
fail
|
401
|
+
fail Haipa::Client::HaipaOperationError.new(result.request, http_response, error_model)
|
394
402
|
end
|
395
403
|
|
396
404
|
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?
|
397
407
|
|
398
408
|
result
|
399
409
|
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::
|
6
|
+
module Haipa::Client::Compute::V1_0
|
7
7
|
#
|
8
8
|
# Haipa management API
|
9
9
|
#
|
10
10
|
class Operations
|
11
|
-
include
|
11
|
+
include Haipa::Client
|
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
|
|
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 [
|
63
|
+
# @return [Haipa::Client::HaipaOperationResponse] 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
|
|
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]],
|
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,15 +111,17 @@ module Haipa::Client::Compute::V1
|
|
111
111
|
response_content = http_response.body
|
112
112
|
unless status_code == 200
|
113
113
|
error_model = JSON.load(response_content)
|
114
|
-
fail
|
114
|
+
fail Haipa::Client::HaipaOperationError.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?
|
118
120
|
# Deserialize Response
|
119
121
|
if status_code == 200
|
120
122
|
begin
|
121
123
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
122
|
-
result_mapper = Haipa::Client::Compute::
|
124
|
+
result_mapper = Haipa::Client::Compute::V1_0::Models::ODataValueIEnumerableOperation.mapper()
|
123
125
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
124
126
|
rescue Exception => e
|
125
127
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -155,7 +157,7 @@ module Haipa::Client::Compute::V1
|
|
155
157
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
156
158
|
# will be added to the HTTP request.
|
157
159
|
#
|
158
|
-
# @return [
|
160
|
+
# @return [Haipa::Client::HaipaOperationResponse] HTTP response information.
|
159
161
|
#
|
160
162
|
def get_with_http_info(key, select:nil, expand:nil, custom_headers:nil)
|
161
163
|
get_async(key, select:select, expand:expand, custom_headers:custom_headers).value!
|
@@ -186,7 +188,7 @@ module Haipa::Client::Compute::V1
|
|
186
188
|
request_url = @base_url || @client.base_url
|
187
189
|
|
188
190
|
options = {
|
189
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02]
|
191
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02]],
|
190
192
|
path_params: {'key' => key},
|
191
193
|
query_params: {'$select' => select,'$expand' => expand},
|
192
194
|
headers: request_headers.merge(custom_headers || {}),
|
@@ -200,15 +202,17 @@ module Haipa::Client::Compute::V1
|
|
200
202
|
response_content = http_response.body
|
201
203
|
unless status_code == 200
|
202
204
|
error_model = JSON.load(response_content)
|
203
|
-
fail
|
205
|
+
fail Haipa::Client::HaipaOperationError.new(result.request, http_response, error_model)
|
204
206
|
end
|
205
207
|
|
206
208
|
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?
|
207
211
|
# Deserialize Response
|
208
212
|
if status_code == 200
|
209
213
|
begin
|
210
214
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
211
|
-
result_mapper = Haipa::Client::Compute::
|
215
|
+
result_mapper = Haipa::Client::Compute::V1_0::Models::Operation.mapper()
|
212
216
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
213
217
|
rescue Exception => e
|
214
218
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -262,7 +266,7 @@ module Haipa::Client::Compute::V1
|
|
262
266
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
263
267
|
# will be added to the HTTP request.
|
264
268
|
#
|
265
|
-
# @return [
|
269
|
+
# @return [Haipa::Client::HaipaOperationResponse] HTTP response information.
|
266
270
|
#
|
267
271
|
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)
|
268
272
|
get_log_entries_async(key, select:select, expand:expand, filter:filter, orderby:orderby, top:top, skip:skip, count:count, custom_headers:custom_headers).value!
|
@@ -302,7 +306,7 @@ module Haipa::Client::Compute::V1
|
|
302
306
|
request_url = @base_url || @client.base_url
|
303
307
|
|
304
308
|
options = {
|
305
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02]
|
309
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02]],
|
306
310
|
path_params: {'key' => key},
|
307
311
|
query_params: {'$select' => select,'$expand' => expand,'$filter' => filter,'$orderby' => orderby,'$top' => top,'$skip' => skip,'$count' => count},
|
308
312
|
headers: request_headers.merge(custom_headers || {}),
|
@@ -316,15 +320,17 @@ module Haipa::Client::Compute::V1
|
|
316
320
|
response_content = http_response.body
|
317
321
|
unless status_code == 200
|
318
322
|
error_model = JSON.load(response_content)
|
319
|
-
fail
|
323
|
+
fail Haipa::Client::HaipaOperationError.new(result.request, http_response, error_model)
|
320
324
|
end
|
321
325
|
|
322
326
|
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?
|
323
329
|
# Deserialize Response
|
324
330
|
if status_code == 200
|
325
331
|
begin
|
326
332
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
327
|
-
result_mapper = Haipa::Client::Compute::
|
333
|
+
result_mapper = Haipa::Client::Compute::V1_0::Models::ODataValueIEnumerableOperationLog.mapper()
|
328
334
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
329
335
|
rescue Exception => e
|
330
336
|
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::
|
6
|
+
module Haipa::Client::Compute::V1_0
|
7
7
|
#
|
8
8
|
# Haipa management API
|
9
9
|
#
|
10
10
|
class Subnets
|
11
|
-
include
|
11
|
+
include Haipa::Client
|
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
|
|
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 [
|
44
|
+
# @return [Haipa::Client::HaipaOperationResponse] 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
|
|
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]],
|
74
74
|
query_params: {'$select' => select,'$expand' => expand},
|
75
75
|
headers: request_headers.merge(custom_headers || {}),
|
76
76
|
base_url: request_url
|
@@ -83,10 +83,12 @@ module Haipa::Client::Compute::V1
|
|
83
83
|
response_content = http_response.body
|
84
84
|
unless status_code == 200
|
85
85
|
error_model = JSON.load(response_content)
|
86
|
-
fail
|
86
|
+
fail Haipa::Client::HaipaOperationError.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?
|
90
92
|
|
91
93
|
result
|
92
94
|
end
|
data/lib/version.rb
CHANGED