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
@@ -33,8 +33,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
33
33
  #
34
34
  # @return [Job] operation results.
35
35
  #
36
- def resume(job_name, resume_job_params, custom_headers = nil)
37
- response = resume_async(job_name, resume_job_params, custom_headers).value!
36
+ def resume(job_name, resume_job_params, custom_headers:nil)
37
+ response = resume_async(job_name, resume_job_params, custom_headers:custom_headers).value!
38
38
  response.body unless response.nil?
39
39
  end
40
40
 
@@ -47,9 +47,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
47
47
  # @return [Concurrent::Promise] promise which provides async access to http
48
48
  # response.
49
49
  #
50
- def resume_async(job_name, resume_job_params, custom_headers = nil)
50
+ def resume_async(job_name, resume_job_params, custom_headers:nil)
51
51
  # Send request
52
- promise = begin_resume_async(job_name, resume_job_params, custom_headers)
52
+ promise = begin_resume_async(job_name, resume_job_params, custom_headers:custom_headers)
53
53
 
54
54
  promise = promise.then do |response|
55
55
  # Defining deserialization method.
@@ -76,8 +76,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
76
76
  #
77
77
  # @return [Job] operation results.
78
78
  #
79
- def restart(job_name, custom_headers = nil)
80
- response = restart_async(job_name, custom_headers).value!
79
+ def restart(job_name, custom_headers:nil)
80
+ response = restart_async(job_name, custom_headers:custom_headers).value!
81
81
  response.body unless response.nil?
82
82
  end
83
83
 
@@ -89,9 +89,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
89
89
  # @return [Concurrent::Promise] promise which provides async access to http
90
90
  # response.
91
91
  #
92
- def restart_async(job_name, custom_headers = nil)
92
+ def restart_async(job_name, custom_headers:nil)
93
93
  # Send request
94
- promise = begin_restart_async(job_name, custom_headers)
94
+ promise = begin_restart_async(job_name, custom_headers:custom_headers)
95
95
 
96
96
  promise = promise.then do |response|
97
97
  # Defining deserialization method.
@@ -118,8 +118,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
118
118
  #
119
119
  # @return [Job] operation results.
120
120
  #
121
- def cancel(job_name, custom_headers = nil)
122
- response = cancel_async(job_name, custom_headers).value!
121
+ def cancel(job_name, custom_headers:nil)
122
+ response = cancel_async(job_name, custom_headers:custom_headers).value!
123
123
  response.body unless response.nil?
124
124
  end
125
125
 
@@ -131,9 +131,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
131
131
  # @return [Concurrent::Promise] promise which provides async access to http
132
132
  # response.
133
133
  #
134
- def cancel_async(job_name, custom_headers = nil)
134
+ def cancel_async(job_name, custom_headers:nil)
135
135
  # Send request
136
- promise = begin_cancel_async(job_name, custom_headers)
136
+ promise = begin_cancel_async(job_name, custom_headers:custom_headers)
137
137
 
138
138
  promise = promise.then do |response|
139
139
  # Defining deserialization method.
@@ -160,8 +160,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
160
160
  #
161
161
  # @return [Job] operation results.
162
162
  #
163
- def get(job_name, custom_headers = nil)
164
- response = get_async(job_name, custom_headers).value!
163
+ def get(job_name, custom_headers:nil)
164
+ response = get_async(job_name, custom_headers:custom_headers).value!
165
165
  response.body unless response.nil?
166
166
  end
167
167
 
@@ -176,8 +176,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
176
176
  #
177
177
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
178
178
  #
179
- def get_with_http_info(job_name, custom_headers = nil)
180
- get_async(job_name, custom_headers).value!
179
+ def get_with_http_info(job_name, custom_headers:nil)
180
+ get_async(job_name, custom_headers:custom_headers).value!
181
181
  end
182
182
 
183
183
  #
@@ -191,7 +191,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
191
191
  #
192
192
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
193
193
  #
