azure_mgmt_managed_applications 0.15.2 → 0.17.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +5 -5
  2. data/lib/2016-09-01-preview/generated/azure_mgmt_managed_applications/appliance_definitions.rb +67 -63
  3. data/lib/2016-09-01-preview/generated/azure_mgmt_managed_applications/appliances.rb +94 -90
  4. data/lib/2016-09-01-preview/generated/azure_mgmt_managed_applications/managed_application_client.rb +10 -6
  5. data/lib/2016-09-01-preview/generated/azure_mgmt_managed_applications/models/appliance_definition_list_result.rb +1 -1
  6. data/lib/2016-09-01-preview/generated/azure_mgmt_managed_applications/models/appliance_list_result.rb +1 -1
  7. data/lib/2016-09-01-preview/generated/azure_mgmt_managed_applications/models/resource.rb +9 -0
  8. data/lib/2017-09-01/generated/azure_mgmt_managed_applications.rb +47 -0
  9. data/lib/2017-09-01/generated/azure_mgmt_managed_applications/application_client.rb +135 -0
  10. data/lib/2017-09-01/generated/azure_mgmt_managed_applications/application_definitions.rb +1036 -0
  11. data/lib/2017-09-01/generated/azure_mgmt_managed_applications/applications.rb +1443 -0
  12. data/lib/2017-09-01/generated/azure_mgmt_managed_applications/models/application.rb +213 -0
  13. data/lib/2017-09-01/generated/azure_mgmt_managed_applications/models/application_artifact.rb +70 -0
  14. data/lib/2017-09-01/generated/azure_mgmt_managed_applications/models/application_artifact_type.rb +16 -0
  15. data/lib/2017-09-01/generated/azure_mgmt_managed_applications/models/application_definition.rb +240 -0
  16. data/lib/2017-09-01/generated/azure_mgmt_managed_applications/models/application_definition_list_result.rb +99 -0
  17. data/lib/2017-09-01/generated/azure_mgmt_managed_applications/models/application_list_result.rb +98 -0
  18. data/lib/2017-09-01/generated/azure_mgmt_managed_applications/models/application_lock_level.rb +17 -0
  19. data/lib/2017-09-01/generated/azure_mgmt_managed_applications/models/application_patchable.rb +213 -0
  20. data/lib/2017-09-01/generated/azure_mgmt_managed_applications/models/application_provider_authorization.rb +62 -0
  21. data/lib/2017-09-01/generated/azure_mgmt_managed_applications/models/error_response.rb +69 -0
  22. data/lib/2017-09-01/generated/azure_mgmt_managed_applications/models/generic_resource.rb +121 -0
  23. data/lib/2017-09-01/generated/azure_mgmt_managed_applications/models/identity.rb +72 -0
  24. data/lib/2017-09-01/generated/azure_mgmt_managed_applications/models/plan.rb +90 -0
  25. data/lib/2017-09-01/generated/azure_mgmt_managed_applications/models/plan_patchable.rb +90 -0
  26. data/lib/2017-09-01/generated/azure_mgmt_managed_applications/models/provisioning_state.rb +25 -0
  27. data/lib/2017-09-01/generated/azure_mgmt_managed_applications/models/resource.rb +110 -0
  28. data/lib/2017-09-01/generated/azure_mgmt_managed_applications/models/resource_identity_type.rb +15 -0
  29. data/lib/2017-09-01/generated/azure_mgmt_managed_applications/models/sku.rb +101 -0
  30. data/lib/2017-09-01/generated/azure_mgmt_managed_applications/module_definition.rb +9 -0
  31. data/lib/2018-06-01/generated/azure_mgmt_managed_applications.rb +47 -0
  32. data/lib/2018-06-01/generated/azure_mgmt_managed_applications/application_client.rb +135 -0
  33. data/lib/2018-06-01/generated/azure_mgmt_managed_applications/application_definitions.rb +1036 -0
  34. data/lib/2018-06-01/generated/azure_mgmt_managed_applications/applications.rb +1443 -0
  35. data/lib/2018-06-01/generated/azure_mgmt_managed_applications/models/application.rb +202 -0
  36. data/lib/2018-06-01/generated/azure_mgmt_managed_applications/models/application_artifact.rb +70 -0
  37. data/lib/2018-06-01/generated/azure_mgmt_managed_applications/models/application_artifact_type.rb +16 -0
  38. data/lib/2018-06-01/generated/azure_mgmt_managed_applications/models/application_definition.rb +240 -0
  39. data/lib/2018-06-01/generated/azure_mgmt_managed_applications/models/application_definition_list_result.rb +99 -0
  40. data/lib/2018-06-01/generated/azure_mgmt_managed_applications/models/application_list_result.rb +98 -0
  41. data/lib/2018-06-01/generated/azure_mgmt_managed_applications/models/application_lock_level.rb +17 -0
  42. data/lib/2018-06-01/generated/azure_mgmt_managed_applications/models/application_patchable.rb +202 -0
  43. data/lib/2018-06-01/generated/azure_mgmt_managed_applications/models/application_provider_authorization.rb +62 -0
  44. data/lib/2018-06-01/generated/azure_mgmt_managed_applications/models/error_response.rb +69 -0
  45. data/lib/2018-06-01/generated/azure_mgmt_managed_applications/models/generic_resource.rb +121 -0
  46. data/lib/2018-06-01/generated/azure_mgmt_managed_applications/models/identity.rb +72 -0
  47. data/lib/2018-06-01/generated/azure_mgmt_managed_applications/models/plan.rb +90 -0
  48. data/lib/2018-06-01/generated/azure_mgmt_managed_applications/models/plan_patchable.rb +90 -0
  49. data/lib/2018-06-01/generated/azure_mgmt_managed_applications/models/provisioning_state.rb +25 -0
  50. data/lib/2018-06-01/generated/azure_mgmt_managed_applications/models/resource.rb +110 -0
  51. data/lib/2018-06-01/generated/azure_mgmt_managed_applications/models/resource_identity_type.rb +15 -0
  52. data/lib/2018-06-01/generated/azure_mgmt_managed_applications/models/sku.rb +101 -0
  53. data/lib/2018-06-01/generated/azure_mgmt_managed_applications/module_definition.rb +9 -0
  54. data/lib/azure_mgmt_managed_applications.rb +2 -0
  55. data/lib/profiles/latest/managedapplications_latest_profile_client.rb +28 -9
  56. data/lib/profiles/latest/managedapplications_module_definition.rb +0 -1
  57. data/lib/profiles/latest/modules/managedapplications_profile_module.rb +103 -84
  58. data/lib/version.rb +1 -1
  59. metadata +51 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 69ed6b19e99989a78246ab9a3e4d6ab44ea53af0
