azure_mgmt_redis 0.14.0 → 0.15.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.rb +43 -0
- data/lib/{generated → 2015-08-01/generated}/azure_mgmt_redis/models/reboot_type.rb +1 -1
- data/lib/2015-08-01/generated/azure_mgmt_redis/models/redis_access_keys.rb +56 -0
- data/lib/2015-08-01/generated/azure_mgmt_redis/models/redis_create_or_update_parameters.rb +194 -0
- data/lib/{generated → 2015-08-01/generated}/azure_mgmt_redis/models/redis_key_type.rb +1 -1
- data/lib/2015-08-01/generated/azure_mgmt_redis/models/redis_list_keys_result.rb +56 -0
- data/lib/2015-08-01/generated/azure_mgmt_redis/models/redis_list_result.rb +94 -0
- data/lib/2015-08-01/generated/azure_mgmt_redis/models/redis_properties.rb +149 -0
- data/lib/2015-08-01/generated/azure_mgmt_redis/models/redis_reboot_parameters.rb +58 -0
- data/lib/2015-08-01/generated/azure_mgmt_redis/models/redis_regenerate_key_parameters.rb +46 -0
- data/lib/2015-08-01/generated/azure_mgmt_redis/models/redis_resource.rb +234 -0
- data/lib/2015-08-01/generated/azure_mgmt_redis/models/redis_resource_with_access_key.rb +245 -0
- data/lib/2015-08-01/generated/azure_mgmt_redis/models/resource.rb +95 -0
- data/lib/2015-08-01/generated/azure_mgmt_redis/models/sku.rb +68 -0
- data/lib/{generated → 2015-08-01/generated}/azure_mgmt_redis/models/sku_family.rb +1 -1
- data/lib/{generated → 2015-08-01/generated}/azure_mgmt_redis/models/sku_name.rb +1 -1
- data/lib/2015-08-01/generated/azure_mgmt_redis/module_definition.rb +9 -0
- data/lib/2015-08-01/generated/azure_mgmt_redis/redis.rb +1002 -0
- data/lib/2015-08-01/generated/azure_mgmt_redis/redis_management_client.rb +131 -0
- data/lib/{generated → 2015-08-01/generated}/azure_mgmt_redis/version.rb +2 -2
- data/lib/2016-04-01/generated/azure_mgmt_redis.rb +56 -0
- data/lib/2016-04-01/generated/azure_mgmt_redis/firewall_rules.rb +225 -0
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/models/day_of_week.rb +1 -1
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/models/export_rdbparameters.rb +1 -1
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/models/import_rdbparameters.rb +1 -1
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/models/operation.rb +1 -1
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/models/operation_display.rb +1 -1
- data/lib/2016-04-01/generated/azure_mgmt_redis/models/operation_list_result.rb +97 -0
- data/lib/2016-04-01/generated/azure_mgmt_redis/models/reboot_type.rb +17 -0
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/models/redis_access_keys.rb +1 -1
- data/lib/2016-04-01/generated/azure_mgmt_redis/models/redis_create_parameters.rb +177 -0
- data/lib/2016-04-01/generated/azure_mgmt_redis/models/redis_firewall_rule.rb +89 -0
- data/lib/2016-04-01/generated/azure_mgmt_redis/models/redis_firewall_rule_list_result.rb +95 -0
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/models/redis_force_reboot_response.rb +1 -1
- data/lib/2016-04-01/generated/azure_mgmt_redis/models/redis_key_type.rb +16 -0
- data/lib/2016-04-01/generated/azure_mgmt_redis/models/redis_list_result.rb +94 -0
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/models/redis_patch_schedule.rb +1 -1
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/models/redis_reboot_parameters.rb +1 -1
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/models/redis_regenerate_key_parameters.rb +1 -1
- data/lib/2016-04-01/generated/azure_mgmt_redis/models/redis_resource.rb +245 -0
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/models/redis_update_parameters.rb +1 -1
- data/lib/2016-04-01/generated/azure_mgmt_redis/models/resource.rb +94 -0
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/models/schedule_entry.rb +1 -1
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/models/sku.rb +1 -1
- data/lib/2016-04-01/generated/azure_mgmt_redis/models/sku_family.rb +16 -0
- data/lib/2016-04-01/generated/azure_mgmt_redis/models/sku_name.rb +17 -0
- data/lib/2016-04-01/generated/azure_mgmt_redis/module_definition.rb +9 -0
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/operations.rb +3 -3
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/patch_schedules.rb +5 -5
- data/lib/{generated → 2016-04-01/generated}/azure_mgmt_redis/redis.rb +19 -19
- data/lib/2016-04-01/generated/azure_mgmt_redis/redis_firewall_rule_operations.rb +325 -0
- data/lib/2016-04-01/generated/azure_mgmt_redis/redis_management_client.rb +147 -0
- data/lib/{generated/azure_mgmt_redis/module_definition.rb → 2016-04-01/generated/azure_mgmt_redis/version.rb} +3 -3
- data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis.rb +40 -40
- data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/firewall_rules.rb +7 -7
- data/lib/2017-02-01/generated/azure_mgmt_redis/models/day_of_week.rb +23 -0
- data/lib/2017-02-01/generated/azure_mgmt_redis/models/export_rdbparameters.rb +64 -0
- data/lib/2017-02-01/generated/azure_mgmt_redis/models/import_rdbparameters.rb +61 -0
- data/lib/2017-02-01/generated/azure_mgmt_redis/models/operation.rb +55 -0
- data/lib/2017-02-01/generated/azure_mgmt_redis/models/operation_display.rb +75 -0
- data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/operation_list_result.rb +1 -1
- data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/proxy_resource.rb +1 -1
- data/lib/2017-02-01/generated/azure_mgmt_redis/models/reboot_type.rb +17 -0
- data/lib/2017-02-01/generated/azure_mgmt_redis/models/redis_access_keys.rb +58 -0
- data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/redis_create_parameters.rb +1 -1
- data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/redis_firewall_rule.rb +1 -1
- data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/redis_firewall_rule_list_result.rb +1 -1
- data/lib/2017-02-01/generated/azure_mgmt_redis/models/redis_force_reboot_response.rb +45 -0
- data/lib/2017-02-01/generated/azure_mgmt_redis/models/redis_key_type.rb +16 -0
- data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/redis_linked_server.rb +1 -1
- data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/redis_linked_server_create_parameters.rb +1 -1
- data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/redis_linked_server_list.rb +1 -1
- data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/redis_linked_server_with_properties.rb +1 -1
- data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/redis_linked_server_with_properties_list.rb +1 -1
- data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/redis_list_result.rb +1 -1
- data/lib/2017-02-01/generated/azure_mgmt_redis/models/redis_patch_schedule.rb +97 -0
- data/lib/2017-02-01/generated/azure_mgmt_redis/models/redis_reboot_parameters.rb +57 -0
- data/lib/2017-02-01/generated/azure_mgmt_redis/models/redis_regenerate_key_parameters.rb +46 -0
- data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/redis_resource.rb +1 -1
- data/lib/2017-02-01/generated/azure_mgmt_redis/models/redis_update_parameters.rb +149 -0
- data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/replication_role.rb +1 -1
- data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/resource.rb +1 -1
- data/lib/2017-02-01/generated/azure_mgmt_redis/models/schedule_entry.rb +68 -0
- data/lib/2017-02-01/generated/azure_mgmt_redis/models/sku.rb +69 -0
- data/lib/2017-02-01/generated/azure_mgmt_redis/models/sku_family.rb +16 -0
- data/lib/2017-02-01/generated/azure_mgmt_redis/models/sku_name.rb +17 -0
- data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/models/tracked_resource.rb +1 -1
- data/lib/2017-02-01/generated/azure_mgmt_redis/module_definition.rb +9 -0
- data/lib/2017-02-01/generated/azure_mgmt_redis/operations.rb +220 -0
- data/lib/2017-02-01/generated/azure_mgmt_redis/patch_schedules.rb +316 -0
- data/lib/2017-02-01/generated/azure_mgmt_redis/redis.rb +1481 -0
- data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/redis_linked_server_operations.rb +7 -7
- data/lib/{generated → 2017-02-01/generated}/azure_mgmt_redis/redis_management_client.rb +3 -3
- data/lib/2017-02-01/generated/azure_mgmt_redis/version.rb +8 -0
- data/lib/azure_mgmt_redis.rb +4 -1
- data/lib/module_definition.rb +9 -0
- data/lib/profiles/common/configurable.rb +73 -0
- data/lib/profiles/common/default.rb +68 -0
- data/lib/profiles/latest/modules/redis_profile_module.rb +178 -0
- data/lib/profiles/latest/redis_latest_profile_client.rb +33 -0
- data/lib/profiles/latest/redis_module_definition.rb +9 -0
- data/lib/version.rb +7 -0
- metadata +103 -43
@@ -0,0 +1,16 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Redis::Mgmt::V2016_04_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for SkuFamily
|
10
|
+
#
|
11
|
+
module SkuFamily
|
12
|
+
C = "C"
|
13
|
+
P = "P"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Redis::Mgmt::V2016_04_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for SkuName
|
10
|
+
#
|
11
|
+
module SkuName
|
12
|
+
Basic = "Basic"
|
13
|
+
Standard = "Standard"
|
14
|
+
Premium = "Premium"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure end
|
7
|
+
module Azure::Redis end
|
8
|
+
module Azure::Redis::Mgmt end
|
9
|
+
module Azure::Redis::Mgmt::V2016_04_01 end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::
|
6
|
+
module Azure::Redis::Mgmt::V2016_04_01
|
7
7
|
#
|
8
8
|
# REST API for Azure Redis Cache Service.
|
9
9
|
#
|
@@ -92,7 +92,7 @@ module Azure::ARM::Redis
|
|
92
92
|
if status_code == 200
|
93
93
|
begin
|
94
94
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
95
|
-
result_mapper = Azure::
|
95
|
+
result_mapper = Azure::Redis::Mgmt::V2016_04_01::Models::OperationListResult.mapper()
|
96
96
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
97
97
|
rescue Exception => e
|
98
98
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -182,7 +182,7 @@ module Azure::ARM::Redis
|
|
182
182
|
if status_code == 200
|
183
183
|
begin
|
184
184
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
185
|
-
result_mapper = Azure::
|
185
|
+
result_mapper = Azure::Redis::Mgmt::V2016_04_01::Models::OperationListResult.mapper()
|
186
186
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
187
187
|
rescue Exception => e
|
188
188
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::
|
6
|
+
module Azure::Redis::Mgmt::V2016_04_01
|
7
7
|
#
|
8
8
|
# REST API for Azure Redis Cache Service.
|
9
9
|
#
|
@@ -86,7 +86,7 @@ module Azure::ARM::Redis
|
|
86
86
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
87
87
|
|
88
88
|
# Serialize Request
|
89
|
-
request_mapper = Azure::
|
89
|
+
request_mapper = Azure::Redis::Mgmt::V2016_04_01::Models::RedisPatchSchedule.mapper()
|
90
90
|
request_content = @client.serialize(request_mapper, parameters)
|
91
91
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
92
92
|
|
@@ -118,7 +118,7 @@ module Azure::ARM::Redis
|
|
118
118
|
if status_code == 200
|
119
119
|
begin
|
120
120
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
121
|
-
result_mapper = Azure::
|
121
|
+
result_mapper = Azure::Redis::Mgmt::V2016_04_01::Models::RedisPatchSchedule.mapper()
|
122
122
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
123
123
|
rescue Exception => e
|
124
124
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -128,7 +128,7 @@ module Azure::ARM::Redis
|
|
128
128
|
if status_code == 201
|
129
129
|
begin
|
130
130
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
131
|
-
result_mapper = Azure::
|
131
|
+
result_mapper = Azure::Redis::Mgmt::V2016_04_01::Models::RedisPatchSchedule.mapper()
|
132
132
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
133
133
|
rescue Exception => e
|
134
134
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -299,7 +299,7 @@ module Azure::ARM::Redis
|
|
299
299
|
if status_code == 200
|
300
300
|
begin
|
301
301
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
302
|
-
result_mapper = Azure::
|
302
|
+
result_mapper = Azure::Redis::Mgmt::V2016_04_01::Models::RedisPatchSchedule.mapper()
|
303
303
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
304
304
|
rescue Exception => e
|
305
305
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::
|
6
|
+
module Azure::Redis::Mgmt::V2016_04_01
|
7
7
|
#
|
8
8
|
# REST API for Azure Redis Cache Service.
|
9
9
|
#
|
@@ -57,7 +57,7 @@ module Azure::ARM::Redis
|
|
57
57
|
promise = promise.then do |response|
|
58
58
|
# Defining deserialization method.
|
59
59
|
deserialize_method = lambda do |parsed_response|
|
60
|
-
result_mapper = Azure::
|
60
|
+
result_mapper = Azure::Redis::Mgmt::V2016_04_01::Models::RedisResource.mapper()
|
61
61
|
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
62
62
|
end
|
63
63
|
|
@@ -130,7 +130,7 @@ module Azure::ARM::Redis
|
|
130
130
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
131
131
|
|
132
132
|
# Serialize Request
|
133
|
-
request_mapper = Azure::
|
133
|
+
request_mapper = Azure::Redis::Mgmt::V2016_04_01::Models::RedisUpdateParameters.mapper()
|
134
134
|
request_content = @client.serialize(request_mapper, parameters)
|
135
135
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
136
136
|
|
@@ -162,7 +162,7 @@ module Azure::ARM::Redis
|
|
162
162
|
if status_code == 200
|
163
163
|
begin
|
164
164
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
165
|
-
result_mapper = Azure::
|
165
|
+
result_mapper = Azure::Redis::Mgmt::V2016_04_01::Models::RedisResource.mapper()
|
166
166
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
167
167
|
rescue Exception => e
|
168
168
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -291,7 +291,7 @@ module Azure::ARM::Redis
|
|
291
291
|
if status_code == 200
|
292
292
|
begin
|
293
293
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
294
|
-
result_mapper = Azure::
|
294
|
+
result_mapper = Azure::Redis::Mgmt::V2016_04_01::Models::RedisResource.mapper()
|
295
295
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
296
296
|
rescue Exception => e
|
297
297
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -378,7 +378,7 @@ module Azure::ARM::Redis
|
|
378
378
|
if status_code == 200
|
379
379
|
begin
|
380
380
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
381
|
-
result_mapper = Azure::
|
381
|
+
result_mapper = Azure::Redis::Mgmt::V2016_04_01::Models::RedisListResult.mapper()
|
382
382
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
383
383
|
rescue Exception => e
|
384
384
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -461,7 +461,7 @@ module Azure::ARM::Redis
|
|
461
461
|
if status_code == 200
|
462
462
|
begin
|
463
463
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
464
|
-
result_mapper = Azure::
|
464
|
+
result_mapper = Azure::Redis::Mgmt::V2016_04_01::Models::RedisListResult.mapper()
|
465
465
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
466
466
|
rescue Exception => e
|
467
467
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -555,7 +555,7 @@ module Azure::ARM::Redis
|
|
555
555
|
if status_code == 200
|
556
556
|
begin
|
557
557
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
558
|
-
result_mapper = Azure::
|
558
|
+
result_mapper = Azure::Redis::Mgmt::V2016_04_01::Models::RedisAccessKeys.mapper()
|
559
559
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
560
560
|
rescue Exception => e
|
561
561
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -633,7 +633,7 @@ module Azure::ARM::Redis
|
|
633
633
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
634
634
|
|
635
635
|
# Serialize Request
|
636
|
-
request_mapper = Azure::
|
636
|
+
request_mapper = Azure::Redis::Mgmt::V2016_04_01::Models::RedisRegenerateKeyParameters.mapper()
|
637
637
|
request_content = @client.serialize(request_mapper, parameters)
|
638
638
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
639
639
|
|
@@ -665,7 +665,7 @@ module Azure::ARM::Redis
|
|
665
665
|
if status_code == 200
|
666
666
|
begin
|
667
667
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
668
|
-
result_mapper = Azure::
|
668
|
+
result_mapper = Azure::Redis::Mgmt::V2016_04_01::Models::RedisAccessKeys.mapper()
|
669
669
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
670
670
|
rescue Exception => e
|
671
671
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -743,7 +743,7 @@ module Azure::ARM::Redis
|
|
743
743
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
744
744
|
|
745
745
|
# Serialize Request
|
746
|
-
request_mapper = Azure::
|
746
|
+
request_mapper = Azure::Redis::Mgmt::V2016_04_01::Models::RedisRebootParameters.mapper()
|
747
747
|
request_content = @client.serialize(request_mapper, parameters)
|
748
748
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
749
749
|
|
@@ -775,7 +775,7 @@ module Azure::ARM::Redis
|
|
775
775
|
if status_code == 200
|
776
776
|
begin
|
777
777
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
778
|
-
result_mapper = Azure::
|
778
|
+
result_mapper = Azure::Redis::Mgmt::V2016_04_01::Models::RedisForceRebootResponse.mapper()
|
779
779
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
780
780
|
rescue Exception => e
|
781
781
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -937,7 +937,7 @@ module Azure::ARM::Redis
|
|
937
937
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
938
938
|
|
939
939
|
# Serialize Request
|
940
|
-
request_mapper = Azure::
|
940
|
+
request_mapper = Azure::Redis::Mgmt::V2016_04_01::Models::RedisCreateParameters.mapper()
|
941
941
|
request_content = @client.serialize(request_mapper, parameters)
|
942
942
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
943
943
|
|
@@ -969,7 +969,7 @@ module Azure::ARM::Redis
|
|
969
969
|
if status_code == 201
|
970
970
|
begin
|
971
971
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
972
|
-
result_mapper = Azure::
|
972
|
+
result_mapper = Azure::Redis::Mgmt::V2016_04_01::Models::RedisResource.mapper()
|
973
973
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
974
974
|
rescue Exception => e
|
975
975
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -979,7 +979,7 @@ module Azure::ARM::Redis
|
|
979
979
|
if status_code == 200
|
980
980
|
begin
|
981
981
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
982
|
-
result_mapper = Azure::
|
982
|
+
result_mapper = Azure::Redis::Mgmt::V2016_04_01::Models::RedisResource.mapper()
|
983
983
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
984
984
|
rescue Exception => e
|
985
985
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -1133,7 +1133,7 @@ module Azure::ARM::Redis
|
|
1133
1133
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1134
1134
|
|
1135
1135
|
# Serialize Request
|
1136
|
-
request_mapper = Azure::
|
1136
|
+
request_mapper = Azure::Redis::Mgmt::V2016_04_01::Models::ImportRDBParameters.mapper()
|
1137
1137
|
request_content = @client.serialize(request_mapper, parameters)
|
1138
1138
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
1139
1139
|
|
@@ -1229,7 +1229,7 @@ module Azure::ARM::Redis
|
|
1229
1229
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1230
1230
|
|
1231
1231
|
# Serialize Request
|
1232
|
-
request_mapper = Azure::
|
1232
|
+
request_mapper = Azure::Redis::Mgmt::V2016_04_01::Models::ExportRDBParameters.mapper()
|
1233
1233
|
request_content = @client.serialize(request_mapper, parameters)
|
1234
1234
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
1235
1235
|
|
@@ -1338,7 +1338,7 @@ module Azure::ARM::Redis
|
|
1338
1338
|
if status_code == 200
|
1339
1339
|
begin
|
1340
1340
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1341
|
-
result_mapper = Azure::
|
1341
|
+
result_mapper = Azure::Redis::Mgmt::V2016_04_01::Models::RedisListResult.mapper()
|
1342
1342
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
1343
1343
|
rescue Exception => e
|
1344
1344
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -1425,7 +1425,7 @@ module Azure::ARM::Redis
|
|
1425
1425
|
if status_code == 200
|
1426
1426
|
begin
|
1427
1427
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1428
|
-
result_mapper = Azure::
|
1428
|
+
result_mapper = Azure::Redis::Mgmt::V2016_04_01::Models::RedisListResult.mapper()
|
1429
1429
|
result.body = @client.deserialize(result_mapper, parsed_response)
|
1430
1430
|
rescue Exception => e
|
1431
1431
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
@@ -0,0 +1,325 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Redis::Mgmt::V2016_04_01
|
7
|
+
#
|
8
|
+
# REST API for Azure Redis Cache Service.
|
9
|
+
#
|
10
|
+
class RedisFirewallRuleOperations
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the RedisFirewallRuleOperations class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [RedisManagementClient] reference to the RedisManagementClient
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# Create or update a redis cache firewall rule
|
26
|
+
#
|
27
|
+
# @param resource_group_name [String] The name of the resource group.
|
28
|
+
# @param cache_name [String] The name of the Redis cache.
|
29
|
+
# @param rule_name [String] The name of the firewall rule.
|
30
|
+
# @param parameters [RedisFirewallRule] Parameters supplied to the create or
|
31
|
+
# update redis firewall rule operation.
|
32
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
33
|
+
# will be added to the HTTP request.
|
34
|
+
#
|
35
|
+
# @return [RedisFirewallRule] operation results.
|
36
|
+
#
|
37
|
+
def create_or_update(resource_group_name, cache_name, rule_name, parameters, custom_headers = nil)
|
38
|
+
response = create_or_update_async(resource_group_name, cache_name, rule_name, parameters, custom_headers).value!
|
39
|
+
response.body unless response.nil?
|
40
|
+
end
|
41
|
+
|
42
|
+
#
|
43
|
+
# Create or update a redis cache firewall rule
|
44
|
+
#
|
45
|
+
# @param resource_group_name [String] The name of the resource group.
|
46
|
+
# @param cache_name [String] The name of the Redis cache.
|
47
|
+
# @param rule_name [String] The name of the firewall rule.
|
48
|
+
# @param parameters [RedisFirewallRule] Parameters supplied to the create or
|
49
|
+
# update redis firewall rule operation.
|
50
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
51
|
+
# will be added to the HTTP request.
|
52
|
+
#
|
53
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
54
|
+
#
|
55
|
+
def create_or_update_with_http_info(resource_group_name, cache_name, rule_name, parameters, custom_headers = nil)
|
56
|
+
create_or_update_async(resource_group_name, cache_name, rule_name, parameters, custom_headers).value!
|
57
|
+
end
|
58
|
+
|
59
|
+
#
|
60
|
+
# Create or update a redis cache firewall rule
|
61
|
+
#
|
62
|
+
# @param resource_group_name [String] The name of the resource group.
|
63
|
+
# @param cache_name [String] The name of the Redis cache.
|
64
|
+
# @param rule_name [String] The name of the firewall rule.
|
65
|
+
# @param parameters [RedisFirewallRule] Parameters supplied to the create or
|
66
|
+
# update redis firewall rule operation.
|
67
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
68
|
+
# to the HTTP request.
|
69
|
+
#
|
70
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
71
|
+
#
|
72
|
+
def create_or_update_async(resource_group_name, cache_name, rule_name, parameters, custom_headers = nil)
|
73
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
74
|
+
fail ArgumentError, 'cache_name is nil' if cache_name.nil?
|
75
|
+
fail ArgumentError, 'rule_name is nil' if rule_name.nil?
|
76
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
77
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
78
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
79
|
+
|
80
|
+
|
81
|
+
request_headers = {}
|
82
|
+
|
83
|
+
# Set Headers
|
84
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
85
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
86
|
+
|
87
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
88
|
+
|
89
|
+
# Serialize Request
|
90
|
+
request_mapper = Azure::Redis::Mgmt::V2016_04_01::Models::RedisFirewallRule.mapper()
|
91
|
+
request_content = @client.serialize(request_mapper, parameters)
|
92
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
93
|
+
|
94
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/Redis/{cacheName}/firewallRules/{ruleName}'
|
95
|
+
|
96
|
+
request_url = @base_url || @client.base_url
|
97
|
+
|
98
|
+
options = {
|
99
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
100
|
+
path_params: {'resourceGroupName' => resource_group_name,'cacheName' => cache_name,'ruleName' => rule_name,'subscriptionId' => @client.subscription_id},
|
101
|
+
query_params: {'api-version' => @client.api_version},
|
102
|
+
body: request_content,
|
103
|
+
headers: request_headers.merge(custom_headers || {}),
|
104
|
+
base_url: request_url
|
105
|
+
}
|
106
|
+
promise = @client.make_request_async(:put, path_template, options)
|
107
|
+
|
108
|
+
promise = promise.then do |result|
|
109
|
+
http_response = result.response
|
110
|
+
status_code = http_response.status
|
111
|
+
response_content = http_response.body
|
112
|
+
unless status_code == 200 || status_code == 201
|
113
|
+
error_model = JSON.load(response_content)
|
114
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
115
|
+
end
|
116
|
+
|
117
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
118
|
+
# Deserialize Response
|
119
|
+
if status_code == 200
|
120
|
+
begin
|
121
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
122
|
+
result_mapper = Azure::Redis::Mgmt::V2016_04_01::Models::RedisFirewallRule.mapper()
|
123
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
124
|
+
rescue Exception => e
|
125
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
126
|
+
end
|
127
|
+
end
|
128
|
+
# Deserialize Response
|
129
|
+
if status_code == 201
|
130
|
+
begin
|
131
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
132
|
+
result_mapper = Azure::Redis::Mgmt::V2016_04_01::Models::RedisFirewallRule.mapper()
|
133
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
134
|
+
rescue Exception => e
|
135
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
139
|
+
result
|
140
|
+
end
|
141
|
+
|
142
|
+
promise.execute
|
143
|
+
end
|
144
|
+
|
145
|
+
#
|
146
|
+
# Gets a single firewall rule in a specified redis cache.
|
147
|
+
#
|
148
|
+
# @param resource_group_name [String] The name of the resource group.
|
149
|
+
# @param cache_name [String] The name of the Redis cache.
|
150
|
+
# @param rule_name [String] The name of the firewall rule.
|
151
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
152
|
+
# will be added to the HTTP request.
|
153
|
+
#
|
154
|
+
# @return [RedisFirewallRule] operation results.
|
155
|
+
#
|
156
|
+
def get(resource_group_name, cache_name, rule_name, custom_headers = nil)
|
157
|
+
response = get_async(resource_group_name, cache_name, rule_name, custom_headers).value!
|
158
|
+
response.body unless response.nil?
|
159
|
+
end
|
160
|
+
|
161
|
+
#
|
162
|
+
# Gets a single firewall rule in a specified redis cache.
|
163
|
+
#
|
164
|
+
# @param resource_group_name [String] The name of the resource group.
|
165
|
+
# @param cache_name [String] The name of the Redis cache.
|
166
|
+
# @param rule_name [String] The name of the firewall rule.
|
167
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
168
|
+
# will be added to the HTTP request.
|
169
|
+
#
|
170
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
171
|
+
#
|
172
|
+
def get_with_http_info(resource_group_name, cache_name, rule_name, custom_headers = nil)
|
173
|
+
get_async(resource_group_name, cache_name, rule_name, custom_headers).value!
|
174
|
+
end
|
175
|
+
|
176
|
+
#
|
177
|
+
# Gets a single firewall rule in a specified redis cache.
|
178
|
+
#
|
179
|
+
# @param resource_group_name [String] The name of the resource group.
|
180
|
+
# @param cache_name [String] The name of the Redis cache.
|
181
|
+
# @param rule_name [String] The name of the firewall rule.
|
182
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
183
|
+
# to the HTTP request.
|
184
|
+
#
|
185
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
186
|
+
#
|
187
|
+
def get_async(resource_group_name, cache_name, rule_name, custom_headers = nil)
|
188
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
189
|
+
fail ArgumentError, 'cache_name is nil' if cache_name.nil?
|
190
|
+
fail ArgumentError, 'rule_name is nil' if rule_name.nil?
|
191
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
192
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
193
|
+
|
194
|
+
|
195
|
+
request_headers = {}
|
196
|
+
|
197
|
+
# Set Headers
|
198
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
199
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
200
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/Redis/{cacheName}/firewallRules/{ruleName}'
|
201
|
+
|
202
|
+
request_url = @base_url || @client.base_url
|
203
|
+
|
204
|
+
options = {
|
205
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
206
|
+
path_params: {'resourceGroupName' => resource_group_name,'cacheName' => cache_name,'ruleName' => rule_name,'subscriptionId' => @client.subscription_id},
|
207
|
+
query_params: {'api-version' => @client.api_version},
|
208
|
+
headers: request_headers.merge(custom_headers || {}),
|
209
|
+
base_url: request_url
|
210
|
+
}
|
211
|
+
promise = @client.make_request_async(:get, path_template, options)
|
212
|
+
|
213
|
+
promise = promise.then do |result|
|
214
|
+
http_response = result.response
|
215
|
+
status_code = http_response.status
|
216
|
+
response_content = http_response.body
|
217
|
+
unless status_code == 200
|
218
|
+
error_model = JSON.load(response_content)
|
219
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
220
|
+
end
|
221
|
+
|
222
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
223
|
+
# Deserialize Response
|
224
|
+
if status_code == 200
|
225
|
+
begin
|
226
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
227
|
+
result_mapper = Azure::Redis::Mgmt::V2016_04_01::Models::RedisFirewallRule.mapper()
|
228
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
229
|
+
rescue Exception => e
|
230
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
231
|
+
end
|
232
|
+
end
|
233
|
+
|
234
|
+
result
|
235
|
+
end
|
236
|
+
|
237
|
+
promise.execute
|
238
|
+
end
|
239
|
+
|
240
|
+
#
|
241
|
+
# Deletes a single firewall rule in a specified redis cache.
|
242
|
+
#
|
243
|
+
# @param resource_group_name [String] The name of the resource group.
|
244
|
+
# @param cache_name [String] The name of the Redis cache.
|
245
|
+
# @param rule_name [String] The name of the firewall rule.
|
246
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
247
|
+
# will be added to the HTTP request.
|
248
|
+
#
|
249
|
+
#
|
250
|
+
def delete(resource_group_name, cache_name, rule_name, custom_headers = nil)
|
251
|
+
response = delete_async(resource_group_name, cache_name, rule_name, custom_headers).value!
|
252
|
+
nil
|
253
|
+
end
|
254
|
+
|
255
|
+
#
|
256
|
+
# Deletes a single firewall rule in a specified redis cache.
|
257
|
+
#
|
258
|
+
# @param resource_group_name [String] The name of the resource group.
|
259
|
+
# @param cache_name [String] The name of the Redis cache.
|
260
|
+
# @param rule_name [String] The name of the firewall rule.
|
261
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
262
|
+
# will be added to the HTTP request.
|
263
|
+
#
|
264
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
265
|
+
#
|
266
|
+
def delete_with_http_info(resource_group_name, cache_name, rule_name, custom_headers = nil)
|
267
|
+
delete_async(resource_group_name, cache_name, rule_name, custom_headers).value!
|
268
|
+
end
|
269
|
+
|
270
|
+
#
|
271
|
+
# Deletes a single firewall rule in a specified redis cache.
|
272
|
+
#
|
273
|
+
# @param resource_group_name [String] The name of the resource group.
|
274
|
+
# @param cache_name [String] The name of the Redis cache.
|
275
|
+
# @param rule_name [String] The name of the firewall rule.
|
276
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
277
|
+
# to the HTTP request.
|
278
|
+
#
|
279
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
280
|
+
#
|
281
|
+
def delete_async(resource_group_name, cache_name, rule_name, custom_headers = nil)
|
282
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
283
|
+
fail ArgumentError, 'cache_name is nil' if cache_name.nil?
|
284
|
+
fail ArgumentError, 'rule_name is nil' if rule_name.nil?
|
285
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
286
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
287
|
+
|
288
|
+
|
289
|
+
request_headers = {}
|
290
|
+
|
291
|
+
# Set Headers
|
292
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
293
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
294
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/Redis/{cacheName}/firewallRules/{ruleName}'
|
295
|
+
|
296
|
+
request_url = @base_url || @client.base_url
|
297
|
+
|
298
|
+
options = {
|
299
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
300
|
+
path_params: {'resourceGroupName' => resource_group_name,'cacheName' => cache_name,'ruleName' => rule_name,'subscriptionId' => @client.subscription_id},
|
301
|
+
query_params: {'api-version' => @client.api_version},
|
302
|
+
headers: request_headers.merge(custom_headers || {}),
|
303
|
+
base_url: request_url
|
304
|
+
}
|
305
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
306
|
+
|
307
|
+
promise = promise.then do |result|
|
308
|
+
http_response = result.response
|
309
|
+
status_code = http_response.status
|
310
|
+
response_content = http_response.body
|
311
|
+
unless status_code == 200 || status_code == 204
|
312
|
+
error_model = JSON.load(response_content)
|
313
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
314
|
+
end
|
315
|
+
|
316
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
317
|
+
|
318
|
+
result
|
319
|
+
end
|
320
|
+
|
321
|
+
promise.execute
|
322
|
+
end
|
323
|
+
|
324
|
+
end
|
325
|
+
end
|