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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a28b49a4d865ed5b4a1279a4e89632816c64945
4
- data.tar.gz: 4e1baa192a7a8c16d649661c4436c3ab501a4468
3
+ metadata.gz: 223da6e5b28d66913616f5e11502b2256a6387ad
4
+ data.tar.gz: dabfd2bca302146f4575842f383b10185cad03bc
5
5
  SHA512:
6
- metadata.gz: 4b5674b5b1b4b02a329f0e3770349af7559186616518205d2de607cf93ca9899c7617f190c1ac3dcd125564a4999ced7e3cef3749e911ef99afe1fddb8ee20d6
7
- data.tar.gz: 19eb013087961cf2367db160660393bc4393619e284daf0311eec4e042f42b78c1679e19939ec0fa1df09b29cf63b4bec3d3f9fd6dfde9339bbd1812e439d7bd
6
+ metadata.gz: 1f8e43cdbda8da2cde2d7252bc815821bda3b543783d4aeacecb7a603db69600092917dcbdee708de12f82027e6f00fc78bd13e857459030baf82fd5ef469b8b
7
+ data.tar.gz: f4d3a3419b5193061ea190a70633bf504319b99f713b630cc44fa6695ede337ff3d0de605b76e6717f42d66776f671c46088830b8f4a7d6147ea5b5799f6446e
@@ -29,8 +29,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
29
29
  #
30
30
  # @return [Array<AppCollection>] operation results.
31
31
  #
32
- def list(custom_headers = nil)
33
- first_page = list_as_lazy(custom_headers)
32
+ def list(custom_headers:nil)
33
+ first_page = list_as_lazy(custom_headers:custom_headers)
34
34
  first_page.get_all_items
35
35
  end
36
36
 
@@ -42,8 +42,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
42
42
  #
43
43
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
44
44
  #
45
- def list_with_http_info(custom_headers = nil)
46
- list_async(custom_headers).value!
45
+ def list_with_http_info(custom_headers:nil)
46
+ list_async(custom_headers:custom_headers).value!
47
47
  end
48
48
 
49
49
  #
@@ -54,12 +54,13 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
54
54
  #
55
55
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
56
56
  #
57
- def list_async(custom_headers = nil)
57
+ def list_async(custom_headers:nil)
58
58
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
59
59
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
60
60
 
61
61
 
62
62
  request_headers = {}
63
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
63
64
 
64
65
  # Set Headers
65
66
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -113,8 +114,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
113
114
  #
114
115
  # @return [AppCollectionNameAvailability] operation results.
115
116
  #
116
- def check_name_availability(parameters, custom_headers = nil)
117
- response = check_name_availability_async(parameters, custom_headers).value!
117
+ def check_name_availability(parameters, custom_headers:nil)
118
+ response = check_name_availability_async(parameters, custom_headers:custom_headers).value!
118
119
  response.body unless response.nil?
119
120
  end
120
121
 
@@ -127,8 +128,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
127
128
  #
128
129
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
129
130
  #
130
- def check_name_availability_with_http_info(parameters, custom_headers = nil)
131
- check_name_availability_async(parameters, custom_headers).value!
131
+ def check_name_availability_with_http_info(parameters, custom_headers:nil)
132
+ check_name_availability_async(parameters, custom_headers:custom_headers).value!
132
133
  end
133
134
 
134
135
  #
@@ -140,20 +141,19 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
140
141
  #
141
142
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
142
143
  #
143
- def check_name_availability_async(parameters, custom_headers = nil)
144
+ def check_name_availability_async(parameters, custom_headers:nil)
144
145
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
145
146
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
146
147
  fail ArgumentError, 'parameters is nil' if parameters.nil?
147
148
 
148
149
 
149
150
  request_headers = {}
151
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
150
152
 
151
153
  # Set Headers
152
154
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
153
155
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
154
156
 
155
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
156
-
157
157
  # Serialize Request
158
158
  request_mapper = Azure::MobileEngagement::Mgmt::V2014_12_01::Models::AppCollectionNameAvailability.mapper()
159
159
  request_content = @client.serialize(request_mapper, parameters)
@@ -210,8 +210,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
210
210
  #
211
211
  # @return [AppCollectionListResult] operation results.
212
212
  #
213
- def list_next(next_page_link, custom_headers = nil)
214
- response = list_next_async(next_page_link, custom_headers).value!
213
+ def list_next(next_page_link, custom_headers:nil)
214
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
215
215
  response.body unless response.nil?
216
216
  end
217
217
 
@@ -225,8 +225,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
225
225
  #
