azure_mgmt_stor_simple8000_series 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 (23) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/access_control_records.rb +32 -30
  3. data/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/alerts.rb +27 -27
  4. data/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/backup_policies.rb +42 -39
  5. data/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/backup_schedules.rb +32 -30
  6. data/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/backups.rb +45 -42
  7. data/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/bandwidth_settings.rb +32 -30
  8. data/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/cloud_appliances.rb +16 -16
  9. data/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/device_settings.rb +74 -73
  10. data/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/devices.rb +114 -107
  11. data/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/hardware_component_groups.rb +16 -16
  12. data/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/jobs.rb +46 -40
  13. data/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/managers.rb +108 -98
  14. data/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/operations.rb +15 -13
  15. data/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/stor_simple8000series_management_client.rb +4 -1
  16. data/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/storage_account_credentials.rb +32 -30
  17. data/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/volume_containers.rb +44 -40
  18. data/lib/2017-06-01/generated/azure_mgmt_stor_simple8000_series/volumes.rb +50 -45
  19. data/lib/profiles/latest/modules/storsimple8000series_profile_module.rb +520 -501
  20. data/lib/profiles/latest/storsimple8000series_latest_profile_client.rb +28 -9
  21. data/lib/profiles/latest/storsimple8000series_module_definition.rb +0 -1
  22. data/lib/version.rb +1 -1
  23. metadata +3 -3
@@ -31,8 +31,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
31
31
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
32
32
  # will be added to the HTTP request.
33
33
  #
34
- def configure(parameters, resource_group_name, manager_name, custom_headers = nil)
35
- response = configure_async(parameters, resource_group_name, manager_name, custom_headers).value!
34
+ def configure(parameters, resource_group_name, manager_name, custom_headers:nil)
35
+ response = configure_async(parameters, resource_group_name, manager_name, custom_headers:custom_headers).value!
36
36
  nil
37
37
  end
38
38
 
@@ -47,9 +47,9 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
47
47
  # @return [Concurrent::Promise] promise which provides async access to http
48
48
  # response.
49
49
  #
50
- def configure_async(parameters, resource_group_name, manager_name, custom_headers = nil)
50
+ def configure_async(parameters, resource_group_name, manager_name, custom_headers:nil)
51
51
  # Send request
52
- promise = begin_configure_async(parameters, resource_group_name, manager_name, custom_headers)
52
+ promise = begin_configure_async(parameters, resource_group_name, manager_name, custom_headers:custom_headers)
53
53
 
54
54
  promise = promise.then do |response|
55
55
  # Defining deserialization method.
@@ -76,8 +76,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
76
76
  #
77
77
  # @return [DeviceList] operation results.
78
78
  #
79
- def list_by_manager(resource_group_name, manager_name, expand = nil, custom_headers = nil)
80
- response = list_by_manager_async(resource_group_name, manager_name, expand, custom_headers).value!
79
+ def list_by_manager(resource_group_name, manager_name, expand:nil, custom_headers:nil)
80
+ response = list_by_manager_async(resource_group_name, manager_name, expand:expand, custom_headers:custom_headers).value!
81
81
  response.body unless response.nil?
82
82
  end
83
83
 
@@ -94,8 +94,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
94
94
  #
95
95
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
96
96
  #
97
- def list_by_manager_with_http_info(resource_group_name, manager_name, expand = nil, custom_headers = nil)
98
- list_by_manager_async(resource_group_name, manager_name, expand, custom_headers).value!
97
+ def list_by_manager_with_http_info(resource_group_name, manager_name, expand:nil, custom_headers:nil)
98
+ list_by_manager_async(resource_group_name, manager_name, expand:expand, custom_headers:custom_headers).value!
99
99
  end
100
100
 
101
101
  #
@@ -111,7 +111,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
111
111
  #
112
112
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
113
113
  #
114
- def list_by_manager_async(resource_group_name, manager_name, expand = nil, custom_headers = nil)
114
+ def list_by_manager_async(resource_group_name, manager_name, expand:nil, custom_headers:nil)
115
115
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
116
116
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
117
117
  fail ArgumentError, 'manager_name is nil' if manager_name.nil?
@@ -121,6 +121,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_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
@@ -180,8 +181,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
180
181
  #
181
182
  # @return [Device] operation results.
182
183
  #
