azure_mgmt_machine_learning 0.15.2 → 0.17.3

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.
@@ -42,8 +42,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
42
42
  #
43
43
  # @return [WebService] operation results.
44
44
  #
45
- def create_or_update(resource_group_name, web_service_name, create_or_update_payload, custom_headers = nil)
46
- response = create_or_update_async(resource_group_name, web_service_name, create_or_update_payload, custom_headers).value!
45
+ def create_or_update(resource_group_name, web_service_name, create_or_update_payload, custom_headers:nil)
46
+ response = create_or_update_async(resource_group_name, web_service_name, create_or_update_payload, custom_headers:custom_headers).value!
47
47
  response.body unless response.nil?
48
48
  end
49
49
 
@@ -59,9 +59,9 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
59
59
  # @return [Concurrent::Promise] promise which provides async access to http
60
60
  # response.
61
61
  #
62
- def create_or_update_async(resource_group_name, web_service_name, create_or_update_payload, custom_headers = nil)
62
+ def create_or_update_async(resource_group_name, web_service_name, create_or_update_payload, custom_headers:nil)
63
63
  # Send request
64
- promise = begin_create_or_update_async(resource_group_name, web_service_name, create_or_update_payload, custom_headers)
64
+ promise = begin_create_or_update_async(resource_group_name, web_service_name, create_or_update_payload, custom_headers:custom_headers)
65
65
 
66
66
  promise = promise.then do |response|
67
67
  # Defining deserialization method.
@@ -93,8 +93,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
93
93
  #
94
94
  # @return [WebService] operation results.
95
95
  #
96
- def get(resource_group_name, web_service_name, region = nil, custom_headers = nil)
97
- response = get_async(resource_group_name, web_service_name, region, custom_headers).value!
96
+ def get(resource_group_name, web_service_name, region:nil, custom_headers:nil)
97
+ response = get_async(resource_group_name, web_service_name, region:region, custom_headers:custom_headers).value!
98
98
  response.body unless response.nil?
99
99
  end
100
100
 
@@ -114,8 +114,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
114
114
  #
115
115
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
116
116
  #
117
- def get_with_http_info(resource_group_name, web_service_name, region = nil, custom_headers = nil)
118
- get_async(resource_group_name, web_service_name, region, custom_headers).value!
117
+ def get_with_http_info(resource_group_name, web_service_name, region:nil, custom_headers:nil)
118
+ get_async(resource_group_name, web_service_name, region:region, custom_headers:custom_headers).value!
119
119
  end
120
120
 
121
121
  #
@@ -134,7 +134,7 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
134
134
  #
135
135
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
136
136
  #
137
- def get_async(resource_group_name, web_service_name, region = nil, custom_headers = nil)
137
+ def get_async(resource_group_name, web_service_name, region:nil, custom_headers:nil)
138
138
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
139
139
  fail ArgumentError, 'web_service_name is nil' if web_service_name.nil?
140
140
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -142,6 +142,7 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
142
142
 
143
143
 
144
144
  request_headers = {}
145
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
145
146
 
146
147
  # Set Headers
147
148
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -201,8 +202,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
201
202
  #
202
203
  # @return [WebService] operation results.
203
204
  #
204
- def patch(resource_group_name, web_service_name, patch_payload, custom_headers = nil)
205
- response = patch_async(resource_group_name, web_service_name, patch_payload, custom_headers).value!
205
+ def patch(resource_group_name, web_service_name, patch_payload, custom_headers:nil)
206
+ response = patch_async(resource_group_name, web_service_name, patch_payload, custom_headers:custom_headers).value!
206
207
  response.body unless response.nil?
207
208
  end
208
209
 
@@ -218,9 +219,9 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
218
219
  # @return [Concurrent::Promise] promise which provides async access to http
219
220
  # response.
220
221
  #
221
- def patch_async(resource_group_name, web_service_name, patch_payload, custom_headers = nil)
222
+ def patch_async(resource_group_name, web_service_name, patch_payload, custom_headers:nil)
222
223
  # Send request