226
226
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
227
227
  #
228
- def list_next_with_http_info(next_page_link, custom_headers = nil)
229
- list_next_async(next_page_link, custom_headers).value!
228
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
229
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
230
230
  end
231
231
 
232
232
  #
@@ -239,11 +239,12 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
239
239
  #
240
240
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
241
241
  #
242
- def list_next_async(next_page_link, custom_headers = nil)
242
+ def list_next_async(next_page_link, custom_headers:nil)
243
243
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
244
244
 
245
245
 
246
246
  request_headers = {}
247
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
247
248
 
248
249
  # Set Headers
249
250
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -296,12 +297,12 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
296
297
  # @return [AppCollectionListResult] which provide lazy access to pages of the
297
298
  # response.
298
299
  #
299
- def list_as_lazy(custom_headers = nil)
300
- response = list_async(custom_headers).value!
300
+ def list_as_lazy(custom_headers:nil)
301
+ response = list_async(custom_headers:custom_headers).value!
301
302
  unless response.nil?
302
303
  page = response.body
303
304
  page.next_method = Proc.new do |next_page_link|
304
- list_next_async(next_page_link, custom_headers)
305
+ list_next_async(next_page_link, custom_headers:custom_headers)
305
306
  end
306
307
  page
307
308
  end
@@ -31,8 +31,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
31
31
  #
32
32
  # @return [Array<App>] operation results.
33
33
  #
34
- def list(resource_group_name, app_collection, custom_headers = nil)
35
- first_page = list_as_lazy(resource_group_name, app_collection, custom_headers)
34
+ def list(resource_group_name, app_collection, custom_headers:nil)
35
+ first_page = list_as_lazy(resource_group_name, app_collection, custom_headers:custom_headers)
36
36
  first_page.get_all_items
37
37
  end
38
38
 
@@ -46,8 +46,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
46
46
  #
47
47
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
48
48
  #
49
- def list_with_http_info(resource_group_name, app_collection, custom_headers = nil)
50
- list_async(resource_group_name, app_collection, custom_headers).value!
49
+ def list_with_http_info(resource_group_name, app_collection, custom_headers:nil)
50
+ list_async(resource_group_name, app_collection, custom_headers:custom_headers).value!
51
51
  end
52
52
 
53
53
  #
@@ -60,7 +60,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
60
60
  #
61
61
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
62
62
  #
63
- def list_async(resource_group_name, app_collection, custom_headers = nil)
63
+ def list_async(resource_group_name, app_collection, custom_headers:nil)
64
64
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
65
65
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
66
66
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -68,6 +68,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
68
68
 
69
69
 
70
70
  request_headers = {}
71
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
71
72
 
72
73
  # Set Headers
73
74
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -122,8 +123,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
122
123
  #
123
124
  # @return [AppListResult] operation results.
124
125
  #
125
- def list_next(next_page_link, custom_headers = nil)
126
- response = list_next_async(next_page_link, custom_headers).value!
126
+ def list_next(next_page_link, custom_headers:nil)
127
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
127
128
  response.body unless response.nil?
128
129
  end
129
130
 
@@ -137,8 +138,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
137
138
  #
138
139
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
139
140
  #
140
- def list_next_with_http_info(next_page_link, custom_headers = nil)
141
- list_next_async(next_page_link, custom_headers).value!
141
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
142
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
142
143
  end
143
144
 
144
145
  #
@@ -151,11 +152,12 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
151
152
  #
152
153
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
153
154
  #
154
- def list_next_async(next_page_link, custom_headers = nil)
155
+ def list_next_async(next_page_link, custom_headers:nil)
155
156
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
156
157
 
157
158
 
158
159
  request_headers = {}
160
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
159
161
 
160
162
  # Set Headers
161
163
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -209,12 +211,12 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
209
211
  #
210
212
  # @return [AppListResult] which provide lazy access to pages of the response.
211
213
  #
212
- def list_as_lazy(resource_group_name, app_collection, custom_headers = nil)
213
- response = list_async(resource_group_name, app_collection, custom_headers).value!
214
+ def list_as_lazy(resource_group_name, app_collection, custom_headers:nil)
215
+ response = list_async(resource_group_name, app_collection, custom_headers:custom_headers).value!
214
216
  unless response.nil?
215
217
  page = response.body
216
218
  page.next_method = Proc.new do |next_page_link|
217
- list_next_async(next_page_link, custom_headers)
219
+ list_next_async(next_page_link, custom_headers:custom_headers)
218
220
  end
219
221
  page
220
222
  end
