haipa_compute 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9b38cbb70108d7ecc999a6c4aa4686b36613a698da2fb30780313dfee1388c76
4
- data.tar.gz: 7be9dc66d64ef79fe6f7d1d073e54f65a9b05e9c6c3d765c49a1319962325b50
3
+ metadata.gz: 251774280abb5b692d25cb4cd5d9a2ba1c7343406314b04fd9d2f9fdbbfe1e04
4
+ data.tar.gz: e8c2abe00b26788c371ec7778457c8550dcd885dae50442b79c3f8ffe443f0da
5
5
  SHA512:
6
- metadata.gz: 64ea3ef660fc146f1420402d10aed77692593d2d07638ec41efe1a180bd070d8649188e317d40b761f3d22f26bc08fe6c287d0aa21f53c883b9c9d7bf130ca82
7
- data.tar.gz: 35c42064cd45cf0a83dfd9f139638ca09d585864006aa37cc83e0c4b9e8b191225ac8c94a4c22d85f5fd8ceea2e181ac7f639f639af2fe8eed4357184b71ffc1
6
+ metadata.gz: 78c93acdfc7c123837eec9155b9308e3f0c4abf6b6efd7e73dfb19bf8e3d667f8df554cb4c1bd35cdacae0a147a32dcb0d1474c4080515373082391ac5cb2717
7
+ data.tar.gz: a54206b283963c8059998bd062569d85ac7e2978abbc659a8598535a1922307915014a4aeb7a22cd5887b6fdfe39170a06c183e02998720ac864b8bb4fe6cc31
@@ -17,9 +17,9 @@ require 'faraday-cookie_jar'
17
17
  require 'concurrent'
18
18
  require 'ms_rest'
19
19
  require '1.0/generated/haipa_compute/module_definition'
20
- require 'haipa_rest'
20
+ require 'ms_rest_azure'
21
21
 
22
- module Haipa::Client::Compute::V1_0
22
+ module Haipa::Client::Compute::V1
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'
@@ -27,7 +27,7 @@ module Haipa::Client::Compute::V1_0
27
27
  autoload :HaipaCompute, '1.0/generated/haipa_compute/haipa_compute.rb'
28
28
 
29
29
  module Models
30
- autoload :VirtualMachineDiskConfig, '1.0/generated/haipa_compute/models/virtual_machine_disk_config.rb'
30
+ autoload :VirtualMachineDriveConfig, '1.0/generated/haipa_compute/models/virtual_machine_drive_config.rb'
31
31
  autoload :Subnet, '1.0/generated/haipa_compute/models/subnet.rb'
32
32
  autoload :VirtualMachineNetworkAdapterConfig, '1.0/generated/haipa_compute/models/virtual_machine_network_adapter_config.rb'
33
33
  autoload :AgentNetwork, '1.0/generated/haipa_compute/models/agent_network.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::V1_0
6
+ module Haipa::Client::Compute::V1
7
7
  #
8
8
  # A service client - single point of access to the REST API.
9
9
  #
10
- class HaipaCompute < Haipa::Client::HaipaServiceClient
11
- include Haipa::Client
12
- include Haipa::Client::Serialization
10
+ class HaipaCompute < MsRestAzure::AzureServiceClient
11
+ include MsRestAzure
12
+ include MsRestAzure::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_0
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 [Haipa::Client::HaipaOperationResponse] Operation response containing the request, response and status.
93
+ # @return [MsRestAzure::AzureOperationResponse] 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::V1_0
6
+ module Haipa::Client::Compute::V1
7
7
  #
8
8
  # Haipa management API
9
9
  #
10
10
  class Machines
11
- include Haipa::Client
11
+ include MsRestAzure
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_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 || status_code == 404
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::ODataValueIEnumerableMachine.mapper()
122
+ result_mapper = Haipa::Client::Compute::V1::Models::ODataValueIEnumerableMachine.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)
@@ -151,7 +149,7 @@ module Haipa::Client::Compute::V1_0
151
149
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
152
150
  # will be added to the HTTP request.