223
- promise = begin_patch_async(resource_group_name, web_service_name, patch_payload, custom_headers)
224
+ promise = begin_patch_async(resource_group_name, web_service_name, patch_payload, custom_headers:custom_headers)
224
225
 
225
226
  promise = promise.then do |response|
226
227
  # Defining deserialization method.
@@ -245,8 +246,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
245
246
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
246
247
  # will be added to the HTTP request.
247
248
  #
248
- def remove(resource_group_name, web_service_name, custom_headers = nil)
249
- response = remove_async(resource_group_name, web_service_name, custom_headers).value!
249
+ def remove(resource_group_name, web_service_name, custom_headers:nil)
250
+ response = remove_async(resource_group_name, web_service_name, custom_headers:custom_headers).value!
250
251
  nil
251
252
  end
252
253
 
@@ -260,9 +261,9 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
260
261
  # @return [Concurrent::Promise] promise which provides async access to http
261
262
  # response.
262
263
  #
263
- def remove_async(resource_group_name, web_service_name, custom_headers = nil)
264
+ def remove_async(resource_group_name, web_service_name, custom_headers:nil)
264
265
  # Send request
265
- promise = begin_remove_async(resource_group_name, web_service_name, custom_headers)
266
+ promise = begin_remove_async(resource_group_name, web_service_name, custom_headers:custom_headers)
266
267
 
267
268
  promise = promise.then do |response|
268
269
  # Defining deserialization method.
@@ -294,8 +295,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
294
295
  #
295
296
  # @return [AsyncOperationStatus] operation results.
296
297
  #
297
- def create_regional_properties(resource_group_name, web_service_name, region, custom_headers = nil)
298
- response = create_regional_properties_async(resource_group_name, web_service_name, region, custom_headers).value!
298
+ def create_regional_properties(resource_group_name, web_service_name, region, custom_headers:nil)
299
+ response = create_regional_properties_async(resource_group_name, web_service_name, region, custom_headers:custom_headers).value!
299
300
  response.body unless response.nil?
300
301
  end
301
302
 
@@ -311,9 +312,9 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
311
312
  # @return [Concurrent::Promise] promise which provides async access to http
312
313
  # response.
313
314
  #
314
- def create_regional_properties_async(resource_group_name, web_service_name, region, custom_headers = nil)
315
+ def create_regional_properties_async(resource_group_name, web_service_name, region, custom_headers:nil)
315
316
  # Send request
316
- promise = begin_create_regional_properties_async(resource_group_name, web_service_name, region, custom_headers)
317
+ promise = begin_create_regional_properties_async(resource_group_name, web_service_name, region, custom_headers:custom_headers)
317
318
 
318
319
  promise = promise.then do |response|
319
320
  # Defining deserialization method.
@@ -340,8 +341,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
340
341
  #
341
342
  # @return [WebServiceKeys] operation results.
342
343
  #
343
- def list_keys(resource_group_name, web_service_name, custom_headers = nil)
344
- response = list_keys_async(resource_group_name, web_service_name, custom_headers).value!
344
+ def list_keys(resource_group_name, web_service_name, custom_headers:nil)
345
+ response = list_keys_async(resource_group_name, web_service_name, custom_headers:custom_headers).value!
345
346
  response.body unless response.nil?
346
347
  end
347
348
 
@@ -356,8 +357,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
356
357
  #
357
358
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
358
359
  #
359
- def list_keys_with_http_info(resource_group_name, web_service_name, custom_headers = nil)
360
- list_keys_async(resource_group_name, web_service_name, custom_headers).value!
360
+ def list_keys_with_http_info(resource_group_name, web_service_name, custom_headers:nil)
361
+ list_keys_async(resource_group_name, web_service_name, custom_headers:custom_headers).value!
361
362
  end
362
363
 
363
364
  #
@@ -371,7 +372,7 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
371
372
  #
372
373
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
373
374
  #
374
- def list_keys_async(resource_group_name, web_service_name, custom_headers = nil)
375
+ def list_keys_async(resource_group_name, web_service_name, custom_headers:nil)
375
376
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
376
377
  fail ArgumentError, 'web_service_name is nil' if web_service_name.nil?