183
- def get(device_name, resource_group_name, manager_name, expand = nil, custom_headers = nil)
184
- response = get_async(device_name, resource_group_name, manager_name, expand, custom_headers).value!
184
+ def get(device_name, resource_group_name, manager_name, expand:nil, custom_headers:nil)
185
+ response = get_async(device_name, resource_group_name, manager_name, expand:expand, custom_headers:custom_headers).value!
185
186
  response.body unless response.nil?
186
187
  end
187
188
 
@@ -199,8 +200,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
199
200
  #
200
201
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
201
202
  #
202
- def get_with_http_info(device_name, resource_group_name, manager_name, expand = nil, custom_headers = nil)
203
- get_async(device_name, resource_group_name, manager_name, expand, custom_headers).value!
203
+ def get_with_http_info(device_name, resource_group_name, manager_name, expand:nil, custom_headers:nil)
204
+ get_async(device_name, resource_group_name, manager_name, expand:expand, custom_headers:custom_headers).value!
204
205
  end
205
206
 
206
207
  #
@@ -217,7 +218,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
217
218
  #
218
219
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
219
220
  #
220
- def get_async(device_name, resource_group_name, manager_name, expand = nil, custom_headers = nil)
221
+ def get_async(device_name, resource_group_name, manager_name, expand:nil, custom_headers:nil)
221
222
  fail ArgumentError, 'device_name is nil' if device_name.nil?
222
223
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
223
224
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -228,6 +229,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
228
229
 
229
230
 
230
231
  request_headers = {}
232
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
231
233
 
232
234
  # Set Headers
233
235
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -282,8 +284,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
282
284
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
283
285
  # will be added to the HTTP request.
284
286
  #
285
- def delete(device_name, resource_group_name, manager_name, custom_headers = nil)
286
- response = delete_async(device_name, resource_group_name, manager_name, custom_headers).value!
287
+ def delete(device_name, resource_group_name, manager_name, custom_headers:nil)
288
+ response = delete_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value!
287
289
  nil
288
290
  end
289
291
 
@@ -297,9 +299,9 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
297
299
  # @return [Concurrent::Promise] promise which provides async access to http
298
300
  # response.
299
301
  #
300
- def delete_async(device_name, resource_group_name, manager_name, custom_headers = nil)
302
+ def delete_async(device_name, resource_group_name, manager_name, custom_headers:nil)
301
303
  # Send request
302
- promise = begin_delete_async(device_name, resource_group_name, manager_name, custom_headers)
304
+ promise = begin_delete_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers)
303
305
 
304
306
  promise = promise.then do |response|
305
307
  # Defining deserialization method.
@@ -325,8 +327,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
325
327
  #
326
328
  # @return [Device] operation results.
327
329
  #
