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
@@ -31,8 +31,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
31
31
  #
32
32
  # @return [Array<NetworkMapping>] operation results.
33
33
  #
34
- def list(custom_headers = nil)
35
- first_page = list_as_lazy(custom_headers)
34
+ def list(custom_headers:nil)
35
+ first_page = list_as_lazy(custom_headers:custom_headers)
36
36
  first_page.get_all_items
37
37
  end
38
38
 
@@ -46,8 +46,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
46
46
  #
47
47
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
48
48
  #
49
- def list_with_http_info(custom_headers = nil)
50
- list_async(custom_headers).value!
49
+ def list_with_http_info(custom_headers:nil)
50
+ list_async(custom_headers:custom_headers).value!
51
51
  end
52
52
 
53
53
  #
@@ -60,7 +60,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
60
60
  #
61
61
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
62
62
  #
63
- def list_async(custom_headers = nil)
63
+ def list_async(custom_headers:nil)
64
64
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
65
65
  fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
66
66
  fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
@@ -68,6 +68,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
68
68
 
69
69
 
70
70
  request_headers = {}
71
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
71
72
 
72
73
  # Set Headers
73
74
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -124,8 +125,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
124
125
  #
125
126
  # @return [Array<NetworkMapping>] operation results.
126
127
  #
127
- def list_by_replication_networks(fabric_name, network_name, custom_headers = nil)
128
- first_page = list_by_replication_networks_as_lazy(fabric_name, network_name, custom_headers)
128
+ def list_by_replication_networks(fabric_name, network_name, custom_headers:nil)
129
+ first_page = list_by_replication_networks_as_lazy(fabric_name, network_name, custom_headers:custom_headers)
129
130
  first_page.get_all_items
130
131
  end
131
132
 
@@ -141,8 +142,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
141
142
  #
142
143
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
143
144
  #
144
- def list_by_replication_networks_with_http_info(fabric_name, network_name, custom_headers = nil)
145
- list_by_replication_networks_async(fabric_name, network_name, custom_headers).value!
145
+ def list_by_replication_networks_with_http_info(fabric_name, network_name, custom_headers:nil)
146
+ list_by_replication_networks_async(fabric_name, network_name, custom_headers:custom_headers).value!
146
147
  end
147
148
 
148
149
  #
@@ -157,7 +158,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
157
158
  #
158
159
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
159
160
  #
160
- def list_by_replication_networks_async(fabric_name, network_name, custom_headers = nil)
161
+ def list_by_replication_networks_async(fabric_name, network_name, custom_headers:nil)
161
162
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
162
163
  fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
163
164
  fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
@@ -167,6 +168,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
167
168
 
168
169
 
169
170
  request_headers = {}
171
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
170
172
 
171
173
  # Set Headers
172
174
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -224,8 +226,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
224
226
  #
225
227
  # @return [NetworkMapping] operation results.
226
228
  #
227
- def get(fabric_name, network_name, network_mapping_name, custom_headers = nil)
228
- response = get_async(fabric_name, network_name, network_mapping_name, custom_headers).value!
229
+ def get(fabric_name, network_name, network_mapping_name, custom_headers:nil)
230
+ response = get_async(fabric_name, network_name, network_mapping_name, custom_headers:custom_headers).value!
229
231
  response.body unless response.nil?
230
232
  end
231
233
 
@@ -242,8 +244,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
242
244
  #
243
245
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
244
246
  #
245
- def get_with_http_info(fabric_name, network_name, network_mapping_name, custom_headers = nil)
246
- get_async(fabric_name, network_name, network_mapping_name, custom_headers).value!
247
+ def get_with_http_info(fabric_name, network_name, network_mapping_name, custom_headers:nil)
248
+ get_async(fabric_name, network_name, network_mapping_name, custom_headers:custom_headers).value!
247
249
  end
248
250
 
249
251
  #
@@ -259,7 +261,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
259
261
  #
260
262
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
261
263
  #
262
- def get_async(fabric_name, network_name, network_mapping_name, custom_headers = nil)
264
+ def get_async(fabric_name, network_name, network_mapping_name, custom_headers:nil)
263
265
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
264
266
  fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
265
267
  fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
@@ -270,6 +272,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
270
272
 
271
273
 
272
274
  request_headers = {}
275
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
273
276
 
274
277
  # Set Headers