377
378
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -379,6 +380,7 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
379
380
 
380
381
 
381
382
  request_headers = {}
383
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
382
384
 
383
385
  # Set Headers
384
386
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -434,8 +436,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
434
436
  #
435
437
  # @return [Array<WebService>] operation results.
436
438
  #
437
- def list_by_resource_group(resource_group_name, skiptoken = nil, custom_headers = nil)
438
- first_page = list_by_resource_group_as_lazy(resource_group_name, skiptoken, custom_headers)
439
+ def list_by_resource_group(resource_group_name, skiptoken:nil, custom_headers:nil)
440
+ first_page = list_by_resource_group_as_lazy(resource_group_name, skiptoken:skiptoken, custom_headers:custom_headers)
439
441
  first_page.get_all_items
440
442
  end
441
443
 
@@ -450,8 +452,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
450
452
  #
451
453
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
452
454
  #
453
- def list_by_resource_group_with_http_info(resource_group_name, skiptoken = nil, custom_headers = nil)
454
- list_by_resource_group_async(resource_group_name, skiptoken, custom_headers).value!
455
+ def list_by_resource_group_with_http_info(resource_group_name, skiptoken:nil, custom_headers:nil)
456
+ list_by_resource_group_async(resource_group_name, skiptoken:skiptoken, custom_headers:custom_headers).value!
455
457
  end
456
458
 
457
459
  #
@@ -465,13 +467,14 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
465
467
  #
466
468
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
467
469
  #
468
- def list_by_resource_group_async(resource_group_name, skiptoken = nil, custom_headers = nil)
470
+ def list_by_resource_group_async(resource_group_name, skiptoken:nil, custom_headers:nil)
469
471
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
470
472
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
471
473
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
472
474
 
473
475
 
474
476
  request_headers = {}
477
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
475
478
 
476
479
  # Set Headers
477
480
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -525,8 +528,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
525
528
  #
526
529
  # @return [Array<WebService>] operation results.
527
530
  #
528
- def list_by_subscription_id(skiptoken = nil, custom_headers = nil)
529
- first_page = list_by_subscription_id_as_lazy(skiptoken, custom_headers)
531
+ def list_by_subscription_id(skiptoken:nil, custom_headers:nil)
532
+ first_page = list_by_subscription_id_as_lazy(skiptoken:skiptoken, custom_headers:custom_headers)
530
533
  first_page.get_all_items
531
534
  end
532
535
 
@@ -539,8 +542,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
539
542
  #
540
543
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
541
544
  #
542
- def list_by_subscription_id_with_http_info(skiptoken = nil, custom_headers = nil)
543
- list_by_subscription_id_async(skiptoken, custom_headers).value!
545
+ def list_by_subscription_id_with_http_info(skiptoken:nil, custom_headers:nil)
546
+ list_by_subscription_id_async(skiptoken:skiptoken, custom_headers:custom_headers).value!
544
547
  end
545
548
 
546
549
  #
@@ -552,12 +555,13 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
552
555
  #
553
556
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
554
557
  #
555
- def list_by_subscription_id_async(skiptoken = nil, custom_headers = nil)
558
+ def list_by_subscription_id_async(skiptoken:nil, custom_headers:nil)
556
559
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
557
560
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
558
561
 
559
562
 
560
563
  request_headers = {}
564
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
561
565
 
562
566
  # Set Headers
563
567
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -618,8 +622,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
618
622
  #
619
623
  # @return [WebService] operation results.
620
624
  #
621
- def begin_create_or_update(resource_group_name, web_service_name, create_or_update_payload, custom_headers = nil)
622
- response = begin_create_or_update_async(resource_group_name, web_service_name, create_or_update_payload, custom_headers).value!
625
+ def begin_create_or_update(resource_group_name, web_service_name, create_or_update_payload, custom_headers:nil)
626
+ response = begin_create_or_update_async(resource_group_name, web_service_name, create_or_update_payload, custom_headers:custom_headers).value!
623
627
  response.body unless response.nil?