4
- data.tar.gz: 06f2159baf1b069fcdc3fbeeecbfe91b5dd30778
2
+ SHA256:
3
+ metadata.gz: 535027bb87075a5484d70670de97916867d557142dd803a9304f1f4552e4e695
4
+ data.tar.gz: 914d081e08c4adca8b779a0861ad0f834c745a1fd914bcddd04442298894ec4e
5
5
  SHA512:
6
- metadata.gz: 92cb30eb3cdea45cf346d608fcb0621912cb2769255ae7fcae423862d662225e0339494bfdfb6361d865f71cfe15672cd0407e590091cb864d25bff69d43b3ca
7
- data.tar.gz: f60f64d3b4ec34e91e973f64b8ca3007f246c0d9133fa453ce8535aa2bffafaab8b29e757f232a86ee0c0348924bae5114dc76259178e5f86015c0074da1979c
6
+ metadata.gz: 90491fd28f74ee0b138f911dc58abce4a394e42ca0027b589a458a6975b054b53155806b9bc952efc2af7a26f159571bf1b768390585f50615184df228b1cc18
7
+ data.tar.gz: 24df61949918b904d4eeb85f3f5ab83bde7d3b0b0d7a503b796b9429ceca3f07a76cc088734e927463f21a8b7838401bf5a484a1593cbe8471aedbd75e50352f
@@ -33,8 +33,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
33
33
  #
34
34
  # @return [ApplianceDefinition] operation results.
35
35
  #
36
- def get(resource_group_name, appliance_definition_name, custom_headers = nil)
37
- response = get_async(resource_group_name, appliance_definition_name, custom_headers).value!
36
+ def get(resource_group_name, appliance_definition_name, custom_headers:nil)
37
+ response = get_async(resource_group_name, appliance_definition_name, custom_headers:custom_headers).value!
38
38
  response.body unless response.nil?
39
39
  end
40
40
 
@@ -50,8 +50,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
50
50
  #
51
51
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
52
52
  #
53
- def get_with_http_info(resource_group_name, appliance_definition_name, custom_headers = nil)
54
- get_async(resource_group_name, appliance_definition_name, custom_headers).value!
53
+ def get_with_http_info(resource_group_name, appliance_definition_name, custom_headers:nil)
54
+ get_async(resource_group_name, appliance_definition_name, custom_headers:custom_headers).value!
55
55
  end
56
56
 
57
57
  #
@@ -66,7 +66,7 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
66
66
  #
67
67
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
68
68
  #
69
- def get_async(resource_group_name, appliance_definition_name, custom_headers = nil)
69
+ def get_async(resource_group_name, appliance_definition_name, custom_headers:nil)
70
70
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
71
71
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
72
72
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -79,6 +79,7 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
79
79
 
80
80
 
81
81
  request_headers = {}
82
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
82
83
 
83
84
  # Set Headers
84
85
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -133,8 +134,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
133
134
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
134
135
  # will be added to the HTTP request.
135
136
  #
136
- def delete(resource_group_name, appliance_definition_name, custom_headers = nil)
137
- response = delete_async(resource_group_name, appliance_definition_name, custom_headers).value!
137
+ def delete(resource_group_name, appliance_definition_name, custom_headers:nil)
138
+ response = delete_async(resource_group_name, appliance_definition_name, custom_headers:custom_headers).value!
138
139
  nil
139
140
  end
140
141
 
@@ -149,9 +150,9 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
149
150
  # @return [Concurrent::Promise] promise which provides async access to http
150
151
  # response.
151
152
  #
152
- def delete_async(resource_group_name, appliance_definition_name, custom_headers = nil)
153
+ def delete_async(resource_group_name, appliance_definition_name, custom_headers:nil)
153
154
  # Send request
154
- promise = begin_delete_async(resource_group_name, appliance_definition_name, custom_headers)
155
+ promise = begin_delete_async(resource_group_name, appliance_definition_name, custom_headers:custom_headers)
155
156
 
156
157
  promise = promise.then do |response|
157
158
  # Defining deserialization method.
@@ -179,8 +180,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
179
180
  #
180
181
  # @return [ApplianceDefinition] operation results.
181
182
  #
182
- def create_or_update(resource_group_name, appliance_definition_name, parameters, custom_headers = nil)
183
- response = create_or_update_async(resource_group_name, appliance_definition_name, parameters, custom_headers).value!
183
+ def create_or_update(resource_group_name, appliance_definition_name, parameters, custom_headers:nil)
184
+ response = create_or_update_async(resource_group_name, appliance_definition_name, parameters, custom_headers:custom_headers).value!
184
185
  response.body unless response.nil?
185
186
  end
186
187
 
@@ -197,9 +198,9 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
197
198
  # @return [Concurrent::Promise] promise which provides async access to http
198
199
  # response.
199
200
  #
200
- def create_or_update_async(resource_group_name, appliance_definition_name, parameters, custom_headers = nil)
201
+ def create_or_update_async(resource_group_name, appliance_definition_name, parameters, custom_headers:nil)
201
202
  # Send request
202
- promise = begin_create_or_update_async(resource_group_name, appliance_definition_name, parameters, custom_headers)
203
+ promise = begin_create_or_update_async(resource_group_name, appliance_definition_name, parameters, custom_headers:custom_headers)
203
204
 
204
205
  promise = promise.then do |response|
205
206
  # Defining deserialization method.
@@ -225,8 +226,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
225
226
  #
226
227
  # @return [Array<ApplianceDefinition>] operation results.
227
228
  #
228
- def list_by_resource_group(resource_group_name, custom_headers = nil)
229
- first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers)
229
+ def list_by_resource_group(resource_group_name, custom_headers:nil)
230
+ first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers)
230
231
  first_page.get_all_items
231
232
  end
232
233
 
@@ -240,8 +241,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
240
241
  #
241
242
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
242
243
  #
243
- def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil)
244
- list_by_resource_group_async(resource_group_name, custom_headers).value!
244
+ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
245
+ list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
245
246
  end
246
247
 
247
248
  #
