azure_mgmt_mobile_engagement 0.8.0 → 0.9.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.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_mobile_engagement.rb +23 -23
  3. data/lib/generated/azure_mgmt_mobile_engagement/apps.rb +18 -10
  4. data/lib/generated/azure_mgmt_mobile_engagement/campaigns.rb +239 -119
  5. data/lib/generated/azure_mgmt_mobile_engagement/devices.rb +101 -53
  6. data/lib/generated/azure_mgmt_mobile_engagement/engagement_management_client.rb +4 -14
  7. data/lib/generated/azure_mgmt_mobile_engagement/export_tasks.rb +221 -110
  8. data/lib/generated/azure_mgmt_mobile_engagement/import_tasks.rb +59 -29
  9. data/lib/generated/azure_mgmt_mobile_engagement/models/api_error.rb +1 -1
  10. data/lib/generated/azure_mgmt_mobile_engagement/models/api_error_error.rb +1 -1
  11. data/lib/generated/azure_mgmt_mobile_engagement/models/app_collection_name_availability.rb +1 -1
  12. data/lib/generated/azure_mgmt_mobile_engagement/models/app_info_filter.rb +1 -1
  13. data/lib/generated/azure_mgmt_mobile_engagement/models/campaign.rb +7 -7
  14. data/lib/generated/azure_mgmt_mobile_engagement/models/campaign_audience.rb +2 -2
  15. data/lib/generated/azure_mgmt_mobile_engagement/models/campaign_list_result.rb +6 -6
  16. data/lib/generated/azure_mgmt_mobile_engagement/models/campaign_localization.rb +2 -2
  17. data/lib/generated/azure_mgmt_mobile_engagement/models/campaign_push_parameters.rb +2 -2
  18. data/lib/generated/azure_mgmt_mobile_engagement/models/campaign_push_result.rb +2 -2
  19. data/lib/generated/azure_mgmt_mobile_engagement/models/campaign_result.rb +3 -3
  20. data/lib/generated/azure_mgmt_mobile_engagement/models/campaign_state.rb +1 -1
  21. data/lib/generated/azure_mgmt_mobile_engagement/models/campaign_state_result.rb +1 -1
  22. data/lib/generated/azure_mgmt_mobile_engagement/models/campaign_statistics_result.rb +1 -1
  23. data/lib/generated/azure_mgmt_mobile_engagement/models/campaign_test_new_parameters.rb +1 -1
  24. data/lib/generated/azure_mgmt_mobile_engagement/models/campaign_test_saved_parameters.rb +1 -1
  25. data/lib/generated/azure_mgmt_mobile_engagement/models/criterion.rb +1 -1
  26. data/lib/generated/azure_mgmt_mobile_engagement/models/date_range_export_task_parameter.rb +1 -1
  27. data/lib/generated/azure_mgmt_mobile_engagement/models/date_tag_criterion.rb +1 -1
  28. data/lib/generated/azure_mgmt_mobile_engagement/models/device.rb +1 -1
  29. data/lib/generated/azure_mgmt_mobile_engagement/models/device_info.rb +1 -1
  30. data/lib/generated/azure_mgmt_mobile_engagement/models/device_location.rb +1 -1
  31. data/lib/generated/azure_mgmt_mobile_engagement/models/device_meta.rb +1 -1
  32. data/lib/generated/azure_mgmt_mobile_engagement/models/device_query_result.rb +1 -1
  33. data/lib/generated/azure_mgmt_mobile_engagement/models/device_tags_parameters.rb +2 -2
  34. data/lib/generated/azure_mgmt_mobile_engagement/models/device_tags_result.rb +2 -2
  35. data/lib/generated/azure_mgmt_mobile_engagement/models/export_task_parameter.rb +1 -1
  36. data/lib/generated/azure_mgmt_mobile_engagement/models/export_task_result.rb +1 -1
  37. data/lib/generated/azure_mgmt_mobile_engagement/models/feedback_by_campaign_parameter.rb +1 -1
  38. data/lib/generated/azure_mgmt_mobile_engagement/models/feedback_by_date_range_parameter.rb +1 -1
  39. data/lib/generated/azure_mgmt_mobile_engagement/models/filter.rb +1 -1
  40. data/lib/generated/azure_mgmt_mobile_engagement/models/geo_fencing_criterion.rb +1 -1
  41. data/lib/generated/azure_mgmt_mobile_engagement/models/import_task.rb +1 -1
  42. data/lib/generated/azure_mgmt_mobile_engagement/models/import_task_result.rb +3 -3
  43. data/lib/generated/azure_mgmt_mobile_engagement/models/notification_options.rb +5 -5
  44. data/lib/generated/azure_mgmt_mobile_engagement/models/poll_question.rb +2 -2
  45. data/lib/generated/azure_mgmt_mobile_engagement/models/poll_question_choice.rb +2 -2
  46. data/lib/generated/azure_mgmt_mobile_engagement/models/poll_question_choice_localization.rb +1 -1
  47. data/lib/generated/azure_mgmt_mobile_engagement/models/poll_question_localization.rb +1 -1
  48. data/lib/generated/azure_mgmt_mobile_engagement/models/supported_platforms_list_result.rb +1 -1
  49. data/lib/generated/azure_mgmt_mobile_engagement/version.rb +1 -1
  50. metadata +4 -4
@@ -25,6 +25,9 @@ module Azure::ARM::MobileEngagement
25
25
  #
26
26
  # Query the information associated to the devices running an application.
27
27
  #
28
+ # @param resource_group_name [String] The name of the resource group.
29
+ # @param app_collection [String] Application collection.
30
+ # @param app_name [String] Application resource name.
28
31
  # @param top [Integer] Number of devices to return with each call. Defaults to
29
32
  # 100 and cannot return more. Passing a greater value is ignored. The response
30
33
  # contains a `nextLink` property describing the URI path to get the next page
@@ -70,14 +73,17 @@ module Azure::ARM::MobileEngagement
70
73
  #
71
74
  # @return [Array<DeviceQueryResult>] operation results.
72
75
  #
73
- def list(top = nil, select = nil, filter = nil, custom_headers = nil)
74
- first_page = list_as_lazy(top, select, filter, custom_headers)
76
+ def list(resource_group_name, app_collection, app_name, top = nil, select = nil, filter = nil, custom_headers = nil)
77
+ first_page = list_as_lazy(resource_group_name, app_collection, app_name, top, select, filter, custom_headers)
75
78
  first_page.get_all_items
76
79
  end
77
80
 
78
81
  #
79
82
  # Query the information associated to the devices running an application.
80
83
  #
84
+ # @param resource_group_name [String] The name of the resource group.
85
+ # @param app_collection [String] Application collection.
86
+ # @param app_name [String] Application resource name.
81
87
  # @param top [Integer] Number of devices to return with each call. Defaults to
82
88
  # 100 and cannot return more. Passing a greater value is ignored. The response
83
89
  # contains a `nextLink` property describing the URI path to get the next page
@@ -123,13 +129,16 @@ module Azure::ARM::MobileEngagement
123
129
  #
124
130
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
125
131
  #
126
- def list_with_http_info(top = nil, select = nil, filter = nil, custom_headers = nil)
127
- list_async(top, select, filter, custom_headers).value!
132
+ def list_with_http_info(resource_group_name, app_collection, app_name, top = nil, select = nil, filter = nil, custom_headers = nil)
133
+ list_async(resource_group_name, app_collection, app_name, top, select, filter, custom_headers).value!
128
134
  end
129
135
 
130
136
  #
131
137
  # Query the information associated to the devices running an application.
132
138
  #
139
+ # @param resource_group_name [String] The name of the resource group.
140
+ # @param app_collection [String] Application collection.
141
+ # @param app_name [String] Application resource name.
133
142
  # @param top [Integer] Number of devices to return with each call. Defaults to
134
143
  # 100 and cannot return more. Passing a greater value is ignored. The response
135
144
  # contains a `nextLink` property describing the URI path to get the next page
@@ -175,11 +184,11 @@ module Azure::ARM::MobileEngagement
175
184
  #
176
185
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
177
186
  #