275
278
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -328,8 +331,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
328
331
  #
329
332
  # @return [NetworkMapping] operation results.
330
333
  #
331
- def create(fabric_name, network_name, network_mapping_name, input, custom_headers = nil)
332
- response = create_async(fabric_name, network_name, network_mapping_name, input, custom_headers).value!
334
+ def create(fabric_name, network_name, network_mapping_name, input, custom_headers:nil)
335
+ response = create_async(fabric_name, network_name, network_mapping_name, input, custom_headers:custom_headers).value!
333
336
  response.body unless response.nil?
334
337
  end
335
338
 
@@ -344,9 +347,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
344
347
  # @return [Concurrent::Promise] promise which provides async access to http
345
348
  # response.
346
349
  #
347
- def create_async(fabric_name, network_name, network_mapping_name, input, custom_headers = nil)
350
+ def create_async(fabric_name, network_name, network_mapping_name, input, custom_headers:nil)
348
351
  # Send request
349
- promise = begin_create_async(fabric_name, network_name, network_mapping_name, input, custom_headers)
352
+ promise = begin_create_async(fabric_name, network_name, network_mapping_name, input, custom_headers:custom_headers)
350
353
 
351
354
  promise = promise.then do |response|
352
355
  # Defining deserialization method.
@@ -373,8 +376,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
373
376
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
374
377
  # will be added to the HTTP request.
375
378
  #
376
- def delete(fabric_name, network_name, network_mapping_name, custom_headers = nil)
377
- response = delete_async(fabric_name, network_name, network_mapping_name, custom_headers).value!
379
+ def delete(fabric_name, network_name, network_mapping_name, custom_headers:nil)
380
+ response = delete_async(fabric_name, network_name, network_mapping_name, custom_headers:custom_headers).value!
378
381
  nil
379
382
  end
380
383
 
@@ -388,9 +391,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
388
391
  # @return [Concurrent::Promise] promise which provides async access to http
389
392
  # response.
390
393
  #
391
- def delete_async(fabric_name, network_name, network_mapping_name, custom_headers = nil)
394
+ def delete_async(fabric_name, network_name, network_mapping_name, custom_headers:nil)
392
395
  # Send request
393
- promise = begin_delete_async(fabric_name, network_name, network_mapping_name, custom_headers)
396
+ promise = begin_delete_async(fabric_name, network_name, network_mapping_name, custom_headers:custom_headers)
394
397
 
395
398
  promise = promise.then do |response|
396
399
  # Defining deserialization method.
@@ -418,8 +421,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
418
421
  #
419
422
  # @return [NetworkMapping] operation results.
420
423
  #
421
- def update(fabric_name, network_name, network_mapping_name, input, custom_headers = nil)
422
- response = update_async(fabric_name, network_name, network_mapping_name, input, custom_headers).value!
424
+ def update(fabric_name, network_name, network_mapping_name, input, custom_headers:nil)
425
+ response = update_async(fabric_name, network_name, network_mapping_name, input, custom_headers:custom_headers).value!
423
426
  response.body unless response.nil?
424
427
  end
425
428
 
@@ -434,9 +437,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
434
437
  # @return [Concurrent::Promise] promise which provides async access to http
435
438
  # response.
436
439
  #
437
- def update_async(fabric_name, network_name, network_mapping_name, input, custom_headers = nil)
440
+ def update_async(fabric_name, network_name, network_mapping_name, input, custom_headers:nil)
438
441
  # Send request
439
- promise = begin_update_async(fabric_name, network_name, network_mapping_name, input, custom_headers)
442
+ promise = begin_update_async(fabric_name, network_name, network_mapping_name, input, custom_headers:custom_headers)
440
443
 
441
444
  promise = promise.then do |response|
442
445
  # Defining deserialization method.
@@ -466,8 +469,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
466
469
  #
467
470
  # @return [NetworkMapping] operation results.
468
471
  #
469
- def begin_create(fabric_name, network_name, network_mapping_name, input, custom_headers = nil)
470
- response = begin_create_async(fabric_name, network_name, network_mapping_name, input, custom_headers).value!
472
+ def begin_create(fabric_name, network_name, network_mapping_name, input, custom_headers:nil)
473
+ response = begin_create_async(fabric_name, network_name, network_mapping_name, input, custom_headers:custom_headers).value!
471
474
  response.body unless response.nil?