153
151
  #
154
- # @return [Haipa::Client::HaipaOperationResponse] HTTP response information.
152
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
155
153
  #
156
154
  def update_or_create_with_http_info(config:nil, custom_headers:nil)
157
155
  update_or_create_async(config:config, custom_headers:custom_headers).value!
@@ -175,7 +173,7 @@ module Haipa::Client::Compute::V1_0
175
173
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
176
174
 
177
175
  # Serialize Request
178
- request_mapper = Haipa::Client::Compute::V1_0::Models::MachineConfig.mapper()
176
+ request_mapper = Haipa::Client::Compute::V1::Models::MachineConfig.mapper()
179
177
  request_content = @client.serialize(request_mapper, config)
180
178
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
181
179
 
@@ -184,7 +182,7 @@ module Haipa::Client::Compute::V1_0
184
182
  request_url = @base_url || @client.base_url
185
183
 
186
184
  options = {
187
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02]],
185
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
188
186
  body: request_content,
189
187
  headers: request_headers.merge(custom_headers || {}),
190
188
  base_url: request_url
@@ -197,17 +195,15 @@ module Haipa::Client::Compute::V1_0
197
195
  response_content = http_response.body
198
196
  unless status_code == 200
199
197
  error_model = JSON.load(response_content)
200
- fail Haipa::Client::HaipaOperationError.new(result.request, http_response, error_model)
198
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
201
199
  end
202
200
 
203
201
  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?
206
202
  # Deserialize Response
207
203
  if status_code == 200
208
204
  begin
209
205
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
210
- result_mapper = Haipa::Client::Compute::V1_0::Models::Operation.mapper()
206
+ result_mapper = Haipa::Client::Compute::V1::Models::Operation.mapper()
211
207
  result.body = @client.deserialize(result_mapper, parsed_response)
212
208
  rescue Exception => e
213
209
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -243,7 +239,7 @@ module Haipa::Client::Compute::V1_0
243
239
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
244
240
  # will be added to the HTTP request.
245
241
  #
246
- # @return [Haipa::Client::HaipaOperationResponse] HTTP response information.
242
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
247
243
  #
248
244
  def get_with_http_info(key, select:nil, expand:nil, custom_headers:nil)
249
245
  get_async(key, select:select, expand:expand, custom_headers:custom_headers).value!
@@ -274,7 +270,7 @@ module Haipa::Client::Compute::V1_0
274
270
  request_url = @base_url || @client.base_url
275
271
 
276
272
  options = {
277
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02]],
273
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
278
274
  path_params: {'key' => key},
279
275
  query_params: {'$select' => select,'$expand' => expand},
280
276
  headers: request_headers.merge(custom_headers || {}),
@@ -288,17 +284,15 @@ module Haipa::Client::Compute::V1_0
288
284
  response_content = http_response.body
289
285
  unless status_code == 200 || status_code == 404
290
286
  error_model = JSON.load(response_content)
291
- fail Haipa::Client::HaipaOperationError.new(result.request, http_response, error_model)
287
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
292
288
  end
293
289
 
294
290
  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?
297
291
  # Deserialize Response
298
292
  if status_code == 200
299
293
  begin
300
294
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
301
- result_mapper = Haipa::Client::Compute::V1_0::Models::Machine.mapper()
295
+ result_mapper = Haipa::Client::Compute::V1::Models::Machine.mapper()
302
296
  result.body = @client.deserialize(result_mapper, parsed_response)
303
297
  rescue Exception => e
304
298
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -328,7 +322,7 @@ module Haipa::Client::Compute::V1_0
328
322
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
329
323
  # will be added to the HTTP request.
330
324
  #
331
- # @return [Haipa::Client::HaipaOperationResponse] HTTP response information.
325
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
332
326
  #