178
- def list_async(top = nil, select = nil, filter = nil, custom_headers = nil)
187
+ def list_async(resource_group_name, app_collection, app_name, top = nil, select = nil, filter = nil, custom_headers = nil)
179
188
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
180
- fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
181
- fail ArgumentError, '@client.app_collection is nil' if @client.app_collection.nil?
182
- fail ArgumentError, '@client.app_name is nil' if @client.app_name.nil?
189
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
190
+ fail ArgumentError, 'app_collection is nil' if app_collection.nil?
191
+ fail ArgumentError, 'app_name is nil' if app_name.nil?
183
192
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
184
193
 
185
194
 
@@ -194,7 +203,7 @@ module Azure::ARM::MobileEngagement
194
203
 
195
204
  options = {
196
205
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
197
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'appCollection' => @client.app_collection,'appName' => @client.app_name},
206
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'appCollection' => app_collection,'appName' => app_name},
198
207
  query_params: {'api-version' => @client.api_version,'$top' => top,'$select' => select,'$filter' => filter},
199
208
  headers: request_headers.merge(custom_headers || {}),
200
209
  base_url: request_url
@@ -231,44 +240,53 @@ module Azure::ARM::MobileEngagement
231
240
  #
232
241
  # Get the information associated to a device running an application.
233
242
  #
243
+ # @param resource_group_name [String] The name of the resource group.
244
+ # @param app_collection [String] Application collection.
245
+ # @param app_name [String] Application resource name.
234
246
  # @param device_id [String] Device identifier.
235
247
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
236
248
  # will be added to the HTTP request.
237
249
  #
238
250
  # @return [Device] operation results.
239
251
  #
240
- def get_by_device_id(device_id, custom_headers = nil)
241
- response = get_by_device_id_async(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).value!
242
254
  response.body unless response.nil?
243
255
  end
244
256
 
245
257
  #
246
258
  # Get the information associated to a device running an application.
247
259
  #
260
+ # @param resource_group_name [String] The name of the resource group.
261
+ # @param app_collection [String] Application collection.
262
+ # @param app_name [String] Application resource name.
248
263
  # @param device_id [String] Device identifier.
249
264
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
250
265
  # will be added to the HTTP request.
251
266
  #
252
267
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
253
268
  #
254
- def get_by_device_id_with_http_info(device_id, custom_headers = nil)
255
- get_by_device_id_async(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).value!
256
271
  end
257
272
 
258
273
  #
259
274
  # Get the information associated to a device running an application.
260
275
  #
276
+ # @param resource_group_name [String] The name of the resource group.
277
+ # @param app_collection [String] Application collection.
278
+ # @param app_name [String] Application resource name.
261
279
  # @param device_id [String] Device identifier.
262
280
  # @param [Hash{String => String}] A hash of custom headers that will be added
263
281
  # to the HTTP request.
264
282
  #
265
283
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
266
284
  #
267
- def get_by_device_id_async(device_id, custom_headers = nil)
285
+ def get_by_device_id_async(resource_group_name, app_collection, app_name, device_id, custom_headers = nil)
268
286
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
269
- fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
270
- fail ArgumentError, '@client.app_collection is nil' if @client.app_collection.nil?
271
- fail ArgumentError, '@client.app_name is nil' if @client.app_name.nil?
287
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
288
+ fail ArgumentError, 'app_collection is nil' if app_collection.nil?
289
+ fail ArgumentError, 'app_name is nil' if app_name.nil?
272
290
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
273
291
  fail ArgumentError, 'device_id is nil' if device_id.nil?
274
292
 
@@ -284,7 +302,7 @@ module Azure::ARM::MobileEngagement
284
302
 
285
303
  options = {
286
304
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
287
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'appCollection' => @client.app_collection,'appName' => @client.app_name,'deviceId' => device_id},
305
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'appCollection' => app_collection,'appName' => app_name,'deviceId' => device_id},
288
306
  query_params: {'api-version' => @client.api_version},
289
307
  headers: request_headers.merge(custom_headers || {}),
290
308
  base_url: request_url
@@ -322,14 +340,17 @@ module Azure::ARM::MobileEngagement
322
340
  # Get the information associated to a device running an application using the
323
341
  # user identifier.
324
342
  #
343
+ # @param resource_group_name [String] The name of the resource group.
344
+ # @param app_collection [String] Application collection.
345
+ # @param app_name [String] Application resource name.
325
346
  # @param user_id [String] User identifier.
326
347
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
327
348
  # will be added to the HTTP request.
328
349
  #
329
350
  # @return [Device] operation results.
330
351
  #
331
- def get_by_user_id(user_id, custom_headers = nil)
332
- response = get_by_user_id_async(user_id, custom_headers).value!
352
+ def get_by_user_id(resource_group_name, app_collection, app_name, user_id, custom_headers = nil)
353
+ response = get_by_user_id_async(resource_group_name, app_collection, app_name, user_id, custom_headers).value!
333
354
  response.body unless response.nil?
334
355
  end
335
356
 
@@ -337,31 +358,37 @@ module Azure::ARM::MobileEngagement
337
358
  # Get the information associated to a device running an application using the
338
359
  # user identifier.
339
360
  #
361
+ # @param resource_group_name [String] The name of the resource group.
362
+ # @param app_collection [String] Application collection.
363
+ # @param app_name [String] Application resource name.
340
364
  # @param user_id [String] User identifier.
341
365
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
342
366
  # will be added to the HTTP request.
343
367
  #
344
368
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
345
369
  #
346
- def get_by_user_id_with_http_info(user_id, custom_headers = nil)
347
- get_by_user_id_async(user_id, custom_headers).value!
370
+ def get_by_user_id_with_http_info(resource_group_name, app_collection, app_name, user_id, custom_headers = nil)
371
+ get_by_user_id_async(resource_group_name, app_collection, app_name, user_id, custom_headers).value!
348
372
  end
349
373
 
350
374
  #
351
375
  # Get the information associated to a device running an application using the
352
376
  # user identifier.
353
377
  #
378
+ # @param resource_group_name [String] The name of the resource group.
379
+ # @param app_collection [String] Application collection.
380
+ # @param app_name [String] Application resource name.
354
381
  # @param user_id [String] User identifier.
355
382
  # @param [Hash{String => String}] A hash of custom headers that will be added
356
383
  # to the HTTP request.
357
384
  #
358
385
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
359
386
  #
360
- def get_by_user_id_async(user_id, custom_headers = nil)
387
+ def get_by_user_id_async(resource_group_name, app_collection, app_name, user_id, custom_headers = nil)
361
388
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
362
- fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
363
- fail ArgumentError, '@client.app_collection is nil' if @client.app_collection.nil?
364
- fail ArgumentError, '@client.app_name is nil' if @client.app_name.nil?
389
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
390
+ fail ArgumentError, 'app_collection is nil' if app_collection.nil?
391
+ fail ArgumentError, 'app_name is nil' if app_name.nil?
365
392
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
366
393
  fail ArgumentError, 'user_id is nil' if user_id.nil?
367
394
 
@@ -377,7 +404,7 @@ module Azure::ARM::MobileEngagement
377
404
 
378
405
  options = {
379
406
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
380
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'appCollection' => @client.app_collection,'appName' => @client.app_name,'userId' => user_id},
407
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'appCollection' => app_collection,'appName' => app_name,'userId' => user_id},
381
408
  query_params: {'api-version' => @client.api_version},
382
409
  headers: request_headers.merge(custom_headers || {}),
383
410
  base_url: request_url
@@ -415,16 +442,19 @@ module Azure::ARM::MobileEngagement
415
442
  # Update the tags registered for a set of devices running an application.
416
443
  # Updates are performed asynchronously, meaning that a few seconds are needed
417
444
  # before the modifications appear in the results of the Get device command.
418
- #
419
445
  #
446
+ #
447
+ # @param resource_group_name [String] The name of the resource group.
448
+ # @param app_collection [String] Application collection.
449
+ # @param app_name [String] Application resource name.
420
450
  # @param parameters [DeviceTagsParameters]
421
451
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
422
452
  # will be added to the HTTP request.
423
453
  #
424
454
  # @return [DeviceTagsResult] operation results.
425
455
  #