194
- def get_async(job_name, custom_headers = nil)
194
+ def get_async(job_name, custom_headers:nil)
195
195
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
196
196
  fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
197
197
  fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
@@ -200,6 +200,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
200
200
 
201
201
 
202
202
  request_headers = {}
203
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
203
204
 
204
205
  # Set Headers
205
206
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -256,8 +257,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
256
257
  #
257
258
  # @return [Job] operation results.
258
259
  #
259
- def export(job_query_parameter, custom_headers = nil)
260
- response = export_async(job_query_parameter, custom_headers).value!
260
+ def export(job_query_parameter, custom_headers:nil)
261
+ response = export_async(job_query_parameter, custom_headers:custom_headers).value!
261
262
  response.body unless response.nil?
262
263
  end
263
264
 
@@ -269,9 +270,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
269
270
  # @return [Concurrent::Promise] promise which provides async access to http
270
271
  # response.
271
272
  #
272
- def export_async(job_query_parameter, custom_headers = nil)
273
+ def export_async(job_query_parameter, custom_headers:nil)
273
274
  # Send request
274
- promise = begin_export_async(job_query_parameter, custom_headers)
275
+ promise = begin_export_async(job_query_parameter, custom_headers:custom_headers)
275
276
 
276
277
  promise = promise.then do |response|
277
278
  # Defining deserialization method.
@@ -298,8 +299,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
298
299
  #
299
300
  # @return [Array<Job>] operation results.
300
301
  #
301
- def list(filter = nil, custom_headers = nil)
302
- first_page = list_as_lazy(filter, custom_headers)
302
+ def list(filter:nil, custom_headers:nil)
303
+ first_page = list_as_lazy(filter:filter, custom_headers:custom_headers)
303
304
  first_page.get_all_items
304
305
  end
305
306
 
@@ -314,8 +315,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
314
315
  #
315
316
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
316
317
  #
317
- def list_with_http_info(filter = nil, custom_headers = nil)
318
- list_async(filter, custom_headers).value!
318
+ def list_with_http_info(filter:nil, custom_headers:nil)
319
+ list_async(filter:filter, custom_headers:custom_headers).value!
319
320
  end
320
321
 
321
322
  #
@@ -329,7 +330,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
329
330
  #
330
331
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
331
332
  #
332
- def list_async(filter = nil, custom_headers = nil)
333
+ def list_async(filter:nil, custom_headers:nil)
333
334
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
334
335
  fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
335
336
  fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
@@ -337,6 +338,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
337
338
 
338
339
 
339
340
  request_headers = {}
341
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
340
342
 
341
343
  # Set Headers
342
344
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -393,8 +395,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
393
395
  #
394
396
  # @return [Job] operation results.
395
397
  #
396
- def begin_resume(job_name, resume_job_params, custom_headers = nil)
397
- response = begin_resume_async(job_name, resume_job_params, custom_headers).value!
398
+ def begin_resume(job_name, resume_job_params, custom_headers:nil)
399
+ response = begin_resume_async(job_name, resume_job_params, custom_headers:custom_headers).value!
398
400
  response.body unless response.nil?
399
401
  end
400
402
 
@@ -410,8 +412,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
410
412
  #
411
413
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
412
414
  #
413
- def begin_resume_with_http_info(job_name, resume_job_params, custom_headers = nil)
414
- begin_resume_async(job_name, resume_job_params, custom_headers).value!
415
+ def begin_resume_with_http_info(job_name, resume_job_params, custom_headers:nil)
416
+ begin_resume_async(job_name, resume_job_params, custom_headers:custom_headers).value!
415
417
  end
416
418
 
417
419
  #
@@ -426,7 +428,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
426
428
  #
427
429
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
428
430
  #
429
- def begin_resume_async(job_name, resume_job_params, custom_headers = nil)
431
+ def begin_resume_async(job_name, resume_job_params, custom_headers:nil)
430
432
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
431
433
  fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
432
434
  fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
