azure_mgmt_devtestlabs 0.15.2 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs.rb +70 -62
  3. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/arm_templates.rb +21 -18
  4. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/artifact_sources.rb +39 -37
  5. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/artifacts.rb +27 -25
  6. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/costs.rb +12 -12
  7. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/custom_images.rb +41 -38
  8. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/dev_test_labs_client.rb +12 -1
  9. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/disks.rb +61 -60
  10. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/environments.rb +41 -38
  11. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/formulas.rb +37 -34
  12. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/gallery_images.rb +15 -13
  13. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/global_schedules.rb +74 -70
  14. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/labs.rb +113 -109
  15. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.rb +1 -1
  16. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/http_status_code.rb +56 -0
  17. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/identity_properties.rb +1 -1
  18. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/operation_error.rb +57 -0
  19. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/operation_metadata.rb +59 -0
  20. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/operation_metadata_display.rb +80 -0
  21. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/operation_result.rb +82 -0
  22. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/provider_operation_result.rb +101 -0
  23. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/notification_channels.rb +45 -44
  24. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/operations.rb +117 -0
  25. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/policies.rb +39 -37
  26. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/policy_sets.rb +6 -7
  27. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/provider_operations.rb +215 -0
  28. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/schedules.rb +64 -59
  29. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/secrets.rb +33 -30
  30. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/service_runners.rb +33 -30
  31. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/users.rb +43 -41
  32. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/virtual_machine_schedules.rb +49 -46
  33. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/virtual_machines.rb +113 -110
  34. data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/virtual_networks.rb +47 -45
  35. data/lib/profiles/latest/devtestlabs_latest_profile_client.rb +28 -9
  36. data/lib/profiles/latest/devtestlabs_module_definition.rb +0 -1
  37. data/lib/profiles/latest/modules/devtestlabs_profile_module.rb +589 -542
  38. data/lib/version.rb +1 -1
  39. metadata +10 -2
@@ -39,8 +39,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
39
39
  #
40
40
  # @return [Array<Schedule>] operation results.
41
41
  #
42
- def list(resource_group_name, lab_name, virtual_machine_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil)
43
- first_page = list_as_lazy(resource_group_name, lab_name, virtual_machine_name, expand, filter, top, orderby, custom_headers)
42
+ def list(resource_group_name, lab_name, virtual_machine_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
43
+ first_page = list_as_lazy(resource_group_name, lab_name, virtual_machine_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers)
44
44
  first_page.get_all_items
45
45
  end
46
46
 
@@ -62,8 +62,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
62
62
  #
63
63
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
64
64
  #
65
- def list_with_http_info(resource_group_name, lab_name, virtual_machine_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil)
66
- list_async(resource_group_name, lab_name, virtual_machine_name, expand, filter, top, orderby, custom_headers).value!
65
+ def list_with_http_info(resource_group_name, lab_name, virtual_machine_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
66
+ list_async(resource_group_name, lab_name, virtual_machine_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value!
67
67
  end
68
68
 
69
69
  #
@@ -84,7 +84,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
84
84
  #
85
85
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
86
86
  #
87
- def list_async(resource_group_name, lab_name, virtual_machine_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil)
87
+ def list_async(resource_group_name, lab_name, virtual_machine_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
88
88
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
89
89
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
90
90
  fail ArgumentError, 'lab_name is nil' if lab_name.nil?
@@ -93,6 +93,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
93
93
 
94
94
 
95
95
  request_headers = {}
96
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
96
97
 
97
98
  # Set Headers
98
99
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -151,8 +152,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
151
152
  #
152
153
  # @return [Schedule] operation results.
153
154
  #
154
- def get(resource_group_name, lab_name, virtual_machine_name, name, expand = nil, custom_headers = nil)
155
- response = get_async(resource_group_name, lab_name, virtual_machine_name, name, expand, custom_headers).value!
155
+ def get(resource_group_name, lab_name, virtual_machine_name, name, expand:nil, custom_headers:nil)
156
+ response = get_async(resource_group_name, lab_name, virtual_machine_name, name, expand:expand, custom_headers:custom_headers).value!
156
157
  response.body unless response.nil?
157
158
  end
158
159
 
@@ -170,8 +171,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
170
171
  #
171
172
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
172
173
  #
173
- def get_with_http_info(resource_group_name, lab_name, virtual_machine_name, name, expand = nil, custom_headers = nil)
174
- get_async(resource_group_name, lab_name, virtual_machine_name, name, expand, custom_headers).value!
174
+ def get_with_http_info(resource_group_name, lab_name, virtual_machine_name, name, expand:nil, custom_headers:nil)
175
+ get_async(resource_group_name, lab_name, virtual_machine_name, name, expand:expand, custom_headers:custom_headers).value!
175
176
  end
176
177
 
177
178
  #
@@ -188,7 +189,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
188
189
  #
189
190
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
190
191
  #
191
- def get_async(resource_group_name, lab_name, virtual_machine_name, name, expand = nil, custom_headers = nil)
192
+ def get_async(resource_group_name, lab_name, virtual_machine_name, name, expand:nil, custom_headers:nil)
192
193
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
193
194
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
194
195
  fail ArgumentError, 'lab_name is nil' if lab_name.nil?
@@ -198,6 +199,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
198
199
 
199
200
 
200
201
  request_headers = {}
202
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
201
203
 
202
204
  # Set Headers
203
205
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -255,8 +257,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
255
257
  #
256
258
  # @return [Schedule] operation results.
257
259
  #
258
- def create_or_update(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers = nil)
259
- response = create_or_update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers).value!
260
+ def create_or_update(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers:nil)
261
+ response = create_or_update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers:custom_headers).value!
260
262
  response.body unless response.nil?
261
263
  end
262
264
 
@@ -273,8 +275,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
273
275
  #
274
276
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
275
277
  #
276
- def create_or_update_with_http_info(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers = nil)
277
- create_or_update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers).value!
278
+ def create_or_update_with_http_info(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers:nil)
279
+ create_or_update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers:custom_headers).value!
278
280
  end
