azure_mgmt_stream_analytics 0.15.2 → 0.17.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (22) hide show
  1. checksums.yaml +5 -5
  2. data/lib/2016-03-01/generated/azure_mgmt_stream_analytics.rb +15 -15
  3. data/lib/2016-03-01/generated/azure_mgmt_stream_analytics/functions.rb +59 -59
  4. data/lib/2016-03-01/generated/azure_mgmt_stream_analytics/inputs.rb +53 -52
  5. data/lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/function_list_result.rb +1 -1
  6. data/lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/function_retrieve_default_definition_parameters.rb +1 -1
  7. data/lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/input_list_result.rb +1 -1
  8. data/lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/operation_list_result.rb +1 -1
  9. data/lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/output_list_result.rb +1 -1
  10. data/lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/resource.rb +9 -0
  11. data/lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/streaming_job_list_result.rb +1 -1
  12. data/lib/2016-03-01/generated/azure_mgmt_stream_analytics/operations.rb +15 -13
  13. data/lib/2016-03-01/generated/azure_mgmt_stream_analytics/outputs.rb +53 -52
  14. data/lib/2016-03-01/generated/azure_mgmt_stream_analytics/stream_analytics_management_client.rb +10 -6
  15. data/lib/2016-03-01/generated/azure_mgmt_stream_analytics/streaming_jobs.rb +82 -78
  16. data/lib/2016-03-01/generated/azure_mgmt_stream_analytics/subscriptions.rb +6 -5
  17. data/lib/2016-03-01/generated/azure_mgmt_stream_analytics/transformations.rb +18 -19
  18. data/lib/profiles/latest/modules/streamanalytics_profile_module.rb +265 -246
  19. data/lib/profiles/latest/streamanalytics_latest_profile_client.rb +28 -9
  20. data/lib/profiles/latest/streamanalytics_module_definition.rb +0 -1
  21. data/lib/version.rb +1 -1
  22. metadata +5 -5
@@ -43,8 +43,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
43
43
  #
44
44
  # @return [Output] operation results.
45
45
  #
46
- def create_or_replace(output, resource_group_name, job_name, output_name, if_match = nil, if_none_match = nil, custom_headers = nil)
47
- response = create_or_replace_async(output, resource_group_name, job_name, output_name, if_match, if_none_match, custom_headers).value!
46
+ def create_or_replace(output, resource_group_name, job_name, output_name, if_match:nil, if_none_match:nil, custom_headers:nil)
47
+ response = create_or_replace_async(output, resource_group_name, job_name, output_name, if_match:if_match, if_none_match:if_none_match, custom_headers:custom_headers).value!
48
48
  response.body unless response.nil?
49
49
  end
50
50
 
@@ -70,8 +70,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
70
70
  #
71
71
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
72
72
  #
73
- def create_or_replace_with_http_info(output, resource_group_name, job_name, output_name, if_match = nil, if_none_match = nil, custom_headers = nil)
74
- create_or_replace_async(output, resource_group_name, job_name, output_name, if_match, if_none_match, custom_headers).value!
73
+ def create_or_replace_with_http_info(output, resource_group_name, job_name, output_name, if_match:nil, if_none_match:nil, custom_headers:nil)
74
+ create_or_replace_async(output, resource_group_name, job_name, output_name, if_match:if_match, if_none_match:if_none_match, custom_headers:custom_headers).value!
75
75
  end
76
76
 
77
77
  #
@@ -96,7 +96,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
96
96
  #
97
97
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
98
98
  #
99
- def create_or_replace_async(output, resource_group_name, job_name, output_name, if_match = nil, if_none_match = nil, custom_headers = nil)
99
+ def create_or_replace_async(output, resource_group_name, job_name, output_name, if_match:nil, if_none_match:nil, custom_headers:nil)
100
100
  fail ArgumentError, 'output is nil' if output.nil?
101
101
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
102
102
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -106,6 +106,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
106
106
 
107
107
 
108
108
  request_headers = {}
109
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
109
110
 
110
111
  # Set Headers
111
112
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -113,8 +114,6 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
113
114
  request_headers['If-None-Match'] = if_none_match unless if_none_match.nil?
114
115
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
115
116
 
116
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
117
-
118
117
  # Serialize Request
119
118
  request_mapper = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Output.mapper()
120
119
  request_content = @client.serialize(request_mapper, output)
@@ -194,8 +193,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
194
193
  #
195
194
  # @return [Output] operation results.
196
195
  #
197
- def update(output, resource_group_name, job_name, output_name, if_match = nil, custom_headers = nil)
198
- response = update_async(output, resource_group_name, job_name, output_name, if_match, custom_headers).value!
196
+ def update(output, resource_group_name, job_name, output_name, if_match:nil, custom_headers:nil)
197
+ response = update_async(output, resource_group_name, job_name, output_name, if_match:if_match, custom_headers:custom_headers).value!
199
198
  response.body unless response.nil?
200
199
  end
201
200
 
@@ -222,8 +221,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
222
221
  #
223
222
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
224
223
  #
225
- def update_with_http_info(output, resource_group_name, job_name, output_name, if_match = nil, custom_headers = nil)
226
- update_async(output, resource_group_name, job_name, output_name, if_match, custom_headers).value!
224
+ def update_with_http_info(output, resource_group_name, job_name, output_name, if_match:nil, custom_headers:nil)
225
+ update_async(output, resource_group_name, job_name, output_name, if_match:if_match, custom_headers:custom_headers).value!
227
226
  end