472
475
  end
473
476
 
@@ -485,8 +488,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
485
488
  #
486
489
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
487
490
  #
488
- def begin_create_with_http_info(fabric_name, network_name, network_mapping_name, input, custom_headers = nil)
489
- begin_create_async(fabric_name, network_name, network_mapping_name, input, custom_headers).value!
491
+ def begin_create_with_http_info(fabric_name, network_name, network_mapping_name, input, custom_headers:nil)
492
+ begin_create_async(fabric_name, network_name, network_mapping_name, input, custom_headers:custom_headers).value!
490
493
  end
491
494
 
492
495
  #
@@ -503,7 +506,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
503
506
  #
504
507
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
505
508
  #
506
- def begin_create_async(fabric_name, network_name, network_mapping_name, input, custom_headers = nil)
509
+ def begin_create_async(fabric_name, network_name, network_mapping_name, input, custom_headers:nil)
507
510
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
508
511
  fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
509
512
  fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
@@ -515,13 +518,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
515
518
 
516
519
 
517
520
  request_headers = {}
521
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
518
522
 
519
523
  # Set Headers
520
524
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
521
525
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
522
526
 
523
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
524
-
525
527
  # Serialize Request
526
528
  request_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::Models::CreateNetworkMappingInput.mapper()
527
529
  request_content = @client.serialize(request_mapper, input)
@@ -580,8 +582,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
580
582
  # will be added to the HTTP request.
581
583
  #
582
584
  #
583
- def begin_delete(fabric_name, network_name, network_mapping_name, custom_headers = nil)
584
- response = begin_delete_async(fabric_name, network_name, network_mapping_name, custom_headers).value!
585
+ def begin_delete(fabric_name, network_name, network_mapping_name, custom_headers:nil)
586
+ response = begin_delete_async(fabric_name, network_name, network_mapping_name, custom_headers:custom_headers).value!
585
587
  nil
586
588
  end
587
589
 
@@ -598,8 +600,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
598
600
  #
599
601
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
600
602
  #
601
- def begin_delete_with_http_info(fabric_name, network_name, network_mapping_name, custom_headers = nil)
602
- begin_delete_async(fabric_name, network_name, network_mapping_name, custom_headers).value!
603
+ def begin_delete_with_http_info(fabric_name, network_name, network_mapping_name, custom_headers:nil)
604
+ begin_delete_async(fabric_name, network_name, network_mapping_name, custom_headers:custom_headers).value!
603
605
  end
604
606
 
605
607
  #
@@ -615,7 +617,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
615
617
  #
616
618
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
617
619
  #
618
- def begin_delete_async(fabric_name, network_name, network_mapping_name, custom_headers = nil)
620
+ def begin_delete_async(fabric_name, network_name, network_mapping_name, custom_headers:nil)
619
621
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
620
622
  fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
621
623
  fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
@@ -626,6 +628,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
626
628
 
627
629
 
628
630
  request_headers = {}
631
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
629
632
 
630
633
  # Set Headers
631
634
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -674,8 +677,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
674
677
  #
675
678
  # @return [NetworkMapping] operation results.
676
679
  #
677
- def begin_update(fabric_name, network_name, network_mapping_name, input, custom_headers = nil)
678
- response = begin_update_async(fabric_name, network_name, network_mapping_name, input, custom_headers).value!
680
+ def begin_update(fabric_name, network_name, network_mapping_name, input, custom_headers:nil)
681
+ response = begin_update_async(fabric_name, network_name, network_mapping_name, input, custom_headers:custom_headers).value!
679
682
  response.body unless response.nil?
680
683
  end
681
684
 
@@ -693,8 +696,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
693
696
  #
694
697
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
695
698
  #
696
- def begin_update_with_http_info(fabric_name, network_name, network_mapping_name, input, custom_headers = nil)
697
- begin_update_async(fabric_name, network_name, network_mapping_name, input, custom_headers).value!
699
+ def begin_update_with_http_info(fabric_name, network_name, network_mapping_name, input, custom_headers:nil)
700
+ begin_update_async(fabric_name, network_name, network_mapping_name, input, custom_headers:custom_headers).value!
698
701
  end
699
702
 
700
703
  #
@@ -711,7 +714,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
711
714
  #
712
715
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
713
716
  #