279
281
 
280
282
  #
@@ -290,7 +292,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
290
292
  #
291
293
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
292
294
  #
293
- def create_or_update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers = nil)
295
+ def create_or_update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers:nil)
294
296
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
295
297
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
296
298
  fail ArgumentError, 'lab_name is nil' if lab_name.nil?
@@ -301,13 +303,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
301
303
 
302
304
 
303
305
  request_headers = {}
306
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
304
307
 
305
308
  # Set Headers
306
309
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
307
310
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
308
311
 
309
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
310
-
311
312
  # Serialize Request
312
313
  request_mapper = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Schedule.mapper()
313
314
  request_content = @client.serialize(request_mapper, schedule)
@@ -375,8 +376,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
375
376
  # will be added to the HTTP request.
376
377
  #
377
378
  #
378
- def delete(resource_group_name, lab_name, virtual_machine_name, name, custom_headers = nil)
379
- response = delete_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers).value!
379
+ def delete(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:nil)
380
+ response = delete_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:custom_headers).value!
380
381
  nil
381
382
  end
382
383
 
@@ -392,8 +393,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
392
393
  #
393
394
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
394
395
  #
395
- def delete_with_http_info(resource_group_name, lab_name, virtual_machine_name, name, custom_headers = nil)
396
- delete_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers).value!
396
+ def delete_with_http_info(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:nil)
397
+ delete_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:custom_headers).value!
397
398
  end
398
399
 
399
400
  #
@@ -408,7 +409,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
408
409
  #
409
410
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
410
411
  #
411
- def delete_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers = nil)
412
+ def delete_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:nil)
412
413
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
413
414
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
414
415
  fail ArgumentError, 'lab_name is nil' if lab_name.nil?
@@ -418,6 +419,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
418
419
 
419
420
 
420
421
  request_headers = {}
422
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
421
423
 
422
424
  # Set Headers
423
425
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -465,8 +467,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
465
467
  #
466
468
  # @return [Schedule] operation results.
467
469
  #
468
- def update(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers = nil)
469
- response = update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers).value!
470
+ def update(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers:nil)
471
+ response = update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers:custom_headers).value!
470
472
  response.body unless response.nil?
471
473
  end
472
474
 
@@ -483,8 +485,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
483
485
  #
484
486
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
485
487
  #
486
- def update_with_http_info(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers = nil)
487
- update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers).value!
488
+ def update_with_http_info(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers:nil)
489
+ update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers:custom_headers).value!
488
490
  end
489
491
 
490
492
  #
@@ -500,7 +502,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
500
502
  #
501
503
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
502
504
  #
503
- def update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers = nil)
505
+ def update_async(resource_group_name, lab_name, virtual_machine_name, name, schedule, custom_headers:nil)
504
506
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
505
507
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
506
508
  fail ArgumentError, 'lab_name is nil' if lab_name.nil?
@@ -511,13 +513,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
511
513
 
512
514
 
513
515
  request_headers = {}
516
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
514
517
 
515
518
  # Set Headers
516
519
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
517
520
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
518
521
 
519
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
520
-
521
522
  # Serialize Request
522
523
  request_mapper = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ScheduleFragment.mapper()
523
524
  request_content = @client.serialize(request_mapper, schedule)
@@ -574,8 +575,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
574
575
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
575
576
  # will be added to the HTTP request.
576
577
  #
577
- def execute(resource_group_name, lab_name, virtual_machine_name, name, custom_headers = nil)
578
- response = execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers).value!
578
+ def execute(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:nil)
579
+ response = execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:custom_headers).value!
579
580
  nil
580
581
  end
581
582
 
@@ -590,9 +591,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
590
591
  # @return [Concurrent::Promise] promise which provides async access to http
591
592
  # response.
592
593
  #
593
- def execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers = nil)
594
+ def execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:nil)
594
595
  # Send request
595
- promise = begin_execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers)
596
+ promise = begin_execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:custom_headers)
596
597
 
597
598
  promise = promise.then do |response|
598
599
  # Defining deserialization method.
@@ -617,8 +618,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
617
618
  # will be added to the HTTP request.
618
619
  #
619
620
  #
620
- def begin_execute(resource_group_name, lab_name, virtual_machine_name, name, custom_headers = nil)
621
- response = begin_execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers).value!
621
+ def begin_execute(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:nil)
622
+ response = begin_execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:custom_headers).value!
622
623
  nil