333
327
  def delete_with_http_info(key, custom_headers:nil)
334
328
  delete_async(key, custom_headers:custom_headers).value!
@@ -356,7 +350,7 @@ module Haipa::Client::Compute::V1_0
356
350
  request_url = @base_url || @client.base_url
357
351
 
358
352
  options = {
359
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02]],
353
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
360
354
  path_params: {'key' => key},
361
355
  headers: request_headers.merge(custom_headers || {}),
362
356
  base_url: request_url
@@ -369,17 +363,15 @@ module Haipa::Client::Compute::V1_0
369
363
  response_content = http_response.body
370
364
  unless status_code == 200
371
365
  error_model = JSON.load(response_content)
372
- fail Haipa::Client::HaipaOperationError.new(result.request, http_response, error_model)
366
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
373
367
  end
374
368
 
375
369
  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?
378
370
  # Deserialize Response
379
371
  if status_code == 200
380
372
  begin
381
373
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
382
- result_mapper = Haipa::Client::Compute::V1_0::Models::Operation.mapper()
374
+ result_mapper = Haipa::Client::Compute::V1::Models::Operation.mapper()
383
375
  result.body = @client.deserialize(result_mapper, parsed_response)
384
376
  rescue Exception => e
385
377
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -415,7 +407,7 @@ module Haipa::Client::Compute::V1_0
415
407
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
416
408
  # will be added to the HTTP request.
417
409
  #
418
- # @return [Haipa::Client::HaipaOperationResponse] HTTP response information.
410
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
419
411
  #
420
412
  def start_with_http_info(key, select:nil, expand:nil, custom_headers:nil)
421
413
  start_async(key, select:select, expand:expand, custom_headers:custom_headers).value!
@@ -446,7 +438,7 @@ module Haipa::Client::Compute::V1_0
446
438
  request_url = @base_url || @client.base_url
447
439
 
448
440
  options = {
449
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02]],
441
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
450
442
  path_params: {'key' => key},
451
443
  query_params: {'$select' => select,'$expand' => expand},
452
444
  headers: request_headers.merge(custom_headers || {}),
@@ -460,17 +452,15 @@ module Haipa::Client::Compute::V1_0
460
452
  response_content = http_response.body
461
453
  unless status_code == 200
462
454
  error_model = JSON.load(response_content)
463
- fail Haipa::Client::HaipaOperationError.new(result.request, http_response, error_model)
455
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
464
456
  end
465
457
 
466
458
  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?
469
459
  # Deserialize Response
470
460
  if status_code == 200
471
461
  begin
472
462
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
473
- result_mapper = Haipa::Client::Compute::V1_0::Models::Operation.mapper()
463
+ result_mapper = Haipa::Client::Compute::V1::Models::Operation.mapper()
474
464
  result.body = @client.deserialize(result_mapper, parsed_response)
475
465
  rescue Exception => e
476
466
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -506,7 +496,7 @@ module Haipa::Client::Compute::V1_0
506
496
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
507
497
  # will be added to the HTTP request.
508
498
  #
509
- # @return [Haipa::Client::HaipaOperationResponse] HTTP response information.
499
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
510
500
  #
511
501
  def stop_with_http_info(key, select:nil, expand:nil, custom_headers:nil)
512
502
  stop_async(key, select:select, expand:expand, custom_headers:custom_headers).value!
@@ -537,7 +527,7 @@ module Haipa::Client::Compute::V1_0
537
527
  request_url = @base_url || @client.base_url
538
528
 
539
529
  options = {
540
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02]],
530
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
541
531
  path_params: {'key' => key},
542
532
  query_params: {'$select' => select,'$expand' => expand},
543
533
  headers: request_headers.merge(custom_headers || {}),
@@ -551,17 +541,15 @@ module Haipa::Client::Compute::V1_0
551
541
  response_content = http_response.body
552
542
  unless status_code == 200
