azure_mgmt_logic 0.15.2 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-02-01-preview/generated/azure_mgmt_logic/logic_management_client.rb +4 -1
  3. data/lib/2015-02-01-preview/generated/azure_mgmt_logic/workflow_access_keys.rb +45 -42
  4. data/lib/2015-02-01-preview/generated/azure_mgmt_logic/workflow_run_actions.rb +21 -18
  5. data/lib/2015-02-01-preview/generated/azure_mgmt_logic/workflow_runs.rb +27 -23
  6. data/lib/2015-02-01-preview/generated/azure_mgmt_logic/workflow_trigger_histories.rb +21 -18
  7. data/lib/2015-02-01-preview/generated/azure_mgmt_logic/workflow_triggers.rb +27 -23
  8. data/lib/2015-02-01-preview/generated/azure_mgmt_logic/workflow_versions.rb +6 -5
  9. data/lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb +82 -78
  10. data/lib/2016-06-01/generated/azure_mgmt_logic/agreements.rb +33 -30
  11. data/lib/2016-06-01/generated/azure_mgmt_logic/certificates.rb +33 -30
  12. data/lib/2016-06-01/generated/azure_mgmt_logic/integration_accounts.rb +60 -57
  13. data/lib/2016-06-01/generated/azure_mgmt_logic/logic_management_client.rb +22 -16
  14. data/lib/2016-06-01/generated/azure_mgmt_logic/maps.rb +33 -30
  15. data/lib/2016-06-01/generated/azure_mgmt_logic/partners.rb +33 -30
  16. data/lib/2016-06-01/generated/azure_mgmt_logic/schemas.rb +33 -30
  17. data/lib/2016-06-01/generated/azure_mgmt_logic/sessions.rb +33 -30
  18. data/lib/2016-06-01/generated/azure_mgmt_logic/workflow_run_actions.rb +21 -18
  19. data/lib/2016-06-01/generated/azure_mgmt_logic/workflow_runs.rb +27 -23
  20. data/lib/2016-06-01/generated/azure_mgmt_logic/workflow_trigger_histories.rb +27 -23
  21. data/lib/2016-06-01/generated/azure_mgmt_logic/workflow_triggers.rb +33 -28
  22. data/lib/2016-06-01/generated/azure_mgmt_logic/workflow_versions.rb +27 -25
  23. data/lib/2016-06-01/generated/azure_mgmt_logic/workflows.rb +90 -86
  24. data/lib/profiles/latest/logic_latest_profile_client.rb +28 -9
  25. data/lib/profiles/latest/logic_module_definition.rb +0 -1
  26. data/lib/profiles/latest/modules/logic_profile_module.rb +445 -426
  27. data/lib/version.rb +1 -1
  28. metadata +3 -3
@@ -152,6 +152,9 @@ module Azure::Logic::Mgmt::V2016_06_01
152
152
  fail ArgumentError, 'path is nil' if path.nil?
153
153
 
154
154
  request_url = options[:base_url] || @base_url
155
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
156
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
157
+ end
155
158
 
156
159
  request_headers = @request_headers
157
160
  request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
@@ -169,8 +172,8 @@ module Azure::Logic::Mgmt::V2016_06_01
169
172
  #
170
173
  # @return [Array<Operation>] operation results.
171
174
  #
172
- def list_operations(custom_headers = nil)
173
- first_page = list_operations_as_lazy(custom_headers)
175
+ def list_operations(custom_headers:nil)
176
+ first_page = list_operations_as_lazy(custom_headers:custom_headers)
174
177
  first_page.get_all_items
175
178
  end
176
179
 
@@ -182,8 +185,8 @@ module Azure::Logic::Mgmt::V2016_06_01
182
185
  #
183
186
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
184
187
  #
185
- def list_operations_with_http_info(custom_headers = nil)
186
- list_operations_async(custom_headers).value!
188
+ def list_operations_with_http_info(custom_headers:nil)
189
+ list_operations_async(custom_headers:custom_headers).value!
187
190
  end
188
191
 
189
192
  #
@@ -194,11 +197,12 @@ module Azure::Logic::Mgmt::V2016_06_01
194
197
  #
195
198
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
196
199
  #
197
- def list_operations_async(custom_headers = nil)
200
+ def list_operations_async(custom_headers:nil)
198
201
  fail ArgumentError, 'api_version is nil' if api_version.nil?
