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.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-08-01/generated/azure_mgmt_redis/redis.rb +66 -62
  3. data/lib/2015-08-01/generated/azure_mgmt_redis/redis_management_client.rb +4 -1
  4. data/lib/2016-04-01/generated/azure_mgmt_redis/firewall_rules.rb +15 -13
  5. data/lib/2016-04-01/generated/azure_mgmt_redis/models/redis_update_parameters.rb +1 -1
  6. data/lib/2016-04-01/generated/azure_mgmt_redis/operations.rb +15 -13
  7. data/lib/2016-04-01/generated/azure_mgmt_redis/patch_schedules.rb +18 -17
  8. data/lib/2016-04-01/generated/azure_mgmt_redis/redis.rb +100 -99
  9. data/lib/2016-04-01/generated/azure_mgmt_redis/redis_firewall_rule_operations.rb +18 -17
  10. data/lib/2016-04-01/generated/azure_mgmt_redis/redis_management_client.rb +4 -1
  11. data/lib/2017-02-01/generated/azure_mgmt_redis/firewall_rules.rb +33 -30
  12. data/lib/2017-02-01/generated/azure_mgmt_redis/models/redis_update_parameters.rb +1 -1
  13. data/lib/2017-02-01/generated/azure_mgmt_redis/operations.rb +15 -13
  14. data/lib/2017-02-01/generated/azure_mgmt_redis/patch_schedules.rb +18 -17
  15. data/lib/2017-02-01/generated/azure_mgmt_redis/redis.rb +100 -99
  16. data/lib/2017-02-01/generated/azure_mgmt_redis/redis_linked_server_operations.rb +28 -26
  17. data/lib/2017-02-01/generated/azure_mgmt_redis/redis_management_client.rb +4 -1
  18. data/lib/2017-10-01/generated/azure_mgmt_redis.rb +64 -0
  19. data/lib/2017-10-01/generated/azure_mgmt_redis/firewall_rules.rb +528 -0
  20. data/lib/2017-10-01/generated/azure_mgmt_redis/linked_server.rb +594 -0
  21. data/lib/2017-10-01/generated/azure_mgmt_redis/models/day_of_week.rb +23 -0
  22. data/lib/2017-10-01/generated/azure_mgmt_redis/models/export_rdbparameters.rb +68 -0
  23. data/lib/2017-10-01/generated/azure_mgmt_redis/models/import_rdbparameters.rb +65 -0
  24. data/lib/2017-10-01/generated/azure_mgmt_redis/models/operation.rb +58 -0
  25. data/lib/2017-10-01/generated/azure_mgmt_redis/models/operation_display.rb +80 -0
  26. data/lib/2017-10-01/generated/azure_mgmt_redis/models/operation_list_result.rb +102 -0
  27. data/lib/2017-10-01/generated/azure_mgmt_redis/models/proxy_resource.rb +63 -0
  28. data/lib/2017-10-01/generated/azure_mgmt_redis/models/reboot_type.rb +17 -0
  29. data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_access_keys.rb +61 -0
  30. data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_create_parameters.rb +192 -0
  31. data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_firewall_rule.rb +85 -0
  32. data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_firewall_rule_create_parameters.rb +57 -0
  33. data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_firewall_rule_list_result.rb +100 -0
  34. data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_force_reboot_response.rb +47 -0
  35. data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_key_type.rb +16 -0
  36. data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_linked_server.rb +47 -0
  37. data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_linked_server_create_parameters.rb +70 -0
  38. data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_linked_server_with_properties.rb +110 -0
  39. data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_linked_server_with_properties_list.rb +100 -0
  40. data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_list_result.rb +99 -0
  41. data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_patch_schedule.rb +83 -0
  42. data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_reboot_parameters.rb +60 -0
  43. data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_regenerate_key_parameters.rb +48 -0
  44. data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_resource.rb +309 -0
  45. data/lib/2017-10-01/generated/azure_mgmt_redis/models/redis_update_parameters.rb +130 -0
  46. data/lib/2017-10-01/generated/azure_mgmt_redis/models/replication_role.rb +16 -0
  47. data/lib/2017-10-01/generated/azure_mgmt_redis/models/resource.rb +71 -0
  48. data/lib/2017-10-01/generated/azure_mgmt_redis/models/schedule_entry.rb +72 -0
  49. data/lib/2017-10-01/generated/azure_mgmt_redis/models/sku.rb +73 -0
  50. data/lib/2017-10-01/generated/azure_mgmt_redis/models/sku_family.rb +16 -0
  51. data/lib/2017-10-01/generated/azure_mgmt_redis/models/sku_name.rb +17 -0
  52. data/lib/2017-10-01/generated/azure_mgmt_redis/models/tracked_resource.rb +92 -0
  53. data/lib/2017-10-01/generated/azure_mgmt_redis/module_definition.rb +9 -0
  54. data/lib/2017-10-01/generated/azure_mgmt_redis/operations.rb +222 -0
  55. data/lib/2017-10-01/generated/azure_mgmt_redis/patch_schedules.rb +317 -0
  56. data/lib/2017-10-01/generated/azure_mgmt_redis/redis.rb +1482 -0
  57. data/lib/2017-10-01/generated/azure_mgmt_redis/redis_management_client.rb +148 -0
  58. data/lib/azure_mgmt_redis.rb +1 -0
  59. data/lib/profiles/latest/modules/redis_profile_module.rb +166 -147
  60. data/lib/profiles/latest/redis_latest_profile_client.rb +28 -9
  61. data/lib/profiles/latest/redis_module_definition.rb +0 -1
  62. data/lib/version.rb +1 -1
  63. metadata +43 -3
