azure_mgmt_stream_analytics 0.15.2 → 0.16.0

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.
@@ -14,8 +14,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
14
14
  include MsRestAzure
15
15
 
16
16
  @@discriminatorMap = Hash.new
17
- @@discriminatorMap["Microsoft.StreamAnalytics/JavascriptUdf"] = "JavaScriptFunctionRetrieveDefaultDefinitionParameters"
18
17
  @@discriminatorMap["Microsoft.MachineLearning/WebService"] = "AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters"
18
+ @@discriminatorMap["Microsoft.StreamAnalytics/JavascriptUdf"] = "JavaScriptFunctionRetrieveDefaultDefinitionParameters"
19
19
 
20
20
  def initialize
21
21
  @bindingType = "FunctionRetrieveDefaultDefinitionParameters"
@@ -29,8 +29,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
29
29
  #
30
30
  # @return [Array<Operation>] operation results.
31
31
  #
32
- def list(custom_headers = nil)
33
- first_page = list_as_lazy(custom_headers)
32
+ def list(custom_headers:nil)
33
+ first_page = list_as_lazy(custom_headers:custom_headers)
34
34
  first_page.get_all_items
35
35
  end
36
36
 
@@ -42,8 +42,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
42
42
  #
43
43
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
44
44
  #
45
- def list_with_http_info(custom_headers = nil)
46
- list_async(custom_headers).value!
45
+ def list_with_http_info(custom_headers:nil)
46
+ list_async(custom_headers:custom_headers).value!
47
47
  end
48
48
 
49
49
  #
@@ -54,11 +54,12 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
54
54
  #
55
55
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
56
56
  #
57
- def list_async(custom_headers = nil)
57
+ def list_async(custom_headers:nil)
58
58
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
59
59
 
60
60
 
61
61
  request_headers = {}
62
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
62
63
 
63
64
  # Set Headers
64
65
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -112,8 +113,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
112
113
  #
113
114
  # @return [OperationListResult] operation results.
114
115
  #
115
- def list_next(next_page_link, custom_headers = nil)
116
- response = list_next_async(next_page_link, custom_headers).value!
116
+ def list_next(next_page_link, custom_headers:nil)
117
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
117
118
  response.body unless response.nil?
118
119
  end
119
120
 
@@ -127,8 +128,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
127
128
  #
128
129
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
129
130
  #
130
- def list_next_with_http_info(next_page_link, custom_headers = nil)
131
- list_next_async(next_page_link, custom_headers).value!
131
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
132
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
132
133
  end
133
134
 
134
135
  #
@@ -141,11 +142,12 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
141
142
  #
142
143
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
143
144
  #
144
- def list_next_async(next_page_link, custom_headers = nil)
145
+ def list_next_async(next_page_link, custom_headers:nil)
145
146
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
146
147
 
147
148
 
148
149
  request_headers = {}
150
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
149
151
 
150
152
  # Set Headers
151
153
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -198,12 +200,12 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
198
200
  # @return [OperationListResult] which provide lazy access to pages of the
199
201
  # response.
200
202
  #
201
- def list_as_lazy(custom_headers = nil)
202
- response = list_async(custom_headers).value!
203
+ def list_as_lazy(custom_headers:nil)
204
+ response = list_async(custom_headers:custom_headers).value!
203
205
  unless response.nil?
204
206
  page = response.body
205
207
  page.next_method = Proc.new do |next_page_link|
206
- list_next_async(next_page_link, custom_headers)
208
+ list_next_async(next_page_link, custom_headers:custom_headers)
207
209
  end
208
210
  page
209
211
  end
@@ -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
@@ -520,8 +520,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
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
 
@@ -541,8 +541,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
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
  #
@@ -561,7 +561,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
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
@@ -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
@@ -130,6 +130,9 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
130
130
  fail ArgumentError, 'path is nil' if path.nil?
131
131
 
132
132
  request_url = options[:base_url] || @base_url
133
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
134
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
135
+ end
133
136
 
134
137
  request_headers = @request_headers
135
138
  request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
@@ -146,7 +149,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
146
149
  #
147
150
  def add_telemetry
148
151
  sdk_information = 'azure_mgmt_stream_analytics'
149
- sdk_information = "#{sdk_information}/0.15.2"
152
+ sdk_information = "#{sdk_information}/0.16.0"
150
153
  add_user_agent_information(sdk_information)
151
154
  end
152
155
  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