@@ -436,13 +438,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
436
438
 
437
439
 
438
440
  request_headers = {}
441
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
439
442
 
440
443
  # Set Headers
441
444
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
442
445
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
443
446
 
444
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
445
-
446
447
  # Serialize Request
447
448
  request_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::Models::ResumeJobParams.mapper()
448
449
  request_content = @client.serialize(request_mapper, resume_job_params)
@@ -500,8 +501,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
500
501
  #
501
502
  # @return [Job] operation results.
502
503
  #
503
- def begin_restart(job_name, custom_headers = nil)
504
- response = begin_restart_async(job_name, custom_headers).value!
504
+ def begin_restart(job_name, custom_headers:nil)
505
+ response = begin_restart_async(job_name, custom_headers:custom_headers).value!
505
506
  response.body unless response.nil?
506
507
  end
507
508
 
@@ -516,8 +517,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
516
517
  #
517
518
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
518
519
  #
519
- def begin_restart_with_http_info(job_name, custom_headers = nil)
520
- begin_restart_async(job_name, custom_headers).value!
520
+ def begin_restart_with_http_info(job_name, custom_headers:nil)
521
+ begin_restart_async(job_name, custom_headers:custom_headers).value!
521
522
  end
522
523
 
523
524
  #
@@ -531,7 +532,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
531
532
  #
532
533
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
533
534
  #
534
- def begin_restart_async(job_name, custom_headers = nil)
535
+ def begin_restart_async(job_name, custom_headers:nil)
535
536
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
536
537
  fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
537
538
  fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
@@ -540,6 +541,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
540
541
 
541
542
 
542
543
  request_headers = {}
544
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
543
545
 
544
546
  # Set Headers
545
547
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -595,8 +597,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
595
597
  #
596
598
  # @return [Job] operation results.
597
599
  #
598
- def begin_cancel(job_name, custom_headers = nil)
599
- response = begin_cancel_async(job_name, custom_headers).value!
600
+ def begin_cancel(job_name, custom_headers:nil)
601
+ response = begin_cancel_async(job_name, custom_headers:custom_headers).value!
600
602
  response.body unless response.nil?
601
603
  end
602
604
 
@@ -611,8 +613,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
611
613
  #
612
614
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
613
615
  #
614
- def begin_cancel_with_http_info(job_name, custom_headers = nil)
615
- begin_cancel_async(job_name, custom_headers).value!
616
+ def begin_cancel_with_http_info(job_name, custom_headers:nil)
617
+ begin_cancel_async(job_name, custom_headers:custom_headers).value!
616
618
  end
617
619
 
618
620
  #
@@ -626,7 +628,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
626
628
  #
627
629
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
628
630
  #
629
- def begin_cancel_async(job_name, custom_headers = nil)
631
+ def begin_cancel_async(job_name, custom_headers:nil)
630
632
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
631
633
  fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
632
634
  fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
@@ -635,6 +637,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
635
637
 
636
638
 
637
639
  request_headers = {}
640
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
638
641
 
639
642
  # Set Headers
640
643
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -691,8 +694,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
691
694
  #
692
695
  # @return [Job] operation results.
693
696
  #
694
- def begin_export(job_query_parameter, custom_headers = nil)
695
- response = begin_export_async(job_query_parameter, custom_headers).value!
697
+ def begin_export(job_query_parameter, custom_headers:nil)
698
+ response = begin_export_async(job_query_parameter, custom_headers:custom_headers).value!
696
699
  response.body unless response.nil?
697
700
  end
698
701
 
@@ -708,8 +711,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
708
711
  #
709
712
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
710
713
  #
711
- def begin_export_with_http_info(job_query_parameter, custom_headers = nil)
712
- begin_export_async(job_query_parameter, custom_headers).value!
714
+ def begin_export_with_http_info(job_query_parameter, custom_headers:nil)
715
+ begin_export_async(job_query_parameter, custom_headers:custom_headers).value!
713
716
  end