426
- def tag_by_device_id(parameters, custom_headers = nil)
427
- response = tag_by_device_id_async(parameters, custom_headers).value!
456
+ def tag_by_device_id(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
457
+ response = tag_by_device_id_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
428
458
  response.body unless response.nil?
429
459
  end
430
460
 
@@ -432,35 +462,41 @@ module Azure::ARM::MobileEngagement
432
462
  # Update the tags registered for a set of devices running an application.
433
463
  # Updates are performed asynchronously, meaning that a few seconds are needed
434
464
  # before the modifications appear in the results of the Get device command.
435
- #
436
465
  #
466
+ #
467
+ # @param resource_group_name [String] The name of the resource group.
468
+ # @param app_collection [String] Application collection.
469
+ # @param app_name [String] Application resource name.
437
470
  # @param parameters [DeviceTagsParameters]
438
471
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
439
472
  # will be added to the HTTP request.
440
473
  #
441
474
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
442
475
  #
443
- def tag_by_device_id_with_http_info(parameters, custom_headers = nil)
444
- tag_by_device_id_async(parameters, custom_headers).value!
476
+ def tag_by_device_id_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
477
+ tag_by_device_id_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
445
478
  end
446
479
 
447
480
  #
448
481
  # Update the tags registered for a set of devices running an application.
449
482
  # Updates are performed asynchronously, meaning that a few seconds are needed
450
483
  # before the modifications appear in the results of the Get device command.
451
- #
452
484
  #
485
+ #
486
+ # @param resource_group_name [String] The name of the resource group.
487
+ # @param app_collection [String] Application collection.
488
+ # @param app_name [String] Application resource name.
453
489
  # @param parameters [DeviceTagsParameters]
454
490
  # @param [Hash{String => String}] A hash of custom headers that will be added
455
491
  # to the HTTP request.
456
492
  #
457
493
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
458
494
  #
459
- def tag_by_device_id_async(parameters, custom_headers = nil)
495
+ def tag_by_device_id_async(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
460
496
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
461
- fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
462
- fail ArgumentError, '@client.app_collection is nil' if @client.app_collection.nil?
463
- fail ArgumentError, '@client.app_name is nil' if @client.app_name.nil?
497
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
498
+ fail ArgumentError, 'app_collection is nil' if app_collection.nil?
499
+ fail ArgumentError, 'app_name is nil' if app_name.nil?
464
500
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
465
501
  fail ArgumentError, 'parameters is nil' if parameters.nil?
466
502
 
@@ -484,7 +520,7 @@ module Azure::ARM::MobileEngagement
484
520
 
485
521
  options = {
486
522
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
487
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'appCollection' => @client.app_collection,'appName' => @client.app_name},
523
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'appCollection' => app_collection,'appName' => app_name},
488
524
  query_params: {'api-version' => @client.api_version},
489
525
  body: request_content,
490
526
  headers: request_headers.merge(custom_headers || {}),
@@ -523,16 +559,19 @@ module Azure::ARM::MobileEngagement
523
559
  # Update the tags registered for a set of users running an application. Updates
524
560
  # are performed asynchronously, meaning that a few seconds are needed before
525
561
  # the modifications appear in the results of the Get device command.
526
- #
527
562
  #
563
+ #
564
+ # @param resource_group_name [String] The name of the resource group.
565
+ # @param app_collection [String] Application collection.
566
+ # @param app_name [String] Application resource name.
528
567
  # @param parameters [DeviceTagsParameters]
529
568
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
530
569
  # will be added to the HTTP request.
531
570
  #
532
571
  # @return [DeviceTagsResult] operation results.
533
572
  #
534
- def tag_by_user_id(parameters, custom_headers = nil)
535
- response = tag_by_user_id_async(parameters, custom_headers).value!
573
+ def tag_by_user_id(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
574
+ response = tag_by_user_id_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
536
575
  response.body unless response.nil?
537
576
  end
538
577
 
@@ -540,35 +579,41 @@ module Azure::ARM::MobileEngagement
540
579
  # Update the tags registered for a set of users running an application. Updates
541
580
  # are performed asynchronously, meaning that a few seconds are needed before
542
581
  # the modifications appear in the results of the Get device command.
543
- #
544
582
  #
583
+ #
584
+ # @param resource_group_name [String] The name of the resource group.
585
+ # @param app_collection [String] Application collection.
586
+ # @param app_name [String] Application resource name.
545
587
  # @param parameters [DeviceTagsParameters]
546
588
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
547
589
  # will be added to the HTTP request.
548
590
  #
549
591
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
550
592
  #
551
- def tag_by_user_id_with_http_info(parameters, custom_headers = nil)
552
- tag_by_user_id_async(parameters, custom_headers).value!
593
+ def tag_by_user_id_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
594
+ tag_by_user_id_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
553
595
  end
554
596
 
555
597
  #
556
598
  # Update the tags registered for a set of users running an application. Updates
557
599
  # are performed asynchronously, meaning that a few seconds are needed before
558
600
  # the modifications appear in the results of the Get device command.
559
- #
560
601
  #
602
+ #
603
+ # @param resource_group_name [String] The name of the resource group.
604
+ # @param app_collection [String] Application collection.
605
+ # @param app_name [String] Application resource name.
561
606
  # @param parameters [DeviceTagsParameters]
562
607
  # @param [Hash{String => String}] A hash of custom headers that will be added
563
608
  # to the HTTP request.
564
609
  #
565
610
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
566
611
  #
567
- def tag_by_user_id_async(parameters, custom_headers = nil)
612
+ def tag_by_user_id_async(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
568
613
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
569
- fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
570
- fail ArgumentError, '@client.app_collection is nil' if @client.app_collection.nil?
571
- fail ArgumentError, '@client.app_name is nil' if @client.app_name.nil?
614
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
615
+ fail ArgumentError, 'app_collection is nil' if app_collection.nil?
616
+ fail ArgumentError, 'app_name is nil' if app_name.nil?
572
617
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
573
618
  fail ArgumentError, 'parameters is nil' if parameters.nil?
574
619
 
@@ -592,7 +637,7 @@ module Azure::ARM::MobileEngagement
592
637
 
593
638
  options = {
594
639
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
595
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'appCollection' => @client.app_collection,'appName' => @client.app_name},
640
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'appCollection' => app_collection,'appName' => app_name},
596
641
  query_params: {'api-version' => @client.api_version},
597
642
  body: request_content,
598
643
  headers: request_headers.merge(custom_headers || {}),
@@ -717,6 +762,9 @@ module Azure::ARM::MobileEngagement
717
762
  #
718
763
  # Query the information associated to the devices running an application.
719
764
  #
765
+ # @param resource_group_name [String] The name of the resource group.
766
+ # @param app_collection [String] Application collection.
767
+ # @param app_name [String] Application resource name.
720
768
  # @param top [Integer] Number of devices to return with each call. Defaults to
721
769
  # 100 and cannot return more. Passing a greater value is ignored. The response
722
770
  # contains a `nextLink` property describing the URI path to get the next page
@@ -763,8 +811,8 @@ module Azure::ARM::MobileEngagement
763
811
  # @return [DevicesQueryResult] which provide lazy access to pages of the
764
812
  # response.
765
813
  #
766
- def list_as_lazy(top = nil, select = nil, filter = nil, custom_headers = nil)
767
- response = list_async(top, select, filter, custom_headers).value!
814
+ def list_as_lazy(resource_group_name, app_collection, app_name, top = nil, select = nil, filter = nil, custom_headers = nil)
815
+ response = list_async(resource_group_name, app_collection, app_name, top, select, filter, custom_headers).value!
768
816
  unless response.nil?
769
817
  page = response.body
770
818
  page.next_method = Proc.new do |next_page_link|
@@ -25,15 +25,6 @@ module Azure::ARM::MobileEngagement
25
25
  # @return [String] Client Api Version.
26
26
  attr_reader :api_version
27
27
 
28
- # @return [String] The name of the resource group.
29
- attr_accessor :resource_group_name
30
-
31
- # @return [String] Application collection.
32
- attr_accessor :app_collection
33
-
34
- # @return [String] Application resource name.
35
- attr_accessor :app_name
36
-
37
28
  # @return [String] Gets or sets the preferred language for the response.
38
29
  attr_accessor :accept_language
39
30
 
@@ -72,12 +63,11 @@ module Azure::ARM::MobileEngagement
72
63
  # @param base_url [String] the base URI of the service.
73
64
  # @param options [Array] filters to be applied to the HTTP requests.
74
65
  #
75
- def initialize(credentials, base_url = nil, options = nil)
66
+ def initialize(credentials = nil, base_url = nil, options = nil)
76
67
  super(credentials, options)
77
68
  @base_url = base_url || 'https://management.azure.com'
78
69
 
79
- fail ArgumentError, 'credentials is nil' if credentials.nil?
80
- fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials)
70
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
81
71
  @credentials = credentials
82
72
 
83
73
  @app_collections = AppCollections.new(self)
@@ -96,7 +86,7 @@ module Azure::ARM::MobileEngagement
96
86
 
97
87
  #
98
88
  # Makes a request and returns the body of the response.
99
- # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
89
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
100
90
  # @param path [String] the path, relative to {base_url}.
101
91
  # @param options [Hash{String=>String}] specifying any request options like :body.
102
92
  # @return [Hash{String=>String}] containing the body of the response.
@@ -157,7 +147,7 @@ module Azure::ARM::MobileEngagement
157
147
  def add_telemetry
158
148
  sdk_information = 'azure_mgmt_mobile_engagement'
159
149
  if defined? Azure::ARM::MobileEngagement::VERSION
160
- sdk_information = "#{sdk_information}/#{Azure::ARM::MobileEngagement::VERSION}"
150
+ sdk_information = "#{sdk_information}/#{Azure::ARM::MobileEngagement::VERSION}"
161
151
  end
162
152
  add_user_agent_information(sdk_information)
163
153
  end
@@ -25,6 +25,9 @@ module Azure::ARM::MobileEngagement
25
25
  #
26
26
  # Get the list of export tasks.
27
27
  #
28
+ # @param resource_group_name [String] The name of the resource group.
29
+ # @param app_collection [String] Application collection.
30
+ # @param app_name [String] Application resource name.
28
31
  # @param skip [Integer] Control paging of export tasks, start results at the
29
32
  # given offset, defaults to 0 (1st page of data).
30
33
  # @param top [Integer] Control paging of export tasks, number of export tasks
@@ -47,14 +50,17 @@ module Azure::ARM::MobileEngagement
47
50
  #
48
51
  # @return [Array<ExportTaskResult>] operation results.
49
52
  #
50
- def list(skip = 0, top = 20, orderby = nil, custom_headers = nil)
51
- first_page = list_as_lazy(skip, top, orderby, custom_headers)
53
+ def list(resource_group_name, app_collection, app_name, skip = 0, top = 20, orderby = nil, custom_headers = nil)
54
+ first_page = list_as_lazy(resource_group_name, app_collection, app_name, skip, top, orderby, custom_headers)
52
55
  first_page.get_all_items
53
56
  end
54
57
 
55
58
  #
56
59
  # Get the list of export tasks.
57
60
  #
61
+ # @param resource_group_name [String] The name of the resource group.
62
+ # @param app_collection [String] Application collection.
63
+ # @param app_name [String] Application resource name.
58
64
  # @param skip [Integer] Control paging of export tasks, start results at the
59
65
  # given offset, defaults to 0 (1st page of data).
60
66
  # @param top [Integer] Control paging of export tasks, number of export tasks
@@ -77,13 +83,16 @@ module Azure::ARM::MobileEngagement
77
83
  #
78
84
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
79
85
  #
80
- def list_with_http_info(skip = 0, top = 20, orderby = nil, custom_headers = nil)
81
- list_async(skip, top, orderby, custom_headers).value!
86
+ def list_with_http_info(resource_group_name, app_collection, app_name, skip = 0, top = 20, orderby = nil, custom_headers = nil)
87
+ list_async(resource_group_name, app_collection, app_name, skip, top, orderby, custom_headers).value!
82
88
  end
83
89
 
84
90
  #
85
91
  # Get the list of export tasks.
86
92
  #
93
+ # @param resource_group_name [String] The name of the resource group.
94
+ # @param app_collection [String] Application collection.
95
+ # @param app_name [String] Application resource name.
87
96
  # @param skip [Integer] Control paging of export tasks, start results at the
88
97
  # given offset, defaults to 0 (1st page of data).
89
98
  # @param top [Integer] Control paging of export tasks, number of export tasks
@@ -106,11 +115,11 @@ module Azure::ARM::MobileEngagement
106
115
  #
107
116
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
108
117
  #
109
- def list_async(skip = 0, top = 20, orderby = nil, custom_headers = nil)
118
+ def list_async(resource_group_name, app_collection, app_name, skip = 0, top = 20, orderby = nil, custom_headers = nil)
110
119
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
111
- fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
112
- fail ArgumentError, '@client.app_collection is nil' if @client.app_collection.nil?
113
- fail ArgumentError, '@client.app_name is nil' if @client.app_name.nil?
120
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
121
+ fail ArgumentError, 'app_collection is nil' if app_collection.nil?
122
+ fail ArgumentError, 'app_name is nil' if app_name.nil?
114
123
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
115
124
 
116
125
 
@@ -125,7 +134,7 @@ module Azure::ARM::MobileEngagement
125
134
 
126
135
  options = {
127
136
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
128
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'appCollection' => @client.app_collection,'appName' => @client.app_name},
137
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'appCollection' => app_collection,'appName' => app_name},
129
138
  query_params: {'api-version' => @client.api_version,'$skip' => skip,'$top' => top,'$orderby' => orderby},