@@ -254,7 +255,7 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
254
255
  #
255
256
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
256
257
  #
257
- def list_by_resource_group_async(resource_group_name, custom_headers = nil)
258
+ def list_by_resource_group_async(resource_group_name, custom_headers:nil)
258
259
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
259
260
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
260
261
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -264,6 +265,7 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
264
265
 
265
266
 
266
267
  request_headers = {}
268
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
267
269
 
268
270
  # Set Headers
269
271
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -320,8 +322,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
320
322
  #
321
323
  # @return [ApplianceDefinition] operation results.
322
324
  #
323
- def get_by_id(appliance_definition_id, custom_headers = nil)
324
- response = get_by_id_async(appliance_definition_id, custom_headers).value!
325
+ def get_by_id(appliance_definition_id, custom_headers:nil)
326
+ response = get_by_id_async(appliance_definition_id, custom_headers:custom_headers).value!
325
327
  response.body unless response.nil?
326
328
  end
327
329
 
@@ -337,8 +339,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
337
339
  #
338
340
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
339
341
  #
340
- def get_by_id_with_http_info(appliance_definition_id, custom_headers = nil)
341
- get_by_id_async(appliance_definition_id, custom_headers).value!
342
+ def get_by_id_with_http_info(appliance_definition_id, custom_headers:nil)
343
+ get_by_id_async(appliance_definition_id, custom_headers:custom_headers).value!
342
344
  end
343
345
 
344
346
  #
@@ -353,12 +355,13 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
353
355
  #
354
356
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
355
357
  #
356
- def get_by_id_async(appliance_definition_id, custom_headers = nil)
358
+ def get_by_id_async(appliance_definition_id, custom_headers:nil)
357
359
  fail ArgumentError, 'appliance_definition_id is nil' if appliance_definition_id.nil?
358
360
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
359
361
 
360
362
 
361
363
  request_headers = {}
364
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
362
365
 
363
366
  # Set Headers
364
367
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -413,8 +416,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
413
416
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
414
417
  # will be added to the HTTP request.
415
418
  #
416
- def delete_by_id(appliance_definition_id, custom_headers = nil)
417
- response = delete_by_id_async(appliance_definition_id, custom_headers).value!
419
+ def delete_by_id(appliance_definition_id, custom_headers:nil)
420
+ response = delete_by_id_async(appliance_definition_id, custom_headers:custom_headers).value!
418
421
  nil
419
422
  end
420
423
 
@@ -429,9 +432,9 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
429
432
  # @return [Concurrent::Promise] promise which provides async access to http
430
433
  # response.
431
434
  #
432
- def delete_by_id_async(appliance_definition_id, custom_headers = nil)
435
+ def delete_by_id_async(appliance_definition_id, custom_headers:nil)
433
436
  # Send request
434
- promise = begin_delete_by_id_async(appliance_definition_id, custom_headers)
437
+ promise = begin_delete_by_id_async(appliance_definition_id, custom_headers:custom_headers)
435
438
 
436
439
  promise = promise.then do |response|
437
440
  # Defining deserialization method.
@@ -459,8 +462,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
459
462
  #
460
463
  # @return [ApplianceDefinition] operation results.
461
464
  #
462
- def create_or_update_by_id(appliance_definition_id, parameters, custom_headers = nil)
463
- response = create_or_update_by_id_async(appliance_definition_id, parameters, custom_headers).value!
465
+ def create_or_update_by_id(appliance_definition_id, parameters, custom_headers:nil)
466
+ response = create_or_update_by_id_async(appliance_definition_id, parameters, custom_headers:custom_headers).value!
464
467
  response.body unless response.nil?
465
468
  end
466
469
 
@@ -477,9 +480,9 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
477
480
  # @return [Concurrent::Promise] promise which provides async access to http
478
481
  # response.
479
482
  #
480
- def create_or_update_by_id_async(appliance_definition_id, parameters, custom_headers = nil)
483
+ def create_or_update_by_id_async(appliance_definition_id, parameters, custom_headers:nil)
481
484
  # Send request
482
- promise = begin_create_or_update_by_id_async(appliance_definition_id, parameters, custom_headers)
485
+ promise = begin_create_or_update_by_id_async(appliance_definition_id, parameters, custom_headers:custom_headers)
483
486
 
484
487
  promise = promise.then do |response|
485
488
  # Defining deserialization method.
@@ -506,8 +509,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
506
509
  # will be added to the HTTP request.
507
510
  #
508
511
  #
509
- def begin_delete(resource_group_name, appliance_definition_name, custom_headers = nil)
510
- response = begin_delete_async(resource_group_name, appliance_definition_name, custom_headers).value!
512
+ def begin_delete(resource_group_name, appliance_definition_name, custom_headers:nil)
513
+ response = begin_delete_async(resource_group_name, appliance_definition_name, custom_headers:custom_headers).value!
511
514
  nil
512
515
  end
513
516
 
@@ -523,8 +526,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
523
526
  #
524
527
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
525
528
  #
526
- def begin_delete_with_http_info(resource_group_name, appliance_definition_name, custom_headers = nil)
527
- begin_delete_async(resource_group_name, appliance_definition_name, custom_headers).value!
529
+ def begin_delete_with_http_info(resource_group_name, appliance_definition_name, custom_headers:nil)
530
+ begin_delete_async(resource_group_name, appliance_definition_name, custom_headers:custom_headers).value!
528
531
  end
529
532
 
530
533
  #
@@ -539,7 +542,7 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
539
542
  #
540
543
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
541
544
  #
542
- def begin_delete_async(resource_group_name, appliance_definition_name, custom_headers = nil)
545
+ def begin_delete_async(resource_group_name, appliance_definition_name, custom_headers:nil)
543
546
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
544
547
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
545
548
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -552,6 +555,7 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
552
555
 
553
556
 
554
557
  request_headers = {}
558
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
555
559
 
556
560
  # Set Headers
557
561
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -600,8 +604,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
600
604
  #
601
605
  # @return [ApplianceDefinition] operation results.
602
606
  #
603
- def begin_create_or_update(resource_group_name, appliance_definition_name, parameters, custom_headers = nil)
604
- response = begin_create_or_update_async(resource_group_name, appliance_definition_name, parameters, custom_headers).value!
607
+ def begin_create_or_update(resource_group_name, appliance_definition_name, parameters, custom_headers:nil)
608
+ response = begin_create_or_update_async(resource_group_name, appliance_definition_name, parameters, custom_headers:custom_headers).value!
605
609
  response.body unless response.nil?
