azure_mgmt_service_fabric 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 (78) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2016-09-01/generated/azure_mgmt_service_fabric/cluster_versions.rb +51 -44
  3. data/lib/2016-09-01/generated/azure_mgmt_service_fabric/clusters.rb +62 -58
  4. data/lib/2016-09-01/generated/azure_mgmt_service_fabric/operations.rb +15 -13
  5. data/lib/2016-09-01/generated/azure_mgmt_service_fabric/service_fabric_management_client.rb +4 -1
  6. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric.rb +91 -0
  7. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/application.rb +691 -0
  8. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/application_type.rb +487 -0
  9. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/cluster_versions.rb +471 -0
  10. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/clusters.rb +778 -0
  11. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_health_policy.rb +104 -0
  12. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_metric_description.rb +113 -0
  13. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_parameter.rb +58 -0
  14. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_resource.rb +206 -0
  15. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_resource_list.rb +55 -0
  16. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_resource_update.rb +182 -0
  17. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_type_resource.rb +83 -0
  18. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_type_resource_list.rb +55 -0
  19. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_upgrade_policy.rb +81 -0
  20. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/available_operation_display.rb +79 -0
  21. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/azure_active_directory.rb +68 -0
  22. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/certificate_description.rb +70 -0
  23. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/client_certificate_common_name.rb +70 -0
  24. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/client_certificate_thumbprint.rb +59 -0
  25. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/cluster.rb +398 -0
  26. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/cluster_code_versions_list_result.rb +66 -0
  27. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/cluster_code_versions_result.rb +102 -0
  28. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/cluster_health_policy.rb +70 -0
  29. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/cluster_list_result.rb +66 -0
  30. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/cluster_update_parameters.rb +246 -0
  31. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/cluster_upgrade_delta_health_policy.rb +97 -0
  32. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/cluster_upgrade_policy.rb +156 -0
  33. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/cluster_version_details.rb +69 -0
  34. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/diagnostics_storage_account_config.rb +91 -0
  35. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/endpoint_range_description.rb +57 -0
  36. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/error_model.rb +57 -0
  37. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/named_partition_scheme_description.rb +81 -0
  38. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/node_type_description.rb +189 -0
  39. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/operation_list_result.rb +101 -0
  40. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/operation_result.rb +81 -0
  41. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/partition_scheme_description.rb +48 -0
  42. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/provisioning_state.rb +18 -0
  43. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/proxy_resource.rb +82 -0
  44. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/resource.rb +101 -0
  45. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/rolling_upgrade_monitoring_policy.rb +90 -0
  46. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_correlation_description.rb +58 -0
  47. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_load_metric_description.rb +98 -0
  48. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_placement_policy_description.rb +46 -0
  49. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_properties.rb +151 -0
  50. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_properties_base.rb +123 -0
  51. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_resource.rb +207 -0
  52. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_resource_list.rb +55 -0
  53. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_resource_update.rb +169 -0
  54. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_type_delta_health_policy.rb +51 -0
  55. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_type_health_policy.rb +108 -0
  56. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_type_health_policy_map_item.rb +60 -0
  57. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_update_properties.rb +113 -0
  58. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/settings_parameter_description.rb +57 -0
  59. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/settings_section_description.rb +67 -0
  60. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/singleton_partition_scheme_description.rb +51 -0
  61. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/stateful_service_properties.rb +227 -0
  62. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/stateful_service_update_properties.rb +186 -0
  63. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/stateless_service_properties.rb +161 -0
  64. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/stateless_service_update_properties.rb +133 -0
  65. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/uniform_int64range_partition_scheme_description.rb +91 -0
  66. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/version_resource.rb +115 -0
  67. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/version_resource_list.rb +55 -0
  68. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/module_definition.rb +9 -0
  69. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/operations.rb +230 -0
  70. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/service.rb +735 -0
  71. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/service_fabric_management_client.rb +147 -0
  72. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/version.rb +559 -0
  73. data/lib/azure_mgmt_service_fabric.rb +1 -0
  74. data/lib/profiles/latest/modules/servicefabric_profile_module.rb +269 -114
  75. data/lib/profiles/latest/servicefabric_latest_profile_client.rb +28 -9
  76. data/lib/profiles/latest/servicefabric_module_definition.rb +0 -1
  77. data/lib/version.rb +1 -1
  78. metadata +70 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 03ca85c37525404a7252ac69c5079578f892db31