553
543
  error_model = JSON.load(response_content)
554
- fail Haipa::Client::HaipaOperationError.new(result.request, http_response, error_model)
544
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
555
545
  end
556
546
 
557
547
  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?
560
548
  # Deserialize Response
561
549
  if status_code == 200
562
550
  begin
563
551
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
564
- result_mapper = Haipa::Client::Compute::V1_0::Models::Operation.mapper()
552
+ result_mapper = Haipa::Client::Compute::V1::Models::Operation.mapper()
565
553
  result.body = @client.deserialize(result_mapper, parsed_response)
566
554
  rescue Exception => e
567
555
  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::V1_0
6
+ module Haipa::Client::Compute::V1
7
7
  module Models
8
8
  #
9
9
  # Model object.
@@ -11,7 +11,7 @@ module Haipa::Client::Compute::V1_0
11
11
  #
12
12
  class Agent
13
13
 
14
- include Haipa::Client
14
+ include MsRestAzure
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::V1_0
6
+ module Haipa::Client::Compute::V1
7
7
  module Models
8
8
  #
9
9
  # Model object.
@@ -11,7 +11,7 @@ module Haipa::Client::Compute::V1_0
11
11
  #
12
12
  class AgentNetwork
13
13
 
14
- include Haipa::Client
14
+ include MsRestAzure
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::V1_0
6
+ module Haipa::Client::Compute::V1
7
7
  module Models
8
8
  #
9
9
  # Model object.
@@ -11,7 +11,7 @@ module Haipa::Client::Compute::V1_0
11
11
  #
12
12
  class Machine
13
13
 
14
- include Haipa::Client
14
+ include MsRestAzure
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::V1_0
6
+ module Haipa::Client::Compute::V1
7
7
  module Models
8
8
  #
9
9
  # Model object.
@@ -11,7 +11,7 @@ module Haipa::Client::Compute::V1_0
11
11
  #
12
12
  class MachineConfig
13
13
 
14
- include Haipa::Client
14
+ include MsRestAzure
15
15
 
16
16
  # @return [String]
17
17
  attr_accessor :name
@@ -19,6 +19,12 @@ module Haipa::Client::Compute::V1_0
19
19
  # @return [String]
20
20
  attr_accessor :id
21
21
 
22
+ # @return [String]
23
+ attr_accessor :environment
24
+
25
+ # @return [String]
26
+ attr_accessor :project
27
+
22
28
  # @return [VirtualMachineConfig]
23
29
  attr_accessor :vm
24
30
 
@@ -58,6 +64,22 @@ module Haipa::Client::Compute::V1_0
58
64
  name: 'String'
59
65
  }
60
66
  },
67
+ environment: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ serialized_name: 'environment',
71
+ type: {
72
+ name: 'String'
73
+ }
74
+ },
75
+ project: {
76
+ client_side_validation: true,
77
+ required: false,
78
+ serialized_name: 'project',
79
+ type: {
80
+ name: 'String'
81
+ }
82
+ },
61
83
  vm: {
62
84
  client_side_validation: true,
63
85
  required: false,
@@ -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::V1_0
6
+ module Haipa::Client::Compute::V1
7
7
  module Models
8
8
  #
9
9
  # Model object.
@@ -11,7 +11,7 @@ module Haipa::Client::Compute::V1_0
11
11
  #
12
12
  class MachineNetwork
13
13
 
14
- include Haipa::Client
14
+ include MsRestAzure
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::V1_0
6
+ module Haipa::Client::Compute::V1
7
7
  module Models
8
8
  #
9
9
  # Model object.
@@ -11,7 +11,7 @@ module Haipa::Client::Compute::V1_0
11
11
  #
12
12
  class MachineNetworkConfig
13
13
 
14
- include Haipa::Client
14
+ include MsRestAzure
15
15
 
16
16
  # @return [String]
17
17
  attr_accessor :adapter_name