228
227
 
229
228
  #
@@ -249,7 +248,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
249
248
  #
250
249
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
251
250
  #
252
- def update_async(output, resource_group_name, job_name, output_name, if_match = nil, custom_headers = nil)
251
+ def update_async(output, resource_group_name, job_name, output_name, if_match:nil, custom_headers:nil)
253
252
  fail ArgumentError, 'output is nil' if output.nil?
254
253
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
255
254
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -259,14 +258,13 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
259
258
 
260
259
 
261
260
  request_headers = {}
261
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
262
262
 
263
263
  # Set Headers
264
264
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
265
265
  request_headers['If-Match'] = if_match unless if_match.nil?
266
266
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
267
267
 
268
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
269
-
270
268
  # Serialize Request
271
269
  request_mapper = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Output.mapper()
272
270
  request_content = @client.serialize(request_mapper, output)
@@ -325,8 +323,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
325
323
  # will be added to the HTTP request.
326
324
  #
327
325
  #
328
- def delete(resource_group_name, job_name, output_name, custom_headers = nil)
329
- response = delete_async(resource_group_name, job_name, output_name, custom_headers).value!
326
+ def delete(resource_group_name, job_name, output_name, custom_headers:nil)
327
+ response = delete_async(resource_group_name, job_name, output_name, custom_headers:custom_headers).value!
330
328
  nil
331
329
  end
332
330
 
@@ -343,8 +341,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
343
341
  #
344
342
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
345
343
  #
346
- def delete_with_http_info(resource_group_name, job_name, output_name, custom_headers = nil)
347
- delete_async(resource_group_name, job_name, output_name, custom_headers).value!
344
+ def delete_with_http_info(resource_group_name, job_name, output_name, custom_headers:nil)
345
+ delete_async(resource_group_name, job_name, output_name, custom_headers:custom_headers).value!
348
346
  end
349
347
 
350
348
  #
@@ -360,7 +358,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
360
358
  #
361
359
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
362
360
  #
363
- def delete_async(resource_group_name, job_name, output_name, custom_headers = nil)
361
+ def delete_async(resource_group_name, job_name, output_name, custom_headers:nil)
364
362
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
365
363
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
366
364
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -369,6 +367,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
369
367
 
370
368
 
371
369
  request_headers = {}
370
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
372
371
 
373
372
  # Set Headers
374
373
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -416,8 +415,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
416
415
  #
417
416
  # @return [Output] operation results.
418
417
  #
419
- def get(resource_group_name, job_name, output_name, custom_headers = nil)
420
- response = get_async(resource_group_name, job_name, output_name, custom_headers).value!
418
+ def get(resource_group_name, job_name, output_name, custom_headers:nil)
419
+ response = get_async(resource_group_name, job_name, output_name, custom_headers:custom_headers).value!
421
420
  response.body unless response.nil?
422
421
  end
423
422
 
@@ -434,8 +433,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
434
433
  #
435
434
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
436
435
  #
437
- def get_with_http_info(resource_group_name, job_name, output_name, custom_headers = nil)
438
- get_async(resource_group_name, job_name, output_name, custom_headers).value!
436
+ def get_with_http_info(resource_group_name, job_name, output_name, custom_headers:nil)
437
+ get_async(resource_group_name, job_name, output_name, custom_headers:custom_headers).value!
439
438
  end
440
439
 
441
440
  #
@@ -451,7 +450,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
451
450
  #
452
451
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
453
452
  #
454
- def get_async(resource_group_name, job_name, output_name, custom_headers = nil)
453
+ def get_async(resource_group_name, job_name, output_name, custom_headers:nil)
455
454
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
456
455
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
457
456
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -460,6 +459,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
460
459
 
461
460
 
462
461
  request_headers = {}
462
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
463
463
 
464
464
  # Set Headers
465
465
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -513,15 +513,15 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
513
513
  # @param job_name [String] The name of the streaming job.
514
514
  # @param select [String] The $select OData query parameter. This is a
515
515
  # comma-separated list of structural properties to include in the response, or
516
- # “*” to include all properties. By default, all properties are returned except
516
+ # "*" to include all properties. By default, all properties are returned except
517
517
  # diagnostics. Currently only accepts '*' as a valid value.
518
518
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
519
519
  # will be added to the HTTP request.
520
520
  #
521
521
  # @return [Array<Output>] operation results.
522
522
  #
523
- def list_by_streaming_job(resource_group_name, job_name, select = nil, custom_headers = nil)
524
- first_page = list_by_streaming_job_as_lazy(resource_group_name, job_name, select, custom_headers)
523
+ def list_by_streaming_job(resource_group_name, job_name, select:nil, custom_headers:nil)
524
+ first_page = list_by_streaming_job_as_lazy(resource_group_name, job_name, select:select, custom_headers:custom_headers)
525
525
  first_page.get_all_items
526
526
  end
527
527
 
@@ -534,15 +534,15 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
534
534
  # @param job_name [String] The name of the streaming job.
535
535
  # @param select [String] The $select OData query parameter. This is a
536
536
  # comma-separated list of structural properties to include in the response, or
537
- # “*” to include all properties. By default, all properties are returned except
537
+ # "*" to include all properties. By default, all properties are returned except
538
538
  # diagnostics. Currently only accepts '*' as a valid value.
