azure_mgmt_mobile_engagement 0.15.2 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -72,8 +72,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
72
72
  #
73
73
  # @return [Array<DeviceQueryResult>] operation results.
74
74
  #
75
- def list(resource_group_name, app_collection, app_name, top = nil, select = nil, filter = nil, custom_headers = nil)
76
- first_page = list_as_lazy(resource_group_name, app_collection, app_name, top, select, filter, custom_headers)
75
+ def list(resource_group_name, app_collection, app_name, top:nil, select:nil, filter:nil, custom_headers:nil)
76
+ first_page = list_as_lazy(resource_group_name, app_collection, app_name, top:top, select:select, filter:filter, custom_headers:custom_headers)
77
77
  first_page.get_all_items
78
78
  end
79
79
 
@@ -128,8 +128,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
128
128
  #
129
129
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
130
130
  #
131
- def list_with_http_info(resource_group_name, app_collection, app_name, top = nil, select = nil, filter = nil, custom_headers = nil)
132
- list_async(resource_group_name, app_collection, app_name, top, select, filter, custom_headers).value!
131
+ def list_with_http_info(resource_group_name, app_collection, app_name, top:nil, select:nil, filter:nil, custom_headers:nil)
132
+ list_async(resource_group_name, app_collection, app_name, top:top, select:select, filter:filter, custom_headers:custom_headers).value!
133
133
  end
134
134
 
135
135
  #
@@ -183,7 +183,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
183
183
  #
184
184
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
185
185
  #
186
- def list_async(resource_group_name, app_collection, app_name, top = nil, select = nil, filter = nil, custom_headers = nil)
186
+ def list_async(resource_group_name, app_collection, app_name, top:nil, select:nil, filter:nil, custom_headers:nil)
187
187
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
188
188
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
189
189
  fail ArgumentError, 'app_collection is nil' if app_collection.nil?
@@ -192,6 +192,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
192
192
 
193
193
 
194
194
  request_headers = {}
195
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
195
196
 
196
197
  # Set Headers
197
198
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -248,8 +249,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
248
249
  #
249
250
  # @return [Device] operation results.
250
251
  #
251
- def get_by_device_id(resource_group_name, app_collection, app_name, device_id, custom_headers = nil)
252
- response = get_by_device_id_async(resource_group_name, app_collection, app_name, device_id, custom_headers).value!
252
+ def get_by_device_id(resource_group_name, app_collection, app_name, device_id, custom_headers:nil)
253
+ response = get_by_device_id_async(resource_group_name, app_collection, app_name, device_id, custom_headers:custom_headers).value!
253
254
  response.body unless response.nil?
254
255
  end
255
256
 
@@ -265,8 +266,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
265
266
  #
266
267
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
267
268
  #
268
- def get_by_device_id_with_http_info(resource_group_name, app_collection, app_name, device_id, custom_headers = nil)
269
- get_by_device_id_async(resource_group_name, app_collection, app_name, device_id, custom_headers).value!
269
+ def get_by_device_id_with_http_info(resource_group_name, app_collection, app_name, device_id, custom_headers:nil)
270
+ get_by_device_id_async(resource_group_name, app_collection, app_name, device_id, custom_headers:custom_headers).value!
270
271
  end
271
272
 
272
273
  #
@@ -281,7 +282,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
281
282
  #
282
283
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
283
284
  #
284
- def get_by_device_id_async(resource_group_name, app_collection, app_name, device_id, custom_headers = nil)
285
+ def get_by_device_id_async(resource_group_name, app_collection, app_name, device_id, custom_headers:nil)
285
286
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
286
287
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
287
288
  fail ArgumentError, 'app_collection is nil' if app_collection.nil?
@@ -291,6 +292,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
291
292
 
292
293
 
293
294
  request_headers = {}
295
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
294
296
 
295
297
  # Set Headers
296
298
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -348,8 +350,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
348
350
  #
349
351
  # @return [Device] operation results.
350
352
  #