714
717
 
715
718
  #
@@ -724,7 +727,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
724
727
  #
725
728
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
726
729
  #
727
- def begin_export_async(job_query_parameter, custom_headers = nil)
730
+ def begin_export_async(job_query_parameter, custom_headers:nil)
728
731
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
729
732
  fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
730
733
  fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
@@ -733,13 +736,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
733
736
 
734
737
 
735
738
  request_headers = {}
739
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
736
740
 
737
741
  # Set Headers
738
742
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
739
743
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
740
744
 
741
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
742
-
743
745
  # Serialize Request
744
746
  request_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::Models::JobQueryParameter.mapper()
745
747
  request_content = @client.serialize(request_mapper, job_query_parameter)
@@ -798,8 +800,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
798
800
  #
799
801
  # @return [JobCollection] operation results.
800
802
  #
801
- def list_next(next_page_link, custom_headers = nil)
802
- response = list_next_async(next_page_link, custom_headers).value!
803
+ def list_next(next_page_link, custom_headers:nil)
804
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
803
805
  response.body unless response.nil?
804
806
  end
805
807
 
@@ -815,8 +817,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
815
817
  #
816
818
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
817
819
  #
818
- def list_next_with_http_info(next_page_link, custom_headers = nil)
819
- list_next_async(next_page_link, custom_headers).value!
820
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
821
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
820
822
  end
821
823
 
822
824
  #
@@ -831,11 +833,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
831
833
  #
832
834
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
833
835
  #
834
- def list_next_async(next_page_link, custom_headers = nil)
836
+ def list_next_async(next_page_link, custom_headers:nil)
835
837
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
836
838
 
837
839
 
838
840
  request_headers = {}
841
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
839
842
 
840
843
  # Set Headers
841
844
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -890,12 +893,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
890
893
  #
891
894
  # @return [JobCollection] which provide lazy access to pages of the response.
892
895
  #
893
- def list_as_lazy(filter = nil, custom_headers = nil)
894
- response = list_async(filter, custom_headers).value!
896
+ def list_as_lazy(filter:nil, custom_headers:nil)
897
+ response = list_async(filter:filter, custom_headers:custom_headers).value!
895
898
  unless response.nil?
896
899
  page = response.body
897
900
  page.next_method = Proc.new do |next_page_link|
898
- list_next_async(next_page_link, custom_headers)
901
+ list_next_async(next_page_link, custom_headers:custom_headers)
899
902
  end
900
903
  page
901
904
  end
@@ -32,8 +32,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
32
32
  #
33
33
  # @return [Array<LogicalNetwork>] operation results.
34
34
  #
35
- def list_by_replication_fabrics(fabric_name, custom_headers = nil)
36
- first_page = list_by_replication_fabrics_as_lazy(fabric_name, custom_headers)
35
+ def list_by_replication_fabrics(fabric_name, custom_headers:nil)
36
+ first_page = list_by_replication_fabrics_as_lazy(fabric_name, custom_headers:custom_headers)
37
37
  first_page.get_all_items
38
38
  end
39
39
 
@@ -48,8 +48,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
48
48
  #
49
49
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
50
50
  #
51
- def list_by_replication_fabrics_with_http_info(fabric_name, custom_headers = nil)
52
- list_by_replication_fabrics_async(fabric_name, custom_headers).value!
51
+ def list_by_replication_fabrics_with_http_info(fabric_name, custom_headers:nil)
52
+ list_by_replication_fabrics_async(fabric_name, custom_headers:custom_headers).value!
53
53
  end
54
54
 
55
55
  #
@@ -63,7 +63,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
63
63
  #
64
64
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
65
65
  #
66
- def list_by_replication_fabrics_async(fabric_name, custom_headers = nil)
66
+ def list_by_replication_fabrics_async(fabric_name, custom_headers:nil)
67
67
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
68
68
  fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
69
69
  fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
@@ -72,6 +72,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
72
72
 
73
73
 
