azure_mgmt_redis 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generated/azure_mgmt_redis/models/redis_create_parameters.rb +1 -1
- data/lib/generated/azure_mgmt_redis/models/redis_resource.rb +57 -57
- data/lib/generated/azure_mgmt_redis/models/redis_update_parameters.rb +1 -1
- data/lib/generated/azure_mgmt_redis/patch_schedules.rb +25 -22
- data/lib/generated/azure_mgmt_redis/redis.rb +77 -123
- data/lib/generated/azure_mgmt_redis/redis_management_client.rb +4 -5
- data/lib/generated/azure_mgmt_redis/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aebdb39b33c6b7e0525e7f07634922f729046700
|
4
|
+
data.tar.gz: 8ac8586553a693c03479dfd5e3783b0d0076b25c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9cdc1ec8233ce5684aae7c408abd9bf19414efd7775f563b4a23071790ff9ab7f8cb245ff7b8284b7450941f991eab257c0537063e48ec5d75fd2b026a86dd2
|
7
|
+
data.tar.gz: 496c55d343ce66d567352d62793c624ea9af185d4b7f49879a0c3b310adff39b7c5f40870e30272442f5c0e8ac6cb0ca94d5bb86783327c730e95914bce32709
|
@@ -12,21 +12,6 @@ module Azure::ARM::Redis
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [String] Redis version.
|
16
|
-
attr_accessor :redis_version
|
17
|
-
|
18
|
-
# @return [String] Redis instance provisioning status.
|
19
|
-
attr_accessor :provisioning_state
|
20
|
-
|
21
|
-
# @return [String] Redis host name.
|
22
|
-
attr_accessor :host_name
|
23
|
-
|
24
|
-
# @return [Integer] Redis non-SSL port.
|
25
|
-
attr_accessor :port
|
26
|
-
|
27
|
-
# @return [Integer] Redis SSL port.
|
28
|
-
attr_accessor :ssl_port
|
29
|
-
|
30
15
|
# @return [Hash{String => String}] All Redis Settings. Few possible keys:
|
31
16
|
# rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value
|
32
17
|
# etc.
|
@@ -55,6 +40,21 @@ module Azure::ARM::Redis
|
|
55
40
|
# @return [Sku] The SKU of the Redis cache to deploy.
|
56
41
|
attr_accessor :sku
|
57
42
|
|
43
|
+
# @return [String] Redis version.
|
44
|
+
attr_accessor :redis_version
|
45
|
+
|
46
|
+
# @return [String] Redis instance provisioning status.
|
47
|
+
attr_accessor :provisioning_state
|
48
|
+
|
49
|
+
# @return [String] Redis host name.
|
50
|
+
attr_accessor :host_name
|
51
|
+
|
52
|
+
# @return [Integer] Redis non-SSL port.
|
53
|
+
attr_accessor :port
|
54
|
+
|
55
|
+
# @return [Integer] Redis SSL port.
|
56
|
+
attr_accessor :ssl_port
|
57
|
+
|
58
58
|
|
59
59
|
#
|
60
60
|
# Mapper for RedisResource class as Ruby Hash.
|
@@ -113,49 +113,9 @@ module Azure::ARM::Redis
|
|
113
113
|
}
|
114
114
|
}
|
115
115
|
},
|
116
|
-
redis_version: {
|
117
|
-
required: false,
|
118
|
-
read_only: true,
|
119
|
-
serialized_name: 'properties.RedisVersion',
|
120
|
-
type: {
|
121
|
-
name: 'String'
|
122
|
-
}
|
123
|
-
},
|
124
|
-
provisioning_state: {
|
125
|
-
required: false,
|
126
|
-
read_only: true,
|
127
|
-
serialized_name: 'properties.provisioningState',
|
128
|
-
type: {
|
129
|
-
name: 'String'
|
130
|
-
}
|
131
|
-
},
|
132
|
-
host_name: {
|
133
|
-
required: false,
|
134
|
-
read_only: true,
|
135
|
-
serialized_name: 'properties.hostName',
|
136
|
-
type: {
|
137
|
-
name: 'String'
|
138
|
-
}
|
139
|
-
},
|
140
|
-
port: {
|
141
|
-
required: false,
|
142
|
-
read_only: true,
|
143
|
-
serialized_name: 'properties.port',
|
144
|
-
type: {
|
145
|
-
name: 'Number'
|
146
|
-
}
|
147
|
-
},
|
148
|
-
ssl_port: {
|
149
|
-
required: false,
|
150
|
-
read_only: true,
|
151
|
-
serialized_name: 'properties.sslPort',
|
152
|
-
type: {
|
153
|
-
name: 'Number'
|
154
|
-
}
|
155
|
-
},
|
156
116
|
redis_configuration: {
|
157
117
|
required: false,
|
158
|
-
serialized_name: 'properties.
|
118
|
+
serialized_name: 'properties.redisConfiguration',
|
159
119
|
type: {
|
160
120
|
name: 'Dictionary',
|
161
121
|
value: {
|
@@ -216,12 +176,52 @@ module Azure::ARM::Redis
|
|
216
176
|
}
|
217
177
|
},
|
218
178
|
sku: {
|
219
|
-
required:
|
179
|
+
required: false,
|
220
180
|
serialized_name: 'properties.sku',
|
221
181
|
type: {
|
222
182
|
name: 'Composite',
|
223
183
|
class_name: 'Sku'
|
224
184
|
}
|
185
|
+
},
|
186
|
+
redis_version: {
|
187
|
+
required: false,
|
188
|
+
read_only: true,
|
189
|
+
serialized_name: 'properties.redisVersion',
|
190
|
+
type: {
|
191
|
+
name: 'String'
|
192
|
+
}
|
193
|
+
},
|
194
|
+
provisioning_state: {
|
195
|
+
required: false,
|
196
|
+
read_only: true,
|
197
|
+
serialized_name: 'properties.provisioningState',
|
198
|
+
type: {
|
199
|
+
name: 'String'
|
200
|
+
}
|
201
|
+
},
|
202
|
+
host_name: {
|
203
|
+
required: false,
|
204
|
+
read_only: true,
|
205
|
+
serialized_name: 'properties.hostName',
|
206
|
+
type: {
|
207
|
+
name: 'String'
|
208
|
+
}
|
209
|
+
},
|
210
|
+
port: {
|
211
|
+
required: false,
|
212
|
+
read_only: true,
|
213
|
+
serialized_name: 'properties.port',
|
214
|
+
type: {
|
215
|
+
name: 'Number'
|
216
|
+
}
|
217
|
+
},
|
218
|
+
ssl_port: {
|
219
|
+
required: false,
|
220
|
+
read_only: true,
|
221
|
+
serialized_name: 'properties.sslPort',
|
222
|
+
type: {
|
223
|
+
name: 'Number'
|
224
|
+
}
|
225
225
|
}
|
226
226
|
}
|
227
227
|
}
|
@@ -23,12 +23,13 @@ module Azure::ARM::Redis
|
|
23
23
|
attr_reader :client
|
24
24
|
|
25
25
|
#
|
26
|
-
# Create or replace the patching schedule for Redis cache
|
26
|
+
# Create or replace the patching schedule for Redis cache (requires Premium
|
27
|
+
# SKU).
|
27
28
|
#
|
28
29
|
# @param resource_group_name [String] The name of the resource group.
|
29
30
|
# @param name [String] The name of the Redis cache.
|
30
|
-
# @param parameters [RedisPatchSchedule] Parameters to set
|
31
|
-
# Redis cache.
|
31
|
+
# @param parameters [RedisPatchSchedule] Parameters to set the patching
|
32
|
+
# schedule for Redis cache.
|
32
33
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
33
34
|
# will be added to the HTTP request.
|
34
35
|
#
|
@@ -40,12 +41,13 @@ module Azure::ARM::Redis
|
|
40
41
|
end
|
41
42
|
|
42
43
|
#
|
43
|
-
# Create or replace the patching schedule for Redis cache
|
44
|
+
# Create or replace the patching schedule for Redis cache (requires Premium
|
45
|
+
# SKU).
|
44
46
|
#
|
45
47
|
# @param resource_group_name [String] The name of the resource group.
|
46
48
|
# @param name [String] The name of the Redis cache.
|
47
|
-
# @param parameters [RedisPatchSchedule] Parameters to set
|
48
|
-
# Redis cache.
|
49
|
+
# @param parameters [RedisPatchSchedule] Parameters to set the patching
|
50
|
+
# schedule for Redis cache.
|
49
51
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
50
52
|
# will be added to the HTTP request.
|
51
53
|
#
|
@@ -56,12 +58,13 @@ module Azure::ARM::Redis
|
|
56
58
|
end
|
57
59
|
|
58
60
|
#
|
59
|
-
# Create or replace the patching schedule for Redis cache
|
61
|
+
# Create or replace the patching schedule for Redis cache (requires Premium
|
62
|
+
# SKU).
|
60
63
|
#
|
61
64
|
# @param resource_group_name [String] The name of the resource group.
|
62
65
|
# @param name [String] The name of the Redis cache.
|
63
|
-
# @param parameters [RedisPatchSchedule] Parameters to set
|
64
|
-
# Redis cache.
|
66
|
+
# @param parameters [RedisPatchSchedule] Parameters to set the patching
|
67
|
+
# schedule for Redis cache.
|
65
68
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
66
69
|
# to the HTTP request.
|
67
70
|
#
|
@@ -130,10 +133,10 @@ module Azure::ARM::Redis
|
|
130
133
|
end
|
131
134
|
|
132
135
|
#
|
133
|
-
# Deletes the patching schedule
|
136
|
+
# Deletes the patching schedule of a redis cache (requires Premium SKU).
|
134
137
|
#
|
135
138
|
# @param resource_group_name [String] The name of the resource group.
|
136
|
-
# @param name [String] The name of the
|
139
|
+
# @param name [String] The name of the redis cache.
|
137
140
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
138
141
|
# will be added to the HTTP request.
|
139
142
|
#
|
@@ -144,10 +147,10 @@ module Azure::ARM::Redis
|
|
144
147
|
end
|
145
148
|
|
146
149
|
#
|
147
|
-
# Deletes the patching schedule
|
150
|
+
# Deletes the patching schedule of a redis cache (requires Premium SKU).
|
148
151
|
#
|
149
152
|
# @param resource_group_name [String] The name of the resource group.
|
150
|
-
# @param name [String] The name of the
|
153
|
+
# @param name [String] The name of the redis cache.
|
151
154
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
152
155
|
# will be added to the HTTP request.
|
153
156
|
#
|
@@ -158,10 +161,10 @@ module Azure::ARM::Redis
|
|
158
161
|
end
|
159
162
|
|
160
163
|
#
|
161
|
-
# Deletes the patching schedule
|
164
|
+
# Deletes the patching schedule of a redis cache (requires Premium SKU).
|
162
165
|
#
|
163
166
|
# @param resource_group_name [String] The name of the resource group.
|
164
|
-
# @param name [String] The name of the
|
167
|
+
# @param name [String] The name of the redis cache.
|
165
168
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
166
169
|
# to the HTTP request.
|
167
170
|
#
|
@@ -196,7 +199,7 @@ module Azure::ARM::Redis
|
|
196
199
|
http_response = result.response
|
197
200
|
status_code = http_response.status
|
198
201
|
response_content = http_response.body
|
199
|
-
unless status_code == 200
|
202
|
+
unless status_code == 200 || status_code == 204
|
200
203
|
error_model = JSON.load(response_content)
|
201
204
|
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
202
205
|
end
|
@@ -210,10 +213,10 @@ module Azure::ARM::Redis
|
|
210
213
|
end
|
211
214
|
|
212
215
|
#
|
213
|
-
# Gets the patching schedule
|
216
|
+
# Gets the patching schedule of a redis cache (requires Premium SKU).
|
214
217
|
#
|
215
218
|
# @param resource_group_name [String] The name of the resource group.
|
216
|
-
# @param name [String] The name of the
|
219
|
+
# @param name [String] The name of the redis cache.
|
217
220
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
218
221
|
# will be added to the HTTP request.
|
219
222
|
#
|
@@ -225,10 +228,10 @@ module Azure::ARM::Redis
|
|
225
228
|
end
|
226
229
|
|
227
230
|
#
|
228
|
-
# Gets the patching schedule
|
231
|
+
# Gets the patching schedule of a redis cache (requires Premium SKU).
|
229
232
|
#
|
230
233
|
# @param resource_group_name [String] The name of the resource group.
|
231
|
-
# @param name [String] The name of the
|
234
|
+
# @param name [String] The name of the redis cache.
|
232
235
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
233
236
|
# will be added to the HTTP request.
|
234
237
|
#
|
@@ -239,10 +242,10 @@ module Azure::ARM::Redis
|
|
239
242
|
end
|
240
243
|
|
241
244
|
#
|
242
|
-
# Gets the patching schedule
|
245
|
+
# Gets the patching schedule of a redis cache (requires Premium SKU).
|
243
246
|
#
|
244
247
|
# @param resource_group_name [String] The name of the resource group.
|
245
|
-
# @param name [String] The name of the
|
248
|
+
# @param name [String] The name of the redis cache.
|
246
249
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
247
250
|
# to the HTTP request.
|
248
251
|
#
|
@@ -86,6 +86,8 @@ module Azure::ARM::Redis
|
|
86
86
|
response.body unless response.nil?
|
87
87
|
end
|
88
88
|
|
89
|
+
#
|
90
|
+
# Update an existing Redis cache.
|
89
91
|
#
|
90
92
|
# @param resource_group_name [String] The name of the resource group.
|
91
93
|
# @param name [String] The name of the Redis cache.
|
@@ -94,25 +96,84 @@ module Azure::ARM::Redis
|
|
94
96
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
95
97
|
# will be added to the HTTP request.
|
96
98
|
#
|
97
|
-
# @return [
|
98
|
-
#
|
99
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
100
|
+
#
|
101
|
+
def update_with_http_info(resource_group_name, name, parameters, custom_headers = nil)
|
102
|
+
update_async(resource_group_name, name, parameters, custom_headers).value!
|
103
|
+
end
|
104
|
+
|
105
|
+
#
|
106
|
+
# Update an existing Redis cache.
|
107
|
+
#
|
108
|
+
# @param resource_group_name [String] The name of the resource group.
|
109
|
+
# @param name [String] The name of the Redis cache.
|
110
|
+
# @param parameters [RedisUpdateParameters] Parameters supplied to the Update
|
111
|
+
# Redis operation.
|
112
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
113
|
+
# to the HTTP request.
|
114
|
+
#
|
115
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
99
116
|
#
|
100
117
|
def update_async(resource_group_name, name, parameters, custom_headers = nil)
|
101
|
-
|
102
|
-
|
118
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
119
|
+
fail ArgumentError, 'name is nil' if name.nil?
|
120
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
121
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
122
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
103
123
|
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
124
|
+
|
125
|
+
request_headers = {}
|
126
|
+
|
127
|
+
# Set Headers
|
128
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
129
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
130
|
+
|
131
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
132
|
+
|
133
|
+
# Serialize Request
|
134
|
+
request_mapper = RedisUpdateParameters.mapper()
|
135
|
+
request_content = @client.serialize(request_mapper, parameters, 'parameters')
|
136
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
137
|
+
|
138
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/Redis/{name}'
|
139
|
+
|
140
|
+
request_url = @base_url || @client.base_url
|
141
|
+
|
142
|
+
options = {
|
143
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
144
|
+
path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
|
145
|
+
query_params: {'api-version' => @client.api_version},
|
146
|
+
body: request_content,
|
147
|
+
headers: request_headers.merge(custom_headers || {}),
|
148
|
+
base_url: request_url
|
149
|
+
}
|
150
|
+
promise = @client.make_request_async(:patch, path_template, options)
|
151
|
+
|
152
|
+
promise = promise.then do |result|
|
153
|
+
http_response = result.response
|
154
|
+
status_code = http_response.status
|
155
|
+
response_content = http_response.body
|
156
|
+
unless status_code == 200
|
157
|
+
error_model = JSON.load(response_content)
|
158
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
109
159
|
end
|
110
160
|
|
111
|
-
|
112
|
-
|
161
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
162
|
+
# Deserialize Response
|
163
|
+
if status_code == 200
|
164
|
+
begin
|
165
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
166
|
+
result_mapper = RedisResource.mapper()
|
167
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
168
|
+
rescue Exception => e
|
169
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
170
|
+
end
|
171
|
+
end
|
172
|
+
|
173
|
+
result
|
113
174
|
end
|
114
175
|
|
115
|
-
promise
|
176
|
+
promise.execute
|
116
177
|
end
|
117
178
|
|
118
179
|
#
|
@@ -760,7 +821,7 @@ module Azure::ARM::Redis
|
|
760
821
|
end
|
761
822
|
|
762
823
|
#
|
763
|
-
#
|
824
|
+
# Export data from the redis cache to blobs in a container.
|
764
825
|
#
|
765
826
|
# @param resource_group_name [String] The name of the resource group.
|
766
827
|
# @param name [String] The name of the Redis cache.
|
@@ -921,113 +982,6 @@ module Azure::ARM::Redis
|
|
921
982
|
promise.execute
|
922
983
|
end
|
923
984
|
|
924
|
-
#
|
925
|
-
# Update an existing Redis cache.
|
926
|
-
#
|
927
|
-
# @param resource_group_name [String] The name of the resource group.
|
928
|
-
# @param name [String] The name of the Redis cache.
|
929
|
-
# @param parameters [RedisUpdateParameters] Parameters supplied to the Update
|
930
|
-
# Redis operation.
|
931
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
932
|
-
# will be added to the HTTP request.
|
933
|
-
#
|
934
|
-
# @return [RedisResource] operation results.
|
935
|
-
#
|
936
|
-
def begin_update(resource_group_name, name, parameters, custom_headers = nil)
|
937
|
-
response = begin_update_async(resource_group_name, name, parameters, custom_headers).value!
|
938
|
-
response.body unless response.nil?
|
939
|
-
end
|
940
|
-
|
941
|
-
#
|
942
|
-
# Update an existing Redis cache.
|
943
|
-
#
|
944
|
-
# @param resource_group_name [String] The name of the resource group.
|
945
|
-
# @param name [String] The name of the Redis cache.
|
946
|
-
# @param parameters [RedisUpdateParameters] Parameters supplied to the Update
|
947
|
-
# Redis operation.
|
948
|
-
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
949
|
-
# will be added to the HTTP request.
|
950
|
-
#
|
951
|
-
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
952
|
-
#
|
953
|
-
def begin_update_with_http_info(resource_group_name, name, parameters, custom_headers = nil)
|
954
|
-
begin_update_async(resource_group_name, name, parameters, custom_headers).value!
|
955
|
-
end
|
956
|
-
|
957
|
-
#
|
958
|
-
# Update an existing Redis cache.
|
959
|
-
#
|
960
|
-
# @param resource_group_name [String] The name of the resource group.
|
961
|
-
# @param name [String] The name of the Redis cache.
|
962
|
-
# @param parameters [RedisUpdateParameters] Parameters supplied to the Update
|
963
|
-
# Redis operation.
|
964
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
965
|
-
# to the HTTP request.
|
966
|
-
#
|
967
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
968
|
-
#
|
969
|
-
def begin_update_async(resource_group_name, name, parameters, custom_headers = nil)
|
970
|
-
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
971
|
-
fail ArgumentError, 'name is nil' if name.nil?
|
972
|
-
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
973
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
974
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
975
|
-
|
976
|
-
|
977
|
-
request_headers = {}
|
978
|
-
|
979
|
-
# Set Headers
|
980
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
981
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
982
|
-
|
983
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
984
|
-
|
985
|
-
# Serialize Request
|
986
|
-
request_mapper = RedisUpdateParameters.mapper()
|
987
|
-
request_content = @client.serialize(request_mapper, parameters, 'parameters')
|
988
|
-
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
989
|
-
|
990
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/Redis/{name}'
|
991
|
-
|
992
|
-
request_url = @base_url || @client.base_url
|
993
|
-
|
994
|
-
options = {
|
995
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
996
|
-
path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
|
997
|
-
query_params: {'api-version' => @client.api_version},
|
998
|
-
body: request_content,
|
999
|
-
headers: request_headers.merge(custom_headers || {}),
|
1000
|
-
base_url: request_url
|
1001
|
-
}
|
1002
|
-
promise = @client.make_request_async(:patch, path_template, options)
|
1003
|
-
|
1004
|
-
promise = promise.then do |result|
|
1005
|
-
http_response = result.response
|
1006
|
-
status_code = http_response.status
|
1007
|
-
response_content = http_response.body
|
1008
|
-
unless status_code == 200
|
1009
|
-
error_model = JSON.load(response_content)
|
1010
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1011
|
-
end
|
1012
|
-
|
1013
|
-
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1014
|
-
# Deserialize Response
|
1015
|
-
if status_code == 200
|
1016
|
-
begin
|
1017
|
-
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1018
|
-
result_mapper = RedisResource.mapper()
|
1019
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
1020
|
-
rescue Exception => e
|
1021
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1022
|
-
end
|
1023
|
-
end
|
1024
|
-
|
1025
|
-
result
|
1026
|
-
end
|
1027
|
-
|
1028
|
-
promise.execute
|
1029
|
-
end
|
1030
|
-
|
1031
985
|
#
|
1032
986
|
# Deletes a Redis cache.
|
1033
987
|
#
|
@@ -1205,7 +1159,7 @@ module Azure::ARM::Redis
|
|
1205
1159
|
end
|
1206
1160
|
|
1207
1161
|
#
|
1208
|
-
#
|
1162
|
+
# Export data from the redis cache to blobs in a container.
|
1209
1163
|
#
|
1210
1164
|
# @param resource_group_name [String] The name of the resource group.
|
1211
1165
|
# @param name [String] The name of the Redis cache.
|
@@ -1221,7 +1175,7 @@ module Azure::ARM::Redis
|
|
1221
1175
|
end
|
1222
1176
|
|
1223
1177
|
#
|
1224
|
-
#
|
1178
|
+
# Export data from the redis cache to blobs in a container.
|
1225
1179
|
#
|
1226
1180
|
# @param resource_group_name [String] The name of the resource group.
|
1227
1181
|
# @param name [String] The name of the Redis cache.
|
@@ -1237,7 +1191,7 @@ module Azure::ARM::Redis
|
|
1237
1191
|
end
|
1238
1192
|
|
1239
1193
|
#
|
1240
|
-
#
|
1194
|
+
# Export data from the redis cache to blobs in a container.
|
1241
1195
|
#
|
1242
1196
|
# @param resource_group_name [String] The name of the resource group.
|
1243
1197
|
# @param name [String] The name of the Redis cache.
|
@@ -48,12 +48,11 @@ module Azure::ARM::Redis
|
|
48
48
|
# @param base_url [String] the base URI of the service.
|
49
49
|
# @param options [Array] filters to be applied to the HTTP requests.
|
50
50
|
#
|
51
|
-
def initialize(credentials, base_url = nil, options = nil)
|
51
|
+
def initialize(credentials = nil, base_url = nil, options = nil)
|
52
52
|
super(credentials, options)
|
53
53
|
@base_url = base_url || 'https://management.azure.com'
|
54
54
|
|
55
|
-
fail ArgumentError, 'credentials
|
56
|
-
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials)
|
55
|
+
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
57
56
|
@credentials = credentials
|
58
57
|
|
59
58
|
@redis = Redis.new(self)
|
@@ -67,7 +66,7 @@ module Azure::ARM::Redis
|
|
67
66
|
|
68
67
|
#
|
69
68
|
# Makes a request and returns the body of the response.
|
70
|
-
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
69
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
71
70
|
# @param path [String] the path, relative to {base_url}.
|
72
71
|
# @param options [Hash{String=>String}] specifying any request options like :body.
|
73
72
|
# @return [Hash{String=>String}] containing the body of the response.
|
@@ -128,7 +127,7 @@ module Azure::ARM::Redis
|
|
128
127
|
def add_telemetry
|
129
128
|
sdk_information = 'azure_mgmt_redis'
|
130
129
|
if defined? Azure::ARM::Redis::VERSION
|
131
|
-
sdk_information = "#{sdk_information}/#{Azure::ARM::Redis::VERSION}"
|
130
|
+
sdk_information = "#{sdk_information}/#{Azure::ARM::Redis::VERSION}"
|
132
131
|
end
|
133
132
|
add_user_agent_information(sdk_information)
|
134
133
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_mgmt_redis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.7.0
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: 0.7.0
|
83
83
|
description: Microsoft Azure Redis Management Client Library for Ruby
|
84
84
|
email: azrubyteam@microsoft.com
|
85
85
|
executables: []
|