@@ -55,8 +55,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
55
55
  #
56
56
  # @return [Array<CampaignListResult>] operation results.
57
57
  #
58
- def list(resource_group_name, app_collection, app_name, kind, skip = nil, top = nil, filter = nil, orderby = nil, search = nil, custom_headers = nil)
59
- first_page = list_as_lazy(resource_group_name, app_collection, app_name, kind, skip, top, filter, orderby, search, custom_headers)
58
+ def list(resource_group_name, app_collection, app_name, kind, skip:nil, top:nil, filter:nil, orderby:nil, search:nil, custom_headers:nil)
59
+ first_page = list_as_lazy(resource_group_name, app_collection, app_name, kind, skip:skip, top:top, filter:filter, orderby:orderby, search:search, custom_headers:custom_headers)
60
60
  first_page.get_all_items
61
61
  end
62
62
 
@@ -94,8 +94,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
94
94
  #
95
95
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
96
96
  #
97
- def list_with_http_info(resource_group_name, app_collection, app_name, kind, skip = nil, top = nil, filter = nil, orderby = nil, search = nil, custom_headers = nil)
98
- list_async(resource_group_name, app_collection, app_name, kind, skip, top, filter, orderby, search, custom_headers).value!
97
+ def list_with_http_info(resource_group_name, app_collection, app_name, kind, skip:nil, top:nil, filter:nil, orderby:nil, search:nil, custom_headers:nil)
98
+ list_async(resource_group_name, app_collection, app_name, kind, skip:skip, top:top, filter:filter, orderby:orderby, search:search, custom_headers:custom_headers).value!
99
99
  end
100
100
 
101
101
  #
@@ -132,7 +132,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
132
132
  #
133
133
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
134
134
  #
135
- def list_async(resource_group_name, app_collection, app_name, kind, skip = nil, top = nil, filter = nil, orderby = nil, search = nil, custom_headers = nil)
135
+ def list_async(resource_group_name, app_collection, app_name, kind, skip:nil, top:nil, filter:nil, orderby:nil, search:nil, custom_headers:nil)
136
136
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
137
137
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
138
138
  fail ArgumentError, 'app_collection is nil' if app_collection.nil?
@@ -142,6 +142,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
142
142
 
143
143
 
144
144
  request_headers = {}
145
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
145
146
 
146
147
  # Set Headers
147
148
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -201,8 +202,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
201
202
  #
202
203
  # @return [CampaignStateResult] operation results.
203
204
  #
204
- def create(resource_group_name, app_collection, app_name, kind, parameters, custom_headers = nil)
205
- response = create_async(resource_group_name, app_collection, app_name, kind, parameters, custom_headers).value!
205
+ def create(resource_group_name, app_collection, app_name, kind, parameters, custom_headers:nil)
206
+ response = create_async(resource_group_name, app_collection, app_name, kind, parameters, custom_headers:custom_headers).value!
206
207
  response.body unless response.nil?
207
208
  end
208
209
 
@@ -221,8 +222,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
221
222
  #
222
223
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
223
224
  #
224
- def create_with_http_info(resource_group_name, app_collection, app_name, kind, parameters, custom_headers = nil)
225
- create_async(resource_group_name, app_collection, app_name, kind, parameters, custom_headers).value!
225
+ def create_with_http_info(resource_group_name, app_collection, app_name, kind, parameters, custom_headers:nil)
226
+ create_async(resource_group_name, app_collection, app_name, kind, parameters, custom_headers:custom_headers).value!
226
227
  end
227
228
 
228
229
  #
@@ -240,7 +241,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
240
241
  #
241
242
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
242
243
  #
243
- def create_async(resource_group_name, app_collection, app_name, kind, parameters, custom_headers = nil)
244
+ def create_async(resource_group_name, app_collection, app_name, kind, parameters, custom_headers:nil)
244
245
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
245
246
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
246
247
  fail ArgumentError, 'app_collection is nil' if app_collection.nil?
@@ -251,13 +252,12 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
251
252
 
252
253
 
253
254
  request_headers = {}
255
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
254
256
 
255
257
  # Set Headers
256
258
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
257
259
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
258
260
 
259
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
260
-
261
261
  # Serialize Request
262
262
  request_mapper = Azure::MobileEngagement::Mgmt::V2014_12_01::Models::Campaign.mapper()
263
263
  request_content = @client.serialize(request_mapper, parameters)
@@ -319,8 +319,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
319
319
  #
320
320
  # @return [CampaignResult] operation results.
321
321
  #