351
- def get_by_user_id(resource_group_name, app_collection, app_name, user_id, custom_headers = nil)
352
- response = get_by_user_id_async(resource_group_name, app_collection, app_name, user_id, custom_headers).value!
353
+ def get_by_user_id(resource_group_name, app_collection, app_name, user_id, custom_headers:nil)
354
+ response = get_by_user_id_async(resource_group_name, app_collection, app_name, user_id, custom_headers:custom_headers).value!
353
355
  response.body unless response.nil?
354
356
  end
355
357
 
@@ -366,8 +368,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
366
368
  #
367
369
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
368
370
  #
369
- def get_by_user_id_with_http_info(resource_group_name, app_collection, app_name, user_id, custom_headers = nil)
370
- get_by_user_id_async(resource_group_name, app_collection, app_name, user_id, custom_headers).value!
371
+ def get_by_user_id_with_http_info(resource_group_name, app_collection, app_name, user_id, custom_headers:nil)
372
+ get_by_user_id_async(resource_group_name, app_collection, app_name, user_id, custom_headers:custom_headers).value!
371
373
  end
372
374
 
373
375
  #
@@ -383,7 +385,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
383
385
  #
384
386
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
385
387
  #
386
- def get_by_user_id_async(resource_group_name, app_collection, app_name, user_id, custom_headers = nil)
388
+ def get_by_user_id_async(resource_group_name, app_collection, app_name, user_id, custom_headers:nil)
387
389
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
388
390
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
389
391
  fail ArgumentError, 'app_collection is nil' if app_collection.nil?
@@ -393,6 +395,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
393
395
 
394
396
 
395
397
  request_headers = {}
398
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
396
399
 
397
400
  # Set Headers
398
401
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -452,8 +455,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
452
455
  #
453
456
  # @return [DeviceTagsResult] operation results.
454
457
  #
455
- def tag_by_device_id(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
456
- response = tag_by_device_id_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
458
+ def tag_by_device_id(resource_group_name, app_collection, app_name, parameters, custom_headers:nil)
459
+ response = tag_by_device_id_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value!
457
460
  response.body unless response.nil?
458
461
  end
459
462
 
@@ -472,8 +475,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
472
475
  #
473
476
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
474
477
  #
475
- def tag_by_device_id_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
476
- tag_by_device_id_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
478
+ def tag_by_device_id_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers:nil)
479
+ tag_by_device_id_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value!
477
480
  end
478
481
 
479
482
  #
@@ -491,7 +494,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
491
494
  #
492
495
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
493
496
  #