714
- def begin_update_async(fabric_name, network_name, network_mapping_name, input, custom_headers = nil)
717
+ def begin_update_async(fabric_name, network_name, network_mapping_name, input, custom_headers:nil)
715
718
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
716
719
  fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
717
720
  fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
@@ -723,13 +726,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
723
726
 
724
727
 
725
728
  request_headers = {}
729
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
726
730
 
727
731
  # Set Headers
728
732
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
729
733
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
730
734
 
731
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
732
-
733
735
  # Serialize Request
734
736
  request_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::Models::UpdateNetworkMappingInput.mapper()
735
737
  request_content = @client.serialize(request_mapper, input)
@@ -788,8 +790,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
788
790
  #
789
791
  # @return [NetworkMappingCollection] operation results.
790
792
  #
791
- def list_next(next_page_link, custom_headers = nil)
792
- response = list_next_async(next_page_link, custom_headers).value!
793
+ def list_next(next_page_link, custom_headers:nil)
794
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
793
795
  response.body unless response.nil?
794
796
  end
795
797
 
@@ -805,8 +807,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
805
807
  #
806
808
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
807
809
  #
808
- def list_next_with_http_info(next_page_link, custom_headers = nil)
809
- list_next_async(next_page_link, custom_headers).value!
810
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
811
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
810
812
  end
811
813
 
812
814
  #
@@ -821,11 +823,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
821
823
  #
822
824
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
823
825
  #
824
- def list_next_async(next_page_link, custom_headers = nil)
826
+ def list_next_async(next_page_link, custom_headers:nil)
825
827
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
826
828
 
827
829
 
828
830
  request_headers = {}
831
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
829
832
 
830
833
  # Set Headers
831
834
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -881,8 +884,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
881
884
  #
882
885
  # @return [NetworkMappingCollection] operation results.
883
886
  #
884
- def list_by_replication_networks_next(next_page_link, custom_headers = nil)
885
- response = list_by_replication_networks_next_async(next_page_link, custom_headers).value!
887
+ def list_by_replication_networks_next(next_page_link, custom_headers:nil)
888
+ response = list_by_replication_networks_next_async(next_page_link, custom_headers:custom_headers).value!
886
889
  response.body unless response.nil?
887
890
  end
888
891
 
@@ -898,8 +901,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
898
901
  #
899
902
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
900
903
  #
901
- def list_by_replication_networks_next_with_http_info(next_page_link, custom_headers = nil)
902
- list_by_replication_networks_next_async(next_page_link, custom_headers).value!
904
+ def list_by_replication_networks_next_with_http_info(next_page_link, custom_headers:nil)
905
+ list_by_replication_networks_next_async(next_page_link, custom_headers:custom_headers).value!
903
906
  end
904
907
 
905
908
  #
@@ -914,11 +917,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
914
917
  #
915
918
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
916
919
  #
917
- def list_by_replication_networks_next_async(next_page_link, custom_headers = nil)
920
+ def list_by_replication_networks_next_async(next_page_link, custom_headers:nil)
918
921
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
919
922
 
920
923
 
921
924
  request_headers = {}
925
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
922
926
 
923
927
  # Set Headers
924
928
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -973,12 +977,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
973
977
  # @return [NetworkMappingCollection] which provide lazy access to pages of the
974
978
  # response.
975
979
  #
976
- def list_as_lazy(custom_headers = nil)
977
- response = list_async(custom_headers).value!
980
+ def list_as_lazy(custom_headers:nil)
981
+ response = list_async(custom_headers:custom_headers).value!
978
982
  unless response.nil?
979
983
  page = response.body
980
984
  page.next_method = Proc.new do |next_page_link|
981
- list_next_async(next_page_link, custom_headers)
985
+ list_next_async(next_page_link, custom_headers:custom_headers)
982
986
  end
983
987
  page
984
988
  end
@@ -997,12 +1001,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
997
1001
  # @return [NetworkMappingCollection] which provide lazy access to pages of the
998
1002
  # response.
999
1003
  #
1000
- def list_by_replication_networks_as_lazy(fabric_name, network_name, custom_headers = nil)
1001
- response = list_by_replication_networks_async(fabric_name, network_name, custom_headers).value!
1004
+ def list_by_replication_networks_as_lazy(fabric_name, network_name, custom_headers:nil)
1005
+ response = list_by_replication_networks_async(fabric_name, network_name, custom_headers:custom_headers).value!
1002
1006
  unless response.nil?