322
- def get(kind, id, resource_group_name, app_collection, app_name, custom_headers = nil)
323
- response = get_async(kind, id, resource_group_name, app_collection, app_name, custom_headers).value!
322
+ def get(kind, id, resource_group_name, app_collection, app_name, custom_headers:nil)
323
+ response = get_async(kind, id, resource_group_name, app_collection, app_name, custom_headers:custom_headers).value!
324
324
  response.body unless response.nil?
325
325
  end
326
326
 
@@ -339,8 +339,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
339
339
  #
340
340
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
341
341
  #
342
- def get_with_http_info(kind, id, resource_group_name, app_collection, app_name, custom_headers = nil)
343
- get_async(kind, id, resource_group_name, app_collection, app_name, custom_headers).value!
342
+ def get_with_http_info(kind, id, resource_group_name, app_collection, app_name, custom_headers:nil)
343
+ get_async(kind, id, resource_group_name, app_collection, app_name, custom_headers:custom_headers).value!
344
344
  end
345
345
 
346
346
  #
@@ -358,7 +358,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
358
358
  #
359
359
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
360
360
  #
361
- def get_async(kind, id, resource_group_name, app_collection, app_name, custom_headers = nil)
361
+ def get_async(kind, id, resource_group_name, app_collection, app_name, custom_headers:nil)
362
362
  fail ArgumentError, 'kind is nil' if kind.nil?
363
363
  fail ArgumentError, 'id is nil' if id.nil?
364
364
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -369,6 +369,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
369
369
 
370
370
 
371
371
  request_headers = {}
372
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
372
373
 
373
374
  # Set Headers
374
375
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -430,8 +431,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
430
431
  #
431
432
  # @return [CampaignStateResult] operation results.
432
433
  #
433
- def update(kind, id, parameters, resource_group_name, app_collection, app_name, custom_headers = nil)
434
- response = update_async(kind, id, parameters, resource_group_name, app_collection, app_name, custom_headers).value!
434
+ def update(kind, id, parameters, resource_group_name, app_collection, app_name, custom_headers:nil)
435
+ response = update_async(kind, id, parameters, resource_group_name, app_collection, app_name, custom_headers:custom_headers).value!
435
436
  response.body unless response.nil?
436
437
  end
437
438
 
@@ -452,8 +453,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
452
453
  #
453
454
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
454
455
  #
455
- def update_with_http_info(kind, id, parameters, resource_group_name, app_collection, app_name, custom_headers = nil)
456
- update_async(kind, id, parameters, resource_group_name, app_collection, app_name, custom_headers).value!
456
+ def update_with_http_info(kind, id, parameters, resource_group_name, app_collection, app_name, custom_headers:nil)
457
+ update_async(kind, id, parameters, resource_group_name, app_collection, app_name, custom_headers:custom_headers).value!
457
458
  end
458
459
 
459
460
  #
@@ -473,7 +474,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
473
474
  #
474
475
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
475
476
  #
476
- def update_async(kind, id, parameters, resource_group_name, app_collection, app_name, custom_headers = nil)
477
+ def update_async(kind, id, parameters, resource_group_name, app_collection, app_name, custom_headers:nil)
477
478
  fail ArgumentError, 'kind is nil' if kind.nil?
478
479
  fail ArgumentError, 'id is nil' if id.nil?
479
480
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -485,13 +486,12 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
485
486
 
486
487
 
487
488
  request_headers = {}
489
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
488
490
 
489
491
  # Set Headers
490
492
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
491
493
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
492
494
 
493
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
494
-
495
495
  # Serialize Request
496
496
  request_mapper = Azure::MobileEngagement::Mgmt::V2014_12_01::Models::Campaign.mapper()
497
497
  request_content = @client.serialize(request_mapper, parameters)
@@ -551,8 +551,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
551
551
  # will be added to the HTTP request.
552
552
  #
553
553
  #
554
- def delete(kind, id, resource_group_name, app_collection, app_name, custom_headers = nil)
555
- response = delete_async(kind, id, resource_group_name, app_collection, app_name, custom_headers).value!
554
+ def delete(kind, id, resource_group_name, app_collection, app_name, custom_headers:nil)
555
+ response = delete_async(kind, id, resource_group_name, app_collection, app_name, custom_headers:custom_headers).value!
556
556
  nil
557
557
  end
558
558
 
@@ -570,8 +570,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
570
570
  #
571
571
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
572
572
  #