494
- def tag_by_device_id_async(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
497
+ def tag_by_device_id_async(resource_group_name, app_collection, app_name, parameters, custom_headers:nil)
495
498
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
496
499
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
497
500
  fail ArgumentError, 'app_collection is nil' if app_collection.nil?
@@ -501,13 +504,12 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
501
504
 
502
505
 
503
506
  request_headers = {}
507
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
504
508
 
505
509
  # Set Headers
506
510
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
507
511
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
508
512
 
509
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
510
-
511
513
  # Serialize Request
512
514
  request_mapper = Azure::MobileEngagement::Mgmt::V2014_12_01::Models::DeviceTagsParameters.mapper()
513
515
  request_content = @client.serialize(request_mapper, parameters)
@@ -569,8 +571,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
569
571
  #
570
572
  # @return [DeviceTagsResult] operation results.
571
573
  #
572
- def tag_by_user_id(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
573
- response = tag_by_user_id_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
574
+ def tag_by_user_id(resource_group_name, app_collection, app_name, parameters, custom_headers:nil)
575
+ response = tag_by_user_id_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value!
574
576
  response.body unless response.nil?
575
577
  end
576
578
 
@@ -589,8 +591,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
589
591
  #
590
592
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
591
593
  #
592
- def tag_by_user_id_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
593
- tag_by_user_id_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
594
+ def tag_by_user_id_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers:nil)
595
+ tag_by_user_id_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value!
594
596
  end
595
597
 
596
598
  #
@@ -608,7 +610,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
608
610
  #
609
611
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
610
612
  #
611
- def tag_by_user_id_async(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
613
+ def tag_by_user_id_async(resource_group_name, app_collection, app_name, parameters, custom_headers:nil)
612
614
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
613
615
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
614
616
  fail ArgumentError, 'app_collection is nil' if app_collection.nil?
@@ -618,13 +620,12 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
618
620
 
619
621
 
620
622
  request_headers = {}
623
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
621
624
 
622
625
  # Set Headers
623
626
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
624
627
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
625
628
 
626
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
627
-
628
629
  # Serialize Request
629
630
  request_mapper = Azure::MobileEngagement::Mgmt::V2014_12_01::Models::DeviceTagsParameters.mapper()
630
631
  request_content = @client.serialize(request_mapper, parameters)
@@ -681,8 +682,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
681
682
  #
682
683
  # @return [DevicesQueryResult] operation results.
683
684
  #
684
- def list_next(next_page_link, custom_headers = nil)
685
- response = list_next_async(next_page_link, custom_headers).value!
685
+ def list_next(next_page_link, custom_headers:nil)
686
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
686
687
  response.body unless response.nil?
687
688
  end
688
689
 
@@ -696,8 +697,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
696
697
  #
697
698
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
698
699
  #
699
- def list_next_with_http_info(next_page_link, custom_headers = nil)
700
- list_next_async(next_page_link, custom_headers).value!
700
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
701
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
701
702
  end
702
703
 
703
704
  #
@@ -710,11 +711,12 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
710
711
  #
711
712
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
712
713
  #
713
- def list_next_async(next_page_link, custom_headers = nil)
714
+ def list_next_async(next_page_link, custom_headers:nil)
714
715
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
715
716
 
716
717
 
717
718
  request_headers = {}
719
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
718
720
 
719
721
  # Set Headers
720
722
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -810,12 +812,12 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
810
812
  # @return [DevicesQueryResult] which provide lazy access to pages of the
811
813
  # response.
812
814
  #
813
- def list_as_lazy(resource_group_name, app_collection, app_name, top = nil, select = nil, filter = nil, custom_headers = nil)
814
- response = list_async(resource_group_name, app_collection, app_name, top, select, filter, custom_headers).value!
815
+ def list_as_lazy(resource_group_name, app_collection, app_name, top:nil, select:nil, filter:nil, custom_headers:nil)
816
+ response = list_async(resource_group_name, app_collection, app_name, top:top, select:select, filter:filter, custom_headers:custom_headers).value!
815
817
  unless response.nil?
816
818
  page = response.body
817
819
  page.next_method = Proc.new do |next_page_link|
818
- list_next_async(next_page_link, custom_headers)
820
+ list_next_async(next_page_link, custom_headers:custom_headers)
819
821
  end
820
822
  page
821
823
  end
@@ -130,6 +130,9 @@ module Azure::MobileEngagement::Mgmt::V2014_12_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::MobileEngagement::Mgmt::V2014_12_01
146
149
  #
147
150
  def add_telemetry
148
151
  sdk_information = 'azure_mgmt_mobile_engagement'
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
@@ -49,8 +49,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
49
49
  #
50
50
  # @return [Array<ExportTaskResult>] operation results.
51
51
  #
52
- def list(resource_group_name, app_collection, app_name, skip = 0, top = 20, orderby = nil, custom_headers = nil)
53
- first_page = list_as_lazy(resource_group_name, app_collection, app_name, skip, top, orderby, custom_headers)
52
+ def list(resource_group_name, app_collection, app_name, skip:0, top:20, orderby:nil, custom_headers:nil)
53
+ first_page = list_as_lazy(resource_group_name, app_collection, app_name, skip:skip, top:top, orderby:orderby, custom_headers:custom_headers)
54
54
  first_page.get_all_items
55
55
  end
56
56
 
@@ -82,8 +82,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
82
82
  #
83
83
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
84
84
  #
85
- def list_with_http_info(resource_group_name, app_collection, app_name, skip = 0, top = 20, orderby = nil, custom_headers = nil)
86
- list_async(resource_group_name, app_collection, app_name, skip, top, orderby, custom_headers).value!
85
+ def list_with_http_info(resource_group_name, app_collection, app_name, skip:0, top:20, orderby:nil, custom_headers:nil)
86
+ list_async(resource_group_name, app_collection, app_name, skip:skip, top:top, orderby:orderby, custom_headers:custom_headers).value!
87
87
  end
88
88
 
89
89
  #
@@ -114,7 +114,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
114
114
  #
115
115
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
116
116
  #
117
- def list_async(resource_group_name, app_collection, app_name, skip = 0, top = 20, orderby = nil, custom_headers = nil)
117
+ def list_async(resource_group_name, app_collection, app_name, skip:0, top:20, orderby:nil, custom_headers:nil)
118
118
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
119
119
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
120
120
  fail ArgumentError, 'app_collection is nil' if app_collection.nil?
@@ -126,6 +126,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
126
126
 
127
127
 
128
128
  request_headers = {}
129
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
129
130
 
130
131
  # Set Headers
131
132
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -182,8 +183,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
182
183
  #
183
184
  # @return [ExportTaskResult] operation results.
184
185
  #
185
- def get(resource_group_name, app_collection, app_name, id, custom_headers = nil)
186
- response = get_async(resource_group_name, app_collection, app_name, id, custom_headers).value!
186
+ def get(resource_group_name, app_collection, app_name, id, custom_headers:nil)
187
+ response = get_async(resource_group_name, app_collection, app_name, id, custom_headers:custom_headers).value!
187
188
  response.body unless response.nil?
188
189
  end
189
190
 
@@ -199,8 +200,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
199
200
  #
200
201
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
201
202
  #
202
- def get_with_http_info(resource_group_name, app_collection, app_name, id, custom_headers = nil)
203
- get_async(resource_group_name, app_collection, app_name, id, custom_headers).value!
203
+ def get_with_http_info(resource_group_name, app_collection, app_name, id, custom_headers:nil)
204
+ get_async(resource_group_name, app_collection, app_name, id, custom_headers:custom_headers).value!
204
205
  end
205
206
 
206
207
  #
@@ -215,7 +216,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
215
216
  #
216
217
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
217
218
  #
218
- def get_async(resource_group_name, app_collection, app_name, id, custom_headers = nil)
219
+ def get_async(resource_group_name, app_collection, app_name, id, custom_headers:nil)
219
220
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
220
221
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
221
222
  fail ArgumentError, 'app_collection is nil' if app_collection.nil?
@@ -225,6 +226,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
225
226
 
226
227
 
227
228
  request_headers = {}
229
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
228
230
 
229
231
  # Set Headers
230
232
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -281,8 +283,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
281
283
  #
282
284
  # @return [ExportTaskResult] operation results.
283
285
  #
284
- def create_activities_task(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
285
- response = create_activities_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
286
+ def create_activities_task(resource_group_name, app_collection, app_name, parameters, custom_headers:nil)
287
+ response = create_activities_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value!
286
288
  response.body unless response.nil?
287
289
  end
288
290
 
@@ -298,8 +300,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
298
300
  #
299
301
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
300
302
  #
301
- def create_activities_task_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
302
- create_activities_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
303
+ def create_activities_task_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers:nil)
304
+ create_activities_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value!
303
305
  end
304
306
 
305
307
  #
@@ -314,7 +316,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
314
316
  #
315
317
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
316
318
  #
317
- def create_activities_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
319
+ def create_activities_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:nil)
318
320
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
319
321
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
320
322
  fail ArgumentError, 'app_collection is nil' if app_collection.nil?
@@ -324,13 +326,12 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
324
326
 
325
327
 
326
328
  request_headers = {}
329
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
327
330
 
328
331
  # Set Headers
329
332
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
330
333
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
331
334
 
332
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
333
-
334
335
  # Serialize Request
335
336
  request_mapper = Azure::MobileEngagement::Mgmt::V2014_12_01::Models::DateRangeExportTaskParameter.mapper()
336
337
  request_content = @client.serialize(request_mapper, parameters)
@@ -389,8 +390,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
389
390
  #
390
391
  # @return [ExportTaskResult] operation results.
391
392
  #
392
- def create_crashes_task(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
393
- response = create_crashes_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
393
+ def create_crashes_task(resource_group_name, app_collection, app_name, parameters, custom_headers:nil)
394
+ response = create_crashes_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value!
394
395
  response.body unless response.nil?
395
396
  end
396
397
 
@@ -406,8 +407,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
406
407
  #
407
408
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
408
409
  #
409
- def create_crashes_task_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
410
- create_crashes_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
410
+ def create_crashes_task_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers:nil)
411
+ create_crashes_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value!
411
412
  end
412
413
 
413
414
  #
@@ -422,7 +423,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
422
423
  #
423
424
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
424
425
  #
425
- def create_crashes_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
426
+ def create_crashes_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:nil)
426
427
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
427
428
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
428
429
  fail ArgumentError, 'app_collection is nil' if app_collection.nil?
