azure_mgmt_recovery_services_site_recovery 0.15.2 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/models/azure_fabric_creation_input.rb +2 -2
  3. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/models/fabric_specific_creation_input.rb +1 -1
  4. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/operations.rb +15 -13
  5. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/recovery_points.rb +21 -18
  6. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_alert_settings.rb +27 -25
  7. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_events.rb +21 -18
  8. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_fabrics.rb +91 -87
  9. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_jobs.rb +61 -58
  10. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_logical_networks.rb +21 -18
  11. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_network_mappings.rb +66 -62
  12. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_networks.rb +36 -31
  13. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_policies.rb +51 -49
  14. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protectable_items.rb +21 -18
  15. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protected_items.rb +166 -168
  16. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protection_container_mappings.rb +66 -62
  17. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protection_containers.rb +76 -73
  18. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_recovery_plans.rb +111 -111
  19. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_recovery_services_providers.rb +66 -58
  20. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_storage_classification_mappings.rb +56 -51
  21. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_storage_classifications.rb +36 -31
  22. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_vault_health.rb +6 -5
  23. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replicationv_centers.rb +66 -62
  24. data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/site_recovery_management_client.rb +4 -1
  25. data/lib/profiles/latest/modules/recoveryservicessiterecovery_profile_module.rb +1022 -1003
  26. data/lib/profiles/latest/recoveryservicessiterecovery_latest_profile_client.rb +28 -9
  27. data/lib/profiles/latest/recoveryservicessiterecovery_module_definition.rb +0 -1
  28. data/lib/version.rb +1 -1
  29. metadata +3 -3
@@ -32,8 +32,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
32
32
  #
33
33
  # @return [RecoveryPlan] operation results.
34
34
  #
35
- def reprotect(recovery_plan_name, custom_headers = nil)
36
- response = reprotect_async(recovery_plan_name, custom_headers).value!
35
+ def reprotect(recovery_plan_name, custom_headers:nil)
36
+ response = reprotect_async(recovery_plan_name, custom_headers:custom_headers).value!
37
37
  response.body unless response.nil?
38
38
  end
39
39
 
@@ -45,9 +45,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
45
45
  # @return [Concurrent::Promise] promise which provides async access to http
46
46
  # response.
47
47
  #
48
- def reprotect_async(recovery_plan_name, custom_headers = nil)
48
+ def reprotect_async(recovery_plan_name, custom_headers:nil)
49
49
  # Send request
50
- promise = begin_reprotect_async(recovery_plan_name, custom_headers)
50
+ promise = begin_reprotect_async(recovery_plan_name, custom_headers:custom_headers)
51
51
 
52
52
  promise = promise.then do |response|
53
53
  # Defining deserialization method.
@@ -74,8 +74,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
74
74
  #
75
75
  # @return [RecoveryPlan] operation results.
76
76
  #
77
- def failover_commit(recovery_plan_name, custom_headers = nil)
78
- response = failover_commit_async(recovery_plan_name, custom_headers).value!
77
+ def failover_commit(recovery_plan_name, custom_headers:nil)
78
+ response = failover_commit_async(recovery_plan_name, custom_headers:custom_headers).value!
79
79
  response.body unless response.nil?
80
80
  end
81
81
 
@@ -87,9 +87,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
87
87
  # @return [Concurrent::Promise] promise which provides async access to http
88
88
  # response.
89
89
  #
90
- def failover_commit_async(recovery_plan_name, custom_headers = nil)
90
+ def failover_commit_async(recovery_plan_name, custom_headers:nil)
91
91
  # Send request
92
- promise = begin_failover_commit_async(recovery_plan_name, custom_headers)
92
+ promise = begin_failover_commit_async(recovery_plan_name, custom_headers:custom_headers)
93
93
 
94
94
  promise = promise.then do |response|
95
95
  # Defining deserialization method.
@@ -118,8 +118,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
118
118
  #
119
119
  # @return [RecoveryPlan] operation results.
120
120
  #