4
- data.tar.gz: d0ae93ea4623f3696ac881ce7de153836e8bb5ce
3
+ metadata.gz: 3a575d631a95dae69d82698cfabcaa819b79a081
4
+ data.tar.gz: 724c523588516fcadcdb58366dc34f9071c0a5f2
5
5
  SHA512:
6
- metadata.gz: c86be8eed194741852b7332851990d65ca0e63c29c8d37e1c7d5b2b75bd89562dd31349d7fb43458ff90512d7b674c636d35bf34b8df071e64eb403f8d3b0bcf
7
- data.tar.gz: 5c269e49dba1f1b72969e671e5baa29ee925c1483f88b35278fe0575b10bf8033404c27fee9ae64921ecfdb5c787b8b4a3c449e7196cd9349f03e454dbf6ccb5
6
+ metadata.gz: eefb7d52241d66fdf94e8fd8a9647be8f539501fb03489f945999f4acc1b3603fd6f4596a53f0ed6573f5d2bf13e24129ba638dca9afd17c484a75804f9eda0b
7
+ data.tar.gz: 51468f2fab9e1839395bb52115359d39eda63b5c2813e8aecc2e2e00925d658f1d8258019f1181f47909f898366fb6300ee85f9135a58bcf8aa11819f7474328
@@ -31,8 +31,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
31
31
  #
32
32
  # @return [Array<ClusterCodeVersionsResult>] operation results.
33
33
  #
34
- def list(location, custom_headers = nil)
35
- first_page = list_as_lazy(location, custom_headers)
34
+ def list(location, custom_headers:nil)
35
+ first_page = list_as_lazy(location, custom_headers:custom_headers)
36
36
  first_page.get_all_items
37
37
  end
38
38
 
@@ -46,8 +46,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
46
46
  #
47
47
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
48
48
  #
49
- def list_with_http_info(location, custom_headers = nil)
50
- list_async(location, custom_headers).value!
49
+ def list_with_http_info(location, custom_headers:nil)
50
+ list_async(location, custom_headers:custom_headers).value!
51
51
  end
52
52
 
53
53
  #
@@ -60,13 +60,14 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
60
60
  #
61
61
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
62
62
  #
63
- def list_async(location, custom_headers = nil)
63
+ def list_async(location, custom_headers:nil)
64
64
  fail ArgumentError, 'location is nil' if location.nil?
65
65
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
66
66
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
67
67
 
68
68
 
69
69
  request_headers = {}
70
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
70
71
 
71
72
  # Set Headers
72
73
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -123,8 +124,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
123
124
  #
124
125
  # @return [Array<ClusterCodeVersionsResult>] operation results.
125
126
  #
126
- def list_by_environment(location, environment, custom_headers = nil)
127
- first_page = list_by_environment_as_lazy(location, environment, custom_headers)
127
+ def list_by_environment(location, environment, custom_headers:nil)
128
+ first_page = list_by_environment_as_lazy(location, environment, custom_headers:custom_headers)
128
129
  first_page.get_all_items
129
130
  end
130
131
 
@@ -140,8 +141,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
140
141
  #
141
142
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
142
143
  #
143
- def list_by_environment_with_http_info(location, environment, custom_headers = nil)
144
- list_by_environment_async(location, environment, custom_headers).value!
144
+ def list_by_environment_with_http_info(location, environment, custom_headers:nil)
145
+ list_by_environment_async(location, environment, custom_headers:custom_headers).value!
145
146
  end
146
147
 
147
148
  #
@@ -156,7 +157,7 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
156
157
  #
157
158
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
158
159
  #