573
- def delete_with_http_info(kind, id, resource_group_name, app_collection, app_name, custom_headers = nil)
574
- delete_async(kind, id, resource_group_name, app_collection, app_name, custom_headers).value!
573
+ def delete_with_http_info(kind, id, resource_group_name, app_collection, app_name, custom_headers:nil)
574
+ delete_async(kind, id, resource_group_name, app_collection, app_name, custom_headers:custom_headers).value!
575
575
  end
576
576
 
577
577
  #
@@ -588,7 +588,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
588
588
  #
589
589
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
590
590
  #
591
- def delete_async(kind, id, resource_group_name, app_collection, app_name, custom_headers = nil)
591
+ def delete_async(kind, id, resource_group_name, app_collection, app_name, custom_headers:nil)
592
592
  fail ArgumentError, 'kind is nil' if kind.nil?
593
593
  fail ArgumentError, 'id is nil' if id.nil?
594
594
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -599,6 +599,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
599
599
 
600
600
 
601
601
  request_headers = {}
602
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
602
603
 
603
604
  # Set Headers
604
605
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -648,8 +649,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
648
649
  #
649
650
  # @return [CampaignResult] operation results.
650
651
  #
651
- def get_by_name(resource_group_name, app_collection, app_name, kind, name, custom_headers = nil)
652
- response = get_by_name_async(resource_group_name, app_collection, app_name, kind, name, custom_headers).value!
652
+ def get_by_name(resource_group_name, app_collection, app_name, kind, name, custom_headers:nil)
653
+ response = get_by_name_async(resource_group_name, app_collection, app_name, kind, name, custom_headers:custom_headers).value!
653
654
  response.body unless response.nil?
654
655
  end
655
656
 
@@ -668,8 +669,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
668
669
  #
669
670
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
670
671
  #
671
- def get_by_name_with_http_info(resource_group_name, app_collection, app_name, kind, name, custom_headers = nil)
672
- get_by_name_async(resource_group_name, app_collection, app_name, kind, name, custom_headers).value!
672
+ def get_by_name_with_http_info(resource_group_name, app_collection, app_name, kind, name, custom_headers:nil)
673
+ get_by_name_async(resource_group_name, app_collection, app_name, kind, name, custom_headers:custom_headers).value!
673
674
  end
674
675
 
675
676
  #
@@ -687,7 +688,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
687
688
  #
688
689
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
689
690
  #
690
- def get_by_name_async(resource_group_name, app_collection, app_name, kind, name, custom_headers = nil)
691
+ def get_by_name_async(resource_group_name, app_collection, app_name, kind, name, custom_headers:nil)
691
692
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
692
693
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
693
694
  fail ArgumentError, 'app_collection is nil' if app_collection.nil?
@@ -698,6 +699,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
698
699
 
699
700
 
700
701
  request_headers = {}
702
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
701
703
 
702
704
  # Set Headers
703
705
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -758,8 +760,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
758
760
  #
759
761
  # @return [CampaignStateResult] operation results.
760
762
  #
761
- def test_saved(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers = nil)
762
- response = test_saved_async(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers).value!
763
+ def test_saved(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers:nil)
764
+ response = test_saved_async(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers:custom_headers).value!
763
765
  response.body unless response.nil?
764
766
  end
765
767
 
@@ -779,8 +781,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
779
781
  #
780
782
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
781
783
  #
782
- def test_saved_with_http_info(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers = nil)
783
- test_saved_async(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers).value!
784
+ def test_saved_with_http_info(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers:nil)
785
+ test_saved_async(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers:custom_headers).value!
784
786
  end
785
787
 
786
788
  #
@@ -799,7 +801,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
799
801
  #
800
802
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
801
803
  #
802
- def test_saved_async(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers = nil)
804
+ def test_saved_async(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers:nil)
803
805
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
804
806
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
805
807
  fail ArgumentError, 'app_collection is nil' if app_collection.nil?
@@ -811,13 +813,12 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
811
813
 
812
814
 
813
815
  request_headers = {}
816
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
814
817
 
815
818
  # Set Headers
816
819
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
817
820
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
818
821
 
819
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
820
-
821
822
  # Serialize Request
822
823
  request_mapper = Azure::MobileEngagement::Mgmt::V2014_12_01::Models::CampaignTestSavedParameters.mapper()
823
824
  request_content = @client.serialize(request_mapper, parameters)
@@ -879,8 +880,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
879
880
  #
880
881
  # @return [CampaignState] operation results.
881
882
  #