199
202
 
200
203
 
201
204
  request_headers = {}
205
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
202
206
 
203
207
  # Set Headers
204
208
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -252,8 +256,8 @@ module Azure::Logic::Mgmt::V2016_06_01
252
256
  #
253
257
  # @return [OperationListResult] operation results.
254
258
  #
255
- def list_operations_next(next_page_link, custom_headers = nil)
256
- response = list_operations_next_async(next_page_link, custom_headers).value!
259
+ def list_operations_next(next_page_link, custom_headers:nil)
260
+ response = list_operations_next_async(next_page_link, custom_headers:custom_headers).value!
257
261
  response.body unless response.nil?
258
262
  end
259
263
 
@@ -267,8 +271,8 @@ module Azure::Logic::Mgmt::V2016_06_01
267
271
  #
268
272
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
269
273
  #
270
- def list_operations_next_with_http_info(next_page_link, custom_headers = nil)
271
- list_operations_next_async(next_page_link, custom_headers).value!
274
+ def list_operations_next_with_http_info(next_page_link, custom_headers:nil)
275
+ list_operations_next_async(next_page_link, custom_headers:custom_headers).value!
272
276
  end
273
277
 
274
278
  #
@@ -281,11 +285,12 @@ module Azure::Logic::Mgmt::V2016_06_01
281
285
  #
282
286
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
283
287
  #
284
- def list_operations_next_async(next_page_link, custom_headers = nil)
288
+ def list_operations_next_async(next_page_link, custom_headers:nil)
285
289
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
286
290
 
287
291
 
288
292
  request_headers = {}
293
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
289
294
 
290
295
  # Set Headers
291
296
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -337,8 +342,8 @@ module Azure::Logic::Mgmt::V2016_06_01
337
342
  #
338
343
  # @return [OperationListResult] operation results.
339
344
  #
340
- def list_operations_as_lazy(custom_headers = nil)
341
- first_page = list_operations_as_lazy_as_lazy(custom_headers)
345
+ def list_operations_as_lazy(custom_headers:nil)
346
+ first_page = list_operations_as_lazy_as_lazy(custom_headers:custom_headers)
342
347
  first_page.get_all_items
343
348
  end
344
349
 
@@ -350,8 +355,8 @@ module Azure::Logic::Mgmt::V2016_06_01
350
355
  #
351
356
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
352
357
  #
353
- def list_operations_as_lazy_with_http_info(custom_headers = nil)
354
- list_operations_as_lazy_async(custom_headers).value!
358
+ def list_operations_as_lazy_with_http_info(custom_headers:nil)
359
+ list_operations_as_lazy_async(custom_headers:custom_headers).value!
355
360
  end
356
361
 
357
362
  #
@@ -362,10 +367,11 @@ module Azure::Logic::Mgmt::V2016_06_01
362
367
  #
363
368
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
364
369
  #
365
- def list_operations_as_lazy_async(custom_headers = nil)
370
+ def list_operations_as_lazy_async(custom_headers:nil)
366
371
 
367
372
 
368
373
  request_headers = {}
374
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
369
375
  path_template = 'providers/Microsoft.Logic/operations'
370
376
 
371
377
  request_url = @base_url || self.base_url
@@ -411,7 +417,7 @@ module Azure::Logic::Mgmt::V2016_06_01
411
417
  #
412
418
  def add_telemetry
413
419
  sdk_information = 'azure_mgmt_logic'
414
- sdk_information = "#{sdk_information}/0.15.2"
420
+ sdk_information = "#{sdk_information}/0.16.0"
415
421
  add_user_agent_information(sdk_information)
416
422
  end
417
423
  end
@@ -33,8 +33,8 @@ module Azure::Logic::Mgmt::V2016_06_01
33
33
  #
34
34
  # @return [Array<IntegrationAccountMap>] operation results.
35
35
  #
36
- def list_by_integration_accounts(resource_group_name, integration_account_name, top = nil, filter = nil, custom_headers = nil)
37
- first_page = list_by_integration_accounts_as_lazy(resource_group_name, integration_account_name, top, filter, custom_headers)
36
+ def list_by_integration_accounts(resource_group_name, integration_account_name, top:nil, filter:nil, custom_headers:nil)
37
+ first_page = list_by_integration_accounts_as_lazy(resource_group_name, integration_account_name, top:top, filter:filter, custom_headers:custom_headers)
38
38
  first_page.get_all_items
