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
@@ -34,8 +34,8 @@ module Azure::Redis::Mgmt::V2016_04_01
34
34
  #
35
35
  # @return [RedisFirewallRule] operation results.
36
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!
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: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, cache_name, rule_name, parameters, custom_headers = nil)
56
- create_or_update_async(resource_group_name, cache_name, rule_name, parameters, custom_headers).value!
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: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, cache_name, rule_name, parameters, custom_headers = nil)
72
+ def create_or_update_async(resource_group_name, cache_name, rule_name, parameters, custom_headers:nil)
73
73
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
74
74
  fail ArgumentError, 'cache_name is nil' if cache_name.nil?
75
75
  fail ArgumentError, 'rule_name is nil' if rule_name.nil?
@@ -79,13 +79,12 @@ module Azure::Redis::Mgmt::V2016_04_01
79
79
 
80
80
 
81
81
  request_headers = {}
82
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
82
83
 
83
84
  # Set Headers
84
85
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
85
86
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
86
87
 
87
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
88
-
89
88
  # Serialize Request
90
89
  request_mapper = Azure::Redis::Mgmt::V2016_04_01::Models::RedisFirewallRule.mapper()
91
90
  request_content = @client.serialize(request_mapper, parameters)
@@ -153,8 +152,8 @@ module Azure::Redis::Mgmt::V2016_04_01
153
152
  #
154
153
  # @return [RedisFirewallRule] operation results.
155
154
  #
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!
155
+ def get(resource_group_name, cache_name, rule_name, custom_headers:nil)
156
+ response = get_async(resource_group_name, cache_name, rule_name, custom_headers:custom_headers).value!
158
157
  response.body unless response.nil?
159
158
  end
160
159
 
@@ -169,8 +168,8 @@ module Azure::Redis::Mgmt::V2016_04_01
169
168
  #
170
169
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
171
170
  #
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!
171
+ def get_with_http_info(resource_group_name, cache_name, rule_name, custom_headers:nil)
172
+ get_async(resource_group_name, cache_name, rule_name, custom_headers:custom_headers).value!
174
173
  end
175
174
 
176
175
  #
@@ -184,7 +183,7 @@ module Azure::Redis::Mgmt::V2016_04_01
184
183
  #
185
184
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
186
185
  #
187
- def get_async(resource_group_name, cache_name, rule_name, custom_headers = nil)
186
+ def get_async(resource_group_name, cache_name, rule_name, custom_headers:nil)
188
187
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
189
188
  fail ArgumentError, 'cache_name is nil' if cache_name.nil?
190
189
  fail ArgumentError, 'rule_name is nil' if rule_name.nil?
@@ -193,6 +192,7 @@ module Azure::Redis::Mgmt::V2016_04_01
193
192
 
194
193
 
195
194
  request_headers = {}
195
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
196
196
 
197
197
  # Set Headers
198
198
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -247,8 +247,8 @@ module Azure::Redis::Mgmt::V2016_04_01
247
247
  # will be added to the HTTP request.
248
248
  #
249
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!
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:custom_headers).value!
252
252
  nil
253
253
  end
254
254
 
@@ -263,8 +263,8 @@ module Azure::Redis::Mgmt::V2016_04_01
263
263
  #
264
264
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
265
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!
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:custom_headers).value!
268
268
  end
269
269
 
270
270
  #
@@ -278,7 +278,7 @@ module Azure::Redis::Mgmt::V2016_04_01
278
278
  #
279
279
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
280
280
  #
281
- def delete_async(resource_group_name, cache_name, rule_name, custom_headers = nil)
281
+ def delete_async(resource_group_name, cache_name, rule_name, custom_headers:nil)
282
282
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
283
283
  fail ArgumentError, 'cache_name is nil' if cache_name.nil?
284
284
  fail ArgumentError, 'rule_name is nil' if rule_name.nil?
@@ -287,6 +287,7 @@ module Azure::Redis::Mgmt::V2016_04_01
287
287
 
288
288
 
289
289
  request_headers = {}
290
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
290
291
 
291
292
  # Set Headers