130
139
  headers: request_headers.merge(custom_headers || {}),
131
140
  base_url: request_url
@@ -162,44 +171,53 @@ module Azure::ARM::MobileEngagement
162
171
  #
163
172
  # Retrieves information about a previously created export task.
164
173
  #
174
+ # @param resource_group_name [String] The name of the resource group.
175
+ # @param app_collection [String] Application collection.
176
+ # @param app_name [String] Application resource name.
165
177
  # @param id [String] Export task identifier.
166
178
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
167
179
  # will be added to the HTTP request.
168
180
  #
169
181
  # @return [ExportTaskResult] operation results.
170
182
  #
171
- def get(id, custom_headers = nil)
172
- response = get_async(id, custom_headers).value!
183
+ def get(resource_group_name, app_collection, app_name, id, custom_headers = nil)
184
+ response = get_async(resource_group_name, app_collection, app_name, id, custom_headers).value!
173
185
  response.body unless response.nil?
174
186
  end
175
187
 
176
188
  #
177
189
  # Retrieves information about a previously created export task.
178
190
  #
191
+ # @param resource_group_name [String] The name of the resource group.
192
+ # @param app_collection [String] Application collection.
193
+ # @param app_name [String] Application resource name.
179
194
  # @param id [String] Export task identifier.
180
195
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
181
196
  # will be added to the HTTP request.
182
197
  #
183
198
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
184
199
  #
185
- def get_with_http_info(id, custom_headers = nil)
186
- get_async(id, custom_headers).value!
200
+ def get_with_http_info(resource_group_name, app_collection, app_name, id, custom_headers = nil)
201
+ get_async(resource_group_name, app_collection, app_name, id, custom_headers).value!
187
202
  end
188
203
 
189
204
  #
190
205
  # Retrieves information about a previously created export task.
191
206
  #
207
+ # @param resource_group_name [String] The name of the resource group.
208
+ # @param app_collection [String] Application collection.
209
+ # @param app_name [String] Application resource name.
192
210
  # @param id [String] Export task identifier.
193
211
  # @param [Hash{String => String}] A hash of custom headers that will be added
194
212
  # to the HTTP request.
195
213
  #
196
214
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
197
215
  #
198
- def get_async(id, custom_headers = nil)
216
+ def get_async(resource_group_name, app_collection, app_name, id, custom_headers = nil)
199
217
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
200
- fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
201
- fail ArgumentError, '@client.app_collection is nil' if @client.app_collection.nil?
202
- fail ArgumentError, '@client.app_name is nil' if @client.app_name.nil?
218
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
219
+ fail ArgumentError, 'app_collection is nil' if app_collection.nil?
220
+ fail ArgumentError, 'app_name is nil' if app_name.nil?
203
221
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
204
222
  fail ArgumentError, 'id is nil' if id.nil?