121
- def test_failover_cleanup(recovery_plan_name, input, custom_headers = nil)
122
- response = test_failover_cleanup_async(recovery_plan_name, input, custom_headers).value!
121
+ def test_failover_cleanup(recovery_plan_name, input, custom_headers:nil)
122
+ response = test_failover_cleanup_async(recovery_plan_name, input, custom_headers:custom_headers).value!
123
123
  response.body unless response.nil?
124
124
  end
125
125
 
@@ -133,9 +133,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
133
133
  # @return [Concurrent::Promise] promise which provides async access to http
134
134
  # response.
135
135
  #
136
- def test_failover_cleanup_async(recovery_plan_name, input, custom_headers = nil)
136
+ def test_failover_cleanup_async(recovery_plan_name, input, custom_headers:nil)
137
137
  # Send request
138
- promise = begin_test_failover_cleanup_async(recovery_plan_name, input, custom_headers)
138
+ promise = begin_test_failover_cleanup_async(recovery_plan_name, input, custom_headers:custom_headers)
139
139
 
140
140
  promise = promise.then do |response|
141
141
  # Defining deserialization method.
@@ -163,8 +163,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
163
163
  #
164
164
  # @return [RecoveryPlan] operation results.
165
165
  #
166
- def test_failover(recovery_plan_name, input, custom_headers = nil)
167
- response = test_failover_async(recovery_plan_name, input, custom_headers).value!
166
+ def test_failover(recovery_plan_name, input, custom_headers:nil)
167
+ response = test_failover_async(recovery_plan_name, input, custom_headers:custom_headers).value!
168
168
  response.body unless response.nil?
169
169
  end
170
170
 
@@ -177,9 +177,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
177
177
  # @return [Concurrent::Promise] promise which provides async access to http
178
178
  # response.
179
179
  #
180
- def test_failover_async(recovery_plan_name, input, custom_headers = nil)
180
+ def test_failover_async(recovery_plan_name, input, custom_headers:nil)
181
181
  # Send request
182
- promise = begin_test_failover_async(recovery_plan_name, input, custom_headers)
182
+ promise = begin_test_failover_async(recovery_plan_name, input, custom_headers:custom_headers)
183
183
 
184
184
  promise = promise.then do |response|
185
185
  # Defining deserialization method.
@@ -207,8 +207,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
207
207
  #
208
208
  # @return [RecoveryPlan] operation results.
209
209
  #
210
- def unplanned_failover(recovery_plan_name, input, custom_headers = nil)
211
- response = unplanned_failover_async(recovery_plan_name, input, custom_headers).value!
210
+ def unplanned_failover(recovery_plan_name, input, custom_headers:nil)
211
+ response = unplanned_failover_async(recovery_plan_name, input, custom_headers:custom_headers).value!
212
212
  response.body unless response.nil?
213
213
  end
214
214
 
@@ -221,9 +221,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
221
221
  # @return [Concurrent::Promise] promise which provides async access to http
222
222
  # response.
223
223
  #
224
- def unplanned_failover_async(recovery_plan_name, input, custom_headers = nil)
224
+ def unplanned_failover_async(recovery_plan_name, input, custom_headers:nil)
225
225
  # Send request
226
- promise = begin_unplanned_failover_async(recovery_plan_name, input, custom_headers)
226
+ promise = begin_unplanned_failover_async(recovery_plan_name, input, custom_headers:custom_headers)
227
227
 
228
228
  promise = promise.then do |response|
229
229
  # Defining deserialization method.
@@ -251,8 +251,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
251
251
  #
252
252
  # @return [RecoveryPlan] operation results.
253
253
  #
254
- def planned_failover(recovery_plan_name, input, custom_headers = nil)
255
- response = planned_failover_async(recovery_plan_name, input, custom_headers).value!
254
+ def planned_failover(recovery_plan_name, input, custom_headers:nil)
255
+ response = planned_failover_async(recovery_plan_name, input, custom_headers:custom_headers).value!
256
256
  response.body unless response.nil?
257
257
  end
258
258
 
@@ -265,9 +265,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
265
265
  # @return [Concurrent::Promise] promise which provides async access to http