623
624
  end
624
625
 
@@ -634,8 +635,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
634
635
  #
635
636
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
636
637
  #
637
- def begin_execute_with_http_info(resource_group_name, lab_name, virtual_machine_name, name, custom_headers = nil)
638
- begin_execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers).value!
638
+ def begin_execute_with_http_info(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:nil)
639
+ begin_execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:custom_headers).value!
639
640
  end
640
641
 
641
642
  #
@@ -650,7 +651,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
650
651
  #
651
652
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
652
653
  #
653
- def begin_execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers = nil)
654
+ def begin_execute_async(resource_group_name, lab_name, virtual_machine_name, name, custom_headers:nil)
654
655
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
655
656
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
656
657
  fail ArgumentError, 'lab_name is nil' if lab_name.nil?
@@ -660,6 +661,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
660
661
 
661
662
 
662
663
  request_headers = {}
664
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
663
665
 
664
666
  # Set Headers
665
667
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -704,8 +706,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
704
706
  #
705
707
  # @return [ResponseWithContinuationSchedule] operation results.
706
708
  #
707
- def list_next(next_page_link, custom_headers = nil)
708
- response = list_next_async(next_page_link, custom_headers).value!
709
+ def list_next(next_page_link, custom_headers:nil)
710
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
709
711
  response.body unless response.nil?
710
712
  end
711
713
 
@@ -719,8 +721,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
719
721
  #
720
722
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
721
723
  #
722
- def list_next_with_http_info(next_page_link, custom_headers = nil)
723
- list_next_async(next_page_link, custom_headers).value!
724
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
725
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
724
726
  end
725
727
 
726
728
  #
@@ -733,11 +735,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
733
735
  #
734
736
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
735
737
  #
736
- def list_next_async(next_page_link, custom_headers = nil)
738
+ def list_next_async(next_page_link, custom_headers:nil)
737
739
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
738
740
 
739
741
 
740
742
  request_headers = {}
743
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
741
744
 
742
745
  # Set Headers
743
746
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -800,12 +803,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
800
803
  # @return [ResponseWithContinuationSchedule] which provide lazy access to pages
801
804
  # of the response.
802
805
  #
803
- def list_as_lazy(resource_group_name, lab_name, virtual_machine_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil)
804
- response = list_async(resource_group_name, lab_name, virtual_machine_name, expand, filter, top, orderby, custom_headers).value!
806
+ def list_as_lazy(resource_group_name, lab_name, virtual_machine_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
807
+ response = list_async(resource_group_name, lab_name, virtual_machine_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value!
805
808
  unless response.nil?
806
809
  page = response.body
807
810
  page.next_method = Proc.new do |next_page_link|
808
- list_next_async(next_page_link, custom_headers)
811
+ list_next_async(next_page_link, custom_headers:custom_headers)
809
812
  end
810
813
  page
811
814
  end
@@ -38,8 +38,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
38
38
  #
39
39
  # @return [Array<LabVirtualMachine>] operation results.
40
40
  #
41
- def list(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil)
42
- first_page = list_as_lazy(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers)
41
+ def list(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
42
+ first_page = list_as_lazy(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers)
43
43
  first_page.get_all_items
44
44
  end
45
45
 
@@ -60,8 +60,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
60
60
  #
61
61
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
62
62
  #
63
- def list_with_http_info(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil)
64
- list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value!
63
+ def list_with_http_info(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
64
+ list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value!
65
65
  end
66
66
 
67
67
  #
@@ -81,7 +81,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
81
81
  #
82
82
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
83
83
  #
84
- def list_async(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil)
84
+ def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
85
85
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
86
86
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
87
87
  fail ArgumentError, 'lab_name is nil' if lab_name.nil?
@@ -89,6 +89,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
89
89
 
90
90
 
91
91
  request_headers = {}
92
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
92
93
 
93
94
  # Set Headers
94
95
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -146,8 +147,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
146
147
  #
147
148
  # @return [LabVirtualMachine] operation results.
148
149
  #
149
- def get(resource_group_name, lab_name, name, expand = nil, custom_headers = nil)
150
- response = get_async(resource_group_name, lab_name, name, expand, custom_headers).value!
150
+ def get(resource_group_name, lab_name, name, expand:nil, custom_headers:nil)
151
+ response = get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value!
151
152
  response.body unless response.nil?
152
153
  end
153
154
 
@@ -164,8 +165,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
164
165
  #
165
166
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
166
167
  #
167
- def get_with_http_info(resource_group_name, lab_name, name, expand = nil, custom_headers = nil)
168
- get_async(resource_group_name, lab_name, name, expand, custom_headers).value!
168
+ def get_with_http_info(resource_group_name, lab_name, name, expand:nil, custom_headers:nil)
169
+ get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value!
169
170
  end
170
171
 
171
172
  #
@@ -181,7 +182,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
181
182
  #
182
183
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
183
184
  #
184
- def get_async(resource_group_name, lab_name, name, expand = nil, custom_headers = nil)
185
+ def get_async(resource_group_name, lab_name, name, expand:nil, custom_headers:nil)
185
186
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
186
187
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
187
188
  fail ArgumentError, 'lab_name is nil' if lab_name.nil?
@@ -190,6 +191,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
190
191
 
191
192
 
192
193
  request_headers = {}
194
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
193
195
 
194
196
  # Set Headers
195
197
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -247,8 +249,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
247
249
  #
248
250
  # @return [LabVirtualMachine] operation results.
249
251
  #
250
- def create_or_update(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers = nil)
251
- response = create_or_update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers).value!
252
+ def create_or_update(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:nil)
253
+ response = create_or_update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:custom_headers).value!
252
254
  response.body unless response.nil?
253
255
  end
254
256
 
@@ -263,9 +265,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
263
265
  # @return [Concurrent::Promise] promise which provides async access to http
264
266
  # response.
265
267
  #
266
- def create_or_update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers = nil)
268
+ def create_or_update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:nil)
267
269
  # Send request