39
39
  end
40
40
 
@@ -50,8 +50,8 @@ module Azure::Logic::Mgmt::V2016_06_01
50
50
  #
51
51
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
52
52
  #
53
- def list_by_integration_accounts_with_http_info(resource_group_name, integration_account_name, top = nil, filter = nil, custom_headers = nil)
54
- list_by_integration_accounts_async(resource_group_name, integration_account_name, top, filter, custom_headers).value!
53
+ def list_by_integration_accounts_with_http_info(resource_group_name, integration_account_name, top:nil, filter:nil, custom_headers:nil)
54
+ list_by_integration_accounts_async(resource_group_name, integration_account_name, top:top, filter:filter, custom_headers:custom_headers).value!
55
55
  end
56
56
 
57
57
  #
@@ -66,7 +66,7 @@ module Azure::Logic::Mgmt::V2016_06_01
66
66
  #
67
67
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
68
68
  #
69
- def list_by_integration_accounts_async(resource_group_name, integration_account_name, top = nil, filter = nil, custom_headers = nil)
69
+ def list_by_integration_accounts_async(resource_group_name, integration_account_name, top:nil, filter:nil, custom_headers:nil)
70
70
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
71
71
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
72
72
  fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil?
@@ -74,6 +74,7 @@ module Azure::Logic::Mgmt::V2016_06_01
74
74
 
75
75
 
76
76
  request_headers = {}
77
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
77
78
 
78
79
  # Set Headers
79
80
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -129,8 +130,8 @@ module Azure::Logic::Mgmt::V2016_06_01
129
130
  #
130
131
  # @return [IntegrationAccountMap] operation results.
131
132
  #
132
- def get(resource_group_name, integration_account_name, map_name, custom_headers = nil)
133
- response = get_async(resource_group_name, integration_account_name, map_name, custom_headers).value!
133
+ def get(resource_group_name, integration_account_name, map_name, custom_headers:nil)
134
+ response = get_async(resource_group_name, integration_account_name, map_name, custom_headers:custom_headers).value!
134
135
  response.body unless response.nil?
135
136
  end
136
137
 
@@ -145,8 +146,8 @@ module Azure::Logic::Mgmt::V2016_06_01
145
146
  #
146
147
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
147
148
  #
148
- def get_with_http_info(resource_group_name, integration_account_name, map_name, custom_headers = nil)
149
- get_async(resource_group_name, integration_account_name, map_name, custom_headers).value!
149
+ def get_with_http_info(resource_group_name, integration_account_name, map_name, custom_headers:nil)
150
+ get_async(resource_group_name, integration_account_name, map_name, custom_headers:custom_headers).value!
150
151
  end
151
152
 
152
153
  #
@@ -160,7 +161,7 @@ module Azure::Logic::Mgmt::V2016_06_01
160
161
  #
161
162
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
162
163
  #
163
- def get_async(resource_group_name, integration_account_name, map_name, custom_headers = nil)
164
+ def get_async(resource_group_name, integration_account_name, map_name, custom_headers:nil)
164
165
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
165
166
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
166
167
  fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil?
@@ -169,6 +170,7 @@ module Azure::Logic::Mgmt::V2016_06_01
169
170
 
170
171
 
171
172
  request_headers = {}
173
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
172
174
 
173
175
  # Set Headers
174
176
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -225,8 +227,8 @@ module Azure::Logic::Mgmt::V2016_06_01
225
227
  #
226
228
  # @return [IntegrationAccountMap] operation results.
227
229
  #
228
- def create_or_update(resource_group_name, integration_account_name, map_name, map, custom_headers = nil)
229
- response = create_or_update_async(resource_group_name, integration_account_name, map_name, map, custom_headers).value!
230
+ def create_or_update(resource_group_name, integration_account_name, map_name, map, custom_headers:nil)
231
+ response = create_or_update_async(resource_group_name, integration_account_name, map_name, map, custom_headers:custom_headers).value!
230
232
  response.body unless response.nil?
231
233
  end
232
234
 
@@ -242,8 +244,8 @@ module Azure::Logic::Mgmt::V2016_06_01
242
244
  #