328
- def update(device_name, parameters, resource_group_name, manager_name, custom_headers = nil)
329
- response = update_async(device_name, parameters, resource_group_name, manager_name, custom_headers).value!
330
+ def update(device_name, parameters, resource_group_name, manager_name, custom_headers:nil)
331
+ response = update_async(device_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value!
330
332
  response.body unless response.nil?
331
333
  end
332
334
 
@@ -342,8 +344,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
342
344
  #
343
345
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
344
346
  #
345
- def update_with_http_info(device_name, parameters, resource_group_name, manager_name, custom_headers = nil)
346
- update_async(device_name, parameters, resource_group_name, manager_name, custom_headers).value!
347
+ def update_with_http_info(device_name, parameters, resource_group_name, manager_name, custom_headers:nil)
348
+ update_async(device_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value!
347
349
  end
348
350
 
349
351
  #
@@ -358,7 +360,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
358
360
  #
359
361
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
360
362
  #
361
- def update_async(device_name, parameters, resource_group_name, manager_name, custom_headers = nil)
363
+ def update_async(device_name, parameters, resource_group_name, manager_name, custom_headers:nil)
362
364
  fail ArgumentError, 'device_name is nil' if device_name.nil?
363
365
  fail ArgumentError, 'parameters is nil' if parameters.nil?
364
366
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -370,13 +372,12 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
370
372
 
371
373
 
372
374
  request_headers = {}
375
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
373
376
 
374
377
  # Set Headers
375
378
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
376
379
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
377
380
 
378
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
379
-
380
381
  # Serialize Request
381
382
  request_mapper = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::DevicePatch.mapper()
382
383
  request_content = @client.serialize(request_mapper, parameters)
@@ -433,8 +434,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
433
434
  # will be added to the HTTP request.
434
435
  #
435
436
  #
436
- def authorize_for_service_encryption_key_rollover(device_name, resource_group_name, manager_name, custom_headers = nil)
437
- response = authorize_for_service_encryption_key_rollover_async(device_name, resource_group_name, manager_name, custom_headers).value!
437
+ def authorize_for_service_encryption_key_rollover(device_name, resource_group_name, manager_name, custom_headers:nil)
438
+ response = authorize_for_service_encryption_key_rollover_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value!
438
439
  nil
439
440
  end
440
441
 
@@ -449,8 +450,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
449
450
  #
450
451
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
451
452
  #
452
- def authorize_for_service_encryption_key_rollover_with_http_info(device_name, resource_group_name, manager_name, custom_headers = nil)
453
- authorize_for_service_encryption_key_rollover_async(device_name, resource_group_name, manager_name, custom_headers).value!
453
+ def authorize_for_service_encryption_key_rollover_with_http_info(device_name, resource_group_name, manager_name, custom_headers:nil)
454
+ authorize_for_service_encryption_key_rollover_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value!
454
455
  end
455
456
 
456
457
  #
@@ -464,7 +465,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
464
465
  #
465
466
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
466
467
  #
467
- def authorize_for_service_encryption_key_rollover_async(device_name, resource_group_name, manager_name, custom_headers = nil)
468
+ def authorize_for_service_encryption_key_rollover_async(device_name, resource_group_name, manager_name, custom_headers:nil)
468
469
  fail ArgumentError, 'device_name is nil' if device_name.nil?
469
470
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
470
471
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -475,6 +476,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
475
476
 
476
477
 
477
478
  request_headers = {}
479
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
478
480
 
479
481
  # Set Headers
480
482
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -518,8 +520,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
518
520
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
519
521
  # will be added to the HTTP request.
520
522
  #
521
- def deactivate(device_name, resource_group_name, manager_name, custom_headers = nil)
522
- response = deactivate_async(device_name, resource_group_name, manager_name, custom_headers).value!
523
+ def deactivate(device_name, resource_group_name, manager_name, custom_headers:nil)
524
+ response = deactivate_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value!
523
525
  nil
524
526
  end
525
527
 
@@ -533,9 +535,9 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
533
535
  # @return [Concurrent::Promise] promise which provides async access to http
534
536
  # response.
535
537
  #
536
- def deactivate_async(device_name, resource_group_name, manager_name, custom_headers = nil)
538
+ def deactivate_async(device_name, resource_group_name, manager_name, custom_headers:nil)
537
539
  # Send request
538
- promise = begin_deactivate_async(device_name, resource_group_name, manager_name, custom_headers)
540
+ promise = begin_deactivate_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers)
539
541
 
540
542
  promise = promise.then do |response|
541
543
  # Defining deserialization method.
@@ -558,8 +560,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
558
560
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
559
561
  # will be added to the HTTP request.
560
562
  #
561
- def install_updates(device_name, resource_group_name, manager_name, custom_headers = nil)
562
- response = install_updates_async(device_name, resource_group_name, manager_name, custom_headers).value!
563
+ def install_updates(device_name, resource_group_name, manager_name, custom_headers:nil)
564
+ response = install_updates_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value!
563
565
  nil
564
566
  end
565
567
 
@@ -573,9 +575,9 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
573
575
  # @return [Concurrent::Promise] promise which provides async access to http
574
576
  # response.
575
577
  #
576
- def install_updates_async(device_name, resource_group_name, manager_name, custom_headers = nil)
578
+ def install_updates_async(device_name, resource_group_name, manager_name, custom_headers:nil)
577
579
  # Send request
578
- promise = begin_install_updates_async(device_name, resource_group_name, manager_name, custom_headers)
580
+ promise = begin_install_updates_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers)
579
581
 
580
582
  promise = promise.then do |response|
581
583
  # Defining deserialization method.
@@ -603,8 +605,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
603
605
  #
604
606
  # @return [FailoverSetsList] operation results.
605
607
  #
606
- def list_failover_sets(device_name, resource_group_name, manager_name, custom_headers = nil)
607
- response = list_failover_sets_async(device_name, resource_group_name, manager_name, custom_headers).value!
608
+ def list_failover_sets(device_name, resource_group_name, manager_name, custom_headers:nil)
609
+ response = list_failover_sets_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value!
608
610
  response.body unless response.nil?