1003
1007
  page = response.body
1004
1008
  page.next_method = Proc.new do |next_page_link|
1005
- list_by_replication_networks_next_async(next_page_link, custom_headers)
1009
+ list_by_replication_networks_next_async(next_page_link, custom_headers:custom_headers)
1006
1010
  end
1007
1011
  page
1008
1012
  end
@@ -31,8 +31,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
31
31
  #
32
32
  # @return [Array<Network>] operation results.
33
33
  #
34
- def list(custom_headers = nil)
35
- first_page = list_as_lazy(custom_headers)
34
+ def list(custom_headers:nil)
35
+ first_page = list_as_lazy(custom_headers:custom_headers)
36
36
  first_page.get_all_items
37
37
  end
38
38
 
@@ -46,8 +46,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
46
46
  #
47
47
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
48
48
  #
49
- def list_with_http_info(custom_headers = nil)
50
- list_async(custom_headers).value!
49
+ def list_with_http_info(custom_headers:nil)
50
+ list_async(custom_headers:custom_headers).value!
51
51
  end
52
52
 
53
53
  #
@@ -60,7 +60,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
60
60
  #
61
61
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
62
62
  #
63
- def list_async(custom_headers = nil)
63
+ def list_async(custom_headers:nil)
64
64
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
65
65
  fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
66
66
  fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
@@ -68,6 +68,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
68
68
 
69
69
 
70
70
  request_headers = {}
71
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
71
72
 
72
73
  # Set Headers
73
74
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -123,8 +124,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
123
124
  #
124
125
  # @return [Array<Network>] operation results.
125
126
  #
126
- def list_by_replication_fabrics(fabric_name, custom_headers = nil)
127
- first_page = list_by_replication_fabrics_as_lazy(fabric_name, custom_headers)
127
+ def list_by_replication_fabrics(fabric_name, custom_headers:nil)
128
+ first_page = list_by_replication_fabrics_as_lazy(fabric_name, custom_headers:custom_headers)
128
129
  first_page.get_all_items
129
130
  end
130
131
 
@@ -139,8 +140,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
139
140
  #
140
141
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
141
142
  #
142
- def list_by_replication_fabrics_with_http_info(fabric_name, custom_headers = nil)
143
- list_by_replication_fabrics_async(fabric_name, custom_headers).value!
143
+ def list_by_replication_fabrics_with_http_info(fabric_name, custom_headers:nil)
144
+ list_by_replication_fabrics_async(fabric_name, custom_headers:custom_headers).value!
144
145
  end
145
146
 
146
147
  #
@@ -154,7 +155,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
154
155
  #
155
156
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
156
157
  #
157
- def list_by_replication_fabrics_async(fabric_name, custom_headers = nil)
158
+ def list_by_replication_fabrics_async(fabric_name, custom_headers:nil)
158
159
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
159
160
  fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
160
161
  fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
@@ -163,6 +164,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
163
164
 
164
165
 
165
166
  request_headers = {}
167
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
166
168
 
167
169
  # Set Headers
168
170
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -219,8 +221,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
219
221
  #
220
222
  # @return [Network] operation results.
221
223
  #
222
- def get(fabric_name, network_name, custom_headers = nil)
223
- response = get_async(fabric_name, network_name, custom_headers).value!
224
+ def get(fabric_name, network_name, custom_headers:nil)
225
+ response = get_async(fabric_name, network_name, custom_headers:custom_headers).value!
224
226
  response.body unless response.nil?
225
227
  end
226
228
 
@@ -236,8 +238,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
236
238
  #
237
239
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
238
240
  #
239
- def get_with_http_info(fabric_name, network_name, custom_headers = nil)
240
- get_async(fabric_name, network_name, custom_headers).value!
241
+ def get_with_http_info(fabric_name, network_name, custom_headers:nil)
242
+ get_async(fabric_name, network_name, custom_headers:custom_headers).value!
241
243
  end
242
244
 
243
245
  #
@@ -252,7 +254,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
252
254
  #
253
255
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
254
256
  #
255
- def get_async(fabric_name, network_name, custom_headers = nil)
257
+ def get_async(fabric_name, network_name, custom_headers:nil)
256
258
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
257
259
  fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