@@ -139,7 +139,7 @@ module Azure::Redis::Mgmt::V2016_04_01
139
139
  tags: {
140
140
  client_side_validation: true,
141
141
  required: false,
142
- serialized_name: 'properties.tags',
142
+ serialized_name: 'tags',
143
143
  type: {
144
144
  name: 'Dictionary',
145
145
  value: {
@@ -30,8 +30,8 @@ module Azure::Redis::Mgmt::V2016_04_01
30
30
  #
31
31
  # @return [Array<Operation>] operation results.
32
32
  #
33
- def list(custom_headers = nil)
34
- first_page = list_as_lazy(custom_headers)
33
+ def list(custom_headers:nil)
34
+ first_page = list_as_lazy(custom_headers:custom_headers)
35
35
  first_page.get_all_items
36
36
  end
37
37
 
@@ -44,8 +44,8 @@ module Azure::Redis::Mgmt::V2016_04_01
44
44
  #
45
45
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
46
46
  #
47
- def list_with_http_info(custom_headers = nil)
48
- list_async(custom_headers).value!
47
+ def list_with_http_info(custom_headers:nil)
48
+ list_async(custom_headers:custom_headers).value!
49
49
  end
50
50
 
51
51
  #
@@ -57,11 +57,12 @@ module Azure::Redis::Mgmt::V2016_04_01
57
57
  #
58
58
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
59
59
  #
60
- def list_async(custom_headers = nil)
60
+ def list_async(custom_headers:nil)
61
61
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
62
62
 
63
63
 
64
64
  request_headers = {}
65
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
65
66
 
66
67
  # Set Headers
67
68
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -116,8 +117,8 @@ module Azure::Redis::Mgmt::V2016_04_01
116
117
  #
117
118
  # @return [OperationListResult] operation results.
118
119
  #
119
- def list_next(next_page_link, custom_headers = nil)
120
- response = list_next_async(next_page_link, custom_headers).value!
120
+ def list_next(next_page_link, custom_headers:nil)
121
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
121
122
  response.body unless response.nil?
122
123
  end
123
124
 
@@ -132,8 +133,8 @@ module Azure::Redis::Mgmt::V2016_04_01
132
133
  #
133
134
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
134
135
  #
135
- def list_next_with_http_info(next_page_link, custom_headers = nil)
136
- list_next_async(next_page_link, custom_headers).value!
136
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
137
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
137
138
  end
138
139
 
139
140
  #
@@ -147,11 +148,12 @@ module Azure::Redis::Mgmt::V2016_04_01
147
148
  #
148
149
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
149
150
  #
150
- def list_next_async(next_page_link, custom_headers = nil)
151
+ def list_next_async(next_page_link, custom_headers:nil)
151
152
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
152
153
 
153
154
 
154
155
  request_headers = {}
156
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
155
157
 
156
158
  # Set Headers
157
159
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -205,12 +207,12 @@ module Azure::Redis::Mgmt::V2016_04_01
205
207
  # @return [OperationListResult] which provide lazy access to pages of the
206
208
  # response.
207
209
  #
208
- def list_as_lazy(custom_headers = nil)
209
- response = list_async(custom_headers).value!
210
+ def list_as_lazy(custom_headers:nil)
211
+ response = list_async(custom_headers:custom_headers).value!
210
212
  unless response.nil?
211
213
  page = response.body
212
214
  page.next_method = Proc.new do |next_page_link|
213
- list_next_async(next_page_link, custom_headers)
215
+ list_next_async(next_page_link, custom_headers:custom_headers)
214
216
  end
215
217
  page
216
218
  end
@@ -34,8 +34,8 @@ module Azure::Redis::Mgmt::V2016_04_01
34
34
  #
35
35
  # @return [RedisPatchSchedule] operation results.
36
36
  #
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).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::V2016_04_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 = nil)
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::V2016_04_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 = nil)
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::V2016_04_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::V2016_04_01::Models::RedisPatchSchedule.mapper()
90
89
  request_content = @client.serialize(request_mapper, parameters)
@@ -150,8 +149,8 @@ module Azure::Redis::Mgmt::V2016_04_01
150
149
  # will be added to the HTTP request.
151
150
  #
152
151
  #
153
- def delete(resource_group_name, name, custom_headers = nil)
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::V2016_04_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 = nil)
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::V2016_04_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 = nil)
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::V2016_04_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::V2016_04_01
231
231
  #