268
- promise = begin_create_or_update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers)
270
+ promise = begin_create_or_update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:custom_headers)
269
271
 
270
272
  promise = promise.then do |response|
271
273
  # Defining deserialization method.
@@ -290,8 +292,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
290
292
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
291
293
  # will be added to the HTTP request.
292
294
  #
293
- def delete(resource_group_name, lab_name, name, custom_headers = nil)
294
- response = delete_async(resource_group_name, lab_name, name, custom_headers).value!
295
+ def delete(resource_group_name, lab_name, name, custom_headers:nil)
296
+ response = delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value!
295
297
  nil
296
298
  end
297
299
 
@@ -305,9 +307,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
305
307
  # @return [Concurrent::Promise] promise which provides async access to http
306
308
  # response.
307
309
  #
308
- def delete_async(resource_group_name, lab_name, name, custom_headers = nil)
310
+ def delete_async(resource_group_name, lab_name, name, custom_headers:nil)
309
311
  # Send request
310
- promise = begin_delete_async(resource_group_name, lab_name, name, custom_headers)
312
+ promise = begin_delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers)
311
313
 
312
314
  promise = promise.then do |response|
313
315
  # Defining deserialization method.
@@ -333,8 +335,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
333
335
  #
334
336
  # @return [LabVirtualMachine] operation results.
335
337
  #
336
- def update(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers = nil)
337
- response = update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers).value!
338
+ def update(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:nil)
339
+ response = update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:custom_headers).value!
338
340
  response.body unless response.nil?
339
341
  end
340
342
 
@@ -350,8 +352,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
350
352
  #
351
353
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
352
354
  #
353
- def update_with_http_info(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers = nil)
354
- update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers).value!
355
+ def update_with_http_info(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:nil)
356
+ update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:custom_headers).value!
355
357
  end
356
358
 
357
359
  #
@@ -366,7 +368,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
366
368
  #
367
369
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
368
370
  #
369
- def update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers = nil)
371
+ def update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:nil)
370
372
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
371
373
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
372
374
  fail ArgumentError, 'lab_name is nil' if lab_name.nil?
@@ -376,13 +378,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
376
378
 
377
379
 
378
380
  request_headers = {}
381
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
379
382
 
380
383
  # Set Headers
381
384
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
382
385
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
383
386
 
384
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
385
-
386
387
  # Serialize Request
387
388
  request_mapper = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::LabVirtualMachineFragment.mapper()
388
389
  request_content = @client.serialize(request_mapper, lab_virtual_machine)
@@ -441,8 +442,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
441
442
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
442
443
  # will be added to the HTTP request.
443
444
  #
444
- def add_data_disk(resource_group_name, lab_name, name, data_disk_properties, custom_headers = nil)
445
- response = add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, custom_headers).value!
445
+ def add_data_disk(resource_group_name, lab_name, name, data_disk_properties, custom_headers:nil)
446
+ response = add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, custom_headers:custom_headers).value!
446
447
  nil
447
448
  end
448
449
 
@@ -458,9 +459,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
458
459
  # @return [Concurrent::Promise] promise which provides async access to http
459
460
  # response.
460
461
  #
461
- def add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, custom_headers = nil)
462
+ def add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, custom_headers:nil)
462
463
  # Send request
463
- promise = begin_add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, custom_headers)
464
+ promise = begin_add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, custom_headers:custom_headers)
464
465
 
465
466
  promise = promise.then do |response|
466
467
  # Defining deserialization method.
@@ -486,8 +487,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
486
487
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
487
488
  # will be added to the HTTP request.
488
489
  #
489
- def apply_artifacts(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers = nil)
490
- response = apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers).value!
490
+ def apply_artifacts(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers:nil)
491
+ response = apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers:custom_headers).value!
491
492
  nil
492
493
  end
493
494
 
@@ -503,9 +504,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
503
504
  # @return [Concurrent::Promise] promise which provides async access to http
504
505
  # response.
505
506
  #
506
- def apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers = nil)
507
+ def apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers:nil)
507
508
  # Send request
508
- promise = begin_apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers)
509
+ promise = begin_apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers:custom_headers)
509
510
 
510
511
  promise = promise.then do |response|
511
512
  # Defining deserialization method.