882
- def test_new(resource_group_name, app_collection, app_name, kind, parameters, custom_headers = nil)
883
- response = test_new_async(resource_group_name, app_collection, app_name, kind, parameters, custom_headers).value!
883
+ def test_new(resource_group_name, app_collection, app_name, kind, parameters, custom_headers:nil)
884
+ response = test_new_async(resource_group_name, app_collection, app_name, kind, parameters, custom_headers:custom_headers).value!
884
885
  response.body unless response.nil?
885
886
  end
886
887
 
@@ -899,8 +900,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
899
900
  #
900
901
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
901
902
  #
902
- def test_new_with_http_info(resource_group_name, app_collection, app_name, kind, parameters, custom_headers = nil)
903
- test_new_async(resource_group_name, app_collection, app_name, kind, parameters, custom_headers).value!
903
+ def test_new_with_http_info(resource_group_name, app_collection, app_name, kind, parameters, custom_headers:nil)
904
+ test_new_async(resource_group_name, app_collection, app_name, kind, parameters, custom_headers:custom_headers).value!
904
905
  end
905
906
 
906
907
  #
@@ -918,7 +919,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
918
919
  #
919
920
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
920
921
  #
921
- def test_new_async(resource_group_name, app_collection, app_name, kind, parameters, custom_headers = nil)
922
+ def test_new_async(resource_group_name, app_collection, app_name, kind, parameters, custom_headers:nil)
922
923
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
923
924
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
924
925
  fail ArgumentError, 'app_collection is nil' if app_collection.nil?
@@ -929,13 +930,12 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
929
930
 
930
931
 
931
932
  request_headers = {}
933
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
932
934
 
933
935
  # Set Headers
934
936
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
935
937
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
936
938
 
937
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
938
-
939
939
  # Serialize Request
940
940
  request_mapper = Azure::MobileEngagement::Mgmt::V2014_12_01::Models::CampaignTestNewParameters.mapper()
941
941
  request_content = @client.serialize(request_mapper, parameters)
@@ -996,8 +996,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
996
996
  #
997
997
  # @return [CampaignStateResult] operation results.
998
998
  #
999
- def activate(resource_group_name, app_collection, app_name, kind, id, custom_headers = nil)
1000
- response = activate_async(resource_group_name, app_collection, app_name, kind, id, custom_headers).value!
999
+ def activate(resource_group_name, app_collection, app_name, kind, id, custom_headers:nil)
1000
+ response = activate_async(resource_group_name, app_collection, app_name, kind, id, custom_headers:custom_headers).value!
1001
1001
  response.body unless response.nil?
1002
1002
  end
1003
1003
 
@@ -1015,8 +1015,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
1015
1015
  #
1016
1016
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1017
1017
  #
1018
- def activate_with_http_info(resource_group_name, app_collection, app_name, kind, id, custom_headers = nil)
1019
- activate_async(resource_group_name, app_collection, app_name, kind, id, custom_headers).value!
1018
+ def activate_with_http_info(resource_group_name, app_collection, app_name, kind, id, custom_headers:nil)
1019
+ activate_async(resource_group_name, app_collection, app_name, kind, id, custom_headers:custom_headers).value!
1020
1020
  end
1021
1021
 
1022
1022
  #
@@ -1033,7 +1033,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
1033
1033
  #
1034
1034
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1035
1035
  #
1036
- def activate_async(resource_group_name, app_collection, app_name, kind, id, custom_headers = nil)
1036
+ def activate_async(resource_group_name, app_collection, app_name, kind, id, custom_headers:nil)
1037
1037
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1038
1038
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1039
1039
  fail ArgumentError, 'app_collection is nil' if app_collection.nil?
@@ -1044,6 +1044,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
1044
1044
 
1045
1045
 
1046
1046
  request_headers = {}
1047
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1047
1048
 
1048
1049
  # Set Headers
1049
1050
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1102,8 +1103,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
1102
1103
  #
1103
1104
  # @return [CampaignStateResult] operation results.
1104
1105
  #
1105
- def suspend(resource_group_name, app_collection, app_name, kind, id, custom_headers = nil)
1106
- response = suspend_async(resource_group_name, app_collection, app_name, kind, id, custom_headers).value!
1106
+ def suspend(resource_group_name, app_collection, app_name, kind, id, custom_headers:nil)
1107
+ response = suspend_async(resource_group_name, app_collection, app_name, kind, id, custom_headers:custom_headers).value!
1107
1108
  response.body unless response.nil?
1108
1109
  end
1109
1110
 
@@ -1121,8 +1122,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
1121
1122
  #
1122
1123
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1123
1124
  #