205
223
 
@@ -215,7 +233,7 @@ module Azure::ARM::MobileEngagement
215
233
 
216
234
  options = {
217
235
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
218
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'appCollection' => @client.app_collection,'appName' => @client.app_name,'id' => id},
236
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'appCollection' => app_collection,'appName' => app_name,'id' => id},
219
237
  query_params: {'api-version' => @client.api_version},
220
238
  headers: request_headers.merge(custom_headers || {}),
221
239
  base_url: request_url
@@ -252,44 +270,53 @@ module Azure::ARM::MobileEngagement
252
270
  #
253
271
  # Creates a task to export activities.
254
272
  #
273
+ # @param resource_group_name [String] The name of the resource group.
274
+ # @param app_collection [String] Application collection.
275
+ # @param app_name [String] Application resource name.
255
276
  # @param parameters [DateRangeExportTaskParameter]
256
277
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
257
278
  # will be added to the HTTP request.
258
279
  #
259
280
  # @return [ExportTaskResult] operation results.
260
281
  #
261
- def create_activities_task(parameters, custom_headers = nil)
262
- response = create_activities_task_async(parameters, custom_headers).value!
282
+ def create_activities_task(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
283
+ response = create_activities_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
263
284
  response.body unless response.nil?
264
285
  end
265
286
 
266
287
  #
267
288
  # Creates a task to export activities.
268
289
  #
290
+ # @param resource_group_name [String] The name of the resource group.
291
+ # @param app_collection [String] Application collection.
292
+ # @param app_name [String] Application resource name.
269
293
  # @param parameters [DateRangeExportTaskParameter]
270
294
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
271
295
  # will be added to the HTTP request.
272
296
  #
273
297
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
274
298
  #
275
- def create_activities_task_with_http_info(parameters, custom_headers = nil)
276
- create_activities_task_async(parameters, custom_headers).value!
299
+ def create_activities_task_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
300
+ create_activities_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
277
301
  end
278
302
 
279
303
  #
280
304
  # Creates a task to export activities.
281
305
  #
306
+ # @param resource_group_name [String] The name of the resource group.
307
+ # @param app_collection [String] Application collection.
308
+ # @param app_name [String] Application resource name.
282
309
  # @param parameters [DateRangeExportTaskParameter]
283
310
  # @param [Hash{String => String}] A hash of custom headers that will be added
284
311
  # to the HTTP request.
285
312
  #
286
313
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
287
314
  #
288
- def create_activities_task_async(parameters, custom_headers = nil)
315
+ def create_activities_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
289
316
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
290
- fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
291
- fail ArgumentError, '@client.app_collection is nil' if @client.app_collection.nil?
292
- fail ArgumentError, '@client.app_name is nil' if @client.app_name.nil?
317
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
318
+ fail ArgumentError, 'app_collection is nil' if app_collection.nil?
319
+ fail ArgumentError, 'app_name is nil' if app_name.nil?
293
320
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
294
321
  fail ArgumentError, 'parameters is nil' if parameters.nil?
295
322
 
@@ -313,7 +340,7 @@ module Azure::ARM::MobileEngagement
313
340
 
314
341
  options = {
315
342
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
316
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'appCollection' => @client.app_collection,'appName' => @client.app_name},
343
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'appCollection' => app_collection,'appName' => app_name},
317
344
  query_params: {'api-version' => @client.api_version},
318
345
  body: request_content,
319
346
  headers: request_headers.merge(custom_headers || {}),
@@ -351,44 +378,53 @@ module Azure::ARM::MobileEngagement
351
378
  #
352
379
  # Creates a task to export crashes.
353
380
  #
381
+ # @param resource_group_name [String] The name of the resource group.
382
+ # @param app_collection [String] Application collection.
383
+ # @param app_name [String] Application resource name.
354
384
  # @param parameters [DateRangeExportTaskParameter]
355
385
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
356
386
  # will be added to the HTTP request.
357
387
  #
358
388
  # @return [ExportTaskResult] operation results.
359
389
  #
360
- def create_crashes_task(parameters, custom_headers = nil)
361
- response = create_crashes_task_async(parameters, custom_headers).value!
390
+ def create_crashes_task(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
391
+ response = create_crashes_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
362
392
  response.body unless response.nil?
363
393
  end
364
394
 
365
395
  #
366
396
  # Creates a task to export crashes.
367
397
  #
398
+ # @param resource_group_name [String] The name of the resource group.
399
+ # @param app_collection [String] Application collection.
400
+ # @param app_name [String] Application resource name.
368
401
  # @param parameters [DateRangeExportTaskParameter]
369
402
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
370
403
  # will be added to the HTTP request.
371
404
  #
372
405
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
373
406
  #
374
- def create_crashes_task_with_http_info(parameters, custom_headers = nil)
375
- create_crashes_task_async(parameters, custom_headers).value!
407
+ def create_crashes_task_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
408
+ create_crashes_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
376
409
  end
377
410
 
378
411
  #
379
412
  # Creates a task to export crashes.
380
413
  #
414
+ # @param resource_group_name [String] The name of the resource group.
415
+ # @param app_collection [String] Application collection.
416
+ # @param app_name [String] Application resource name.
381
417
  # @param parameters [DateRangeExportTaskParameter]
382
418
  # @param [Hash{String => String}] A hash of custom headers that will be added
383
419
  # to the HTTP request.
384
420
  #
385
421
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
386
422
  #
387
- def create_crashes_task_async(parameters, custom_headers = nil)
423
+ def create_crashes_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
388
424
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
389
- fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
390
- fail ArgumentError, '@client.app_collection is nil' if @client.app_collection.nil?
391
- fail ArgumentError, '@client.app_name is nil' if @client.app_name.nil?
425
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
426
+ fail ArgumentError, 'app_collection is nil' if app_collection.nil?
427
+ fail ArgumentError, 'app_name is nil' if app_name.nil?
392
428
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
393
429
  fail ArgumentError, 'parameters is nil' if parameters.nil?
394
430
 
@@ -412,7 +448,7 @@ module Azure::ARM::MobileEngagement
412
448
 
413
449
  options = {
414
450
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
415
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'appCollection' => @client.app_collection,'appName' => @client.app_name},
451
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'appCollection' => app_collection,'appName' => app_name},
416
452
  query_params: {'api-version' => @client.api_version},
417
453
  body: request_content,
418
454
  headers: request_headers.merge(custom_headers || {}),
@@ -450,44 +486,53 @@ module Azure::ARM::MobileEngagement
450
486
  #
451
487
  # Creates a task to export errors.
452
488
  #
489
+ # @param resource_group_name [String] The name of the resource group.
490
+ # @param app_collection [String] Application collection.
491
+ # @param app_name [String] Application resource name.
453
492
  # @param parameters [DateRangeExportTaskParameter]
454
493
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
455
494
  # will be added to the HTTP request.
456
495
  #
457
496
  # @return [ExportTaskResult] operation results.
458
497
  #