539
539
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
540
540
  # will be added to the HTTP request.
541
541
  #
542
542
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
543
543
  #
544
- def list_by_streaming_job_with_http_info(resource_group_name, job_name, select = nil, custom_headers = nil)
545
- list_by_streaming_job_async(resource_group_name, job_name, select, custom_headers).value!
544
+ def list_by_streaming_job_with_http_info(resource_group_name, job_name, select:nil, custom_headers:nil)
545
+ list_by_streaming_job_async(resource_group_name, job_name, select:select, custom_headers:custom_headers).value!
546
546
  end
547
547
 
548
548
  #
@@ -554,14 +554,14 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
554
554
  # @param job_name [String] The name of the streaming job.
555
555
  # @param select [String] The $select OData query parameter. This is a
556
556
  # comma-separated list of structural properties to include in the response, or
557
- # “*” to include all properties. By default, all properties are returned except
557
+ # "*" to include all properties. By default, all properties are returned except
558
558
  # diagnostics. Currently only accepts '*' as a valid value.
559
559
  # @param [Hash{String => String}] A hash of custom headers that will be added
560
560
  # to the HTTP request.
561
561
  #
562
562
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
563
563
  #
564
- def list_by_streaming_job_async(resource_group_name, job_name, select = nil, custom_headers = nil)
564
+ def list_by_streaming_job_async(resource_group_name, job_name, select:nil, custom_headers:nil)
565
565
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
566
566
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
567
567
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -569,6 +569,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
569
569
 
570
570
 
571
571
  request_headers = {}
572
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
572
573
 
573
574
  # Set Headers
574
575
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -633,8 +634,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
633
634
  #
634
635
  # @return [ResourceTestStatus] operation results.
635
636
  #
636
- def test(resource_group_name, job_name, output_name, output = nil, custom_headers = nil)
637
- response = test_async(resource_group_name, job_name, output_name, output, custom_headers).value!
637
+ def test(resource_group_name, job_name, output_name, output:nil, custom_headers:nil)
638
+ response = test_async(resource_group_name, job_name, output_name, output:output, custom_headers:custom_headers).value!
638
639
  response.body unless response.nil?
639
640
  end
640
641
 
@@ -656,9 +657,9 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
656
657
  # @return [Concurrent::Promise] promise which provides async access to http
657
658
  # response.
658
659
  #
659
- def test_async(resource_group_name, job_name, output_name, output = nil, custom_headers = nil)
660
+ def test_async(resource_group_name, job_name, output_name, output:nil, custom_headers:nil)
660
661
  # Send request
661
- promise = begin_test_async(resource_group_name, job_name, output_name, output, custom_headers)
662
+ promise = begin_test_async(resource_group_name, job_name, output_name, output:output, custom_headers:custom_headers)
662
663
 
663
664
  promise = promise.then do |response|
664
665
  # Defining deserialization method.
@@ -694,8 +695,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
694
695
  #
695
696
  # @return [ResourceTestStatus] operation results.
696
697
  #
697
- def begin_test(resource_group_name, job_name, output_name, output = nil, custom_headers = nil)
698
- response = begin_test_async(resource_group_name, job_name, output_name, output, custom_headers).value!
698
+ def begin_test(resource_group_name, job_name, output_name, output:nil, custom_headers:nil)
699
+ response = begin_test_async(resource_group_name, job_name, output_name, output:output, custom_headers:custom_headers).value!
699
700
  response.body unless response.nil?
700
701
  end
701
702
 
@@ -719,8 +720,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
719
720
  #
720
721
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
721
722
  #
722
- def begin_test_with_http_info(resource_group_name, job_name, output_name, output = nil, custom_headers = nil)
723
- begin_test_async(resource_group_name, job_name, output_name, output, custom_headers).value!
723
+ def begin_test_with_http_info(resource_group_name, job_name, output_name, output:nil, custom_headers:nil)
724
+ begin_test_async(resource_group_name, job_name, output_name, output:output, custom_headers:custom_headers).value!
724
725
  end
725
726
 
726
727
  #
@@ -743,7 +744,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
743
744
  #
744
745
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
745
746
  #
746
- def begin_test_async(resource_group_name, job_name, output_name, output = nil, custom_headers = nil)
747
+ def begin_test_async(resource_group_name, job_name, output_name, output:nil, custom_headers:nil)
747
748
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
748
749
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
749
750
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -752,13 +753,12 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
752
753
 
753
754
 
754
755
  request_headers = {}
756
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
755
757
 
756
758
  # Set Headers
757
759
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
758
760
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
759
761
 
760
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
761
-
762
762
  # Serialize Request
763
763
  request_mapper = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::Output.mapper()
764
764
  request_content = @client.serialize(request_mapper, output)
@@ -815,8 +815,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
815
815
  #
816
816
  # @return [OutputListResult] operation results.
817
817
  #
818
- def list_by_streaming_job_next(next_page_link, custom_headers = nil)
819
- response = list_by_streaming_job_next_async(next_page_link, custom_headers).value!
818
+ def list_by_streaming_job_next(next_page_link, custom_headers:nil)
819
+ response = list_by_streaming_job_next_async(next_page_link, custom_headers:custom_headers).value!
820
820
  response.body unless response.nil?
821
821
  end
822
822
 
@@ -830,8 +830,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
830
830
  #
831
831
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
832
832
  #