159
- def list_by_environment_async(location, environment, custom_headers = nil)
160
+ def list_by_environment_async(location, environment, custom_headers:nil)
160
161
  fail ArgumentError, 'location is nil' if location.nil?
161
162
  fail ArgumentError, 'environment is nil' if environment.nil?
162
163
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -164,6 +165,7 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
164
165
 
165
166
 
166
167
  request_headers = {}
168
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
167
169
 
168
170
  # Set Headers
169
171
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -221,8 +223,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
221
223
  #
222
224
  # @return [ClusterCodeVersionsResult] operation results.
223
225
  #
224
- def get(location, environment, cluster_version, custom_headers = nil)
225
- response = get_async(location, environment, cluster_version, custom_headers).value!
226
+ def get(location, environment, cluster_version, custom_headers:nil)
227
+ response = get_async(location, environment, cluster_version, custom_headers:custom_headers).value!
226
228
  response.body unless response.nil?
227
229
  end
228
230
 
@@ -239,8 +241,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
239
241
  #
240
242
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
241
243
  #
242
- def get_with_http_info(location, environment, cluster_version, custom_headers = nil)
243
- get_async(location, environment, cluster_version, custom_headers).value!
244
+ def get_with_http_info(location, environment, cluster_version, custom_headers:nil)
245
+ get_async(location, environment, cluster_version, custom_headers:custom_headers).value!
244
246
  end
245
247
 
246
248
  #
@@ -256,7 +258,7 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
256
258
  #
257
259
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
258
260
  #
259
- def get_async(location, environment, cluster_version, custom_headers = nil)
261
+ def get_async(location, environment, cluster_version, custom_headers:nil)
260
262
  fail ArgumentError, 'location is nil' if location.nil?
261
263
  fail ArgumentError, 'environment is nil' if environment.nil?
262
264
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -265,6 +267,7 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
265
267
 
266
268
 
267
269
  request_headers = {}
270
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
268
271
 
269
272
  # Set Headers
270
273
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -320,8 +323,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
320
323
  #
321
324
  # @return [Array<ClusterCodeVersionsResult>] operation results.
322
325
  #
323
- def list_by_version(location, cluster_version, custom_headers = nil)
324
- first_page = list_by_version_as_lazy(location, cluster_version, custom_headers)
326
+ def list_by_version(location, cluster_version, custom_headers:nil)
327
+ first_page = list_by_version_as_lazy(location, cluster_version, custom_headers:custom_headers)
325
328
  first_page.get_all_items
326
329
  end
327
330
 
@@ -336,8 +339,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
336
339
  #
337
340
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
338
341
  #
339
- def list_by_version_with_http_info(location, cluster_version, custom_headers = nil)
340
- list_by_version_async(location, cluster_version, custom_headers).value!
342
+ def list_by_version_with_http_info(location, cluster_version, custom_headers:nil)
343
+ list_by_version_async(location, cluster_version, custom_headers:custom_headers).value!
341
344
  end
342
345
 
343
346
  #
@@ -351,7 +354,7 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
351
354
  #
352
355
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
353
356
  #
354
- def list_by_version_async(location, cluster_version, custom_headers = nil)
357
+ def list_by_version_async(location, cluster_version, custom_headers:nil)
355
358
  fail ArgumentError, 'location is nil' if location.nil?
356
359
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
357
360
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -359,6 +362,7 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
359
362
 
360
363
 
361
364
  request_headers = {}
365
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
362
366
 
363
367
  # Set Headers
364
368
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -413,8 +417,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
413
417
  #
414
418
  # @return [ClusterCodeVersionsListResult] operation results.
415
419
  #
416
- def list_next(next_page_link, custom_headers = nil)
417
- response = list_next_async(next_page_link, custom_headers).value!
420
+ def list_next(next_page_link, custom_headers:nil)
421
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
418
422
  response.body unless response.nil?
419
423
  end
420
424
 
@@ -428,8 +432,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
428
432
  #
429
433
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
430
434
  #