606
610
  end
607
611
 
@@ -619,8 +623,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
619
623
  #
620
624
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
621
625
  #
622
- def begin_create_or_update_with_http_info(resource_group_name, appliance_definition_name, parameters, custom_headers = nil)
623
- begin_create_or_update_async(resource_group_name, appliance_definition_name, parameters, custom_headers).value!
626
+ def begin_create_or_update_with_http_info(resource_group_name, appliance_definition_name, parameters, custom_headers:nil)
627
+ begin_create_or_update_async(resource_group_name, appliance_definition_name, parameters, custom_headers:custom_headers).value!
624
628
  end
625
629
 
626
630
  #
@@ -637,7 +641,7 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
637
641
  #
638
642
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
639
643
  #
640
- def begin_create_or_update_async(resource_group_name, appliance_definition_name, parameters, custom_headers = nil)
644
+ def begin_create_or_update_async(resource_group_name, appliance_definition_name, parameters, custom_headers:nil)
641
645
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
642
646
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
643
647
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -651,13 +655,12 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
651
655
 
652
656
 
653
657
  request_headers = {}
658
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
654
659
 
655
660
  # Set Headers
656
661
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
657
662
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
658
663
 
659
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
660
-
661
664
  # Serialize Request
662
665
  request_mapper = Azure::ManagedApplications::Mgmt::V2016_09_01_preview::Models::ApplianceDefinition.mapper()
663
666
  request_content = @client.serialize(request_mapper, parameters)
@@ -725,8 +728,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
725
728
  # will be added to the HTTP request.
726
729
  #
727
730
  #
728
- def begin_delete_by_id(appliance_definition_id, custom_headers = nil)
729
- response = begin_delete_by_id_async(appliance_definition_id, custom_headers).value!
731
+ def begin_delete_by_id(appliance_definition_id, custom_headers:nil)
732
+ response = begin_delete_by_id_async(appliance_definition_id, custom_headers:custom_headers).value!
730
733
  nil
731
734
  end
732
735
 
@@ -742,8 +745,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
742
745
  #
743
746
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
744
747
  #
745
- def begin_delete_by_id_with_http_info(appliance_definition_id, custom_headers = nil)
746
- begin_delete_by_id_async(appliance_definition_id, custom_headers).value!
748
+ def begin_delete_by_id_with_http_info(appliance_definition_id, custom_headers:nil)
749
+ begin_delete_by_id_async(appliance_definition_id, custom_headers:custom_headers).value!
747
750
  end
748
751
 
749
752
  #
@@ -758,12 +761,13 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
758
761
  #
759
762
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
760
763
  #
761
- def begin_delete_by_id_async(appliance_definition_id, custom_headers = nil)
764
+ def begin_delete_by_id_async(appliance_definition_id, custom_headers:nil)
762
765
  fail ArgumentError, 'appliance_definition_id is nil' if appliance_definition_id.nil?
763
766
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
764
767
 
765
768
 
766
769
  request_headers = {}
770
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
767
771
 
768
772
  # Set Headers
769
773
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -812,8 +816,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
812
816
  #
813
817
  # @return [ApplianceDefinition] operation results.
814
818
  #
815
- def begin_create_or_update_by_id(appliance_definition_id, parameters, custom_headers = nil)
816
- response = begin_create_or_update_by_id_async(appliance_definition_id, parameters, custom_headers).value!
819
+ def begin_create_or_update_by_id(appliance_definition_id, parameters, custom_headers:nil)
820
+ response = begin_create_or_update_by_id_async(appliance_definition_id, parameters, custom_headers:custom_headers).value!
817
821
  response.body unless response.nil?
818
822
  end
819
823
 
@@ -831,8 +835,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
831
835
  #
832
836
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
833
837
  #
834
- def begin_create_or_update_by_id_with_http_info(appliance_definition_id, parameters, custom_headers = nil)
835
- begin_create_or_update_by_id_async(appliance_definition_id, parameters, custom_headers).value!
838
+ def begin_create_or_update_by_id_with_http_info(appliance_definition_id, parameters, custom_headers:nil)
839
+ begin_create_or_update_by_id_async(appliance_definition_id, parameters, custom_headers:custom_headers).value!
836
840
  end
837
841
 
838
842
  #
@@ -849,20 +853,19 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
849
853
  #
850
854
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
851
855
  #
852
- def begin_create_or_update_by_id_async(appliance_definition_id, parameters, custom_headers = nil)
856
+ def begin_create_or_update_by_id_async(appliance_definition_id, parameters, custom_headers:nil)
853
857
  fail ArgumentError, 'appliance_definition_id is nil' if appliance_definition_id.nil?
854
858
  fail ArgumentError, 'parameters is nil' if parameters.nil?
855
859
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
856
860
 
857
861
 
858
862
  request_headers = {}
863
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
859
864
 
860
865
  # Set Headers
861
866
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
862
867
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
863
868
 
864
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
865
-
866
869
  # Serialize Request
867
870
  request_mapper = Azure::ManagedApplications::Mgmt::V2016_09_01_preview::Models::ApplianceDefinition.mapper()
868
871
  request_content = @client.serialize(request_mapper, parameters)
@@ -929,8 +932,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
929
932
  #
930
933
  # @return [ApplianceDefinitionListResult] operation results.
931
934
  #
932
- def list_by_resource_group_next(next_page_link, custom_headers = nil)
933
- response = list_by_resource_group_next_async(next_page_link, custom_headers).value!
935
+ def list_by_resource_group_next(next_page_link, custom_headers:nil)
936
+ response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
934
937
  response.body unless response.nil?
935
938
  end
936
939
 
@@ -944,8 +947,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
944
947
  #
945
948
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
946
949
  #
947
- def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil)
948
- list_by_resource_group_next_async(next_page_link, custom_headers).value!
950
+ def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
951
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
949
952
  end
950
953
 
951
954
  #
@@ -958,11 +961,12 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
958
961
  #
959
962
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
960
963
  #
961
- def list_by_resource_group_next_async(next_page_link, custom_headers = nil)
964
+ def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
962
965
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
963
966
 
964
967
 
965
968
  request_headers = {}
969
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
966
970
 
967
971
  # Set Headers