833
- def list_by_streaming_job_next_with_http_info(next_page_link, custom_headers = nil)
834
- list_by_streaming_job_next_async(next_page_link, custom_headers).value!
833
+ def list_by_streaming_job_next_with_http_info(next_page_link, custom_headers:nil)
834
+ list_by_streaming_job_next_async(next_page_link, custom_headers:custom_headers).value!
835
835
  end
836
836
 
837
837
  #
@@ -844,11 +844,12 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
844
844
  #
845
845
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
846
846
  #
847
- def list_by_streaming_job_next_async(next_page_link, custom_headers = nil)
847
+ def list_by_streaming_job_next_async(next_page_link, custom_headers:nil)
848
848
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
849
849
 
850
850
 
851
851
  request_headers = {}
852
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
852
853
 
853
854
  # Set Headers
854
855
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -901,7 +902,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
901
902
  # @param job_name [String] The name of the streaming job.
902
903
  # @param select [String] The $select OData query parameter. This is a
903
904
  # comma-separated list of structural properties to include in the response, or
904
- # “*” to include all properties. By default, all properties are returned except
905
+ # "*" to include all properties. By default, all properties are returned except
905
906
  # diagnostics. Currently only accepts '*' as a valid value.
906
907
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
907
908
  # will be added to the HTTP request.
@@ -909,12 +910,12 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
909
910
  # @return [OutputListResult] which provide lazy access to pages of the
910
911
  # response.
911
912
  #
912
- def list_by_streaming_job_as_lazy(resource_group_name, job_name, select = nil, custom_headers = nil)
913
- response = list_by_streaming_job_async(resource_group_name, job_name, select, custom_headers).value!
913
+ def list_by_streaming_job_as_lazy(resource_group_name, job_name, select:nil, custom_headers:nil)
914
+ response = list_by_streaming_job_async(resource_group_name, job_name, select:select, custom_headers:custom_headers).value!
914
915
  unless response.nil?
915
916
  page = response.body
916
917
  page.next_method = Proc.new do |next_page_link|
917
- list_by_streaming_job_next_async(next_page_link, custom_headers)
918
+ list_by_streaming_job_next_async(next_page_link, custom_headers:custom_headers)
918
919
  end
919
920
  page
920
921
  end
@@ -25,15 +25,16 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
25
25
  # @return [String] Client Api Version.
26
26
  attr_reader :api_version
27
27
 
28
- # @return [String] Gets or sets the preferred language for the response.
28
+ # @return [String] The preferred language for the response.
29
29
  attr_accessor :accept_language
30
30
 
31
- # @return [Integer] Gets or sets the retry timeout in seconds for Long
32
- # Running Operations. Default value is 30.
31
+ # @return [Integer] The retry timeout in seconds for Long Running
32
+ # Operations. Default value is 30.
33
33
  attr_accessor :long_running_operation_retry_timeout
34
34
 
35
- # @return [Boolean] When set to true a unique x-ms-client-request-id value
36
- # is generated and included in each request. Default is true.
35
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
36
+ # generated. When set to true a unique x-ms-client-request-id value is
37
+ # generated and included in each request. Default is true.
37
38
  attr_accessor :generate_client_request_id
38
39
 
39
40
  # @return [Operations] operations
@@ -130,6 +131,9 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
130
131
  fail ArgumentError, 'path is nil' if path.nil?
131
132
 
132
133
  request_url = options[:base_url] || @base_url
134
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
135
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
136
+ end
133
137
 
134
138
  request_headers = @request_headers
135
139
  request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
@@ -146,7 +150,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
146
150
  #
147
151
  def add_telemetry
148
152
  sdk_information = 'azure_mgmt_stream_analytics'
149
- sdk_information = "#{sdk_information}/0.15.2"
153
+ sdk_information = "#{sdk_information}/0.17.3"
150
154
  add_user_agent_information(sdk_information)
151
155
  end
152
156
  end
@@ -41,8 +41,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
41
41
  #
42
42
  # @return [StreamingJob] operation results.
43
43
  #
44
- def create_or_replace(streaming_job, resource_group_name, job_name, if_match = nil, if_none_match = nil, custom_headers = nil)
45
- response = create_or_replace_async(streaming_job, resource_group_name, job_name, if_match, if_none_match, custom_headers).value!
44
+ def create_or_replace(streaming_job, resource_group_name, job_name, if_match:nil, if_none_match:nil, custom_headers:nil)
45
+ response = create_or_replace_async(streaming_job, resource_group_name, job_name, if_match:if_match, if_none_match:if_none_match, custom_headers:custom_headers).value!
46
46
  response.body unless response.nil?
47
47
  end
48
48
 
@@ -65,9 +65,9 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
65
65
  # @return [Concurrent::Promise] promise which provides async access to http
66
66
  # response.
67
67
  #
68
- def create_or_replace_async(streaming_job, resource_group_name, job_name, if_match = nil, if_none_match = nil, custom_headers = nil)
68
+ def create_or_replace_async(streaming_job, resource_group_name, job_name, if_match:nil, if_none_match:nil, custom_headers:nil)
69
69
  # Send request
70
- promise = begin_create_or_replace_async(streaming_job, resource_group_name, job_name, if_match, if_none_match, custom_headers)
70
+ promise = begin_create_or_replace_async(streaming_job, resource_group_name, job_name, if_match:if_match, if_none_match:if_none_match, custom_headers:custom_headers)
71
71
 