@@ -432,13 +433,12 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
432
433
 
433
434
 
434
435
  request_headers = {}
436
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
435
437
 
436
438
  # Set Headers
437
439
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
438
440
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
439
441
 
440
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
441
-
442
442
  # Serialize Request
443
443
  request_mapper = Azure::MobileEngagement::Mgmt::V2014_12_01::Models::DateRangeExportTaskParameter.mapper()
444
444
  request_content = @client.serialize(request_mapper, parameters)
@@ -497,8 +497,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
497
497
  #
498
498
  # @return [ExportTaskResult] operation results.
499
499
  #
500
- def create_errors_task(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
501
- response = create_errors_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
500
+ def create_errors_task(resource_group_name, app_collection, app_name, parameters, custom_headers:nil)
501
+ response = create_errors_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value!
502
502
  response.body unless response.nil?
503
503
  end
504
504
 
@@ -514,8 +514,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
514
514
  #
515
515
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
516
516
  #
517
- def create_errors_task_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
518
- create_errors_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
517
+ def create_errors_task_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers:nil)
518
+ create_errors_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value!
519
519
  end
520
520
 
521
521
  #
@@ -530,7 +530,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
530
530
  #
531
531
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
532
532
  #
533
- def create_errors_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
533
+ def create_errors_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:nil)
534
534
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
535
535
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
536
536
  fail ArgumentError, 'app_collection is nil' if app_collection.nil?