431
- def list_next_with_http_info(next_page_link, custom_headers = nil)
432
- list_next_async(next_page_link, custom_headers).value!
435
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
436
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
433
437
  end
434
438
 
435
439
  #
@@ -442,11 +446,12 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
442
446
  #
443
447
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
444
448
  #
445
- def list_next_async(next_page_link, custom_headers = nil)
449
+ def list_next_async(next_page_link, custom_headers:nil)
446
450
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
447
451
 
448
452
 
449
453
  request_headers = {}
454
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
450
455
 
451
456
  # Set Headers
452
457
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -500,8 +505,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
500
505
  #
501
506
  # @return [ClusterCodeVersionsListResult] operation results.
502
507
  #
503
- def list_by_environment_next(next_page_link, custom_headers = nil)
504
- response = list_by_environment_next_async(next_page_link, custom_headers).value!
508
+ def list_by_environment_next(next_page_link, custom_headers:nil)
509
+ response = list_by_environment_next_async(next_page_link, custom_headers:custom_headers).value!
505
510
  response.body unless response.nil?
506
511
  end
507
512
 
@@ -515,8 +520,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
515
520
  #
516
521
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
517
522
  #
518
- def list_by_environment_next_with_http_info(next_page_link, custom_headers = nil)
519
- list_by_environment_next_async(next_page_link, custom_headers).value!
523
+ def list_by_environment_next_with_http_info(next_page_link, custom_headers:nil)
524
+ list_by_environment_next_async(next_page_link, custom_headers:custom_headers).value!
520
525
  end
521
526
 
522
527
  #
@@ -529,11 +534,12 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
529
534
  #
530
535
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
531
536
  #
532
- def list_by_environment_next_async(next_page_link, custom_headers = nil)
537
+ def list_by_environment_next_async(next_page_link, custom_headers:nil)
533
538
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
534
539
 
535
540
 
536
541
  request_headers = {}
542
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
537
543
 
538
544
  # Set Headers
539
545
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -587,8 +593,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
587
593
  #
588
594
  # @return [ClusterCodeVersionsListResult] operation results.
589
595
  #
590
- def list_by_version_next(next_page_link, custom_headers = nil)
591
- response = list_by_version_next_async(next_page_link, custom_headers).value!
596
+ def list_by_version_next(next_page_link, custom_headers:nil)
597
+ response = list_by_version_next_async(next_page_link, custom_headers:custom_headers).value!
592
598
  response.body unless response.nil?
593
599
  end
594
600
 
@@ -602,8 +608,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
602
608
  #
603
609
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
604
610
  #
605
- def list_by_version_next_with_http_info(next_page_link, custom_headers = nil)
606
- list_by_version_next_async(next_page_link, custom_headers).value!
611
+ def list_by_version_next_with_http_info(next_page_link, custom_headers:nil)
612
+ list_by_version_next_async(next_page_link, custom_headers:custom_headers).value!
607
613
  end
608
614
 
609
615
  #
@@ -616,11 +622,12 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
616
622
  #
617
623
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
618
624
  #
619
- def list_by_version_next_async(next_page_link, custom_headers = nil)
625
+ def list_by_version_next_async(next_page_link, custom_headers:nil)
620
626
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
621
627
 
622
628
 
623
629
  request_headers = {}
630
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
624
631
 
625
632
  # Set Headers
626
633
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -675,12 +682,12 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
675
682
  # @return [ClusterCodeVersionsListResult] which provide lazy access to pages of
676
683
  # the response.
677
684
  #
678
- def list_as_lazy(location, custom_headers = nil)
679
- response = list_async(location, custom_headers).value!
685
+ def list_as_lazy(location, custom_headers:nil)
686
+ response = list_async(location, custom_headers:custom_headers).value!
680
687
  unless response.nil?
681
688
  page = response.body
682
689
  page.next_method = Proc.new do |next_page_link|
683
- list_next_async(next_page_link, custom_headers)
690
+ list_next_async(next_page_link, custom_headers:custom_headers)
684
691
  end