72
72
  promise = promise.then do |response|
73
73
  # Defining deserialization method.
@@ -106,8 +106,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
106
106
  #
107
107
  # @return [StreamingJob] operation results.
108
108
  #
109
- def update(streaming_job, resource_group_name, job_name, if_match = nil, custom_headers = nil)
110
- response = update_async(streaming_job, resource_group_name, job_name, if_match, custom_headers).value!
109
+ def update(streaming_job, resource_group_name, job_name, if_match:nil, custom_headers:nil)
110
+ response = update_async(streaming_job, resource_group_name, job_name, if_match:if_match, custom_headers:custom_headers).value!
111
111
  response.body unless response.nil?
112
112
  end
113
113
 
@@ -134,8 +134,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
134
134
  #
135
135
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
136
136
  #
137
- def update_with_http_info(streaming_job, resource_group_name, job_name, if_match = nil, custom_headers = nil)
138
- update_async(streaming_job, resource_group_name, job_name, if_match, custom_headers).value!
137
+ def update_with_http_info(streaming_job, resource_group_name, job_name, if_match:nil, custom_headers:nil)
138
+ update_async(streaming_job, resource_group_name, job_name, if_match:if_match, custom_headers:custom_headers).value!
139
139
  end
140
140
 
141
141
  #
@@ -161,7 +161,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
161
161
  #
162
162
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
163
163
  #
164
- def update_async(streaming_job, resource_group_name, job_name, if_match = nil, custom_headers = nil)
164
+ def update_async(streaming_job, resource_group_name, job_name, if_match:nil, custom_headers:nil)
165
165
  fail ArgumentError, 'streaming_job is nil' if streaming_job.nil?
166
166
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
167
167
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -170,14 +170,13 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
170
170
 
171
171
 
172
172
  request_headers = {}
173
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
173
174
 
174
175
  # Set Headers
175
176
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
176
177
  request_headers['If-Match'] = if_match unless if_match.nil?
177
178
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
178
179
 
179
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
180
-
181
180
  # Serialize Request
182
181
  request_mapper = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::StreamingJob.mapper()
183
182
  request_content = @client.serialize(request_mapper, streaming_job)
@@ -234,8 +233,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
234
233
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
235
234
  # will be added to the HTTP request.
236
235
  #
237
- def delete(resource_group_name, job_name, custom_headers = nil)
238
- response = delete_async(resource_group_name, job_name, custom_headers).value!
236
+ def delete(resource_group_name, job_name, custom_headers:nil)
237
+ response = delete_async(resource_group_name, job_name, custom_headers:custom_headers).value!
239
238
  nil
240
239
  end
241
240
 
@@ -250,9 +249,9 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
250
249
  # @return [Concurrent::Promise] promise which provides async access to http
251
250
  # response.
252
251
  #
253
- def delete_async(resource_group_name, job_name, custom_headers = nil)
252
+ def delete_async(resource_group_name, job_name, custom_headers:nil)
254
253
  # Send request
255
- promise = begin_delete_async(resource_group_name, job_name, custom_headers)
254
+ promise = begin_delete_async(resource_group_name, job_name, custom_headers:custom_headers)
256
255
 
257
256
  promise = promise.then do |response|
258
257
  # Defining deserialization method.
@@ -283,8 +282,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
283
282
  #
284
283
  # @return [StreamingJob] operation results.
285
284
  #
286
- def get(resource_group_name, job_name, expand = nil, custom_headers = nil)
287
- response = get_async(resource_group_name, job_name, expand, custom_headers).value!
285
+ def get(resource_group_name, job_name, expand:nil, custom_headers:nil)
286
+ response = get_async(resource_group_name, job_name, expand:expand, custom_headers:custom_headers).value!
288
287
  response.body unless response.nil?
289
288
  end
290
289
 
@@ -305,8 +304,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
305
304
  #
306
305
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
307
306
  #
308
- def get_with_http_info(resource_group_name, job_name, expand = nil, custom_headers = nil)
309
- get_async(resource_group_name, job_name, expand, custom_headers).value!
307
+ def get_with_http_info(resource_group_name, job_name, expand:nil, custom_headers:nil)
308
+ get_async(resource_group_name, job_name, expand:expand, custom_headers:custom_headers).value!
310
309
  end
311
310
 
312
311
  #
@@ -326,7 +325,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
326
325
  #
327
326
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
328
327
  #
329
- def get_async(resource_group_name, job_name, expand = nil, custom_headers = nil)
328
+ def get_async(resource_group_name, job_name, expand:nil, custom_headers:nil)
330
329
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
331
330
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
332
331
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -334,6 +333,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
334
333
 
335
334
 
336
335
  request_headers = {}
336
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
337
337
 
338
338
  # Set Headers
339
339
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -394,8 +394,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
394
394
  #
395
395
  # @return [Array<StreamingJob>] operation results.
396
396
  #
397
- def list_by_resource_group(resource_group_name, expand = nil, custom_headers = nil)
398
- first_page = list_by_resource_group_as_lazy(resource_group_name, expand, custom_headers)
397
+ def list_by_resource_group(resource_group_name, expand:nil, custom_headers:nil)
398
+ first_page = list_by_resource_group_as_lazy(resource_group_name, expand:expand, custom_headers:custom_headers)
399
399
  first_page.get_all_items
400
400
  end
401
401
 