968
972
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1017,12 +1021,12 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
1017
1021
  # @return [ApplianceDefinitionListResult] which provide lazy access to pages of
1018
1022
  # the response.
1019
1023
  #
1020
- def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil)
1021
- response = list_by_resource_group_async(resource_group_name, custom_headers).value!
1024
+ def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil)
1025
+ response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
1022
1026
  unless response.nil?
1023
1027
  page = response.body
1024
1028
  page.next_method = Proc.new do |next_page_link|
1025
- list_by_resource_group_next_async(next_page_link, custom_headers)
1029
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
1026
1030
  end
1027
1031
  page
1028
1032
  end
@@ -32,8 +32,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
32
32
  #
33
33
  # @return [Appliance] operation results.
34
34
  #
35
- def get(resource_group_name, appliance_name, custom_headers = nil)
36
- response = get_async(resource_group_name, appliance_name, custom_headers).value!
35
+ def get(resource_group_name, appliance_name, custom_headers:nil)
36
+ response = get_async(resource_group_name, appliance_name, custom_headers:custom_headers).value!
37
37
  response.body unless response.nil?
38
38
  end
39
39
 
@@ -48,8 +48,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
48
48
  #
49
49
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
50
50
  #
51
- def get_with_http_info(resource_group_name, appliance_name, custom_headers = nil)
52
- get_async(resource_group_name, appliance_name, custom_headers).value!
51
+ def get_with_http_info(resource_group_name, appliance_name, custom_headers:nil)
52
+ get_async(resource_group_name, appliance_name, custom_headers:custom_headers).value!
53
53
  end
54
54
 
55
55
  #
@@ -63,7 +63,7 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
63
63
  #
64
64
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
65
65
  #
66
- def get_async(resource_group_name, appliance_name, custom_headers = nil)
66
+ def get_async(resource_group_name, appliance_name, custom_headers:nil)
67
67
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
68
68
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
69
69
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -76,6 +76,7 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
76
76
 
77
77
 
78
78
  request_headers = {}
79
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
79
80
 
80
81
  # Set Headers
81
82
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -129,8 +130,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
129
130
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
130
131
  # will be added to the HTTP request.
131
132
  #
132
- def delete(resource_group_name, appliance_name, custom_headers = nil)
133
- response = delete_async(resource_group_name, appliance_name, custom_headers).value!
133
+ def delete(resource_group_name, appliance_name, custom_headers:nil)
134
+ response = delete_async(resource_group_name, appliance_name, custom_headers:custom_headers).value!
134
135
  nil
135
136
  end
136
137
 
@@ -144,9 +145,9 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
144
145
  # @return [Concurrent::Promise] promise which provides async access to http
145
146
  # response.
146
147
  #
147
- def delete_async(resource_group_name, appliance_name, custom_headers = nil)
148
+ def delete_async(resource_group_name, appliance_name, custom_headers:nil)
148
149
  # Send request
149
- promise = begin_delete_async(resource_group_name, appliance_name, custom_headers)
150
+ promise = begin_delete_async(resource_group_name, appliance_name, custom_headers:custom_headers)
150
151
 
151
152
  promise = promise.then do |response|
152
153
  # Defining deserialization method.
@@ -173,8 +174,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
173
174
  #
174
175
  # @return [Appliance] operation results.
175
176
  #
176
- def create_or_update(resource_group_name, appliance_name, parameters, custom_headers = nil)
177
- response = create_or_update_async(resource_group_name, appliance_name, parameters, custom_headers).value!
177
+ def create_or_update(resource_group_name, appliance_name, parameters, custom_headers:nil)
178
+ response = create_or_update_async(resource_group_name, appliance_name, parameters, custom_headers:custom_headers).value!
178
179
  response.body unless response.nil?
179
180
  end
180
181
 
@@ -190,9 +191,9 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
190
191
  # @return [Concurrent::Promise] promise which provides async access to http
191
192
  # response.
192
193
  #
193
- def create_or_update_async(resource_group_name, appliance_name, parameters, custom_headers = nil)
194
+ def create_or_update_async(resource_group_name, appliance_name, parameters, custom_headers:nil)
194
195
  # Send request
195
- promise = begin_create_or_update_async(resource_group_name, appliance_name, parameters, custom_headers)
196
+ promise = begin_create_or_update_async(resource_group_name, appliance_name, parameters, custom_headers:custom_headers)
196
197
 
197
198
  promise = promise.then do |response|
198
199
  # Defining deserialization method.
@@ -222,8 +223,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
222
223
  #
223
224
  # @return [Appliance] operation results.
224
225
  #
225
- def update(resource_group_name, appliance_name, parameters = nil, custom_headers = nil)
226
- response = update_async(resource_group_name, appliance_name, parameters, custom_headers).value!
226
+ def update(resource_group_name, appliance_name, parameters:nil, custom_headers:nil)
227
+ response = update_async(resource_group_name, appliance_name, parameters:parameters, custom_headers:custom_headers).value!
227
228
  response.body unless response.nil?
228
229
  end
229
230
 
@@ -241,8 +242,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
241
242
  #
242
243
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
243
244
  #
244
- def update_with_http_info(resource_group_name, appliance_name, parameters = nil, custom_headers = nil)
245
- update_async(resource_group_name, appliance_name, parameters, custom_headers).value!
245
+ def update_with_http_info(resource_group_name, appliance_name, parameters:nil, custom_headers:nil)
246
+ update_async(resource_group_name, appliance_name, parameters:parameters, custom_headers:custom_headers).value!
246
247
  end
247
248
 
248
249
  #
@@ -259,7 +260,7 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
259
260
  #
260
261
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
261
262
  #
262
- def update_async(resource_group_name, appliance_name, parameters = nil, custom_headers = nil)
263
+ def update_async(resource_group_name, appliance_name, parameters:nil, custom_headers:nil)
263
264
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
264
265
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
265
266
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -272,13 +273,12 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
272
273
 
273
274
 
274
275
  request_headers = {}
276
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
275
277
 
276
278
  # Set Headers
277
279
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
278
280
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
279
281
 
280
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
281
-
282
282
  # Serialize Request
283
283
  request_mapper = Azure::ManagedApplications::Mgmt::V2016_09_01_preview::Models::Appliance.mapper()
284
284
  request_content = @client.serialize(request_mapper, parameters)
@@ -335,8 +335,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
335
335
  #