232
232
  # @return [RedisPatchSchedule] operation results.
233
233
  #
234
- def get(resource_group_name, name, custom_headers = nil)
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::V2016_04_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 = nil)
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::V2016_04_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 = nil)
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::V2016_04_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
@@ -34,8 +34,8 @@ module Azure::Redis::Mgmt::V2016_04_01
34
34
  #
35
35
  # @return [RedisResource] operation results.
36
36
  #
37
- def create(resource_group_name, name, parameters, custom_headers = nil)
38
- response = create_async(resource_group_name, name, parameters, custom_headers).value!
37
+ def create(resource_group_name, name, parameters, custom_headers:nil)
38
+ response = create_async(resource_group_name, name, parameters, custom_headers:custom_headers).value!
39
39
  response.body unless response.nil?
40
40
  end
41
41
 
@@ -50,9 +50,9 @@ module Azure::Redis::Mgmt::V2016_04_01
50
50
  # @return [Concurrent::Promise] promise which provides async access to http
51
51
  # response.
52
52
  #
53
- def create_async(resource_group_name, name, parameters, custom_headers = nil)
53
+ def create_async(resource_group_name, name, parameters, custom_headers:nil)
54
54
  # Send request
55
- promise = begin_create_async(resource_group_name, name, parameters, custom_headers)
55
+ promise = begin_create_async(resource_group_name, name, parameters, custom_headers:custom_headers)
56
56
 
57
57
  promise = promise.then do |response|
58
58
  # Defining deserialization method.
@@ -80,8 +80,8 @@ module Azure::Redis::Mgmt::V2016_04_01
80
80
  #
81
81
  # @return [RedisResource] operation results.
82
82
  #
83
- def update(resource_group_name, name, parameters, custom_headers = nil)
84
- response = update_async(resource_group_name, name, parameters, custom_headers).value!
83
+ def update(resource_group_name, name, parameters, custom_headers:nil)
84
+ response = update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value!
85
85
  response.body unless response.nil?
86
86
  end
87
87
 
@@ -97,8 +97,8 @@ module Azure::Redis::Mgmt::V2016_04_01
97
97
  #
98
98
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
99
99
  #
100
- def update_with_http_info(resource_group_name, name, parameters, custom_headers = nil)
101
- update_async(resource_group_name, name, parameters, custom_headers).value!
100
+ def update_with_http_info(resource_group_name, name, parameters, custom_headers:nil)
101
+ update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value!
102
102
  end
103
103
 
104
104
  #
@@ -113,7 +113,7 @@ module Azure::Redis::Mgmt::V2016_04_01
113
113
  #
114
114
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
115
115
  #
116
- def update_async(resource_group_name, name, parameters, custom_headers = nil)
116
+ def update_async(resource_group_name, name, parameters, custom_headers:nil)
117
117
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
118
118
  fail ArgumentError, 'name is nil' if name.nil?
119
119
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -122,13 +122,12 @@ module Azure::Redis::Mgmt::V2016_04_01
122
122
 
123
123
 
124
124
  request_headers = {}
125
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
125
126
 
126
127
  # Set Headers
127
128
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
128
129
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
129
130
 
130
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
131
-
132
131
  # Serialize Request
133
132
  request_mapper = Azure::Redis::Mgmt::V2016_04_01::Models::RedisUpdateParameters.mapper()
134
133
  request_content = @client.serialize(request_mapper, parameters)
@@ -183,8 +182,8 @@ module Azure::Redis::Mgmt::V2016_04_01
183
182
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
184
183
  # will be added to the HTTP request.
185
184
  #
186
- def delete(resource_group_name, name, custom_headers = nil)
187
- response = delete_async(resource_group_name, name, custom_headers).value!
185
+ def delete(resource_group_name, name, custom_headers:nil)
186
+ response = delete_async(resource_group_name, name, custom_headers:custom_headers).value!
188
187
  nil
189
188
  end
190
189
 
@@ -197,9 +196,9 @@ module Azure::Redis::Mgmt::V2016_04_01
197
196
  # @return [Concurrent::Promise] promise which provides async access to http
198
197
  # response.
199
198
  #
200
- def delete_async(resource_group_name, name, custom_headers = nil)
199
+ def delete_async(resource_group_name, name, custom_headers:nil)
201
200
  # Send request
202
- promise = begin_delete_async(resource_group_name, name, custom_headers)
201
+ promise = begin_delete_async(resource_group_name, name, custom_headers:custom_headers)
203
202
 
204
203
  promise = promise.then do |response|
205
204
  # Defining deserialization method.
@@ -223,8 +222,8 @@ module Azure::Redis::Mgmt::V2016_04_01
223
222
  #
224
223
  # @return [RedisResource] operation results.
225
224
  #
226
- def get(resource_group_name, name, custom_headers = nil)
227
- response = get_async(resource_group_name, name, custom_headers).value!
225
+ def get(resource_group_name, name, custom_headers:nil)
226
+ response = get_async(resource_group_name, name, custom_headers:custom_headers).value!
228
227
  response.body unless response.nil?