624
628
  end
625
629
 
@@ -639,8 +643,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
639
643
  #
640
644
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
641
645
  #
642
- def begin_create_or_update_with_http_info(resource_group_name, web_service_name, create_or_update_payload, custom_headers = nil)
643
- begin_create_or_update_async(resource_group_name, web_service_name, create_or_update_payload, custom_headers).value!
646
+ def begin_create_or_update_with_http_info(resource_group_name, web_service_name, create_or_update_payload, custom_headers:nil)
647
+ begin_create_or_update_async(resource_group_name, web_service_name, create_or_update_payload, custom_headers:custom_headers).value!
644
648
  end
645
649
 
646
650
  #
@@ -659,7 +663,7 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
659
663
  #
660
664
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
661
665
  #
662
- def begin_create_or_update_async(resource_group_name, web_service_name, create_or_update_payload, custom_headers = nil)
666
+ def begin_create_or_update_async(resource_group_name, web_service_name, create_or_update_payload, custom_headers:nil)
663
667
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
664
668
  fail ArgumentError, 'web_service_name is nil' if web_service_name.nil?
665
669
  fail ArgumentError, 'create_or_update_payload is nil' if create_or_update_payload.nil?
@@ -668,13 +672,12 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
668
672
 
669
673
 
670
674
  request_headers = {}
675
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
671
676
 
672
677
  # Set Headers
673
678
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
674
679
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
675
680
 
676
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
677
-
678
681
  # Serialize Request
679
682
  request_mapper = Azure::MachineLearning::Mgmt::V2017_01_01::Models::WebService.mapper()
680
683
  request_content = @client.serialize(request_mapper, create_or_update_payload)
@@ -746,8 +749,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
746
749
  #
747
750
  # @return [WebService] operation results.
748
751
  #
749
- def begin_patch(resource_group_name, web_service_name, patch_payload, custom_headers = nil)
750
- response = begin_patch_async(resource_group_name, web_service_name, patch_payload, custom_headers).value!
752
+ def begin_patch(resource_group_name, web_service_name, patch_payload, custom_headers:nil)
753
+ response = begin_patch_async(resource_group_name, web_service_name, patch_payload, custom_headers:custom_headers).value!
751
754
  response.body unless response.nil?
752
755
  end
753
756
 
@@ -766,8 +769,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
766
769
  #
767
770
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
768
771
  #
769
- def begin_patch_with_http_info(resource_group_name, web_service_name, patch_payload, custom_headers = nil)
770
- begin_patch_async(resource_group_name, web_service_name, patch_payload, custom_headers).value!
772
+ def begin_patch_with_http_info(resource_group_name, web_service_name, patch_payload, custom_headers:nil)
773
+ begin_patch_async(resource_group_name, web_service_name, patch_payload, custom_headers:custom_headers).value!
771
774
  end
772
775
 
773
776
  #
@@ -785,7 +788,7 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
785
788
  #
786
789
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
787
790
  #
788
- def begin_patch_async(resource_group_name, web_service_name, patch_payload, custom_headers = nil)
791
+ def begin_patch_async(resource_group_name, web_service_name, patch_payload, custom_headers:nil)
789
792
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
790
793
  fail ArgumentError, 'web_service_name is nil' if web_service_name.nil?
791
794
  fail ArgumentError, 'patch_payload is nil' if patch_payload.nil?
@@ -794,13 +797,12 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
794
797
 
795
798
 
796
799
  request_headers = {}
800
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
797
801
 
798
802
  # Set Headers
799
803
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
800
804
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
801
805
 
802
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
803
-
804
806
  # Serialize Request
805
807
  request_mapper = Azure::MachineLearning::Mgmt::V2017_01_01::Models::WebService.mapper()
806
808
  request_content = @client.serialize(request_mapper, patch_payload)
@@ -857,8 +859,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
857
859
  # will be added to the HTTP request.
858
860
  #
859
861
  #