459
- def create_errors_task(parameters, custom_headers = nil)
460
- response = create_errors_task_async(parameters, custom_headers).value!
498
+ def create_errors_task(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
499
+ response = create_errors_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
461
500
  response.body unless response.nil?
462
501
  end
463
502
 
464
503
  #
465
504
  # Creates a task to export errors.
466
505
  #
506
+ # @param resource_group_name [String] The name of the resource group.
507
+ # @param app_collection [String] Application collection.
508
+ # @param app_name [String] Application resource name.
467
509
  # @param parameters [DateRangeExportTaskParameter]
468
510
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
469
511
  # will be added to the HTTP request.
470
512
  #
471
513
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
472
514
  #
473
- def create_errors_task_with_http_info(parameters, custom_headers = nil)
474
- create_errors_task_async(parameters, custom_headers).value!
515
+ def create_errors_task_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
516
+ create_errors_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
475
517
  end
476
518
 
477
519
  #
478
520
  # Creates a task to export errors.
479
521
  #
522
+ # @param resource_group_name [String] The name of the resource group.
523
+ # @param app_collection [String] Application collection.
524
+ # @param app_name [String] Application resource name.
480
525
  # @param parameters [DateRangeExportTaskParameter]
481
526
  # @param [Hash{String => String}] A hash of custom headers that will be added
482
527
  # to the HTTP request.
483
528
  #
484
529
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
485
530
  #
486
- def create_errors_task_async(parameters, custom_headers = nil)
531
+ def create_errors_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
487
532
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
488
- fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
489
- fail ArgumentError, '@client.app_collection is nil' if @client.app_collection.nil?
490
- fail ArgumentError, '@client.app_name is nil' if @client.app_name.nil?
533
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
534
+ fail ArgumentError, 'app_collection is nil' if app_collection.nil?
535
+ fail ArgumentError, 'app_name is nil' if app_name.nil?
491
536
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
492
537
  fail ArgumentError, 'parameters is nil' if parameters.nil?
493
538
 
@@ -511,7 +556,7 @@ module Azure::ARM::MobileEngagement
511
556
 
512
557
  options = {
513
558
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
514
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'appCollection' => @client.app_collection,'appName' => @client.app_name},
559
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'appCollection' => app_collection,'appName' => app_name},
515
560
  query_params: {'api-version' => @client.api_version},
516
561
  body: request_content,
517
562
  headers: request_headers.merge(custom_headers || {}),
@@ -549,44 +594,53 @@ module Azure::ARM::MobileEngagement
549
594
  #
550
595
  # Creates a task to export events.
551
596
  #
597
+ # @param resource_group_name [String] The name of the resource group.
598
+ # @param app_collection [String] Application collection.
599
+ # @param app_name [String] Application resource name.
552
600
  # @param parameters [DateRangeExportTaskParameter]
553
601
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
554
602
  # will be added to the HTTP request.
555
603
  #
556
604
  # @return [ExportTaskResult] operation results.
557
605
  #
558
- def create_events_task(parameters, custom_headers = nil)
559
- response = create_events_task_async(parameters, custom_headers).value!
606
+ def create_events_task(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
607
+ response = create_events_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
560
608
  response.body unless response.nil?
561
609
  end
562
610
 
563
611
  #
564
612
  # Creates a task to export events.
565
613
  #
614
+ # @param resource_group_name [String] The name of the resource group.
615
+ # @param app_collection [String] Application collection.
616
+ # @param app_name [String] Application resource name.
566
617
  # @param parameters [DateRangeExportTaskParameter]
567
618
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
568
619
  # will be added to the HTTP request.
569
620
  #
570
621
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
571
622
  #
572
- def create_events_task_with_http_info(parameters, custom_headers = nil)
573
- create_events_task_async(parameters, custom_headers).value!
623
+ def create_events_task_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
624
+ create_events_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
574
625
  end
575
626
 
576
627
  #
577
628
  # Creates a task to export events.
578
629
  #
630
+ # @param resource_group_name [String] The name of the resource group.
631
+ # @param app_collection [String] Application collection.
632
+ # @param app_name [String] Application resource name.
579
633
  # @param parameters [DateRangeExportTaskParameter]
580
634
  # @param [Hash{String => String}] A hash of custom headers that will be added
581
635
  # to the HTTP request.
582
636
  #
583
637
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
584
638
  #
585
- def create_events_task_async(parameters, custom_headers = nil)
639
+ def create_events_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
586
640
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
587
- fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
588
- fail ArgumentError, '@client.app_collection is nil' if @client.app_collection.nil?
589
- fail ArgumentError, '@client.app_name is nil' if @client.app_name.nil?
641
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
642
+ fail ArgumentError, 'app_collection is nil' if app_collection.nil?
643
+ fail ArgumentError, 'app_name is nil' if app_name.nil?
590
644
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
591
645
  fail ArgumentError, 'parameters is nil' if parameters.nil?
592
646
 
@@ -610,7 +664,7 @@ module Azure::ARM::MobileEngagement
610
664
 
611
665
  options = {
612
666
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
613
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'appCollection' => @client.app_collection,'appName' => @client.app_name},
667
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'appCollection' => app_collection,'appName' => app_name},
614
668
  query_params: {'api-version' => @client.api_version},
615
669
  body: request_content,
616
670
  headers: request_headers.merge(custom_headers || {}),
@@ -648,44 +702,53 @@ module Azure::ARM::MobileEngagement
648
702
  #
649
703
  # Creates a task to export jobs.
650
704
  #
705
+ # @param resource_group_name [String] The name of the resource group.
706
+ # @param app_collection [String] Application collection.
707
+ # @param app_name [String] Application resource name.
651
708
  # @param parameters [DateRangeExportTaskParameter]
652
709
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
653
710
  # will be added to the HTTP request.
654
711
  #
655
712
  # @return [ExportTaskResult] operation results.
656
713
  #
657
- def create_jobs_task(parameters, custom_headers = nil)
658
- response = create_jobs_task_async(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).value!
659
716
  response.body unless response.nil?
660
717
  end
661
718
 
662
719
  #
663
720
  # Creates a task to export jobs.
664
721
  #
722
+ # @param resource_group_name [String] The name of the resource group.
723
+ # @param app_collection [String] Application collection.
724
+ # @param app_name [String] Application resource name.
665
725
  # @param parameters [DateRangeExportTaskParameter]
666
726
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
667
727
  # will be added to the HTTP request.
668
728
  #
669
729
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
670
730
  #
671
- def create_jobs_task_with_http_info(parameters, custom_headers = nil)
672
- create_jobs_task_async(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).value!
673
733
  end
674
734
 
675
735
  #
676
736
  # Creates a task to export jobs.
677
737
  #
738
+ # @param resource_group_name [String] The name of the resource group.
739
+ # @param app_collection [String] Application collection.
740
+ # @param app_name [String] Application resource name.
678
741
  # @param parameters [DateRangeExportTaskParameter]
679
742
  # @param [Hash{String => String}] A hash of custom headers that will be added
680
743
  # to the HTTP request.
681
744
  #
682
745
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
683
746
  #
684
- def create_jobs_task_async(parameters, custom_headers = nil)
747
+ def create_jobs_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
685
748
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
686
- fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
687
- fail ArgumentError, '@client.app_collection is nil' if @client.app_collection.nil?
688
- fail ArgumentError, '@client.app_name is nil' if @client.app_name.nil?
749
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
750
+ fail ArgumentError, 'app_collection is nil' if app_collection.nil?
751
+ fail ArgumentError, 'app_name is nil' if app_name.nil?
689
752
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
690
753
  fail ArgumentError, 'parameters is nil' if parameters.nil?
691
754
 
@@ -709,7 +772,7 @@ module Azure::ARM::MobileEngagement
709
772
 
710
773
  options = {
711
774
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
712
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'appCollection' => @client.app_collection,'appName' => @client.app_name},
775
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'appCollection' => app_collection,'appName' => app_name},
713
776
  query_params: {'api-version' => @client.api_version},
714
777
  body: request_content,
715
778
  headers: request_headers.merge(custom_headers || {}),
@@ -747,44 +810,53 @@ module Azure::ARM::MobileEngagement
747
810
  #
748
811
  # Creates a task to export sessions.
749
812
  #
813
+ # @param resource_group_name [String] The name of the resource group.
814
+ # @param app_collection [String] Application collection.
815
+ # @param app_name [String] Application resource name.
750
816
  # @param parameters [DateRangeExportTaskParameter]
751
817
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
752
818
  # will be added to the HTTP request.
753
819
  #
754
820
  # @return [ExportTaskResult] operation results.
755
821
  #