229
228
  end
230
229
 
@@ -238,8 +237,8 @@ module Azure::Redis::Mgmt::V2016_04_01
238
237
  #
239
238
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
240
239
  #
241
- def get_with_http_info(resource_group_name, name, custom_headers = nil)
242
- get_async(resource_group_name, name, custom_headers).value!
240
+ def get_with_http_info(resource_group_name, name, custom_headers:nil)
241
+ get_async(resource_group_name, name, custom_headers:custom_headers).value!
243
242
  end
244
243
 
245
244
  #
@@ -252,7 +251,7 @@ module Azure::Redis::Mgmt::V2016_04_01
252
251
  #
253
252
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
254
253
  #
255
- def get_async(resource_group_name, name, custom_headers = nil)
254
+ def get_async(resource_group_name, name, custom_headers:nil)
256
255
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
257
256
  fail ArgumentError, 'name is nil' if name.nil?
258
257
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -260,6 +259,7 @@ module Azure::Redis::Mgmt::V2016_04_01
260
259
 
261
260
 
262
261
  request_headers = {}
262
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
263
263
 
264
264
  # Set Headers
265
265
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -313,8 +313,8 @@ module Azure::Redis::Mgmt::V2016_04_01
313
313
  #
314
314
  # @return [Array<RedisResource>] operation results.
315
315
  #
316
- def list_by_resource_group(resource_group_name, custom_headers = nil)
317
- first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers)
316
+ def list_by_resource_group(resource_group_name, custom_headers:nil)
317
+ first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers)
318
318
  first_page.get_all_items
319
319
  end
320
320
 
@@ -327,8 +327,8 @@ module Azure::Redis::Mgmt::V2016_04_01
327
327
  #
328
328
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
329
329
  #
330
- def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil)
331
- list_by_resource_group_async(resource_group_name, custom_headers).value!
330
+ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
331
+ list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
332
332
  end
333
333
 
334
334
  #
@@ -340,13 +340,14 @@ module Azure::Redis::Mgmt::V2016_04_01
340
340
  #
341
341
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
342
342
  #
343
- def list_by_resource_group_async(resource_group_name, custom_headers = nil)
343
+ def list_by_resource_group_async(resource_group_name, custom_headers:nil)
344
344
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
345
345
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
346
346
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
347
347
 
348
348
 
349
349
  request_headers = {}
350
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
350
351
 
351
352
  # Set Headers
352
353
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -399,8 +400,8 @@ module Azure::Redis::Mgmt::V2016_04_01
399
400
  #
400
401
  # @return [Array<RedisResource>] operation results.
401
402
  #
402
- def list(custom_headers = nil)
403
- first_page = list_as_lazy(custom_headers)
403
+ def list(custom_headers:nil)
404
+ first_page = list_as_lazy(custom_headers:custom_headers)
404
405
  first_page.get_all_items
405
406
  end
406
407
 
@@ -412,8 +413,8 @@ module Azure::Redis::Mgmt::V2016_04_01
412
413
  #
413
414
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
414
415
  #
415
- def list_with_http_info(custom_headers = nil)
416
- list_async(custom_headers).value!
416
+ def list_with_http_info(custom_headers:nil)
417
+ list_async(custom_headers:custom_headers).value!
417
418
  end
418
419
 
419
420
  #
@@ -424,12 +425,13 @@ module Azure::Redis::Mgmt::V2016_04_01
424
425
  #
425
426
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
426
427
  #
427
- def list_async(custom_headers = nil)
428
+ def list_async(custom_headers:nil)
428
429
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
429
430
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
430
431
 
431
432
 
432
433
  request_headers = {}
434
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
433
435
 
434
436
  # Set Headers
435
437
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -485,8 +487,8 @@ module Azure::Redis::Mgmt::V2016_04_01
485
487
  #
486
488
  # @return [RedisAccessKeys] operation results.
487
489
  #
488
- def list_keys(resource_group_name, name, custom_headers = nil)
489
- response = list_keys_async(resource_group_name, name, custom_headers).value!
490
+ def list_keys(resource_group_name, name, custom_headers:nil)
491
+ response = list_keys_async(resource_group_name, name, custom_headers:custom_headers).value!
490
492
  response.body unless response.nil?
491
493
  end
492
494
 
@@ -501,8 +503,8 @@ module Azure::Redis::Mgmt::V2016_04_01
501
503
  #
502
504
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
503
505
  #
504
- def list_keys_with_http_info(resource_group_name, name, custom_headers = nil)
505
- list_keys_async(resource_group_name, name, custom_headers).value!
506
+ def list_keys_with_http_info(resource_group_name, name, custom_headers:nil)
507
+ list_keys_async(resource_group_name, name, custom_headers:custom_headers).value!
506
508
  end
507
509
 
508
510
  #
@@ -516,7 +518,7 @@ module Azure::Redis::Mgmt::V2016_04_01
516
518
  #
517
519
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
518
520
  #