292
293
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -122,6 +122,9 @@ module Azure::Redis::Mgmt::V2016_04_01
122
122
  fail ArgumentError, 'path is nil' if path.nil?
123
123
 
124
124
  request_url = options[:base_url] || @base_url
125
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
126
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
127
+ end
125
128
 
126
129
  request_headers = @request_headers
127
130
  request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
@@ -138,7 +141,7 @@ module Azure::Redis::Mgmt::V2016_04_01
138
141
  #
139
142
  def add_telemetry
140
143
  sdk_information = 'azure_mgmt_redis'
141
- sdk_information = "#{sdk_information}/0.15.2"
144
+ sdk_information = "#{sdk_information}/0.16.0"
142
145
  add_user_agent_information(sdk_information)
143
146
  end
144
147
  end
@@ -31,8 +31,8 @@ module Azure::Redis::Mgmt::V2017_02_01
31
31
  #
32
32
  # @return [Array<RedisFirewallRule>] operation results.
33
33
  #
34
- def list_by_redis_resource(resource_group_name, cache_name, custom_headers = nil)
35
- first_page = list_by_redis_resource_as_lazy(resource_group_name, cache_name, custom_headers)
34
+ def list_by_redis_resource(resource_group_name, cache_name, custom_headers:nil)
35
+ first_page = list_by_redis_resource_as_lazy(resource_group_name, cache_name, custom_headers:custom_headers)
36
36
  first_page.get_all_items
37
37
  end
38
38
 
@@ -46,8 +46,8 @@ module Azure::Redis::Mgmt::V2017_02_01
46
46
  #
47
47
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
48
48
  #
49
- def list_by_redis_resource_with_http_info(resource_group_name, cache_name, custom_headers = nil)
50
- list_by_redis_resource_async(resource_group_name, cache_name, custom_headers).value!
49
+ def list_by_redis_resource_with_http_info(resource_group_name, cache_name, custom_headers:nil)
50
+ list_by_redis_resource_async(resource_group_name, cache_name, custom_headers:custom_headers).value!
51
51
  end
52
52
 
53
53
  #
@@ -60,7 +60,7 @@ module Azure::Redis::Mgmt::V2017_02_01
60
60
  #
61
61
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
62
62
  #
63
- def list_by_redis_resource_async(resource_group_name, cache_name, custom_headers = nil)
63
+ def list_by_redis_resource_async(resource_group_name, cache_name, custom_headers:nil)
64
64
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
65
65
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
66
66
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
@@ -68,6 +68,7 @@ module Azure::Redis::Mgmt::V2017_02_01
68
68
 
69
69
 
70
70
  request_headers = {}
71
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
71
72
 
72
73
  # Set Headers
73
74
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -125,8 +126,8 @@ module Azure::Redis::Mgmt::V2017_02_01
125
126
  #
126
127
  # @return [RedisFirewallRule] operation results.
127
128
  #
128
- def create_or_update(resource_group_name, cache_name, rule_name, parameters, custom_headers = nil)
129
- response = create_or_update_async(resource_group_name, cache_name, rule_name, parameters, custom_headers).value!
129
+ def create_or_update(resource_group_name, cache_name, rule_name, parameters, custom_headers:nil)
130
+ response = create_or_update_async(resource_group_name, cache_name, rule_name, parameters, custom_headers:custom_headers).value!
130
131
  response.body unless response.nil?
131
132
  end
132
133
 
@@ -143,8 +144,8 @@ module Azure::Redis::Mgmt::V2017_02_01
143
144
  #
144
145
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
145
146
  #
146
- def create_or_update_with_http_info(resource_group_name, cache_name, rule_name, parameters, custom_headers = nil)
147
- create_or_update_async(resource_group_name, cache_name, rule_name, parameters, custom_headers).value!
147
+ def create_or_update_with_http_info(resource_group_name, cache_name, rule_name, parameters, custom_headers:nil)
148
+ create_or_update_async(resource_group_name, cache_name, rule_name, parameters, custom_headers:custom_headers).value!
148
149
  end
149
150
 
150
151
  #
@@ -160,7 +161,7 @@ module Azure::Redis::Mgmt::V2017_02_01
160
161
  #