336
336
  # @return [Array<Appliance>] operation results.
337
337
  #
338
- def list_by_resource_group(resource_group_name, custom_headers = nil)
339
- first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers)
338
+ def list_by_resource_group(resource_group_name, custom_headers:nil)
339
+ first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers)
340
340
  first_page.get_all_items
341
341
  end
342
342
 
@@ -350,8 +350,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
350
350
  #
351
351
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
352
352
  #
353
- def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil)
354
- list_by_resource_group_async(resource_group_name, custom_headers).value!
353
+ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
354
+ list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
355
355
  end
356
356
 
357
357
  #
@@ -364,7 +364,7 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
364
364
  #
365
365
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
366
366
  #
367
- def list_by_resource_group_async(resource_group_name, custom_headers = nil)
367
+ def list_by_resource_group_async(resource_group_name, custom_headers:nil)
368
368
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
369
369
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
370
370
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -374,6 +374,7 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
374
374
 
375
375
 
376
376
  request_headers = {}
377
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
377
378
 
378
379
  # Set Headers
379
380
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -426,8 +427,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
426
427
  #
427
428
  # @return [Array<Appliance>] operation results.
428
429
  #
429
- def list_by_subscription(custom_headers = nil)
430
- first_page = list_by_subscription_as_lazy(custom_headers)
430
+ def list_by_subscription(custom_headers:nil)
431
+ first_page = list_by_subscription_as_lazy(custom_headers:custom_headers)
431
432
  first_page.get_all_items
432
433
  end
433
434
 
@@ -439,8 +440,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
439
440
  #
440
441
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
441
442
  #
442
- def list_by_subscription_with_http_info(custom_headers = nil)
443
- list_by_subscription_async(custom_headers).value!
443
+ def list_by_subscription_with_http_info(custom_headers:nil)
444
+ list_by_subscription_async(custom_headers:custom_headers).value!
444
445
  end
445
446
 
446
447
  #
@@ -451,12 +452,13 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
451
452
  #
452
453
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
453
454
  #
454
- def list_by_subscription_async(custom_headers = nil)
455
+ def list_by_subscription_async(custom_headers:nil)
455
456
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
456
457
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
457
458
 
458
459
 
459
460
  request_headers = {}
461
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
460
462
 
461
463
  # Set Headers
462
464
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -512,8 +514,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
512
514
  #
513
515
  # @return [Appliance] operation results.
514
516
  #
515
- def get_by_id(appliance_id, custom_headers = nil)
516
- response = get_by_id_async(appliance_id, custom_headers).value!
517
+ def get_by_id(appliance_id, custom_headers:nil)
518
+ response = get_by_id_async(appliance_id, custom_headers:custom_headers).value!
517
519
  response.body unless response.nil?
518
520
  end
519
521
 
@@ -528,8 +530,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
528
530
  #
529
531
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
530
532
  #
531
- def get_by_id_with_http_info(appliance_id, custom_headers = nil)
532
- get_by_id_async(appliance_id, custom_headers).value!
533
+ def get_by_id_with_http_info(appliance_id, custom_headers:nil)
534
+ get_by_id_async(appliance_id, custom_headers:custom_headers).value!
533
535
  end
534
536
 
535
537
  #
@@ -543,12 +545,13 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
543
545
  #
544
546
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
545
547
  #
546
- def get_by_id_async(appliance_id, custom_headers = nil)
548
+ def get_by_id_async(appliance_id, custom_headers:nil)
547
549
  fail ArgumentError, 'appliance_id is nil' if appliance_id.nil?
548
550
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
549
551
 
550
552
 
551
553
  request_headers = {}
554
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
552
555
 
553
556
  # Set Headers
554
557
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -602,8 +605,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
602
605
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
603
606
  # will be added to the HTTP request.
604
607
  #
605
- def delete_by_id(appliance_id, custom_headers = nil)
606
- response = delete_by_id_async(appliance_id, custom_headers).value!
608
+ def delete_by_id(appliance_id, custom_headers:nil)
609
+ response = delete_by_id_async(appliance_id, custom_headers:custom_headers).value!
607
610
  nil
608
611
  end
609
612
 
@@ -617,9 +620,9 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
617
620
  # @return [Concurrent::Promise] promise which provides async access to http
618
621
  # response.
619
622
  #
620
- def delete_by_id_async(appliance_id, custom_headers = nil)
623
+ def delete_by_id_async(appliance_id, custom_headers:nil)
621
624
  # Send request
622
- promise = begin_delete_by_id_async(appliance_id, custom_headers)
625
+ promise = begin_delete_by_id_async(appliance_id, custom_headers:custom_headers)
623
626
 
624
627
  promise = promise.then do |response|
625
628
  # Defining deserialization method.
@@ -646,8 +649,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
646
649
  #
647
650
  # @return [Appliance] operation results.
648
651
  #
649
- def create_or_update_by_id(appliance_id, parameters, custom_headers = nil)
650
- response = create_or_update_by_id_async(appliance_id, parameters, custom_headers).value!
652
+ def create_or_update_by_id(appliance_id, parameters, custom_headers:nil)
653
+ response = create_or_update_by_id_async(appliance_id, parameters, custom_headers:custom_headers).value!
651
654
  response.body unless response.nil?
652
655
  end
653
656
 
@@ -663,9 +666,9 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
663
666
  # @return [Concurrent::Promise] promise which provides async access to http
664
667
  # response.
665
668
  #
666
- def create_or_update_by_id_async(appliance_id, parameters, custom_headers = nil)
669
+ def create_or_update_by_id_async(appliance_id, parameters, custom_headers:nil)
667
670
  # Send request
668
- promise = begin_create_or_update_by_id_async(appliance_id, parameters, custom_headers)
671
+ promise = begin_create_or_update_by_id_async(appliance_id, parameters, custom_headers:custom_headers)
669
672
 
670
673
  promise = promise.then do |response|
671
674
  # Defining deserialization method.
@@ -695,8 +698,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
695
698
  #
696
699
  # @return [Appliance] operation results.
697
700
  #
698
- def update_by_id(appliance_id, parameters = nil, custom_headers = nil)
699
- response = update_by_id_async(appliance_id, parameters, custom_headers).value!
701
+ def update_by_id(appliance_id, parameters:nil, custom_headers:nil)
702
+ response = update_by_id_async(appliance_id, parameters:parameters, custom_headers:custom_headers).value!
700
703
  response.body unless response.nil?
