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.
- checksums.yaml +4 -4
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/models/azure_fabric_creation_input.rb +2 -2
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/models/fabric_specific_creation_input.rb +1 -1
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/operations.rb +15 -13
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/recovery_points.rb +21 -18
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_alert_settings.rb +27 -25
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_events.rb +21 -18
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_fabrics.rb +91 -87
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_jobs.rb +61 -58
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_logical_networks.rb +21 -18
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_network_mappings.rb +66 -62
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_networks.rb +36 -31
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_policies.rb +51 -49
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protectable_items.rb +21 -18
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protected_items.rb +166 -168
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protection_container_mappings.rb +66 -62
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protection_containers.rb +76 -73
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_recovery_plans.rb +111 -111
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_recovery_services_providers.rb +66 -58
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_storage_classification_mappings.rb +56 -51
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_storage_classifications.rb +36 -31
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_vault_health.rb +6 -5
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replicationv_centers.rb +66 -62
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/site_recovery_management_client.rb +4 -1
- data/lib/profiles/latest/modules/recoveryservicessiterecovery_profile_module.rb +1022 -1003
- data/lib/profiles/latest/recoveryservicessiterecovery_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/recoveryservicessiterecovery_module_definition.rb +0 -1
- data/lib/version.rb +1 -1
- metadata +3 -3
@@ -33,8 +33,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
33
33
|
#
|
34
34
|
# @return [RecoveryServicesProvider] operation results.
|
35
35
|
#
|
36
|
-
def refresh_provider(fabric_name, provider_name, custom_headers
|
37
|
-
response = refresh_provider_async(fabric_name, provider_name, custom_headers).value!
|
36
|
+
def refresh_provider(fabric_name, provider_name, custom_headers:nil)
|
37
|
+
response = refresh_provider_async(fabric_name, provider_name, 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 refresh_provider_async(fabric_name, provider_name, custom_headers
|
50
|
+
def refresh_provider_async(fabric_name, provider_name, custom_headers:nil)
|
51
51
|
# Send request
|
52
|
-
promise = begin_refresh_provider_async(fabric_name, provider_name, custom_headers)
|
52
|
+
promise = begin_refresh_provider_async(fabric_name, provider_name, custom_headers:custom_headers)
|
53
53
|
|
54
54
|
promise = promise.then do |response|
|
55
55
|
# Defining deserialization method.
|
@@ -79,8 +79,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
79
79
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
80
80
|
# will be added to the HTTP request.
|
81
81
|
#
|
82
|
-
def delete(fabric_name, provider_name, custom_headers
|
83
|
-
response = delete_async(fabric_name, provider_name, custom_headers).value!
|
82
|
+
def delete(fabric_name, provider_name, custom_headers:nil)
|
83
|
+
response = delete_async(fabric_name, provider_name, custom_headers:custom_headers).value!
|
84
84
|
nil
|
85
85
|
end
|
86
86
|
|
@@ -93,9 +93,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
93
93
|
# @return [Concurrent::Promise] promise which provides async access to http
|
94
94
|
# response.
|
95
95
|
#
|
96
|
-
def delete_async(fabric_name, provider_name, custom_headers
|
96
|
+
def delete_async(fabric_name, provider_name, custom_headers:nil)
|
97
97
|
# Send request
|
98
|
-
promise = begin_delete_async(fabric_name, provider_name, custom_headers)
|
98
|
+
promise = begin_delete_async(fabric_name, provider_name, custom_headers:custom_headers)
|
99
99
|
|
100
100
|
promise = promise.then do |response|
|
101
101
|
# Defining deserialization method.
|
@@ -121,8 +121,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
121
121
|
#
|
122
122
|
# @return [RecoveryServicesProvider] operation results.
|
123
123
|
#
|
124
|
-
def get(fabric_name, provider_name, custom_headers
|
125
|
-
response = get_async(fabric_name, provider_name, custom_headers).value!
|
124
|
+
def get(fabric_name, provider_name, custom_headers:nil)
|
125
|
+
response = get_async(fabric_name, provider_name, custom_headers:custom_headers).value!
|
126
126
|
response.body unless response.nil?
|
127
127
|
end
|
128
128
|
|
@@ -138,8 +138,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
138
138
|
#
|
139
139
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
140
140
|
#
|
141
|
-
def get_with_http_info(fabric_name, provider_name, custom_headers
|
142
|
-
get_async(fabric_name, provider_name, custom_headers).value!
|
141
|
+
def get_with_http_info(fabric_name, provider_name, custom_headers:nil)
|
142
|
+
get_async(fabric_name, provider_name, custom_headers:custom_headers).value!
|
143
143
|
end
|
144
144
|
|
145
145
|
#
|
@@ -154,7 +154,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
154
154
|
#
|
155
155
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
156
156
|
#
|
157
|
-
def get_async(fabric_name, provider_name, custom_headers
|
157
|
+
def get_async(fabric_name, provider_name, custom_headers:nil)
|
158
158
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
159
159
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
160
160
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -164,6 +164,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
164
164
|
|
165
165
|
|
166
166
|
request_headers = {}
|
167
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
167
168
|
|
168
169
|
# Set Headers
|
169
170
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -219,8 +220,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
219
220
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
220
221
|
# will be added to the HTTP request.
|
221
222
|
#
|
222
|
-
def purge(fabric_name, provider_name, custom_headers
|
223
|
-
response = purge_async(fabric_name, provider_name, custom_headers).value!
|
223
|
+
def purge(fabric_name, provider_name, custom_headers:nil)
|
224
|
+
response = purge_async(fabric_name, provider_name, custom_headers:custom_headers).value!
|
224
225
|
nil
|
225
226
|
end
|
226
227
|
|
@@ -233,9 +234,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
233
234
|
# @return [Concurrent::Promise] promise which provides async access to http
|
234
235
|
# response.
|
235
236
|
#
|
236
|
-
def purge_async(fabric_name, provider_name, custom_headers
|
237
|
+
def purge_async(fabric_name, provider_name, custom_headers:nil)
|
237
238
|
# Send request
|
238
|
-
promise = begin_purge_async(fabric_name, provider_name, custom_headers)
|
239
|
+
promise = begin_purge_async(fabric_name, provider_name, custom_headers:custom_headers)
|
239
240
|
|
240
241
|
promise = promise.then do |response|
|
241
242
|
# Defining deserialization method.
|
@@ -260,8 +261,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
260
261
|
#
|
261
262
|
# @return [Array<RecoveryServicesProvider>] operation results.
|
262
263
|
#
|
263
|
-
def list_by_replication_fabrics(fabric_name, custom_headers
|
264
|
-
first_page = list_by_replication_fabrics_as_lazy(fabric_name, custom_headers)
|
264
|
+
def list_by_replication_fabrics(fabric_name, custom_headers:nil)
|
265
|
+
first_page = list_by_replication_fabrics_as_lazy(fabric_name, custom_headers:custom_headers)
|
265
266
|
first_page.get_all_items
|
266
267
|
end
|
267
268
|
|
@@ -276,8 +277,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
276
277
|
#
|
277
278
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
278
279
|
#
|
279
|
-
def list_by_replication_fabrics_with_http_info(fabric_name, custom_headers
|
280
|
-
list_by_replication_fabrics_async(fabric_name, custom_headers).value!
|
280
|
+
def list_by_replication_fabrics_with_http_info(fabric_name, custom_headers:nil)
|
281
|
+
list_by_replication_fabrics_async(fabric_name, custom_headers:custom_headers).value!
|
281
282
|
end
|
282
283
|
|
283
284
|
#
|
@@ -291,7 +292,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
291
292
|
#
|
292
293
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
293
294
|
#
|
294
|
-
def list_by_replication_fabrics_async(fabric_name, custom_headers
|
295
|
+
def list_by_replication_fabrics_async(fabric_name, custom_headers:nil)
|
295
296
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
296
297
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
297
298
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -300,6 +301,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
300
301
|
|
301
302
|
|
302
303
|
request_headers = {}
|
304
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
303
305
|
|
304
306
|
# Set Headers
|
305
307
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -355,8 +357,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
355
357
|
#
|
356
358
|
# @return [Array<RecoveryServicesProvider>] operation results.
|
357
359
|
#
|
358
|
-
def list(custom_headers
|
359
|
-
first_page = list_as_lazy(custom_headers)
|
360
|
+
def list(custom_headers:nil)
|
361
|
+
first_page = list_as_lazy(custom_headers:custom_headers)
|
360
362
|
first_page.get_all_items
|
361
363
|
end
|
362
364
|
|
@@ -371,8 +373,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
371
373
|
#
|
372
374
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
373
375
|
#
|
374
|
-
def list_with_http_info(custom_headers
|
375
|
-
list_async(custom_headers).value!
|
376
|
+
def list_with_http_info(custom_headers:nil)
|
377
|
+
list_async(custom_headers:custom_headers).value!
|
376
378
|
end
|
377
379
|
|
378
380
|
#
|
@@ -386,7 +388,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
386
388
|
#
|
387
389
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
388
390
|
#
|
389
|
-
def list_async(custom_headers
|
391
|
+
def list_async(custom_headers:nil)
|
390
392
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
391
393
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
392
394
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -394,6 +396,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
394
396
|
|
395
397
|
|
396
398
|
request_headers = {}
|
399
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
397
400
|
|
398
401
|
# Set Headers
|
399
402
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -450,8 +453,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
450
453
|
#
|
451
454
|
# @return [RecoveryServicesProvider] operation results.
|
452
455
|
#
|
453
|
-
def begin_refresh_provider(fabric_name, provider_name, custom_headers
|
454
|
-
response = begin_refresh_provider_async(fabric_name, provider_name, custom_headers).value!
|
456
|
+
def begin_refresh_provider(fabric_name, provider_name, custom_headers:nil)
|
457
|
+
response = begin_refresh_provider_async(fabric_name, provider_name, custom_headers:custom_headers).value!
|
455
458
|
response.body unless response.nil?
|
456
459
|
end
|
457
460
|
|
@@ -467,8 +470,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
467
470
|
#
|
468
471
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
469
472
|
#
|
470
|
-
def begin_refresh_provider_with_http_info(fabric_name, provider_name, custom_headers
|
471
|
-
begin_refresh_provider_async(fabric_name, provider_name, custom_headers).value!
|
473
|
+
def begin_refresh_provider_with_http_info(fabric_name, provider_name, custom_headers:nil)
|
474
|
+
begin_refresh_provider_async(fabric_name, provider_name, custom_headers:custom_headers).value!
|
472
475
|
end
|
473
476
|
|
474
477
|
#
|
@@ -483,7 +486,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
483
486
|
#
|
484
487
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
485
488
|
#
|
486
|
-
def begin_refresh_provider_async(fabric_name, provider_name, custom_headers
|
489
|
+
def begin_refresh_provider_async(fabric_name, provider_name, custom_headers:nil)
|
487
490
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
488
491
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
489
492
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -493,6 +496,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
493
496
|
|
494
497
|
|
495
498
|
request_headers = {}
|
499
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
496
500
|
|
497
501
|
# Set Headers
|
498
502
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -552,8 +556,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
552
556
|
# will be added to the HTTP request.
|
553
557
|
#
|
554
558
|
#
|
555
|
-
def begin_delete(fabric_name, provider_name, custom_headers
|
556
|
-
response = begin_delete_async(fabric_name, provider_name, custom_headers).value!
|
559
|
+
def begin_delete(fabric_name, provider_name, custom_headers:nil)
|
560
|
+
response = begin_delete_async(fabric_name, provider_name, custom_headers:custom_headers).value!
|
557
561
|
nil
|
558
562
|
end
|
559
563
|
|
@@ -573,8 +577,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
573
577
|
#
|
574
578
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
575
579
|
#
|
576
|
-
def begin_delete_with_http_info(fabric_name, provider_name, custom_headers
|
577
|
-
begin_delete_async(fabric_name, provider_name, custom_headers).value!
|
580
|
+
def begin_delete_with_http_info(fabric_name, provider_name, custom_headers:nil)
|
581
|
+
begin_delete_async(fabric_name, provider_name, custom_headers:custom_headers).value!
|
578
582
|
end
|
579
583
|
|
580
584
|
#
|
@@ -593,7 +597,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
593
597
|
#
|
594
598
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
595
599
|
#
|
596
|
-
def begin_delete_async(fabric_name, provider_name, custom_headers
|
600
|
+
def begin_delete_async(fabric_name, provider_name, custom_headers:nil)
|
597
601
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
598
602
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
599
603
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -603,6 +607,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
603
607
|
|
604
608
|
|
605
609
|
request_headers = {}
|
610
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
606
611
|
|
607
612
|
# Set Headers
|
608
613
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -649,8 +654,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
649
654
|
# will be added to the HTTP request.
|
650
655
|
#
|
651
656
|
#
|
652
|
-
def begin_purge(fabric_name, provider_name, custom_headers
|
653
|
-
response = begin_purge_async(fabric_name, provider_name, custom_headers).value!
|
657
|
+
def begin_purge(fabric_name, provider_name, custom_headers:nil)
|
658
|
+
response = begin_purge_async(fabric_name, provider_name, custom_headers:custom_headers).value!
|
654
659
|
nil
|
655
660
|
end
|
656
661
|
|
@@ -667,8 +672,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
667
672
|
#
|
668
673
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
669
674
|
#
|
670
|
-
def begin_purge_with_http_info(fabric_name, provider_name, custom_headers
|
671
|
-
begin_purge_async(fabric_name, provider_name, custom_headers).value!
|
675
|
+
def begin_purge_with_http_info(fabric_name, provider_name, custom_headers:nil)
|
676
|
+
begin_purge_async(fabric_name, provider_name, custom_headers:custom_headers).value!
|
672
677
|
end
|
673
678
|
|
674
679
|
#
|
@@ -684,7 +689,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
684
689
|
#
|
685
690
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
686
691
|
#
|
687
|
-
def begin_purge_async(fabric_name, provider_name, custom_headers
|
692
|
+
def begin_purge_async(fabric_name, provider_name, custom_headers:nil)
|
688
693
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
689
694
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
690
695
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -694,6 +699,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
694
699
|
|
695
700
|
|
696
701
|
request_headers = {}
|
702
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
697
703
|
|
698
704
|
# Set Headers
|
699
705
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -740,8 +746,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
740
746
|
#
|
741
747
|
# @return [RecoveryServicesProviderCollection] operation results.
|
742
748
|
#
|
743
|
-
def list_by_replication_fabrics_next(next_page_link, custom_headers
|
744
|
-
response = list_by_replication_fabrics_next_async(next_page_link, custom_headers).value!
|
749
|
+
def list_by_replication_fabrics_next(next_page_link, custom_headers:nil)
|
750
|
+
response = list_by_replication_fabrics_next_async(next_page_link, custom_headers:custom_headers).value!
|
745
751
|
response.body unless response.nil?
|
746
752
|
end
|
747
753
|
|
@@ -757,8 +763,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
757
763
|
#
|
758
764
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
759
765
|
#
|
760
|
-
def list_by_replication_fabrics_next_with_http_info(next_page_link, custom_headers
|
761
|
-
list_by_replication_fabrics_next_async(next_page_link, custom_headers).value!
|
766
|
+
def list_by_replication_fabrics_next_with_http_info(next_page_link, custom_headers:nil)
|
767
|
+
list_by_replication_fabrics_next_async(next_page_link, custom_headers:custom_headers).value!
|
762
768
|
end
|
763
769
|
|
764
770
|
#
|
@@ -773,11 +779,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
773
779
|
#
|
774
780
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
775
781
|
#
|
776
|
-
def list_by_replication_fabrics_next_async(next_page_link, custom_headers
|
782
|
+
def list_by_replication_fabrics_next_async(next_page_link, custom_headers:nil)
|
777
783
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
778
784
|
|
779
785
|
|
780
786
|
request_headers = {}
|
787
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
781
788
|
|
782
789
|
# Set Headers
|
783
790
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -834,8 +841,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
834
841
|
#
|
835
842
|
# @return [RecoveryServicesProviderCollection] operation results.
|
836
843
|
#
|
837
|
-
def list_next(next_page_link, custom_headers
|
838
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
844
|
+
def list_next(next_page_link, custom_headers:nil)
|
845
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
839
846
|
response.body unless response.nil?
|
840
847
|
end
|
841
848
|
|
@@ -852,8 +859,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
852
859
|
#
|
853
860
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
854
861
|
#
|
855
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
856
|
-
list_next_async(next_page_link, custom_headers).value!
|
862
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
863
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
857
864
|
end
|
858
865
|
|
859
866
|
#
|
@@ -869,11 +876,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
869
876
|
#
|
870
877
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
871
878
|
#
|
872
|
-
def list_next_async(next_page_link, custom_headers
|
879
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
873
880
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
874
881
|
|
875
882
|
|
876
883
|
request_headers = {}
|
884
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
877
885
|
|
878
886
|
# Set Headers
|
879
887
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -929,12 +937,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
929
937
|
# @return [RecoveryServicesProviderCollection] which provide lazy access to
|
930
938
|
# pages of the response.
|
931
939
|
#
|
932
|
-
def list_by_replication_fabrics_as_lazy(fabric_name, custom_headers
|
933
|
-
response = list_by_replication_fabrics_async(fabric_name, custom_headers).value!
|
940
|
+
def list_by_replication_fabrics_as_lazy(fabric_name, custom_headers:nil)
|
941
|
+
response = list_by_replication_fabrics_async(fabric_name, custom_headers:custom_headers).value!
|
934
942
|
unless response.nil?
|
935
943
|
page = response.body
|
936
944
|
page.next_method = Proc.new do |next_page_link|
|
937
|
-
list_by_replication_fabrics_next_async(next_page_link, custom_headers)
|
945
|
+
list_by_replication_fabrics_next_async(next_page_link, custom_headers:custom_headers)
|
938
946
|
end
|
939
947
|
page
|
940
948
|
end
|
@@ -952,12 +960,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
952
960
|
# @return [RecoveryServicesProviderCollection] which provide lazy access to
|
953
961
|
# pages of the response.
|
954
962
|
#
|
955
|
-
def list_as_lazy(custom_headers
|
956
|
-
response = list_async(custom_headers).value!
|
963
|
+
def list_as_lazy(custom_headers:nil)
|
964
|
+
response = list_async(custom_headers:custom_headers).value!
|
957
965
|
unless response.nil?
|
958
966
|
page = response.body
|
959
967
|
page.next_method = Proc.new do |next_page_link|
|
960
|
-
list_next_async(next_page_link, custom_headers)
|
968
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
961
969
|
end
|
962
970
|
page
|
963
971
|
end
|
@@ -35,8 +35,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
35
35
|
#
|
36
36
|
# @return [StorageClassificationMapping] operation results.
|
37
37
|
#
|
38
|
-
def get(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers
|
39
|
-
response = get_async(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers).value!
|
38
|
+
def get(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers:nil)
|
39
|
+
response = get_async(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers:custom_headers).value!
|
40
40
|
response.body unless response.nil?
|
41
41
|
end
|
42
42
|
|
@@ -54,8 +54,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
54
54
|
#
|
55
55
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
56
56
|
#
|
57
|
-
def get_with_http_info(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers
|
58
|
-
get_async(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers).value!
|
57
|
+
def get_with_http_info(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers:nil)
|
58
|
+
get_async(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers:custom_headers).value!
|
59
59
|
end
|
60
60
|
|
61
61
|
#
|
@@ -72,7 +72,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
72
72
|
#
|
73
73
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
74
74
|
#
|
75
|
-
def get_async(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers
|
75
|
+
def get_async(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers:nil)
|
76
76
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
77
77
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
78
78
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -83,6 +83,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
83
83
|
|
84
84
|
|
85
85
|
request_headers = {}
|
86
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
86
87
|
|
87
88
|
# Set Headers
|
88
89
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -142,8 +143,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
142
143
|
#
|
143
144
|
# @return [StorageClassificationMapping] operation results.
|
144
145
|
#
|
145
|
-
def create(fabric_name, storage_classification_name, storage_classification_mapping_name, pairing_input, custom_headers
|
146
|
-
response = create_async(fabric_name, storage_classification_name, storage_classification_mapping_name, pairing_input, custom_headers).value!
|
146
|
+
def create(fabric_name, storage_classification_name, storage_classification_mapping_name, pairing_input, custom_headers:nil)
|
147
|
+
response = create_async(fabric_name, storage_classification_name, storage_classification_mapping_name, pairing_input, custom_headers:custom_headers).value!
|
147
148
|
response.body unless response.nil?
|
148
149
|
end
|
149
150
|
|
@@ -159,9 +160,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
159
160
|
# @return [Concurrent::Promise] promise which provides async access to http
|
160
161
|
# response.
|
161
162
|
#
|
162
|
-
def create_async(fabric_name, storage_classification_name, storage_classification_mapping_name, pairing_input, custom_headers
|
163
|
+
def create_async(fabric_name, storage_classification_name, storage_classification_mapping_name, pairing_input, custom_headers:nil)
|
163
164
|
# Send request
|
164
|
-
promise = begin_create_async(fabric_name, storage_classification_name, storage_classification_mapping_name, pairing_input, custom_headers)
|
165
|
+
promise = begin_create_async(fabric_name, storage_classification_name, storage_classification_mapping_name, pairing_input, custom_headers:custom_headers)
|
165
166
|
|
166
167
|
promise = promise.then do |response|
|
167
168
|
# Defining deserialization method.
|
@@ -189,8 +190,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
189
190
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
190
191
|
# will be added to the HTTP request.
|
191
192
|
#
|
192
|
-
def delete(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers
|
193
|
-
response = delete_async(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers).value!
|
193
|
+
def delete(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers:nil)
|
194
|
+
response = delete_async(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers:custom_headers).value!
|
194
195
|
nil
|
195
196
|
end
|
196
197
|
|
@@ -205,9 +206,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
205
206
|
# @return [Concurrent::Promise] promise which provides async access to http
|
206
207
|
# response.
|
207
208
|
#
|
208
|
-
def delete_async(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers
|
209
|
+
def delete_async(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers:nil)
|
209
210
|
# Send request
|
210
|
-
promise = begin_delete_async(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers)
|
211
|
+
promise = begin_delete_async(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers:custom_headers)
|
211
212
|
|
212
213
|
promise = promise.then do |response|
|
213
214
|
# Defining deserialization method.
|
@@ -233,8 +234,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
233
234
|
#
|
234
235
|
# @return [Array<StorageClassificationMapping>] operation results.
|
235
236
|
#
|
236
|
-
def list_by_replication_storage_classifications(fabric_name, storage_classification_name, custom_headers
|
237
|
-
first_page = list_by_replication_storage_classifications_as_lazy(fabric_name, storage_classification_name, custom_headers)
|
237
|
+
def list_by_replication_storage_classifications(fabric_name, storage_classification_name, custom_headers:nil)
|
238
|
+
first_page = list_by_replication_storage_classifications_as_lazy(fabric_name, storage_classification_name, custom_headers:custom_headers)
|
238
239
|
first_page.get_all_items
|
239
240
|
end
|
240
241
|
|
@@ -250,8 +251,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
250
251
|
#
|
251
252
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
252
253
|
#
|
253
|
-
def list_by_replication_storage_classifications_with_http_info(fabric_name, storage_classification_name, custom_headers
|
254
|
-
list_by_replication_storage_classifications_async(fabric_name, storage_classification_name, custom_headers).value!
|
254
|
+
def list_by_replication_storage_classifications_with_http_info(fabric_name, storage_classification_name, custom_headers:nil)
|
255
|
+
list_by_replication_storage_classifications_async(fabric_name, storage_classification_name, custom_headers:custom_headers).value!
|
255
256
|
end
|
256
257
|
|
257
258
|
#
|
@@ -266,7 +267,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
266
267
|
#
|
267
268
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
268
269
|
#
|
269
|
-
def list_by_replication_storage_classifications_async(fabric_name, storage_classification_name, custom_headers
|
270
|
+
def list_by_replication_storage_classifications_async(fabric_name, storage_classification_name, custom_headers:nil)
|
270
271
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
271
272
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
272
273
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -276,6 +277,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
276
277
|
|
277
278
|
|
278
279
|
request_headers = {}
|
280
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
279
281
|
|
280
282
|
# Set Headers
|
281
283
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -330,8 +332,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
330
332
|
#
|
331
333
|
# @return [Array<StorageClassificationMapping>] operation results.
|
332
334
|
#
|
333
|
-
def list(custom_headers
|
334
|
-
first_page = list_as_lazy(custom_headers)
|
335
|
+
def list(custom_headers:nil)
|
336
|
+
first_page = list_as_lazy(custom_headers:custom_headers)
|
335
337
|
first_page.get_all_items
|
336
338
|
end
|
337
339
|
|
@@ -345,8 +347,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
345
347
|
#
|
346
348
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
347
349
|
#
|
348
|
-
def list_with_http_info(custom_headers
|
349
|
-
list_async(custom_headers).value!
|
350
|
+
def list_with_http_info(custom_headers:nil)
|
351
|
+
list_async(custom_headers:custom_headers).value!
|
350
352
|
end
|
351
353
|
|
352
354
|
#
|
@@ -359,7 +361,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
359
361
|
#
|
360
362
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
361
363
|
#
|
362
|
-
def list_async(custom_headers
|
364
|
+
def list_async(custom_headers:nil)
|
363
365
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
364
366
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
365
367
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -367,6 +369,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
367
369
|
|
368
370
|
|
369
371
|
request_headers = {}
|
372
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
370
373
|
|
371
374
|
# Set Headers
|
372
375
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -426,8 +429,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
426
429
|
#
|
427
430
|
# @return [StorageClassificationMapping] operation results.
|
428
431
|
#
|
429
|
-
def begin_create(fabric_name, storage_classification_name, storage_classification_mapping_name, pairing_input, custom_headers
|
430
|
-
response = begin_create_async(fabric_name, storage_classification_name, storage_classification_mapping_name, pairing_input, custom_headers).value!
|
432
|
+
def begin_create(fabric_name, storage_classification_name, storage_classification_mapping_name, pairing_input, custom_headers:nil)
|
433
|
+
response = begin_create_async(fabric_name, storage_classification_name, storage_classification_mapping_name, pairing_input, custom_headers:custom_headers).value!
|
431
434
|
response.body unless response.nil?
|
432
435
|
end
|
433
436
|
|
@@ -446,8 +449,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
446
449
|
#
|
447
450
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
448
451
|
#
|
449
|
-
def begin_create_with_http_info(fabric_name, storage_classification_name, storage_classification_mapping_name, pairing_input, custom_headers
|
450
|
-
begin_create_async(fabric_name, storage_classification_name, storage_classification_mapping_name, pairing_input, custom_headers).value!
|
452
|
+
def begin_create_with_http_info(fabric_name, storage_classification_name, storage_classification_mapping_name, pairing_input, custom_headers:nil)
|
453
|
+
begin_create_async(fabric_name, storage_classification_name, storage_classification_mapping_name, pairing_input, custom_headers:custom_headers).value!
|
451
454
|
end
|
452
455
|
|
453
456
|
#
|
@@ -465,7 +468,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
465
468
|
#
|
466
469
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
467
470
|
#
|
468
|
-
def begin_create_async(fabric_name, storage_classification_name, storage_classification_mapping_name, pairing_input, custom_headers
|
471
|
+
def begin_create_async(fabric_name, storage_classification_name, storage_classification_mapping_name, pairing_input, custom_headers:nil)
|
469
472
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
470
473
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
471
474
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -477,13 +480,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
477
480
|
|
478
481
|
|
479
482
|
request_headers = {}
|
483
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
480
484
|
|
481
485
|
# Set Headers
|
482
486
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
483
487
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
484
488
|
|
485
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
486
|
-
|
487
489
|
# Serialize Request
|
488
490
|
request_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::Models::StorageClassificationMappingInput.mapper()
|
489
491
|
request_content = @client.serialize(request_mapper, pairing_input)
|
@@ -543,8 +545,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
543
545
|
# will be added to the HTTP request.
|
544
546
|
#
|
545
547
|
#
|
546
|
-
def begin_delete(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers
|
547
|
-
response = begin_delete_async(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers).value!
|
548
|
+
def begin_delete(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers:nil)
|
549
|
+
response = begin_delete_async(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers:custom_headers).value!
|
548
550
|
nil
|
549
551
|
end
|
550
552
|
|
@@ -562,8 +564,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
562
564
|
#
|
563
565
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
564
566
|
#
|
565
|
-
def begin_delete_with_http_info(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers
|
566
|
-
begin_delete_async(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers).value!
|
567
|
+
def begin_delete_with_http_info(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers:nil)
|
568
|
+
begin_delete_async(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers:custom_headers).value!
|
567
569
|
end
|
568
570
|
|
569
571
|
#
|
@@ -580,7 +582,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
580
582
|
#
|
581
583
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
582
584
|
#
|
583
|
-
def begin_delete_async(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers
|
585
|
+
def begin_delete_async(fabric_name, storage_classification_name, storage_classification_mapping_name, custom_headers:nil)
|
584
586
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
585
587
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
586
588
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -591,6 +593,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
591
593
|
|
592
594
|
|
593
595
|
request_headers = {}
|
596
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
594
597
|
|
595
598
|
# Set Headers
|
596
599
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -637,8 +640,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
637
640
|
#
|
638
641
|
# @return [StorageClassificationMappingCollection] operation results.
|
639
642
|
#
|
640
|
-
def list_by_replication_storage_classifications_next(next_page_link, custom_headers
|
641
|
-
response = list_by_replication_storage_classifications_next_async(next_page_link, custom_headers).value!
|
643
|
+
def list_by_replication_storage_classifications_next(next_page_link, custom_headers:nil)
|
644
|
+
response = list_by_replication_storage_classifications_next_async(next_page_link, custom_headers:custom_headers).value!
|
642
645
|
response.body unless response.nil?
|
643
646
|
end
|
644
647
|
|
@@ -654,8 +657,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
654
657
|
#
|
655
658
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
656
659
|
#
|
657
|
-
def list_by_replication_storage_classifications_next_with_http_info(next_page_link, custom_headers
|
658
|
-
list_by_replication_storage_classifications_next_async(next_page_link, custom_headers).value!
|
660
|
+
def list_by_replication_storage_classifications_next_with_http_info(next_page_link, custom_headers:nil)
|
661
|
+
list_by_replication_storage_classifications_next_async(next_page_link, custom_headers:custom_headers).value!
|
659
662
|
end
|
660
663
|
|
661
664
|
#
|
@@ -670,11 +673,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
670
673
|
#
|
671
674
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
672
675
|
#
|
673
|
-
def list_by_replication_storage_classifications_next_async(next_page_link, custom_headers
|
676
|
+
def list_by_replication_storage_classifications_next_async(next_page_link, custom_headers:nil)
|
674
677
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
675
678
|
|
676
679
|
|
677
680
|
request_headers = {}
|
681
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
678
682
|
|
679
683
|
# Set Headers
|
680
684
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -730,8 +734,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
730
734
|
#
|
731
735
|
# @return [StorageClassificationMappingCollection] operation results.
|
732
736
|
#
|
733
|
-
def list_next(next_page_link, custom_headers
|
734
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
737
|
+
def list_next(next_page_link, custom_headers:nil)
|
738
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
735
739
|
response.body unless response.nil?
|
736
740
|
end
|
737
741
|
|
@@ -747,8 +751,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
747
751
|
#
|
748
752
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
749
753
|
#
|
750
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
751
|
-
list_next_async(next_page_link, custom_headers).value!
|
754
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
755
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
752
756
|
end
|
753
757
|
|
754
758
|
#
|
@@ -763,11 +767,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
763
767
|
#
|
764
768
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
765
769
|
#
|
766
|
-
def list_next_async(next_page_link, custom_headers
|
770
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
767
771
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
768
772
|
|
769
773
|
|
770
774
|
request_headers = {}
|
775
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
771
776
|
|
772
777
|
# Set Headers
|
773
778
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -824,12 +829,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
824
829
|
# @return [StorageClassificationMappingCollection] which provide lazy access to
|
825
830
|
# pages of the response.
|
826
831
|
#
|
827
|
-
def list_by_replication_storage_classifications_as_lazy(fabric_name, storage_classification_name, custom_headers
|
828
|
-
response = list_by_replication_storage_classifications_async(fabric_name, storage_classification_name, custom_headers).value!
|
832
|
+
def list_by_replication_storage_classifications_as_lazy(fabric_name, storage_classification_name, custom_headers:nil)
|
833
|
+
response = list_by_replication_storage_classifications_async(fabric_name, storage_classification_name, custom_headers:custom_headers).value!
|
829
834
|
unless response.nil?
|
830
835
|
page = response.body
|
831
836
|
page.next_method = Proc.new do |next_page_link|
|
832
|
-
list_by_replication_storage_classifications_next_async(next_page_link, custom_headers)
|
837
|
+
list_by_replication_storage_classifications_next_async(next_page_link, custom_headers:custom_headers)
|
833
838
|
end
|
834
839
|
page
|
835
840
|
end
|
@@ -846,12 +851,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
846
851
|
# @return [StorageClassificationMappingCollection] which provide lazy access to
|
847
852
|
# pages of the response.
|
848
853
|
#
|
849
|
-
def list_as_lazy(custom_headers
|
850
|
-
response = list_async(custom_headers).value!
|
854
|
+
def list_as_lazy(custom_headers:nil)
|
855
|
+
response = list_async(custom_headers:custom_headers).value!
|
851
856
|
unless response.nil?
|
852
857
|
page = response.body
|
853
858
|
page.next_method = Proc.new do |next_page_link|
|
854
|
-
list_next_async(next_page_link, custom_headers)
|
859
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
855
860
|
end
|
856
861
|
page
|
857
862
|
end
|