609
611
  end
610
612
 
@@ -622,8 +624,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
622
624
  #
623
625
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
624
626
  #
625
- def list_failover_sets_with_http_info(device_name, resource_group_name, manager_name, custom_headers = nil)
626
- list_failover_sets_async(device_name, resource_group_name, manager_name, custom_headers).value!
627
+ def list_failover_sets_with_http_info(device_name, resource_group_name, manager_name, custom_headers:nil)
628
+ list_failover_sets_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value!
627
629
  end
628
630
 
629
631
  #
@@ -640,7 +642,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
640
642
  #
641
643
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
642
644
  #
643
- def list_failover_sets_async(device_name, resource_group_name, manager_name, custom_headers = nil)
645
+ def list_failover_sets_async(device_name, resource_group_name, manager_name, custom_headers:nil)
644
646
  fail ArgumentError, 'device_name is nil' if device_name.nil?
645
647
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
646
648
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -651,6 +653,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
651
653
 
652
654
 
653
655
  request_headers = {}
656
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
654
657
 
655
658
  # Set Headers
656
659
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -707,8 +710,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
707
710
  #
708
711
  # @return [MetricList] operation results.
709
712
  #
710
- def list_metrics(device_name, resource_group_name, manager_name, filter, custom_headers = nil)
711
- response = list_metrics_async(device_name, resource_group_name, manager_name, filter, custom_headers).value!
713
+ def list_metrics(device_name, resource_group_name, manager_name, filter, custom_headers:nil)
714
+ response = list_metrics_async(device_name, resource_group_name, manager_name, filter, custom_headers:custom_headers).value!
712
715
  response.body unless response.nil?
713
716
  end
714
717
 
@@ -724,8 +727,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
724
727
  #
725
728
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
726
729
  #
727
- def list_metrics_with_http_info(device_name, resource_group_name, manager_name, filter, custom_headers = nil)
728
- list_metrics_async(device_name, resource_group_name, manager_name, filter, custom_headers).value!
730
+ def list_metrics_with_http_info(device_name, resource_group_name, manager_name, filter, custom_headers:nil)
731
+ list_metrics_async(device_name, resource_group_name, manager_name, filter, custom_headers:custom_headers).value!
729
732
  end
730
733
 
731
734
  #
@@ -740,7 +743,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
740
743
  #
741
744
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
742
745
  #
743
- def list_metrics_async(device_name, resource_group_name, manager_name, filter, custom_headers = nil)
746
+ def list_metrics_async(device_name, resource_group_name, manager_name, filter, custom_headers:nil)
744
747
  fail ArgumentError, 'device_name is nil' if device_name.nil?
745
748
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
746
749
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -752,6 +755,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
752
755
 
753
756
 
754
757
  request_headers = {}
758
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
755
759
 
756
760
  # Set Headers
757
761
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -808,8 +812,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
808
812
  #
809
813
  # @return [MetricDefinitionList] operation results.
810
814
  #
811
- def list_metric_definition(device_name, resource_group_name, manager_name, custom_headers = nil)
812
- response = list_metric_definition_async(device_name, resource_group_name, manager_name, custom_headers).value!
815
+ def list_metric_definition(device_name, resource_group_name, manager_name, custom_headers:nil)
816
+ response = list_metric_definition_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value!
813
817
  response.body unless response.nil?
814
818
  end
815
819
 
@@ -824,8 +828,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
824
828
  #
825
829
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
826
830
  #
827
- def list_metric_definition_with_http_info(device_name, resource_group_name, manager_name, custom_headers = nil)
828
- list_metric_definition_async(device_name, resource_group_name, manager_name, custom_headers).value!
831
+ def list_metric_definition_with_http_info(device_name, resource_group_name, manager_name, custom_headers:nil)
832
+ list_metric_definition_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value!
829
833
  end
830
834
 
831
835
  #
@@ -839,7 +843,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
839
843
  #
840
844
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
841
845
  #
842
- def list_metric_definition_async(device_name, resource_group_name, manager_name, custom_headers = nil)
846
+ def list_metric_definition_async(device_name, resource_group_name, manager_name, custom_headers:nil)
843
847
  fail ArgumentError, 'device_name is nil' if device_name.nil?
844
848
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
845
849
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -850,6 +854,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
850
854
 
851
855
 
852
856
  request_headers = {}
857
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
853
858
 