@@ -540,13 +540,12 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
540
540
 
541
541
 
542
542
  request_headers = {}
543
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
543
544
 
544
545
  # Set Headers
545
546
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
546
547
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
547
548
 
548
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
549
-
550
549
  # Serialize Request
551
550
  request_mapper = Azure::MobileEngagement::Mgmt::V2014_12_01::Models::DateRangeExportTaskParameter.mapper()
552
551
  request_content = @client.serialize(request_mapper, parameters)
@@ -605,8 +604,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
605
604
  #
606
605
  # @return [ExportTaskResult] operation results.
607
606
  #
608
- def create_events_task(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
609
- response = create_events_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
607
+ def create_events_task(resource_group_name, app_collection, app_name, parameters, custom_headers:nil)
608
+ response = create_events_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value!
610
609
  response.body unless response.nil?
611
610
  end
612
611
 
@@ -622,8 +621,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
622
621
  #
623
622
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
624
623
  #
625
- def create_events_task_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
626
- create_events_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
624
+ def create_events_task_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers:nil)
625
+ create_events_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value!
627
626
  end
628
627
 
629
628
  #
@@ -638,7 +637,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
638
637
  #
639
638
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
640
639
  #
641
- def create_events_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
640
+ def create_events_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:nil)
642
641
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
643
642
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
644
643
  fail ArgumentError, 'app_collection is nil' if app_collection.nil?
@@ -648,13 +647,12 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
648
647
 
649
648
 
650
649
  request_headers = {}
650
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
651
651
 
652
652
  # Set Headers
653
653
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
654
654
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
655
655
 
656
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
657
-
658
656
  # Serialize Request