519
- def list_keys_async(resource_group_name, name, custom_headers = nil)
521
+ def list_keys_async(resource_group_name, name, custom_headers:nil)
520
522
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
521
523
  fail ArgumentError, 'name is nil' if name.nil?
522
524
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -524,6 +526,7 @@ module Azure::Redis::Mgmt::V2016_04_01
524
526
 
525
527
 
526
528
  request_headers = {}
529
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
527
530
 
528
531
  # Set Headers
529
532
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -581,8 +584,8 @@ module Azure::Redis::Mgmt::V2016_04_01
581
584
  #
582
585
  # @return [RedisAccessKeys] operation results.
583
586
  #
584
- def regenerate_key(resource_group_name, name, parameters, custom_headers = nil)
585
- response = regenerate_key_async(resource_group_name, name, parameters, custom_headers).value!
587
+ def regenerate_key(resource_group_name, name, parameters, custom_headers:nil)
588
+ response = regenerate_key_async(resource_group_name, name, parameters, custom_headers:custom_headers).value!
586
589
  response.body unless response.nil?
587
590
  end
588
591
 
@@ -599,8 +602,8 @@ module Azure::Redis::Mgmt::V2016_04_01
599
602
  #
600
603
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
601
604
  #
602
- def regenerate_key_with_http_info(resource_group_name, name, parameters, custom_headers = nil)
603
- regenerate_key_async(resource_group_name, name, parameters, custom_headers).value!
605
+ def regenerate_key_with_http_info(resource_group_name, name, parameters, custom_headers:nil)
606
+ regenerate_key_async(resource_group_name, name, parameters, custom_headers:custom_headers).value!
604
607
  end
605
608
 
606
609
  #
@@ -616,7 +619,7 @@ module Azure::Redis::Mgmt::V2016_04_01
616
619
  #
617
620
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
618
621
  #
619
- def regenerate_key_async(resource_group_name, name, parameters, custom_headers = nil)
622
+ def regenerate_key_async(resource_group_name, name, parameters, custom_headers:nil)
620
623
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
621
624
  fail ArgumentError, 'name is nil' if name.nil?
622
625
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -625,13 +628,12 @@ module Azure::Redis::Mgmt::V2016_04_01
625
628
 
626
629
 
627
630
  request_headers = {}
631
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
628
632
 
629
633
  # Set Headers
630
634
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
631
635
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
632
636
 
633
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
634
-
635
637
  # Serialize Request
636
638
  request_mapper = Azure::Redis::Mgmt::V2016_04_01::Models::RedisRegenerateKeyParameters.mapper()
637
639
  request_content = @client.serialize(request_mapper, parameters)
@@ -691,8 +693,8 @@ module Azure::Redis::Mgmt::V2016_04_01
691
693
  #
692
694
  # @return [RedisForceRebootResponse] operation results.
693
695
  #
694
- def force_reboot(resource_group_name, name, parameters, custom_headers = nil)
695
- response = force_reboot_async(resource_group_name, name, parameters, custom_headers).value!
696
+ def force_reboot(resource_group_name, name, parameters, custom_headers:nil)
697
+ response = force_reboot_async(resource_group_name, name, parameters, custom_headers:custom_headers).value!
696
698
  response.body unless response.nil?
697
699
  end
698
700
 
@@ -709,8 +711,8 @@ module Azure::Redis::Mgmt::V2016_04_01
709
711
  #
710
712
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
711
713
  #
712
- def force_reboot_with_http_info(resource_group_name, name, parameters, custom_headers = nil)
713
- force_reboot_async(resource_group_name, name, parameters, custom_headers).value!
714
+ def force_reboot_with_http_info(resource_group_name, name, parameters, custom_headers:nil)
715
+ force_reboot_async(resource_group_name, name, parameters, custom_headers:custom_headers).value!
714
716
  end
715
717
 
716
718
  #
@@ -726,7 +728,7 @@ module Azure::Redis::Mgmt::V2016_04_01
726
728
  #
727
729
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
728
730
  #
729
- def force_reboot_async(resource_group_name, name, parameters, custom_headers = nil)
731
+ def force_reboot_async(resource_group_name, name, parameters, custom_headers:nil)
730
732
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
731
733
  fail ArgumentError, 'name is nil' if name.nil?
732
734
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -735,13 +737,12 @@ module Azure::Redis::Mgmt::V2016_04_01
735
737
 
736
738
 
737
739
  request_headers = {}
740
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
738
741
 
739
742
  # Set Headers
740
743
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
741
744
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
742
745
 
743
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
744
-
745
746
  # Serialize Request
746
747
  request_mapper = Azure::Redis::Mgmt::V2016_04_01::Models::RedisRebootParameters.mapper()
747
748
  request_content = @client.serialize(request_mapper, parameters)
@@ -798,8 +799,8 @@ module Azure::Redis::Mgmt::V2016_04_01
798
799
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
799
800
  # will be added to the HTTP request.
800
801
  #