266
266
  # response.
267
267
  #
268
- def planned_failover_async(recovery_plan_name, input, custom_headers = nil)
268
+ def planned_failover_async(recovery_plan_name, input, custom_headers:nil)
269
269
  # Send request
270
- promise = begin_planned_failover_async(recovery_plan_name, input, custom_headers)
270
+ promise = begin_planned_failover_async(recovery_plan_name, input, custom_headers:custom_headers)
271
271
 
272
272
  promise = promise.then do |response|
273
273
  # Defining deserialization method.
@@ -294,8 +294,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
294
294
  #
295
295
  # @return [RecoveryPlan] operation results.
296
296
  #
297
- def get(recovery_plan_name, custom_headers = nil)
298
- response = get_async(recovery_plan_name, custom_headers).value!
297
+ def get(recovery_plan_name, custom_headers:nil)
298
+ response = get_async(recovery_plan_name, custom_headers:custom_headers).value!
299
299
  response.body unless response.nil?
300
300
  end
301
301
 
@@ -310,8 +310,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
310
310
  #
311
311
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
312
312
  #
313
- def get_with_http_info(recovery_plan_name, custom_headers = nil)
314
- get_async(recovery_plan_name, custom_headers).value!
313
+ def get_with_http_info(recovery_plan_name, custom_headers:nil)
314
+ get_async(recovery_plan_name, custom_headers:custom_headers).value!
315
315
  end
316
316
 
317
317
  #
@@ -325,7 +325,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
325
325
  #
326
326
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
327
327
  #
328
- def get_async(recovery_plan_name, custom_headers = nil)
328
+ def get_async(recovery_plan_name, custom_headers:nil)
329
329
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
330
330
  fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
331
331
  fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
@@ -334,6 +334,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
334
334
 
335
335
 
336
336
  request_headers = {}
337
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
337
338
 
338
339
  # Set Headers
339
340
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -390,8 +391,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
390
391
  #
391
392
  # @return [RecoveryPlan] operation results.
392
393
  #
393
- def create(recovery_plan_name, input, custom_headers = nil)
394
- response = create_async(recovery_plan_name, input, custom_headers).value!
394
+ def create(recovery_plan_name, input, custom_headers:nil)
395
+ response = create_async(recovery_plan_name, input, custom_headers:custom_headers).value!
395
396
  response.body unless response.nil?
396
397
  end
397
398
 
@@ -404,9 +405,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
404
405
  # @return [Concurrent::Promise] promise which provides async access to http
405
406
  # response.
406
407
  #
407
- def create_async(recovery_plan_name, input, custom_headers = nil)
408
+ def create_async(recovery_plan_name, input, custom_headers:nil)
408
409
  # Send request
409
- promise = begin_create_async(recovery_plan_name, input, custom_headers)
410
+ promise = begin_create_async(recovery_plan_name, input, custom_headers:custom_headers)
410
411
 
411
412
  promise = promise.then do |response|
412
413
  # Defining deserialization method.
@@ -431,8 +432,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
431
432
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
432
433
  # will be added to the HTTP request.
433
434
  #
434
- def delete(recovery_plan_name, custom_headers = nil)
435
- response = delete_async(recovery_plan_name, custom_headers).value!
435
+ def delete(recovery_plan_name, custom_headers:nil)
436
+ response = delete_async(recovery_plan_name, custom_headers:custom_headers).value!
436
437
  nil
437
438
  end
438
439
 
@@ -444,9 +445,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
444
445
  # @return [Concurrent::Promise] promise which provides async access to http
445
446
  # response.
446
447
  #
447
- def delete_async(recovery_plan_name, custom_headers = nil)
448
+ def delete_async(recovery_plan_name, custom_headers:nil)
448
449
  # Send request
449
- promise = begin_delete_async(recovery_plan_name, custom_headers)
450
+ promise = begin_delete_async(recovery_plan_name, custom_headers:custom_headers)
450
451
 
451
452
  promise = promise.then do |response|
452
453
  # Defining deserialization method.
@@ -472,8 +473,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
472
473
  #