@@ -415,8 +415,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
415
415
  #
416
416
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
417
417
  #
418
- def list_by_resource_group_with_http_info(resource_group_name, expand = nil, custom_headers = nil)
419
- list_by_resource_group_async(resource_group_name, expand, custom_headers).value!
418
+ def list_by_resource_group_with_http_info(resource_group_name, expand:nil, custom_headers:nil)
419
+ list_by_resource_group_async(resource_group_name, expand:expand, custom_headers:custom_headers).value!
420
420
  end
421
421
 
422
422
  #
@@ -435,13 +435,14 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
435
435
  #
436
436
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
437
437
  #
438
- def list_by_resource_group_async(resource_group_name, expand = nil, custom_headers = nil)
438
+ def list_by_resource_group_async(resource_group_name, expand:nil, custom_headers:nil)
439
439
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
440
440
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
441
441
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
442
442
 
443
443
 
444
444
  request_headers = {}
445
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
445
446
 
446
447
  # Set Headers
447
448
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -499,8 +500,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
499
500
  #
500
501
  # @return [Array<StreamingJob>] operation results.
501
502
  #
502
- def list(expand = nil, custom_headers = nil)
503
- first_page = list_as_lazy(expand, custom_headers)
503
+ def list(expand:nil, custom_headers:nil)
504
+ first_page = list_as_lazy(expand:expand, custom_headers:custom_headers)
504
505
  first_page.get_all_items
505
506
  end
506
507
 
@@ -517,8 +518,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
517
518
  #
518
519
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
519
520
  #
520
- def list_with_http_info(expand = nil, custom_headers = nil)
521
- list_async(expand, custom_headers).value!
521
+ def list_with_http_info(expand:nil, custom_headers:nil)
522
+ list_async(expand:expand, custom_headers:custom_headers).value!
522
523
  end
523
524
 
524
525
  #
@@ -534,12 +535,13 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
534
535
  #
535
536
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
536
537
  #
537
- def list_async(expand = nil, custom_headers = nil)
538
+ def list_async(expand:nil, custom_headers:nil)
538
539
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
539
540
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
540
541
 
541
542
 
542
543
  request_headers = {}
544
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
543
545
 
544
546
  # Set Headers
545
547
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -597,8 +599,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
597
599
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
598
600
  # will be added to the HTTP request.
599
601
  #
600
- def start(resource_group_name, job_name, start_job_parameters = nil, custom_headers = nil)
601
- response = start_async(resource_group_name, job_name, start_job_parameters, custom_headers).value!
602
+ def start(resource_group_name, job_name, start_job_parameters:nil, custom_headers:nil)
603
+ response = start_async(resource_group_name, job_name, start_job_parameters:start_job_parameters, custom_headers:custom_headers).value!
602
604
  nil
603
605
  end
604
606
 
@@ -615,9 +617,9 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
615
617
  # @return [Concurrent::Promise] promise which provides async access to http
616
618
  # response.
617
619
  #
618
- def start_async(resource_group_name, job_name, start_job_parameters = nil, custom_headers = nil)
620
+ def start_async(resource_group_name, job_name, start_job_parameters:nil, custom_headers:nil)
619
621
  # Send request
620
- promise = begin_start_async(resource_group_name, job_name, start_job_parameters, custom_headers)
622
+ promise = begin_start_async(resource_group_name, job_name, start_job_parameters:start_job_parameters, custom_headers:custom_headers)
621
623
 
622
624
  promise = promise.then do |response|
623
625
  # Defining deserialization method.
@@ -642,8 +644,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
642
644
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
643
645
  # will be added to the HTTP request.
644
646
  #
645
- def stop(resource_group_name, job_name, custom_headers = nil)
646
- response = stop_async(resource_group_name, job_name, custom_headers).value!
647
+ def stop(resource_group_name, job_name, custom_headers:nil)
648
+ response = stop_async(resource_group_name, job_name, custom_headers:custom_headers).value!
647
649
  nil
648
650
  end
649
651
 
@@ -658,9 +660,9 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
658
660
  # @return [Concurrent::Promise] promise which provides async access to http
659
661
  # response.
660
662
  #
661
- def stop_async(resource_group_name, job_name, custom_headers = nil)
663
+ def stop_async(resource_group_name, job_name, custom_headers:nil)
662
664
  # Send request
663
- promise = begin_stop_async(resource_group_name, job_name, custom_headers)
665
+ promise = begin_stop_async(resource_group_name, job_name, custom_headers:custom_headers)
664
666
 
665
667
  promise = promise.then do |response|
666
668
  # Defining deserialization method.
@@ -694,8 +696,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
694
696
  #
695
697
  # @return [StreamingJob] operation results.
696
698
  #
697
- def begin_create_or_replace(streaming_job, resource_group_name, job_name, if_match = nil, if_none_match = nil, custom_headers = nil)
698
- response = begin_create_or_replace_async(streaming_job, resource_group_name, job_name, if_match, if_none_match, custom_headers).value!
699
+ def begin_create_or_replace(streaming_job, resource_group_name, job_name, if_match:nil, if_none_match:nil, custom_headers:nil)
700
+ response = begin_create_or_replace_async(streaming_job, resource_group_name, job_name, if_match:if_match, if_none_match:if_none_match, custom_headers:custom_headers).value!
699
701
  response.body unless response.nil?
700
702
  end
701
703
 
@@ -719,8 +721,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
719
721
  #