685
692
  page
686
693
  end
@@ -699,12 +706,12 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
699
706
  # @return [ClusterCodeVersionsListResult] which provide lazy access to pages of
700
707
  # the response.
701
708
  #
702
- def list_by_environment_as_lazy(location, environment, custom_headers = nil)
703
- response = list_by_environment_async(location, environment, custom_headers).value!
709
+ def list_by_environment_as_lazy(location, environment, custom_headers:nil)
710
+ response = list_by_environment_async(location, environment, custom_headers:custom_headers).value!
704
711
  unless response.nil?
705
712
  page = response.body
706
713
  page.next_method = Proc.new do |next_page_link|
707
- list_by_environment_next_async(next_page_link, custom_headers)
714
+ list_by_environment_next_async(next_page_link, custom_headers:custom_headers)
708
715
  end
709
716
  page
710
717
  end
@@ -722,12 +729,12 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
722
729
  # @return [ClusterCodeVersionsListResult] which provide lazy access to pages of
723
730
  # the response.
724
731
  #
725
- def list_by_version_as_lazy(location, cluster_version, custom_headers = nil)
726
- response = list_by_version_async(location, cluster_version, custom_headers).value!
732
+ def list_by_version_as_lazy(location, cluster_version, custom_headers:nil)
733
+ response = list_by_version_async(location, cluster_version, custom_headers:custom_headers).value!
727
734
  unless response.nil?
728
735
  page = response.body
729
736
  page.next_method = Proc.new do |next_page_link|
730
- list_by_version_next_async(next_page_link, custom_headers)
737
+ list_by_version_next_async(next_page_link, custom_headers:custom_headers)
731
738
  end
732
739
  page
733
740
  end
@@ -35,8 +35,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
35
35
  #
36
36
  # @return [Cluster] operation results.
37
37
  #
38
- def update(resource_group_name, cluster_name, parameters, custom_headers = nil)
39
- response = update_async(resource_group_name, cluster_name, parameters, custom_headers).value!
38
+ def update(resource_group_name, cluster_name, parameters, custom_headers:nil)
39
+ response = update_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers).value!
40
40
  response.body unless response.nil?
41
41
  end
42
42
 
@@ -53,9 +53,9 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
53
53
  # @return [Concurrent::Promise] promise which provides async access to http
54
54
  # response.
55
55
  #
56
- def update_async(resource_group_name, cluster_name, parameters, custom_headers = nil)
56
+ def update_async(resource_group_name, cluster_name, parameters, custom_headers:nil)
57
57
  # Send request
58
- promise = begin_update_async(resource_group_name, cluster_name, parameters, custom_headers)
58
+ promise = begin_update_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers)
59
59
 
60
60
  promise = promise.then do |response|
61
61
  # Defining deserialization method.
@@ -82,8 +82,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
82
82
  #
83
83
  # @return [Cluster] operation results.
84
84
  #
85
- def get(resource_group_name, cluster_name, custom_headers = nil)
86
- response = get_async(resource_group_name, cluster_name, custom_headers).value!
85
+ def get(resource_group_name, cluster_name, custom_headers:nil)
86
+ response = get_async(resource_group_name, cluster_name, custom_headers:custom_headers).value!
87
87
  response.body unless response.nil?
88
88
  end
89
89
 
@@ -98,8 +98,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
98
98
  #
99
99
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
100
100
  #
101
- def get_with_http_info(resource_group_name, cluster_name, custom_headers = nil)
102
- get_async(resource_group_name, cluster_name, custom_headers).value!
101
+ def get_with_http_info(resource_group_name, cluster_name, custom_headers:nil)
102
+ get_async(resource_group_name, cluster_name, custom_headers:custom_headers).value!
103
103
  end
104
104
 
105
105
  #
@@ -113,7 +113,7 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
113
113
  #
114
114
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
115
115
  #
