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
data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_fabrics.rb
CHANGED
@@ -30,8 +30,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
30
30
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
31
31
|
# will be added to the HTTP request.
|
32
32
|
#
|
33
|
-
def migrate_to_aad(fabric_name, custom_headers
|
34
|
-
response = migrate_to_aad_async(fabric_name, custom_headers).value!
|
33
|
+
def migrate_to_aad(fabric_name, custom_headers:nil)
|
34
|
+
response = migrate_to_aad_async(fabric_name, custom_headers:custom_headers).value!
|
35
35
|
nil
|
36
36
|
end
|
37
37
|
|
@@ -43,9 +43,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
43
43
|
# @return [Concurrent::Promise] promise which provides async access to http
|
44
44
|
# response.
|
45
45
|
#
|
46
|
-
def migrate_to_aad_async(fabric_name, custom_headers
|
46
|
+
def migrate_to_aad_async(fabric_name, custom_headers:nil)
|
47
47
|
# Send request
|
48
|
-
promise = begin_migrate_to_aad_async(fabric_name, custom_headers)
|
48
|
+
promise = begin_migrate_to_aad_async(fabric_name, custom_headers:custom_headers)
|
49
49
|
|
50
50
|
promise = promise.then do |response|
|
51
51
|
# Defining deserialization method.
|
@@ -71,8 +71,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
71
71
|
#
|
72
72
|
# @return [Fabric] operation results.
|
73
73
|
#
|
74
|
-
def renew_certificate(fabric_name, renew_certificate, custom_headers
|
75
|
-
response = renew_certificate_async(fabric_name, renew_certificate, custom_headers).value!
|
74
|
+
def renew_certificate(fabric_name, renew_certificate, custom_headers:nil)
|
75
|
+
response = renew_certificate_async(fabric_name, renew_certificate, custom_headers:custom_headers).value!
|
76
76
|
response.body unless response.nil?
|
77
77
|
end
|
78
78
|
|
@@ -85,9 +85,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
85
85
|
# @return [Concurrent::Promise] promise which provides async access to http
|
86
86
|
# response.
|
87
87
|
#
|
88
|
-
def renew_certificate_async(fabric_name, renew_certificate, custom_headers
|
88
|
+
def renew_certificate_async(fabric_name, renew_certificate, custom_headers:nil)
|
89
89
|
# Send request
|
90
|
-
promise = begin_renew_certificate_async(fabric_name, renew_certificate, custom_headers)
|
90
|
+
promise = begin_renew_certificate_async(fabric_name, renew_certificate, custom_headers:custom_headers)
|
91
91
|
|
92
92
|
promise = promise.then do |response|
|
93
93
|
# Defining deserialization method.
|
@@ -118,8 +118,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
118
118
|
#
|
119
119
|
# @return [Fabric] operation results.
|
120
120
|
#
|
121
|
-
def reassociate_gateway(fabric_name, failover_process_server_request, custom_headers
|
122
|
-
response = reassociate_gateway_async(fabric_name, failover_process_server_request, custom_headers).value!
|
121
|
+
def reassociate_gateway(fabric_name, failover_process_server_request, custom_headers:nil)
|
122
|
+
response = reassociate_gateway_async(fabric_name, failover_process_server_request, custom_headers:custom_headers).value!
|
123
123
|
response.body unless response.nil?
|
124
124
|
end
|
125
125
|
|
@@ -134,9 +134,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
134
134
|
# @return [Concurrent::Promise] promise which provides async access to http
|
135
135
|
# response.
|
136
136
|
#
|
137
|
-
def reassociate_gateway_async(fabric_name, failover_process_server_request, custom_headers
|
137
|
+
def reassociate_gateway_async(fabric_name, failover_process_server_request, custom_headers:nil)
|
138
138
|
# Send request
|
139
|
-
promise = begin_reassociate_gateway_async(fabric_name, failover_process_server_request, custom_headers)
|
139
|
+
promise = begin_reassociate_gateway_async(fabric_name, failover_process_server_request, custom_headers:custom_headers)
|
140
140
|
|
141
141
|
promise = promise.then do |response|
|
142
142
|
# Defining deserialization method.
|
@@ -163,8 +163,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
163
163
|
#
|
164
164
|
# @return [Fabric] operation results.
|
165
165
|
#
|
166
|
-
def check_consistency(fabric_name, custom_headers
|
167
|
-
response = check_consistency_async(fabric_name, custom_headers).value!
|
166
|
+
def check_consistency(fabric_name, custom_headers:nil)
|
167
|
+
response = check_consistency_async(fabric_name, custom_headers:custom_headers).value!
|
168
168
|
response.body unless response.nil?
|
169
169
|
end
|
170
170
|
|
@@ -176,9 +176,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
176
176
|
# @return [Concurrent::Promise] promise which provides async access to http
|
177
177
|
# response.
|
178
178
|
#
|
179
|
-
def check_consistency_async(fabric_name, custom_headers
|
179
|
+
def check_consistency_async(fabric_name, custom_headers:nil)
|
180
180
|
# Send request
|
181
|
-
promise = begin_check_consistency_async(fabric_name, custom_headers)
|
181
|
+
promise = begin_check_consistency_async(fabric_name, custom_headers:custom_headers)
|
182
182
|
|
183
183
|
promise = promise.then do |response|
|
184
184
|
# Defining deserialization method.
|
@@ -203,8 +203,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
203
203
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
204
204
|
# will be added to the HTTP request.
|
205
205
|
#
|
206
|
-
def delete(fabric_name, custom_headers
|
207
|
-
response = delete_async(fabric_name, custom_headers).value!
|
206
|
+
def delete(fabric_name, custom_headers:nil)
|
207
|
+
response = delete_async(fabric_name, custom_headers:custom_headers).value!
|
208
208
|
nil
|
209
209
|
end
|
210
210
|
|
@@ -216,9 +216,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
216
216
|
# @return [Concurrent::Promise] promise which provides async access to http
|
217
217
|
# response.
|
218
218
|
#
|
219
|
-
def delete_async(fabric_name, custom_headers
|
219
|
+
def delete_async(fabric_name, custom_headers:nil)
|
220
220
|
# Send request
|
221
|
-
promise = begin_delete_async(fabric_name, custom_headers)
|
221
|
+
promise = begin_delete_async(fabric_name, custom_headers:custom_headers)
|
222
222
|
|
223
223
|
promise = promise.then do |response|
|
224
224
|
# Defining deserialization method.
|
@@ -243,8 +243,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
243
243
|
#
|
244
244
|
# @return [Fabric] operation results.
|
245
245
|
#
|
246
|
-
def get(fabric_name, custom_headers
|
247
|
-
response = get_async(fabric_name, custom_headers).value!
|
246
|
+
def get(fabric_name, custom_headers:nil)
|
247
|
+
response = get_async(fabric_name, custom_headers:custom_headers).value!
|
248
248
|
response.body unless response.nil?
|
249
249
|
end
|
250
250
|
|
@@ -259,8 +259,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
259
259
|
#
|
260
260
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
261
261
|
#
|
262
|
-
def get_with_http_info(fabric_name, custom_headers
|
263
|
-
get_async(fabric_name, custom_headers).value!
|
262
|
+
def get_with_http_info(fabric_name, custom_headers:nil)
|
263
|
+
get_async(fabric_name, custom_headers:custom_headers).value!
|
264
264
|
end
|
265
265
|
|
266
266
|
#
|
@@ -274,7 +274,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
274
274
|
#
|
275
275
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
276
276
|
#
|
277
|
-
def get_async(fabric_name, custom_headers
|
277
|
+
def get_async(fabric_name, custom_headers:nil)
|
278
278
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
279
279
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
280
280
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -283,6 +283,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
283
283
|
|
284
284
|
|
285
285
|
request_headers = {}
|
286
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
286
287
|
|
287
288
|
# Set Headers
|
288
289
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -339,8 +340,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
339
340
|
#
|
340
341
|
# @return [Fabric] operation results.
|
341
342
|
#
|
342
|
-
def create(fabric_name, input, custom_headers
|
343
|
-
response = create_async(fabric_name, input, custom_headers).value!
|
343
|
+
def create(fabric_name, input, custom_headers:nil)
|
344
|
+
response = create_async(fabric_name, input, custom_headers:custom_headers).value!
|
344
345
|
response.body unless response.nil?
|
345
346
|
end
|
346
347
|
|
@@ -353,9 +354,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
353
354
|
# @return [Concurrent::Promise] promise which provides async access to http
|
354
355
|
# response.
|
355
356
|
#
|
356
|
-
def create_async(fabric_name, input, custom_headers
|
357
|
+
def create_async(fabric_name, input, custom_headers:nil)
|
357
358
|
# Send request
|
358
|
-
promise = begin_create_async(fabric_name, input, custom_headers)
|
359
|
+
promise = begin_create_async(fabric_name, input, custom_headers:custom_headers)
|
359
360
|
|
360
361
|
promise = promise.then do |response|
|
361
362
|
# Defining deserialization method.
|
@@ -380,8 +381,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
380
381
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
381
382
|
# will be added to the HTTP request.
|
382
383
|
#
|
383
|
-
def purge(fabric_name, custom_headers
|
384
|
-
response = purge_async(fabric_name, custom_headers).value!
|
384
|
+
def purge(fabric_name, custom_headers:nil)
|
385
|
+
response = purge_async(fabric_name, custom_headers:custom_headers).value!
|
385
386
|
nil
|
386
387
|
end
|
387
388
|
|
@@ -393,9 +394,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
393
394
|
# @return [Concurrent::Promise] promise which provides async access to http
|
394
395
|
# response.
|
395
396
|
#
|
396
|
-
def purge_async(fabric_name, custom_headers
|
397
|
+
def purge_async(fabric_name, custom_headers:nil)
|
397
398
|
# Send request
|
398
|
-
promise = begin_purge_async(fabric_name, custom_headers)
|
399
|
+
promise = begin_purge_async(fabric_name, custom_headers:custom_headers)
|
399
400
|
|
400
401
|
promise = promise.then do |response|
|
401
402
|
# Defining deserialization method.
|
@@ -419,8 +420,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
419
420
|
#
|
420
421
|
# @return [Array<Fabric>] operation results.
|
421
422
|
#
|
422
|
-
def list(custom_headers
|
423
|
-
first_page = list_as_lazy(custom_headers)
|
423
|
+
def list(custom_headers:nil)
|
424
|
+
first_page = list_as_lazy(custom_headers:custom_headers)
|
424
425
|
first_page.get_all_items
|
425
426
|
end
|
426
427
|
|
@@ -434,8 +435,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
434
435
|
#
|
435
436
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
436
437
|
#
|
437
|
-
def list_with_http_info(custom_headers
|
438
|
-
list_async(custom_headers).value!
|
438
|
+
def list_with_http_info(custom_headers:nil)
|
439
|
+
list_async(custom_headers:custom_headers).value!
|
439
440
|
end
|
440
441
|
|
441
442
|
#
|
@@ -448,7 +449,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
448
449
|
#
|
449
450
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
450
451
|
#
|
451
|
-
def list_async(custom_headers
|
452
|
+
def list_async(custom_headers:nil)
|
452
453
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
453
454
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
454
455
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -456,6 +457,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
456
457
|
|
457
458
|
|
458
459
|
request_headers = {}
|
460
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
459
461
|
|
460
462
|
# Set Headers
|
461
463
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -510,8 +512,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
510
512
|
# will be added to the HTTP request.
|
511
513
|
#
|
512
514
|
#
|
513
|
-
def begin_migrate_to_aad(fabric_name, custom_headers
|
514
|
-
response = begin_migrate_to_aad_async(fabric_name, custom_headers).value!
|
515
|
+
def begin_migrate_to_aad(fabric_name, custom_headers:nil)
|
516
|
+
response = begin_migrate_to_aad_async(fabric_name, custom_headers:custom_headers).value!
|
515
517
|
nil
|
516
518
|
end
|
517
519
|
|
@@ -526,8 +528,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
526
528
|
#
|
527
529
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
528
530
|
#
|
529
|
-
def begin_migrate_to_aad_with_http_info(fabric_name, custom_headers
|
530
|
-
begin_migrate_to_aad_async(fabric_name, custom_headers).value!
|
531
|
+
def begin_migrate_to_aad_with_http_info(fabric_name, custom_headers:nil)
|
532
|
+
begin_migrate_to_aad_async(fabric_name, custom_headers:custom_headers).value!
|
531
533
|
end
|
532
534
|
|
533
535
|
#
|
@@ -541,7 +543,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
541
543
|
#
|
542
544
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
543
545
|
#
|
544
|
-
def begin_migrate_to_aad_async(fabric_name, custom_headers
|
546
|
+
def begin_migrate_to_aad_async(fabric_name, custom_headers:nil)
|
545
547
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
546
548
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
547
549
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -550,6 +552,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
550
552
|
|
551
553
|
|
552
554
|
request_headers = {}
|
555
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
553
556
|
|
554
557
|
# Set Headers
|
555
558
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -596,8 +599,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
596
599
|
#
|
597
600
|
# @return [Fabric] operation results.
|
598
601
|
#
|
599
|
-
def begin_renew_certificate(fabric_name, renew_certificate, custom_headers
|
600
|
-
response = begin_renew_certificate_async(fabric_name, renew_certificate, custom_headers).value!
|
602
|
+
def begin_renew_certificate(fabric_name, renew_certificate, custom_headers:nil)
|
603
|
+
response = begin_renew_certificate_async(fabric_name, renew_certificate, custom_headers:custom_headers).value!
|
601
604
|
response.body unless response.nil?
|
602
605
|
end
|
603
606
|
|
@@ -613,8 +616,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
613
616
|
#
|
614
617
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
615
618
|
#
|
616
|
-
def begin_renew_certificate_with_http_info(fabric_name, renew_certificate, custom_headers
|
617
|
-
begin_renew_certificate_async(fabric_name, renew_certificate, custom_headers).value!
|
619
|
+
def begin_renew_certificate_with_http_info(fabric_name, renew_certificate, custom_headers:nil)
|
620
|
+
begin_renew_certificate_async(fabric_name, renew_certificate, custom_headers:custom_headers).value!
|
618
621
|
end
|
619
622
|
|
620
623
|
#
|
@@ -629,7 +632,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
629
632
|
#
|
630
633
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
631
634
|
#
|
632
|
-
def begin_renew_certificate_async(fabric_name, renew_certificate, custom_headers
|
635
|
+
def begin_renew_certificate_async(fabric_name, renew_certificate, custom_headers:nil)
|
633
636
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
634
637
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
635
638
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -639,13 +642,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
639
642
|
|
640
643
|
|
641
644
|
request_headers = {}
|
645
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
642
646
|
|
643
647
|
# Set Headers
|
644
648
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
645
649
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
646
650
|
|
647
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
648
|
-
|
649
651
|
# Serialize Request
|
650
652
|
request_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::Models::RenewCertificateInput.mapper()
|
651
653
|
request_content = @client.serialize(request_mapper, renew_certificate)
|
@@ -707,8 +709,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
707
709
|
#
|
708
710
|
# @return [Fabric] operation results.
|
709
711
|
#
|
710
|
-
def begin_reassociate_gateway(fabric_name, failover_process_server_request, custom_headers
|
711
|
-
response = begin_reassociate_gateway_async(fabric_name, failover_process_server_request, custom_headers).value!
|
712
|
+
def begin_reassociate_gateway(fabric_name, failover_process_server_request, custom_headers:nil)
|
713
|
+
response = begin_reassociate_gateway_async(fabric_name, failover_process_server_request, custom_headers:custom_headers).value!
|
712
714
|
response.body unless response.nil?
|
713
715
|
end
|
714
716
|
|
@@ -727,8 +729,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
727
729
|
#
|
728
730
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
729
731
|
#
|
730
|
-
def begin_reassociate_gateway_with_http_info(fabric_name, failover_process_server_request, custom_headers
|
731
|
-
begin_reassociate_gateway_async(fabric_name, failover_process_server_request, custom_headers).value!
|
732
|
+
def begin_reassociate_gateway_with_http_info(fabric_name, failover_process_server_request, custom_headers:nil)
|
733
|
+
begin_reassociate_gateway_async(fabric_name, failover_process_server_request, custom_headers:custom_headers).value!
|
732
734
|
end
|
733
735
|
|
734
736
|
#
|
@@ -746,7 +748,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
746
748
|
#
|
747
749
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
748
750
|
#
|
749
|
-
def begin_reassociate_gateway_async(fabric_name, failover_process_server_request, custom_headers
|
751
|
+
def begin_reassociate_gateway_async(fabric_name, failover_process_server_request, custom_headers:nil)
|
750
752
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
751
753
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
752
754
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -756,13 +758,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
756
758
|
|
757
759
|
|
758
760
|
request_headers = {}
|
761
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
759
762
|
|
760
763
|
# Set Headers
|
761
764
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
762
765
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
763
766
|
|
764
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
765
|
-
|
766
767
|
# Serialize Request
|
767
768
|
request_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::Models::FailoverProcessServerRequest.mapper()
|
768
769
|
request_content = @client.serialize(request_mapper, failover_process_server_request)
|
@@ -820,8 +821,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
820
821
|
#
|
821
822
|
# @return [Fabric] operation results.
|
822
823
|
#
|
823
|
-
def begin_check_consistency(fabric_name, custom_headers
|
824
|
-
response = begin_check_consistency_async(fabric_name, custom_headers).value!
|
824
|
+
def begin_check_consistency(fabric_name, custom_headers:nil)
|
825
|
+
response = begin_check_consistency_async(fabric_name, custom_headers:custom_headers).value!
|
825
826
|
response.body unless response.nil?
|
826
827
|
end
|
827
828
|
|
@@ -836,8 +837,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
836
837
|
#
|
837
838
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
838
839
|
#
|
839
|
-
def begin_check_consistency_with_http_info(fabric_name, custom_headers
|
840
|
-
begin_check_consistency_async(fabric_name, custom_headers).value!
|
840
|
+
def begin_check_consistency_with_http_info(fabric_name, custom_headers:nil)
|
841
|
+
begin_check_consistency_async(fabric_name, custom_headers:custom_headers).value!
|
841
842
|
end
|
842
843
|
|
843
844
|
#
|
@@ -851,7 +852,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
851
852
|
#
|
852
853
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
853
854
|
#
|
854
|
-
def begin_check_consistency_async(fabric_name, custom_headers
|
855
|
+
def begin_check_consistency_async(fabric_name, custom_headers:nil)
|
855
856
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
856
857
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
857
858
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -860,6 +861,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
860
861
|
|
861
862
|
|
862
863
|
request_headers = {}
|
864
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
863
865
|
|
864
866
|
# Set Headers
|
865
867
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -914,8 +916,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
914
916
|
# will be added to the HTTP request.
|
915
917
|
#
|
916
918
|
#
|
917
|
-
def begin_delete(fabric_name, custom_headers
|
918
|
-
response = begin_delete_async(fabric_name, custom_headers).value!
|
919
|
+
def begin_delete(fabric_name, custom_headers:nil)
|
920
|
+
response = begin_delete_async(fabric_name, custom_headers:custom_headers).value!
|
919
921
|
nil
|
920
922
|
end
|
921
923
|
|
@@ -930,8 +932,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
930
932
|
#
|
931
933
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
932
934
|
#
|
933
|
-
def begin_delete_with_http_info(fabric_name, custom_headers
|
934
|
-
begin_delete_async(fabric_name, custom_headers).value!
|
935
|
+
def begin_delete_with_http_info(fabric_name, custom_headers:nil)
|
936
|
+
begin_delete_async(fabric_name, custom_headers:custom_headers).value!
|
935
937
|
end
|
936
938
|
|
937
939
|
#
|
@@ -945,7 +947,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
945
947
|
#
|
946
948
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
947
949
|
#
|
948
|
-
def begin_delete_async(fabric_name, custom_headers
|
950
|
+
def begin_delete_async(fabric_name, custom_headers:nil)
|
949
951
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
950
952
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
951
953
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -954,6 +956,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
954
956
|
|
955
957
|
|
956
958
|
request_headers = {}
|
959
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
957
960
|
|
958
961
|
# Set Headers
|
959
962
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1000,8 +1003,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1000
1003
|
#
|
1001
1004
|
# @return [Fabric] operation results.
|
1002
1005
|
#
|
1003
|
-
def begin_create(fabric_name, input, custom_headers
|
1004
|
-
response = begin_create_async(fabric_name, input, custom_headers).value!
|
1006
|
+
def begin_create(fabric_name, input, custom_headers:nil)
|
1007
|
+
response = begin_create_async(fabric_name, input, custom_headers:custom_headers).value!
|
1005
1008
|
response.body unless response.nil?
|
1006
1009
|
end
|
1007
1010
|
|
@@ -1017,8 +1020,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1017
1020
|
#
|
1018
1021
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1019
1022
|
#
|
1020
|
-
def begin_create_with_http_info(fabric_name, input, custom_headers
|
1021
|
-
begin_create_async(fabric_name, input, custom_headers).value!
|
1023
|
+
def begin_create_with_http_info(fabric_name, input, custom_headers:nil)
|
1024
|
+
begin_create_async(fabric_name, input, custom_headers:custom_headers).value!
|
1022
1025
|
end
|
1023
1026
|
|
1024
1027
|
#
|
@@ -1033,7 +1036,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1033
1036
|
#
|
1034
1037
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1035
1038
|
#
|
1036
|
-
def begin_create_async(fabric_name, input, custom_headers
|
1039
|
+
def begin_create_async(fabric_name, input, custom_headers:nil)
|
1037
1040
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1038
1041
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
1039
1042
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -1043,13 +1046,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1043
1046
|
|
1044
1047
|
|
1045
1048
|
request_headers = {}
|
1049
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1046
1050
|
|
1047
1051
|
# Set Headers
|
1048
1052
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1049
1053
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1050
1054
|
|
1051
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1052
|
-
|
1053
1055
|
# Serialize Request
|
1054
1056
|
request_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::Models::FabricCreationInput.mapper()
|
1055
1057
|
request_content = @client.serialize(request_mapper, input)
|
@@ -1106,8 +1108,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1106
1108
|
# will be added to the HTTP request.
|
1107
1109
|
#
|
1108
1110
|
#
|
1109
|
-
def begin_purge(fabric_name, custom_headers
|
1110
|
-
response = begin_purge_async(fabric_name, custom_headers).value!
|
1111
|
+
def begin_purge(fabric_name, custom_headers:nil)
|
1112
|
+
response = begin_purge_async(fabric_name, custom_headers:custom_headers).value!
|
1111
1113
|
nil
|
1112
1114
|
end
|
1113
1115
|
|
@@ -1122,8 +1124,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1122
1124
|
#
|
1123
1125
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1124
1126
|
#
|
1125
|
-
def begin_purge_with_http_info(fabric_name, custom_headers
|
1126
|
-
begin_purge_async(fabric_name, custom_headers).value!
|
1127
|
+
def begin_purge_with_http_info(fabric_name, custom_headers:nil)
|
1128
|
+
begin_purge_async(fabric_name, custom_headers:custom_headers).value!
|
1127
1129
|
end
|
1128
1130
|
|
1129
1131
|
#
|
@@ -1137,7 +1139,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1137
1139
|
#
|
1138
1140
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1139
1141
|
#
|
1140
|
-
def begin_purge_async(fabric_name, custom_headers
|
1142
|
+
def begin_purge_async(fabric_name, custom_headers:nil)
|
1141
1143
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1142
1144
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
1143
1145
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -1146,6 +1148,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1146
1148
|
|
1147
1149
|
|
1148
1150
|
request_headers = {}
|
1151
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1149
1152
|
|
1150
1153
|
# Set Headers
|
1151
1154
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1192,8 +1195,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1192
1195
|
#
|
1193
1196
|
# @return [FabricCollection] operation results.
|
1194
1197
|
#
|
1195
|
-
def list_next(next_page_link, custom_headers
|
1196
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
1198
|
+
def list_next(next_page_link, custom_headers:nil)
|
1199
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
1197
1200
|
response.body unless response.nil?
|
1198
1201
|
end
|
1199
1202
|
|
@@ -1209,8 +1212,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1209
1212
|
#
|
1210
1213
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1211
1214
|
#
|
1212
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
1213
|
-
list_next_async(next_page_link, custom_headers).value!
|
1215
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
1216
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
1214
1217
|
end
|
1215
1218
|
|
1216
1219
|
#
|
@@ -1225,11 +1228,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1225
1228
|
#
|
1226
1229
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1227
1230
|
#
|
1228
|
-
def list_next_async(next_page_link, custom_headers
|
1231
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
1229
1232
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1230
1233
|
|
1231
1234
|
|
1232
1235
|
request_headers = {}
|
1236
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1233
1237
|
|
1234
1238
|
# Set Headers
|
1235
1239
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1284,12 +1288,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1284
1288
|
# @return [FabricCollection] which provide lazy access to pages of the
|
1285
1289
|
# response.
|
1286
1290
|
#
|
1287
|
-
def list_as_lazy(custom_headers
|
1288
|
-
response = list_async(custom_headers).value!
|
1291
|
+
def list_as_lazy(custom_headers:nil)
|
1292
|
+
response = list_async(custom_headers:custom_headers).value!
|
1289
1293
|
unless response.nil?
|
1290
1294
|
page = response.body
|
1291
1295
|
page.next_method = Proc.new do |next_page_link|
|
1292
|
-
list_next_async(next_page_link, custom_headers)
|
1296
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
1293
1297
|
end
|
1294
1298
|
page
|
1295
1299
|
end
|