860
- def begin_remove(resource_group_name, web_service_name, custom_headers = nil)
861
- response = begin_remove_async(resource_group_name, web_service_name, custom_headers).value!
862
+ def begin_remove(resource_group_name, web_service_name, custom_headers:nil)
863
+ response = begin_remove_async(resource_group_name, web_service_name, custom_headers:custom_headers).value!
862
864
  nil
863
865
  end
864
866
 
@@ -873,8 +875,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
873
875
  #
874
876
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
875
877
  #
876
- def begin_remove_with_http_info(resource_group_name, web_service_name, custom_headers = nil)
877
- begin_remove_async(resource_group_name, web_service_name, custom_headers).value!
878
+ def begin_remove_with_http_info(resource_group_name, web_service_name, custom_headers:nil)
879
+ begin_remove_async(resource_group_name, web_service_name, custom_headers:custom_headers).value!
878
880
  end
879
881
 
880
882
  #
@@ -888,7 +890,7 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
888
890
  #
889
891
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
890
892
  #
891
- def begin_remove_async(resource_group_name, web_service_name, custom_headers = nil)
893
+ def begin_remove_async(resource_group_name, web_service_name, custom_headers:nil)
892
894
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
893
895
  fail ArgumentError, 'web_service_name is nil' if web_service_name.nil?
894
896
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -896,6 +898,7 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
896
898
 
897
899
 
898
900
  request_headers = {}
901
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
899
902
 
900
903
  # Set Headers
901
904
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -948,8 +951,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
948
951
  #
949
952
  # @return [AsyncOperationStatus] operation results.
950
953
  #
951
- def begin_create_regional_properties(resource_group_name, web_service_name, region, custom_headers = nil)
952
- response = begin_create_regional_properties_async(resource_group_name, web_service_name, region, custom_headers).value!
954
+ def begin_create_regional_properties(resource_group_name, web_service_name, region, custom_headers:nil)
955
+ response = begin_create_regional_properties_async(resource_group_name, web_service_name, region, custom_headers:custom_headers).value!
953
956
  response.body unless response.nil?
954
957
  end
955
958
 
@@ -971,8 +974,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
971
974
  #
972
975
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
973
976
  #
974
- def begin_create_regional_properties_with_http_info(resource_group_name, web_service_name, region, custom_headers = nil)
975
- begin_create_regional_properties_async(resource_group_name, web_service_name, region, custom_headers).value!
977
+ def begin_create_regional_properties_with_http_info(resource_group_name, web_service_name, region, custom_headers:nil)
978
+ begin_create_regional_properties_async(resource_group_name, web_service_name, region, custom_headers:custom_headers).value!
976
979
  end
977
980
 
978
981
  #
@@ -993,7 +996,7 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
993
996
  #
994
997
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
995
998
  #
996
- def begin_create_regional_properties_async(resource_group_name, web_service_name, region, custom_headers = nil)
999
+ def begin_create_regional_properties_async(resource_group_name, web_service_name, region, custom_headers:nil)
997
1000
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
998
1001
  fail ArgumentError, 'web_service_name is nil' if web_service_name.nil?
999
1002
  fail ArgumentError, 'region is nil' if region.nil?
@@ -1002,6 +1005,7 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
1002
1005
 
1003
1006
 
1004
1007
  request_headers = {}
1008
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1005
1009
 
1006
1010
  # Set Headers
1007
1011
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1056,8 +1060,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
1056
1060
  #
1057
1061
  # @return [PaginatedWebServicesList] operation results.
1058
1062
  #
1059
- def list_by_resource_group_next(next_page_link, custom_headers = nil)
1060
- response = list_by_resource_group_next_async(next_page_link, custom_headers).value!
1063
+ def list_by_resource_group_next(next_page_link, custom_headers:nil)
1064
+ response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
1061
1065
  response.body unless response.nil?
1062
1066
  end
1063
1067
 
@@ -1071,8 +1075,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
1071
1075
  #
1072
1076
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1073
1077
  #