720
722
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
721
723
  #
722
- def begin_create_or_replace_with_http_info(streaming_job, resource_group_name, job_name, if_match = nil, if_none_match = nil, custom_headers = nil)
723
- begin_create_or_replace_async(streaming_job, resource_group_name, job_name, if_match, if_none_match, custom_headers).value!
724
+ def begin_create_or_replace_with_http_info(streaming_job, resource_group_name, job_name, if_match:nil, if_none_match:nil, custom_headers:nil)
725
+ begin_create_or_replace_async(streaming_job, resource_group_name, job_name, if_match:if_match, if_none_match:if_none_match, custom_headers:custom_headers).value!
724
726
  end
725
727
 
726
728
  #
@@ -743,7 +745,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
743
745
  #
744
746
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
745
747
  #
746
- def begin_create_or_replace_async(streaming_job, resource_group_name, job_name, if_match = nil, if_none_match = nil, custom_headers = nil)
748
+ def begin_create_or_replace_async(streaming_job, resource_group_name, job_name, if_match:nil, if_none_match:nil, custom_headers:nil)
747
749
  fail ArgumentError, 'streaming_job is nil' if streaming_job.nil?
748
750
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
749
751
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -752,6 +754,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
752
754
 
753
755
 
754
756
  request_headers = {}
757
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
755
758
 
756
759
  # Set Headers
757
760
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -759,8 +762,6 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
759
762
  request_headers['If-None-Match'] = if_none_match unless if_none_match.nil?
760
763
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
761
764
 
762
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
763
-
764
765
  # Serialize Request
765
766
  request_mapper = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::StreamingJob.mapper()
766
767
  request_content = @client.serialize(request_mapper, streaming_job)
@@ -828,8 +829,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
828
829
  # will be added to the HTTP request.
829
830
  #
830
831
  #
831
- def begin_delete(resource_group_name, job_name, custom_headers = nil)
832
- response = begin_delete_async(resource_group_name, job_name, custom_headers).value!
832
+ def begin_delete(resource_group_name, job_name, custom_headers:nil)
833
+ response = begin_delete_async(resource_group_name, job_name, custom_headers:custom_headers).value!
833
834
  nil
834
835
  end
835
836
 
@@ -845,8 +846,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
845
846
  #
846
847
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
847
848
  #
848
- def begin_delete_with_http_info(resource_group_name, job_name, custom_headers = nil)
849
- begin_delete_async(resource_group_name, job_name, custom_headers).value!
849
+ def begin_delete_with_http_info(resource_group_name, job_name, custom_headers:nil)
850
+ begin_delete_async(resource_group_name, job_name, custom_headers:custom_headers).value!
850
851
  end
851
852
 
852
853
  #
@@ -861,7 +862,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
861
862
  #
862
863
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
863
864
  #
864
- def begin_delete_async(resource_group_name, job_name, custom_headers = nil)
865
+ def begin_delete_async(resource_group_name, job_name, custom_headers:nil)
865
866
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
866
867
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
867
868
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -869,6 +870,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
869
870
 
870
871
 
871
872
  request_headers = {}
873
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
872
874
 
873
875
  # Set Headers
874
876
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -917,8 +919,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
917
919
  # will be added to the HTTP request.
918
920
  #
919
921
  #
920
- def begin_start(resource_group_name, job_name, start_job_parameters = nil, custom_headers = nil)
921
- response = begin_start_async(resource_group_name, job_name, start_job_parameters, custom_headers).value!
922
+ def begin_start(resource_group_name, job_name, start_job_parameters:nil, custom_headers:nil)
923
+ response = begin_start_async(resource_group_name, job_name, start_job_parameters:start_job_parameters, custom_headers:custom_headers).value!
922
924
  nil
923
925
  end
924
926
 
@@ -937,8 +939,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
937
939
  #
938
940
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
939
941
  #
940
- def begin_start_with_http_info(resource_group_name, job_name, start_job_parameters = nil, custom_headers = nil)
941
- begin_start_async(resource_group_name, job_name, start_job_parameters, custom_headers).value!
942
+ def begin_start_with_http_info(resource_group_name, job_name, start_job_parameters:nil, custom_headers:nil)
943
+ begin_start_async(resource_group_name, job_name, start_job_parameters:start_job_parameters, custom_headers:custom_headers).value!
942
944
  end
943
945
 
944
946
  #
@@ -956,7 +958,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
956
958
  #
957
959
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
958
960
  #
959
- def begin_start_async(resource_group_name, job_name, start_job_parameters = nil, custom_headers = nil)
961
+ def begin_start_async(resource_group_name, job_name, start_job_parameters:nil, custom_headers:nil)
960
962
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
961
963
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
962
964
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -964,13 +966,12 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
964
966
 
965
967
 
966
968
  request_headers = {}
969
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
967
970
 
968
971
  # Set Headers
969
972
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
970
973
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
971
974
 
972
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
973
-
974
975
  # Serialize Request
975
976
  request_mapper = Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::StartStreamingJobParameters.mapper()
976
977
  request_content = @client.serialize(request_mapper, start_job_parameters)
@@ -1019,8 +1020,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
1019
1020
  # will be added to the HTTP request.
1020
1021
  #
1021
1022
  #