1124
- def suspend_with_http_info(resource_group_name, app_collection, app_name, kind, id, custom_headers = nil)
1125
- suspend_async(resource_group_name, app_collection, app_name, kind, id, custom_headers).value!
1125
+ def suspend_with_http_info(resource_group_name, app_collection, app_name, kind, id, custom_headers:nil)
1126
+ suspend_async(resource_group_name, app_collection, app_name, kind, id, custom_headers:custom_headers).value!
1126
1127
  end
1127
1128
 
1128
1129
  #
@@ -1139,7 +1140,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
1139
1140
  #
1140
1141
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1141
1142
  #
1142
- def suspend_async(resource_group_name, app_collection, app_name, kind, id, custom_headers = nil)
1143
+ def suspend_async(resource_group_name, app_collection, app_name, kind, id, custom_headers:nil)
1143
1144
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1144
1145
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1145
1146
  fail ArgumentError, 'app_collection is nil' if app_collection.nil?
@@ -1150,6 +1151,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
1150
1151
 
1151
1152
 
1152
1153
  request_headers = {}
1154
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1153
1155
 
1154
1156
  # Set Headers
1155
1157
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1211,8 +1213,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
1211
1213
  #
1212
1214
  # @return [CampaignPushResult] operation results.
1213
1215
  #
1214
- def push(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers = nil)
1215
- response = push_async(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers).value!
1216
+ def push(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers:nil)
1217
+ response = push_async(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers:custom_headers).value!
1216
1218
  response.body unless response.nil?
1217
1219
  end
1218
1220
 
@@ -1233,8 +1235,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
1233
1235
  #
1234
1236
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1235
1237
  #
1236
- def push_with_http_info(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers = nil)
1237
- push_async(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers).value!
1238
+ def push_with_http_info(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers:nil)
1239
+ push_async(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers:custom_headers).value!
1238
1240
  end
1239
1241
 
1240
1242
  #
@@ -1254,7 +1256,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
1254
1256
  #
1255
1257
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1256
1258
  #
1257
- def push_async(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers = nil)
1259
+ def push_async(resource_group_name, app_collection, app_name, kind, id, parameters, custom_headers:nil)
1258
1260
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1259
1261
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1260
1262
  fail ArgumentError, 'app_collection is nil' if app_collection.nil?
@@ -1266,13 +1268,12 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
1266
1268
 
1267
1269
 
1268
1270
  request_headers = {}
1271
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1269
1272
 
1270
1273
  # Set Headers
1271
1274
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1272
1275
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1273
1276
 
1274
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1275
-
1276
1277
  # Serialize Request
1277
1278
  request_mapper = Azure::MobileEngagement::Mgmt::V2014_12_01::Models::CampaignPushParameters.mapper()
1278
1279
  request_content = @client.serialize(request_mapper, parameters)
@@ -1333,8 +1334,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
1333
1334
  #
1334
1335
  # @return [CampaignStatisticsResult] operation results.
1335
1336
  #
1336
- def get_statistics(kind, id, resource_group_name, app_collection, app_name, custom_headers = nil)
1337
- response = get_statistics_async(kind, id, resource_group_name, app_collection, app_name, custom_headers).value!
1337
+ def get_statistics(kind, id, resource_group_name, app_collection, app_name, custom_headers:nil)
1338
+ response = get_statistics_async(kind, id, resource_group_name, app_collection, app_name, custom_headers:custom_headers).value!
1338
1339
  response.body unless response.nil?
1339
1340
  end
1340
1341
 
@@ -1352,8 +1353,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
1352
1353
  #
1353
1354
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1354
1355
  #
1355
- def get_statistics_with_http_info(kind, id, resource_group_name, app_collection, app_name, custom_headers = nil)
1356
- get_statistics_async(kind, id, resource_group_name, app_collection, app_name, custom_headers).value!
1356
+ def get_statistics_with_http_info(kind, id, resource_group_name, app_collection, app_name, custom_headers:nil)
1357
+ get_statistics_async(kind, id, resource_group_name, app_collection, app_name, custom_headers:custom_headers).value!
1357
1358
  end
1358
1359
 
1359
1360
  #
@@ -1370,7 +1371,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
1370
1371
  #
1371
1372
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1372
1373
  #
1373
- def get_statistics_async(kind, id, resource_group_name, app_collection, app_name, custom_headers = nil)
1374
+ def get_statistics_async(kind, id, resource_group_name, app_collection, app_name, custom_headers:nil)
1374
1375
  fail ArgumentError, 'kind is nil' if kind.nil?
1375
1376
  fail ArgumentError, 'id is nil' if id.nil?