659
657
  request_mapper = Azure::MobileEngagement::Mgmt::V2014_12_01::Models::DateRangeExportTaskParameter.mapper()
660
658
  request_content = @client.serialize(request_mapper, parameters)
@@ -713,8 +711,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
713
711
  #
714
712
  # @return [ExportTaskResult] operation results.
715
713
  #
716
- def create_jobs_task(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
717
- response = create_jobs_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
714
+ def create_jobs_task(resource_group_name, app_collection, app_name, parameters, custom_headers:nil)
715
+ response = create_jobs_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value!
718
716
  response.body unless response.nil?
719
717
  end
720
718
 
@@ -730,8 +728,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
730
728
  #
731
729
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
732
730
  #
733
- def create_jobs_task_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
734
- create_jobs_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
731
+ def create_jobs_task_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers:nil)
732
+ create_jobs_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value!
735
733
  end
736
734
 
737
735
  #
@@ -746,7 +744,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
746
744
  #
747
745
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
748
746
  #
749
- def create_jobs_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
747
+ def create_jobs_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:nil)
750
748
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
751
749
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
752
750
  fail ArgumentError, 'app_collection is nil' if app_collection.nil?
@@ -756,13 +754,12 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
756
754
 
757
755
 
758
756
  request_headers = {}
757
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
759
758
 
760
759
  # Set Headers
761
760
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
762
761
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
763
762
 
764
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
765
-
766
763
  # Serialize Request
767
764
  request_mapper = Azure::MobileEngagement::Mgmt::V2014_12_01::Models::DateRangeExportTaskParameter.mapper()
768
765
  request_content = @client.serialize(request_mapper, parameters)
@@ -821,8 +818,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
821
818
  #
822
819
  # @return [ExportTaskResult] operation results.
823
820
  #
824
- def create_sessions_task(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
825
- response = create_sessions_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
821
+ def create_sessions_task(resource_group_name, app_collection, app_name, parameters, custom_headers:nil)
822
+ response = create_sessions_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value!
826
823
  response.body unless response.nil?
827
824
  end
828
825
 
@@ -838,8 +835,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
838
835
  #
839
836
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
840
837
  #
841
- def create_sessions_task_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
842
- create_sessions_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
838
+ def create_sessions_task_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers:nil)
839
+ create_sessions_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value!
843
840
  end
844
841
 
845
842
  #
@@ -854,7 +851,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
854
851
  #
855
852
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
856
853
  #
857
- def create_sessions_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
854
+ def create_sessions_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:nil)
858
855
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
859
856
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
860
857
  fail ArgumentError, 'app_collection is nil' if app_collection.nil?
@@ -864,13 +861,12 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
864
861
 
865
862
 
866
863
  request_headers = {}
864
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
867
865
 
868
866
  # Set Headers
869
867
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
870
868
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
871
869
 
872
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
873
-
874
870
  # Serialize Request
875
871
  request_mapper = Azure::MobileEngagement::Mgmt::V2014_12_01::Models::DateRangeExportTaskParameter.mapper()
876
872
  request_content = @client.serialize(request_mapper, parameters)
@@ -929,8 +925,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
929
925
  #
930
926
  # @return [ExportTaskResult] operation results.
931
927
  #
932
- def create_tags_task(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
933
- response = create_tags_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
928
+ def create_tags_task(resource_group_name, app_collection, app_name, parameters, custom_headers:nil)
929
+ response = create_tags_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value!
934
930
  response.body unless response.nil?
935
931
  end
936
932
 
@@ -946,8 +942,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
946
942
  #
947
943
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
948
944
  #
949
- def create_tags_task_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
950
- create_tags_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
945
+ def create_tags_task_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers:nil)
946
+ create_tags_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value!
951
947
  end
952
948
 
953
949
  #
@@ -962,7 +958,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
962
958
  #
963
959
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
964
960
  #
965
- def create_tags_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
961
+ def create_tags_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:nil)
966
962
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
967
963
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
968
964
  fail ArgumentError, 'app_collection is nil' if app_collection.nil?
@@ -972,13 +968,12 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
972
968
 