243
245
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
244
246
  #
245
- def create_or_update_with_http_info(resource_group_name, integration_account_name, map_name, map, custom_headers = nil)
246
- create_or_update_async(resource_group_name, integration_account_name, map_name, map, custom_headers).value!
247
+ def create_or_update_with_http_info(resource_group_name, integration_account_name, map_name, map, custom_headers:nil)
248
+ create_or_update_async(resource_group_name, integration_account_name, map_name, map, custom_headers:custom_headers).value!
247
249
  end
248
250
 
249
251
  #
@@ -258,7 +260,7 @@ module Azure::Logic::Mgmt::V2016_06_01
258
260
  #
259
261
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
260
262
  #
261
- def create_or_update_async(resource_group_name, integration_account_name, map_name, map, custom_headers = nil)
263
+ def create_or_update_async(resource_group_name, integration_account_name, map_name, map, custom_headers:nil)
262
264
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
263
265
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
264
266
  fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil?
@@ -268,13 +270,12 @@ module Azure::Logic::Mgmt::V2016_06_01
268
270
 
269
271
 
270
272
  request_headers = {}
273
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
271
274
 
272
275
  # Set Headers
273
276
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
274
277
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
275
278
 
276
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
277
-
278
279
  # Serialize Request
279
280
  request_mapper = Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountMap.mapper()
280
281
  request_content = @client.serialize(request_mapper, map)
@@ -341,8 +342,8 @@ module Azure::Logic::Mgmt::V2016_06_01
341
342
  # will be added to the HTTP request.
342
343
  #
343
344
  #
344
- def delete(resource_group_name, integration_account_name, map_name, custom_headers = nil)
345
- response = delete_async(resource_group_name, integration_account_name, map_name, custom_headers).value!
345
+ def delete(resource_group_name, integration_account_name, map_name, custom_headers:nil)
346
+ response = delete_async(resource_group_name, integration_account_name, map_name, custom_headers:custom_headers).value!
346
347
  nil
347
348
  end
348
349
 
@@ -357,8 +358,8 @@ module Azure::Logic::Mgmt::V2016_06_01
357
358
  #
358
359
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
359
360
  #
360
- def delete_with_http_info(resource_group_name, integration_account_name, map_name, custom_headers = nil)
361
- delete_async(resource_group_name, integration_account_name, map_name, custom_headers).value!
361
+ def delete_with_http_info(resource_group_name, integration_account_name, map_name, custom_headers:nil)
362
+ delete_async(resource_group_name, integration_account_name, map_name, custom_headers:custom_headers).value!
362
363
  end
363
364
 
364
365
  #
@@ -372,7 +373,7 @@ module Azure::Logic::Mgmt::V2016_06_01
372
373
  #
373
374
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
374
375
  #
375
- def delete_async(resource_group_name, integration_account_name, map_name, custom_headers = nil)
376
+ def delete_async(resource_group_name, integration_account_name, map_name, custom_headers:nil)
376
377
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
377
378
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
378
379
  fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil?
@@ -381,6 +382,7 @@ module Azure::Logic::Mgmt::V2016_06_01
381
382
 
382
383
 
383
384
  request_headers = {}
385
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
384
386
 
385
387
  # Set Headers
386
388
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -425,8 +427,8 @@ module Azure::Logic::Mgmt::V2016_06_01
425
427
  #
426
428
  # @return [IntegrationAccountMapListResult] operation results.
427
429
  #
428
- def list_by_integration_accounts_next(next_page_link, custom_headers = nil)
429
- response = list_by_integration_accounts_next_async(next_page_link, custom_headers).value!
430
+ def list_by_integration_accounts_next(next_page_link, custom_headers:nil)
431
+ response = list_by_integration_accounts_next_async(next_page_link, custom_headers:custom_headers).value!
430
432
  response.body unless response.nil?
431
433
  end
432
434
 
@@ -440,8 +442,8 @@ module Azure::Logic::Mgmt::V2016_06_01
440
442
  #
441
443
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
442
444
  #
443
- def list_by_integration_accounts_next_with_http_info(next_page_link, custom_headers = nil)
444
- list_by_integration_accounts_next_async(next_page_link, custom_headers).value!
445
+ def list_by_integration_accounts_next_with_http_info(next_page_link, custom_headers:nil)
446
+ list_by_integration_accounts_next_async(next_page_link, custom_headers:custom_headers).value!
445
447
  end