473
474
  # @return [RecoveryPlan] operation results.
474
475
  #
475
- def update(recovery_plan_name, input, custom_headers = nil)
476
- response = update_async(recovery_plan_name, input, custom_headers).value!
476
+ def update(recovery_plan_name, input, custom_headers:nil)
477
+ response = update_async(recovery_plan_name, input, custom_headers:custom_headers).value!
477
478
  response.body unless response.nil?
478
479
  end
479
480
 
@@ -486,9 +487,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
486
487
  # @return [Concurrent::Promise] promise which provides async access to http
487
488
  # response.
488
489
  #
489
- def update_async(recovery_plan_name, input, custom_headers = nil)
490
+ def update_async(recovery_plan_name, input, custom_headers:nil)
490
491
  # Send request
491
- promise = begin_update_async(recovery_plan_name, input, custom_headers)
492
+ promise = begin_update_async(recovery_plan_name, input, custom_headers:custom_headers)
492
493
 
493
494
  promise = promise.then do |response|
494
495
  # Defining deserialization method.
@@ -514,8 +515,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
514
515
  #
515
516
  # @return [Array<RecoveryPlan>] operation results.
516
517
  #
517
- def list(custom_headers = nil)
518
- first_page = list_as_lazy(custom_headers)
518
+ def list(custom_headers:nil)
519
+ first_page = list_as_lazy(custom_headers:custom_headers)
519
520
  first_page.get_all_items
520
521
  end
521
522
 
@@ -529,8 +530,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
529
530
  #
530
531
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
531
532
  #
532
- def list_with_http_info(custom_headers = nil)
533
- list_async(custom_headers).value!
533
+ def list_with_http_info(custom_headers:nil)
534
+ list_async(custom_headers:custom_headers).value!
534
535
  end
535
536
 
536
537
  #
@@ -543,7 +544,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
543
544
  #
544
545
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
545
546
  #
546
- def list_async(custom_headers = nil)
547
+ def list_async(custom_headers:nil)
547
548
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
548
549
  fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
549
550
  fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
@@ -551,6 +552,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
551
552
 
552
553
 
553
554
  request_headers = {}
555
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
554
556
 
555
557
  # Set Headers
556
558
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -606,8 +608,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
606
608
  #
607
609
  # @return [RecoveryPlan] operation results.
608
610
  #
609
- def begin_reprotect(recovery_plan_name, custom_headers = nil)
610
- response = begin_reprotect_async(recovery_plan_name, custom_headers).value!
611
+ def begin_reprotect(recovery_plan_name, custom_headers:nil)
612
+ response = begin_reprotect_async(recovery_plan_name, custom_headers:custom_headers).value!
611
613
  response.body unless response.nil?
612
614
  end
613
615
 
@@ -622,8 +624,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
622
624
  #
623
625
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
624
626
  #
625
- def begin_reprotect_with_http_info(recovery_plan_name, custom_headers = nil)
626
- begin_reprotect_async(recovery_plan_name, custom_headers).value!
627
+ def begin_reprotect_with_http_info(recovery_plan_name, custom_headers:nil)
628
+ begin_reprotect_async(recovery_plan_name, custom_headers:custom_headers).value!
627
629
  end
628
630
 
629
631
  #
@@ -637,7 +639,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
637
639
  #
638
640
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
639
641
  #
640
- def begin_reprotect_async(recovery_plan_name, custom_headers = nil)
642
+ def begin_reprotect_async(recovery_plan_name, custom_headers:nil)
641
643
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
642
644
  fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
643
645
  fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
@@ -646,6 +648,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
646
648
 
647
649
 
648
650
  request_headers = {}
651
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
649
652
 
650
653
  # Set Headers
651
654
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -701,8 +704,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
701
704
  #
702
705
  # @return [RecoveryPlan] operation results.
703
706
  #
704
- def begin_failover_commit(recovery_plan_name, custom_headers = nil)
705
- response = begin_failover_commit_async(recovery_plan_name, custom_headers).value!
707
+ def begin_failover_commit(recovery_plan_name, custom_headers:nil)
708
+ response = begin_failover_commit_async(recovery_plan_name, custom_headers:custom_headers).value!
706
709
  response.body unless response.nil?
