azure_mgmt_recovery_services_site_recovery 0.15.2 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- 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
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
34
34
|
# will be added to the HTTP request.
|
35
35
|
#
|
36
|
-
def delete(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers
|
37
|
-
response = delete_async(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers).value!
|
36
|
+
def delete(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers:nil)
|
37
|
+
response = delete_async(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers:custom_headers).value!
|
38
38
|
nil
|
39
39
|
end
|
40
40
|
|
@@ -49,9 +49,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
49
49
|
# @return [Concurrent::Promise] promise which provides async access to http
|
50
50
|
# response.
|
51
51
|
#
|
52
|
-
def delete_async(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers
|
52
|
+
def delete_async(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers:nil)
|
53
53
|
# Send request
|
54
|
-
promise = begin_delete_async(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers)
|
54
|
+
promise = begin_delete_async(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers:custom_headers)
|
55
55
|
|
56
56
|
promise = promise.then do |response|
|
57
57
|
# Defining deserialization method.
|
@@ -78,8 +78,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
78
78
|
#
|
79
79
|
# @return [ProtectionContainerMapping] operation results.
|
80
80
|
#
|
81
|
-
def get(fabric_name, protection_container_name, mapping_name, custom_headers
|
82
|
-
response = get_async(fabric_name, protection_container_name, mapping_name, custom_headers).value!
|
81
|
+
def get(fabric_name, protection_container_name, mapping_name, custom_headers:nil)
|
82
|
+
response = get_async(fabric_name, protection_container_name, mapping_name, custom_headers:custom_headers).value!
|
83
83
|
response.body unless response.nil?
|
84
84
|
end
|
85
85
|
|
@@ -96,8 +96,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
96
96
|
#
|
97
97
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
98
98
|
#
|
99
|
-
def get_with_http_info(fabric_name, protection_container_name, mapping_name, custom_headers
|
100
|
-
get_async(fabric_name, protection_container_name, mapping_name, custom_headers).value!
|
99
|
+
def get_with_http_info(fabric_name, protection_container_name, mapping_name, custom_headers:nil)
|
100
|
+
get_async(fabric_name, protection_container_name, mapping_name, custom_headers:custom_headers).value!
|
101
101
|
end
|
102
102
|
|
103
103
|
#
|
@@ -113,7 +113,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
113
113
|
#
|
114
114
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
115
115
|
#
|
116
|
-
def get_async(fabric_name, protection_container_name, mapping_name, custom_headers
|
116
|
+
def get_async(fabric_name, protection_container_name, mapping_name, custom_headers:nil)
|
117
117
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
118
118
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
119
119
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -124,6 +124,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
124
124
|
|
125
125
|
|
126
126
|
request_headers = {}
|
127
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
127
128
|
|
128
129
|
# Set Headers
|
129
130
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -183,8 +184,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
183
184
|
#
|
184
185
|
# @return [ProtectionContainerMapping] operation results.
|
185
186
|
#
|
186
|
-
def create(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers
|
187
|
-
response = create_async(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers).value!
|
187
|
+
def create(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers:nil)
|
188
|
+
response = create_async(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers:custom_headers).value!
|
188
189
|
response.body unless response.nil?
|
189
190
|
end
|
190
191
|
|
@@ -200,9 +201,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
200
201
|
# @return [Concurrent::Promise] promise which provides async access to http
|
201
202
|
# response.
|
202
203
|
#
|
203
|
-
def create_async(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers
|
204
|
+
def create_async(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers:nil)
|
204
205
|
# Send request
|
205
|
-
promise = begin_create_async(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers)
|
206
|
+
promise = begin_create_async(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers:custom_headers)
|
206
207
|
|
207
208
|
promise = promise.then do |response|
|
208
209
|
# Defining deserialization method.
|
@@ -229,8 +230,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
229
230
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
230
231
|
# will be added to the HTTP request.
|
231
232
|
#
|
232
|
-
def purge(fabric_name, protection_container_name, mapping_name, custom_headers
|
233
|
-
response = purge_async(fabric_name, protection_container_name, mapping_name, custom_headers).value!
|
233
|
+
def purge(fabric_name, protection_container_name, mapping_name, custom_headers:nil)
|
234
|
+
response = purge_async(fabric_name, protection_container_name, mapping_name, custom_headers:custom_headers).value!
|
234
235
|
nil
|
235
236
|
end
|
236
237
|
|
@@ -244,9 +245,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
244
245
|
# @return [Concurrent::Promise] promise which provides async access to http
|
245
246
|
# response.
|
246
247
|
#
|
247
|
-
def purge_async(fabric_name, protection_container_name, mapping_name, custom_headers
|
248
|
+
def purge_async(fabric_name, protection_container_name, mapping_name, custom_headers:nil)
|
248
249
|
# Send request
|
249
|
-
promise = begin_purge_async(fabric_name, protection_container_name, mapping_name, custom_headers)
|
250
|
+
promise = begin_purge_async(fabric_name, protection_container_name, mapping_name, custom_headers:custom_headers)
|
250
251
|
|
251
252
|
promise = promise.then do |response|
|
252
253
|
# Defining deserialization method.
|
@@ -272,8 +273,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
272
273
|
#
|
273
274
|
# @return [Array<ProtectionContainerMapping>] operation results.
|
274
275
|
#
|
275
|
-
def list_by_replication_protection_containers(fabric_name, protection_container_name, custom_headers
|
276
|
-
first_page = list_by_replication_protection_containers_as_lazy(fabric_name, protection_container_name, custom_headers)
|
276
|
+
def list_by_replication_protection_containers(fabric_name, protection_container_name, custom_headers:nil)
|
277
|
+
first_page = list_by_replication_protection_containers_as_lazy(fabric_name, protection_container_name, custom_headers:custom_headers)
|
277
278
|
first_page.get_all_items
|
278
279
|
end
|
279
280
|
|
@@ -289,8 +290,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
289
290
|
#
|
290
291
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
291
292
|
#
|
292
|
-
def list_by_replication_protection_containers_with_http_info(fabric_name, protection_container_name, custom_headers
|
293
|
-
list_by_replication_protection_containers_async(fabric_name, protection_container_name, custom_headers).value!
|
293
|
+
def list_by_replication_protection_containers_with_http_info(fabric_name, protection_container_name, custom_headers:nil)
|
294
|
+
list_by_replication_protection_containers_async(fabric_name, protection_container_name, custom_headers:custom_headers).value!
|
294
295
|
end
|
295
296
|
|
296
297
|
#
|
@@ -305,7 +306,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
305
306
|
#
|
306
307
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
307
308
|
#
|
308
|
-
def list_by_replication_protection_containers_async(fabric_name, protection_container_name, custom_headers
|
309
|
+
def list_by_replication_protection_containers_async(fabric_name, protection_container_name, custom_headers:nil)
|
309
310
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
310
311
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
311
312
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -315,6 +316,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
315
316
|
|
316
317
|
|
317
318
|
request_headers = {}
|
319
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
318
320
|
|
319
321
|
# Set Headers
|
320
322
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -369,8 +371,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
369
371
|
#
|
370
372
|
# @return [Array<ProtectionContainerMapping>] operation results.
|
371
373
|
#
|
372
|
-
def list(custom_headers
|
373
|
-
first_page = list_as_lazy(custom_headers)
|
374
|
+
def list(custom_headers:nil)
|
375
|
+
first_page = list_as_lazy(custom_headers:custom_headers)
|
374
376
|
first_page.get_all_items
|
375
377
|
end
|
376
378
|
|
@@ -384,8 +386,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
384
386
|
#
|
385
387
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
386
388
|
#
|
387
|
-
def list_with_http_info(custom_headers
|
388
|
-
list_async(custom_headers).value!
|
389
|
+
def list_with_http_info(custom_headers:nil)
|
390
|
+
list_async(custom_headers:custom_headers).value!
|
389
391
|
end
|
390
392
|
|
391
393
|
#
|
@@ -398,7 +400,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
398
400
|
#
|
399
401
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
400
402
|
#
|
401
|
-
def list_async(custom_headers
|
403
|
+
def list_async(custom_headers:nil)
|
402
404
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
403
405
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
404
406
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -406,6 +408,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
406
408
|
|
407
409
|
|
408
410
|
request_headers = {}
|
411
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
409
412
|
|
410
413
|
# Set Headers
|
411
414
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -463,8 +466,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
463
466
|
# will be added to the HTTP request.
|
464
467
|
#
|
465
468
|
#
|
466
|
-
def begin_delete(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers
|
467
|
-
response = begin_delete_async(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers).value!
|
469
|
+
def begin_delete(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers:nil)
|
470
|
+
response = begin_delete_async(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers:custom_headers).value!
|
468
471
|
nil
|
469
472
|
end
|
470
473
|
|
@@ -482,8 +485,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
482
485
|
#
|
483
486
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
484
487
|
#
|
485
|
-
def begin_delete_with_http_info(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers
|
486
|
-
begin_delete_async(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers).value!
|
488
|
+
def begin_delete_with_http_info(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers:nil)
|
489
|
+
begin_delete_async(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers:custom_headers).value!
|
487
490
|
end
|
488
491
|
|
489
492
|
#
|
@@ -500,7 +503,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
500
503
|
#
|
501
504
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
502
505
|
#
|
503
|
-
def begin_delete_async(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers
|
506
|
+
def begin_delete_async(fabric_name, protection_container_name, mapping_name, removal_input, custom_headers:nil)
|
504
507
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
505
508
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
506
509
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -512,13 +515,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
512
515
|
|
513
516
|
|
514
517
|
request_headers = {}
|
518
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
515
519
|
|
516
520
|
# Set Headers
|
517
521
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
518
522
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
519
523
|
|
520
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
521
|
-
|
522
524
|
# Serialize Request
|
523
525
|
request_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::Models::RemoveProtectionContainerMappingInput.mapper()
|
524
526
|
request_content = @client.serialize(request_mapper, removal_input)
|
@@ -570,8 +572,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
570
572
|
#
|
571
573
|
# @return [ProtectionContainerMapping] operation results.
|
572
574
|
#
|
573
|
-
def begin_create(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers
|
574
|
-
response = begin_create_async(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers).value!
|
575
|
+
def begin_create(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers:nil)
|
576
|
+
response = begin_create_async(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers:custom_headers).value!
|
575
577
|
response.body unless response.nil?
|
576
578
|
end
|
577
579
|
|
@@ -590,8 +592,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
590
592
|
#
|
591
593
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
592
594
|
#
|
593
|
-
def begin_create_with_http_info(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers
|
594
|
-
begin_create_async(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers).value!
|
595
|
+
def begin_create_with_http_info(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers:nil)
|
596
|
+
begin_create_async(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers:custom_headers).value!
|
595
597
|
end
|
596
598
|
|
597
599
|
#
|
@@ -609,7 +611,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
609
611
|
#
|
610
612
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
611
613
|
#
|
612
|
-
def begin_create_async(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers
|
614
|
+
def begin_create_async(fabric_name, protection_container_name, mapping_name, creation_input, custom_headers:nil)
|
613
615
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
614
616
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
615
617
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -621,13 +623,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
621
623
|
|
622
624
|
|
623
625
|
request_headers = {}
|
626
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
624
627
|
|
625
628
|
# Set Headers
|
626
629
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
627
630
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
628
631
|
|
629
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
630
|
-
|
631
632
|
# Serialize Request
|
632
633
|
request_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::Models::CreateProtectionContainerMappingInput.mapper()
|
633
634
|
request_content = @client.serialize(request_mapper, creation_input)
|
@@ -686,8 +687,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
686
687
|
# will be added to the HTTP request.
|
687
688
|
#
|
688
689
|
#
|
689
|
-
def begin_purge(fabric_name, protection_container_name, mapping_name, custom_headers
|
690
|
-
response = begin_purge_async(fabric_name, protection_container_name, mapping_name, custom_headers).value!
|
690
|
+
def begin_purge(fabric_name, protection_container_name, mapping_name, custom_headers:nil)
|
691
|
+
response = begin_purge_async(fabric_name, protection_container_name, mapping_name, custom_headers:custom_headers).value!
|
691
692
|
nil
|
692
693
|
end
|
693
694
|
|
@@ -704,8 +705,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
704
705
|
#
|
705
706
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
706
707
|
#
|
707
|
-
def begin_purge_with_http_info(fabric_name, protection_container_name, mapping_name, custom_headers
|
708
|
-
begin_purge_async(fabric_name, protection_container_name, mapping_name, custom_headers).value!
|
708
|
+
def begin_purge_with_http_info(fabric_name, protection_container_name, mapping_name, custom_headers:nil)
|
709
|
+
begin_purge_async(fabric_name, protection_container_name, mapping_name, custom_headers:custom_headers).value!
|
709
710
|
end
|
710
711
|
|
711
712
|
#
|
@@ -721,7 +722,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
721
722
|
#
|
722
723
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
723
724
|
#
|
724
|
-
def begin_purge_async(fabric_name, protection_container_name, mapping_name, custom_headers
|
725
|
+
def begin_purge_async(fabric_name, protection_container_name, mapping_name, custom_headers:nil)
|
725
726
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
726
727
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
727
728
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -732,6 +733,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
732
733
|
|
733
734
|
|
734
735
|
request_headers = {}
|
736
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
735
737
|
|
736
738
|
# Set Headers
|
737
739
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -778,8 +780,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
778
780
|
#
|
779
781
|
# @return [ProtectionContainerMappingCollection] operation results.
|
780
782
|
#
|
781
|
-
def list_by_replication_protection_containers_next(next_page_link, custom_headers
|
782
|
-
response = list_by_replication_protection_containers_next_async(next_page_link, custom_headers).value!
|
783
|
+
def list_by_replication_protection_containers_next(next_page_link, custom_headers:nil)
|
784
|
+
response = list_by_replication_protection_containers_next_async(next_page_link, custom_headers:custom_headers).value!
|
783
785
|
response.body unless response.nil?
|
784
786
|
end
|
785
787
|
|
@@ -795,8 +797,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
795
797
|
#
|
796
798
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
797
799
|
#
|
798
|
-
def list_by_replication_protection_containers_next_with_http_info(next_page_link, custom_headers
|
799
|
-
list_by_replication_protection_containers_next_async(next_page_link, custom_headers).value!
|
800
|
+
def list_by_replication_protection_containers_next_with_http_info(next_page_link, custom_headers:nil)
|
801
|
+
list_by_replication_protection_containers_next_async(next_page_link, custom_headers:custom_headers).value!
|
800
802
|
end
|
801
803
|
|
802
804
|
#
|
@@ -811,11 +813,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
811
813
|
#
|
812
814
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
813
815
|
#
|
814
|
-
def list_by_replication_protection_containers_next_async(next_page_link, custom_headers
|
816
|
+
def list_by_replication_protection_containers_next_async(next_page_link, custom_headers:nil)
|
815
817
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
816
818
|
|
817
819
|
|
818
820
|
request_headers = {}
|
821
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
819
822
|
|
820
823
|
# Set Headers
|
821
824
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -871,8 +874,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
871
874
|
#
|
872
875
|
# @return [ProtectionContainerMappingCollection] operation results.
|
873
876
|
#
|
874
|
-
def list_next(next_page_link, custom_headers
|
875
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
877
|
+
def list_next(next_page_link, custom_headers:nil)
|
878
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
876
879
|
response.body unless response.nil?
|
877
880
|
end
|
878
881
|
|
@@ -888,8 +891,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
888
891
|
#
|
889
892
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
890
893
|
#
|
891
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
892
|
-
list_next_async(next_page_link, custom_headers).value!
|
894
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
895
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
893
896
|
end
|
894
897
|
|
895
898
|
#
|
@@ -904,11 +907,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
904
907
|
#
|
905
908
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
906
909
|
#
|
907
|
-
def list_next_async(next_page_link, custom_headers
|
910
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
908
911
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
909
912
|
|
910
913
|
|
911
914
|
request_headers = {}
|
915
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
912
916
|
|
913
917
|
# Set Headers
|
914
918
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -965,12 +969,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
965
969
|
# @return [ProtectionContainerMappingCollection] which provide lazy access to
|
966
970
|
# pages of the response.
|
967
971
|
#
|
968
|
-
def list_by_replication_protection_containers_as_lazy(fabric_name, protection_container_name, custom_headers
|
969
|
-
response = list_by_replication_protection_containers_async(fabric_name, protection_container_name, custom_headers).value!
|
972
|
+
def list_by_replication_protection_containers_as_lazy(fabric_name, protection_container_name, custom_headers:nil)
|
973
|
+
response = list_by_replication_protection_containers_async(fabric_name, protection_container_name, custom_headers:custom_headers).value!
|
970
974
|
unless response.nil?
|
971
975
|
page = response.body
|
972
976
|
page.next_method = Proc.new do |next_page_link|
|
973
|
-
list_by_replication_protection_containers_next_async(next_page_link, custom_headers)
|
977
|
+
list_by_replication_protection_containers_next_async(next_page_link, custom_headers:custom_headers)
|
974
978
|
end
|
975
979
|
page
|
976
980
|
end
|
@@ -987,12 +991,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
987
991
|
# @return [ProtectionContainerMappingCollection] which provide lazy access to
|
988
992
|
# pages of the response.
|
989
993
|
#
|
990
|
-
def list_as_lazy(custom_headers
|
991
|
-
response = list_async(custom_headers).value!
|
994
|
+
def list_as_lazy(custom_headers:nil)
|
995
|
+
response = list_async(custom_headers:custom_headers).value!
|
992
996
|
unless response.nil?
|
993
997
|
page = response.body
|
994
998
|
page.next_method = Proc.new do |next_page_link|
|
995
|
-
list_next_async(next_page_link, custom_headers)
|
999
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
996
1000
|
end
|
997
1001
|
page
|
998
1002
|
end
|
@@ -36,8 +36,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
36
36
|
#
|
37
37
|
# @return [ProtectionContainer] operation results.
|
38
38
|
#
|
39
|
-
def switch_protection(fabric_name, protection_container_name, switch_input, custom_headers
|
40
|
-
response = switch_protection_async(fabric_name, protection_container_name, switch_input, custom_headers).value!
|
39
|
+
def switch_protection(fabric_name, protection_container_name, switch_input, custom_headers:nil)
|
40
|
+
response = switch_protection_async(fabric_name, protection_container_name, switch_input, custom_headers:custom_headers).value!
|
41
41
|
response.body unless response.nil?
|
42
42
|
end
|
43
43
|
|
@@ -51,9 +51,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
51
51
|
# @return [Concurrent::Promise] promise which provides async access to http
|
52
52
|
# response.
|
53
53
|
#
|
54
|
-
def switch_protection_async(fabric_name, protection_container_name, switch_input, custom_headers
|
54
|
+
def switch_protection_async(fabric_name, protection_container_name, switch_input, custom_headers:nil)
|
55
55
|
# Send request
|
56
|
-
promise = begin_switch_protection_async(fabric_name, protection_container_name, switch_input, custom_headers)
|
56
|
+
promise = begin_switch_protection_async(fabric_name, protection_container_name, switch_input, custom_headers:custom_headers)
|
57
57
|
|
58
58
|
promise = promise.then do |response|
|
59
59
|
# Defining deserialization method.
|
@@ -80,8 +80,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
80
80
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
81
81
|
# will be added to the HTTP request.
|
82
82
|
#
|
83
|
-
def delete(fabric_name, protection_container_name, custom_headers
|
84
|
-
response = delete_async(fabric_name, protection_container_name, custom_headers).value!
|
83
|
+
def delete(fabric_name, protection_container_name, custom_headers:nil)
|
84
|
+
response = delete_async(fabric_name, protection_container_name, custom_headers:custom_headers).value!
|
85
85
|
nil
|
86
86
|
end
|
87
87
|
|
@@ -95,9 +95,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
95
95
|
# @return [Concurrent::Promise] promise which provides async access to http
|
96
96
|
# response.
|
97
97
|
#
|
98
|
-
def delete_async(fabric_name, protection_container_name, custom_headers
|
98
|
+
def delete_async(fabric_name, protection_container_name, custom_headers:nil)
|
99
99
|
# Send request
|
100
|
-
promise = begin_delete_async(fabric_name, protection_container_name, custom_headers)
|
100
|
+
promise = begin_delete_async(fabric_name, protection_container_name, custom_headers:custom_headers)
|
101
101
|
|
102
102
|
promise = promise.then do |response|
|
103
103
|
# Defining deserialization method.
|
@@ -127,8 +127,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
127
127
|
#
|
128
128
|
# @return [ProtectionContainer] operation results.
|
129
129
|
#
|
130
|
-
def discover_protectable_item(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers
|
131
|
-
response = discover_protectable_item_async(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers).value!
|
130
|
+
def discover_protectable_item(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers:nil)
|
131
|
+
response = discover_protectable_item_async(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers:custom_headers).value!
|
132
132
|
response.body unless response.nil?
|
133
133
|
end
|
134
134
|
|
@@ -144,9 +144,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
144
144
|
# @return [Concurrent::Promise] promise which provides async access to http
|
145
145
|
# response.
|
146
146
|
#
|
147
|
-
def discover_protectable_item_async(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers
|
147
|
+
def discover_protectable_item_async(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers:nil)
|
148
148
|
# Send request
|
149
|
-
promise = begin_discover_protectable_item_async(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers)
|
149
|
+
promise = begin_discover_protectable_item_async(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers:custom_headers)
|
150
150
|
|
151
151
|
promise = promise.then do |response|
|
152
152
|
# Defining deserialization method.
|
@@ -174,8 +174,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
174
174
|
#
|
175
175
|
# @return [ProtectionContainer] operation results.
|
176
176
|
#
|
177
|
-
def get(fabric_name, protection_container_name, custom_headers
|
178
|
-
response = get_async(fabric_name, protection_container_name, custom_headers).value!
|
177
|
+
def get(fabric_name, protection_container_name, custom_headers:nil)
|
178
|
+
response = get_async(fabric_name, protection_container_name, custom_headers:custom_headers).value!
|
179
179
|
response.body unless response.nil?
|
180
180
|
end
|
181
181
|
|
@@ -191,8 +191,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
191
191
|
#
|
192
192
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
193
193
|
#
|
194
|
-
def get_with_http_info(fabric_name, protection_container_name, custom_headers
|
195
|
-
get_async(fabric_name, protection_container_name, custom_headers).value!
|
194
|
+
def get_with_http_info(fabric_name, protection_container_name, custom_headers:nil)
|
195
|
+
get_async(fabric_name, protection_container_name, custom_headers:custom_headers).value!
|
196
196
|
end
|
197
197
|
|
198
198
|
#
|
@@ -207,7 +207,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
207
207
|
#
|
208
208
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
209
209
|
#
|
210
|
-
def get_async(fabric_name, protection_container_name, custom_headers
|
210
|
+
def get_async(fabric_name, protection_container_name, custom_headers:nil)
|
211
211
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
212
212
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
213
213
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -217,6 +217,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
217
217
|
|
218
218
|
|
219
219
|
request_headers = {}
|
220
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
220
221
|
|
221
222
|
# Set Headers
|
222
223
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -275,8 +276,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
275
276
|
#
|
276
277
|
# @return [ProtectionContainer] operation results.
|
277
278
|
#
|
278
|
-
def create(fabric_name, protection_container_name, creation_input, custom_headers
|
279
|
-
response = create_async(fabric_name, protection_container_name, creation_input, custom_headers).value!
|
279
|
+
def create(fabric_name, protection_container_name, creation_input, custom_headers:nil)
|
280
|
+
response = create_async(fabric_name, protection_container_name, creation_input, custom_headers:custom_headers).value!
|
280
281
|
response.body unless response.nil?
|
281
282
|
end
|
282
283
|
|
@@ -291,9 +292,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
291
292
|
# @return [Concurrent::Promise] promise which provides async access to http
|
292
293
|
# response.
|
293
294
|
#
|
294
|
-
def create_async(fabric_name, protection_container_name, creation_input, custom_headers
|
295
|
+
def create_async(fabric_name, protection_container_name, creation_input, custom_headers:nil)
|
295
296
|
# Send request
|
296
|
-
promise = begin_create_async(fabric_name, protection_container_name, creation_input, custom_headers)
|
297
|
+
promise = begin_create_async(fabric_name, protection_container_name, creation_input, custom_headers:custom_headers)
|
297
298
|
|
298
299
|
promise = promise.then do |response|
|
299
300
|
# Defining deserialization method.
|
@@ -320,8 +321,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
320
321
|
#
|
321
322
|
# @return [Array<ProtectionContainer>] operation results.
|
322
323
|
#
|
323
|
-
def list_by_replication_fabrics(fabric_name, custom_headers
|
324
|
-
first_page = list_by_replication_fabrics_as_lazy(fabric_name, custom_headers)
|
324
|
+
def list_by_replication_fabrics(fabric_name, custom_headers:nil)
|
325
|
+
first_page = list_by_replication_fabrics_as_lazy(fabric_name, custom_headers:custom_headers)
|
325
326
|
first_page.get_all_items
|
326
327
|
end
|
327
328
|
|
@@ -336,8 +337,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
336
337
|
#
|
337
338
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
338
339
|
#
|
339
|
-
def list_by_replication_fabrics_with_http_info(fabric_name, custom_headers
|
340
|
-
list_by_replication_fabrics_async(fabric_name, custom_headers).value!
|
340
|
+
def list_by_replication_fabrics_with_http_info(fabric_name, custom_headers:nil)
|
341
|
+
list_by_replication_fabrics_async(fabric_name, custom_headers:custom_headers).value!
|
341
342
|
end
|
342
343
|
|
343
344
|
#
|
@@ -351,7 +352,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
351
352
|
#
|
352
353
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
353
354
|
#
|
354
|
-
def list_by_replication_fabrics_async(fabric_name, custom_headers
|
355
|
+
def list_by_replication_fabrics_async(fabric_name, custom_headers:nil)
|
355
356
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
356
357
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
357
358
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -360,6 +361,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
360
361
|
|
361
362
|
|
362
363
|
request_headers = {}
|
364
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
363
365
|
|
364
366
|
# Set Headers
|
365
367
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -414,8 +416,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
414
416
|
#
|
415
417
|
# @return [Array<ProtectionContainer>] operation results.
|
416
418
|
#
|
417
|
-
def list(custom_headers
|
418
|
-
first_page = list_as_lazy(custom_headers)
|
419
|
+
def list(custom_headers:nil)
|
420
|
+
first_page = list_as_lazy(custom_headers:custom_headers)
|
419
421
|
first_page.get_all_items
|
420
422
|
end
|
421
423
|
|
@@ -429,8 +431,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
429
431
|
#
|
430
432
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
431
433
|
#
|
432
|
-
def list_with_http_info(custom_headers
|
433
|
-
list_async(custom_headers).value!
|
434
|
+
def list_with_http_info(custom_headers:nil)
|
435
|
+
list_async(custom_headers:custom_headers).value!
|
434
436
|
end
|
435
437
|
|
436
438
|
#
|
@@ -443,7 +445,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
443
445
|
#
|
444
446
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
445
447
|
#
|
446
|
-
def list_async(custom_headers
|
448
|
+
def list_async(custom_headers:nil)
|
447
449
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
448
450
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
449
451
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -451,6 +453,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
451
453
|
|
452
454
|
|
453
455
|
request_headers = {}
|
456
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
454
457
|
|
455
458
|
# Set Headers
|
456
459
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -510,8 +513,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
510
513
|
#
|
511
514
|
# @return [ProtectionContainer] operation results.
|
512
515
|
#
|
513
|
-
def begin_switch_protection(fabric_name, protection_container_name, switch_input, custom_headers
|
514
|
-
response = begin_switch_protection_async(fabric_name, protection_container_name, switch_input, custom_headers).value!
|
516
|
+
def begin_switch_protection(fabric_name, protection_container_name, switch_input, custom_headers:nil)
|
517
|
+
response = begin_switch_protection_async(fabric_name, protection_container_name, switch_input, custom_headers:custom_headers).value!
|
515
518
|
response.body unless response.nil?
|
516
519
|
end
|
517
520
|
|
@@ -530,8 +533,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
530
533
|
#
|
531
534
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
532
535
|
#
|
533
|
-
def begin_switch_protection_with_http_info(fabric_name, protection_container_name, switch_input, custom_headers
|
534
|
-
begin_switch_protection_async(fabric_name, protection_container_name, switch_input, custom_headers).value!
|
536
|
+
def begin_switch_protection_with_http_info(fabric_name, protection_container_name, switch_input, custom_headers:nil)
|
537
|
+
begin_switch_protection_async(fabric_name, protection_container_name, switch_input, custom_headers:custom_headers).value!
|
535
538
|
end
|
536
539
|
|
537
540
|
#
|
@@ -549,7 +552,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
549
552
|
#
|
550
553
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
551
554
|
#
|
552
|
-
def begin_switch_protection_async(fabric_name, protection_container_name, switch_input, custom_headers
|
555
|
+
def begin_switch_protection_async(fabric_name, protection_container_name, switch_input, custom_headers:nil)
|
553
556
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
554
557
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
555
558
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -560,13 +563,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
560
563
|
|
561
564
|
|
562
565
|
request_headers = {}
|
566
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
563
567
|
|
564
568
|
# Set Headers
|
565
569
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
566
570
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
567
571
|
|
568
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
569
|
-
|
570
572
|
# Serialize Request
|
571
573
|
request_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::Models::SwitchProtectionInput.mapper()
|
572
574
|
request_content = @client.serialize(request_mapper, switch_input)
|
@@ -625,8 +627,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
625
627
|
# will be added to the HTTP request.
|
626
628
|
#
|
627
629
|
#
|
628
|
-
def begin_delete(fabric_name, protection_container_name, custom_headers
|
629
|
-
response = begin_delete_async(fabric_name, protection_container_name, custom_headers).value!
|
630
|
+
def begin_delete(fabric_name, protection_container_name, custom_headers:nil)
|
631
|
+
response = begin_delete_async(fabric_name, protection_container_name, custom_headers:custom_headers).value!
|
630
632
|
nil
|
631
633
|
end
|
632
634
|
|
@@ -643,8 +645,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
643
645
|
#
|
644
646
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
645
647
|
#
|
646
|
-
def begin_delete_with_http_info(fabric_name, protection_container_name, custom_headers
|
647
|
-
begin_delete_async(fabric_name, protection_container_name, custom_headers).value!
|
648
|
+
def begin_delete_with_http_info(fabric_name, protection_container_name, custom_headers:nil)
|
649
|
+
begin_delete_async(fabric_name, protection_container_name, custom_headers:custom_headers).value!
|
648
650
|
end
|
649
651
|
|
650
652
|
#
|
@@ -660,7 +662,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
660
662
|
#
|
661
663
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
662
664
|
#
|
663
|
-
def begin_delete_async(fabric_name, protection_container_name, custom_headers
|
665
|
+
def begin_delete_async(fabric_name, protection_container_name, custom_headers:nil)
|
664
666
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
665
667
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
666
668
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -670,6 +672,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
670
672
|
|
671
673
|
|
672
674
|
request_headers = {}
|
675
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
673
676
|
|
674
677
|
# Set Headers
|
675
678
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -720,8 +723,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
720
723
|
#
|
721
724
|
# @return [ProtectionContainer] operation results.
|
722
725
|
#
|
723
|
-
def begin_discover_protectable_item(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers
|
724
|
-
response = begin_discover_protectable_item_async(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers).value!
|
726
|
+
def begin_discover_protectable_item(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers:nil)
|
727
|
+
response = begin_discover_protectable_item_async(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers:custom_headers).value!
|
725
728
|
response.body unless response.nil?
|
726
729
|
end
|
727
730
|
|
@@ -741,8 +744,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
741
744
|
#
|
742
745
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
743
746
|
#
|
744
|
-
def begin_discover_protectable_item_with_http_info(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers
|
745
|
-
begin_discover_protectable_item_async(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers).value!
|
747
|
+
def begin_discover_protectable_item_with_http_info(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers:nil)
|
748
|
+
begin_discover_protectable_item_async(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers:custom_headers).value!
|
746
749
|
end
|
747
750
|
|
748
751
|
#
|
@@ -761,7 +764,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
761
764
|
#
|
762
765
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
763
766
|
#
|
764
|
-
def begin_discover_protectable_item_async(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers
|
767
|
+
def begin_discover_protectable_item_async(fabric_name, protection_container_name, discover_protectable_item_request, custom_headers:nil)
|
765
768
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
766
769
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
767
770
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -772,13 +775,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
772
775
|
|
773
776
|
|
774
777
|
request_headers = {}
|
778
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
775
779
|
|
776
780
|
# Set Headers
|
777
781
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
778
782
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
779
783
|
|
780
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
781
|
-
|
782
784
|
# Serialize Request
|
783
785
|
request_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::Models::DiscoverProtectableItemRequest.mapper()
|
784
786
|
request_content = @client.serialize(request_mapper, discover_protectable_item_request)
|
@@ -839,8 +841,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
839
841
|
#
|
840
842
|
# @return [ProtectionContainer] operation results.
|
841
843
|
#
|
842
|
-
def begin_create(fabric_name, protection_container_name, creation_input, custom_headers
|
843
|
-
response = begin_create_async(fabric_name, protection_container_name, creation_input, custom_headers).value!
|
844
|
+
def begin_create(fabric_name, protection_container_name, creation_input, custom_headers:nil)
|
845
|
+
response = begin_create_async(fabric_name, protection_container_name, creation_input, custom_headers:custom_headers).value!
|
844
846
|
response.body unless response.nil?
|
845
847
|
end
|
846
848
|
|
@@ -858,8 +860,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
858
860
|
#
|
859
861
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
860
862
|
#
|
861
|
-
def begin_create_with_http_info(fabric_name, protection_container_name, creation_input, custom_headers
|
862
|
-
begin_create_async(fabric_name, protection_container_name, creation_input, custom_headers).value!
|
863
|
+
def begin_create_with_http_info(fabric_name, protection_container_name, creation_input, custom_headers:nil)
|
864
|
+
begin_create_async(fabric_name, protection_container_name, creation_input, custom_headers:custom_headers).value!
|
863
865
|
end
|
864
866
|
|
865
867
|
#
|
@@ -876,7 +878,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
876
878
|
#
|
877
879
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
878
880
|
#
|
879
|
-
def begin_create_async(fabric_name, protection_container_name, creation_input, custom_headers
|
881
|
+
def begin_create_async(fabric_name, protection_container_name, creation_input, custom_headers:nil)
|
880
882
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
881
883
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
882
884
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -887,13 +889,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
887
889
|
|
888
890
|
|
889
891
|
request_headers = {}
|
892
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
890
893
|
|
891
894
|
# Set Headers
|
892
895
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
893
896
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
894
897
|
|
895
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
896
|
-
|
897
898
|
# Serialize Request
|
898
899
|
request_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::Models::CreateProtectionContainerInput.mapper()
|
899
900
|
request_content = @client.serialize(request_mapper, creation_input)
|
@@ -952,8 +953,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
952
953
|
#
|
953
954
|
# @return [ProtectionContainerCollection] operation results.
|
954
955
|
#
|
955
|
-
def list_by_replication_fabrics_next(next_page_link, custom_headers
|
956
|
-
response = list_by_replication_fabrics_next_async(next_page_link, custom_headers).value!
|
956
|
+
def list_by_replication_fabrics_next(next_page_link, custom_headers:nil)
|
957
|
+
response = list_by_replication_fabrics_next_async(next_page_link, custom_headers:custom_headers).value!
|
957
958
|
response.body unless response.nil?
|
958
959
|
end
|
959
960
|
|
@@ -969,8 +970,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
969
970
|
#
|
970
971
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
971
972
|
#
|
972
|
-
def list_by_replication_fabrics_next_with_http_info(next_page_link, custom_headers
|
973
|
-
list_by_replication_fabrics_next_async(next_page_link, custom_headers).value!
|
973
|
+
def list_by_replication_fabrics_next_with_http_info(next_page_link, custom_headers:nil)
|
974
|
+
list_by_replication_fabrics_next_async(next_page_link, custom_headers:custom_headers).value!
|
974
975
|
end
|
975
976
|
|
976
977
|
#
|
@@ -985,11 +986,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
985
986
|
#
|
986
987
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
987
988
|
#
|
988
|
-
def list_by_replication_fabrics_next_async(next_page_link, custom_headers
|
989
|
+
def list_by_replication_fabrics_next_async(next_page_link, custom_headers:nil)
|
989
990
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
990
991
|
|
991
992
|
|
992
993
|
request_headers = {}
|
994
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
993
995
|
|
994
996
|
# Set Headers
|
995
997
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1045,8 +1047,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1045
1047
|
#
|
1046
1048
|
# @return [ProtectionContainerCollection] operation results.
|
1047
1049
|
#
|
1048
|
-
def list_next(next_page_link, custom_headers
|
1049
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
1050
|
+
def list_next(next_page_link, custom_headers:nil)
|
1051
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
1050
1052
|
response.body unless response.nil?
|
1051
1053
|
end
|
1052
1054
|
|
@@ -1062,8 +1064,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1062
1064
|
#
|
1063
1065
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1064
1066
|
#
|
1065
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
1066
|
-
list_next_async(next_page_link, custom_headers).value!
|
1067
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
1068
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
1067
1069
|
end
|
1068
1070
|
|
1069
1071
|
#
|
@@ -1078,11 +1080,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1078
1080
|
#
|
1079
1081
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1080
1082
|
#
|
1081
|
-
def list_next_async(next_page_link, custom_headers
|
1083
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
1082
1084
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1083
1085
|
|
1084
1086
|
|
1085
1087
|
request_headers = {}
|
1088
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1086
1089
|
|
1087
1090
|
# Set Headers
|
1088
1091
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1138,12 +1141,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1138
1141
|
# @return [ProtectionContainerCollection] which provide lazy access to pages of
|
1139
1142
|
# the response.
|
1140
1143
|
#
|
1141
|
-
def list_by_replication_fabrics_as_lazy(fabric_name, custom_headers
|
1142
|
-
response = list_by_replication_fabrics_async(fabric_name, custom_headers).value!
|
1144
|
+
def list_by_replication_fabrics_as_lazy(fabric_name, custom_headers:nil)
|
1145
|
+
response = list_by_replication_fabrics_async(fabric_name, custom_headers:custom_headers).value!
|
1143
1146
|
unless response.nil?
|
1144
1147
|
page = response.body
|
1145
1148
|
page.next_method = Proc.new do |next_page_link|
|
1146
|
-
list_by_replication_fabrics_next_async(next_page_link, custom_headers)
|
1149
|
+
list_by_replication_fabrics_next_async(next_page_link, custom_headers:custom_headers)
|
1147
1150
|
end
|
1148
1151
|
page
|
1149
1152
|
end
|
@@ -1160,12 +1163,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1160
1163
|
# @return [ProtectionContainerCollection] which provide lazy access to pages of
|
1161
1164
|
# the response.
|
1162
1165
|
#
|
1163
|
-
def list_as_lazy(custom_headers
|
1164
|
-
response = list_async(custom_headers).value!
|
1166
|
+
def list_as_lazy(custom_headers:nil)
|
1167
|
+
response = list_async(custom_headers:custom_headers).value!
|
1165
1168
|
unless response.nil?
|
1166
1169
|
page = response.body
|
1167
1170
|
page.next_method = Proc.new do |next_page_link|
|
1168
|
-
list_next_async(next_page_link, custom_headers)
|
1171
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
1169
1172
|
end
|
1170
1173
|
page
|
1171
1174
|
end
|