161
162
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
162
163
  #
163
- def create_or_update_async(resource_group_name, cache_name, rule_name, parameters, custom_headers = nil)
164
+ def create_or_update_async(resource_group_name, cache_name, rule_name, parameters, custom_headers:nil)
164
165
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
165
166
  fail ArgumentError, 'cache_name is nil' if cache_name.nil?
166
167
  fail ArgumentError, 'rule_name is nil' if rule_name.nil?
@@ -170,13 +171,12 @@ module Azure::Redis::Mgmt::V2017_02_01
170
171
 
171
172
 
172
173
  request_headers = {}
174
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
173
175
 
174
176
  # Set Headers
175
177
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
176
178
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
177
179
 
178
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
179
-
180
180
  # Serialize Request
181
181
  request_mapper = Azure::Redis::Mgmt::V2017_02_01::Models::RedisFirewallRule.mapper()
182
182
  request_content = @client.serialize(request_mapper, parameters)
@@ -244,8 +244,8 @@ module Azure::Redis::Mgmt::V2017_02_01
244
244
  #
245
245
  # @return [RedisFirewallRule] operation results.
246
246
  #
247
- def get(resource_group_name, cache_name, rule_name, custom_headers = nil)
248
- response = get_async(resource_group_name, cache_name, rule_name, custom_headers).value!
247
+ def get(resource_group_name, cache_name, rule_name, custom_headers:nil)
248
+ response = get_async(resource_group_name, cache_name, rule_name, custom_headers:custom_headers).value!
249
249
  response.body unless response.nil?
250
250
  end
251
251
 
@@ -260,8 +260,8 @@ module Azure::Redis::Mgmt::V2017_02_01
260
260
  #
261
261
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
262
262
  #
263
- def get_with_http_info(resource_group_name, cache_name, rule_name, custom_headers = nil)
264
- get_async(resource_group_name, cache_name, rule_name, custom_headers).value!
263
+ def get_with_http_info(resource_group_name, cache_name, rule_name, custom_headers:nil)
264
+ get_async(resource_group_name, cache_name, rule_name, custom_headers:custom_headers).value!
265
265
  end
266
266
 
267
267
  #
@@ -275,7 +275,7 @@ module Azure::Redis::Mgmt::V2017_02_01
275
275
  #
276
276
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
277
277
  #
278
- def get_async(resource_group_name, cache_name, rule_name, custom_headers = nil)
278
+ def get_async(resource_group_name, cache_name, rule_name, custom_headers:nil)
279
279
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
280
280
  fail ArgumentError, 'cache_name is nil' if cache_name.nil?
281
281
  fail ArgumentError, 'rule_name is nil' if rule_name.nil?
@@ -284,6 +284,7 @@ module Azure::Redis::Mgmt::V2017_02_01
284
284
 
285
285
 
286
286
  request_headers = {}
287
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
287
288
 
288
289
  # Set Headers
289
290
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -338,8 +339,8 @@ module Azure::Redis::Mgmt::V2017_02_01
338
339
  # will be added to the HTTP request.
339
340
  #
340
341
  #
341
- def delete(resource_group_name, cache_name, rule_name, custom_headers = nil)
342
- response = delete_async(resource_group_name, cache_name, rule_name, custom_headers).value!
342
+ def delete(resource_group_name, cache_name, rule_name, custom_headers:nil)
343
+ response = delete_async(resource_group_name, cache_name, rule_name, custom_headers:custom_headers).value!
343
344
  nil
344
345
  end
345
346
 
@@ -354,8 +355,8 @@ module Azure::Redis::Mgmt::V2017_02_01
354
355
  #
355
356
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
356
357
  #
357
- def delete_with_http_info(resource_group_name, cache_name, rule_name, custom_headers = nil)
358
- delete_async(resource_group_name, cache_name, rule_name, custom_headers).value!
358
+ def delete_with_http_info(resource_group_name, cache_name, rule_name, custom_headers:nil)
359
+ delete_async(resource_group_name, cache_name, rule_name, custom_headers:custom_headers).value!
359
360
  end
360
361
 