116
- def get_async(resource_group_name, cluster_name, custom_headers = nil)
116
+ def get_async(resource_group_name, cluster_name, custom_headers:nil)
117
117
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
118
118
  fail ArgumentError, 'cluster_name is nil' if cluster_name.nil?
119
119
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -121,6 +121,7 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
121
121
 
122
122
 
123
123
  request_headers = {}
124
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
124
125
 
125
126
  # Set Headers
126
127
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -177,8 +178,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
177
178
  #
178
179
  # @return [Cluster] operation results.
179
180
  #
180
- def create(resource_group_name, cluster_name, parameters, custom_headers = nil)
181
- response = create_async(resource_group_name, cluster_name, parameters, custom_headers).value!
181
+ def create(resource_group_name, cluster_name, parameters, custom_headers:nil)
182
+ response = create_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers).value!
182
183
  response.body unless response.nil?
183
184
  end
184
185
 
@@ -193,9 +194,9 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
193
194
  # @return [Concurrent::Promise] promise which provides async access to http
194
195
  # response.
195
196
  #
196
- def create_async(resource_group_name, cluster_name, parameters, custom_headers = nil)
197
+ def create_async(resource_group_name, cluster_name, parameters, custom_headers:nil)
197
198
  # Send request
198
- promise = begin_create_async(resource_group_name, cluster_name, parameters, custom_headers)
199
+ promise = begin_create_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers)
199
200
 
200
201
  promise = promise.then do |response|
201
202
  # Defining deserialization method.
@@ -221,8 +222,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
221
222
  # will be added to the HTTP request.
222
223
  #
223
224
  #
224
- def delete(resource_group_name, cluster_name, custom_headers = nil)
225
- response = delete_async(resource_group_name, cluster_name, custom_headers).value!
225
+ def delete(resource_group_name, cluster_name, custom_headers:nil)
226
+ response = delete_async(resource_group_name, cluster_name, custom_headers:custom_headers).value!
226
227
  nil
227
228
  end
228
229
 
@@ -237,8 +238,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
237
238
  #
238
239
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
239
240
  #
240
- def delete_with_http_info(resource_group_name, cluster_name, custom_headers = nil)
241
- delete_async(resource_group_name, cluster_name, custom_headers).value!
241
+ def delete_with_http_info(resource_group_name, cluster_name, custom_headers:nil)
242
+ delete_async(resource_group_name, cluster_name, custom_headers:custom_headers).value!
242
243
  end
243
244
 
244
245
  #
@@ -252,7 +253,7 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
252
253
  #
253
254
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
254
255
  #
255
- def delete_async(resource_group_name, cluster_name, custom_headers = nil)
256
+ def delete_async(resource_group_name, cluster_name, custom_headers:nil)
256
257
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
257
258
  fail ArgumentError, 'cluster_name is nil' if cluster_name.nil?
258
259
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -260,6 +261,7 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
260
261
 
261
262
 
262
263
  request_headers = {}
264
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
263
265
 
264
266
  # Set Headers
265
267
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -304,8 +306,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
304
306
  #
305
307
  # @return [Array<Cluster>] operation results.
306
308
  #
307
- def list_by_resource_group(resource_group_name, custom_headers = nil)
308
- first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers)
309
+ def list_by_resource_group(resource_group_name, custom_headers:nil)
310
+ first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers)
309
311
  first_page.get_all_items
310
312
  end
311
313
 
@@ -319,8 +321,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
319
321
  #
320
322
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
321
323
  #
322
- def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil)
323
- list_by_resource_group_async(resource_group_name, custom_headers).value!
324
+ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
325
+ list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
324
326
  end
325
327
 
326
328
  #
@@ -333,13 +335,14 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
333
335
  #
334
336
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
335
337
  #
336
- def list_by_resource_group_async(resource_group_name, custom_headers = nil)
338
+ def list_by_resource_group_async(resource_group_name, custom_headers:nil)
337
339
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
338
340
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
339
341
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
340
342
 
341
343
 
342
344
  request_headers = {}
345
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
343
346
 
344
347
  # Set Headers
345
348
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -392,8 +395,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
392
395
  #