1022
- def begin_stop(resource_group_name, job_name, custom_headers = nil)
1023
- response = begin_stop_async(resource_group_name, job_name, custom_headers).value!
1023
+ def begin_stop(resource_group_name, job_name, custom_headers:nil)
1024
+ response = begin_stop_async(resource_group_name, job_name, custom_headers:custom_headers).value!
1024
1025
  nil
1025
1026
  end
1026
1027
 
@@ -1037,8 +1038,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
1037
1038
  #
1038
1039
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1039
1040
  #
1040
- def begin_stop_with_http_info(resource_group_name, job_name, custom_headers = nil)
1041
- begin_stop_async(resource_group_name, job_name, custom_headers).value!
1041
+ def begin_stop_with_http_info(resource_group_name, job_name, custom_headers:nil)
1042
+ begin_stop_async(resource_group_name, job_name, custom_headers:custom_headers).value!
1042
1043
  end
1043
1044
 
1044
1045
  #
@@ -1054,7 +1055,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
1054
1055
  #
1055
1056
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1056
1057
  #
1057
- def begin_stop_async(resource_group_name, job_name, custom_headers = nil)
1058
+ def begin_stop_async(resource_group_name, job_name, custom_headers:nil)
1058
1059
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1059
1060
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1060
1061
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -1062,6 +1063,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
1062
1063
 
1063
1064
 
1064
1065
  request_headers = {}
1066
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1065
1067
 
1066
1068
  # Set Headers
1067
1069
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1106,8 +1108,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
1106
1108
  #
1107
1109
  # @return [StreamingJobListResult] operation results.
1108
1110
  #
1109
- def list_by_resource_group_next(next_page_link, custom_headers = nil)
1110
- response = list_by_resource_group_next_async(next_page_link, custom_headers).value!
1111
+ def list_by_resource_group_next(next_page_link, custom_headers:nil)
1112
+ response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
1111
1113
  response.body unless response.nil?
1112
1114
  end
1113
1115
 
@@ -1121,8 +1123,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
1121
1123
  #
1122
1124
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1123
1125
  #
1124
- def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil)
1125
- list_by_resource_group_next_async(next_page_link, custom_headers).value!
1126
+ def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
1127
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
1126
1128
  end
1127
1129
 
1128
1130
  #
@@ -1135,11 +1137,12 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
1135
1137
  #
1136
1138
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1137
1139
  #
1138
- def list_by_resource_group_next_async(next_page_link, custom_headers = nil)
1140
+ def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
1139
1141
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1140
1142
 
1141
1143
 
1142
1144
  request_headers = {}
1145
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1143
1146
 
1144
1147
  # Set Headers
1145
1148
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1193,8 +1196,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
1193
1196
  #
1194
1197
  # @return [StreamingJobListResult] operation results.
1195
1198
  #
1196
- def list_next(next_page_link, custom_headers = nil)
1197
- response = list_next_async(next_page_link, custom_headers).value!
1199
+ def list_next(next_page_link, custom_headers:nil)
1200
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
1198
1201
  response.body unless response.nil?
1199
1202
  end
1200
1203
 
@@ -1208,8 +1211,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
1208
1211
  #
1209
1212
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1210
1213
  #
1211
- def list_next_with_http_info(next_page_link, custom_headers = nil)
1212
- list_next_async(next_page_link, custom_headers).value!
1214
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
1215
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
1213
1216
  end
1214
1217
 
1215
1218
  #
@@ -1222,11 +1225,12 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
1222
1225
  #
1223
1226
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1224
1227
  #
1225
- def list_next_async(next_page_link, custom_headers = nil)
1228
+ def list_next_async(next_page_link, custom_headers:nil)
1226
1229
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1227
1230
 
1228
1231
 
1229
1232
  request_headers = {}
1233
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1230
1234
 
1231
1235
  # Set Headers
1232
1236
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1287,12 +1291,12 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
1287
1291
  # @return [StreamingJobListResult] which provide lazy access to pages of the
1288
1292
  # response.
1289
1293
  #
1290
- def list_by_resource_group_as_lazy(resource_group_name, expand = nil, custom_headers = nil)
1291
- response = list_by_resource_group_async(resource_group_name, expand, custom_headers).value!
1294
+ def list_by_resource_group_as_lazy(resource_group_name, expand:nil, custom_headers:nil)
1295
+ response = list_by_resource_group_async(resource_group_name, expand:expand, custom_headers:custom_headers).value!
1292
1296
  unless response.nil?
1293
1297
  page = response.body
1294
1298
  page.next_method = Proc.new do |next_page_link|
1295
- list_by_resource_group_next_async(next_page_link, custom_headers)
1299
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
1296
1300
  end
1297
1301
  page
1298
1302
  end
@@ -1312,12 +1316,12 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
1312
1316
  # @return [StreamingJobListResult] which provide lazy access to pages of the
1313
1317
  # response.
1314
1318
  #
1315
- def list_as_lazy(expand = nil, custom_headers = nil)
1316
- response = list_async(expand, custom_headers).value!
1319
+ def list_as_lazy(expand:nil, custom_headers:nil)
1320
+ response = list_async(expand:expand, custom_headers:custom_headers).value!
1317
1321
  unless response.nil?
1318
1322
  page = response.body
1319
1323
  page.next_method = Proc.new do |next_page_link|
1320
- list_next_async(next_page_link, custom_headers)
1324
+ list_next_async(next_page_link, custom_headers:custom_headers)
1321
1325
  end
1322
1326
  page
1323
1327
  end