@@ -529,8 +530,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
529
530
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
530
531
  # will be added to the HTTP request.
531
532
  #
532
- def claim(resource_group_name, lab_name, name, custom_headers = nil)
533
- response = claim_async(resource_group_name, lab_name, name, custom_headers).value!
533
+ def claim(resource_group_name, lab_name, name, custom_headers:nil)
534
+ response = claim_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value!
534
535
  nil
535
536
  end
536
537
 
@@ -544,9 +545,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
544
545
  # @return [Concurrent::Promise] promise which provides async access to http
545
546
  # response.
546
547
  #
547
- def claim_async(resource_group_name, lab_name, name, custom_headers = nil)
548
+ def claim_async(resource_group_name, lab_name, name, custom_headers:nil)
548
549
  # Send request
549
- promise = begin_claim_async(resource_group_name, lab_name, name, custom_headers)
550
+ promise = begin_claim_async(resource_group_name, lab_name, name, custom_headers:custom_headers)
550
551
 
551
552
  promise = promise.then do |response|
552
553
  # Defining deserialization method.
@@ -572,8 +573,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
572
573
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
573
574
  # will be added to the HTTP request.
574
575
  #
575
- def detach_data_disk(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers = nil)
576
- response = detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers).value!
576
+ def detach_data_disk(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers:nil)
577
+ response = detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers:custom_headers).value!
577
578
  nil
578
579
  end
579
580
 
@@ -589,9 +590,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
589
590
  # @return [Concurrent::Promise] promise which provides async access to http
590
591
  # response.
591
592
  #
592
- def detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers = nil)
593
+ def detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers:nil)
593
594
  # Send request
594
- promise = begin_detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers)
595
+ promise = begin_detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers:custom_headers)
595
596
 
596
597
  promise = promise.then do |response|
597
598
  # Defining deserialization method.
@@ -616,8 +617,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
616
617
  #
617
618
  # @return [ApplicableSchedule] operation results.
618
619
  #
619
- def list_applicable_schedules(resource_group_name, lab_name, name, custom_headers = nil)
620
- response = list_applicable_schedules_async(resource_group_name, lab_name, name, custom_headers).value!
620
+ def list_applicable_schedules(resource_group_name, lab_name, name, custom_headers:nil)
621
+ response = list_applicable_schedules_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value!
621
622
  response.body unless response.nil?
622
623
  end
623
624
 
@@ -632,8 +633,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
632
633
  #
633
634
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
634
635
  #
635
- def list_applicable_schedules_with_http_info(resource_group_name, lab_name, name, custom_headers = nil)
636
- list_applicable_schedules_async(resource_group_name, lab_name, name, custom_headers).value!
636
+ def list_applicable_schedules_with_http_info(resource_group_name, lab_name, name, custom_headers:nil)
637
+ list_applicable_schedules_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value!
637
638
  end
638
639
 
639
640
  #
@@ -647,7 +648,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
647
648
  #
648
649
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
649
650
  #
650
- def list_applicable_schedules_async(resource_group_name, lab_name, name, custom_headers = nil)
651
+ def list_applicable_schedules_async(resource_group_name, lab_name, name, custom_headers:nil)
651
652
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
652
653
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
653
654
  fail ArgumentError, 'lab_name is nil' if lab_name.nil?
@@ -656,6 +657,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
656
657
 
657
658
 
658
659
  request_headers = {}
660
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
659
661
 
660
662
  # Set Headers
661
663
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -709,8 +711,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
709
711
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
710
712
  # will be added to the HTTP request.
711
713
  #
712
- def start(resource_group_name, lab_name, name, custom_headers = nil)
713
- response = start_async(resource_group_name, lab_name, name, custom_headers).value!
714
+ def start(resource_group_name, lab_name, name, custom_headers:nil)
715
+ response = start_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value!
714
716
  nil
715
717
  end
716
718
 
@@ -724,9 +726,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
724
726
  # @return [Concurrent::Promise] promise which provides async access to http
725
727
  # response.
726
728
  #
727
- def start_async(resource_group_name, lab_name, name, custom_headers = nil)
729
+ def start_async(resource_group_name, lab_name, name, custom_headers:nil)
728
730
  # Send request
729
- promise = begin_start_async(resource_group_name, lab_name, name, custom_headers)
731
+ promise = begin_start_async(resource_group_name, lab_name, name, custom_headers:custom_headers)
730
732
 
731
733
  promise = promise.then do |response|
732
734
  # Defining deserialization method.
@@ -749,8 +751,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
749
751
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
750
752
  # will be added to the HTTP request.
751
753
  #
752
- def stop(resource_group_name, lab_name, name, custom_headers = nil)
753
- response = stop_async(resource_group_name, lab_name, name, custom_headers).value!
754
+ def stop(resource_group_name, lab_name, name, custom_headers:nil)
755
+ response = stop_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value!
754
756
  nil
755
757
  end
756
758
 
@@ -764,9 +766,9 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
764
766
  # @return [Concurrent::Promise] promise which provides async access to http
765
767
  # response.
766
768
  #
767
- def stop_async(resource_group_name, lab_name, name, custom_headers = nil)
769
+ def stop_async(resource_group_name, lab_name, name, custom_headers:nil)
768
770
  # Send request