707
710
  end
708
711
 
@@ -717,8 +720,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
717
720
  #
718
721
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
719
722
  #
720
- def begin_failover_commit_with_http_info(recovery_plan_name, custom_headers = nil)
721
- begin_failover_commit_async(recovery_plan_name, custom_headers).value!
723
+ def begin_failover_commit_with_http_info(recovery_plan_name, custom_headers:nil)
724
+ begin_failover_commit_async(recovery_plan_name, custom_headers:custom_headers).value!
722
725
  end
723
726
 
724
727
  #
@@ -732,7 +735,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
732
735
  #
733
736
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
734
737
  #
735
- def begin_failover_commit_async(recovery_plan_name, custom_headers = nil)
738
+ def begin_failover_commit_async(recovery_plan_name, custom_headers:nil)
736
739
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
737
740
  fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
738
741
  fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
@@ -741,6 +744,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
741
744
 
742
745
 
743
746
  request_headers = {}
747
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
744
748
 
745
749
  # Set Headers
746
750
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -798,8 +802,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
798
802
  #
799
803
  # @return [RecoveryPlan] operation results.
800
804
  #
801
- def begin_test_failover_cleanup(recovery_plan_name, input, custom_headers = nil)
802
- response = begin_test_failover_cleanup_async(recovery_plan_name, input, custom_headers).value!
805
+ def begin_test_failover_cleanup(recovery_plan_name, input, custom_headers:nil)
806
+ response = begin_test_failover_cleanup_async(recovery_plan_name, input, custom_headers:custom_headers).value!
803
807
  response.body unless response.nil?
804
808
  end
805
809
 
@@ -816,8 +820,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
816
820
  #
817
821
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
818
822
  #
819
- def begin_test_failover_cleanup_with_http_info(recovery_plan_name, input, custom_headers = nil)
820
- begin_test_failover_cleanup_async(recovery_plan_name, input, custom_headers).value!
823
+ def begin_test_failover_cleanup_with_http_info(recovery_plan_name, input, custom_headers:nil)
824
+ begin_test_failover_cleanup_async(recovery_plan_name, input, custom_headers:custom_headers).value!
821
825
  end
822
826
 
823
827
  #
@@ -833,7 +837,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
833
837
  #
834
838
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
835
839
  #
836
- def begin_test_failover_cleanup_async(recovery_plan_name, input, custom_headers = nil)
840
+ def begin_test_failover_cleanup_async(recovery_plan_name, input, custom_headers:nil)
837
841
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
838
842
  fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
839
843
  fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
@@ -843,13 +847,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
843
847
 
844
848
 
845
849
  request_headers = {}
850
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
846
851
 
847
852
  # Set Headers
848
853
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
849
854
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
850
855
 
851
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
852
-
853
856
  # Serialize Request
854
857
  request_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::Models::RecoveryPlanTestFailoverCleanupInput.mapper()
855
858
  request_content = @client.serialize(request_mapper, input)
@@ -908,8 +911,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
908
911
  #
909
912
  # @return [RecoveryPlan] operation results.
910
913
  #
911
- def begin_test_failover(recovery_plan_name, input, custom_headers = nil)
912
- response = begin_test_failover_async(recovery_plan_name, input, custom_headers).value!
914
+ def begin_test_failover(recovery_plan_name, input, custom_headers:nil)
915
+ response = begin_test_failover_async(recovery_plan_name, input, custom_headers:custom_headers).value!
913
916
  response.body unless response.nil?
914
917
  end
915
918
 
@@ -925,8 +928,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
925
928
  #
926
929
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
927
930
  #
928
- def begin_test_failover_with_http_info(recovery_plan_name, input, custom_headers = nil)
929
- begin_test_failover_async(recovery_plan_name, input, custom_headers).value!
931
+ def begin_test_failover_with_http_info(recovery_plan_name, input, custom_headers:nil)
932
+ begin_test_failover_async(recovery_plan_name, input, custom_headers:custom_headers).value!
930
933
  end
