azure_mgmt_recovery_services_site_recovery 0.15.2 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/models/azure_fabric_creation_input.rb +2 -2
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/models/fabric_specific_creation_input.rb +1 -1
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/operations.rb +15 -13
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/recovery_points.rb +21 -18
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_alert_settings.rb +27 -25
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_events.rb +21 -18
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_fabrics.rb +91 -87
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_jobs.rb +61 -58
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_logical_networks.rb +21 -18
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_network_mappings.rb +66 -62
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_networks.rb +36 -31
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_policies.rb +51 -49
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protectable_items.rb +21 -18
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protected_items.rb +166 -168
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protection_container_mappings.rb +66 -62
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_protection_containers.rb +76 -73
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_recovery_plans.rb +111 -111
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_recovery_services_providers.rb +66 -58
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_storage_classification_mappings.rb +56 -51
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_storage_classifications.rb +36 -31
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_vault_health.rb +6 -5
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replicationv_centers.rb +66 -62
- data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/site_recovery_management_client.rb +4 -1
- data/lib/profiles/latest/modules/recoveryservicessiterecovery_profile_module.rb +1022 -1003
- data/lib/profiles/latest/recoveryservicessiterecovery_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/recoveryservicessiterecovery_module_definition.rb +0 -1
- data/lib/version.rb +1 -1
- metadata +3 -3
@@ -33,8 +33,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
33
33
|
#
|
34
34
|
# @return [StorageClassification] operation results.
|
35
35
|
#
|
36
|
-
def get(fabric_name, storage_classification_name, custom_headers
|
37
|
-
response = get_async(fabric_name, storage_classification_name, custom_headers).value!
|
36
|
+
def get(fabric_name, storage_classification_name, custom_headers:nil)
|
37
|
+
response = get_async(fabric_name, storage_classification_name, custom_headers:custom_headers).value!
|
38
38
|
response.body unless response.nil?
|
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 get_with_http_info(fabric_name, storage_classification_name, custom_headers
|
54
|
-
get_async(fabric_name, storage_classification_name, custom_headers).value!
|
53
|
+
def get_with_http_info(fabric_name, storage_classification_name, custom_headers:nil)
|
54
|
+
get_async(fabric_name, storage_classification_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 get_async(fabric_name, storage_classification_name, custom_headers
|
69
|
+
def get_async(fabric_name, storage_classification_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
|
@@ -131,8 +132,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
131
132
|
#
|
132
133
|
# @return [Array<StorageClassification>] operation results.
|
133
134
|
#
|
134
|
-
def list_by_replication_fabrics(fabric_name, custom_headers
|
135
|
-
first_page = list_by_replication_fabrics_as_lazy(fabric_name, custom_headers)
|
135
|
+
def list_by_replication_fabrics(fabric_name, custom_headers:nil)
|
136
|
+
first_page = list_by_replication_fabrics_as_lazy(fabric_name, custom_headers:custom_headers)
|
136
137
|
first_page.get_all_items
|
137
138
|
end
|
138
139
|
|
@@ -147,8 +148,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
147
148
|
#
|
148
149
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
149
150
|
#
|
150
|
-
def list_by_replication_fabrics_with_http_info(fabric_name, custom_headers
|
151
|
-
list_by_replication_fabrics_async(fabric_name, custom_headers).value!
|
151
|
+
def list_by_replication_fabrics_with_http_info(fabric_name, custom_headers:nil)
|
152
|
+
list_by_replication_fabrics_async(fabric_name, custom_headers:custom_headers).value!
|
152
153
|
end
|
153
154
|
|
154
155
|
#
|
@@ -162,7 +163,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
162
163
|
#
|
163
164
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
164
165
|
#
|
165
|
-
def list_by_replication_fabrics_async(fabric_name, custom_headers
|
166
|
+
def list_by_replication_fabrics_async(fabric_name, custom_headers:nil)
|
166
167
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
167
168
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
168
169
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -171,6 +172,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
171
172
|
|
172
173
|
|
173
174
|
request_headers = {}
|
175
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
174
176
|
|
175
177
|
# Set Headers
|
176
178
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -225,8 +227,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
225
227
|
#
|
226
228
|
# @return [Array<StorageClassification>] operation results.
|
227
229
|
#
|
228
|
-
def list(custom_headers
|
229
|
-
first_page = list_as_lazy(custom_headers)
|
230
|
+
def list(custom_headers:nil)
|
231
|
+
first_page = list_as_lazy(custom_headers:custom_headers)
|
230
232
|
first_page.get_all_items
|
231
233
|
end
|
232
234
|
|
@@ -240,8 +242,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
240
242
|
#
|
241
243
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
242
244
|
#
|
243
|
-
def list_with_http_info(custom_headers
|
244
|
-
list_async(custom_headers).value!
|
245
|
+
def list_with_http_info(custom_headers:nil)
|
246
|
+
list_async(custom_headers:custom_headers).value!
|
245
247
|
end
|
246
248
|
|
247
249
|
#
|
@@ -254,7 +256,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
254
256
|
#
|
255
257
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
256
258
|
#
|
257
|
-
def list_async(custom_headers
|
259
|
+
def list_async(custom_headers:nil)
|
258
260
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
259
261
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
260
262
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -262,6 +264,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
262
264
|
|
263
265
|
|
264
266
|
request_headers = {}
|
267
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
265
268
|
|
266
269
|
# Set Headers
|
267
270
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -318,8 +321,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
318
321
|
#
|
319
322
|
# @return [StorageClassificationCollection] operation results.
|
320
323
|
#
|
321
|
-
def list_by_replication_fabrics_next(next_page_link, custom_headers
|
322
|
-
response = list_by_replication_fabrics_next_async(next_page_link, custom_headers).value!
|
324
|
+
def list_by_replication_fabrics_next(next_page_link, custom_headers:nil)
|
325
|
+
response = list_by_replication_fabrics_next_async(next_page_link, custom_headers:custom_headers).value!
|
323
326
|
response.body unless response.nil?
|
324
327
|
end
|
325
328
|
|
@@ -335,8 +338,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
335
338
|
#
|
336
339
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
337
340
|
#
|
338
|
-
def list_by_replication_fabrics_next_with_http_info(next_page_link, custom_headers
|
339
|
-
list_by_replication_fabrics_next_async(next_page_link, custom_headers).value!
|
341
|
+
def list_by_replication_fabrics_next_with_http_info(next_page_link, custom_headers:nil)
|
342
|
+
list_by_replication_fabrics_next_async(next_page_link, custom_headers:custom_headers).value!
|
340
343
|
end
|
341
344
|
|
342
345
|
#
|
@@ -351,11 +354,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
351
354
|
#
|
352
355
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
353
356
|
#
|
354
|
-
def list_by_replication_fabrics_next_async(next_page_link, custom_headers
|
357
|
+
def list_by_replication_fabrics_next_async(next_page_link, custom_headers:nil)
|
355
358
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
356
359
|
|
357
360
|
|
358
361
|
request_headers = {}
|
362
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
359
363
|
|
360
364
|
# Set Headers
|
361
365
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -411,8 +415,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
411
415
|
#
|
412
416
|
# @return [StorageClassificationCollection] operation results.
|
413
417
|
#
|
414
|
-
def list_next(next_page_link, custom_headers
|
415
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
418
|
+
def list_next(next_page_link, custom_headers:nil)
|
419
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
416
420
|
response.body unless response.nil?
|
417
421
|
end
|
418
422
|
|
@@ -428,8 +432,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
428
432
|
#
|
429
433
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
430
434
|
#
|
431
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
432
|
-
list_next_async(next_page_link, custom_headers).value!
|
435
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
436
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
433
437
|
end
|
434
438
|
|
435
439
|
#
|
@@ -444,11 +448,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
444
448
|
#
|
445
449
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
446
450
|
#
|
447
|
-
def list_next_async(next_page_link, custom_headers
|
451
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
448
452
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
449
453
|
|
450
454
|
|
451
455
|
request_headers = {}
|
456
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
452
457
|
|
453
458
|
# Set Headers
|
454
459
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -504,12 +509,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
504
509
|
# @return [StorageClassificationCollection] which provide lazy access to pages
|
505
510
|
# of the response.
|
506
511
|
#
|
507
|
-
def list_by_replication_fabrics_as_lazy(fabric_name, custom_headers
|
508
|
-
response = list_by_replication_fabrics_async(fabric_name, custom_headers).value!
|
512
|
+
def list_by_replication_fabrics_as_lazy(fabric_name, custom_headers:nil)
|
513
|
+
response = list_by_replication_fabrics_async(fabric_name, custom_headers:custom_headers).value!
|
509
514
|
unless response.nil?
|
510
515
|
page = response.body
|
511
516
|
page.next_method = Proc.new do |next_page_link|
|
512
|
-
list_by_replication_fabrics_next_async(next_page_link, custom_headers)
|
517
|
+
list_by_replication_fabrics_next_async(next_page_link, custom_headers:custom_headers)
|
513
518
|
end
|
514
519
|
page
|
515
520
|
end
|
@@ -526,12 +531,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
526
531
|
# @return [StorageClassificationCollection] which provide lazy access to pages
|
527
532
|
# of the response.
|
528
533
|
#
|
529
|
-
def list_as_lazy(custom_headers
|
530
|
-
response = list_async(custom_headers).value!
|
534
|
+
def list_as_lazy(custom_headers:nil)
|
535
|
+
response = list_async(custom_headers:custom_headers).value!
|
531
536
|
unless response.nil?
|
532
537
|
page = response.body
|
533
538
|
page.next_method = Proc.new do |next_page_link|
|
534
|
-
list_next_async(next_page_link, custom_headers)
|
539
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
535
540
|
end
|
536
541
|
page
|
537
542
|
end
|
data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replication_vault_health.rb
CHANGED
@@ -31,8 +31,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
31
31
|
#
|
32
32
|
# @return [VaultHealthDetails] operation results.
|
33
33
|
#
|
34
|
-
def get(custom_headers
|
35
|
-
response = get_async(custom_headers).value!
|
34
|
+
def get(custom_headers:nil)
|
35
|
+
response = get_async(custom_headers:custom_headers).value!
|
36
36
|
response.body unless response.nil?
|
37
37
|
end
|
38
38
|
|
@@ -46,8 +46,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
46
46
|
#
|
47
47
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
48
48
|
#
|
49
|
-
def get_with_http_info(custom_headers
|
50
|
-
get_async(custom_headers).value!
|
49
|
+
def get_with_http_info(custom_headers:nil)
|
50
|
+
get_async(custom_headers:custom_headers).value!
|
51
51
|
end
|
52
52
|
|
53
53
|
#
|
@@ -60,7 +60,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
60
60
|
#
|
61
61
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
62
62
|
#
|
63
|
-
def get_async(custom_headers
|
63
|
+
def get_async(custom_headers:nil)
|
64
64
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
65
65
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
66
66
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -68,6 +68,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
68
68
|
|
69
69
|
|
70
70
|
request_headers = {}
|
71
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
71
72
|
|
72
73
|
# Set Headers
|
73
74
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
data/lib/2016-08-10/generated/azure_mgmt_recovery_services_site_recovery/replicationv_centers.rb
CHANGED
@@ -33,8 +33,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
33
33
|
#
|
34
34
|
# @return [VCenter] operation results.
|
35
35
|
#
|
36
|
-
def get(fabric_name, v_center_name, custom_headers
|
37
|
-
response = get_async(fabric_name, v_center_name, custom_headers).value!
|
36
|
+
def get(fabric_name, v_center_name, custom_headers:nil)
|
37
|
+
response = get_async(fabric_name, v_center_name, custom_headers:custom_headers).value!
|
38
38
|
response.body unless response.nil?
|
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 get_with_http_info(fabric_name, v_center_name, custom_headers
|
54
|
-
get_async(fabric_name, v_center_name, custom_headers).value!
|
53
|
+
def get_with_http_info(fabric_name, v_center_name, custom_headers:nil)
|
54
|
+
get_async(fabric_name, v_center_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 get_async(fabric_name, v_center_name, custom_headers
|
69
|
+
def get_async(fabric_name, v_center_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
|
@@ -134,8 +135,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
134
135
|
#
|
135
136
|
# @return [VCenter] operation results.
|
136
137
|
#
|
137
|
-
def create(fabric_name, v_center_name, add_vcenter_request, custom_headers
|
138
|
-
response = create_async(fabric_name, v_center_name, add_vcenter_request, custom_headers).value!
|
138
|
+
def create(fabric_name, v_center_name, add_vcenter_request, custom_headers:nil)
|
139
|
+
response = create_async(fabric_name, v_center_name, add_vcenter_request, custom_headers:custom_headers).value!
|
139
140
|
response.body unless response.nil?
|
140
141
|
end
|
141
142
|
|
@@ -150,9 +151,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
150
151
|
# @return [Concurrent::Promise] promise which provides async access to http
|
151
152
|
# response.
|
152
153
|
#
|
153
|
-
def create_async(fabric_name, v_center_name, add_vcenter_request, custom_headers
|
154
|
+
def create_async(fabric_name, v_center_name, add_vcenter_request, custom_headers:nil)
|
154
155
|
# Send request
|
155
|
-
promise = begin_create_async(fabric_name, v_center_name, add_vcenter_request, custom_headers)
|
156
|
+
promise = begin_create_async(fabric_name, v_center_name, add_vcenter_request, custom_headers:custom_headers)
|
156
157
|
|
157
158
|
promise = promise.then do |response|
|
158
159
|
# Defining deserialization method.
|
@@ -179,8 +180,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
179
180
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
180
181
|
# will be added to the HTTP request.
|
181
182
|
#
|
182
|
-
def delete(fabric_name, v_center_name, custom_headers
|
183
|
-
response = delete_async(fabric_name, v_center_name, custom_headers).value!
|
183
|
+
def delete(fabric_name, v_center_name, custom_headers:nil)
|
184
|
+
response = delete_async(fabric_name, v_center_name, custom_headers:custom_headers).value!
|
184
185
|
nil
|
185
186
|
end
|
186
187
|
|
@@ -193,9 +194,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
193
194
|
# @return [Concurrent::Promise] promise which provides async access to http
|
194
195
|
# response.
|
195
196
|
#
|
196
|
-
def delete_async(fabric_name, v_center_name, custom_headers
|
197
|
+
def delete_async(fabric_name, v_center_name, custom_headers:nil)
|
197
198
|
# Send request
|
198
|
-
promise = begin_delete_async(fabric_name, v_center_name, custom_headers)
|
199
|
+
promise = begin_delete_async(fabric_name, v_center_name, custom_headers:custom_headers)
|
199
200
|
|
200
201
|
promise = promise.then do |response|
|
201
202
|
# Defining deserialization method.
|
@@ -223,8 +224,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
223
224
|
#
|
224
225
|
# @return [VCenter] operation results.
|
225
226
|
#
|
226
|
-
def update(fabric_name, v_center_name, update_vcenter_request, custom_headers
|
227
|
-
response = update_async(fabric_name, v_center_name, update_vcenter_request, custom_headers).value!
|
227
|
+
def update(fabric_name, v_center_name, update_vcenter_request, custom_headers:nil)
|
228
|
+
response = update_async(fabric_name, v_center_name, update_vcenter_request, custom_headers:custom_headers).value!
|
228
229
|
response.body unless response.nil?
|
229
230
|
end
|
230
231
|
|
@@ -239,9 +240,9 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
239
240
|
# @return [Concurrent::Promise] promise which provides async access to http
|
240
241
|
# response.
|
241
242
|
#
|
242
|
-
def update_async(fabric_name, v_center_name, update_vcenter_request, custom_headers
|
243
|
+
def update_async(fabric_name, v_center_name, update_vcenter_request, custom_headers:nil)
|
243
244
|
# Send request
|
244
|
-
promise = begin_update_async(fabric_name, v_center_name, update_vcenter_request, custom_headers)
|
245
|
+
promise = begin_update_async(fabric_name, v_center_name, update_vcenter_request, custom_headers:custom_headers)
|
245
246
|
|
246
247
|
promise = promise.then do |response|
|
247
248
|
# Defining deserialization method.
|
@@ -268,8 +269,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
268
269
|
#
|
269
270
|
# @return [Array<VCenter>] operation results.
|
270
271
|
#
|
271
|
-
def list_by_replication_fabrics(fabric_name, custom_headers
|
272
|
-
first_page = list_by_replication_fabrics_as_lazy(fabric_name, custom_headers)
|
272
|
+
def list_by_replication_fabrics(fabric_name, custom_headers:nil)
|
273
|
+
first_page = list_by_replication_fabrics_as_lazy(fabric_name, custom_headers:custom_headers)
|
273
274
|
first_page.get_all_items
|
274
275
|
end
|
275
276
|
|
@@ -284,8 +285,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
284
285
|
#
|
285
286
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
286
287
|
#
|
287
|
-
def list_by_replication_fabrics_with_http_info(fabric_name, custom_headers
|
288
|
-
list_by_replication_fabrics_async(fabric_name, custom_headers).value!
|
288
|
+
def list_by_replication_fabrics_with_http_info(fabric_name, custom_headers:nil)
|
289
|
+
list_by_replication_fabrics_async(fabric_name, custom_headers:custom_headers).value!
|
289
290
|
end
|
290
291
|
|
291
292
|
#
|
@@ -299,7 +300,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
299
300
|
#
|
300
301
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
301
302
|
#
|
302
|
-
def list_by_replication_fabrics_async(fabric_name, custom_headers
|
303
|
+
def list_by_replication_fabrics_async(fabric_name, custom_headers:nil)
|
303
304
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
304
305
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
305
306
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -308,6 +309,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
308
309
|
|
309
310
|
|
310
311
|
request_headers = {}
|
312
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
311
313
|
|
312
314
|
# Set Headers
|
313
315
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -362,8 +364,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
362
364
|
#
|
363
365
|
# @return [Array<VCenter>] operation results.
|
364
366
|
#
|
365
|
-
def list(custom_headers
|
366
|
-
first_page = list_as_lazy(custom_headers)
|
367
|
+
def list(custom_headers:nil)
|
368
|
+
first_page = list_as_lazy(custom_headers:custom_headers)
|
367
369
|
first_page.get_all_items
|
368
370
|
end
|
369
371
|
|
@@ -377,8 +379,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
377
379
|
#
|
378
380
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
379
381
|
#
|
380
|
-
def list_with_http_info(custom_headers
|
381
|
-
list_async(custom_headers).value!
|
382
|
+
def list_with_http_info(custom_headers:nil)
|
383
|
+
list_async(custom_headers:custom_headers).value!
|
382
384
|
end
|
383
385
|
|
384
386
|
#
|
@@ -391,7 +393,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
391
393
|
#
|
392
394
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
393
395
|
#
|
394
|
-
def list_async(custom_headers
|
396
|
+
def list_async(custom_headers:nil)
|
395
397
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
396
398
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
397
399
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -399,6 +401,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
399
401
|
|
400
402
|
|
401
403
|
request_headers = {}
|
404
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
402
405
|
|
403
406
|
# Set Headers
|
404
407
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -457,8 +460,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
457
460
|
#
|
458
461
|
# @return [VCenter] operation results.
|
459
462
|
#
|
460
|
-
def begin_create(fabric_name, v_center_name, add_vcenter_request, custom_headers
|
461
|
-
response = begin_create_async(fabric_name, v_center_name, add_vcenter_request, custom_headers).value!
|
463
|
+
def begin_create(fabric_name, v_center_name, add_vcenter_request, custom_headers:nil)
|
464
|
+
response = begin_create_async(fabric_name, v_center_name, add_vcenter_request, custom_headers:custom_headers).value!
|
462
465
|
response.body unless response.nil?
|
463
466
|
end
|
464
467
|
|
@@ -476,8 +479,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
476
479
|
#
|
477
480
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
478
481
|
#
|
479
|
-
def begin_create_with_http_info(fabric_name, v_center_name, add_vcenter_request, custom_headers
|
480
|
-
begin_create_async(fabric_name, v_center_name, add_vcenter_request, custom_headers).value!
|
482
|
+
def begin_create_with_http_info(fabric_name, v_center_name, add_vcenter_request, custom_headers:nil)
|
483
|
+
begin_create_async(fabric_name, v_center_name, add_vcenter_request, custom_headers:custom_headers).value!
|
481
484
|
end
|
482
485
|
|
483
486
|
#
|
@@ -494,7 +497,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
494
497
|
#
|
495
498
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
496
499
|
#
|
497
|
-
def begin_create_async(fabric_name, v_center_name, add_vcenter_request, custom_headers
|
500
|
+
def begin_create_async(fabric_name, v_center_name, add_vcenter_request, custom_headers:nil)
|
498
501
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
499
502
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
500
503
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -505,13 +508,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
505
508
|
|
506
509
|
|
507
510
|
request_headers = {}
|
511
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
508
512
|
|
509
513
|
# Set Headers
|
510
514
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
511
515
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
512
516
|
|
513
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
514
|
-
|
515
517
|
# Serialize Request
|
516
518
|
request_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::Models::AddVCenterRequest.mapper()
|
517
519
|
request_content = @client.serialize(request_mapper, add_vcenter_request)
|
@@ -570,8 +572,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
570
572
|
# will be added to the HTTP request.
|
571
573
|
#
|
572
574
|
#
|
573
|
-
def begin_delete(fabric_name, v_center_name, custom_headers
|
574
|
-
response = begin_delete_async(fabric_name, v_center_name, custom_headers).value!
|
575
|
+
def begin_delete(fabric_name, v_center_name, custom_headers:nil)
|
576
|
+
response = begin_delete_async(fabric_name, v_center_name, custom_headers:custom_headers).value!
|
575
577
|
nil
|
576
578
|
end
|
577
579
|
|
@@ -588,8 +590,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
588
590
|
#
|
589
591
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
590
592
|
#
|
591
|
-
def begin_delete_with_http_info(fabric_name, v_center_name, custom_headers
|
592
|
-
begin_delete_async(fabric_name, v_center_name, custom_headers).value!
|
593
|
+
def begin_delete_with_http_info(fabric_name, v_center_name, custom_headers:nil)
|
594
|
+
begin_delete_async(fabric_name, v_center_name, custom_headers:custom_headers).value!
|
593
595
|
end
|
594
596
|
|
595
597
|
#
|
@@ -605,7 +607,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
605
607
|
#
|
606
608
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
607
609
|
#
|
608
|
-
def begin_delete_async(fabric_name, v_center_name, custom_headers
|
610
|
+
def begin_delete_async(fabric_name, v_center_name, custom_headers:nil)
|
609
611
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
610
612
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
611
613
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -615,6 +617,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
615
617
|
|
616
618
|
|
617
619
|
request_headers = {}
|
620
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
618
621
|
|
619
622
|
# Set Headers
|
620
623
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -663,8 +666,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
663
666
|
#
|
664
667
|
# @return [VCenter] operation results.
|
665
668
|
#
|
666
|
-
def begin_update(fabric_name, v_center_name, update_vcenter_request, custom_headers
|
667
|
-
response = begin_update_async(fabric_name, v_center_name, update_vcenter_request, custom_headers).value!
|
669
|
+
def begin_update(fabric_name, v_center_name, update_vcenter_request, custom_headers:nil)
|
670
|
+
response = begin_update_async(fabric_name, v_center_name, update_vcenter_request, custom_headers:custom_headers).value!
|
668
671
|
response.body unless response.nil?
|
669
672
|
end
|
670
673
|
|
@@ -682,8 +685,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
682
685
|
#
|
683
686
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
684
687
|
#
|
685
|
-
def begin_update_with_http_info(fabric_name, v_center_name, update_vcenter_request, custom_headers
|
686
|
-
begin_update_async(fabric_name, v_center_name, update_vcenter_request, custom_headers).value!
|
688
|
+
def begin_update_with_http_info(fabric_name, v_center_name, update_vcenter_request, custom_headers:nil)
|
689
|
+
begin_update_async(fabric_name, v_center_name, update_vcenter_request, custom_headers:custom_headers).value!
|
687
690
|
end
|
688
691
|
|
689
692
|
#
|
@@ -700,7 +703,7 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
700
703
|
#
|
701
704
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
702
705
|
#
|
703
|
-
def begin_update_async(fabric_name, v_center_name, update_vcenter_request, custom_headers
|
706
|
+
def begin_update_async(fabric_name, v_center_name, update_vcenter_request, custom_headers:nil)
|
704
707
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
705
708
|
fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
|
706
709
|
fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
|
@@ -711,13 +714,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
711
714
|
|
712
715
|
|
713
716
|
request_headers = {}
|
717
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
714
718
|
|
715
719
|
# Set Headers
|
716
720
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
717
721
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
718
722
|
|
719
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
720
|
-
|
721
723
|
# Serialize Request
|
722
724
|
request_mapper = Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10::Models::UpdateVCenterRequest.mapper()
|
723
725
|
request_content = @client.serialize(request_mapper, update_vcenter_request)
|
@@ -776,8 +778,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
776
778
|
#
|
777
779
|
# @return [VCenterCollection] operation results.
|
778
780
|
#
|
779
|
-
def list_by_replication_fabrics_next(next_page_link, custom_headers
|
780
|
-
response = list_by_replication_fabrics_next_async(next_page_link, custom_headers).value!
|
781
|
+
def list_by_replication_fabrics_next(next_page_link, custom_headers:nil)
|
782
|
+
response = list_by_replication_fabrics_next_async(next_page_link, custom_headers:custom_headers).value!
|
781
783
|
response.body unless response.nil?
|
782
784
|
end
|
783
785
|
|
@@ -793,8 +795,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
793
795
|
#
|
794
796
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
795
797
|
#
|
796
|
-
def list_by_replication_fabrics_next_with_http_info(next_page_link, custom_headers
|
797
|
-
list_by_replication_fabrics_next_async(next_page_link, custom_headers).value!
|
798
|
+
def list_by_replication_fabrics_next_with_http_info(next_page_link, custom_headers:nil)
|
799
|
+
list_by_replication_fabrics_next_async(next_page_link, custom_headers:custom_headers).value!
|
798
800
|
end
|
799
801
|
|
800
802
|
#
|
@@ -809,11 +811,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
809
811
|
#
|
810
812
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
811
813
|
#
|
812
|
-
def list_by_replication_fabrics_next_async(next_page_link, custom_headers
|
814
|
+
def list_by_replication_fabrics_next_async(next_page_link, custom_headers:nil)
|
813
815
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
814
816
|
|
815
817
|
|
816
818
|
request_headers = {}
|
819
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
817
820
|
|
818
821
|
# Set Headers
|
819
822
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -869,8 +872,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
869
872
|
#
|
870
873
|
# @return [VCenterCollection] operation results.
|
871
874
|
#
|
872
|
-
def list_next(next_page_link, custom_headers
|
873
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
875
|
+
def list_next(next_page_link, custom_headers:nil)
|
876
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
874
877
|
response.body unless response.nil?
|
875
878
|
end
|
876
879
|
|
@@ -886,8 +889,8 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
886
889
|
#
|
887
890
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
888
891
|
#
|
889
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
890
|
-
list_next_async(next_page_link, custom_headers).value!
|
892
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
893
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
891
894
|
end
|
892
895
|
|
893
896
|
#
|
@@ -902,11 +905,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
902
905
|
#
|
903
906
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
904
907
|
#
|
905
|
-
def list_next_async(next_page_link, custom_headers
|
908
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
906
909
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
907
910
|
|
908
911
|
|
909
912
|
request_headers = {}
|
913
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
910
914
|
|
911
915
|
# Set Headers
|
912
916
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -962,12 +966,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
962
966
|
# @return [VCenterCollection] which provide lazy access to pages of the
|
963
967
|
# response.
|
964
968
|
#
|
965
|
-
def list_by_replication_fabrics_as_lazy(fabric_name, custom_headers
|
966
|
-
response = list_by_replication_fabrics_async(fabric_name, custom_headers).value!
|
969
|
+
def list_by_replication_fabrics_as_lazy(fabric_name, custom_headers:nil)
|
970
|
+
response = list_by_replication_fabrics_async(fabric_name, custom_headers:custom_headers).value!
|
967
971
|
unless response.nil?
|
968
972
|
page = response.body
|
969
973
|
page.next_method = Proc.new do |next_page_link|
|
970
|
-
list_by_replication_fabrics_next_async(next_page_link, custom_headers)
|
974
|
+
list_by_replication_fabrics_next_async(next_page_link, custom_headers:custom_headers)
|
971
975
|
end
|
972
976
|
page
|
973
977
|
end
|
@@ -984,12 +988,12 @@ module Azure::RecoveryServicesSiteRecovery::Mgmt::V2016_08_10
|
|
984
988
|
# @return [VCenterCollection] which provide lazy access to pages of the
|
985
989
|
# response.
|
986
990
|
#
|
987
|
-
def list_as_lazy(custom_headers
|
988
|
-
response = list_async(custom_headers).value!
|
991
|
+
def list_as_lazy(custom_headers:nil)
|
992
|
+
response = list_async(custom_headers:custom_headers).value!
|
989
993
|
unless response.nil?
|
990
994
|
page = response.body
|
991
995
|
page.next_method = Proc.new do |next_page_link|
|
992
|
-
list_next_async(next_page_link, custom_headers)
|
996
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
993
997
|
end
|
994
998
|
page
|
995
999
|
end
|