801
- def import_data(resource_group_name, name, parameters, custom_headers = nil)
802
- response = import_data_async(resource_group_name, name, parameters, custom_headers).value!
802
+ def import_data(resource_group_name, name, parameters, custom_headers:nil)
803
+ response = import_data_async(resource_group_name, name, parameters, custom_headers:custom_headers).value!
803
804
  nil
804
805
  end
805
806
 
@@ -814,9 +815,9 @@ module Azure::Redis::Mgmt::V2016_04_01
814
815
  # @return [Concurrent::Promise] promise which provides async access to http
815
816
  # response.
816
817
  #
817
- def import_data_async(resource_group_name, name, parameters, custom_headers = nil)
818
+ def import_data_async(resource_group_name, name, parameters, custom_headers:nil)
818
819
  # Send request
819
- promise = begin_import_data_async(resource_group_name, name, parameters, custom_headers)
820
+ promise = begin_import_data_async(resource_group_name, name, parameters, custom_headers:custom_headers)
820
821
 
821
822
  promise = promise.then do |response|
822
823
  # Defining deserialization method.
@@ -840,8 +841,8 @@ module Azure::Redis::Mgmt::V2016_04_01
840
841
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
841
842
  # will be added to the HTTP request.
842
843
  #
843
- def export_data(resource_group_name, name, parameters, custom_headers = nil)
844
- response = export_data_async(resource_group_name, name, parameters, custom_headers).value!
844
+ def export_data(resource_group_name, name, parameters, custom_headers:nil)
845
+ response = export_data_async(resource_group_name, name, parameters, custom_headers:custom_headers).value!
845
846
  nil
846
847
  end
847
848
 
@@ -856,9 +857,9 @@ module Azure::Redis::Mgmt::V2016_04_01
856
857
  # @return [Concurrent::Promise] promise which provides async access to http
857
858
  # response.
858
859
  #
859
- def export_data_async(resource_group_name, name, parameters, custom_headers = nil)
860
+ def export_data_async(resource_group_name, name, parameters, custom_headers:nil)
860
861
  # Send request
861
- promise = begin_export_data_async(resource_group_name, name, parameters, custom_headers)
862
+ promise = begin_export_data_async(resource_group_name, name, parameters, custom_headers:custom_headers)
862
863
 
863
864
  promise = promise.then do |response|
864
865
  # Defining deserialization method.
@@ -885,8 +886,8 @@ module Azure::Redis::Mgmt::V2016_04_01
885
886
  #
886
887
  # @return [RedisResource] operation results.
887
888
  #
888
- def begin_create(resource_group_name, name, parameters, custom_headers = nil)
889
- response = begin_create_async(resource_group_name, name, parameters, custom_headers).value!
889
+ def begin_create(resource_group_name, name, parameters, custom_headers:nil)
890
+ response = begin_create_async(resource_group_name, name, parameters, custom_headers:custom_headers).value!
890
891
  response.body unless response.nil?
891
892
  end
892
893
 
@@ -903,8 +904,8 @@ module Azure::Redis::Mgmt::V2016_04_01
903
904
  #
904
905
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
905
906
  #
906
- def begin_create_with_http_info(resource_group_name, name, parameters, custom_headers = nil)
907
- begin_create_async(resource_group_name, name, parameters, custom_headers).value!
907
+ def begin_create_with_http_info(resource_group_name, name, parameters, custom_headers:nil)
908
+ begin_create_async(resource_group_name, name, parameters, custom_headers:custom_headers).value!
908
909
  end
909
910
 
910
911
  #
@@ -920,7 +921,7 @@ module Azure::Redis::Mgmt::V2016_04_01
920
921
  #
921
922
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
922
923
  #
923
- def begin_create_async(resource_group_name, name, parameters, custom_headers = nil)
924
+ def begin_create_async(resource_group_name, name, parameters, custom_headers:nil)
924
925
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
925
926
  fail ArgumentError, 'name is nil' if name.nil?
926
927
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -929,13 +930,12 @@ module Azure::Redis::Mgmt::V2016_04_01
929
930
 
930
931
 
931
932
  request_headers = {}
933
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
932
934
 
933
935
  # Set Headers
934
936
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
935
937
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
936
938
 
937
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
938
-
939
939
  # Serialize Request
940
940
  request_mapper = Azure::Redis::Mgmt::V2016_04_01::Models::RedisCreateParameters.mapper()
941
941
  request_content = @client.serialize(request_mapper, parameters)
@@ -1001,8 +1001,8 @@ module Azure::Redis::Mgmt::V2016_04_01
1001
1001
  # will be added to the HTTP request.
1002
1002
  #
1003
1003
  #
1004
- def begin_delete(resource_group_name, name, custom_headers = nil)
1005
- response = begin_delete_async(resource_group_name, name, custom_headers).value!
1004
+ def begin_delete(resource_group_name, name, custom_headers:nil)
1005
+ response = begin_delete_async(resource_group_name, name, custom_headers:custom_headers).value!
1006
1006
  nil
1007
1007
  end
1008
1008
 