931
934
 
932
935
  #
@@ -941,7 +944,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
941
944
  #
942
945
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
943
946
  #
944
- def begin_test_failover_async(recovery_plan_name, input, custom_headers = nil)
947
+ def begin_test_failover_async(recovery_plan_name, input, custom_headers:nil)
945
948
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
946
949
  fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
947
950
  fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
@@ -951,13 +954,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
951
954
 
952
955
 
953
956
  request_headers = {}
957
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
954
958
 
955
959
  # Set Headers
956
960
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
957
961
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
958
962
 
959
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
960
-
961
963
  # Serialize Request
962
964
  request_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::Models::RecoveryPlanTestFailoverInput.mapper()
963
965
  request_content = @client.serialize(request_mapper, input)
@@ -1016,8 +1018,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
1016
1018
  #
1017
1019
  # @return [RecoveryPlan] operation results.
1018
1020
  #
1019
- def begin_unplanned_failover(recovery_plan_name, input, custom_headers = nil)
1020
- response = begin_unplanned_failover_async(recovery_plan_name, input, custom_headers).value!
1021
+ def begin_unplanned_failover(recovery_plan_name, input, custom_headers:nil)
1022
+ response = begin_unplanned_failover_async(recovery_plan_name, input, custom_headers:custom_headers).value!
1021
1023
  response.body unless response.nil?
1022
1024
  end
1023
1025
 
@@ -1033,8 +1035,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
1033
1035
  #
1034
1036
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1035
1037
  #
1036
- def begin_unplanned_failover_with_http_info(recovery_plan_name, input, custom_headers = nil)
1037
- begin_unplanned_failover_async(recovery_plan_name, input, custom_headers).value!
1038
+ def begin_unplanned_failover_with_http_info(recovery_plan_name, input, custom_headers:nil)
1039
+ begin_unplanned_failover_async(recovery_plan_name, input, custom_headers:custom_headers).value!
1038
1040
  end
1039
1041
 
1040
1042
  #
@@ -1049,7 +1051,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
1049
1051
  #
1050
1052
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1051
1053
  #
1052
- def begin_unplanned_failover_async(recovery_plan_name, input, custom_headers = nil)
1054
+ def begin_unplanned_failover_async(recovery_plan_name, input, custom_headers:nil)
1053
1055
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1054
1056
  fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
1055
1057
  fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
@@ -1059,13 +1061,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
1059
1061
 
1060
1062
 
1061
1063
  request_headers = {}
1064
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1062
1065
 
1063
1066
  # Set Headers
1064
1067
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1065
1068
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1066
1069
 
1067
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1068
-
1069
1070
  # Serialize Request
1070
1071
  request_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::Models::RecoveryPlanUnplannedFailoverInput.mapper()
1071
1072
  request_content = @client.serialize(request_mapper, input)
@@ -1124,8 +1125,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
1124
1125
  #
1125
1126
  # @return [RecoveryPlan] operation results.
1126
1127
  #
1127
- def begin_planned_failover(recovery_plan_name, input, custom_headers = nil)
1128
- response = begin_planned_failover_async(recovery_plan_name, input, custom_headers).value!
1128
+ def begin_planned_failover(recovery_plan_name, input, custom_headers:nil)
1129
+ response = begin_planned_failover_async(recovery_plan_name, input, custom_headers:custom_headers).value!
1129
1130
  response.body unless response.nil?
1130
1131
  end
1131
1132
 
@@ -1141,8 +1142,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
1141
1142
  #
1142
1143
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1143
1144
  #
1144
- def begin_planned_failover_with_http_info(recovery_plan_name, input, custom_headers = nil)
1145
- begin_planned_failover_async(recovery_plan_name, input, custom_headers).value!
1145
+ def begin_planned_failover_with_http_info(recovery_plan_name, input, custom_headers:nil)
1146
+ begin_planned_failover_async(recovery_plan_name, input, custom_headers:custom_headers).value!
1146
1147
  end
1147
1148
 
1148
1149
  #
