azure_mgmt_recovery_services_site_recovery 0.15.2 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/models/azure_fabric_creation_input.rb +2 -2
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/models/fabric_specific_creation_input.rb +1 -1
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/operations.rb +15 -13
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/recovery_points.rb +21 -18
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_alert_settings.rb +27 -25
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_events.rb +21 -18
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_fabrics.rb +91 -87
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_jobs.rb +61 -58
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_logical_networks.rb +21 -18
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_network_mappings.rb +66 -62
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_networks.rb +36 -31
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_policies.rb +51 -49
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protectable_items.rb +21 -18
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protected_items.rb +166 -168
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protection_container_mappings.rb +66 -62
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protection_containers.rb +76 -73
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_recovery_plans.rb +111 -111
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_recovery_services_providers.rb +66 -58
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_storage_classification_mappings.rb +56 -51
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_storage_classifications.rb +36 -31
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_vault_health.rb +6 -5
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replicationv_centers.rb +66 -62
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/site_recovery_management_client.rb +4 -1
- data/lib/profiles/latest/modules/recoveryservicessiterecovery_profile_module.rb +1022 -1003
- data/lib/profiles/latest/recoveryservicessiterecovery_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/recoveryservicessiterecovery_module_definition.rb +0 -1
- data/lib/version.rb +1 -1
- metadata +3 -3
data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_policies.rb
CHANGED
@@ -32,8 +32,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
32
32
|
#
|
33
33
|
# @return [Policy] operation results.
|
34
34
|
#
|
35
|
-
def get(policy_name, custom_headers
|
36
|
-
response = get_async(policy_name, custom_headers).value!
|
35
|
+
def get(policy_name, custom_headers:nil)
|
36
|
+
response = get_async(policy_name, custom_headers:custom_headers).value!
|
37
37
|
response.body unless response.nil?
|
38
38
|
end
|
39
39
|
|
@@ -48,8 +48,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
48
48
|
#
|
49
49
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
50
50
|
#
|
51
|
-
def get_with_http_info(policy_name, custom_headers
|
52
|
-
get_async(policy_name, custom_headers).value!
|
51
|
+
def get_with_http_info(policy_name, custom_headers:nil)
|
52
|
+
get_async(policy_name, custom_headers:custom_headers).value!
|
53
53
|
end
|
54
54
|
|
55
55
|
#
|
@@ -63,7 +63,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
63
63
|
#
|
64
64
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
65
65
|
#
|
66
|
-
def get_async(policy_name, custom_headers
|
66
|
+
def get_async(policy_name, custom_headers:nil)
|
67
67
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
68
68
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
69
69
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -72,6 +72,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
72
72
|
|
73
73
|
|
74
74
|
request_headers = {}
|
75
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
75
76
|
|
76
77
|
# Set Headers
|
77
78
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -128,8 +129,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
128
129
|
#
|
129
130
|
# @return [Policy] operation results.
|
130
131
|
#
|
131
|
-
def create(policy_name, input, custom_headers
|
132
|
-
response = create_async(policy_name, input, custom_headers).value!
|
132
|
+
def create(policy_name, input, custom_headers:nil)
|
133
|
+
response = create_async(policy_name, input, custom_headers:custom_headers).value!
|
133
134
|
response.body unless response.nil?
|
134
135
|
end
|
135
136
|
|
@@ -142,9 +143,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
142
143
|
# @return [Concurrent::Promise] promise which provides async access to http
|
143
144
|
# response.
|
144
145
|
#
|
145
|
-
def create_async(policy_name, input, custom_headers
|
146
|
+
def create_async(policy_name, input, custom_headers:nil)
|
146
147
|
# Send request
|
147
|
-
promise = begin_create_async(policy_name, input, custom_headers)
|
148
|
+
promise = begin_create_async(policy_name, input, custom_headers:custom_headers)
|
148
149
|
|
149
150
|
promise = promise.then do |response|
|
150
151
|
# Defining deserialization method.
|
@@ -169,8 +170,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
169
170
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
170
171
|
# will be added to the HTTP request.
|
171
172
|
#
|
172
|
-
def delete(policy_name, custom_headers
|
173
|
-
response = delete_async(policy_name, custom_headers).value!
|
173
|
+
def delete(policy_name, custom_headers:nil)
|
174
|
+
response = delete_async(policy_name, custom_headers:custom_headers).value!
|
174
175
|
nil
|
175
176
|
end
|
176
177
|
|
@@ -182,9 +183,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
182
183
|
# @return [Concurrent::Promise] promise which provides async access to http
|
183
184
|
# response.
|
184
185
|
#
|
185
|
-
def delete_async(policy_name, custom_headers
|
186
|
+
def delete_async(policy_name, custom_headers:nil)
|
186
187
|
# Send request
|
187
|
-
promise = begin_delete_async(policy_name, custom_headers)
|
188
|
+
promise = begin_delete_async(policy_name, custom_headers:custom_headers)
|
188
189
|
|
189
190
|
promise = promise.then do |response|
|
190
191
|
# Defining deserialization method.
|
@@ -210,8 +211,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
210
211
|
#
|
211
212
|
# @return [Policy] operation results.
|
212
213
|
#
|
213
|
-
def update(policy_name, input, custom_headers
|
214
|
-
response = update_async(policy_name, input, custom_headers).value!
|
214
|
+
def update(policy_name, input, custom_headers:nil)
|
215
|
+
response = update_async(policy_name, input, custom_headers:custom_headers).value!
|
215
216
|
response.body unless response.nil?
|
216
217
|
end
|
217
218
|
|
@@ -224,9 +225,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
224
225
|
# @return [Concurrent::Promise] promise which provides async access to http
|
225
226
|
# response.
|
226
227
|
#
|
227
|
-
def update_async(policy_name, input, custom_headers
|
228
|
+
def update_async(policy_name, input, custom_headers:nil)
|
228
229
|
# Send request
|
229
|
-
promise = begin_update_async(policy_name, input, custom_headers)
|
230
|
+
promise = begin_update_async(policy_name, input, custom_headers:custom_headers)
|
230
231
|
|
231
232
|
promise = promise.then do |response|
|
232
233
|
# Defining deserialization method.
|
@@ -252,8 +253,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
252
253
|
#
|
253
254
|
# @return [Array<Policy>] operation results.
|
254
255
|
#
|
255
|
-
def list(custom_headers
|
256
|
-
first_page = list_as_lazy(custom_headers)
|
256
|
+
def list(custom_headers:nil)
|
257
|
+
first_page = list_as_lazy(custom_headers:custom_headers)
|
257
258
|
first_page.get_all_items
|
258
259
|
end
|
259
260
|
|
@@ -267,8 +268,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
267
268
|
#
|
268
269
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
269
270
|
#
|
270
|
-
def list_with_http_info(custom_headers
|
271
|
-
list_async(custom_headers).value!
|
271
|
+
def list_with_http_info(custom_headers:nil)
|
272
|
+
list_async(custom_headers:custom_headers).value!
|
272
273
|
end
|
273
274
|
|
274
275
|
#
|
@@ -281,7 +282,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
281
282
|
#
|
282
283
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
283
284
|
#
|
284
|
-
def list_async(custom_headers
|
285
|
+
def list_async(custom_headers:nil)
|
285
286
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
286
287
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
287
288
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -289,6 +290,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
289
290
|
|
290
291
|
|
291
292
|
request_headers = {}
|
293
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
292
294
|
|
293
295
|
# Set Headers
|
294
296
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -345,8 +347,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
345
347
|
#
|
346
348
|
# @return [Policy] operation results.
|
347
349
|
#
|
348
|
-
def begin_create(policy_name, input, custom_headers
|
349
|
-
response = begin_create_async(policy_name, input, custom_headers).value!
|
350
|
+
def begin_create(policy_name, input, custom_headers:nil)
|
351
|
+
response = begin_create_async(policy_name, input, custom_headers:custom_headers).value!
|
350
352
|
response.body unless response.nil?
|
351
353
|
end
|
352
354
|
|
@@ -362,8 +364,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
362
364
|
#
|
363
365
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
364
366
|
#
|
365
|
-
def begin_create_with_http_info(policy_name, input, custom_headers
|
366
|
-
begin_create_async(policy_name, input, custom_headers).value!
|
367
|
+
def begin_create_with_http_info(policy_name, input, custom_headers:nil)
|
368
|
+
begin_create_async(policy_name, input, custom_headers:custom_headers).value!
|
367
369
|
end
|
368
370
|
|
369
371
|
#
|
@@ -378,7 +380,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
378
380
|
#
|
379
381
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
380
382
|
#
|
381
|
-
def begin_create_async(policy_name, input, custom_headers
|
383
|
+
def begin_create_async(policy_name, input, custom_headers:nil)
|
382
384
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
383
385
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
384
386
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -388,13 +390,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
388
390
|
|
389
391
|
|
390
392
|
request_headers = {}
|
393
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
391
394
|
|
392
395
|
# Set Headers
|
393
396
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
394
397
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
395
398
|
|
396
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
397
|
-
|
398
399
|
# Serialize Request
|
399
400
|
request_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::Models::CreatePolicyInput.mapper()
|
400
401
|
request_content = @client.serialize(request_mapper, input)
|
@@ -451,8 +452,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
451
452
|
# will be added to the HTTP request.
|
452
453
|
#
|
453
454
|
#
|
454
|
-
def begin_delete(policy_name, custom_headers
|
455
|
-
response = begin_delete_async(policy_name, custom_headers).value!
|
455
|
+
def begin_delete(policy_name, custom_headers:nil)
|
456
|
+
response = begin_delete_async(policy_name, custom_headers:custom_headers).value!
|
456
457
|
nil
|
457
458
|
end
|
458
459
|
|
@@ -467,8 +468,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
467
468
|
#
|
468
469
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
469
470
|
#
|
470
|
-
def begin_delete_with_http_info(policy_name, custom_headers
|
471
|
-
begin_delete_async(policy_name, custom_headers).value!
|
471
|
+
def begin_delete_with_http_info(policy_name, custom_headers:nil)
|
472
|
+
begin_delete_async(policy_name, custom_headers:custom_headers).value!
|
472
473
|
end
|
473
474
|
|
474
475
|
#
|
@@ -482,7 +483,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
482
483
|
#
|
483
484
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
484
485
|
#
|
485
|
-
def begin_delete_async(policy_name, custom_headers
|
486
|
+
def begin_delete_async(policy_name, custom_headers:nil)
|
486
487
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
487
488
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
488
489
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -491,6 +492,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
491
492
|
|
492
493
|
|
493
494
|
request_headers = {}
|
495
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
494
496
|
|
495
497
|
# Set Headers
|
496
498
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -537,8 +539,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
537
539
|
#
|
538
540
|
# @return [Policy] operation results.
|
539
541
|
#
|
540
|
-
def begin_update(policy_name, input, custom_headers
|
541
|
-
response = begin_update_async(policy_name, input, custom_headers).value!
|
542
|
+
def begin_update(policy_name, input, custom_headers:nil)
|
543
|
+
response = begin_update_async(policy_name, input, custom_headers:custom_headers).value!
|
542
544
|
response.body unless response.nil?
|
543
545
|
end
|
544
546
|
|
@@ -554,8 +556,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
554
556
|
#
|
555
557
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
556
558
|
#
|
557
|
-
def begin_update_with_http_info(policy_name, input, custom_headers
|
558
|
-
begin_update_async(policy_name, input, custom_headers).value!
|
559
|
+
def begin_update_with_http_info(policy_name, input, custom_headers:nil)
|
560
|
+
begin_update_async(policy_name, input, custom_headers:custom_headers).value!
|
559
561
|
end
|
560
562
|
|
561
563
|
#
|
@@ -570,7 +572,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
570
572
|
#
|
571
573
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
572
574
|
#
|
573
|
-
def begin_update_async(policy_name, input, custom_headers
|
575
|
+
def begin_update_async(policy_name, input, custom_headers:nil)
|
574
576
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
575
577
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
576
578
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -580,13 +582,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
580
582
|
|
581
583
|
|
582
584
|
request_headers = {}
|
585
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
583
586
|
|
584
587
|
# Set Headers
|
585
588
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
586
589
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
587
590
|
|
588
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
589
|
-
|
590
591
|
# Serialize Request
|
591
592
|
request_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::Models::UpdatePolicyInput.mapper()
|
592
593
|
request_content = @client.serialize(request_mapper, input)
|
@@ -645,8 +646,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
645
646
|
#
|
646
647
|
# @return [PolicyCollection] operation results.
|
647
648
|
#
|
648
|
-
def list_next(next_page_link, custom_headers
|
649
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
649
|
+
def list_next(next_page_link, custom_headers:nil)
|
650
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
650
651
|
response.body unless response.nil?
|
651
652
|
end
|
652
653
|
|
@@ -662,8 +663,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
662
663
|
#
|
663
664
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
664
665
|
#
|
665
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
666
|
-
list_next_async(next_page_link, custom_headers).value!
|
666
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
667
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
667
668
|
end
|
668
669
|
|
669
670
|
#
|
@@ -678,11 +679,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
678
679
|
#
|
679
680
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
680
681
|
#
|
681
|
-
def list_next_async(next_page_link, custom_headers
|
682
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
682
683
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
683
684
|
|
684
685
|
|
685
686
|
request_headers = {}
|
687
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
686
688
|
|
687
689
|
# Set Headers
|
688
690
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -737,12 +739,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
737
739
|
# @return [PolicyCollection] which provide lazy access to pages of the
|
738
740
|
# response.
|
739
741
|
#
|
740
|
-
def list_as_lazy(custom_headers
|
741
|
-
response = list_async(custom_headers).value!
|
742
|
+
def list_as_lazy(custom_headers:nil)
|
743
|
+
response = list_async(custom_headers:custom_headers).value!
|
742
744
|
unless response.nil?
|
743
745
|
page = response.body
|
744
746
|
page.next_method = Proc.new do |next_page_link|
|
745
|
-
list_next_async(next_page_link, custom_headers)
|
747
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
746
748
|
end
|
747
749
|
page
|
748
750
|
end
|
@@ -34,8 +34,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
34
34
|
#
|
35
35
|
# @return [ProtectableItem] operation results.
|
36
36
|
#
|
37
|
-
def get(fabric_name, protection_container_name, protectable_item_name, custom_headers
|
38
|
-
response = get_async(fabric_name, protection_container_name, protectable_item_name, custom_headers).value!
|
37
|
+
def get(fabric_name, protection_container_name, protectable_item_name, custom_headers:nil)
|
38
|
+
response = get_async(fabric_name, protection_container_name, protectable_item_name, custom_headers:custom_headers).value!
|
39
39
|
response.body unless response.nil?
|
40
40
|
end
|
41
41
|
|
@@ -52,8 +52,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
52
52
|
#
|
53
53
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
54
54
|
#
|
55
|
-
def get_with_http_info(fabric_name, protection_container_name, protectable_item_name, custom_headers
|
56
|
-
get_async(fabric_name, protection_container_name, protectable_item_name, custom_headers).value!
|
55
|
+
def get_with_http_info(fabric_name, protection_container_name, protectable_item_name, custom_headers:nil)
|
56
|
+
get_async(fabric_name, protection_container_name, protectable_item_name, custom_headers:custom_headers).value!
|
57
57
|
end
|
58
58
|
|
59
59
|
#
|
@@ -69,7 +69,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
69
69
|
#
|
70
70
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
71
71
|
#
|
72
|
-
def get_async(fabric_name, protection_container_name, protectable_item_name, custom_headers
|
72
|
+
def get_async(fabric_name, protection_container_name, protectable_item_name, custom_headers:nil)
|
73
73
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
74
74
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
75
75
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -80,6 +80,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
80
80
|
|
81
81
|
|
82
82
|
request_headers = {}
|
83
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
83
84
|
|
84
85
|
# Set Headers
|
85
86
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -136,8 +137,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
136
137
|
#
|
137
138
|
# @return [Array<ProtectableItem>] operation results.
|
138
139
|
#
|
139
|
-
def list_by_replication_protection_containers(fabric_name, protection_container_name, custom_headers
|
140
|
-
first_page = list_by_replication_protection_containers_as_lazy(fabric_name, protection_container_name, custom_headers)
|
140
|
+
def list_by_replication_protection_containers(fabric_name, protection_container_name, custom_headers:nil)
|
141
|
+
first_page = list_by_replication_protection_containers_as_lazy(fabric_name, protection_container_name, custom_headers:custom_headers)
|
141
142
|
first_page.get_all_items
|
142
143
|
end
|
143
144
|
|
@@ -153,8 +154,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
153
154
|
#
|
154
155
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
155
156
|
#
|
156
|
-
def list_by_replication_protection_containers_with_http_info(fabric_name, protection_container_name, custom_headers
|
157
|
-
list_by_replication_protection_containers_async(fabric_name, protection_container_name, custom_headers).value!
|
157
|
+
def list_by_replication_protection_containers_with_http_info(fabric_name, protection_container_name, custom_headers:nil)
|
158
|
+
list_by_replication_protection_containers_async(fabric_name, protection_container_name, custom_headers:custom_headers).value!
|
158
159
|
end
|
159
160
|
|
160
161
|
#
|
@@ -169,7 +170,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
169
170
|
#
|
170
171
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
171
172
|
#
|
172
|
-
def list_by_replication_protection_containers_async(fabric_name, protection_container_name, custom_headers
|
173
|
+
def list_by_replication_protection_containers_async(fabric_name, protection_container_name, custom_headers:nil)
|
173
174
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
174
175
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
175
176
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -179,6 +180,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
179
180
|
|
180
181
|
|
181
182
|
request_headers = {}
|
183
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
182
184
|
|
183
185
|
# Set Headers
|
184
186
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -235,8 +237,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
235
237
|
#
|
236
238
|
# @return [ProtectableItemCollection] operation results.
|
237
239
|
#
|
238
|
-
def list_by_replication_protection_containers_next(next_page_link, custom_headers
|
239
|
-
response = list_by_replication_protection_containers_next_async(next_page_link, custom_headers).value!
|
240
|
+
def list_by_replication_protection_containers_next(next_page_link, custom_headers:nil)
|
241
|
+
response = list_by_replication_protection_containers_next_async(next_page_link, custom_headers:custom_headers).value!
|
240
242
|
response.body unless response.nil?
|
241
243
|
end
|
242
244
|
|
@@ -252,8 +254,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
252
254
|
#
|
253
255
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
254
256
|
#
|
255
|
-
def list_by_replication_protection_containers_next_with_http_info(next_page_link, custom_headers
|
256
|
-
list_by_replication_protection_containers_next_async(next_page_link, custom_headers).value!
|
257
|
+
def list_by_replication_protection_containers_next_with_http_info(next_page_link, custom_headers:nil)
|
258
|
+
list_by_replication_protection_containers_next_async(next_page_link, custom_headers:custom_headers).value!
|
257
259
|
end
|
258
260
|
|
259
261
|
#
|
@@ -268,11 +270,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
268
270
|
#
|
269
271
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
270
272
|
#
|
271
|
-
def list_by_replication_protection_containers_next_async(next_page_link, custom_headers
|
273
|
+
def list_by_replication_protection_containers_next_async(next_page_link, custom_headers:nil)
|
272
274
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
273
275
|
|
274
276
|
|
275
277
|
request_headers = {}
|
278
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
276
279
|
|
277
280
|
# Set Headers
|
278
281
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -329,12 +332,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
329
332
|
# @return [ProtectableItemCollection] which provide lazy access to pages of the
|
330
333
|
# response.
|
331
334
|
#
|
332
|
-
def list_by_replication_protection_containers_as_lazy(fabric_name, protection_container_name, custom_headers
|
333
|
-
response = list_by_replication_protection_containers_async(fabric_name, protection_container_name, custom_headers).value!
|
335
|
+
def list_by_replication_protection_containers_as_lazy(fabric_name, protection_container_name, custom_headers:nil)
|
336
|
+
response = list_by_replication_protection_containers_async(fabric_name, protection_container_name, custom_headers:custom_headers).value!
|
334
337
|
unless response.nil?
|
335
338
|
page = response.body
|
336
339
|
page.next_method = Proc.new do |next_page_link|
|
337
|
-
list_by_replication_protection_containers_next_async(next_page_link, custom_headers)
|
340
|
+
list_by_replication_protection_containers_next_async(next_page_link, custom_headers:custom_headers)
|
338
341
|
end
|
339
342
|
page
|
340
343
|
end
|
@@ -33,8 +33,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
33
33
|
#
|
34
34
|
# @return [Array<ReplicationProtectedItem>] operation results.
|
35
35
|
#
|
36
|
-
def list_by_replication_protection_containers(fabric_name, protection_container_name, custom_headers
|
37
|
-
first_page = list_by_replication_protection_containers_as_lazy(fabric_name, protection_container_name, custom_headers)
|
36
|
+
def list_by_replication_protection_containers(fabric_name, protection_container_name, custom_headers:nil)
|
37
|
+
first_page = list_by_replication_protection_containers_as_lazy(fabric_name, protection_container_name, custom_headers:custom_headers)
|
38
38
|
first_page.get_all_items
|
39
39
|
end
|
40
40
|
|
@@ -50,8 +50,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
50
50
|
#
|
51
51
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
52
52
|
#
|
53
|
-
def list_by_replication_protection_containers_with_http_info(fabric_name, protection_container_name, custom_headers
|
54
|
-
list_by_replication_protection_containers_async(fabric_name, protection_container_name, custom_headers).value!
|
53
|
+
def list_by_replication_protection_containers_with_http_info(fabric_name, protection_container_name, custom_headers:nil)
|
54
|
+
list_by_replication_protection_containers_async(fabric_name, protection_container_name, custom_headers:custom_headers).value!
|
55
55
|
end
|
56
56
|
|
57
57
|
#
|
@@ -66,7 +66,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
66
66
|
#
|
67
67
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
68
68
|
#
|
69
|
-
def list_by_replication_protection_containers_async(fabric_name, protection_container_name, custom_headers
|
69
|
+
def list_by_replication_protection_containers_async(fabric_name, protection_container_name, custom_headers:nil)
|
70
70
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
71
71
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
72
72
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -76,6 +76,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
76
76
|
|
77
77
|
|
78
78
|
request_headers = {}
|
79
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
79
80
|
|
80
81
|
# Set Headers
|
81
82
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -133,8 +134,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
133
134
|
#
|
134
135
|
# @return [Array<ReplicationProtectedItem>] operation results.
|
135
136
|
#
|
136
|
-
def list(skip_token
|
137
|
-
first_page = list_as_lazy(skip_token, filter, custom_headers)
|
137
|
+
def list(skip_token:nil, filter:nil, custom_headers:nil)
|
138
|
+
first_page = list_as_lazy(skip_token:skip_token, filter:filter, custom_headers:custom_headers)
|
138
139
|
first_page.get_all_items
|
139
140
|
end
|
140
141
|
|
@@ -151,8 +152,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
151
152
|
#
|
152
153
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
153
154
|
#
|
154
|
-
def list_with_http_info(skip_token
|
155
|
-
list_async(skip_token, filter, custom_headers).value!
|
155
|
+
def list_with_http_info(skip_token:nil, filter:nil, custom_headers:nil)
|
156
|
+
list_async(skip_token:skip_token, filter:filter, custom_headers:custom_headers).value!
|
156
157
|
end
|
157
158
|
|
158
159
|
#
|
@@ -168,7 +169,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
168
169
|
#
|
169
170
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
170
171
|
#
|
171
|
-
def list_async(skip_token
|
172
|
+
def list_async(skip_token:nil, filter:nil, custom_headers:nil)
|
172
173
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
173
174
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
174
175
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -176,6 +177,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
176
177
|
|
177
178
|
|
178
179
|
request_headers = {}
|
180
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
179
181
|
|
180
182
|
# Set Headers
|
181
183
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -237,8 +239,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
237
239
|
#
|
238
240
|
# @return [ReplicationProtectedItem] operation results.
|
239
241
|
#
|
240
|
-
def apply_recovery_point(fabric_name, protection_container_name, replicated_protected_item_name, apply_recovery_point_input, custom_headers
|
241
|
-
response = apply_recovery_point_async(fabric_name, protection_container_name, replicated_protected_item_name, apply_recovery_point_input, custom_headers).value!
|
242
|
+
def apply_recovery_point(fabric_name, protection_container_name, replicated_protected_item_name, apply_recovery_point_input, custom_headers:nil)
|
243
|
+
response = apply_recovery_point_async(fabric_name, protection_container_name, replicated_protected_item_name, apply_recovery_point_input, custom_headers:custom_headers).value!
|
242
244
|
response.body unless response.nil?
|
243
245
|
end
|
244
246
|
|
@@ -255,9 +257,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
255
257
|
# @return [Concurrent::Promise] promise which provides async access to http
|
256
258
|
# response.
|
257
259
|
#
|
258
|
-
def apply_recovery_point_async(fabric_name, protection_container_name, replicated_protected_item_name, apply_recovery_point_input, custom_headers
|
260
|
+
def apply_recovery_point_async(fabric_name, protection_container_name, replicated_protected_item_name, apply_recovery_point_input, custom_headers:nil)
|
259
261
|
# Send request
|
260
|
-
promise = begin_apply_recovery_point_async(fabric_name, protection_container_name, replicated_protected_item_name, apply_recovery_point_input, custom_headers)
|
262
|
+
promise = begin_apply_recovery_point_async(fabric_name, protection_container_name, replicated_protected_item_name, apply_recovery_point_input, custom_headers:custom_headers)
|
261
263
|
|
262
264
|
promise = promise.then do |response|
|
263
265
|
# Defining deserialization method.
|
@@ -288,8 +290,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
288
290
|
#
|
289
291
|
# @return [ReplicationProtectedItem] operation results.
|
290
292
|
#
|
291
|
-
def repair_replication(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers
|
292
|
-
response = repair_replication_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers).value!
|
293
|
+
def repair_replication(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil)
|
294
|
+
response = repair_replication_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:custom_headers).value!
|
293
295
|
response.body unless response.nil?
|
294
296
|
end
|
295
297
|
|
@@ -304,9 +306,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
304
306
|
# @return [Concurrent::Promise] promise which provides async access to http
|
305
307
|
# response.
|
306
308
|
#
|
307
|
-
def repair_replication_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers
|
309
|
+
def repair_replication_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil)
|
308
310
|
# Send request
|
309
|
-
promise = begin_repair_replication_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers)
|
311
|
+
promise = begin_repair_replication_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:custom_headers)
|
310
312
|
|
311
313
|
promise = promise.then do |response|
|
312
314
|
# Defining deserialization method.
|
@@ -341,8 +343,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
341
343
|
#
|
342
344
|
# @return [ReplicationProtectedItem] operation results.
|
343
345
|
#
|
344
|
-
def update_mobility_service(fabric_name, protection_container_name, replication_protected_item_name, update_mobility_service_request, custom_headers
|
345
|
-
response = update_mobility_service_async(fabric_name, protection_container_name, replication_protected_item_name, update_mobility_service_request, custom_headers).value!
|
346
|
+
def update_mobility_service(fabric_name, protection_container_name, replication_protected_item_name, update_mobility_service_request, custom_headers:nil)
|
347
|
+
response = update_mobility_service_async(fabric_name, protection_container_name, replication_protected_item_name, update_mobility_service_request, custom_headers:custom_headers).value!
|
346
348
|
response.body unless response.nil?
|
347
349
|
end
|
348
350
|
|
@@ -361,9 +363,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
361
363
|
# @return [Concurrent::Promise] promise which provides async access to http
|
362
364
|
# response.
|
363
365
|
#
|
364
|
-
def update_mobility_service_async(fabric_name, protection_container_name, replication_protected_item_name, update_mobility_service_request, custom_headers
|
366
|
+
def update_mobility_service_async(fabric_name, protection_container_name, replication_protected_item_name, update_mobility_service_request, custom_headers:nil)
|
365
367
|
# Send request
|
366
|
-
promise = begin_update_mobility_service_async(fabric_name, protection_container_name, replication_protected_item_name, update_mobility_service_request, custom_headers)
|
368
|
+
promise = begin_update_mobility_service_async(fabric_name, protection_container_name, replication_protected_item_name, update_mobility_service_request, custom_headers:custom_headers)
|
367
369
|
|
368
370
|
promise = promise.then do |response|
|
369
371
|
# Defining deserialization method.
|
@@ -395,8 +397,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
395
397
|
#
|
396
398
|
# @return [ReplicationProtectedItem] operation results.
|
397
399
|
#
|
398
|
-
def reprotect(fabric_name, protection_container_name, replicated_protected_item_name, rr_input, custom_headers
|
399
|
-
response = reprotect_async(fabric_name, protection_container_name, replicated_protected_item_name, rr_input, custom_headers).value!
|
400
|
+
def reprotect(fabric_name, protection_container_name, replicated_protected_item_name, rr_input, custom_headers:nil)
|
401
|
+
response = reprotect_async(fabric_name, protection_container_name, replicated_protected_item_name, rr_input, custom_headers:custom_headers).value!
|
400
402
|
response.body unless response.nil?
|
401
403
|
end
|
402
404
|
|
@@ -412,9 +414,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
412
414
|
# @return [Concurrent::Promise] promise which provides async access to http
|
413
415
|
# response.
|
414
416
|
#
|
415
|
-
def reprotect_async(fabric_name, protection_container_name, replicated_protected_item_name, rr_input, custom_headers
|
417
|
+
def reprotect_async(fabric_name, protection_container_name, replicated_protected_item_name, rr_input, custom_headers:nil)
|
416
418
|
# Send request
|
417
|
-
promise = begin_reprotect_async(fabric_name, protection_container_name, replicated_protected_item_name, rr_input, custom_headers)
|
419
|
+
promise = begin_reprotect_async(fabric_name, protection_container_name, replicated_protected_item_name, rr_input, custom_headers:custom_headers)
|
418
420
|
|
419
421
|
promise = promise.then do |response|
|
420
422
|
# Defining deserialization method.
|
@@ -444,8 +446,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
444
446
|
#
|
445
447
|
# @return [ReplicationProtectedItem] operation results.
|
446
448
|
#
|
447
|
-
def failover_commit(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers
|
448
|
-
response = failover_commit_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers).value!
|
449
|
+
def failover_commit(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil)
|
450
|
+
response = failover_commit_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:custom_headers).value!
|
449
451
|
response.body unless response.nil?
|
450
452
|
end
|
451
453
|
|
@@ -460,9 +462,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
460
462
|
# @return [Concurrent::Promise] promise which provides async access to http
|
461
463
|
# response.
|
462
464
|
#
|
463
|
-
def failover_commit_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers
|
465
|
+
def failover_commit_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil)
|
464
466
|
# Send request
|
465
|
-
promise = begin_failover_commit_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers)
|
467
|
+
promise = begin_failover_commit_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:custom_headers)
|
466
468
|
|
467
469
|
promise = promise.then do |response|
|
468
470
|
# Defining deserialization method.
|
@@ -493,8 +495,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
493
495
|
#
|
494
496
|
# @return [ReplicationProtectedItem] operation results.
|
495
497
|
#
|
496
|
-
def test_failover_cleanup(fabric_name, protection_container_name, replicated_protected_item_name, cleanup_input, custom_headers
|
497
|
-
response = test_failover_cleanup_async(fabric_name, protection_container_name, replicated_protected_item_name, cleanup_input, custom_headers).value!
|
498
|
+
def test_failover_cleanup(fabric_name, protection_container_name, replicated_protected_item_name, cleanup_input, custom_headers:nil)
|
499
|
+
response = test_failover_cleanup_async(fabric_name, protection_container_name, replicated_protected_item_name, cleanup_input, custom_headers:custom_headers).value!
|
498
500
|
response.body unless response.nil?
|
499
501
|
end
|
500
502
|
|
@@ -510,9 +512,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
510
512
|
# @return [Concurrent::Promise] promise which provides async access to http
|
511
513
|
# response.
|
512
514
|
#
|
513
|
-
def test_failover_cleanup_async(fabric_name, protection_container_name, replicated_protected_item_name, cleanup_input, custom_headers
|
515
|
+
def test_failover_cleanup_async(fabric_name, protection_container_name, replicated_protected_item_name, cleanup_input, custom_headers:nil)
|
514
516
|
# Send request
|
515
|
-
promise = begin_test_failover_cleanup_async(fabric_name, protection_container_name, replicated_protected_item_name, cleanup_input, custom_headers)
|
517
|
+
promise = begin_test_failover_cleanup_async(fabric_name, protection_container_name, replicated_protected_item_name, cleanup_input, custom_headers:custom_headers)
|
516
518
|
|
517
519
|
promise = promise.then do |response|
|
518
520
|
# Defining deserialization method.
|
@@ -543,8 +545,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
543
545
|
#
|
544
546
|
# @return [ReplicationProtectedItem] operation results.
|
545
547
|
#
|
546
|
-
def test_failover(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers
|
547
|
-
response = test_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers).value!
|
548
|
+
def test_failover(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:nil)
|
549
|
+
response = test_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:custom_headers).value!
|
548
550
|
response.body unless response.nil?
|
549
551
|
end
|
550
552
|
|
@@ -560,9 +562,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
560
562
|
# @return [Concurrent::Promise] promise which provides async access to http
|
561
563
|
# response.
|
562
564
|
#
|
563
|
-
def test_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers
|
565
|
+
def test_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:nil)
|
564
566
|
# Send request
|
565
|
-
promise = begin_test_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers)
|
567
|
+
promise = begin_test_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:custom_headers)
|
566
568
|
|
567
569
|
promise = promise.then do |response|
|
568
570
|
# Defining deserialization method.
|
@@ -593,8 +595,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
593
595
|
#
|
594
596
|
# @return [ReplicationProtectedItem] operation results.
|
595
597
|
#
|
596
|
-
def unplanned_failover(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers
|
597
|
-
response = unplanned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers).value!
|
598
|
+
def unplanned_failover(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:nil)
|
599
|
+
response = unplanned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:custom_headers).value!
|
598
600
|
response.body unless response.nil?
|
599
601
|
end
|
600
602
|
|
@@ -610,9 +612,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
610
612
|
# @return [Concurrent::Promise] promise which provides async access to http
|
611
613
|
# response.
|
612
614
|
#
|
613
|
-
def unplanned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers
|
615
|
+
def unplanned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:nil)
|
614
616
|
# Send request
|
615
|
-
promise = begin_unplanned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers)
|
617
|
+
promise = begin_unplanned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:custom_headers)
|
616
618
|
|
617
619
|
promise = promise.then do |response|
|
618
620
|
# Defining deserialization method.
|
@@ -643,8 +645,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
643
645
|
#
|
644
646
|
# @return [ReplicationProtectedItem] operation results.
|
645
647
|
#
|
646
|
-
def planned_failover(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers
|
647
|
-
response = planned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers).value!
|
648
|
+
def planned_failover(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:nil)
|
649
|
+
response = planned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:custom_headers).value!
|
648
650
|
response.body unless response.nil?
|
649
651
|
end
|
650
652
|
|
@@ -660,9 +662,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
660
662
|
# @return [Concurrent::Promise] promise which provides async access to http
|
661
663
|
# response.
|
662
664
|
#
|
663
|
-
def planned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers
|
665
|
+
def planned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:nil)
|
664
666
|
# Send request
|
665
|
-
promise = begin_planned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers)
|
667
|
+
promise = begin_planned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:custom_headers)
|
666
668
|
|
667
669
|
promise = promise.then do |response|
|
668
670
|
# Defining deserialization method.
|
@@ -693,8 +695,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
693
695
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
694
696
|
# will be added to the HTTP request.
|
695
697
|
#
|
696
|
-
def delete(fabric_name, protection_container_name, replicated_protected_item_name, disable_protection_input, custom_headers
|
697
|
-
response = delete_async(fabric_name, protection_container_name, replicated_protected_item_name, disable_protection_input, custom_headers).value!
|
698
|
+
def delete(fabric_name, protection_container_name, replicated_protected_item_name, disable_protection_input, custom_headers:nil)
|
699
|
+
response = delete_async(fabric_name, protection_container_name, replicated_protected_item_name, disable_protection_input, custom_headers:custom_headers).value!
|
698
700
|
nil
|
699
701
|
end
|
700
702
|
|
@@ -711,9 +713,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
711
713
|
# @return [Concurrent::Promise] promise which provides async access to http
|
712
714
|
# response.
|
713
715
|
#
|
714
|
-
def delete_async(fabric_name, protection_container_name, replicated_protected_item_name, disable_protection_input, custom_headers
|
716
|
+
def delete_async(fabric_name, protection_container_name, replicated_protected_item_name, disable_protection_input, custom_headers:nil)
|
715
717
|
# Send request
|
716
|
-
promise = begin_delete_async(fabric_name, protection_container_name, replicated_protected_item_name, disable_protection_input, custom_headers)
|
718
|
+
promise = begin_delete_async(fabric_name, protection_container_name, replicated_protected_item_name, disable_protection_input, custom_headers:custom_headers)
|
717
719
|
|
718
720
|
promise = promise.then do |response|
|
719
721
|
# Defining deserialization method.
|
@@ -741,8 +743,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
741
743
|
#
|
742
744
|
# @return [ReplicationProtectedItem] operation results.
|
743
745
|
#
|
744
|
-
def get(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers
|
745
|
-
response = get_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers).value!
|
746
|
+
def get(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil)
|
747
|
+
response = get_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:custom_headers).value!
|
746
748
|
response.body unless response.nil?
|
747
749
|
end
|
748
750
|
|
@@ -760,8 +762,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
760
762
|
#
|
761
763
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
762
764
|
#
|
763
|
-
def get_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers
|
764
|
-
get_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers).value!
|
765
|
+
def get_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil)
|
766
|
+
get_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:custom_headers).value!
|
765
767
|
end
|
766
768
|
|
767
769
|
#
|
@@ -778,7 +780,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
778
780
|
#
|
779
781
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
780
782
|
#
|
781
|
-
def get_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers
|
783
|
+
def get_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil)
|
782
784
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
783
785
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
784
786
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -789,6 +791,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
789
791
|
|
790
792
|
|
791
793
|
request_headers = {}
|
794
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
792
795
|
|
793
796
|
# Set Headers
|
794
797
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -849,8 +852,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
849
852
|
#
|
850
853
|
# @return [ReplicationProtectedItem] operation results.
|
851
854
|
#
|
852
|
-
def create(fabric_name, protection_container_name, replicated_protected_item_name, input, custom_headers
|
853
|
-
response = create_async(fabric_name, protection_container_name, replicated_protected_item_name, input, custom_headers).value!
|
855
|
+
def create(fabric_name, protection_container_name, replicated_protected_item_name, input, custom_headers:nil)
|
856
|
+
response = create_async(fabric_name, protection_container_name, replicated_protected_item_name, input, custom_headers:custom_headers).value!
|
854
857
|
response.body unless response.nil?
|
855
858
|
end
|
856
859
|
|
@@ -866,9 +869,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
866
869
|
# @return [Concurrent::Promise] promise which provides async access to http
|
867
870
|
# response.
|
868
871
|
#
|
869
|
-
def create_async(fabric_name, protection_container_name, replicated_protected_item_name, input, custom_headers
|
872
|
+
def create_async(fabric_name, protection_container_name, replicated_protected_item_name, input, custom_headers:nil)
|
870
873
|
# Send request
|
871
|
-
promise = begin_create_async(fabric_name, protection_container_name, replicated_protected_item_name, input, custom_headers)
|
874
|
+
promise = begin_create_async(fabric_name, protection_container_name, replicated_protected_item_name, input, custom_headers:custom_headers)
|
872
875
|
|
873
876
|
promise = promise.then do |response|
|
874
877
|
# Defining deserialization method.
|
@@ -899,8 +902,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
899
902
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
900
903
|
# will be added to the HTTP request.
|
901
904
|
#
|
902
|
-
def purge(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers
|
903
|
-
response = purge_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers).value!
|
905
|
+
def purge(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil)
|
906
|
+
response = purge_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:custom_headers).value!
|
904
907
|
nil
|
905
908
|
end
|
906
909
|
|
@@ -915,9 +918,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
915
918
|
# @return [Concurrent::Promise] promise which provides async access to http
|
916
919
|
# response.
|
917
920
|
#
|
918
|
-
def purge_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers
|
921
|
+
def purge_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil)
|
919
922
|
# Send request
|
920
|
-
promise = begin_purge_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers)
|
923
|
+
promise = begin_purge_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:custom_headers)
|
921
924
|
|
922
925
|
promise = promise.then do |response|
|
923
926
|
# Defining deserialization method.
|
@@ -948,8 +951,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
948
951
|
#
|
949
952
|
# @return [ReplicationProtectedItem] operation results.
|
950
953
|
#
|
951
|
-
def update(fabric_name, protection_container_name, replicated_protected_item_name, update_protection_input, custom_headers
|
952
|
-
response = update_async(fabric_name, protection_container_name, replicated_protected_item_name, update_protection_input, custom_headers).value!
|
954
|
+
def update(fabric_name, protection_container_name, replicated_protected_item_name, update_protection_input, custom_headers:nil)
|
955
|
+
response = update_async(fabric_name, protection_container_name, replicated_protected_item_name, update_protection_input, custom_headers:custom_headers).value!
|
953
956
|
response.body unless response.nil?
|
954
957
|
end
|
955
958
|
|
@@ -966,9 +969,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
966
969
|
# @return [Concurrent::Promise] promise which provides async access to http
|
967
970
|
# response.
|
968
971
|
#
|
969
|
-
def update_async(fabric_name, protection_container_name, replicated_protected_item_name, update_protection_input, custom_headers
|
972
|
+
def update_async(fabric_name, protection_container_name, replicated_protected_item_name, update_protection_input, custom_headers:nil)
|
970
973
|
# Send request
|
971
|
-
promise = begin_update_async(fabric_name, protection_container_name, replicated_protected_item_name, update_protection_input, custom_headers)
|
974
|
+
promise = begin_update_async(fabric_name, protection_container_name, replicated_protected_item_name, update_protection_input, custom_headers:custom_headers)
|
972
975
|
|
973
976
|
promise = promise.then do |response|
|
974
977
|
# Defining deserialization method.
|
@@ -1001,8 +1004,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1001
1004
|
#
|
1002
1005
|
# @return [ReplicationProtectedItem] operation results.
|
1003
1006
|
#
|
1004
|
-
def begin_apply_recovery_point(fabric_name, protection_container_name, replicated_protected_item_name, apply_recovery_point_input, custom_headers
|
1005
|
-
response = begin_apply_recovery_point_async(fabric_name, protection_container_name, replicated_protected_item_name, apply_recovery_point_input, custom_headers).value!
|
1007
|
+
def begin_apply_recovery_point(fabric_name, protection_container_name, replicated_protected_item_name, apply_recovery_point_input, custom_headers:nil)
|
1008
|
+
response = begin_apply_recovery_point_async(fabric_name, protection_container_name, replicated_protected_item_name, apply_recovery_point_input, custom_headers:custom_headers).value!
|
1006
1009
|
response.body unless response.nil?
|
1007
1010
|
end
|
1008
1011
|
|
@@ -1023,8 +1026,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1023
1026
|
#
|
1024
1027
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1025
1028
|
#
|
1026
|
-
def begin_apply_recovery_point_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, apply_recovery_point_input, custom_headers
|
1027
|
-
begin_apply_recovery_point_async(fabric_name, protection_container_name, replicated_protected_item_name, apply_recovery_point_input, custom_headers).value!
|
1029
|
+
def begin_apply_recovery_point_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, apply_recovery_point_input, custom_headers:nil)
|
1030
|
+
begin_apply_recovery_point_async(fabric_name, protection_container_name, replicated_protected_item_name, apply_recovery_point_input, custom_headers:custom_headers).value!
|
1028
1031
|
end
|
1029
1032
|
|
1030
1033
|
#
|
@@ -1044,7 +1047,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1044
1047
|
#
|
1045
1048
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1046
1049
|
#
|
1047
|
-
def begin_apply_recovery_point_async(fabric_name, protection_container_name, replicated_protected_item_name, apply_recovery_point_input, custom_headers
|
1050
|
+
def begin_apply_recovery_point_async(fabric_name, protection_container_name, replicated_protected_item_name, apply_recovery_point_input, custom_headers:nil)
|
1048
1051
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1049
1052
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
1050
1053
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -1056,13 +1059,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1056
1059
|
|
1057
1060
|
|
1058
1061
|
request_headers = {}
|
1062
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1059
1063
|
|
1060
1064
|
# Set Headers
|
1061
1065
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1062
1066
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1063
1067
|
|
1064
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1065
|
-
|
1066
1068
|
# Serialize Request
|
1067
1069
|
request_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::Models::ApplyRecoveryPointInput.mapper()
|
1068
1070
|
request_content = @client.serialize(request_mapper, apply_recovery_point_input)
|
@@ -1124,8 +1126,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1124
1126
|
#
|
1125
1127
|
# @return [ReplicationProtectedItem] operation results.
|
1126
1128
|
#
|
1127
|
-
def begin_repair_replication(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers
|
1128
|
-
response = begin_repair_replication_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers).value!
|
1129
|
+
def begin_repair_replication(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil)
|
1130
|
+
response = begin_repair_replication_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:custom_headers).value!
|
1129
1131
|
response.body unless response.nil?
|
1130
1132
|
end
|
1131
1133
|
|
@@ -1144,8 +1146,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1144
1146
|
#
|
1145
1147
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1146
1148
|
#
|
1147
|
-
def begin_repair_replication_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers
|
1148
|
-
begin_repair_replication_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers).value!
|
1149
|
+
def begin_repair_replication_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil)
|
1150
|
+
begin_repair_replication_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:custom_headers).value!
|
1149
1151
|
end
|
1150
1152
|
|
1151
1153
|
#
|
@@ -1163,7 +1165,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1163
1165
|
#
|
1164
1166
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1165
1167
|
#
|
1166
|
-
def begin_repair_replication_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers
|
1168
|
+
def begin_repair_replication_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil)
|
1167
1169
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1168
1170
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
1169
1171
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -1174,6 +1176,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1174
1176
|
|
1175
1177
|
|
1176
1178
|
request_headers = {}
|
1179
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1177
1180
|
|
1178
1181
|
# Set Headers
|
1179
1182
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1237,8 +1240,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1237
1240
|
#
|
1238
1241
|
# @return [ReplicationProtectedItem] operation results.
|
1239
1242
|
#
|
1240
|
-
def begin_update_mobility_service(fabric_name, protection_container_name, replication_protected_item_name, update_mobility_service_request, custom_headers
|
1241
|
-
response = begin_update_mobility_service_async(fabric_name, protection_container_name, replication_protected_item_name, update_mobility_service_request, custom_headers).value!
|
1243
|
+
def begin_update_mobility_service(fabric_name, protection_container_name, replication_protected_item_name, update_mobility_service_request, custom_headers:nil)
|
1244
|
+
response = begin_update_mobility_service_async(fabric_name, protection_container_name, replication_protected_item_name, update_mobility_service_request, custom_headers:custom_headers).value!
|
1242
1245
|
response.body unless response.nil?
|
1243
1246
|
end
|
1244
1247
|
|
@@ -1261,8 +1264,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1261
1264
|
#
|
1262
1265
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1263
1266
|
#
|
1264
|
-
def begin_update_mobility_service_with_http_info(fabric_name, protection_container_name, replication_protected_item_name, update_mobility_service_request, custom_headers
|
1265
|
-
begin_update_mobility_service_async(fabric_name, protection_container_name, replication_protected_item_name, update_mobility_service_request, custom_headers).value!
|
1267
|
+
def begin_update_mobility_service_with_http_info(fabric_name, protection_container_name, replication_protected_item_name, update_mobility_service_request, custom_headers:nil)
|
1268
|
+
begin_update_mobility_service_async(fabric_name, protection_container_name, replication_protected_item_name, update_mobility_service_request, custom_headers:custom_headers).value!
|
1266
1269
|
end
|
1267
1270
|
|
1268
1271
|
#
|
@@ -1284,7 +1287,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1284
1287
|
#
|
1285
1288
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1286
1289
|
#
|
1287
|
-
def begin_update_mobility_service_async(fabric_name, protection_container_name, replication_protected_item_name, update_mobility_service_request, custom_headers
|
1290
|
+
def begin_update_mobility_service_async(fabric_name, protection_container_name, replication_protected_item_name, update_mobility_service_request, custom_headers:nil)
|
1288
1291
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1289
1292
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
1290
1293
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -1296,13 +1299,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1296
1299
|
|
1297
1300
|
|
1298
1301
|
request_headers = {}
|
1302
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1299
1303
|
|
1300
1304
|
# Set Headers
|
1301
1305
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1302
1306
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1303
1307
|
|
1304
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1305
|
-
|
1306
1308
|
# Serialize Request
|
1307
1309
|
request_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::Models::UpdateMobilityServiceRequest.mapper()
|
1308
1310
|
request_content = @client.serialize(request_mapper, update_mobility_service_request)
|
@@ -1365,8 +1367,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1365
1367
|
#
|
1366
1368
|
# @return [ReplicationProtectedItem] operation results.
|
1367
1369
|
#
|
1368
|
-
def begin_reprotect(fabric_name, protection_container_name, replicated_protected_item_name, rr_input, custom_headers
|
1369
|
-
response = begin_reprotect_async(fabric_name, protection_container_name, replicated_protected_item_name, rr_input, custom_headers).value!
|
1370
|
+
def begin_reprotect(fabric_name, protection_container_name, replicated_protected_item_name, rr_input, custom_headers:nil)
|
1371
|
+
response = begin_reprotect_async(fabric_name, protection_container_name, replicated_protected_item_name, rr_input, custom_headers:custom_headers).value!
|
1370
1372
|
response.body unless response.nil?
|
1371
1373
|
end
|
1372
1374
|
|
@@ -1386,8 +1388,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1386
1388
|
#
|
1387
1389
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1388
1390
|
#
|
1389
|
-
def begin_reprotect_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, rr_input, custom_headers
|
1390
|
-
begin_reprotect_async(fabric_name, protection_container_name, replicated_protected_item_name, rr_input, custom_headers).value!
|
1391
|
+
def begin_reprotect_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, rr_input, custom_headers:nil)
|
1392
|
+
begin_reprotect_async(fabric_name, protection_container_name, replicated_protected_item_name, rr_input, custom_headers:custom_headers).value!
|
1391
1393
|
end
|
1392
1394
|
|
1393
1395
|
#
|
@@ -1406,7 +1408,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1406
1408
|
#
|
1407
1409
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1408
1410
|
#
|
1409
|
-
def begin_reprotect_async(fabric_name, protection_container_name, replicated_protected_item_name, rr_input, custom_headers
|
1411
|
+
def begin_reprotect_async(fabric_name, protection_container_name, replicated_protected_item_name, rr_input, custom_headers:nil)
|
1410
1412
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1411
1413
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
1412
1414
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -1418,13 +1420,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1418
1420
|
|
1419
1421
|
|
1420
1422
|
request_headers = {}
|
1423
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1421
1424
|
|
1422
1425
|
# Set Headers
|
1423
1426
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1424
1427
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1425
1428
|
|
1426
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1427
|
-
|
1428
1429
|
# Serialize Request
|
1429
1430
|
request_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::Models::ReverseReplicationInput.mapper()
|
1430
1431
|
request_content = @client.serialize(request_mapper, rr_input)
|
@@ -1485,8 +1486,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1485
1486
|
#
|
1486
1487
|
# @return [ReplicationProtectedItem] operation results.
|
1487
1488
|
#
|
1488
|
-
def begin_failover_commit(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers
|
1489
|
-
response = begin_failover_commit_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers).value!
|
1489
|
+
def begin_failover_commit(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil)
|
1490
|
+
response = begin_failover_commit_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:custom_headers).value!
|
1490
1491
|
response.body unless response.nil?
|
1491
1492
|
end
|
1492
1493
|
|
@@ -1504,8 +1505,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1504
1505
|
#
|
1505
1506
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1506
1507
|
#
|
1507
|
-
def begin_failover_commit_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers
|
1508
|
-
begin_failover_commit_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers).value!
|
1508
|
+
def begin_failover_commit_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil)
|
1509
|
+
begin_failover_commit_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:custom_headers).value!
|
1509
1510
|
end
|
1510
1511
|
|
1511
1512
|
#
|
@@ -1522,7 +1523,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1522
1523
|
#
|
1523
1524
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1524
1525
|
#
|
1525
|
-
def begin_failover_commit_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers
|
1526
|
+
def begin_failover_commit_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil)
|
1526
1527
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1527
1528
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
1528
1529
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -1533,6 +1534,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1533
1534
|
|
1534
1535
|
|
1535
1536
|
request_headers = {}
|
1537
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1536
1538
|
|
1537
1539
|
# Set Headers
|
1538
1540
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1592,8 +1594,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1592
1594
|
#
|
1593
1595
|
# @return [ReplicationProtectedItem] operation results.
|
1594
1596
|
#
|
1595
|
-
def begin_test_failover_cleanup(fabric_name, protection_container_name, replicated_protected_item_name, cleanup_input, custom_headers
|
1596
|
-
response = begin_test_failover_cleanup_async(fabric_name, protection_container_name, replicated_protected_item_name, cleanup_input, custom_headers).value!
|
1597
|
+
def begin_test_failover_cleanup(fabric_name, protection_container_name, replicated_protected_item_name, cleanup_input, custom_headers:nil)
|
1598
|
+
response = begin_test_failover_cleanup_async(fabric_name, protection_container_name, replicated_protected_item_name, cleanup_input, custom_headers:custom_headers).value!
|
1597
1599
|
response.body unless response.nil?
|
1598
1600
|
end
|
1599
1601
|
|
@@ -1612,8 +1614,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1612
1614
|
#
|
1613
1615
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1614
1616
|
#
|
1615
|
-
def begin_test_failover_cleanup_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, cleanup_input, custom_headers
|
1616
|
-
begin_test_failover_cleanup_async(fabric_name, protection_container_name, replicated_protected_item_name, cleanup_input, custom_headers).value!
|
1617
|
+
def begin_test_failover_cleanup_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, cleanup_input, custom_headers:nil)
|
1618
|
+
begin_test_failover_cleanup_async(fabric_name, protection_container_name, replicated_protected_item_name, cleanup_input, custom_headers:custom_headers).value!
|
1617
1619
|
end
|
1618
1620
|
|
1619
1621
|
#
|
@@ -1631,7 +1633,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1631
1633
|
#
|
1632
1634
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1633
1635
|
#
|
1634
|
-
def begin_test_failover_cleanup_async(fabric_name, protection_container_name, replicated_protected_item_name, cleanup_input, custom_headers
|
1636
|
+
def begin_test_failover_cleanup_async(fabric_name, protection_container_name, replicated_protected_item_name, cleanup_input, custom_headers:nil)
|
1635
1637
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1636
1638
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
1637
1639
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -1643,13 +1645,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1643
1645
|
|
1644
1646
|
|
1645
1647
|
request_headers = {}
|
1648
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1646
1649
|
|
1647
1650
|
# Set Headers
|
1648
1651
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1649
1652
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1650
1653
|
|
1651
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1652
|
-
|
1653
1654
|
# Serialize Request
|
1654
1655
|
request_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::Models::TestFailoverCleanupInput.mapper()
|
1655
1656
|
request_content = @client.serialize(request_mapper, cleanup_input)
|
@@ -1711,8 +1712,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1711
1712
|
#
|
1712
1713
|
# @return [ReplicationProtectedItem] operation results.
|
1713
1714
|
#
|
1714
|
-
def begin_test_failover(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers
|
1715
|
-
response = begin_test_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers).value!
|
1715
|
+
def begin_test_failover(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:nil)
|
1716
|
+
response = begin_test_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:custom_headers).value!
|
1716
1717
|
response.body unless response.nil?
|
1717
1718
|
end
|
1718
1719
|
|
@@ -1731,8 +1732,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1731
1732
|
#
|
1732
1733
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1733
1734
|
#
|
1734
|
-
def begin_test_failover_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers
|
1735
|
-
begin_test_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers).value!
|
1735
|
+
def begin_test_failover_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:nil)
|
1736
|
+
begin_test_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:custom_headers).value!
|
1736
1737
|
end
|
1737
1738
|
|
1738
1739
|
#
|
@@ -1750,7 +1751,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1750
1751
|
#
|
1751
1752
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1752
1753
|
#
|
1753
|
-
def begin_test_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers
|
1754
|
+
def begin_test_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:nil)
|
1754
1755
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1755
1756
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
1756
1757
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -1762,13 +1763,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1762
1763
|
|
1763
1764
|
|
1764
1765
|
request_headers = {}
|
1766
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1765
1767
|
|
1766
1768
|
# Set Headers
|
1767
1769
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1768
1770
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1769
1771
|
|
1770
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1771
|
-
|
1772
1772
|
# Serialize Request
|
1773
1773
|
request_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::Models::TestFailoverInput.mapper()
|
1774
1774
|
request_content = @client.serialize(request_mapper, failover_input)
|
@@ -1830,8 +1830,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1830
1830
|
#
|
1831
1831
|
# @return [ReplicationProtectedItem] operation results.
|
1832
1832
|
#
|
1833
|
-
def begin_unplanned_failover(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers
|
1834
|
-
response = begin_unplanned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers).value!
|
1833
|
+
def begin_unplanned_failover(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:nil)
|
1834
|
+
response = begin_unplanned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:custom_headers).value!
|
1835
1835
|
response.body unless response.nil?
|
1836
1836
|
end
|
1837
1837
|
|
@@ -1850,8 +1850,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1850
1850
|
#
|
1851
1851
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1852
1852
|
#
|
1853
|
-
def begin_unplanned_failover_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers
|
1854
|
-
begin_unplanned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers).value!
|
1853
|
+
def begin_unplanned_failover_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:nil)
|
1854
|
+
begin_unplanned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:custom_headers).value!
|
1855
1855
|
end
|
1856
1856
|
|
1857
1857
|
#
|
@@ -1869,7 +1869,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1869
1869
|
#
|
1870
1870
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1871
1871
|
#
|
1872
|
-
def begin_unplanned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers
|
1872
|
+
def begin_unplanned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:nil)
|
1873
1873
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1874
1874
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
1875
1875
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -1881,13 +1881,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1881
1881
|
|
1882
1882
|
|
1883
1883
|
request_headers = {}
|
1884
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1884
1885
|
|
1885
1886
|
# Set Headers
|
1886
1887
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1887
1888
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1888
1889
|
|
1889
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1890
|
-
|
1891
1890
|
# Serialize Request
|
1892
1891
|
request_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::Models::UnplannedFailoverInput.mapper()
|
1893
1892
|
request_content = @client.serialize(request_mapper, failover_input)
|
@@ -1949,8 +1948,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1949
1948
|
#
|
1950
1949
|
# @return [ReplicationProtectedItem] operation results.
|
1951
1950
|
#
|
1952
|
-
def begin_planned_failover(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers
|
1953
|
-
response = begin_planned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers).value!
|
1951
|
+
def begin_planned_failover(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:nil)
|
1952
|
+
response = begin_planned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:custom_headers).value!
|
1954
1953
|
response.body unless response.nil?
|
1955
1954
|
end
|
1956
1955
|
|
@@ -1969,8 +1968,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1969
1968
|
#
|
1970
1969
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1971
1970
|
#
|
1972
|
-
def begin_planned_failover_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers
|
1973
|
-
begin_planned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers).value!
|
1971
|
+
def begin_planned_failover_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:nil)
|
1972
|
+
begin_planned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:custom_headers).value!
|
1974
1973
|
end
|
1975
1974
|
|
1976
1975
|
#
|
@@ -1988,7 +1987,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
1988
1987
|
#
|
1989
1988
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1990
1989
|
#
|
1991
|
-
def begin_planned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers
|
1990
|
+
def begin_planned_failover_async(fabric_name, protection_container_name, replicated_protected_item_name, failover_input, custom_headers:nil)
|
1992
1991
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1993
1992
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
1994
1993
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -2000,13 +1999,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
2000
1999
|
|
2001
2000
|
|
2002
2001
|
request_headers = {}
|
2002
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
2003
2003
|
|
2004
2004
|
# Set Headers
|
2005
2005
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
2006
2006
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
2007
2007
|
|
2008
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
2009
|
-
|
2010
2008
|
# Serialize Request
|
2011
2009
|
request_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::Models::PlannedFailoverInput.mapper()
|
2012
2010
|
request_content = @client.serialize(request_mapper, failover_input)
|
@@ -2069,8 +2067,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
2069
2067
|
# will be added to the HTTP request.
|
2070
2068
|
#
|
2071
2069
|
#
|
2072
|
-
def begin_delete(fabric_name, protection_container_name, replicated_protected_item_name, disable_protection_input, custom_headers
|
2073
|
-
response = begin_delete_async(fabric_name, protection_container_name, replicated_protected_item_name, disable_protection_input, custom_headers).value!
|
2070
|
+
def begin_delete(fabric_name, protection_container_name, replicated_protected_item_name, disable_protection_input, custom_headers:nil)
|
2071
|
+
response = begin_delete_async(fabric_name, protection_container_name, replicated_protected_item_name, disable_protection_input, custom_headers:custom_headers).value!
|
2074
2072
|
nil
|
2075
2073
|
end
|
2076
2074
|
|
@@ -2091,8 +2089,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
2091
2089
|
#
|
2092
2090
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
2093
2091
|
#
|
2094
|
-
def begin_delete_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, disable_protection_input, custom_headers
|
2095
|
-
begin_delete_async(fabric_name, protection_container_name, replicated_protected_item_name, disable_protection_input, custom_headers).value!
|
2092
|
+
def begin_delete_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, disable_protection_input, custom_headers:nil)
|
2093
|
+
begin_delete_async(fabric_name, protection_container_name, replicated_protected_item_name, disable_protection_input, custom_headers:custom_headers).value!
|
2096
2094
|
end
|
2097
2095
|
|
2098
2096
|
#
|
@@ -2112,7 +2110,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
2112
2110
|
#
|
2113
2111
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
2114
2112
|
#
|
2115
|
-
def begin_delete_async(fabric_name, protection_container_name, replicated_protected_item_name, disable_protection_input, custom_headers
|
2113
|
+
def begin_delete_async(fabric_name, protection_container_name, replicated_protected_item_name, disable_protection_input, custom_headers:nil)
|
2116
2114
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
2117
2115
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
2118
2116
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -2124,13 +2122,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
2124
2122
|
|
2125
2123
|
|
2126
2124
|
request_headers = {}
|
2125
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
2127
2126
|
|
2128
2127
|
# Set Headers
|
2129
2128
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
2130
2129
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
2131
2130
|
|
2132
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
2133
|
-
|
2134
2131
|
# Serialize Request
|
2135
2132
|
request_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::Models::DisableProtectionInput.mapper()
|
2136
2133
|
request_content = @client.serialize(request_mapper, disable_protection_input)
|
@@ -2183,8 +2180,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
2183
2180
|
#
|
2184
2181
|
# @return [ReplicationProtectedItem] operation results.
|
2185
2182
|
#
|
2186
|
-
def begin_create(fabric_name, protection_container_name, replicated_protected_item_name, input, custom_headers
|
2187
|
-
response = begin_create_async(fabric_name, protection_container_name, replicated_protected_item_name, input, custom_headers).value!
|
2183
|
+
def begin_create(fabric_name, protection_container_name, replicated_protected_item_name, input, custom_headers:nil)
|
2184
|
+
response = begin_create_async(fabric_name, protection_container_name, replicated_protected_item_name, input, custom_headers:custom_headers).value!
|
2188
2185
|
response.body unless response.nil?
|
2189
2186
|
end
|
2190
2187
|
|
@@ -2204,8 +2201,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
2204
2201
|
#
|
2205
2202
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
2206
2203
|
#
|
2207
|
-
def begin_create_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, input, custom_headers
|
2208
|
-
begin_create_async(fabric_name, protection_container_name, replicated_protected_item_name, input, custom_headers).value!
|
2204
|
+
def begin_create_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, input, custom_headers:nil)
|
2205
|
+
begin_create_async(fabric_name, protection_container_name, replicated_protected_item_name, input, custom_headers:custom_headers).value!
|
2209
2206
|
end
|
2210
2207
|
|
2211
2208
|
#
|
@@ -2224,7 +2221,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
2224
2221
|
#
|
2225
2222
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
2226
2223
|
#
|
2227
|
-
def begin_create_async(fabric_name, protection_container_name, replicated_protected_item_name, input, custom_headers
|
2224
|
+
def begin_create_async(fabric_name, protection_container_name, replicated_protected_item_name, input, custom_headers:nil)
|
2228
2225
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
2229
2226
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
2230
2227
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -2236,13 +2233,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
2236
2233
|
|
2237
2234
|
|
2238
2235
|
request_headers = {}
|
2236
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
2239
2237
|
|
2240
2238
|
# Set Headers
|
2241
2239
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
2242
2240
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
2243
2241
|
|
2244
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
2245
|
-
|
2246
2242
|
# Serialize Request
|
2247
2243
|
request_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::Models::EnableProtectionInput.mapper()
|
2248
2244
|
request_content = @client.serialize(request_mapper, input)
|
@@ -2305,8 +2301,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
2305
2301
|
# will be added to the HTTP request.
|
2306
2302
|
#
|
2307
2303
|
#
|
2308
|
-
def begin_purge(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers
|
2309
|
-
response = begin_purge_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers).value!
|
2304
|
+
def begin_purge(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil)
|
2305
|
+
response = begin_purge_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:custom_headers).value!
|
2310
2306
|
nil
|
2311
2307
|
end
|
2312
2308
|
|
@@ -2327,8 +2323,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
2327
2323
|
#
|
2328
2324
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
2329
2325
|
#
|
2330
|
-
def begin_purge_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers
|
2331
|
-
begin_purge_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers).value!
|
2326
|
+
def begin_purge_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil)
|
2327
|
+
begin_purge_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:custom_headers).value!
|
2332
2328
|
end
|
2333
2329
|
|
2334
2330
|
#
|
@@ -2348,7 +2344,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
2348
2344
|
#
|
2349
2345
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
2350
2346
|
#
|
2351
|
-
def begin_purge_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers
|
2347
|
+
def begin_purge_async(fabric_name, protection_container_name, replicated_protected_item_name, custom_headers:nil)
|
2352
2348
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
2353
2349
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
2354
2350
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -2359,6 +2355,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
2359
2355
|
|
2360
2356
|
|
2361
2357
|
request_headers = {}
|
2358
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
2362
2359
|
|
2363
2360
|
# Set Headers
|
2364
2361
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -2410,8 +2407,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
2410
2407
|
#
|
2411
2408
|
# @return [ReplicationProtectedItem] operation results.
|
2412
2409
|
#
|
2413
|
-
def begin_update(fabric_name, protection_container_name, replicated_protected_item_name, update_protection_input, custom_headers
|
2414
|
-
response = begin_update_async(fabric_name, protection_container_name, replicated_protected_item_name, update_protection_input, custom_headers).value!
|
2410
|
+
def begin_update(fabric_name, protection_container_name, replicated_protected_item_name, update_protection_input, custom_headers:nil)
|
2411
|
+
response = begin_update_async(fabric_name, protection_container_name, replicated_protected_item_name, update_protection_input, custom_headers:custom_headers).value!
|
2415
2412
|
response.body unless response.nil?
|
2416
2413
|
end
|
2417
2414
|
|
@@ -2432,8 +2429,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
2432
2429
|
#
|
2433
2430
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
2434
2431
|
#
|
2435
|
-
def begin_update_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, update_protection_input, custom_headers
|
2436
|
-
begin_update_async(fabric_name, protection_container_name, replicated_protected_item_name, update_protection_input, custom_headers).value!
|
2432
|
+
def begin_update_with_http_info(fabric_name, protection_container_name, replicated_protected_item_name, update_protection_input, custom_headers:nil)
|
2433
|
+
begin_update_async(fabric_name, protection_container_name, replicated_protected_item_name, update_protection_input, custom_headers:custom_headers).value!
|
2437
2434
|
end
|
2438
2435
|
|
2439
2436
|
#
|
@@ -2453,7 +2450,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
2453
2450
|
#
|
2454
2451
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
2455
2452
|
#
|
2456
|
-
def begin_update_async(fabric_name, protection_container_name, replicated_protected_item_name, update_protection_input, custom_headers
|
2453
|
+
def begin_update_async(fabric_name, protection_container_name, replicated_protected_item_name, update_protection_input, custom_headers:nil)
|
2457
2454
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
2458
2455
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
2459
2456
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -2465,13 +2462,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
2465
2462
|
|
2466
2463
|
|
2467
2464
|
request_headers = {}
|
2465
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
2468
2466
|
|
2469
2467
|
# Set Headers
|
2470
2468
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
2471
2469
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
2472
2470
|
|
2473
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
2474
|
-
|
2475
2471
|
# Serialize Request
|
2476
2472
|
request_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::Models::UpdateReplicationProtectedItemInput.mapper()
|
2477
2473
|
request_content = @client.serialize(request_mapper, update_protection_input)
|
@@ -2530,8 +2526,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
2530
2526
|
#
|
2531
2527
|
# @return [ReplicationProtectedItemCollection] operation results.
|
2532
2528
|
#
|
2533
|
-
def list_by_replication_protection_containers_next(next_page_link, custom_headers
|
2534
|
-
response = list_by_replication_protection_containers_next_async(next_page_link, custom_headers).value!
|
2529
|
+
def list_by_replication_protection_containers_next(next_page_link, custom_headers:nil)
|
2530
|
+
response = list_by_replication_protection_containers_next_async(next_page_link, custom_headers:custom_headers).value!
|
2535
2531
|
response.body unless response.nil?
|
2536
2532
|
end
|
2537
2533
|
|
@@ -2547,8 +2543,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
2547
2543
|
#
|
2548
2544
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
2549
2545
|
#
|
2550
|
-
def list_by_replication_protection_containers_next_with_http_info(next_page_link, custom_headers
|
2551
|
-
list_by_replication_protection_containers_next_async(next_page_link, custom_headers).value!
|
2546
|
+
def list_by_replication_protection_containers_next_with_http_info(next_page_link, custom_headers:nil)
|
2547
|
+
list_by_replication_protection_containers_next_async(next_page_link, custom_headers:custom_headers).value!
|
2552
2548
|
end
|
2553
2549
|
|
2554
2550
|
#
|
@@ -2563,11 +2559,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
2563
2559
|
#
|
2564
2560
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
2565
2561
|
#
|
2566
|
-
def list_by_replication_protection_containers_next_async(next_page_link, custom_headers
|
2562
|
+
def list_by_replication_protection_containers_next_async(next_page_link, custom_headers:nil)
|
2567
2563
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
2568
2564
|
|
2569
2565
|
|
2570
2566
|
request_headers = {}
|
2567
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
2571
2568
|
|
2572
2569
|
# Set Headers
|
2573
2570
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -2623,8 +2620,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
2623
2620
|
#
|
2624
2621
|
# @return [ReplicationProtectedItemCollection] operation results.
|
2625
2622
|
#
|
2626
|
-
def list_next(next_page_link, custom_headers
|
2627
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
2623
|
+
def list_next(next_page_link, custom_headers:nil)
|
2624
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
2628
2625
|
response.body unless response.nil?
|
2629
2626
|
end
|
2630
2627
|
|
@@ -2640,8 +2637,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
2640
2637
|
#
|
2641
2638
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
2642
2639
|
#
|
2643
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
2644
|
-
list_next_async(next_page_link, custom_headers).value!
|
2640
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
2641
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
2645
2642
|
end
|
2646
2643
|
|
2647
2644
|
#
|
@@ -2656,11 +2653,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
2656
2653
|
#
|
2657
2654
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
2658
2655
|
#
|
2659
|
-
def list_next_async(next_page_link, custom_headers
|
2656
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
2660
2657
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
2661
2658
|
|
2662
2659
|
|
2663
2660
|
request_headers = {}
|
2661
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
2664
2662
|
|
2665
2663
|
# Set Headers
|
2666
2664
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -2717,12 +2715,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
2717
2715
|
# @return [ReplicationProtectedItemCollection] which provide lazy access to
|
2718
2716
|
# pages of the response.
|
2719
2717
|
#
|
2720
|
-
def list_by_replication_protection_containers_as_lazy(fabric_name, protection_container_name, custom_headers
|
2721
|
-
response = list_by_replication_protection_containers_async(fabric_name, protection_container_name, custom_headers).value!
|
2718
|
+
def list_by_replication_protection_containers_as_lazy(fabric_name, protection_container_name, custom_headers:nil)
|
2719
|
+
response = list_by_replication_protection_containers_async(fabric_name, protection_container_name, custom_headers:custom_headers).value!
|
2722
2720
|
unless response.nil?
|
2723
2721
|
page = response.body
|
2724
2722
|
page.next_method = Proc.new do |next_page_link|
|
2725
|
-
list_by_replication_protection_containers_next_async(next_page_link, custom_headers)
|
2723
|
+
list_by_replication_protection_containers_next_async(next_page_link, custom_headers:custom_headers)
|
2726
2724
|
end
|
2727
2725
|
page
|
2728
2726
|
end
|
@@ -2742,12 +2740,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
2742
2740
|
# @return [ReplicationProtectedItemCollection] which provide lazy access to
|
2743
2741
|
# pages of the response.
|
2744
2742
|
#
|
2745
|
-
def list_as_lazy(skip_token
|
2746
|
-
response = list_async(skip_token, filter, custom_headers).value!
|
2743
|
+
def list_as_lazy(skip_token:nil, filter:nil, custom_headers:nil)
|
2744
|
+
response = list_async(skip_token:skip_token, filter:filter, custom_headers:custom_headers).value!
|
2747
2745
|
unless response.nil?
|
2748
2746
|
page = response.body
|
2749
2747
|
page.next_method = Proc.new do |next_page_link|
|
2750
|
-
list_next_async(next_page_link, custom_headers)
|
2748
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
2751
2749
|
end
|
2752
2750
|
page
|
2753
2751
|
end
|