446
448
 
447
449
  #
@@ -454,11 +456,12 @@ module Azure::Logic::Mgmt::V2016_06_01
454
456
  #
455
457
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
456
458
  #
457
- def list_by_integration_accounts_next_async(next_page_link, custom_headers = nil)
459
+ def list_by_integration_accounts_next_async(next_page_link, custom_headers:nil)
458
460
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
459
461
 
460
462
 
461
463
  request_headers = {}
464
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
462
465
 
463
466
  # Set Headers
464
467
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -515,12 +518,12 @@ module Azure::Logic::Mgmt::V2016_06_01
515
518
  # @return [IntegrationAccountMapListResult] which provide lazy access to pages
516
519
  # of the response.
517
520
  #
518
- def list_by_integration_accounts_as_lazy(resource_group_name, integration_account_name, top = nil, filter = nil, custom_headers = nil)
519
- response = list_by_integration_accounts_async(resource_group_name, integration_account_name, top, filter, custom_headers).value!
521
+ def list_by_integration_accounts_as_lazy(resource_group_name, integration_account_name, top:nil, filter:nil, custom_headers:nil)
522
+ response = list_by_integration_accounts_async(resource_group_name, integration_account_name, top:top, filter:filter, custom_headers:custom_headers).value!
520
523
  unless response.nil?
521
524
  page = response.body
522
525
  page.next_method = Proc.new do |next_page_link|
523
- list_by_integration_accounts_next_async(next_page_link, custom_headers)
526
+ list_by_integration_accounts_next_async(next_page_link, custom_headers:custom_headers)
524
527
  end
525
528
  page
526
529
  end
@@ -33,8 +33,8 @@ module Azure::Logic::Mgmt::V2016_06_01
33
33
  #
34
34
  # @return [Array<IntegrationAccountPartner>] operation results.
35
35
  #
36
- def list_by_integration_accounts(resource_group_name, integration_account_name, top = nil, filter = nil, custom_headers = nil)
37
- first_page = list_by_integration_accounts_as_lazy(resource_group_name, integration_account_name, top, filter, custom_headers)
36
+ def list_by_integration_accounts(resource_group_name, integration_account_name, top:nil, filter:nil, custom_headers:nil)
37
+ first_page = list_by_integration_accounts_as_lazy(resource_group_name, integration_account_name, top:top, filter:filter, custom_headers:custom_headers)
38
38
  first_page.get_all_items
39
39
  end
40
40
 
@@ -50,8 +50,8 @@ module Azure::Logic::Mgmt::V2016_06_01
50
50
  #
51
51
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
52
52
  #
53
- def list_by_integration_accounts_with_http_info(resource_group_name, integration_account_name, top = nil, filter = nil, custom_headers = nil)
54
- list_by_integration_accounts_async(resource_group_name, integration_account_name, top, filter, custom_headers).value!
53
+ def list_by_integration_accounts_with_http_info(resource_group_name, integration_account_name, top:nil, filter:nil, custom_headers:nil)
54
+ list_by_integration_accounts_async(resource_group_name, integration_account_name, top:top, filter:filter, custom_headers:custom_headers).value!
55
55
  end
56
56
 
57
57
  #
@@ -66,7 +66,7 @@ module Azure::Logic::Mgmt::V2016_06_01
66
66
  #
67
67
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
68
68
  #
69
- def list_by_integration_accounts_async(resource_group_name, integration_account_name, top = nil, filter = nil, custom_headers = nil)
69
+ def list_by_integration_accounts_async(resource_group_name, integration_account_name, top:nil, filter:nil, custom_headers:nil)
70
70
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
71
71
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
72
72
  fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil?
@@ -74,6 +74,7 @@ module Azure::Logic::Mgmt::V2016_06_01
74
74
 
75
75
 
76
76
  request_headers = {}
77
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
77
78
 
78
79
  # Set Headers
79
80
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -129,8 +130,8 @@ module Azure::Logic::Mgmt::V2016_06_01
129
130
  #
130
131
  # @return [IntegrationAccountPartner] operation results.
131
132
  #