361
362
  #
@@ -369,7 +370,7 @@ module Azure::Redis::Mgmt::V2017_02_01
369
370
  #
370
371
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
371
372
  #
372
- def delete_async(resource_group_name, cache_name, rule_name, custom_headers = nil)
373
+ def delete_async(resource_group_name, cache_name, rule_name, custom_headers:nil)
373
374
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
374
375
  fail ArgumentError, 'cache_name is nil' if cache_name.nil?
375
376
  fail ArgumentError, 'rule_name is nil' if rule_name.nil?
@@ -378,6 +379,7 @@ module Azure::Redis::Mgmt::V2017_02_01
378
379
 
379
380
 
380
381
  request_headers = {}
382
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
381
383
 
382
384
  # Set Headers
383
385
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -422,8 +424,8 @@ module Azure::Redis::Mgmt::V2017_02_01
422
424
  #
423
425
  # @return [RedisFirewallRuleListResult] operation results.
424
426
  #
425
- def list_by_redis_resource_next(next_page_link, custom_headers = nil)
426
- response = list_by_redis_resource_next_async(next_page_link, custom_headers).value!
427
+ def list_by_redis_resource_next(next_page_link, custom_headers:nil)
428
+ response = list_by_redis_resource_next_async(next_page_link, custom_headers:custom_headers).value!
427
429
  response.body unless response.nil?
428
430
  end
429
431
 
@@ -437,8 +439,8 @@ module Azure::Redis::Mgmt::V2017_02_01
437
439
  #
438
440
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
439
441
  #
440
- def list_by_redis_resource_next_with_http_info(next_page_link, custom_headers = nil)
441
- list_by_redis_resource_next_async(next_page_link, custom_headers).value!
442
+ def list_by_redis_resource_next_with_http_info(next_page_link, custom_headers:nil)
443
+ list_by_redis_resource_next_async(next_page_link, custom_headers:custom_headers).value!
442
444
  end
443
445
 
444
446
  #
@@ -451,11 +453,12 @@ module Azure::Redis::Mgmt::V2017_02_01
451
453
  #
452
454
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
453
455
  #
454
- def list_by_redis_resource_next_async(next_page_link, custom_headers = nil)
456
+ def list_by_redis_resource_next_async(next_page_link, custom_headers:nil)
455
457
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
456
458
 
457
459
 
458
460
  request_headers = {}
461
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
459
462
 
460
463
  # Set Headers
461
464
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -510,12 +513,12 @@ module Azure::Redis::Mgmt::V2017_02_01
510
513
  # @return [RedisFirewallRuleListResult] which provide lazy access to pages of
511
514
  # the response.
512
515
  #
513
- def list_by_redis_resource_as_lazy(resource_group_name, cache_name, custom_headers = nil)
514
- response = list_by_redis_resource_async(resource_group_name, cache_name, custom_headers).value!
516
+ def list_by_redis_resource_as_lazy(resource_group_name, cache_name, custom_headers:nil)
517
+ response = list_by_redis_resource_async(resource_group_name, cache_name, custom_headers:custom_headers).value!
515
518
  unless response.nil?
516
519
  page = response.body
517
520
  page.next_method = Proc.new do |next_page_link|
518
- list_by_redis_resource_next_async(next_page_link, custom_headers)
521
+ list_by_redis_resource_next_async(next_page_link, custom_headers:custom_headers)
519
522
  end
520
523
  page
521
524
  end
@@ -139,7 +139,7 @@ module Azure::Redis::Mgmt::V2017_02_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::V2017_02_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::V2017_02_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::V2017_02_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::V2017_02_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::V2017_02_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::V2017_02_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::V2017_02_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::V2017_02_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::V2017_02_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::V2017_02_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::V2017_02_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::V2017_02_01::Models::RedisPatchSchedule.mapper()
90
89
  request_content = @client.serialize(request_mapper, parameters)
@@ -150,8 +149,8 @@ module Azure::Redis::Mgmt::V2017_02_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::V2017_02_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::V2017_02_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::V2017_02_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::V2017_02_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::V2017_02_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::V2017_02_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::V2017_02_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