701
704
  end
702
705
 
@@ -714,8 +717,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
714
717
  #
715
718
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
716
719
  #
717
- def update_by_id_with_http_info(appliance_id, parameters = nil, custom_headers = nil)
718
- update_by_id_async(appliance_id, parameters, custom_headers).value!
720
+ def update_by_id_with_http_info(appliance_id, parameters:nil, custom_headers:nil)
721
+ update_by_id_async(appliance_id, parameters:parameters, custom_headers:custom_headers).value!
719
722
  end
720
723
 
721
724
  #
@@ -732,19 +735,18 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
732
735
  #
733
736
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
734
737
  #
735
- def update_by_id_async(appliance_id, parameters = nil, custom_headers = nil)
738
+ def update_by_id_async(appliance_id, parameters:nil, custom_headers:nil)
736
739
  fail ArgumentError, 'appliance_id is nil' if appliance_id.nil?
737
740
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
738
741
 
739
742
 
740
743
  request_headers = {}
744
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
741
745
 
742
746
  # Set Headers
743
747
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
744
748
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
745
749
 
746
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
747
-
748
750
  # Serialize Request
749
751
  request_mapper = Azure::ManagedApplications::Mgmt::V2016_09_01_preview::Models::Appliance.mapper()
750
752
  request_content = @client.serialize(request_mapper, parameters)
@@ -801,8 +803,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
801
803
  # will be added to the HTTP request.
802
804
  #
803
805
  #
804
- def begin_delete(resource_group_name, appliance_name, custom_headers = nil)
805
- response = begin_delete_async(resource_group_name, appliance_name, custom_headers).value!
806
+ def begin_delete(resource_group_name, appliance_name, custom_headers:nil)
807
+ response = begin_delete_async(resource_group_name, appliance_name, custom_headers:custom_headers).value!
806
808
  nil
807
809
  end
808
810
 
@@ -817,8 +819,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
817
819
  #
818
820
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
819
821
  #
820
- def begin_delete_with_http_info(resource_group_name, appliance_name, custom_headers = nil)
821
- begin_delete_async(resource_group_name, appliance_name, custom_headers).value!
822
+ def begin_delete_with_http_info(resource_group_name, appliance_name, custom_headers:nil)
823
+ begin_delete_async(resource_group_name, appliance_name, custom_headers:custom_headers).value!
822
824
  end
823
825
 
824
826
  #
@@ -832,7 +834,7 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
832
834
  #
833
835
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
834
836
  #
835
- def begin_delete_async(resource_group_name, appliance_name, custom_headers = nil)
837
+ def begin_delete_async(resource_group_name, appliance_name, custom_headers:nil)
836
838
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
837
839
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
838
840
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -845,6 +847,7 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
845
847
 
846
848
 
847
849
  request_headers = {}
850
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
848
851
 
849
852
  # Set Headers
850
853
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -892,8 +895,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
892
895
  #
893
896
  # @return [Appliance] operation results.
894
897
  #
895
- def begin_create_or_update(resource_group_name, appliance_name, parameters, custom_headers = nil)
896
- response = begin_create_or_update_async(resource_group_name, appliance_name, parameters, custom_headers).value!
898
+ def begin_create_or_update(resource_group_name, appliance_name, parameters, custom_headers:nil)
899
+ response = begin_create_or_update_async(resource_group_name, appliance_name, parameters, custom_headers:custom_headers).value!
897
900
  response.body unless response.nil?
898
901
  end
899
902
 
@@ -910,8 +913,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
910
913
  #
911
914
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
912
915
  #
913
- def begin_create_or_update_with_http_info(resource_group_name, appliance_name, parameters, custom_headers = nil)
914
- begin_create_or_update_async(resource_group_name, appliance_name, parameters, custom_headers).value!
916
+ def begin_create_or_update_with_http_info(resource_group_name, appliance_name, parameters, custom_headers:nil)
917
+ begin_create_or_update_async(resource_group_name, appliance_name, parameters, custom_headers:custom_headers).value!
915
918
  end
916
919
 
917
920
  #
@@ -927,7 +930,7 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
927
930
  #
928
931
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
929
932
  #
930
- def begin_create_or_update_async(resource_group_name, appliance_name, parameters, custom_headers = nil)
933
+ def begin_create_or_update_async(resource_group_name, appliance_name, parameters, custom_headers:nil)
931
934
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
932
935
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
933
936
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -941,13 +944,12 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
941
944
 
942
945
 
943
946
  request_headers = {}
947
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
944
948
 
945
949
  # Set Headers
946
950
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
947
951
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
948
952
 
949
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
950
-
951
953
  # Serialize Request
952
954
  request_mapper = Azure::ManagedApplications::Mgmt::V2016_09_01_preview::Models::Appliance.mapper()
953
955
  request_content = @client.serialize(request_mapper, parameters)
@@ -1014,8 +1016,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
1014
1016
  # will be added to the HTTP request.
1015
1017
  #
1016
1018
  #
1017
- def begin_delete_by_id(appliance_id, custom_headers = nil)
1018
- response = begin_delete_by_id_async(appliance_id, custom_headers).value!
1019
+ def begin_delete_by_id(appliance_id, custom_headers:nil)
1020
+ response = begin_delete_by_id_async(appliance_id, custom_headers:custom_headers).value!
1019
1021
  nil
1020
1022
  end
1021
1023
 
@@ -1030,8 +1032,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
1030
1032
  #
1031
1033
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1032
1034
  #
1033
- def begin_delete_by_id_with_http_info(appliance_id, custom_headers = nil)
1034
- begin_delete_by_id_async(appliance_id, custom_headers).value!
1035
+ def begin_delete_by_id_with_http_info(appliance_id, custom_headers:nil)
1036
+ begin_delete_by_id_async(appliance_id, custom_headers:custom_headers).value!
1035
1037
  end
1036
1038
 
1037
1039
  #
@@ -1045,12 +1047,13 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
1045
1047
  #
1046
1048
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1047
1049
  #
1048
- def begin_delete_by_id_async(appliance_id, custom_headers = nil)
1050
+ def begin_delete_by_id_async(appliance_id, custom_headers:nil)
1049
1051
  fail ArgumentError, 'appliance_id is nil' if appliance_id.nil?
1050
1052
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1051
1053
 
1052
1054
 
1053
1055
  request_headers = {}