132
- def get(resource_group_name, integration_account_name, partner_name, custom_headers = nil)
133
- response = get_async(resource_group_name, integration_account_name, partner_name, custom_headers).value!
133
+ def get(resource_group_name, integration_account_name, partner_name, custom_headers:nil)
134
+ response = get_async(resource_group_name, integration_account_name, partner_name, custom_headers:custom_headers).value!
134
135
  response.body unless response.nil?
135
136
  end
136
137
 
@@ -145,8 +146,8 @@ module Azure::Logic::Mgmt::V2016_06_01
145
146
  #
146
147
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
147
148
  #
148
- def get_with_http_info(resource_group_name, integration_account_name, partner_name, custom_headers = nil)
149
- get_async(resource_group_name, integration_account_name, partner_name, custom_headers).value!
149
+ def get_with_http_info(resource_group_name, integration_account_name, partner_name, custom_headers:nil)
150
+ get_async(resource_group_name, integration_account_name, partner_name, custom_headers:custom_headers).value!
150
151
  end
151
152
 
152
153
  #
@@ -160,7 +161,7 @@ module Azure::Logic::Mgmt::V2016_06_01
160
161
  #
161
162
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
162
163
  #
163
- def get_async(resource_group_name, integration_account_name, partner_name, custom_headers = nil)
164
+ def get_async(resource_group_name, integration_account_name, partner_name, custom_headers:nil)
164
165
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
165
166
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
166
167
  fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil?
@@ -169,6 +170,7 @@ module Azure::Logic::Mgmt::V2016_06_01
169
170
 
170
171
 
171
172
  request_headers = {}
173
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
172
174
 
173
175
  # Set Headers
174
176
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -225,8 +227,8 @@ module Azure::Logic::Mgmt::V2016_06_01
225
227
  #
226
228
  # @return [IntegrationAccountPartner] operation results.
227
229
  #
228
- def create_or_update(resource_group_name, integration_account_name, partner_name, partner, custom_headers = nil)
229
- response = create_or_update_async(resource_group_name, integration_account_name, partner_name, partner, custom_headers).value!
230
+ def create_or_update(resource_group_name, integration_account_name, partner_name, partner, custom_headers:nil)
231
+ response = create_or_update_async(resource_group_name, integration_account_name, partner_name, partner, custom_headers:custom_headers).value!
230
232
  response.body unless response.nil?
231
233
  end
232
234
 
@@ -242,8 +244,8 @@ module Azure::Logic::Mgmt::V2016_06_01
242
244
  #
243
245
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
244
246
  #
245
- def create_or_update_with_http_info(resource_group_name, integration_account_name, partner_name, partner, custom_headers = nil)
246
- create_or_update_async(resource_group_name, integration_account_name, partner_name, partner, custom_headers).value!
247
+ def create_or_update_with_http_info(resource_group_name, integration_account_name, partner_name, partner, custom_headers:nil)
248
+ create_or_update_async(resource_group_name, integration_account_name, partner_name, partner, custom_headers:custom_headers).value!
247
249
  end
248
250
 
249
251
  #
@@ -258,7 +260,7 @@ module Azure::Logic::Mgmt::V2016_06_01
258
260
  #
259
261
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
260
262
  #
261
- def create_or_update_async(resource_group_name, integration_account_name, partner_name, partner, custom_headers = nil)
263
+ def create_or_update_async(resource_group_name, integration_account_name, partner_name, partner, custom_headers:nil)
262
264
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
263
265
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
264
266
  fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil?
@@ -268,13 +270,12 @@ module Azure::Logic::Mgmt::V2016_06_01
268
270
 
269
271
 
270
272
  request_headers = {}
273
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
271
274
 
272
275
  # Set Headers
273
276
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
274
277
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
275
278
 
276
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
277
-
278
279
  # Serialize Request
279
280
  request_mapper = Azure::Logic::Mgmt::V2016_06_01::Models::IntegrationAccountPartner.mapper()
280
281
  request_content = @client.serialize(request_mapper, partner)
@@ -341,8 +342,8 @@ module Azure::Logic::Mgmt::V2016_06_01
341
342
  # will be added to the HTTP request.
342
343
  #
343
344
  #
344
- def delete(resource_group_name, integration_account_name, partner_name, custom_headers = nil)
345
- response = delete_async(resource_group_name, integration_account_name, partner_name, custom_headers).value!
345
+ def delete(resource_group_name, integration_account_name, partner_name, custom_headers:nil)
346
+ response = delete_async(resource_group_name, integration_account_name, partner_name, custom_headers:custom_headers).value!
346
347
  nil