258
260
  fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
@@ -262,6 +264,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
262
264
 
263
265
 
264
266
  request_headers = {}
267
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
265
268
 
266
269
  # Set Headers
267
270
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -318,8 +321,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
318
321
  #
319
322
  # @return [NetworkCollection] operation results.
320
323
  #
321
- def list_next(next_page_link, custom_headers = nil)
322
- response = list_next_async(next_page_link, custom_headers).value!
324
+ def list_next(next_page_link, custom_headers:nil)
325
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
323
326
  response.body unless response.nil?
324
327
  end
325
328
 
@@ -335,8 +338,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
335
338
  #
336
339
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
337
340
  #
338
- def list_next_with_http_info(next_page_link, custom_headers = nil)
339
- list_next_async(next_page_link, custom_headers).value!
341
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
342
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
340
343
  end
341
344
 
342
345
  #
@@ -351,11 +354,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
351
354
  #
352
355
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
353
356
  #
354
- def list_next_async(next_page_link, custom_headers = nil)
357
+ def list_next_async(next_page_link, custom_headers:nil)
355
358
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
356
359
 
357
360
 
358
361
  request_headers = {}
362
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
359
363
 
360
364
  # Set Headers
361
365
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -411,8 +415,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
411
415
  #
412
416
  # @return [NetworkCollection] operation results.
413
417
  #
414
- def list_by_replication_fabrics_next(next_page_link, custom_headers = nil)
415
- response = list_by_replication_fabrics_next_async(next_page_link, custom_headers).value!
418
+ def list_by_replication_fabrics_next(next_page_link, custom_headers:nil)
419
+ response = list_by_replication_fabrics_next_async(next_page_link, custom_headers:custom_headers).value!
416
420
  response.body unless response.nil?
417
421
  end
418
422
 
@@ -428,8 +432,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
428
432
  #
429
433
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
430
434
  #
431
- def list_by_replication_fabrics_next_with_http_info(next_page_link, custom_headers = nil)
432
- list_by_replication_fabrics_next_async(next_page_link, custom_headers).value!
435
+ def list_by_replication_fabrics_next_with_http_info(next_page_link, custom_headers:nil)
436
+ list_by_replication_fabrics_next_async(next_page_link, custom_headers:custom_headers).value!
433
437
  end
434
438
 
435
439
  #
@@ -444,11 +448,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
444
448
  #
445
449
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
446
450
  #
447
- def list_by_replication_fabrics_next_async(next_page_link, custom_headers = nil)
451
+ def list_by_replication_fabrics_next_async(next_page_link, custom_headers:nil)
448
452
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
449
453
 
450
454
 
451
455
  request_headers = {}
456
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
452
457
 
453
458
  # Set Headers
454
459
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -503,12 +508,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
503
508
  # @return [NetworkCollection] which provide lazy access to pages of the
504
509
  # response.
505
510
  #
506
- def list_as_lazy(custom_headers = nil)
507
- response = list_async(custom_headers).value!
511
+ def list_as_lazy(custom_headers:nil)
512
+ response = list_async(custom_headers:custom_headers).value!
508
513
  unless response.nil?
509
514
  page = response.body
510
515
  page.next_method = Proc.new do |next_page_link|
511
- list_next_async(next_page_link, custom_headers)
516
+ list_next_async(next_page_link, custom_headers:custom_headers)
512
517
  end
513
518
  page
514
519
  end
@@ -526,12 +531,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
526
531
  # @return [NetworkCollection] which provide lazy access to pages of the
527
532
  # response.
528
533
  #
529
- def list_by_replication_fabrics_as_lazy(fabric_name, custom_headers = nil)
530
- response = list_by_replication_fabrics_async(fabric_name, custom_headers).value!
534
+ def list_by_replication_fabrics_as_lazy(fabric_name, custom_headers:nil)
535
+ response = list_by_replication_fabrics_async(fabric_name, custom_headers:custom_headers).value!
531
536
  unless response.nil?
532
537
  page = response.body
533
538
  page.next_method = Proc.new do |next_page_link|
534
- list_by_replication_fabrics_next_async(next_page_link, custom_headers)
539
+ list_by_replication_fabrics_next_async(next_page_link, custom_headers:custom_headers)
535
540
  end
536
541
  page
537
542
  end