azure_mgmt_redis 0.15.2 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-08-01/generated/azure_mgmt_redis/redis.rb +66 -62
- data/lib/2015-08-01/generated/azure_mgmt_redis/redis_management_client.rb +4 -1
- data/lib/2016-04-01/generated/azure_mgmt_redis/firewall_rules.rb +15 -13
- data/lib/2016-04-01/generated/azure_mgmt_redis/models/redis_update_parameters.rb +1 -1
- data/lib/2016-04-01/generated/azure_mgmt_redis/operations.rb +15 -13
- data/lib/2016-04-01/generated/azure_mgmt_redis/patch_schedules.rb +18 -17
- data/lib/2016-04-01/generated/azure_mgmt_redis/redis.rb +100 -99
- data/lib/2016-04-01/generated/azure_mgmt_redis/redis_firewall_rule_operations.rb +18 -17
- data/lib/2016-04-01/generated/azure_mgmt_redis/redis_management_client.rb +4 -1
- data/lib/2017-02-01/generated/azure_mgmt_redis/firewall_rules.rb +33 -30
- data/lib/2017-02-01/generated/azure_mgmt_redis/models/redis_update_parameters.rb +1 -1
- data/lib/2017-02-01/generated/azure_mgmt_redis/operations.rb +15 -13
- data/lib/2017-02-01/generated/azure_mgmt_redis/patch_schedules.rb +18 -17
- data/lib/2017-02-01/generated/azure_mgmt_redis/redis.rb +100 -99
- data/lib/2017-02-01/generated/azure_mgmt_redis/redis_linked_server_operations.rb +28 -26
- data/lib/2017-02-01/generated/azure_mgmt_redis/redis_management_client.rb +4 -1
- data/lib/2017-10-01/generated/azure_mgmt_redis.rb +64 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/firewall_rules.rb +528 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/linked_server.rb +594 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/day_of_week.rb +23 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/export_rdbparameters.rb +68 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/import_rdbparameters.rb +65 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/operation.rb +58 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/operation_display.rb +80 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/operation_list_result.rb +102 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/proxy_resource.rb +63 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/reboot_type.rb +17 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_access_keys.rb +61 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_create_parameters.rb +192 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_firewall_rule.rb +85 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_firewall_rule_create_parameters.rb +57 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_firewall_rule_list_result.rb +100 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_force_reboot_response.rb +47 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_key_type.rb +16 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_linked_server.rb +47 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_linked_server_create_parameters.rb +70 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_linked_server_with_properties.rb +110 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_linked_server_with_properties_list.rb +100 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_list_result.rb +99 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_patch_schedule.rb +83 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_reboot_parameters.rb +60 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_regenerate_key_parameters.rb +48 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_resource.rb +309 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_update_parameters.rb +130 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/replication_role.rb +16 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/resource.rb +71 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/schedule_entry.rb +72 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/sku.rb +73 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/sku_family.rb +16 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/sku_name.rb +17 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/models/tracked_resource.rb +92 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/module_definition.rb +9 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/operations.rb +222 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/patch_schedules.rb +317 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/redis.rb +1482 -0
- data/lib/2017-10-01/generated/azure_mgmt_redis/redis_management_client.rb +148 -0
- data/lib/azure_mgmt_redis.rb +1 -0
- data/lib/profiles/latest/modules/redis_profile_module.rb +166 -147
- data/lib/profiles/latest/redis_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/redis_module_definition.rb +0 -1
- data/lib/version.rb +1 -1
- metadata +43 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 886de64a6f514ac83bc5cf40b97cc2ff1f68cf3e
|
4
|
+
data.tar.gz: 71f2b13985ff2109e365dc29f34071a72df3a19e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d3c0f384a6f3a6a62cec89241807582ae4e3fa32de9410c149de07f70a7d1866eeea925a5c048776ff0070917d40b9281c30a717a2d2c2d9467caa3b99979e5
|
7
|
+
data.tar.gz: 2e7d90c048901425b9671bb05d71f3c7fc6c357f88edc1e1717a5fad249cb8f0cd8792b2af7043ff5638191df5df8ffa1eb18c0616f9cec57d7b0fe04e370791
|
@@ -34,8 +34,8 @@ module Azure::Redis::Mgmt::V2015_08_01
|
|
34
34
|
#
|
35
35
|
# @return [RedisResourceWithAccessKey] operation results.
|
36
36
|
#
|
37
|
-
def create_or_update(resource_group_name, name, parameters, custom_headers
|
38
|
-
response = create_or_update_async(resource_group_name, name, parameters, custom_headers).value!
|
37
|
+
def create_or_update(resource_group_name, name, parameters, custom_headers:nil)
|
38
|
+
response = create_or_update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value!
|
39
39
|
response.body unless response.nil?
|
40
40
|
end
|
41
41
|
|
@@ -52,8 +52,8 @@ module Azure::Redis::Mgmt::V2015_08_01
|
|
52
52
|
#
|
53
53
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
54
54
|
#
|
55
|
-
def create_or_update_with_http_info(resource_group_name, name, parameters, custom_headers
|
56
|
-
create_or_update_async(resource_group_name, name, parameters, custom_headers).value!
|
55
|
+
def create_or_update_with_http_info(resource_group_name, name, parameters, custom_headers:nil)
|
56
|
+
create_or_update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value!
|
57
57
|
end
|
58
58
|
|
59
59
|
#
|
@@ -69,7 +69,7 @@ module Azure::Redis::Mgmt::V2015_08_01
|
|
69
69
|
#
|
70
70
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
71
71
|
#
|
72
|
-
def create_or_update_async(resource_group_name, name, parameters, custom_headers
|
72
|
+
def create_or_update_async(resource_group_name, name, parameters, custom_headers:nil)
|
73
73
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
74
74
|
fail ArgumentError, 'name is nil' if name.nil?
|
75
75
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
@@ -78,13 +78,12 @@ module Azure::Redis::Mgmt::V2015_08_01
|
|
78
78
|
|
79
79
|
|
80
80
|
request_headers = {}
|
81
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
81
82
|
|
82
83
|
# Set Headers
|
83
84
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
84
85
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
85
86
|
|
86
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
87
|
-
|
88
87
|
# Serialize Request
|
89
88
|
request_mapper = Azure::Redis::Mgmt::V2015_08_01::Models::RedisCreateOrUpdateParameters.mapper()
|
90
89
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -150,8 +149,8 @@ module Azure::Redis::Mgmt::V2015_08_01
|
|
150
149
|
# will be added to the HTTP request.
|
151
150
|
#
|
152
151
|
#
|
153
|
-
def delete(resource_group_name, name, custom_headers
|
154
|
-
response = delete_async(resource_group_name, name, custom_headers).value!
|
152
|
+
def delete(resource_group_name, name, custom_headers:nil)
|
153
|
+
response = delete_async(resource_group_name, name, custom_headers:custom_headers).value!
|
155
154
|
nil
|
156
155
|
end
|
157
156
|
|
@@ -165,8 +164,8 @@ module Azure::Redis::Mgmt::V2015_08_01
|
|
165
164
|
#
|
166
165
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
167
166
|
#
|
168
|
-
def delete_with_http_info(resource_group_name, name, custom_headers
|
169
|
-
delete_async(resource_group_name, name, custom_headers).value!
|
167
|
+
def delete_with_http_info(resource_group_name, name, custom_headers:nil)
|
168
|
+
delete_async(resource_group_name, name, custom_headers:custom_headers).value!
|
170
169
|
end
|
171
170
|
|
172
171
|
#
|
@@ -179,7 +178,7 @@ module Azure::Redis::Mgmt::V2015_08_01
|
|
179
178
|
#
|
180
179
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
181
180
|
#
|
182
|
-
def delete_async(resource_group_name, name, custom_headers
|
181
|
+
def delete_async(resource_group_name, name, custom_headers:nil)
|
183
182
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
184
183
|
fail ArgumentError, 'name is nil' if name.nil?
|
185
184
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -187,6 +186,7 @@ module Azure::Redis::Mgmt::V2015_08_01
|
|
187
186
|
|
188
187
|
|
189
188
|
request_headers = {}
|
189
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
190
190
|
|
191
191
|
# Set Headers
|
192
192
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -231,8 +231,8 @@ module Azure::Redis::Mgmt::V2015_08_01
|
|
231
231
|
#
|
232
232
|
# @return [RedisResource] operation results.
|
233
233
|
#
|
234
|
-
def get(resource_group_name, name, custom_headers
|
235
|
-
response = get_async(resource_group_name, name, custom_headers).value!
|
234
|
+
def get(resource_group_name, name, custom_headers:nil)
|
235
|
+
response = get_async(resource_group_name, name, custom_headers:custom_headers).value!
|
236
236
|
response.body unless response.nil?
|
237
237
|
end
|
238
238
|
|
@@ -246,8 +246,8 @@ module Azure::Redis::Mgmt::V2015_08_01
|
|
246
246
|
#
|
247
247
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
248
248
|
#
|
249
|
-
def get_with_http_info(resource_group_name, name, custom_headers
|
250
|
-
get_async(resource_group_name, name, custom_headers).value!
|
249
|
+
def get_with_http_info(resource_group_name, name, custom_headers:nil)
|
250
|
+
get_async(resource_group_name, name, custom_headers:custom_headers).value!
|
251
251
|
end
|
252
252
|
|
253
253
|
#
|
@@ -260,7 +260,7 @@ module Azure::Redis::Mgmt::V2015_08_01
|
|
260
260
|
#
|
261
261
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
262
262
|
#
|
263
|
-
def get_async(resource_group_name, name, custom_headers
|
263
|
+
def get_async(resource_group_name, name, custom_headers:nil)
|
264
264
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
265
265
|
fail ArgumentError, 'name is nil' if name.nil?
|
266
266
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -268,6 +268,7 @@ module Azure::Redis::Mgmt::V2015_08_01
|
|
268
268
|
|
269
269
|
|
270
270
|
request_headers = {}
|
271
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
271
272
|
|
272
273
|
# Set Headers
|
273
274
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -321,8 +322,8 @@ module Azure::Redis::Mgmt::V2015_08_01
|
|
321
322
|
#
|
322
323
|
# @return [Array<RedisResource>] operation results.
|
323
324
|
#
|
324
|
-
def list_by_resource_group(resource_group_name, custom_headers
|
325
|
-
first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers)
|
325
|
+
def list_by_resource_group(resource_group_name, custom_headers:nil)
|
326
|
+
first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers)
|
326
327
|
first_page.get_all_items
|
327
328
|
end
|
328
329
|
|
@@ -335,8 +336,8 @@ module Azure::Redis::Mgmt::V2015_08_01
|
|
335
336
|
#
|
336
337
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
337
338
|
#
|
338
|
-
def list_by_resource_group_with_http_info(resource_group_name, custom_headers
|
339
|
-
list_by_resource_group_async(resource_group_name, custom_headers).value!
|
339
|
+
def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
|
340
|
+
list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
340
341
|
end
|
341
342
|
|
342
343
|
#
|
@@ -348,13 +349,14 @@ module Azure::Redis::Mgmt::V2015_08_01
|
|
348
349
|
#
|
349
350
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
350
351
|
#
|
351
|
-
def list_by_resource_group_async(resource_group_name, custom_headers
|
352
|
+
def list_by_resource_group_async(resource_group_name, custom_headers:nil)
|
352
353
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
353
354
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
354
355
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
355
356
|
|
356
357
|
|
357
358
|
request_headers = {}
|
359
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
358
360
|
|
359
361
|
# Set Headers
|
360
362
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -407,8 +409,8 @@ module Azure::Redis::Mgmt::V2015_08_01
|
|
407
409
|
#
|
408
410
|
# @return [Array<RedisResource>] operation results.
|
409
411
|
#
|
410
|
-
def list(custom_headers
|
411
|
-
first_page = list_as_lazy(custom_headers)
|
412
|
+
def list(custom_headers:nil)
|
413
|
+
first_page = list_as_lazy(custom_headers:custom_headers)
|
412
414
|
first_page.get_all_items
|
413
415
|
end
|
414
416
|
|
@@ -420,8 +422,8 @@ module Azure::Redis::Mgmt::V2015_08_01
|
|
420
422
|
#
|
421
423
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
422
424
|
#
|
423
|
-
def list_with_http_info(custom_headers
|
424
|
-
list_async(custom_headers).value!
|
425
|
+
def list_with_http_info(custom_headers:nil)
|
426
|
+
list_async(custom_headers:custom_headers).value!
|
425
427
|
end
|
426
428
|
|
427
429
|
#
|
@@ -432,12 +434,13 @@ module Azure::Redis::Mgmt::V2015_08_01
|
|
432
434
|
#
|
433
435
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
434
436
|
#
|
435
|
-
def list_async(custom_headers
|
437
|
+
def list_async(custom_headers:nil)
|
436
438
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
437
439
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
438
440
|
|
439
441
|
|
440
442
|
request_headers = {}
|
443
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
441
444
|
|
442
445
|
# Set Headers
|
443
446
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -493,8 +496,8 @@ module Azure::Redis::Mgmt::V2015_08_01
|
|
493
496
|
#
|
494
497
|
# @return [RedisListKeysResult] operation results.
|
495
498
|
#
|
496
|
-
def list_keys(resource_group_name, name, custom_headers
|
497
|
-
response = list_keys_async(resource_group_name, name, custom_headers).value!
|
499
|
+
def list_keys(resource_group_name, name, custom_headers:nil)
|
500
|
+
response = list_keys_async(resource_group_name, name, custom_headers:custom_headers).value!
|
498
501
|
response.body unless response.nil?
|
499
502
|
end
|
500
503
|
|
@@ -509,8 +512,8 @@ module Azure::Redis::Mgmt::V2015_08_01
|
|
509
512
|
#
|
510
513
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
511
514
|
#
|
512
|
-
def list_keys_with_http_info(resource_group_name, name, custom_headers
|
513
|
-
list_keys_async(resource_group_name, name, custom_headers).value!
|
515
|
+
def list_keys_with_http_info(resource_group_name, name, custom_headers:nil)
|
516
|
+
list_keys_async(resource_group_name, name, custom_headers:custom_headers).value!
|
514
517
|
end
|
515
518
|
|
516
519
|
#
|
@@ -524,7 +527,7 @@ module Azure::Redis::Mgmt::V2015_08_01
|
|
524
527
|
#
|
525
528
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
526
529
|
#
|
527
|
-
def list_keys_async(resource_group_name, name, custom_headers
|
530
|
+
def list_keys_async(resource_group_name, name, custom_headers:nil)
|
528
531
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
529
532
|
fail ArgumentError, 'name is nil' if name.nil?
|
530
533
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -532,6 +535,7 @@ module Azure::Redis::Mgmt::V2015_08_01
|
|
532
535
|
|
533
536
|
|
534
537
|
request_headers = {}
|
538
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
535
539
|
|
536
540
|
# Set Headers
|
537
541
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -589,8 +593,8 @@ module Azure::Redis::Mgmt::V2015_08_01
|
|
589
593
|
#
|
590
594
|
# @return [RedisListKeysResult] operation results.
|
591
595
|
#
|
592
|
-
def regenerate_key(resource_group_name, name, parameters, custom_headers
|
593
|
-
response = regenerate_key_async(resource_group_name, name, parameters, custom_headers).value!
|
596
|
+
def regenerate_key(resource_group_name, name, parameters, custom_headers:nil)
|
597
|
+
response = regenerate_key_async(resource_group_name, name, parameters, custom_headers:custom_headers).value!
|
594
598
|
response.body unless response.nil?
|
595
599
|
end
|
596
600
|
|
@@ -607,8 +611,8 @@ module Azure::Redis::Mgmt::V2015_08_01
|
|
607
611
|
#
|
608
612
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
609
613
|
#
|
610
|
-
def regenerate_key_with_http_info(resource_group_name, name, parameters, custom_headers
|
611
|
-
regenerate_key_async(resource_group_name, name, parameters, custom_headers).value!
|
614
|
+
def regenerate_key_with_http_info(resource_group_name, name, parameters, custom_headers:nil)
|
615
|
+
regenerate_key_async(resource_group_name, name, parameters, custom_headers:custom_headers).value!
|
612
616
|
end
|
613
617
|
|
614
618
|
#
|
@@ -624,7 +628,7 @@ module Azure::Redis::Mgmt::V2015_08_01
|
|
624
628
|
#
|
625
629
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
626
630
|
#
|
627
|
-
def regenerate_key_async(resource_group_name, name, parameters, custom_headers
|
631
|
+
def regenerate_key_async(resource_group_name, name, parameters, custom_headers:nil)
|
628
632
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
629
633
|
fail ArgumentError, 'name is nil' if name.nil?
|
630
634
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
@@ -633,13 +637,12 @@ module Azure::Redis::Mgmt::V2015_08_01
|
|
633
637
|
|
634
638
|
|
635
639
|
request_headers = {}
|
640
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
636
641
|
|
637
642
|
# Set Headers
|
638
643
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
639
644
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
640
645
|
|
641
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
642
|
-
|
643
646
|
# Serialize Request
|
644
647
|
request_mapper = Azure::Redis::Mgmt::V2015_08_01::Models::RedisRegenerateKeyParameters.mapper()
|
645
648
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -698,8 +701,8 @@ module Azure::Redis::Mgmt::V2015_08_01
|
|
698
701
|
# will be added to the HTTP request.
|
699
702
|
#
|
700
703
|
#
|
701
|
-
def force_reboot(resource_group_name, name, parameters, custom_headers
|
702
|
-
response = force_reboot_async(resource_group_name, name, parameters, custom_headers).value!
|
704
|
+
def force_reboot(resource_group_name, name, parameters, custom_headers:nil)
|
705
|
+
response = force_reboot_async(resource_group_name, name, parameters, custom_headers:custom_headers).value!
|
703
706
|
nil
|
704
707
|
end
|
705
708
|
|
@@ -716,8 +719,8 @@ module Azure::Redis::Mgmt::V2015_08_01
|
|
716
719
|
#
|
717
720
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
718
721
|
#
|
719
|
-
def force_reboot_with_http_info(resource_group_name, name, parameters, custom_headers
|
720
|
-
force_reboot_async(resource_group_name, name, parameters, custom_headers).value!
|
722
|
+
def force_reboot_with_http_info(resource_group_name, name, parameters, custom_headers:nil)
|
723
|
+
force_reboot_async(resource_group_name, name, parameters, custom_headers:custom_headers).value!
|
721
724
|
end
|
722
725
|
|
723
726
|
#
|
@@ -733,7 +736,7 @@ module Azure::Redis::Mgmt::V2015_08_01
|
|
733
736
|
#
|
734
737
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
735
738
|
#
|
736
|
-
def force_reboot_async(resource_group_name, name, parameters, custom_headers
|
739
|
+
def force_reboot_async(resource_group_name, name, parameters, custom_headers:nil)
|
737
740
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
738
741
|
fail ArgumentError, 'name is nil' if name.nil?
|
739
742
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
@@ -742,13 +745,12 @@ module Azure::Redis::Mgmt::V2015_08_01
|
|
742
745
|
|
743
746
|
|
744
747
|
request_headers = {}
|
748
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
745
749
|
|
746
750
|
# Set Headers
|
747
751
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
748
752
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
749
753
|
|
750
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
751
|
-
|
752
754
|
# Serialize Request
|
753
755
|
request_mapper = Azure::Redis::Mgmt::V2015_08_01::Models::RedisRebootParameters.mapper()
|
754
756
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -795,8 +797,8 @@ module Azure::Redis::Mgmt::V2015_08_01
|
|
795
797
|
#
|
796
798
|
# @return [RedisListResult] operation results.
|
797
799
|
#
|
798
|
-
def list_by_resource_group_next(next_page_link, custom_headers
|
799
|
-
response = list_by_resource_group_next_async(next_page_link, custom_headers).value!
|
800
|
+
def list_by_resource_group_next(next_page_link, custom_headers:nil)
|
801
|
+
response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
|
800
802
|
response.body unless response.nil?
|
801
803
|
end
|
802
804
|
|
@@ -810,8 +812,8 @@ module Azure::Redis::Mgmt::V2015_08_01
|
|
810
812
|
#
|
811
813
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
812
814
|
#
|
813
|
-
def list_by_resource_group_next_with_http_info(next_page_link, custom_headers
|
814
|
-
list_by_resource_group_next_async(next_page_link, custom_headers).value!
|
815
|
+
def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
|
816
|
+
list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
|
815
817
|
end
|
816
818
|
|
817
819
|
#
|
@@ -824,11 +826,12 @@ module Azure::Redis::Mgmt::V2015_08_01
|
|
824
826
|
#
|
825
827
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
826
828
|
#
|
827
|
-
def list_by_resource_group_next_async(next_page_link, custom_headers
|
829
|
+
def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
|
828
830
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
829
831
|
|
830
832
|
|
831
833
|
request_headers = {}
|
834
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
832
835
|
|
833
836
|
# Set Headers
|
834
837
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -882,8 +885,8 @@ module Azure::Redis::Mgmt::V2015_08_01
|
|
882
885
|
#
|
883
886
|
# @return [RedisListResult] operation results.
|
884
887
|
#
|
885
|
-
def list_next(next_page_link, custom_headers
|
886
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
888
|
+
def list_next(next_page_link, custom_headers:nil)
|
889
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
887
890
|
response.body unless response.nil?
|
888
891
|
end
|
889
892
|
|
@@ -897,8 +900,8 @@ module Azure::Redis::Mgmt::V2015_08_01
|
|
897
900
|
#
|
898
901
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
899
902
|
#
|
900
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
901
|
-
list_next_async(next_page_link, custom_headers).value!
|
903
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
904
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
902
905
|
end
|
903
906
|
|
904
907
|
#
|
@@ -911,11 +914,12 @@ module Azure::Redis::Mgmt::V2015_08_01
|
|
911
914
|
#
|
912
915
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
913
916
|
#
|
914
|
-
def list_next_async(next_page_link, custom_headers
|
917
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
915
918
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
916
919
|
|
917
920
|
|
918
921
|
request_headers = {}
|
922
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
919
923
|
|
920
924
|
# Set Headers
|
921
925
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -968,12 +972,12 @@ module Azure::Redis::Mgmt::V2015_08_01
|
|
968
972
|
#
|
969
973
|
# @return [RedisListResult] which provide lazy access to pages of the response.
|
970
974
|
#
|
971
|
-
def list_by_resource_group_as_lazy(resource_group_name, custom_headers
|
972
|
-
response = list_by_resource_group_async(resource_group_name, custom_headers).value!
|
975
|
+
def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil)
|
976
|
+
response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
973
977
|
unless response.nil?
|
974
978
|
page = response.body
|
975
979
|
page.next_method = Proc.new do |next_page_link|
|
976
|
-
list_by_resource_group_next_async(next_page_link, custom_headers)
|
980
|
+
list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
|
977
981
|
end
|
978
982
|
page
|
979
983
|
end
|
@@ -987,12 +991,12 @@ module Azure::Redis::Mgmt::V2015_08_01
|
|
987
991
|
#
|
988
992
|
# @return [RedisListResult] which provide lazy access to pages of the response.
|
989
993
|
#
|
990
|
-
def list_as_lazy(custom_headers
|
991
|
-
response = list_async(custom_headers).value!
|
994
|
+
def list_as_lazy(custom_headers:nil)
|
995
|
+
response = list_async(custom_headers:custom_headers).value!
|
992
996
|
unless response.nil?
|
993
997
|
page = response.body
|
994
998
|
page.next_method = Proc.new do |next_page_link|
|
995
|
-
list_next_async(next_page_link, custom_headers)
|
999
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
996
1000
|
end
|
997
1001
|
page
|
998
1002
|
end
|
@@ -106,6 +106,9 @@ module Azure::Redis::Mgmt::V2015_08_01
|
|
106
106
|
fail ArgumentError, 'path is nil' if path.nil?
|
107
107
|
|
108
108
|
request_url = options[:base_url] || @base_url
|
109
|
+
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
110
|
+
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
111
|
+
end
|
109
112
|
|
110
113
|
request_headers = @request_headers
|
111
114
|
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
@@ -122,7 +125,7 @@ module Azure::Redis::Mgmt::V2015_08_01
|
|
122
125
|
#
|
123
126
|
def add_telemetry
|
124
127
|
sdk_information = 'azure_mgmt_redis'
|
125
|
-
sdk_information = "#{sdk_information}/0.
|
128
|
+
sdk_information = "#{sdk_information}/0.16.0"
|
126
129
|
add_user_agent_information(sdk_information)
|
127
130
|
end
|
128
131
|
end
|
@@ -31,8 +31,8 @@ module Azure::Redis::Mgmt::V2016_04_01
|
|
31
31
|
#
|
32
32
|
# @return [Array<RedisFirewallRule>] operation results.
|
33
33
|
#
|
34
|
-
def list(resource_group_name, cache_name, custom_headers
|
35
|
-
first_page = list_as_lazy(resource_group_name, cache_name, custom_headers)
|
34
|
+
def list(resource_group_name, cache_name, custom_headers:nil)
|
35
|
+
first_page = list_as_lazy(resource_group_name, cache_name, custom_headers:custom_headers)
|
36
36
|
first_page.get_all_items
|
37
37
|
end
|
38
38
|
|
@@ -46,8 +46,8 @@ module Azure::Redis::Mgmt::V2016_04_01
|
|
46
46
|
#
|
47
47
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
48
48
|
#
|
49
|
-
def list_with_http_info(resource_group_name, cache_name, custom_headers
|
50
|
-
list_async(resource_group_name, cache_name, custom_headers).value!
|
49
|
+
def list_with_http_info(resource_group_name, cache_name, custom_headers:nil)
|
50
|
+
list_async(resource_group_name, cache_name, custom_headers:custom_headers).value!
|
51
51
|
end
|
52
52
|
|
53
53
|
#
|
@@ -60,7 +60,7 @@ module Azure::Redis::Mgmt::V2016_04_01
|
|
60
60
|
#
|
61
61
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
62
62
|
#
|
63
|
-
def list_async(resource_group_name, cache_name, custom_headers
|
63
|
+
def list_async(resource_group_name, cache_name, custom_headers:nil)
|
64
64
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
65
65
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
66
66
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
@@ -68,6 +68,7 @@ module Azure::Redis::Mgmt::V2016_04_01
|
|
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
|
@@ -122,8 +123,8 @@ module Azure::Redis::Mgmt::V2016_04_01
|
|
122
123
|
#
|
123
124
|
# @return [RedisFirewallRuleListResult] operation results.
|
124
125
|
#
|
125
|
-
def list_next(next_page_link, custom_headers
|
126
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
126
|
+
def list_next(next_page_link, custom_headers:nil)
|
127
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
127
128
|
response.body unless response.nil?
|
128
129
|
end
|
129
130
|
|
@@ -137,8 +138,8 @@ module Azure::Redis::Mgmt::V2016_04_01
|
|
137
138
|
#
|
138
139
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
139
140
|
#
|
140
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
141
|
-
list_next_async(next_page_link, custom_headers).value!
|
141
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
142
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
142
143
|
end
|
143
144
|
|
144
145
|
#
|
@@ -151,11 +152,12 @@ module Azure::Redis::Mgmt::V2016_04_01
|
|
151
152
|
#
|
152
153
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
153
154
|
#
|
154
|
-
def list_next_async(next_page_link, custom_headers
|
155
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
155
156
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
156
157
|
|
157
158
|
|
158
159
|
request_headers = {}
|
160
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
159
161
|
|
160
162
|
# Set Headers
|
161
163
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -210,12 +212,12 @@ module Azure::Redis::Mgmt::V2016_04_01
|
|
210
212
|
# @return [RedisFirewallRuleListResult] which provide lazy access to pages of
|
211
213
|
# the response.
|
212
214
|
#
|
213
|
-
def list_as_lazy(resource_group_name, cache_name, custom_headers
|
214
|
-
response = list_async(resource_group_name, cache_name, custom_headers).value!
|
215
|
+
def list_as_lazy(resource_group_name, cache_name, custom_headers:nil)
|
216
|
+
response = list_async(resource_group_name, cache_name, custom_headers:custom_headers).value!
|
215
217
|
unless response.nil?
|
216
218
|
page = response.body
|
217
219
|
page.next_method = Proc.new do |next_page_link|
|
218
|
-
list_next_async(next_page_link, custom_headers)
|
220
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
219
221
|
end
|
220
222
|
page
|
221
223
|
end
|