@@ -1016,8 +1016,8 @@ module Azure::Redis::Mgmt::V2016_04_01
1016
1016
  #
1017
1017
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1018
1018
  #
1019
- def begin_delete_with_http_info(resource_group_name, name, custom_headers = nil)
1020
- begin_delete_async(resource_group_name, name, custom_headers).value!
1019
+ def begin_delete_with_http_info(resource_group_name, name, custom_headers:nil)
1020
+ begin_delete_async(resource_group_name, name, custom_headers:custom_headers).value!
1021
1021
  end
1022
1022
 
1023
1023
  #
@@ -1030,7 +1030,7 @@ module Azure::Redis::Mgmt::V2016_04_01
1030
1030
  #
1031
1031
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1032
1032
  #
1033
- def begin_delete_async(resource_group_name, name, custom_headers = nil)
1033
+ def begin_delete_async(resource_group_name, name, custom_headers:nil)
1034
1034
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1035
1035
  fail ArgumentError, 'name is nil' if name.nil?
1036
1036
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -1038,6 +1038,7 @@ module Azure::Redis::Mgmt::V2016_04_01
1038
1038
 
1039
1039
 
1040
1040
  request_headers = {}
1041
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1041
1042
 
1042
1043
  # Set Headers
1043
1044
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1083,8 +1084,8 @@ module Azure::Redis::Mgmt::V2016_04_01
1083
1084
  # will be added to the HTTP request.
1084
1085
  #
1085
1086
  #
1086
- def begin_import_data(resource_group_name, name, parameters, custom_headers = nil)
1087
- response = begin_import_data_async(resource_group_name, name, parameters, custom_headers).value!
1087
+ def begin_import_data(resource_group_name, name, parameters, custom_headers:nil)
1088
+ response = begin_import_data_async(resource_group_name, name, parameters, custom_headers:custom_headers).value!
1088
1089
  nil
1089
1090
  end
1090
1091
 
@@ -1100,8 +1101,8 @@ module Azure::Redis::Mgmt::V2016_04_01
1100
1101
  #
1101
1102
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1102
1103
  #
1103
- def begin_import_data_with_http_info(resource_group_name, name, parameters, custom_headers = nil)
1104
- begin_import_data_async(resource_group_name, name, parameters, custom_headers).value!
1104
+ def begin_import_data_with_http_info(resource_group_name, name, parameters, custom_headers:nil)
1105
+ begin_import_data_async(resource_group_name, name, parameters, custom_headers:custom_headers).value!
1105
1106
  end
1106
1107
 
1107
1108
  #
@@ -1116,7 +1117,7 @@ module Azure::Redis::Mgmt::V2016_04_01
1116
1117
  #
1117
1118
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1118
1119
  #
1119
- def begin_import_data_async(resource_group_name, name, parameters, custom_headers = nil)
1120
+ def begin_import_data_async(resource_group_name, name, parameters, custom_headers:nil)
1120
1121
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1121
1122
  fail ArgumentError, 'name is nil' if name.nil?
1122
1123
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -1125,13 +1126,12 @@ module Azure::Redis::Mgmt::V2016_04_01
1125
1126
 
1126
1127
 
1127
1128
  request_headers = {}
1129
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1128
1130
 
1129
1131
  # Set Headers
1130
1132
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1131
1133
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1132
1134
 
1133
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1134
-
1135
1135
  # Serialize Request
1136
1136
  request_mapper = Azure::Redis::Mgmt::V2016_04_01::Models::ImportRDBParameters.mapper()
1137
1137
  request_content = @client.serialize(request_mapper, parameters)
@@ -1179,8 +1179,8 @@ module Azure::Redis::Mgmt::V2016_04_01
1179
1179
  # will be added to the HTTP request.
1180
1180
  #
1181
1181
  #
1182
- def begin_export_data(resource_group_name, name, parameters, custom_headers = nil)
1183
- response = begin_export_data_async(resource_group_name, name, parameters, custom_headers).value!
1182
+ def begin_export_data(resource_group_name, name, parameters, custom_headers:nil)
1183
+ response = begin_export_data_async(resource_group_name, name, parameters, custom_headers:custom_headers).value!
1184
1184
  nil
1185
1185
  end
1186
1186
 
@@ -1196,8 +1196,8 @@ module Azure::Redis::Mgmt::V2016_04_01
1196
1196
  #
1197
1197
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1198
1198
  #
1199
- def begin_export_data_with_http_info(resource_group_name, name, parameters, custom_headers = nil)
1200
- begin_export_data_async(resource_group_name, name, parameters, custom_headers).value!
1199
+ def begin_export_data_with_http_info(resource_group_name, name, parameters, custom_headers:nil)
1200
+ begin_export_data_async(resource_group_name, name, parameters, custom_headers:custom_headers).value!
1201
1201
  end
1202
1202
 
1203
1203
  #
@@ -1212,7 +1212,7 @@ module Azure::Redis::Mgmt::V2016_04_01
1212
1212
  #
1213
1213
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1214
1214
  #