1376
1377
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -1381,6 +1382,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
1381
1382
 
1382
1383
 
1383
1384
  request_headers = {}
1385
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1384
1386
 
1385
1387
  # Set Headers
1386
1388
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1439,8 +1441,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
1439
1441
  #
1440
1442
  # @return [CampaignStateResult] operation results.
1441
1443
  #
1442
- def finish(resource_group_name, app_collection, app_name, kind, id, custom_headers = nil)
1443
- response = finish_async(resource_group_name, app_collection, app_name, kind, id, custom_headers).value!
1444
+ def finish(resource_group_name, app_collection, app_name, kind, id, custom_headers:nil)
1445
+ response = finish_async(resource_group_name, app_collection, app_name, kind, id, custom_headers:custom_headers).value!
1444
1446
  response.body unless response.nil?
1445
1447
  end
1446
1448
 
@@ -1458,8 +1460,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
1458
1460
  #
1459
1461
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1460
1462
  #
1461
- def finish_with_http_info(resource_group_name, app_collection, app_name, kind, id, custom_headers = nil)
1462
- finish_async(resource_group_name, app_collection, app_name, kind, id, custom_headers).value!
1463
+ def finish_with_http_info(resource_group_name, app_collection, app_name, kind, id, custom_headers:nil)
1464
+ finish_async(resource_group_name, app_collection, app_name, kind, id, custom_headers:custom_headers).value!
1463
1465
  end
1464
1466
 
1465
1467
  #
@@ -1476,7 +1478,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
1476
1478
  #
1477
1479
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1478
1480
  #
1479
- def finish_async(resource_group_name, app_collection, app_name, kind, id, custom_headers = nil)
1481
+ def finish_async(resource_group_name, app_collection, app_name, kind, id, custom_headers:nil)
1480
1482
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1481
1483
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1482
1484
  fail ArgumentError, 'app_collection is nil' if app_collection.nil?
@@ -1487,6 +1489,7 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
1487
1489
 
1488
1490
 
1489
1491
  request_headers = {}
1492
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1490
1493
 
1491
1494
  # Set Headers
1492
1495
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1541,8 +1544,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
1541
1544
  #
1542
1545
  # @return [CampaignsListResult] operation results.
1543
1546
  #
1544
- def list_next(next_page_link, custom_headers = nil)
1545
- response = list_next_async(next_page_link, custom_headers).value!
1547
+ def list_next(next_page_link, custom_headers:nil)
1548
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
1546
1549
  response.body unless response.nil?
1547
1550
  end
1548
1551
 
@@ -1556,8 +1559,8 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
1556
1559
  #
1557
1560
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1558
1561
  #
1559
- def list_next_with_http_info(next_page_link, custom_headers = nil)
1560
- list_next_async(next_page_link, custom_headers).value!
1562
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
1563
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
1561
1564
  end
1562
1565
 
1563
1566
  #
@@ -1570,11 +1573,12 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
1570
1573
  #
1571
1574
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1572
1575
  #
1573
- def list_next_async(next_page_link, custom_headers = nil)
1576
+ def list_next_async(next_page_link, custom_headers:nil)
1574
1577
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1575
1578
 
1576
1579
 
1577
1580
  request_headers = {}
1581
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1578
1582
 
1579
1583
  # Set Headers
1580
1584
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1653,12 +1657,12 @@ module Azure::MobileEngagement::Mgmt::V2014_12_01
1653
1657
  # @return [CampaignsListResult] which provide lazy access to pages of the
1654
1658
  # response.
1655
1659
  #
1656
- def list_as_lazy(resource_group_name, app_collection, app_name, kind, skip = nil, top = nil, filter = nil, orderby = nil, search = nil, custom_headers = nil)
1657
- response = list_async(resource_group_name, app_collection, app_name, kind, skip, top, filter, orderby, search, custom_headers).value!
1660
+ def list_as_lazy(resource_group_name, app_collection, app_name, kind, skip:nil, top:nil, filter:nil, orderby:nil, search:nil, custom_headers:nil)
1661
+ response = list_async(resource_group_name, app_collection, app_name, kind, skip:skip, top:top, filter:filter, orderby:orderby, search:search, custom_headers:custom_headers).value!
1658
1662
  unless response.nil?
1659
1663
  page = response.body
1660
1664
  page.next_method = Proc.new do |next_page_link|
1661
- list_next_async(next_page_link, custom_headers)
1665
+ list_next_async(next_page_link, custom_headers:custom_headers)
1662
1666
  end
1663
1667
  page
1664
1668
  end