@@ -1157,7 +1158,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
1157
1158
  #
1158
1159
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1159
1160
  #
1160
- def begin_planned_failover_async(recovery_plan_name, input, custom_headers = nil)
1161
+ def begin_planned_failover_async(recovery_plan_name, input, custom_headers:nil)
1161
1162
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1162
1163
  fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
1163
1164
  fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
@@ -1167,13 +1168,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
1167
1168
 
1168
1169
 
1169
1170
  request_headers = {}
1171
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1170
1172
 
1171
1173
  # Set Headers
1172
1174
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1173
1175
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1174
1176
 
1175
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1176
-
1177
1177
  # Serialize Request
1178
1178
  request_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::Models::RecoveryPlanPlannedFailoverInput.mapper()
1179
1179
  request_content = @client.serialize(request_mapper, input)
@@ -1232,8 +1232,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
1232
1232
  #
1233
1233
  # @return [RecoveryPlan] operation results.
1234
1234
  #
1235
- def begin_create(recovery_plan_name, input, custom_headers = nil)
1236
- response = begin_create_async(recovery_plan_name, input, custom_headers).value!
1235
+ def begin_create(recovery_plan_name, input, custom_headers:nil)
1236
+ response = begin_create_async(recovery_plan_name, input, custom_headers:custom_headers).value!
1237
1237
  response.body unless response.nil?
1238
1238
  end
1239
1239
 
@@ -1249,8 +1249,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
1249
1249
  #
1250
1250
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1251
1251
  #
1252
- def begin_create_with_http_info(recovery_plan_name, input, custom_headers = nil)
1253
- begin_create_async(recovery_plan_name, input, custom_headers).value!
1252
+ def begin_create_with_http_info(recovery_plan_name, input, custom_headers:nil)
1253
+ begin_create_async(recovery_plan_name, input, custom_headers:custom_headers).value!
1254
1254
  end
1255
1255
 
1256
1256
  #
@@ -1265,7 +1265,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
1265
1265
  #
1266
1266
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1267
1267
  #
1268
- def begin_create_async(recovery_plan_name, input, custom_headers = nil)
1268
+ def begin_create_async(recovery_plan_name, input, custom_headers:nil)
1269
1269
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1270
1270
  fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
1271
1271
  fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
@@ -1275,13 +1275,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
1275
1275
 
1276
1276
 
1277
1277
  request_headers = {}
1278
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1278
1279
 
1279
1280
  # Set Headers
1280
1281
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1281
1282
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1282
1283
 
1283
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1284
-
1285
1284
  # Serialize Request
1286
1285
  request_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::Models::CreateRecoveryPlanInput.mapper()
1287
1286
  request_content = @client.serialize(request_mapper, input)
@@ -1338,8 +1337,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
1338
1337
  # will be added to the HTTP request.
1339
1338
  #
1340
1339
  #
1341
- def begin_delete(recovery_plan_name, custom_headers = nil)
1342
- response = begin_delete_async(recovery_plan_name, custom_headers).value!
1340
+ def begin_delete(recovery_plan_name, custom_headers:nil)
1341
+ response = begin_delete_async(recovery_plan_name, custom_headers:custom_headers).value!
1343
1342
  nil
1344
1343
  end
1345
1344
 
@@ -1354,8 +1353,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
1354
1353
  #
1355
1354
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1356
1355
  #
1357
- def begin_delete_with_http_info(recovery_plan_name, custom_headers = nil)
1358
- begin_delete_async(recovery_plan_name, custom_headers).value!
1356
+ def begin_delete_with_http_info(recovery_plan_name, custom_headers:nil)
1357
+ begin_delete_async(recovery_plan_name, custom_headers:custom_headers).value!
1359
1358
  end
1360
1359
 
1361
1360
  #
@@ -1369,7 +1368,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
1369
1368
  #
1370
1369
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1371
1370
  #
1372
- def begin_delete_async(recovery_plan_name, custom_headers = nil)
1371
+ def begin_delete_async(recovery_plan_name, custom_headers:nil)
1373
1372
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1374
1373
  fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