1215
- def begin_export_data_async(resource_group_name, name, parameters, custom_headers = nil)
1215
+ def begin_export_data_async(resource_group_name, name, parameters, custom_headers:nil)
1216
1216
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1217
1217
  fail ArgumentError, 'name is nil' if name.nil?
1218
1218
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -1221,13 +1221,12 @@ module Azure::Redis::Mgmt::V2016_04_01
1221
1221
 
1222
1222
 
1223
1223
  request_headers = {}
1224
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1224
1225
 
1225
1226
  # Set Headers
1226
1227
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1227
1228
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1228
1229
 
1229
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1230
-
1231
1230
  # Serialize Request
1232
1231
  request_mapper = Azure::Redis::Mgmt::V2016_04_01::Models::ExportRDBParameters.mapper()
1233
1232
  request_content = @client.serialize(request_mapper, parameters)
@@ -1274,8 +1273,8 @@ module Azure::Redis::Mgmt::V2016_04_01
1274
1273
  #
1275
1274
  # @return [RedisListResult] operation results.
1276
1275
  #
1277
- def list_by_resource_group_next(next_page_link, custom_headers = nil)
1278
- response = list_by_resource_group_next_async(next_page_link, custom_headers).value!
1276
+ def list_by_resource_group_next(next_page_link, custom_headers:nil)
1277
+ response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
1279
1278
  response.body unless response.nil?
1280
1279
  end
1281
1280
 
@@ -1289,8 +1288,8 @@ module Azure::Redis::Mgmt::V2016_04_01
1289
1288
  #
1290
1289
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1291
1290
  #
1292
- def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil)
1293
- list_by_resource_group_next_async(next_page_link, custom_headers).value!
1291
+ def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
1292
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
1294
1293
  end
1295
1294
 
1296
1295
  #
@@ -1303,11 +1302,12 @@ module Azure::Redis::Mgmt::V2016_04_01
1303
1302
  #
1304
1303
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1305
1304
  #
1306
- def list_by_resource_group_next_async(next_page_link, custom_headers = nil)
1305
+ def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
1307
1306
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1308
1307
 
1309
1308
 
1310
1309
  request_headers = {}
1310
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1311
1311
 
1312
1312
  # Set Headers
1313
1313
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1361,8 +1361,8 @@ module Azure::Redis::Mgmt::V2016_04_01
1361
1361
  #
1362
1362
  # @return [RedisListResult] operation results.
1363
1363
  #
1364
- def list_next(next_page_link, custom_headers = nil)
1365
- response = list_next_async(next_page_link, custom_headers).value!
1364
+ def list_next(next_page_link, custom_headers:nil)
1365
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
1366
1366
  response.body unless response.nil?
1367
1367
  end
1368
1368
 
@@ -1376,8 +1376,8 @@ module Azure::Redis::Mgmt::V2016_04_01
1376
1376
  #
1377
1377
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1378
1378
  #
1379
- def list_next_with_http_info(next_page_link, custom_headers = nil)
1380
- list_next_async(next_page_link, custom_headers).value!
1379
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
1380
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
1381
1381
  end
1382
1382
 
1383
1383
  #
@@ -1390,11 +1390,12 @@ module Azure::Redis::Mgmt::V2016_04_01
1390
1390
  #
1391
1391
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1392
1392
  #
1393
- def list_next_async(next_page_link, custom_headers = nil)
1393
+ def list_next_async(next_page_link, custom_headers:nil)
1394
1394
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1395
1395
 
1396
1396
 
1397
1397
  request_headers = {}
1398
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1398
1399
 
1399
1400
  # Set Headers
1400
1401
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1447,12 +1448,12 @@ module Azure::Redis::Mgmt::V2016_04_01
1447
1448
  #
1448
1449
  # @return [RedisListResult] which provide lazy access to pages of the response.
1449
1450
  #
1450
- def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil)
1451
- response = list_by_resource_group_async(resource_group_name, custom_headers).value!
1451
+ def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil)
1452
+ response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
1452
1453
  unless response.nil?
1453
1454
  page = response.body
1454
1455
  page.next_method = Proc.new do |next_page_link|
1455
- list_by_resource_group_next_async(next_page_link, custom_headers)
1456
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
1456
1457
  end
1457
1458
  page
1458
1459
  end
@@ -1466,12 +1467,12 @@ module Azure::Redis::Mgmt::V2016_04_01
1466
1467
  #
1467
1468
  # @return [RedisListResult] which provide lazy access to pages of the response.
1468
1469
  #
1469
- def list_as_lazy(custom_headers = nil)
1470
- response = list_async(custom_headers).value!
1470
+ def list_as_lazy(custom_headers:nil)
1471
+ response = list_async(custom_headers:custom_headers).value!
1471
1472
  unless response.nil?
1472
1473
  page = response.body
1473
1474
  page.next_method = Proc.new do |next_page_link|
1474
- list_next_async(next_page_link, custom_headers)
1475
+ list_next_async(next_page_link, custom_headers:custom_headers)
1475
1476
  end
1476
1477
  page
1477
1478
  end