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.
- checksums.yaml +5 -5
- data/lib/2016-03-01/generated/azure_mgmt_stream_analytics.rb +15 -15
- data/lib/2016-03-01/generated/azure_mgmt_stream_analytics/functions.rb +59 -59
- data/lib/2016-03-01/generated/azure_mgmt_stream_analytics/inputs.rb +53 -52
- data/lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/function_list_result.rb +1 -1
- data/lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/function_retrieve_default_definition_parameters.rb +1 -1
- data/lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/input_list_result.rb +1 -1
- data/lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/operation_list_result.rb +1 -1
- data/lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/output_list_result.rb +1 -1
- data/lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/resource.rb +9 -0
- data/lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/streaming_job_list_result.rb +1 -1
- data/lib/2016-03-01/generated/azure_mgmt_stream_analytics/operations.rb +15 -13
- data/lib/2016-03-01/generated/azure_mgmt_stream_analytics/outputs.rb +53 -52
- data/lib/2016-03-01/generated/azure_mgmt_stream_analytics/stream_analytics_management_client.rb +10 -6
- data/lib/2016-03-01/generated/azure_mgmt_stream_analytics/streaming_jobs.rb +82 -78
- data/lib/2016-03-01/generated/azure_mgmt_stream_analytics/subscriptions.rb +6 -5
- data/lib/2016-03-01/generated/azure_mgmt_stream_analytics/transformations.rb +18 -19
- data/lib/profiles/latest/modules/streamanalytics_profile_module.rb +265 -246
- data/lib/profiles/latest/streamanalytics_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/streamanalytics_module_definition.rb +0 -1
- data/lib/version.rb +1 -1
- metadata +5 -5
@@ -43,8 +43,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
|
|
43
43
|
#
|
44
44
|
# @return [Input] operation results.
|
45
45
|
#
|
46
|
-
def create_or_replace(input, resource_group_name, job_name, input_name, if_match
|
47
|
-
response = create_or_replace_async(input, resource_group_name, job_name, input_name, if_match, if_none_match, custom_headers).value!
|
46
|
+
def create_or_replace(input, resource_group_name, job_name, input_name, if_match:nil, if_none_match:nil, custom_headers:nil)
|
47
|
+
response = create_or_replace_async(input, resource_group_name, job_name, input_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(input, resource_group_name, job_name, input_name, if_match
|
74
|
-
create_or_replace_async(input, resource_group_name, job_name, input_name, if_match, if_none_match, custom_headers).value!
|
73
|
+
def create_or_replace_with_http_info(input, resource_group_name, job_name, input_name, if_match:nil, if_none_match:nil, custom_headers:nil)
|
74
|
+
create_or_replace_async(input, resource_group_name, job_name, input_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(input, resource_group_name, job_name, input_name, if_match
|
99
|
+
def create_or_replace_async(input, resource_group_name, job_name, input_name, if_match:nil, if_none_match:nil, custom_headers:nil)
|
100
100
|
fail ArgumentError, 'input is nil' if input.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::Input.mapper()
|
120
119
|
request_content = @client.serialize(request_mapper, input)
|
@@ -194,8 +193,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
|
|
194
193
|
#
|
195
194
|
# @return [Input] operation results.
|
196
195
|
#
|
197
|
-
def update(input, resource_group_name, job_name, input_name, if_match
|
198
|
-
response = update_async(input, resource_group_name, job_name, input_name, if_match, custom_headers).value!
|
196
|
+
def update(input, resource_group_name, job_name, input_name, if_match:nil, custom_headers:nil)
|
197
|
+
response = update_async(input, resource_group_name, job_name, input_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(input, resource_group_name, job_name, input_name, if_match
|
226
|
-
update_async(input, resource_group_name, job_name, input_name, if_match, custom_headers).value!
|
224
|
+
def update_with_http_info(input, resource_group_name, job_name, input_name, if_match:nil, custom_headers:nil)
|
225
|
+
update_async(input, resource_group_name, job_name, input_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(input, resource_group_name, job_name, input_name, if_match
|
251
|
+
def update_async(input, resource_group_name, job_name, input_name, if_match:nil, custom_headers:nil)
|
253
252
|
fail ArgumentError, 'input is nil' if input.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::Input.mapper()
|
272
270
|
request_content = @client.serialize(request_mapper, input)
|
@@ -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, input_name, custom_headers
|
329
|
-
response = delete_async(resource_group_name, job_name, input_name, custom_headers).value!
|
326
|
+
def delete(resource_group_name, job_name, input_name, custom_headers:nil)
|
327
|
+
response = delete_async(resource_group_name, job_name, input_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, input_name, custom_headers
|
347
|
-
delete_async(resource_group_name, job_name, input_name, custom_headers).value!
|
344
|
+
def delete_with_http_info(resource_group_name, job_name, input_name, custom_headers:nil)
|
345
|
+
delete_async(resource_group_name, job_name, input_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, input_name, custom_headers
|
361
|
+
def delete_async(resource_group_name, job_name, input_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 [Input] operation results.
|
418
417
|
#
|
419
|
-
def get(resource_group_name, job_name, input_name, custom_headers
|
420
|
-
response = get_async(resource_group_name, job_name, input_name, custom_headers).value!
|
418
|
+
def get(resource_group_name, job_name, input_name, custom_headers:nil)
|
419
|
+
response = get_async(resource_group_name, job_name, input_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, input_name, custom_headers
|
438
|
-
get_async(resource_group_name, job_name, input_name, custom_headers).value!
|
436
|
+
def get_with_http_info(resource_group_name, job_name, input_name, custom_headers:nil)
|
437
|
+
get_async(resource_group_name, job_name, input_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, input_name, custom_headers
|
453
|
+
def get_async(resource_group_name, job_name, input_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
|
-
#
|
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<Input>] operation results.
|
522
522
|
#
|
523
|
-
def list_by_streaming_job(resource_group_name, job_name, select
|
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
|
-
#
|
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
|
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
|
-
#
|
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
|
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, input_name, input
|
637
|
-
response = test_async(resource_group_name, job_name, input_name, input, custom_headers).value!
|
637
|
+
def test(resource_group_name, job_name, input_name, input:nil, custom_headers:nil)
|
638
|
+
response = test_async(resource_group_name, job_name, input_name, input:input, 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, input_name, input
|
660
|
+
def test_async(resource_group_name, job_name, input_name, input:nil, custom_headers:nil)
|
660
661
|
# Send request
|
661
|
-
promise = begin_test_async(resource_group_name, job_name, input_name, input, custom_headers)
|
662
|
+
promise = begin_test_async(resource_group_name, job_name, input_name, input:input, 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, input_name, input
|
698
|
-
response = begin_test_async(resource_group_name, job_name, input_name, input, custom_headers).value!
|
698
|
+
def begin_test(resource_group_name, job_name, input_name, input:nil, custom_headers:nil)
|
699
|
+
response = begin_test_async(resource_group_name, job_name, input_name, input:input, 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, input_name, input
|
723
|
-
begin_test_async(resource_group_name, job_name, input_name, input, custom_headers).value!
|
723
|
+
def begin_test_with_http_info(resource_group_name, job_name, input_name, input:nil, custom_headers:nil)
|
724
|
+
begin_test_async(resource_group_name, job_name, input_name, input:input, 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, input_name, input
|
747
|
+
def begin_test_async(resource_group_name, job_name, input_name, input: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::Input.mapper()
|
764
764
|
request_content = @client.serialize(request_mapper, input)
|
@@ -815,8 +815,8 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
|
|
815
815
|
#
|
816
816
|
# @return [InputListResult] operation results.
|
817
817
|
#
|
818
|
-
def list_by_streaming_job_next(next_page_link, custom_headers
|
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
|
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
|
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,19 +902,19 @@ 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
|
-
#
|
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.
|
908
909
|
#
|
909
910
|
# @return [InputListResult] which provide lazy access to pages of the response.
|
910
911
|
#
|
911
|
-
def list_by_streaming_job_as_lazy(resource_group_name, job_name, select
|
912
|
-
response = list_by_streaming_job_async(resource_group_name, job_name, select, custom_headers).value!
|
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:select, custom_headers:custom_headers).value!
|
913
914
|
unless response.nil?
|
914
915
|
page = response.body
|
915
916
|
page.next_method = Proc.new do |next_page_link|
|
916
|
-
list_by_streaming_job_next_async(next_page_link, custom_headers)
|
917
|
+
list_by_streaming_job_next_async(next_page_link, custom_headers:custom_headers)
|
917
918
|
end
|
918
919
|
page
|
919
920
|
end
|
@@ -31,7 +31,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
|
|
31
31
|
def get_all_items
|
32
32
|
items = @value
|
33
33
|
page = self
|
34
|
-
while page.next_link != nil do
|
34
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
35
35
|
page = page.get_next_page
|
36
36
|
items.concat(page.value)
|
37
37
|
end
|
@@ -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"
|
@@ -31,7 +31,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
|
|
31
31
|
def get_all_items
|
32
32
|
items = @value
|
33
33
|
page = self
|
34
|
-
while page.next_link != nil do
|
34
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
35
35
|
page = page.get_next_page
|
36
36
|
items.concat(page.value)
|
37
37
|
end
|
@@ -33,7 +33,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
|
|
33
33
|
def get_all_items
|
34
34
|
items = @value
|
35
35
|
page = self
|
36
|
-
while page.next_link != nil do
|
36
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
37
37
|
page = page.get_next_page
|
38
38
|
items.concat(page.value)
|
39
39
|
end
|
@@ -31,7 +31,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
|
|
31
31
|
def get_all_items
|
32
32
|
items = @value
|
33
33
|
page = self
|
34
|
-
while page.next_link != nil do
|
34
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
35
35
|
page = page.get_next_page
|
36
36
|
items.concat(page.value)
|
37
37
|
end
|
@@ -29,6 +29,15 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
|
|
29
29
|
attr_accessor :tags
|
30
30
|
|
31
31
|
|
32
|
+
# @return [String] the name of the resource group of the resource.
|
33
|
+
def resource_group
|
34
|
+
unless self.id.nil?
|
35
|
+
groups = self.id.match(/.+\/resourceGroups\/([^\/]+)\/.+/)
|
36
|
+
groups.captures[0].strip if groups
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
|
32
41
|
#
|
33
42
|
# Mapper for Resource class as Ruby Hash.
|
34
43
|
# This will be used for serialization/deserialization.
|
data/lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/streaming_job_list_result.rb
CHANGED
@@ -31,7 +31,7 @@ module Azure::StreamAnalytics::Mgmt::V2016_03_01
|
|
31
31
|
def get_all_items
|
32
32
|
items = @value
|
33
33
|
page = self
|
34
|
-
while page.next_link != nil do
|
34
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
35
35
|
page = page.get_next_page
|
36
36
|
items.concat(page.value)
|
37
37
|
end
|
@@ -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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|