1375
1374
  fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
@@ -1378,6 +1377,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
1378
1377
 
1379
1378
 
1380
1379
  request_headers = {}
1380
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1381
1381
 
1382
1382
  # Set Headers
1383
1383
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1424,8 +1424,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
1424
1424
  #
1425
1425
  # @return [RecoveryPlan] operation results.
1426
1426
  #
1427
- def begin_update(recovery_plan_name, input, custom_headers = nil)
1428
- response = begin_update_async(recovery_plan_name, input, custom_headers).value!
1427
+ def begin_update(recovery_plan_name, input, custom_headers:nil)
1428
+ response = begin_update_async(recovery_plan_name, input, custom_headers:custom_headers).value!
1429
1429
  response.body unless response.nil?
1430
1430
  end
1431
1431
 
@@ -1441,8 +1441,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
1441
1441
  #
1442
1442
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1443
1443
  #
1444
- def begin_update_with_http_info(recovery_plan_name, input, custom_headers = nil)
1445
- begin_update_async(recovery_plan_name, input, custom_headers).value!
1444
+ def begin_update_with_http_info(recovery_plan_name, input, custom_headers:nil)
1445
+ begin_update_async(recovery_plan_name, input, custom_headers:custom_headers).value!
1446
1446
  end
1447
1447
 
1448
1448
  #
@@ -1457,7 +1457,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
1457
1457
  #
1458
1458
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1459
1459
  #
1460
- def begin_update_async(recovery_plan_name, input, custom_headers = nil)
1460
+ def begin_update_async(recovery_plan_name, input, custom_headers:nil)
1461
1461
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1462
1462
  fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
1463
1463
  fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
@@ -1467,13 +1467,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
1467
1467
 
1468
1468
 
1469
1469
  request_headers = {}
1470
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1470
1471
 
1471
1472
  # Set Headers
1472
1473
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1473
1474
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1474
1475
 
1475
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1476
-
1477
1476
  # Serialize Request
1478
1477
  request_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::Models::UpdateRecoveryPlanInput.mapper()
1479
1478
  request_content = @client.serialize(request_mapper, input)
@@ -1532,8 +1531,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
1532
1531
  #
1533
1532
  # @return [RecoveryPlanCollection] operation results.
1534
1533
  #
1535
- def list_next(next_page_link, custom_headers = nil)
1536
- response = list_next_async(next_page_link, custom_headers).value!
1534
+ def list_next(next_page_link, custom_headers:nil)
1535
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
1537
1536
  response.body unless response.nil?
1538
1537
  end
1539
1538
 
@@ -1549,8 +1548,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
1549
1548
  #
1550
1549
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1551
1550
  #
1552
- def list_next_with_http_info(next_page_link, custom_headers = nil)
1553
- list_next_async(next_page_link, custom_headers).value!
1551
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
1552
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
1554
1553
  end
1555
1554
 
1556
1555
  #
@@ -1565,11 +1564,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
1565
1564
  #
1566
1565
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1567
1566
  #
1568
- def list_next_async(next_page_link, custom_headers = nil)
1567
+ def list_next_async(next_page_link, custom_headers:nil)
1569
1568
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1570
1569
 
1571
1570
 
1572
1571
  request_headers = {}
1572
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1573
1573
 
1574
1574
  # Set Headers
1575
1575
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1624,12 +1624,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
1624
1624
  # @return [RecoveryPlanCollection] which provide lazy access to pages of the
1625
1625
  # response.
1626
1626
  #
1627
- def list_as_lazy(custom_headers = nil)
1628
- response = list_async(custom_headers).value!
1627
+ def list_as_lazy(custom_headers:nil)
1628
+ response = list_async(custom_headers:custom_headers).value!
1629
1629
  unless response.nil?
1630
1630
  page = response.body
1631
1631
  page.next_method = Proc.new do |next_page_link|
1632
- list_next_async(next_page_link, custom_headers)
1632
+ list_next_async(next_page_link, custom_headers:custom_headers)
1633
1633
  end
1634
1634
  page
1635
1635
  end