347
348
  end
348
349
 
@@ -357,8 +358,8 @@ module Azure::Logic::Mgmt::V2016_06_01
357
358
  #
358
359
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
359
360
  #
360
- def delete_with_http_info(resource_group_name, integration_account_name, partner_name, custom_headers = nil)
361
- delete_async(resource_group_name, integration_account_name, partner_name, custom_headers).value!
361
+ def delete_with_http_info(resource_group_name, integration_account_name, partner_name, custom_headers:nil)
362
+ delete_async(resource_group_name, integration_account_name, partner_name, custom_headers:custom_headers).value!
362
363
  end
363
364
 
364
365
  #
@@ -372,7 +373,7 @@ module Azure::Logic::Mgmt::V2016_06_01
372
373
  #
373
374
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
374
375
  #
375
- def delete_async(resource_group_name, integration_account_name, partner_name, custom_headers = nil)
376
+ def delete_async(resource_group_name, integration_account_name, partner_name, custom_headers:nil)
376
377
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
377
378
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
378
379
  fail ArgumentError, 'integration_account_name is nil' if integration_account_name.nil?
@@ -381,6 +382,7 @@ module Azure::Logic::Mgmt::V2016_06_01
381
382
 
382
383
 
383
384
  request_headers = {}
385
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
384
386
 
385
387
  # Set Headers
386
388
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -425,8 +427,8 @@ module Azure::Logic::Mgmt::V2016_06_01
425
427
  #
426
428
  # @return [IntegrationAccountPartnerListResult] operation results.
427
429
  #
428
- def list_by_integration_accounts_next(next_page_link, custom_headers = nil)
429
- response = list_by_integration_accounts_next_async(next_page_link, custom_headers).value!
430
+ def list_by_integration_accounts_next(next_page_link, custom_headers:nil)
431
+ response = list_by_integration_accounts_next_async(next_page_link, custom_headers:custom_headers).value!
430
432
  response.body unless response.nil?
431
433
  end
432
434
 
@@ -440,8 +442,8 @@ module Azure::Logic::Mgmt::V2016_06_01
440
442
  #
441
443
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
442
444
  #
443
- def list_by_integration_accounts_next_with_http_info(next_page_link, custom_headers = nil)
444
- list_by_integration_accounts_next_async(next_page_link, custom_headers).value!
445
+ def list_by_integration_accounts_next_with_http_info(next_page_link, custom_headers:nil)
446
+ list_by_integration_accounts_next_async(next_page_link, custom_headers:custom_headers).value!
445
447
  end
446
448
 
447
449
  #
@@ -454,11 +456,12 @@ module Azure::Logic::Mgmt::V2016_06_01
454
456
  #
455
457
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
456
458
  #
457
- def list_by_integration_accounts_next_async(next_page_link, custom_headers = nil)
459
+ def list_by_integration_accounts_next_async(next_page_link, custom_headers:nil)
458
460
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
459
461
 
460
462
 
461
463
  request_headers = {}
464
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
462
465
 
463
466
  # Set Headers
464
467
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -515,12 +518,12 @@ module Azure::Logic::Mgmt::V2016_06_01
515
518
  # @return [IntegrationAccountPartnerListResult] which provide lazy access to
516
519
  # pages of the response.
517
520
  #
518
- def list_by_integration_accounts_as_lazy(resource_group_name, integration_account_name, top = nil, filter = nil, custom_headers = nil)
519
- response = list_by_integration_accounts_async(resource_group_name, integration_account_name, top, filter, custom_headers).value!
521
+ def list_by_integration_accounts_as_lazy(resource_group_name, integration_account_name, top:nil, filter:nil, custom_headers:nil)
522
+ response = list_by_integration_accounts_async(resource_group_name, integration_account_name, top:top, filter:filter, custom_headers:custom_headers).value!
520
523
  unless response.nil?
521
524
  page = response.body
522
525
  page.next_method = Proc.new do |next_page_link|
523
- list_by_integration_accounts_next_async(next_page_link, custom_headers)
526
+ list_by_integration_accounts_next_async(next_page_link, custom_headers:custom_headers)
524
527
  end
525
528
  page
526
529
  end