74
74
  request_headers = {}
75
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
75
76
 
76
77
  # Set Headers
77
78
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -128,8 +129,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
128
129
  #
129
130
  # @return [LogicalNetwork] operation results.
130
131
  #
131
- def get(fabric_name, logical_network_name, custom_headers = nil)
132
- response = get_async(fabric_name, logical_network_name, custom_headers).value!
132
+ def get(fabric_name, logical_network_name, custom_headers:nil)
133
+ response = get_async(fabric_name, logical_network_name, custom_headers:custom_headers).value!
133
134
  response.body unless response.nil?
134
135
  end
135
136
 
@@ -145,8 +146,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
145
146
  #
146
147
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
147
148
  #
148
- def get_with_http_info(fabric_name, logical_network_name, custom_headers = nil)
149
- get_async(fabric_name, logical_network_name, custom_headers).value!
149
+ def get_with_http_info(fabric_name, logical_network_name, custom_headers:nil)
150
+ get_async(fabric_name, logical_network_name, custom_headers:custom_headers).value!
150
151
  end
151
152
 
152
153
  #
@@ -161,7 +162,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
161
162
  #
162
163
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
163
164
  #
164
- def get_async(fabric_name, logical_network_name, custom_headers = nil)
165
+ def get_async(fabric_name, logical_network_name, custom_headers:nil)
165
166
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
166
167
  fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
167
168
  fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
@@ -171,6 +172,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
171
172
 
172
173
 
173
174
  request_headers = {}
175
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
174
176
 
175
177
  # Set Headers
176
178
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -227,8 +229,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
227
229
  #
228
230
  # @return [LogicalNetworkCollection] operation results.
229
231
  #
230
- def list_by_replication_fabrics_next(next_page_link, custom_headers = nil)
231
- response = list_by_replication_fabrics_next_async(next_page_link, custom_headers).value!
232
+ def list_by_replication_fabrics_next(next_page_link, custom_headers:nil)
233
+ response = list_by_replication_fabrics_next_async(next_page_link, custom_headers:custom_headers).value!
232
234
  response.body unless response.nil?
233
235
  end
234
236
 
@@ -244,8 +246,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
244
246
  #
245
247
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
246
248
  #
247
- def list_by_replication_fabrics_next_with_http_info(next_page_link, custom_headers = nil)
248
- list_by_replication_fabrics_next_async(next_page_link, custom_headers).value!
249
+ def list_by_replication_fabrics_next_with_http_info(next_page_link, custom_headers:nil)
250
+ list_by_replication_fabrics_next_async(next_page_link, custom_headers:custom_headers).value!
249
251
  end
250
252
 
251
253
  #
@@ -260,11 +262,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
260
262
  #
261
263
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
262
264
  #
263
- def list_by_replication_fabrics_next_async(next_page_link, custom_headers = nil)
265
+ def list_by_replication_fabrics_next_async(next_page_link, custom_headers:nil)
264
266
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
265
267
 
266
268
 
267
269
  request_headers = {}
270
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
268
271
 
269
272
  # Set Headers
270
273
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -320,12 +323,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
320
323
  # @return [LogicalNetworkCollection] which provide lazy access to pages of the
321
324
  # response.
322
325
  #
323
- def list_by_replication_fabrics_as_lazy(fabric_name, custom_headers = nil)
324
- response = list_by_replication_fabrics_async(fabric_name, custom_headers).value!
326
+ def list_by_replication_fabrics_as_lazy(fabric_name, custom_headers:nil)
327
+ response = list_by_replication_fabrics_async(fabric_name, custom_headers:custom_headers).value!
325
328
  unless response.nil?
326
329
  page = response.body
327
330
  page.next_method = Proc.new do |next_page_link|
328
- list_by_replication_fabrics_next_async(next_page_link, custom_headers)
331
+ list_by_replication_fabrics_next_async(next_page_link, custom_headers:custom_headers)
329
332
  end
330
333
  page
331
334
  end