769
- promise = begin_stop_async(resource_group_name, lab_name, name, custom_headers)
771
+ promise = begin_stop_async(resource_group_name, lab_name, name, custom_headers:custom_headers)
770
772
 
771
773
  promise = promise.then do |response|
772
774
  # Defining deserialization method.
@@ -793,8 +795,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
793
795
  #
794
796
  # @return [LabVirtualMachine] operation results.
795
797
  #
796
- def begin_create_or_update(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers = nil)
797
- response = begin_create_or_update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers).value!
798
+ def begin_create_or_update(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:nil)
799
+ response = begin_create_or_update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:custom_headers).value!
798
800
  response.body unless response.nil?
799
801
  end
800
802
 
@@ -811,8 +813,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
811
813
  #
812
814
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
813
815
  #
814
- def begin_create_or_update_with_http_info(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers = nil)
815
- begin_create_or_update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers).value!
816
+ def begin_create_or_update_with_http_info(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:nil)
817
+ begin_create_or_update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:custom_headers).value!
816
818
  end
817
819
 
818
820
  #
@@ -828,7 +830,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
828
830
  #
829
831
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
830
832
  #
831
- def begin_create_or_update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers = nil)
833
+ def begin_create_or_update_async(resource_group_name, lab_name, name, lab_virtual_machine, custom_headers:nil)
832
834
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
833
835
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
834
836
  fail ArgumentError, 'lab_name is nil' if lab_name.nil?
@@ -838,13 +840,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
838
840
 
839
841
 
840
842
  request_headers = {}
843
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
841
844
 
842
845
  # Set Headers
843
846
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
844
847
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
845
848
 
846
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
847
-
848
849
  # Serialize Request
849
850
  request_mapper = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::LabVirtualMachine.mapper()
850
851
  request_content = @client.serialize(request_mapper, lab_virtual_machine)
@@ -911,8 +912,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
911
912
  # will be added to the HTTP request.
912
913
  #
913
914
  #
914
- def begin_delete(resource_group_name, lab_name, name, custom_headers = nil)
915
- response = begin_delete_async(resource_group_name, lab_name, name, custom_headers).value!
915
+ def begin_delete(resource_group_name, lab_name, name, custom_headers:nil)
916
+ response = begin_delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value!
916
917
  nil
917
918
  end
918
919
 
@@ -927,8 +928,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
927
928
  #
928
929
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
929
930
  #
930
- def begin_delete_with_http_info(resource_group_name, lab_name, name, custom_headers = nil)
931
- begin_delete_async(resource_group_name, lab_name, name, custom_headers).value!
931
+ def begin_delete_with_http_info(resource_group_name, lab_name, name, custom_headers:nil)
932
+ begin_delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value!
932
933
  end
933
934
 
934
935
  #
@@ -942,7 +943,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
942
943
  #
943
944
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
944
945
  #
945
- def begin_delete_async(resource_group_name, lab_name, name, custom_headers = nil)
946
+ def begin_delete_async(resource_group_name, lab_name, name, custom_headers:nil)
946
947
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
947
948
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
948
949
  fail ArgumentError, 'lab_name is nil' if lab_name.nil?
@@ -951,6 +952,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
951
952
 
952
953
 
953
954
  request_headers = {}
955
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
954
956
 
955
957
  # Set Headers
956
958
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -998,8 +1000,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
998
1000
  # will be added to the HTTP request.
999
1001
  #
1000
1002
  #
1001
- def begin_add_data_disk(resource_group_name, lab_name, name, data_disk_properties, custom_headers = nil)
1002
- response = begin_add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, custom_headers).value!
1003
+ def begin_add_data_disk(resource_group_name, lab_name, name, data_disk_properties, custom_headers:nil)
1004
+ response = begin_add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, custom_headers:custom_headers).value!
1003
1005
  nil
1004
1006
  end
1005
1007
 
@@ -1017,8 +1019,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
1017
1019
  #
1018
1020
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1019
1021
  #
1020
- def begin_add_data_disk_with_http_info(resource_group_name, lab_name, name, data_disk_properties, custom_headers = nil)
1021
- begin_add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, custom_headers).value!
1022
+ def begin_add_data_disk_with_http_info(resource_group_name, lab_name, name, data_disk_properties, custom_headers:nil)
1023
+ begin_add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, custom_headers:custom_headers).value!
1022
1024
  end
1023
1025
 
1024
1026
  #
@@ -1035,7 +1037,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
1035
1037
  #
1036
1038
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1037
1039
  #
1038
- def begin_add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, custom_headers = nil)
1040
+ def begin_add_data_disk_async(resource_group_name, lab_name, name, data_disk_properties, custom_headers:nil)
1039
1041
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1040
1042
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1041
1043
  fail ArgumentError, 'lab_name is nil' if lab_name.nil?
@@ -1045,13 +1047,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
1045
1047
 
1046
1048
 
1047
1049
  request_headers = {}
1050
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1048
1051
 
1049
1052
  # Set Headers
1050
1053
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1051
1054
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1052
1055
 
1053
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1054
-
1055
1056
  # Serialize Request