393
396
  # @return [Array<Cluster>] operation results.
394
397
  #
395
- def list(custom_headers = nil)
396
- first_page = list_as_lazy(custom_headers)
398
+ def list(custom_headers:nil)
399
+ first_page = list_as_lazy(custom_headers:custom_headers)
397
400
  first_page.get_all_items
398
401
  end
399
402
 
@@ -405,8 +408,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
405
408
  #
406
409
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
407
410
  #
408
- def list_with_http_info(custom_headers = nil)
409
- list_async(custom_headers).value!
411
+ def list_with_http_info(custom_headers:nil)
412
+ list_async(custom_headers:custom_headers).value!
410
413
  end
411
414
 
412
415
  #
@@ -417,12 +420,13 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
417
420
  #
418
421
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
419
422
  #
420
- def list_async(custom_headers = nil)
423
+ def list_async(custom_headers:nil)
421
424
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
422
425
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
423
426
 
424
427
 
425
428
  request_headers = {}
429
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
426
430
 
427
431
  # Set Headers
428
432
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -481,8 +485,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
481
485
  #
482
486
  # @return [Cluster] operation results.
483
487
  #
484
- def begin_update(resource_group_name, cluster_name, parameters, custom_headers = nil)
485
- response = begin_update_async(resource_group_name, cluster_name, parameters, custom_headers).value!
488
+ def begin_update(resource_group_name, cluster_name, parameters, custom_headers:nil)
489
+ response = begin_update_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers).value!
486
490
  response.body unless response.nil?
487
491
  end
488
492
 
@@ -500,8 +504,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
500
504
  #
501
505
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
502
506
  #
503
- def begin_update_with_http_info(resource_group_name, cluster_name, parameters, custom_headers = nil)
504
- begin_update_async(resource_group_name, cluster_name, parameters, custom_headers).value!
507
+ def begin_update_with_http_info(resource_group_name, cluster_name, parameters, custom_headers:nil)
508
+ begin_update_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers).value!
505
509
  end
506
510
 
507
511
  #
@@ -518,7 +522,7 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
518
522
  #
519
523
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
520
524
  #
521
- def begin_update_async(resource_group_name, cluster_name, parameters, custom_headers = nil)
525
+ def begin_update_async(resource_group_name, cluster_name, parameters, custom_headers:nil)
522
526
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
523
527
  fail ArgumentError, 'cluster_name is nil' if cluster_name.nil?
524
528
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -527,13 +531,12 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
527
531
 
528
532
 
529
533
  request_headers = {}
534
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
530
535
 
531
536
  # Set Headers
532
537
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
533
538
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
534
539
 
535
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
536
-
537
540
  # Serialize Request
538
541
  request_mapper = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterUpdateParameters.mapper()
539
542
  request_content = @client.serialize(request_mapper, parameters)
@@ -592,8 +595,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
592
595
  #
593
596
  # @return [Cluster] operation results.
594
597
  #
595
- def begin_create(resource_group_name, cluster_name, parameters, custom_headers = nil)
596
- response = begin_create_async(resource_group_name, cluster_name, parameters, custom_headers).value!
598
+ def begin_create(resource_group_name, cluster_name, parameters, custom_headers:nil)
599
+ response = begin_create_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers).value!
597
600
  response.body unless response.nil?
598
601
  end
599
602
 
@@ -609,8 +612,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
609
612
  #
610
613
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
611
614
  #
612
- def begin_create_with_http_info(resource_group_name, cluster_name, parameters, custom_headers = nil)
613
- begin_create_async(resource_group_name, cluster_name, parameters, custom_headers).value!
615
+ def begin_create_with_http_info(resource_group_name, cluster_name, parameters, custom_headers:nil)
616
+ begin_create_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers).value!
614
617
  end
615
618
 
616
619
  #
@@ -625,7 +628,7 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
625
628
  #
626
629
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
627
630
  #