973
969
 
974
970
  request_headers = {}
971
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
975
972
 
976
973
  # Set Headers
977
974
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
978
975
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
979
976
 
980
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
981
-
982
977
  # Serialize Request
983
978
  request_mapper = Azure::MobileEngagement::Mgmt::V2014_12_01::Models::ExportTaskParameter.mapper()
984
979
  request_content = @client.serialize(request_mapper, parameters)
@@ -1037,8 +1032,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
1037
1032
  #
1038
1033
  # @return [ExportTaskResult] operation results.
1039
1034
  #
1040
- def create_tokens_task(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
1041
- response = create_tokens_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
1035
+ def create_tokens_task(resource_group_name, app_collection, app_name, parameters, custom_headers:nil)
1036
+ response = create_tokens_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value!
1042
1037
  response.body unless response.nil?
1043
1038
  end
1044
1039
 
@@ -1054,8 +1049,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
1054
1049
  #
1055
1050
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1056
1051
  #
1057
- def create_tokens_task_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
1058
- create_tokens_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
1052
+ def create_tokens_task_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers:nil)
1053
+ create_tokens_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value!
1059
1054
  end
1060
1055
 
1061
1056
  #
@@ -1070,7 +1065,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
1070
1065
  #
1071
1066
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1072
1067
  #
1073
- def create_tokens_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
1068
+ def create_tokens_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers:nil)
1074
1069
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1075
1070
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1076
1071
  fail ArgumentError, 'app_collection is nil' if app_collection.nil?
@@ -1080,13 +1075,12 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
1080
1075
 
1081
1076
 
1082
1077
  request_headers = {}
1078
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1083
1079
 
1084
1080
  # Set Headers
1085
1081
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1086
1082
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1087
1083
 
1088
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1089
-
1090
1084
  # Serialize Request
1091
1085
  request_mapper = Azure::MobileEngagement::Mgmt::V2014_12_01::Models::ExportTaskParameter.mapper()
1092
1086
  request_content = @client.serialize(request_mapper, parameters)
@@ -1145,8 +1139,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
1145
1139
  #
1146
1140
  # @return [ExportTaskResult] operation results.
1147
1141
  #
1148
- def create_feedback_task_by_date_range(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
1149
- response = create_feedback_task_by_date_range_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
1142
+ def create_feedback_task_by_date_range(resource_group_name, app_collection, app_name, parameters, custom_headers:nil)
1143
+ response = create_feedback_task_by_date_range_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value!
1150
1144
  response.body unless response.nil?
1151
1145
  end
1152
1146
 
@@ -1162,8 +1156,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
1162
1156
  #
1163
1157
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1164
1158
  #
1165
- def create_feedback_task_by_date_range_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
1166
- create_feedback_task_by_date_range_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
1159
+ def create_feedback_task_by_date_range_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers:nil)
1160
+ create_feedback_task_by_date_range_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value!
1167
1161
  end
1168
1162
 
1169
1163
  #
@@ -1178,7 +1172,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
1178
1172
  #
1179
1173
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1180
1174
  #