1056
1057
  request_mapper = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::DataDiskProperties.mapper()
1057
1058
  request_content = @client.serialize(request_mapper, data_disk_properties)
@@ -1101,8 +1102,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
1101
1102
  # will be added to the HTTP request.
1102
1103
  #
1103
1104
  #
1104
- def begin_apply_artifacts(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers = nil)
1105
- response = begin_apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers).value!
1105
+ def begin_apply_artifacts(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers:nil)
1106
+ response = begin_apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers:custom_headers).value!
1106
1107
  nil
1107
1108
  end
1108
1109
 
@@ -1120,8 +1121,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
1120
1121
  #
1121
1122
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1122
1123
  #
1123
- def begin_apply_artifacts_with_http_info(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers = nil)
1124
- begin_apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers).value!
1124
+ def begin_apply_artifacts_with_http_info(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers:nil)
1125
+ begin_apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers:custom_headers).value!
1125
1126
  end
1126
1127
 
1127
1128
  #
@@ -1138,7 +1139,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
1138
1139
  #
1139
1140
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1140
1141
  #
1141
- def begin_apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers = nil)
1142
+ def begin_apply_artifacts_async(resource_group_name, lab_name, name, apply_artifacts_request, custom_headers:nil)
1142
1143
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1143
1144
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1144
1145
  fail ArgumentError, 'lab_name is nil' if lab_name.nil?
@@ -1148,13 +1149,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
1148
1149
 
1149
1150
 
1150
1151
  request_headers = {}
1152
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1151
1153
 
1152
1154
  # Set Headers
1153
1155
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1154
1156
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1155
1157
 
1156
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1157
-
1158
1158
  # Serialize Request
1159
1159
  request_mapper = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::ApplyArtifactsRequest.mapper()
1160
1160
  request_content = @client.serialize(request_mapper, apply_artifacts_request)
@@ -1202,8 +1202,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
1202
1202
  # will be added to the HTTP request.
1203
1203
  #
1204
1204
  #
1205
- def begin_claim(resource_group_name, lab_name, name, custom_headers = nil)
1206
- response = begin_claim_async(resource_group_name, lab_name, name, custom_headers).value!
1205
+ def begin_claim(resource_group_name, lab_name, name, custom_headers:nil)
1206
+ response = begin_claim_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value!
1207
1207
  nil
1208
1208
  end
1209
1209
 
@@ -1219,8 +1219,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
1219
1219
  #
1220
1220
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1221
1221
  #
1222
- def begin_claim_with_http_info(resource_group_name, lab_name, name, custom_headers = nil)
1223
- begin_claim_async(resource_group_name, lab_name, name, custom_headers).value!
1222
+ def begin_claim_with_http_info(resource_group_name, lab_name, name, custom_headers:nil)
1223
+ begin_claim_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value!
1224
1224
  end
1225
1225
 
1226
1226
  #
@@ -1235,7 +1235,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
1235
1235
  #
1236
1236
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1237
1237
  #
1238
- def begin_claim_async(resource_group_name, lab_name, name, custom_headers = nil)
1238
+ def begin_claim_async(resource_group_name, lab_name, name, custom_headers:nil)
1239
1239
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1240
1240
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1241
1241
  fail ArgumentError, 'lab_name is nil' if lab_name.nil?
@@ -1244,6 +1244,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
1244
1244
 
1245
1245
 
1246
1246
  request_headers = {}
1247
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1247
1248
 
1248
1249
  # Set Headers
1249
1250
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1291,8 +1292,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
1291
1292
  # will be added to the HTTP request.
1292
1293
  #
1293
1294
  #
1294
- def begin_detach_data_disk(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers = nil)
1295
- response = begin_detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers).value!
1295
+ def begin_detach_data_disk(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers:nil)
1296
+ response = begin_detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers:custom_headers).value!
1296
1297
  nil
1297
1298
  end
1298
1299
 
@@ -1310,8 +1311,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
1310
1311
  #
1311
1312
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1312
1313
  #
1313
- def begin_detach_data_disk_with_http_info(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers = nil)
1314
- begin_detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers).value!
1314
+ def begin_detach_data_disk_with_http_info(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers:nil)
1315
+ begin_detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers:custom_headers).value!
1315
1316
  end
1316
1317
 
1317
1318
  #
@@ -1328,7 +1329,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
1328
1329
  #
1329
1330
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1330
1331
  #
1331
- def begin_detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers = nil)
1332
+ def begin_detach_data_disk_async(resource_group_name, lab_name, name, detach_data_disk_properties, custom_headers:nil)
1332
1333
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1333
1334
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1334
1335
  fail ArgumentError, 'lab_name is nil' if lab_name.nil?
@@ -1338,13 +1339,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
1338
1339
 
1339
1340
 
1340
1341
  request_headers = {}
1342
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1341
1343
 
1342
1344
  # Set Headers
1343
1345
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1344
1346
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1345
1347
 
1346
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1347
-
1348
1348
  # Serialize Request
1349
1349
  request_mapper = Azure::DevTestLabs::Mgmt::V2016_05_15::Models::DetachDataDiskProperties.mapper()
1350
1350
  request_content = @client.serialize(request_mapper, detach_data_disk_properties)