756
- def create_sessions_task(parameters, custom_headers = nil)
757
- response = create_sessions_task_async(parameters, custom_headers).value!
822
+ def create_sessions_task(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
823
+ response = create_sessions_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
758
824
  response.body unless response.nil?
759
825
  end
760
826
 
761
827
  #
762
828
  # Creates a task to export sessions.
763
829
  #
830
+ # @param resource_group_name [String] The name of the resource group.
831
+ # @param app_collection [String] Application collection.
832
+ # @param app_name [String] Application resource name.
764
833
  # @param parameters [DateRangeExportTaskParameter]
765
834
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
766
835
  # will be added to the HTTP request.
767
836
  #
768
837
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
769
838
  #
770
- def create_sessions_task_with_http_info(parameters, custom_headers = nil)
771
- create_sessions_task_async(parameters, custom_headers).value!
839
+ def create_sessions_task_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
840
+ create_sessions_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
772
841
  end
773
842
 
774
843
  #
775
844
  # Creates a task to export sessions.
776
845
  #
846
+ # @param resource_group_name [String] The name of the resource group.
847
+ # @param app_collection [String] Application collection.
848
+ # @param app_name [String] Application resource name.
777
849
  # @param parameters [DateRangeExportTaskParameter]
778
850
  # @param [Hash{String => String}] A hash of custom headers that will be added
779
851
  # to the HTTP request.
780
852
  #
781
853
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
782
854
  #
783
- def create_sessions_task_async(parameters, custom_headers = nil)
855
+ def create_sessions_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
784
856
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
785
- fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
786
- fail ArgumentError, '@client.app_collection is nil' if @client.app_collection.nil?
787
- fail ArgumentError, '@client.app_name is nil' if @client.app_name.nil?
857
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
858
+ fail ArgumentError, 'app_collection is nil' if app_collection.nil?
859
+ fail ArgumentError, 'app_name is nil' if app_name.nil?
788
860
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
789
861
  fail ArgumentError, 'parameters is nil' if parameters.nil?
790
862
 
@@ -808,7 +880,7 @@ module Azure::ARM::MobileEngagement
808
880
 
809
881
  options = {
810
882
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
811
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'appCollection' => @client.app_collection,'appName' => @client.app_name},
883
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'appCollection' => app_collection,'appName' => app_name},
812
884
  query_params: {'api-version' => @client.api_version},
813
885
  body: request_content,
814
886
  headers: request_headers.merge(custom_headers || {}),
@@ -846,44 +918,53 @@ module Azure::ARM::MobileEngagement
846
918
  #
847
919
  # Creates a task to export tags.
848
920
  #
921
+ # @param resource_group_name [String] The name of the resource group.
922
+ # @param app_collection [String] Application collection.
923
+ # @param app_name [String] Application resource name.
849
924
  # @param parameters [ExportTaskParameter]
850
925
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
851
926
  # will be added to the HTTP request.
852
927
  #
853
928
  # @return [ExportTaskResult] operation results.
854
929
  #
855
- def create_tags_task(parameters, custom_headers = nil)
856
- response = create_tags_task_async(parameters, custom_headers).value!
930
+ def create_tags_task(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
931
+ response = create_tags_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
857
932
  response.body unless response.nil?
858
933
  end
859
934
 
860
935
  #
861
936
  # Creates a task to export tags.
862
937
  #
938
+ # @param resource_group_name [String] The name of the resource group.
939
+ # @param app_collection [String] Application collection.
940
+ # @param app_name [String] Application resource name.
863
941
  # @param parameters [ExportTaskParameter]
864
942
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
865
943
  # will be added to the HTTP request.
866
944
  #
867
945
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
868
946
  #
869
- def create_tags_task_with_http_info(parameters, custom_headers = nil)
870
- create_tags_task_async(parameters, custom_headers).value!
947
+ def create_tags_task_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
948
+ create_tags_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
871
949
  end
872
950
 
873
951
  #
874
952
  # Creates a task to export tags.
875
953
  #
954
+ # @param resource_group_name [String] The name of the resource group.
955
+ # @param app_collection [String] Application collection.
956
+ # @param app_name [String] Application resource name.
876
957
  # @param parameters [ExportTaskParameter]
877
958
  # @param [Hash{String => String}] A hash of custom headers that will be added
878
959
  # to the HTTP request.
879
960
  #
880
961
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
881
962
  #
882
- def create_tags_task_async(parameters, custom_headers = nil)
963
+ def create_tags_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
883
964
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
884
- fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
885
- fail ArgumentError, '@client.app_collection is nil' if @client.app_collection.nil?
886
- fail ArgumentError, '@client.app_name is nil' if @client.app_name.nil?
965
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
966
+ fail ArgumentError, 'app_collection is nil' if app_collection.nil?
967
+ fail ArgumentError, 'app_name is nil' if app_name.nil?
887
968
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
888
969
  fail ArgumentError, 'parameters is nil' if parameters.nil?
889
970
 
@@ -907,7 +988,7 @@ module Azure::ARM::MobileEngagement
907
988
 
908
989
  options = {
909
990
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
910
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'appCollection' => @client.app_collection,'appName' => @client.app_name},
991
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'appCollection' => app_collection,'appName' => app_name},
911
992
  query_params: {'api-version' => @client.api_version},
912
993
  body: request_content,
913
994
  headers: request_headers.merge(custom_headers || {}),
@@ -945,44 +1026,53 @@ module Azure::ARM::MobileEngagement
945
1026
  #
946
1027
  # Creates a task to export tags.
947
1028
  #
1029
+ # @param resource_group_name [String] The name of the resource group.
1030
+ # @param app_collection [String] Application collection.
1031
+ # @param app_name [String] Application resource name.
948
1032
  # @param parameters [ExportTaskParameter]
949
1033
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
950
1034
  # will be added to the HTTP request.
951
1035
  #
952
1036
  # @return [ExportTaskResult] operation results.
953
1037
  #