854
859
  # Set Headers
855
860
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -903,8 +908,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
903
908
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
904
909
  # will be added to the HTTP request.
905
910
  #
906
- def scan_for_updates(device_name, resource_group_name, manager_name, custom_headers = nil)
907
- response = scan_for_updates_async(device_name, resource_group_name, manager_name, custom_headers).value!
911
+ def scan_for_updates(device_name, resource_group_name, manager_name, custom_headers:nil)
912
+ response = scan_for_updates_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value!
908
913
  nil
909
914
  end
910
915
 
@@ -918,9 +923,9 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
918
923
  # @return [Concurrent::Promise] promise which provides async access to http
919
924
  # response.
920
925
  #
921
- def scan_for_updates_async(device_name, resource_group_name, manager_name, custom_headers = nil)
926
+ def scan_for_updates_async(device_name, resource_group_name, manager_name, custom_headers:nil)
922
927
  # Send request
923
- promise = begin_scan_for_updates_async(device_name, resource_group_name, manager_name, custom_headers)
928
+ promise = begin_scan_for_updates_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers)
924
929
 
925
930
  promise = promise.then do |response|
926
931
  # Defining deserialization method.
@@ -945,8 +950,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
945
950
  #
946
951
  # @return [Updates] operation results.
947
952
  #
948
- def get_update_summary(device_name, resource_group_name, manager_name, custom_headers = nil)
949
- response = get_update_summary_async(device_name, resource_group_name, manager_name, custom_headers).value!
953
+ def get_update_summary(device_name, resource_group_name, manager_name, custom_headers:nil)
954
+ response = get_update_summary_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value!
950
955
  response.body unless response.nil?
951
956
  end
952
957
 
@@ -961,8 +966,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
961
966
  #
962
967
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
963
968
  #
964
- def get_update_summary_with_http_info(device_name, resource_group_name, manager_name, custom_headers = nil)
965
- get_update_summary_async(device_name, resource_group_name, manager_name, custom_headers).value!
969
+ def get_update_summary_with_http_info(device_name, resource_group_name, manager_name, custom_headers:nil)
970
+ get_update_summary_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value!
966
971
  end
967
972
 
968
973
  #
@@ -976,7 +981,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
976
981
  #
977
982
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
978
983
  #
979
- def get_update_summary_async(device_name, resource_group_name, manager_name, custom_headers = nil)
984
+ def get_update_summary_async(device_name, resource_group_name, manager_name, custom_headers:nil)
980
985
  fail ArgumentError, 'device_name is nil' if device_name.nil?
981
986
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
982
987
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -987,6 +992,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
987
992
 
988
993
 
989
994
  request_headers = {}
995
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
990
996
 
991
997
  # Set Headers
992
998
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1044,8 +1050,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
1044
1050
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1045
1051
  # will be added to the HTTP request.
1046
1052
  #