1074
- def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil)
1075
- list_by_resource_group_next_async(next_page_link, custom_headers).value!
1078
+ def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
1079
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
1076
1080
  end
1077
1081
 
1078
1082
  #
@@ -1085,11 +1089,12 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
1085
1089
  #
1086
1090
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1087
1091
  #
1088
- def list_by_resource_group_next_async(next_page_link, custom_headers = nil)
1092
+ def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
1089
1093
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1090
1094
 
1091
1095
 
1092
1096
  request_headers = {}
1097
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1093
1098
 
1094
1099
  # Set Headers
1095
1100
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1143,8 +1148,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
1143
1148
  #
1144
1149
  # @return [PaginatedWebServicesList] operation results.
1145
1150
  #
1146
- def list_by_subscription_id_next(next_page_link, custom_headers = nil)
1147
- response = list_by_subscription_id_next_async(next_page_link, custom_headers).value!
1151
+ def list_by_subscription_id_next(next_page_link, custom_headers:nil)
1152
+ response = list_by_subscription_id_next_async(next_page_link, custom_headers:custom_headers).value!
1148
1153
  response.body unless response.nil?
1149
1154
  end
1150
1155
 
@@ -1158,8 +1163,8 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
1158
1163
  #
1159
1164
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1160
1165
  #
1161
- def list_by_subscription_id_next_with_http_info(next_page_link, custom_headers = nil)
1162
- list_by_subscription_id_next_async(next_page_link, custom_headers).value!
1166
+ def list_by_subscription_id_next_with_http_info(next_page_link, custom_headers:nil)
1167
+ list_by_subscription_id_next_async(next_page_link, custom_headers:custom_headers).value!
1163
1168
  end
1164
1169
 
1165
1170
  #
@@ -1172,11 +1177,12 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
1172
1177
  #
1173
1178
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1174
1179
  #
1175
- def list_by_subscription_id_next_async(next_page_link, custom_headers = nil)
1180
+ def list_by_subscription_id_next_async(next_page_link, custom_headers:nil)
1176
1181
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1177
1182
 
1178
1183
 
1179
1184
  request_headers = {}
1185
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1180
1186
 
1181
1187
  # Set Headers
1182
1188
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1232,12 +1238,12 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
1232
1238
  # @return [PaginatedWebServicesList] which provide lazy access to pages of the
1233
1239
  # response.
1234
1240
  #
1235
- def list_by_resource_group_as_lazy(resource_group_name, skiptoken = nil, custom_headers = nil)
1236
- response = list_by_resource_group_async(resource_group_name, skiptoken, custom_headers).value!
1241
+ def list_by_resource_group_as_lazy(resource_group_name, skiptoken:nil, custom_headers:nil)
1242
+ response = list_by_resource_group_async(resource_group_name, skiptoken:skiptoken, custom_headers:custom_headers).value!
1237
1243
  unless response.nil?
1238
1244
  page = response.body
1239
1245
  page.next_method = Proc.new do |next_page_link|
1240
- list_by_resource_group_next_async(next_page_link, custom_headers)
1246
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
1241
1247
  end
1242
1248
  page
1243
1249
  end
@@ -1253,12 +1259,12 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
1253
1259
  # @return [PaginatedWebServicesList] which provide lazy access to pages of the
1254
1260
  # response.
1255
1261
  #
1256
- def list_by_subscription_id_as_lazy(skiptoken = nil, custom_headers = nil)
1257
- response = list_by_subscription_id_async(skiptoken, custom_headers).value!
1262
+ def list_by_subscription_id_as_lazy(skiptoken:nil, custom_headers:nil)
1263
+ response = list_by_subscription_id_async(skiptoken:skiptoken, custom_headers:custom_headers).value!
1258
1264
  unless response.nil?
1259
1265
  page = response.body
1260
1266
  page.next_method = Proc.new do |next_page_link|
1261
- list_by_subscription_id_next_async(next_page_link, custom_headers)
1267
+ list_by_subscription_id_next_async(next_page_link, custom_headers:custom_headers)
1262
1268
  end
1263
1269
  page
1264
1270
  end