954
- def create_tokens_task(parameters, custom_headers = nil)
955
- response = create_tokens_task_async(parameters, custom_headers).value!
1038
+ def create_tokens_task(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
1039
+ response = create_tokens_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
956
1040
  response.body unless response.nil?
957
1041
  end
958
1042
 
959
1043
  #
960
1044
  # Creates a task to export tags.
961
1045
  #
1046
+ # @param resource_group_name [String] The name of the resource group.
1047
+ # @param app_collection [String] Application collection.
1048
+ # @param app_name [String] Application resource name.
962
1049
  # @param parameters [ExportTaskParameter]
963
1050
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
964
1051
  # will be added to the HTTP request.
965
1052
  #
966
1053
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
967
1054
  #
968
- def create_tokens_task_with_http_info(parameters, custom_headers = nil)
969
- create_tokens_task_async(parameters, custom_headers).value!
1055
+ def create_tokens_task_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
1056
+ create_tokens_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
970
1057
  end
971
1058
 
972
1059
  #
973
1060
  # Creates a task to export tags.
974
1061
  #
1062
+ # @param resource_group_name [String] The name of the resource group.
1063
+ # @param app_collection [String] Application collection.
1064
+ # @param app_name [String] Application resource name.
975
1065
  # @param parameters [ExportTaskParameter]
976
1066
  # @param [Hash{String => String}] A hash of custom headers that will be added
977
1067
  # to the HTTP request.
978
1068
  #
979
1069
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
980
1070
  #
981
- def create_tokens_task_async(parameters, custom_headers = nil)
1071
+ def create_tokens_task_async(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
982
1072
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
983
- fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
984
- fail ArgumentError, '@client.app_collection is nil' if @client.app_collection.nil?
985
- fail ArgumentError, '@client.app_name is nil' if @client.app_name.nil?
1073
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1074
+ fail ArgumentError, 'app_collection is nil' if app_collection.nil?
1075
+ fail ArgumentError, 'app_name is nil' if app_name.nil?
986
1076
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
987
1077
  fail ArgumentError, 'parameters is nil' if parameters.nil?
988
1078
 
@@ -1006,7 +1096,7 @@ module Azure::ARM::MobileEngagement
1006
1096
 
1007
1097
  options = {
1008
1098
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1009
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'appCollection' => @client.app_collection,'appName' => @client.app_name},
1099
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'appCollection' => app_collection,'appName' => app_name},
1010
1100
  query_params: {'api-version' => @client.api_version},
1011
1101
  body: request_content,
1012
1102
  headers: request_headers.merge(custom_headers || {}),
@@ -1044,44 +1134,53 @@ module Azure::ARM::MobileEngagement
1044
1134
  #
1045
1135
  # Creates a task to export push campaign data for a date range.
1046
1136
  #
1137
+ # @param resource_group_name [String] The name of the resource group.
1138
+ # @param app_collection [String] Application collection.
1139
+ # @param app_name [String] Application resource name.
1047
1140
  # @param parameters [FeedbackByDateRangeParameter]
1048
1141
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1049
1142
  # will be added to the HTTP request.
1050
1143
  #
1051
1144
  # @return [ExportTaskResult] operation results.
1052
1145
  #
1053
- def create_feedback_task_by_date_range(parameters, custom_headers = nil)
1054
- response = create_feedback_task_by_date_range_async(parameters, custom_headers).value!
1146
+ def create_feedback_task_by_date_range(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
1147
+ response = create_feedback_task_by_date_range_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
1055
1148
  response.body unless response.nil?
1056
1149
  end
1057
1150
 
1058
1151
  #
1059
1152
  # Creates a task to export push campaign data for a date range.
1060
1153
  #
1154
+ # @param resource_group_name [String] The name of the resource group.
1155
+ # @param app_collection [String] Application collection.
1156
+ # @param app_name [String] Application resource name.
1061
1157
  # @param parameters [FeedbackByDateRangeParameter]
1062
1158
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1063
1159
  # will be added to the HTTP request.
1064
1160
  #
1065
1161
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1066
1162
  #
1067
- def create_feedback_task_by_date_range_with_http_info(parameters, custom_headers = nil)
1068
- create_feedback_task_by_date_range_async(parameters, custom_headers).value!
1163
+ def create_feedback_task_by_date_range_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
1164
+ create_feedback_task_by_date_range_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
1069
1165
  end
1070
1166
 
1071
1167
  #
1072
1168
  # Creates a task to export push campaign data for a date range.
1073
1169
  #
1170
+ # @param resource_group_name [String] The name of the resource group.
1171
+ # @param app_collection [String] Application collection.
1172
+ # @param app_name [String] Application resource name.
1074
1173
  # @param parameters [FeedbackByDateRangeParameter]
1075
1174
  # @param [Hash{String => String}] A hash of custom headers that will be added
1076
1175
  # to the HTTP request.
1077
1176
  #
1078
1177
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1079
1178
  #
1080
- def create_feedback_task_by_date_range_async(parameters, custom_headers = nil)
1179
+ def create_feedback_task_by_date_range_async(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
1081
1180
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1082
- fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
1083
- fail ArgumentError, '@client.app_collection is nil' if @client.app_collection.nil?
1084
- fail ArgumentError, '@client.app_name is nil' if @client.app_name.nil?
1181
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1182
+ fail ArgumentError, 'app_collection is nil' if app_collection.nil?
1183
+ fail ArgumentError, 'app_name is nil' if app_name.nil?
1085
1184
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1086
1185
  fail ArgumentError, 'parameters is nil' if parameters.nil?
1087
1186
 
@@ -1105,7 +1204,7 @@ module Azure::ARM::MobileEngagement
1105
1204
 
1106
1205
  options = {
1107
1206
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1108
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'appCollection' => @client.app_collection,'appName' => @client.app_name},
1207
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'appCollection' => app_collection,'appName' => app_name},
1109
1208
  query_params: {'api-version' => @client.api_version},
1110
1209
  body: request_content,
1111
1210
  headers: request_headers.merge(custom_headers || {}),
@@ -1143,44 +1242,53 @@ module Azure::ARM::MobileEngagement
1143
1242
  #
1144
1243
  # Creates a task to export push campaign data for a set of campaigns.
1145
1244
  #
1245
+ # @param resource_group_name [String] The name of the resource group.
1246
+ # @param app_collection [String] Application collection.
1247
+ # @param app_name [String] Application resource name.
1146
1248
  # @param parameters [FeedbackByCampaignParameter]
1147
1249
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1148
1250
  # will be added to the HTTP request.
1149
1251
  #
1150
1252
  # @return [ExportTaskResult] operation results.
1151
1253
  #
1152
- def create_feedback_task_by_campaign(parameters, custom_headers = nil)
1153
- response = create_feedback_task_by_campaign_async(parameters, custom_headers).value!
1254
+ def create_feedback_task_by_campaign(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
1255
+ response = create_feedback_task_by_campaign_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
1154
1256
  response.body unless response.nil?
1155
1257
  end
1156
1258
 
1157
1259
  #
1158
1260
  # Creates a task to export push campaign data for a set of campaigns.
1159
1261
  #
1262
+ # @param resource_group_name [String] The name of the resource group.
1263
+ # @param app_collection [String] Application collection.
1264
+ # @param app_name [String] Application resource name.
1160
1265
  # @param parameters [FeedbackByCampaignParameter]
1161
1266
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1162
1267
  # will be added to the HTTP request.
1163
1268
  #
1164
1269
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1165
1270
  #
1166
- def create_feedback_task_by_campaign_with_http_info(parameters, custom_headers = nil)
1167
- create_feedback_task_by_campaign_async(parameters, custom_headers).value!
1271
+ def create_feedback_task_by_campaign_with_http_info(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
1272
+ create_feedback_task_by_campaign_async(resource_group_name, app_collection, app_name, parameters, custom_headers).value!
1168
1273
  end
1169
1274
 
1170
1275
  #
1171
1276
  # Creates a task to export push campaign data for a set of campaigns.
1172
1277
  #
1278
+ # @param resource_group_name [String] The name of the resource group.
1279
+ # @param app_collection [String] Application collection.
1280
+ # @param app_name [String] Application resource name.
1173
1281
  # @param parameters [FeedbackByCampaignParameter]
1174
1282
  # @param [Hash{String => String}] A hash of custom headers that will be added
1175
1283
  # to the HTTP request.
1176
1284
  #
1177
1285
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1178
1286
  #
1179
- def create_feedback_task_by_campaign_async(parameters, custom_headers = nil)
1287
+ def create_feedback_task_by_campaign_async(resource_group_name, app_collection, app_name, parameters, custom_headers = nil)
1180
1288
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1181
- fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
1182
- fail ArgumentError, '@client.app_collection is nil' if @client.app_collection.nil?
1183
- fail ArgumentError, '@client.app_name is nil' if @client.app_name.nil?
1289
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1290
+ fail ArgumentError, 'app_collection is nil' if app_collection.nil?
1291
+ fail ArgumentError, 'app_name is nil' if app_name.nil?
1184
1292
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1185
1293
  fail ArgumentError, 'parameters is nil' if parameters.nil?
1186
1294
 
@@ -1204,7 +1312,7 @@ module Azure::ARM::MobileEngagement
1204
1312
 
1205
1313
  options = {
1206
1314
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1207
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'appCollection' => @client.app_collection,'appName' => @client.app_name},
1315
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'appCollection' => app_collection,'appName' => app_name},
1208
1316
  query_params: {'api-version' => @client.api_version},
1209
1317
  body: request_content,
1210
1318
  headers: request_headers.merge(custom_headers || {}),
@@ -1329,6 +1437,9 @@ module Azure::ARM::MobileEngagement
1329
1437
  #
1330
1438
  # Get the list of export tasks.
1331
1439
  #
1440
+ # @param resource_group_name [String] The name of the resource group.
1441
+ # @param app_collection [String] Application collection.
1442
+ # @param app_name [String] Application resource name.
1332
1443
  # @param skip [Integer] Control paging of export tasks, start results at the
1333
1444
  # given offset, defaults to 0 (1st page of data).
1334
1445
  # @param top [Integer] Control paging of export tasks, number of export tasks
@@ -1352,8 +1463,8 @@ module Azure::ARM::MobileEngagement
1352
1463
  # @return [ExportTaskListResult] which provide lazy access to pages of the
1353
1464
  # response.
1354
1465
  #
1355
- def list_as_lazy(skip = 0, top = 20, orderby = nil, custom_headers = nil)
1356
- response = list_async(skip, top, orderby, custom_headers).value!
1466
+ def list_as_lazy(resource_group_name, app_collection, app_name, skip = 0, top = 20, orderby = nil, custom_headers = nil)
1467
+ response = list_async(resource_group_name, app_collection, app_name, skip, top, orderby, custom_headers).value!
1357
1468
  unless response.nil?
1358
1469
  page = response.body
1359
1470
  page.next_method = Proc.new do |next_page_link|