1047
- def failover(source_device_name, parameters, resource_group_name, manager_name, custom_headers = nil)
1048
- response = failover_async(source_device_name, parameters, resource_group_name, manager_name, custom_headers).value!
1053
+ def failover(source_device_name, parameters, resource_group_name, manager_name, custom_headers:nil)
1054
+ response = failover_async(source_device_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value!
1049
1055
  nil
1050
1056
  end
1051
1057
 
@@ -1062,9 +1068,9 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
1062
1068
  # @return [Concurrent::Promise] promise which provides async access to http
1063
1069
  # response.
1064
1070
  #
1065
- def failover_async(source_device_name, parameters, resource_group_name, manager_name, custom_headers = nil)
1071
+ def failover_async(source_device_name, parameters, resource_group_name, manager_name, custom_headers:nil)
1066
1072
  # Send request
1067
- promise = begin_failover_async(source_device_name, parameters, resource_group_name, manager_name, custom_headers)
1073
+ promise = begin_failover_async(source_device_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers)
1068
1074
 
1069
1075
  promise = promise.then do |response|
1070
1076
  # Defining deserialization method.
@@ -1094,8 +1100,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
1094
1100
  #
1095
1101
  # @return [FailoverTargetsList] operation results.
1096
1102
  #
1097
- def list_failover_targets(source_device_name, parameters, resource_group_name, manager_name, custom_headers = nil)
1098
- response = list_failover_targets_async(source_device_name, parameters, resource_group_name, manager_name, custom_headers).value!
1103
+ def list_failover_targets(source_device_name, parameters, resource_group_name, manager_name, custom_headers:nil)
1104
+ response = list_failover_targets_async(source_device_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value!
1099
1105
  response.body unless response.nil?
1100
1106
  end
1101
1107
 
@@ -1115,8 +1121,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
1115
1121
  #
1116
1122
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1117
1123
  #
1118
- def list_failover_targets_with_http_info(source_device_name, parameters, resource_group_name, manager_name, custom_headers = nil)
1119
- list_failover_targets_async(source_device_name, parameters, resource_group_name, manager_name, custom_headers).value!
1124
+ def list_failover_targets_with_http_info(source_device_name, parameters, resource_group_name, manager_name, custom_headers:nil)
1125
+ list_failover_targets_async(source_device_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value!
1120
1126
  end
1121
1127
 
1122
1128
  #
@@ -1135,7 +1141,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
1135
1141
  #
1136
1142
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1137
1143
  #
1138
- def list_failover_targets_async(source_device_name, parameters, resource_group_name, manager_name, custom_headers = nil)
1144
+ def list_failover_targets_async(source_device_name, parameters, resource_group_name, manager_name, custom_headers:nil)
1139
1145
  fail ArgumentError, 'source_device_name is nil' if source_device_name.nil?
1140
1146
  fail ArgumentError, 'parameters is nil' if parameters.nil?
1141
1147
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -1147,13 +1153,12 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
1147
1153
 
1148
1154
 
1149
1155
  request_headers = {}
1156
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1150
1157
 
1151
1158
  # Set Headers
1152
1159
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1153
1160
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1154
1161
 
1155
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1156
-
1157
1162
  # Serialize Request
1158
1163
  request_mapper = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ListFailoverTargetsRequest.mapper()
1159
1164
  request_content = @client.serialize(request_mapper, parameters)
@@ -1211,8 +1216,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
1211
1216
  # will be added to the HTTP request.
1212
1217
  #
1213
1218
  #
1214
- def begin_configure(parameters, resource_group_name, manager_name, custom_headers = nil)
1215
- response = begin_configure_async(parameters, resource_group_name, manager_name, custom_headers).value!
1219
+ def begin_configure(parameters, resource_group_name, manager_name, custom_headers:nil)
1220
+ response = begin_configure_async(parameters, resource_group_name, manager_name, custom_headers:custom_headers).value!
1216
1221
  nil
1217
1222
  end
1218
1223
 
@@ -1228,8 +1233,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
1228
1233
  #
1229
1234
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1230
1235
  #
1231
- def begin_configure_with_http_info(parameters, resource_group_name, manager_name, custom_headers = nil)
1232
- begin_configure_async(parameters, resource_group_name, manager_name, custom_headers).value!
1236
+ def begin_configure_with_http_info(parameters, resource_group_name, manager_name, custom_headers:nil)
1237
+ begin_configure_async(parameters, resource_group_name, manager_name, custom_headers:custom_headers).value!
1233
1238
  end
1234
1239
 
1235
1240
  #
@@ -1244,7 +1249,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
1244
1249
  #
1245
1250
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1246
1251
  #
1247
- def begin_configure_async(parameters, resource_group_name, manager_name, custom_headers = nil)
1252
+ def begin_configure_async(parameters, resource_group_name, manager_name, custom_headers:nil)
1248
1253
  fail ArgumentError, 'parameters is nil' if parameters.nil?
1249
1254
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1250
1255
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -1255,13 +1260,12 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
1255
1260
 
1256
1261
 
1257
1262
  request_headers = {}
1263
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1258
1264
 
1259
1265
  # Set Headers
1260
1266
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1261
1267
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1262
1268
 
1263
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1264
-
1265
1269
  # Serialize Request
1266
1270
  request_mapper = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::ConfigureDeviceRequest.mapper()
1267
1271
  request_content = @client.serialize(request_mapper, parameters)
@@ -1308,8 +1312,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
1308
1312
  # will be added to the HTTP request.
1309
1313
  #
1310
1314
  #
1311
- def begin_delete(device_name, resource_group_name, manager_name, custom_headers = nil)
1312
- response = begin_delete_async(device_name, resource_group_name, manager_name, custom_headers).value!
1315
+ def begin_delete(device_name, resource_group_name, manager_name, custom_headers:nil)
1316
+ response = begin_delete_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value!
1313
1317
  nil
1314
1318
  end
1315
1319
 
@@ -1324,8 +1328,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
1324
1328
  #
1325
1329
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1326
1330
  #
1327
- def begin_delete_with_http_info(device_name, resource_group_name, manager_name, custom_headers = nil)
1328
- begin_delete_async(device_name, resource_group_name, manager_name, custom_headers).value!
1331
+ def begin_delete_with_http_info(device_name, resource_group_name, manager_name, custom_headers:nil)
1332
+ begin_delete_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value!
1329
1333
  end
1330
1334
 
1331
1335
  #
@@ -1339,7 +1343,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
1339
1343
  #
1340
1344
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1341
1345
  #
1342
- def begin_delete_async(device_name, resource_group_name, manager_name, custom_headers = nil)
1346
+ def begin_delete_async(device_name, resource_group_name, manager_name, custom_headers:nil)
1343
1347
  fail ArgumentError, 'device_name is nil' if device_name.nil?
1344
1348
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1345
1349
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -1350,6 +1354,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
1350
1354
 
1351
1355
 
1352
1356
  request_headers = {}
1357
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1353
1358
 
1354
1359
  # Set Headers
1355
1360
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1394,8 +1399,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
1394
1399
  # will be added to the HTTP request.
1395
1400
  #
1396
1401
  #
1397
- def begin_deactivate(device_name, resource_group_name, manager_name, custom_headers = nil)
1398
- response = begin_deactivate_async(device_name, resource_group_name, manager_name, custom_headers).value!
1402
+ def begin_deactivate(device_name, resource_group_name, manager_name, custom_headers:nil)
1403
+ response = begin_deactivate_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value!
1399
1404
  nil
1400
1405
  end
1401
1406
 
@@ -1410,8 +1415,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
1410
1415
  #
1411
1416
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1412
1417
  #
1413
- def begin_deactivate_with_http_info(device_name, resource_group_name, manager_name, custom_headers = nil)
1414
- begin_deactivate_async(device_name, resource_group_name, manager_name, custom_headers).value!
1418
+ def begin_deactivate_with_http_info(device_name, resource_group_name, manager_name, custom_headers:nil)
1419
+ begin_deactivate_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value!
1415
1420
  end
1416
1421
 
1417
1422
  #
@@ -1425,7 +1430,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
1425
1430
  #
1426
1431
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1427
1432
  #
1428
- def begin_deactivate_async(device_name, resource_group_name, manager_name, custom_headers = nil)
1433
+ def begin_deactivate_async(device_name, resource_group_name, manager_name, custom_headers:nil)
1429
1434
  fail ArgumentError, 'device_name is nil' if device_name.nil?
1430
1435
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1431
1436
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -1436,6 +1441,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
1436
1441
 
1437
1442
 
1438
1443
  request_headers = {}
1444
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1439
1445
 
1440
1446
  # Set Headers
1441
1447
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1480,8 +1486,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
1480
1486
  # will be added to the HTTP request.
1481
1487
  #
1482
1488
  #
1483
- def begin_install_updates(device_name, resource_group_name, manager_name, custom_headers = nil)
1484
- response = begin_install_updates_async(device_name, resource_group_name, manager_name, custom_headers).value!
1489
+ def begin_install_updates(device_name, resource_group_name, manager_name, custom_headers:nil)
1490
+ response = begin_install_updates_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value!
1485
1491
  nil
1486
1492
  end
1487
1493
 
@@ -1496,8 +1502,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
1496
1502
  #
1497
1503
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1498
1504
  #
1499
- def begin_install_updates_with_http_info(device_name, resource_group_name, manager_name, custom_headers = nil)
1500
- begin_install_updates_async(device_name, resource_group_name, manager_name, custom_headers).value!
1505
+ def begin_install_updates_with_http_info(device_name, resource_group_name, manager_name, custom_headers:nil)
1506
+ begin_install_updates_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value!
1501
1507
  end
1502
1508
 
1503
1509
  #
@@ -1511,7 +1517,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
1511
1517
  #
1512
1518
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1513
1519
  #
1514
- def begin_install_updates_async(device_name, resource_group_name, manager_name, custom_headers = nil)
1520
+ def begin_install_updates_async(device_name, resource_group_name, manager_name, custom_headers:nil)
1515
1521
  fail ArgumentError, 'device_name is nil' if device_name.nil?
1516
1522
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1517
1523
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -1522,6 +1528,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
1522
1528
 
1523
1529
 
1524
1530
  request_headers = {}
1531
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1525
1532
 
1526
1533
  # Set Headers
1527
1534
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1566,8 +1573,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
1566
1573
  # will be added to the HTTP request.
1567
1574
  #
1568
1575
  #
1569
- def begin_scan_for_updates(device_name, resource_group_name, manager_name, custom_headers = nil)
1570
- response = begin_scan_for_updates_async(device_name, resource_group_name, manager_name, custom_headers).value!
1576
+ def begin_scan_for_updates(device_name, resource_group_name, manager_name, custom_headers:nil)
1577
+ response = begin_scan_for_updates_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value!
1571
1578
  nil
1572
1579
  end
1573
1580
 
@@ -1582,8 +1589,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
1582
1589
  #
1583
1590
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1584
1591
  #
1585
- def begin_scan_for_updates_with_http_info(device_name, resource_group_name, manager_name, custom_headers = nil)
1586
- begin_scan_for_updates_async(device_name, resource_group_name, manager_name, custom_headers).value!
1592
+ def begin_scan_for_updates_with_http_info(device_name, resource_group_name, manager_name, custom_headers:nil)
1593
+ begin_scan_for_updates_async(device_name, resource_group_name, manager_name, custom_headers:custom_headers).value!
1587
1594
  end
1588
1595
 
1589
1596
  #
@@ -1597,7 +1604,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
1597
1604
  #
1598
1605
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1599
1606
  #
1600
- def begin_scan_for_updates_async(device_name, resource_group_name, manager_name, custom_headers = nil)
1607
+ def begin_scan_for_updates_async(device_name, resource_group_name, manager_name, custom_headers:nil)
1601
1608
  fail ArgumentError, 'device_name is nil' if device_name.nil?
1602
1609
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1603
1610
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -1608,6 +1615,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
1608
1615
 
1609
1616
 
1610
1617
  request_headers = {}
1618
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1611
1619
 
1612
1620
  # Set Headers
1613
1621
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1656,8 +1664,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
1656
1664
  # will be added to the HTTP request.
1657
1665
  #
1658
1666
  #
1659
- def begin_failover(source_device_name, parameters, resource_group_name, manager_name, custom_headers = nil)
1660
- response = begin_failover_async(source_device_name, parameters, resource_group_name, manager_name, custom_headers).value!
1667
+ def begin_failover(source_device_name, parameters, resource_group_name, manager_name, custom_headers:nil)
1668
+ response = begin_failover_async(source_device_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value!
1661
1669
  nil
1662
1670
  end
1663
1671
 
@@ -1676,8 +1684,8 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
1676
1684
  #
1677
1685
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1678
1686
  #
1679
- def begin_failover_with_http_info(source_device_name, parameters, resource_group_name, manager_name, custom_headers = nil)
1680
- begin_failover_async(source_device_name, parameters, resource_group_name, manager_name, custom_headers).value!
1687
+ def begin_failover_with_http_info(source_device_name, parameters, resource_group_name, manager_name, custom_headers:nil)
1688
+ begin_failover_async(source_device_name, parameters, resource_group_name, manager_name, custom_headers:custom_headers).value!
1681
1689
  end
1682
1690
 
1683
1691
  #
@@ -1695,7 +1703,7 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
1695
1703
  #
1696
1704
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1697
1705
  #
1698
- def begin_failover_async(source_device_name, parameters, resource_group_name, manager_name, custom_headers = nil)
1706
+ def begin_failover_async(source_device_name, parameters, resource_group_name, manager_name, custom_headers:nil)
1699
1707
  fail ArgumentError, 'source_device_name is nil' if source_device_name.nil?
1700
1708
  fail ArgumentError, 'parameters is nil' if parameters.nil?
1701
1709
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -1707,13 +1715,12 @@ module Azure::StorSimple8000Series::Mgmt::V2017_06_01
1707
1715
 
1708
1716
 
1709
1717
  request_headers = {}
1718
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1710
1719
 
1711
1720
  # Set Headers
1712
1721
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1713
1722
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1714
1723
 
1715
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1716
-
1717
1724
  # Serialize Request
1718
1725
  request_mapper = Azure::StorSimple8000Series::Mgmt::V2017_06_01::Models::FailoverRequest.mapper()
1719
1726
  request_content = @client.serialize(request_mapper, parameters)