1181
- def create_feedback_task_by_date_range_async(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
1175
+ def create_feedback_task_by_date_range_async(resource_group_name, app_collection, app_name, parameters, custom_headers:nil)
1182
1176
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1183
1177
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1184
1178
  fail ArgumentError, 'app_collection is nil' if app_collection.nil?
@@ -1188,13 +1182,12 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
1188
1182
 
1189
1183
 
1190
1184
  request_headers = {}
1185
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1191
1186
 
1192
1187
  # Set Headers
1193
1188
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1194
1189
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1195
1190
 
1196
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1197
-
1198
1191
  # Serialize Request
1199
1192
  request_mapper = Azure::MobileEngagement::Mgmt::V2014_12_01::Models::FeedbackByDateRangeParameter.mapper()
1200
1193
  request_content = @client.serialize(request_mapper, parameters)
@@ -1253,8 +1246,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
1253
1246
  #
1254
1247
  # @return [ExportTaskResult] operation results.
1255
1248
  #
1256
- def create_feedback_task_by_campaign(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
1257
- response = create_feedback_task_by_campaign_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
1249
+ def create_feedback_task_by_campaign(resource_group_name, app_collection, app_name, parameters, custom_headers:nil)
1250
+ response = create_feedback_task_by_campaign_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value!
1258
1251
  response.body unless response.nil?
1259
1252
  end
1260
1253
 
@@ -1270,8 +1263,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
1270
1263
  #
1271
1264
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1272
1265
  #
1273
- def create_feedback_task_by_campaign_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
1274
- create_feedback_task_by_campaign_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
1266
+ def create_feedback_task_by_campaign_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers:nil)
1267
+ create_feedback_task_by_campaign_async(resource_group_name, app_collection, app_name, parameters, custom_headers:custom_headers).value!
1275
1268
  end
1276
1269
 
1277
1270
  #
@@ -1286,7 +1279,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
1286
1279
  #
1287
1280
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1288
1281
  #
1289
- def create_feedback_task_by_campaign_async(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
1282
+ def create_feedback_task_by_campaign_async(resource_group_name, app_collection, app_name, parameters, custom_headers:nil)
1290
1283
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1291
1284
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1292
1285
  fail ArgumentError, 'app_collection is nil' if app_collection.nil?
@@ -1296,13 +1289,12 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
1296
1289
 
1297
1290
 
1298
1291
  request_headers = {}
1292
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1299
1293
 
1300
1294
  # Set Headers
1301
1295
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1302
1296
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1303
1297
 
1304
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1305
-
1306
1298
  # Serialize Request
1307
1299
  request_mapper = Azure::MobileEngagement::Mgmt::V2014_12_01::Models::FeedbackByCampaignParameter.mapper()
1308
1300
  request_content = @client.serialize(request_mapper, parameters)
@@ -1359,8 +1351,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
1359
1351
  #
1360
1352
  # @return [ExportTaskListResult] operation results.
1361
1353
  #
1362
- def list_next(next_page_link, custom_headers = nil)
1363
- response = list_next_async(next_page_link, custom_headers).value!
1354
+ def list_next(next_page_link, custom_headers:nil)
1355
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
1364
1356
  response.body unless response.nil?
1365
1357
  end
1366
1358
 
@@ -1374,8 +1366,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
1374
1366
  #
1375
1367
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1376
1368
  #
1377
- def list_next_with_http_info(next_page_link, custom_headers = nil)
1378
- list_next_async(next_page_link, custom_headers).value!
1369
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
1370
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
1379
1371
  end
1380
1372
 
1381
1373
  #
@@ -1388,11 +1380,12 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
1388
1380
  #
1389
1381
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1390
1382
  #
1391
- def list_next_async(next_page_link, custom_headers = nil)
1383
+ def list_next_async(next_page_link, custom_headers:nil)
1392
1384
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1393
1385
 
1394
1386
 
1395
1387
  request_headers = {}
1388
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1396
1389
 
1397
1390
  # Set Headers
1398
1391
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1465,12 +1458,12 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
1465
1458
  # @return [ExportTaskListResult] which provide lazy access to pages of the
1466
1459
  # response.
1467
1460
  #
1468
- def list_as_lazy(resource_group_name, app_collection, app_name, skip = 0, top = 20, orderby = nil, custom_headers = nil)
1469
- response = list_async(resource_group_name, app_collection, app_name, skip, top, orderby, custom_headers).value!
1461
+ def list_as_lazy(resource_group_name, app_collection, app_name, skip:0, top:20, orderby:nil, custom_headers:nil)
1462
+ response = list_async(resource_group_name, app_collection, app_name, skip:skip, top:top, orderby:orderby, custom_headers:custom_headers).value!
1470
1463
  unless response.nil?
1471
1464
  page = response.body
1472
1465
  page.next_method = Proc.new do |next_page_link|
1473
- list_next_async(next_page_link, custom_headers)
1466
+ list_next_async(next_page_link, custom_headers:custom_headers)
1474
1467
  end
1475
1468
  page
1476
1469
  end