628
- def begin_create_async(resource_group_name, cluster_name, parameters, custom_headers = nil)
631
+ def begin_create_async(resource_group_name, cluster_name, parameters, custom_headers:nil)
629
632
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
630
633
  fail ArgumentError, 'cluster_name is nil' if cluster_name.nil?
631
634
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -634,13 +637,12 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
634
637
 
635
638
 
636
639
  request_headers = {}
640
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
637
641
 
638
642
  # Set Headers
639
643
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
640
644
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
641
645
 
642
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
643
-
644
646
  # Serialize Request
645
647
  request_mapper = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::Cluster.mapper()
646
648
  request_content = @client.serialize(request_mapper, parameters)
@@ -697,8 +699,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
697
699
  #
698
700
  # @return [ClusterListResult] operation results.
699
701
  #
700
- def list_by_resource_group_next(next_page_link, custom_headers = nil)
701
- response = list_by_resource_group_next_async(next_page_link, custom_headers).value!
702
+ def list_by_resource_group_next(next_page_link, custom_headers:nil)
703
+ response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
702
704
  response.body unless response.nil?
703
705
  end
704
706
 
@@ -712,8 +714,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
712
714
  #
713
715
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
714
716
  #
715
- def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil)
716
- list_by_resource_group_next_async(next_page_link, custom_headers).value!
717
+ def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
718
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
717
719
  end
718
720
 
719
721
  #
@@ -726,11 +728,12 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
726
728
  #
727
729
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
728
730
  #
729
- def list_by_resource_group_next_async(next_page_link, custom_headers = nil)
731
+ def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
730
732
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
731
733
 
732
734
 
733
735
  request_headers = {}
736
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
734
737
 
735
738
  # Set Headers
736
739
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -784,8 +787,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
784
787
  #
785
788
  # @return [ClusterListResult] operation results.
786
789
  #
787
- def list_next(next_page_link, custom_headers = nil)
788
- response = list_next_async(next_page_link, custom_headers).value!
790
+ def list_next(next_page_link, custom_headers:nil)
791
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
789
792
  response.body unless response.nil?
790
793
  end
791
794
 
@@ -799,8 +802,8 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
799
802
  #
800
803
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
801
804
  #
802
- def list_next_with_http_info(next_page_link, custom_headers = nil)
803
- list_next_async(next_page_link, custom_headers).value!
805
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
806
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
804
807
  end
805
808
 
806
809
  #
@@ -813,11 +816,12 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
813
816
  #
814
817
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
815
818
  #
816
- def list_next_async(next_page_link, custom_headers = nil)
819
+ def list_next_async(next_page_link, custom_headers:nil)
817
820
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
818
821
 
819
822
 
820
823
  request_headers = {}
824
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
821
825
 
822
826
  # Set Headers
823
827
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -872,12 +876,12 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
872
876
  # @return [ClusterListResult] which provide lazy access to pages of the
873
877
  # response.
874
878
  #
875
- def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil)
876
- response = list_by_resource_group_async(resource_group_name, custom_headers).value!
879
+ def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil)
880
+ response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
877
881
  unless response.nil?
878
882
  page = response.body
879
883
  page.next_method = Proc.new do |next_page_link|
880
- list_by_resource_group_next_async(next_page_link, custom_headers)
884
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
881
885
  end
882
886
  page
883
887
  end
@@ -892,12 +896,12 @@ module Azure::ServiceFabric::Mgmt::V2016_09_01
892
896
  # @return [ClusterListResult] which provide lazy access to pages of the
893
897
  # response.
894
898
  #
895
- def list_as_lazy(custom_headers = nil)
896
- response = list_async(custom_headers).value!
899
+ def list_as_lazy(custom_headers:nil)
900
+ response = list_async(custom_headers:custom_headers).value!
897
901
  unless response.nil?
898
902
  page = response.body
899
903
  page.next_method = Proc.new do |next_page_link|
900
- list_next_async(next_page_link, custom_headers)
904
+ list_next_async(next_page_link, custom_headers:custom_headers)
901
905
  end
902
906
  page
903
907
  end