1056
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1054
1057
 
1055
1058
  # Set Headers
1056
1059
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1098,8 +1101,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
1098
1101
  #
1099
1102
  # @return [Appliance] operation results.
1100
1103
  #
1101
- def begin_create_or_update_by_id(appliance_id, parameters, custom_headers = nil)
1102
- response = begin_create_or_update_by_id_async(appliance_id, parameters, custom_headers).value!
1104
+ def begin_create_or_update_by_id(appliance_id, parameters, custom_headers:nil)
1105
+ response = begin_create_or_update_by_id_async(appliance_id, parameters, custom_headers:custom_headers).value!
1103
1106
  response.body unless response.nil?
1104
1107
  end
1105
1108
 
@@ -1116,8 +1119,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
1116
1119
  #
1117
1120
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1118
1121
  #
1119
- def begin_create_or_update_by_id_with_http_info(appliance_id, parameters, custom_headers = nil)
1120
- begin_create_or_update_by_id_async(appliance_id, parameters, custom_headers).value!
1122
+ def begin_create_or_update_by_id_with_http_info(appliance_id, parameters, custom_headers:nil)
1123
+ begin_create_or_update_by_id_async(appliance_id, parameters, custom_headers:custom_headers).value!
1121
1124
  end
1122
1125
 
1123
1126
  #
@@ -1133,20 +1136,19 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
1133
1136
  #
1134
1137
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1135
1138
  #
1136
- def begin_create_or_update_by_id_async(appliance_id, parameters, custom_headers = nil)
1139
+ def begin_create_or_update_by_id_async(appliance_id, parameters, custom_headers:nil)
1137
1140
  fail ArgumentError, 'appliance_id is nil' if appliance_id.nil?
1138
1141
  fail ArgumentError, 'parameters is nil' if parameters.nil?
1139
1142
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1140
1143
 
1141
1144
 
1142
1145
  request_headers = {}
1146
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1143
1147
 
1144
1148
  # Set Headers
1145
1149
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1146
1150
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1147
1151
 
1148
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1149
-
1150
1152
  # Serialize Request
1151
1153
  request_mapper = Azure::ManagedApplications::Mgmt::V2016_09_01_preview::Models::Appliance.mapper()
1152
1154
  request_content = @client.serialize(request_mapper, parameters)
@@ -1213,8 +1215,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
1213
1215
  #
1214
1216
  # @return [ApplianceListResult] operation results.
1215
1217
  #
1216
- def list_by_resource_group_next(next_page_link, custom_headers = nil)
1217
- response = list_by_resource_group_next_async(next_page_link, custom_headers).value!
1218
+ def list_by_resource_group_next(next_page_link, custom_headers:nil)
1219
+ response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
1218
1220
  response.body unless response.nil?
1219
1221
  end
1220
1222
 
@@ -1228,8 +1230,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
1228
1230
  #
1229
1231
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1230
1232
  #
1231
- def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil)
1232
- list_by_resource_group_next_async(next_page_link, custom_headers).value!
1233
+ def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
1234
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
1233
1235
  end
1234
1236
 
1235
1237
  #
@@ -1242,11 +1244,12 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
1242
1244
  #
1243
1245
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1244
1246
  #
1245
- def list_by_resource_group_next_async(next_page_link, custom_headers = nil)
1247
+ def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
1246
1248
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1247
1249
 
1248
1250
 
1249
1251
  request_headers = {}
1252
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1250
1253
 
1251
1254
  # Set Headers
1252
1255
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1300,8 +1303,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
1300
1303
  #
1301
1304
  # @return [ApplianceListResult] operation results.
1302
1305
  #
1303
- def list_by_subscription_next(next_page_link, custom_headers = nil)
1304
- response = list_by_subscription_next_async(next_page_link, custom_headers).value!
1306
+ def list_by_subscription_next(next_page_link, custom_headers:nil)
1307
+ response = list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
1305
1308
  response.body unless response.nil?
1306
1309
  end
1307
1310
 
@@ -1315,8 +1318,8 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
1315
1318
  #
1316
1319
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1317
1320
  #
1318
- def list_by_subscription_next_with_http_info(next_page_link, custom_headers = nil)
1319
- list_by_subscription_next_async(next_page_link, custom_headers).value!
1321
+ def list_by_subscription_next_with_http_info(next_page_link, custom_headers:nil)
1322
+ list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
1320
1323
  end
1321
1324
 
1322
1325
  #
@@ -1329,11 +1332,12 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
1329
1332
  #
1330
1333
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1331
1334
  #
1332
- def list_by_subscription_next_async(next_page_link, custom_headers = nil)
1335
+ def list_by_subscription_next_async(next_page_link, custom_headers:nil)
1333
1336
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1334
1337
 
1335
1338
 
1336
1339
  request_headers = {}
1340
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1337
1341
 
1338
1342
  # Set Headers
1339
1343
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1388,12 +1392,12 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
1388
1392
  # @return [ApplianceListResult] which provide lazy access to pages of the
1389
1393
  # response.
1390
1394
  #
1391
- def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil)
1392
- response = list_by_resource_group_async(resource_group_name, custom_headers).value!
1395
+ def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil)
1396
+ response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
1393
1397
  unless response.nil?
1394
1398
  page = response.body
1395
1399
  page.next_method = Proc.new do |next_page_link|
1396
- list_by_resource_group_next_async(next_page_link, custom_headers)
1400
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
1397
1401
  end
1398
1402
  page
1399
1403
  end
@@ -1408,12 +1412,12 @@ module Azure::ManagedApplications::Mgmt::V2016_09_01_preview
1408
1412
  # @return [ApplianceListResult] which provide lazy access to pages of the
1409
1413
  # response.
1410
1414
  #
1411
- def list_by_subscription_as_lazy(custom_headers = nil)
1412
- response = list_by_subscription_async(custom_headers).value!
1415
+ def list_by_subscription_as_lazy(custom_headers:nil)
1416
+ response = list_by_subscription_async(custom_headers:custom_headers).value!
1413
1417
  unless response.nil?
1414
1418
  page = response.body
1415
1419
  page.next_method = Proc.new do |next_page_link|
1416
- list_by_subscription_next_async(next_page_link, custom_headers)
1420
+ list_by_subscription_next_async(next_page_link, custom_headers:custom_headers)
1417
1421
  end
1418
1422
  page
1419
1423
  end