@@ -1391,8 +1391,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
1391
1391
  # will be added to the HTTP request.
1392
1392
  #
1393
1393
  #
1394
- def begin_start(resource_group_name, lab_name, name, custom_headers = nil)
1395
- response = begin_start_async(resource_group_name, lab_name, name, custom_headers).value!
1394
+ def begin_start(resource_group_name, lab_name, name, custom_headers:nil)
1395
+ response = begin_start_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value!
1396
1396
  nil
1397
1397
  end
1398
1398
 
@@ -1407,8 +1407,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
1407
1407
  #
1408
1408
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1409
1409
  #
1410
- def begin_start_with_http_info(resource_group_name, lab_name, name, custom_headers = nil)
1411
- begin_start_async(resource_group_name, lab_name, name, custom_headers).value!
1410
+ def begin_start_with_http_info(resource_group_name, lab_name, name, custom_headers:nil)
1411
+ begin_start_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value!
1412
1412
  end
1413
1413
 
1414
1414
  #
@@ -1422,7 +1422,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
1422
1422
  #
1423
1423
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1424
1424
  #
1425
- def begin_start_async(resource_group_name, lab_name, name, custom_headers = nil)
1425
+ def begin_start_async(resource_group_name, lab_name, name, custom_headers:nil)
1426
1426
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1427
1427
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1428
1428
  fail ArgumentError, 'lab_name is nil' if lab_name.nil?
@@ -1431,6 +1431,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
1431
1431
 
1432
1432
 
1433
1433
  request_headers = {}
1434
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1434
1435
 
1435
1436
  # Set Headers
1436
1437
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1475,8 +1476,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
1475
1476
  # will be added to the HTTP request.
1476
1477
  #
1477
1478
  #
1478
- def begin_stop(resource_group_name, lab_name, name, custom_headers = nil)
1479
- response = begin_stop_async(resource_group_name, lab_name, name, custom_headers).value!
1479
+ def begin_stop(resource_group_name, lab_name, name, custom_headers:nil)
1480
+ response = begin_stop_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value!
1480
1481
  nil
1481
1482
  end
1482
1483
 
@@ -1491,8 +1492,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
1491
1492
  #
1492
1493
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1493
1494
  #
1494
- def begin_stop_with_http_info(resource_group_name, lab_name, name, custom_headers = nil)
1495
- begin_stop_async(resource_group_name, lab_name, name, custom_headers).value!
1495
+ def begin_stop_with_http_info(resource_group_name, lab_name, name, custom_headers:nil)
1496
+ begin_stop_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value!
1496
1497
  end
1497
1498
 
1498
1499
  #
@@ -1506,7 +1507,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
1506
1507
  #
1507
1508
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1508
1509
  #
1509
- def begin_stop_async(resource_group_name, lab_name, name, custom_headers = nil)
1510
+ def begin_stop_async(resource_group_name, lab_name, name, custom_headers:nil)
1510
1511
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1511
1512
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1512
1513
  fail ArgumentError, 'lab_name is nil' if lab_name.nil?
@@ -1515,6 +1516,7 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
1515
1516
 
1516
1517
 
1517
1518
  request_headers = {}
1519
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1518
1520
 
1519
1521
  # Set Headers
1520
1522
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1559,8 +1561,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
1559
1561
  #
1560
1562
  # @return [ResponseWithContinuationLabVirtualMachine] operation results.
1561
1563
  #
1562
- def list_next(next_page_link, custom_headers = nil)
1563
- response = list_next_async(next_page_link, custom_headers).value!
1564
+ def list_next(next_page_link, custom_headers:nil)
1565
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
1564
1566
  response.body unless response.nil?
1565
1567
  end
1566
1568
 
@@ -1574,8 +1576,8 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
1574
1576
  #
1575
1577
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1576
1578
  #
1577
- def list_next_with_http_info(next_page_link, custom_headers = nil)
1578
- list_next_async(next_page_link, custom_headers).value!
1579
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
1580
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
1579
1581
  end
1580
1582
 
1581
1583
  #
@@ -1588,11 +1590,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
1588
1590
  #
1589
1591
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1590
1592
  #
1591
- def list_next_async(next_page_link, custom_headers = nil)
1593
+ def list_next_async(next_page_link, custom_headers:nil)
1592
1594
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1593
1595
 
1594
1596
 
1595
1597
  request_headers = {}
1598
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1596
1599
 
1597
1600
  # Set Headers
1598
1601
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1654,12 +1657,12 @@ module Azure::DevTestLabs::Mgmt::V2016_05_15
1654
1657
  # @return [ResponseWithContinuationLabVirtualMachine] which provide lazy access
1655
1658
  # to pages of the response.
1656
1659
  #
1657
- def list_as_lazy(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil)
1658
- response = list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value!
1660
+ def list_as_lazy(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
1661
+ response = list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value!
1659
1662
  unless response.nil?
1660
1663
  page = response.body
1661
1664
  page.next_method = Proc.new do |next_page_link|
1662
- list_next_async(next_page_link, custom_headers)
1665
+ list_next_async(next_page_link, custom_headers:custom_headers)
1663
1666
  end
1664
1667
  page
1665
1668
  end