azure_mgmt_storage 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 (31) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-05-01-preview/generated/azure_mgmt_storage/storage_accounts.rb +76 -73
  3. data/lib/2015-05-01-preview/generated/azure_mgmt_storage/storage_management_client.rb +4 -1
  4. data/lib/2015-05-01-preview/generated/azure_mgmt_storage/usage_operations.rb +6 -5
  5. data/lib/2015-06-15/generated/azure_mgmt_storage/storage_accounts.rb +58 -57
  6. data/lib/2015-06-15/generated/azure_mgmt_storage/storage_management_client.rb +4 -1
  7. data/lib/2015-06-15/generated/azure_mgmt_storage/usage_operations.rb +6 -5
  8. data/lib/2016-01-01/generated/azure_mgmt_storage/storage_accounts.rb +58 -57
  9. data/lib/2016-01-01/generated/azure_mgmt_storage/storage_management_client.rb +4 -1
  10. data/lib/2016-01-01/generated/azure_mgmt_storage/usage_operations.rb +6 -5
  11. data/lib/2016-12-01/generated/azure_mgmt_storage/storage_accounts.rb +70 -71
  12. data/lib/2016-12-01/generated/azure_mgmt_storage/storage_management_client.rb +4 -1
  13. data/lib/2016-12-01/generated/azure_mgmt_storage/usage_operations.rb +6 -5
  14. data/lib/2017-06-01/generated/azure_mgmt_storage/operations.rb +6 -5
  15. data/lib/2017-06-01/generated/azure_mgmt_storage/skus.rb +6 -5
  16. data/lib/2017-06-01/generated/azure_mgmt_storage/storage_accounts.rb +70 -71
  17. data/lib/2017-06-01/generated/azure_mgmt_storage/storage_management_client.rb +4 -1
  18. data/lib/2017-06-01/generated/azure_mgmt_storage/usage_operations.rb +6 -5
  19. data/lib/2017-10-01/generated/azure_mgmt_storage/operations.rb +6 -5
  20. data/lib/2017-10-01/generated/azure_mgmt_storage/skus.rb +6 -5
  21. data/lib/2017-10-01/generated/azure_mgmt_storage/storage_accounts.rb +70 -71
  22. data/lib/2017-10-01/generated/azure_mgmt_storage/storage_management_client.rb +4 -1
  23. data/lib/2017-10-01/generated/azure_mgmt_storage/usage_operations.rb +6 -5
  24. data/lib/profiles/latest/modules/storage_profile_module.rb +202 -183
  25. data/lib/profiles/latest/storage_latest_profile_client.rb +28 -9
  26. data/lib/profiles/latest/storage_module_definition.rb +0 -1
  27. data/lib/profiles/v2017_03_09/modules/storage_profile_module.rb +142 -87
  28. data/lib/profiles/v2017_03_09/storage_module_definition.rb +0 -1
  29. data/lib/profiles/v2017_03_09/storage_v2017_03_09_profile_client.rb +28 -9
  30. data/lib/version.rb +1 -1
  31. metadata +3 -3
@@ -30,8 +30,8 @@ module Azure::Storage::Mgmt::V2015_06_15
30
30
  #
31
31
  # @return [UsageListResult] operation results.
32
32
  #
33
- def list(custom_headers = nil)
34
- response = list_async(custom_headers).value!
33
+ def list(custom_headers:nil)
34
+ response = list_async(custom_headers:custom_headers).value!
35
35
  response.body unless response.nil?
36
36
  end
37
37
 
@@ -44,8 +44,8 @@ module Azure::Storage::Mgmt::V2015_06_15
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,12 +57,13 @@ module Azure::Storage::Mgmt::V2015_06_15
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
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
63
63
 
64
64
 
65
65
  request_headers = {}
66
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
66
67
 
67
68
  # Set Headers
68
69
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -33,8 +33,8 @@ module Azure::Storage::Mgmt::V2016_01_01
33
33
  #
34
34
  # @return [CheckNameAvailabilityResult] operation results.
35
35
  #
36
- def check_name_availability(account_name, custom_headers = nil)
37
- response = check_name_availability_async(account_name, custom_headers).value!
36
+ def check_name_availability(account_name, custom_headers:nil)
37
+ response = check_name_availability_async(account_name, custom_headers:custom_headers).value!
38
38
  response.body unless response.nil?
39
39
  end
40
40
 
@@ -50,8 +50,8 @@ module Azure::Storage::Mgmt::V2016_01_01
50
50
  #
51
51
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
52
52
  #
53
- def check_name_availability_with_http_info(account_name, custom_headers = nil)
54
- check_name_availability_async(account_name, custom_headers).value!
53
+ def check_name_availability_with_http_info(account_name, custom_headers:nil)
54
+ check_name_availability_async(account_name, custom_headers:custom_headers).value!
55
55
  end
56
56
 
57
57
  #
@@ -66,20 +66,19 @@ module Azure::Storage::Mgmt::V2016_01_01
66
66
  #
67
67
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
68
68
  #
69
- def check_name_availability_async(account_name, custom_headers = nil)
69
+ def check_name_availability_async(account_name, custom_headers:nil)
70
70
  fail ArgumentError, 'account_name is nil' if account_name.nil?
71
71
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
72
72
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
73
73
 
74
74
 
75
75
  request_headers = {}
76
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
76
77
 
77
78
  # Set Headers
78
79
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
79
80
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
80
81
 
81
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
82
-
83
82
  # Serialize Request
84
83
  request_mapper = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountCheckNameAvailabilityParameters.mapper()
85
84
  request_content = @client.serialize(request_mapper, account_name)
@@ -145,8 +144,8 @@ module Azure::Storage::Mgmt::V2016_01_01
145
144
  #
146
145
  # @return [StorageAccount] operation results.
147
146
  #
148
- def create(resource_group_name, account_name, parameters, custom_headers = nil)
149
- response = create_async(resource_group_name, account_name, parameters, custom_headers).value!
147
+ def create(resource_group_name, account_name, parameters, custom_headers:nil)
148
+ response = create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value!
150
149
  response.body unless response.nil?
151
150
  end
152
151
 
@@ -164,9 +163,9 @@ module Azure::Storage::Mgmt::V2016_01_01
164
163
  # @return [Concurrent::Promise] promise which provides async access to http
165
164
  # response.
166
165
  #
167
- def create_async(resource_group_name, account_name, parameters, custom_headers = nil)
166
+ def create_async(resource_group_name, account_name, parameters, custom_headers:nil)
168
167
  # Send request
169
- promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers)
168
+ promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers)
170
169
 
171
170
  promise = promise.then do |response|
172
171
  # Defining deserialization method.
@@ -194,8 +193,8 @@ module Azure::Storage::Mgmt::V2016_01_01
194
193
  # will be added to the HTTP request.
195
194
  #
196
195
  #
197
- def delete(resource_group_name, account_name, custom_headers = nil)
198
- response = delete_async(resource_group_name, account_name, custom_headers).value!
196
+ def delete(resource_group_name, account_name, custom_headers:nil)
197
+ response = delete_async(resource_group_name, account_name, custom_headers:custom_headers).value!
199
198
  nil
200
199
  end
201
200
 
@@ -212,8 +211,8 @@ module Azure::Storage::Mgmt::V2016_01_01
212
211
  #
213
212
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
214
213
  #
215
- def delete_with_http_info(resource_group_name, account_name, custom_headers = nil)
216
- delete_async(resource_group_name, account_name, custom_headers).value!
214
+ def delete_with_http_info(resource_group_name, account_name, custom_headers:nil)
215
+ delete_async(resource_group_name, account_name, custom_headers:custom_headers).value!
217
216
  end
218
217
 
219
218
  #
@@ -229,7 +228,7 @@ module Azure::Storage::Mgmt::V2016_01_01
229
228
  #
230
229
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
231
230
  #
232
- def delete_async(resource_group_name, account_name, custom_headers = nil)
231
+ def delete_async(resource_group_name, account_name, custom_headers:nil)
233
232
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
234
233
  fail ArgumentError, 'account_name is nil' if account_name.nil?
235
234
  fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
@@ -239,6 +238,7 @@ module Azure::Storage::Mgmt::V2016_01_01
239
238
 
240
239
 
241
240
  request_headers = {}
241
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
242
242
 
243
243
  # Set Headers
244
244
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -288,8 +288,8 @@ module Azure::Storage::Mgmt::V2016_01_01
288
288
  #
289
289
  # @return [StorageAccount] operation results.
290
290
  #
291
- def get_properties(resource_group_name, account_name, custom_headers = nil)
292
- response = get_properties_async(resource_group_name, account_name, custom_headers).value!
291
+ def get_properties(resource_group_name, account_name, custom_headers:nil)
292
+ response = get_properties_async(resource_group_name, account_name, custom_headers:custom_headers).value!
293
293
  response.body unless response.nil?
294
294
  end
295
295
 
@@ -308,8 +308,8 @@ module Azure::Storage::Mgmt::V2016_01_01
308
308
  #
309
309
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
310
310
  #
311
- def get_properties_with_http_info(resource_group_name, account_name, custom_headers = nil)
312
- get_properties_async(resource_group_name, account_name, custom_headers).value!
311
+ def get_properties_with_http_info(resource_group_name, account_name, custom_headers:nil)
312
+ get_properties_async(resource_group_name, account_name, custom_headers:custom_headers).value!
313
313
  end
314
314
 
315
315
  #
@@ -327,7 +327,7 @@ module Azure::Storage::Mgmt::V2016_01_01
327
327
  #
328
328
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
329
329
  #
330
- def get_properties_async(resource_group_name, account_name, custom_headers = nil)
330
+ def get_properties_async(resource_group_name, account_name, custom_headers:nil)
331
331
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
332
332
  fail ArgumentError, 'account_name is nil' if account_name.nil?
333
333
  fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
@@ -337,6 +337,7 @@ module Azure::Storage::Mgmt::V2016_01_01
337
337
 
338
338
 
339
339
  request_headers = {}
340
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
340
341
 
341
342
  # Set Headers
342
343
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -404,8 +405,8 @@ module Azure::Storage::Mgmt::V2016_01_01
404
405
  #
405
406
  # @return [StorageAccount] operation results.
406
407
  #
407
- def update(resource_group_name, account_name, parameters, custom_headers = nil)
408
- response = update_async(resource_group_name, account_name, parameters, custom_headers).value!
408
+ def update(resource_group_name, account_name, parameters, custom_headers:nil)
409
+ response = update_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value!
409
410
  response.body unless response.nil?
410
411
  end
411
412
 
@@ -432,8 +433,8 @@ module Azure::Storage::Mgmt::V2016_01_01
432
433
  #
433
434
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
434
435
  #
435
- def update_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil)
436
- update_async(resource_group_name, account_name, parameters, custom_headers).value!
436
+ def update_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil)
437
+ update_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value!
437
438
  end
438
439
 
439
440
  #
@@ -459,7 +460,7 @@ module Azure::Storage::Mgmt::V2016_01_01
459
460
  #
460
461
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
461
462
  #
462
- def update_async(resource_group_name, account_name, parameters, custom_headers = nil)
463
+ def update_async(resource_group_name, account_name, parameters, custom_headers:nil)
463
464
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
464
465
  fail ArgumentError, 'account_name is nil' if account_name.nil?
465
466
  fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
@@ -470,13 +471,12 @@ module Azure::Storage::Mgmt::V2016_01_01
470
471
 
471
472
 
472
473
  request_headers = {}
474
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
473
475
 
474
476
  # Set Headers
475
477
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
476
478
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
477
479
 
478
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
479
-
480
480
  # Serialize Request
481
481
  request_mapper = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountUpdateParameters.mapper()
482
482
  request_content = @client.serialize(request_mapper, parameters)
@@ -532,8 +532,8 @@ module Azure::Storage::Mgmt::V2016_01_01
532
532
  #
533
533
  # @return [StorageAccountListResult] operation results.
534
534
  #
535
- def list(custom_headers = nil)
536
- response = list_async(custom_headers).value!
535
+ def list(custom_headers:nil)
536
+ response = list_async(custom_headers:custom_headers).value!
537
537
  response.body unless response.nil?
538
538
  end
539
539
 
@@ -546,8 +546,8 @@ module Azure::Storage::Mgmt::V2016_01_01
546
546
  #
547
547
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
548
548
  #
549
- def list_with_http_info(custom_headers = nil)
550
- list_async(custom_headers).value!
549
+ def list_with_http_info(custom_headers:nil)
550
+ list_async(custom_headers:custom_headers).value!
551
551
  end
552
552
 
553
553
  #
@@ -559,12 +559,13 @@ module Azure::Storage::Mgmt::V2016_01_01
559
559
  #
560
560
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
561
561
  #
562
- def list_async(custom_headers = nil)
562
+ def list_async(custom_headers:nil)
563
563
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
564
564
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
565
565
 
566
566
 
567
567
  request_headers = {}
568
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
568
569
 
569
570
  # Set Headers
570
571
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -620,8 +621,8 @@ module Azure::Storage::Mgmt::V2016_01_01
620
621
  #
621
622
  # @return [StorageAccountListResult] operation results.
622
623
  #
623
- def list_by_resource_group(resource_group_name, custom_headers = nil)
624
- response = list_by_resource_group_async(resource_group_name, custom_headers).value!
624
+ def list_by_resource_group(resource_group_name, custom_headers:nil)
625
+ response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
625
626
  response.body unless response.nil?
626
627
  end
627
628
 
@@ -636,8 +637,8 @@ module Azure::Storage::Mgmt::V2016_01_01
636
637
  #
637
638
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
638
639
  #
639
- def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil)
640
- list_by_resource_group_async(resource_group_name, custom_headers).value!
640
+ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
641
+ list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
641
642
  end
642
643
 
643
644
  #
@@ -651,13 +652,14 @@ module Azure::Storage::Mgmt::V2016_01_01
651
652
  #
652
653
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
653
654
  #
654
- def list_by_resource_group_async(resource_group_name, custom_headers = nil)
655
+ def list_by_resource_group_async(resource_group_name, custom_headers:nil)
655
656
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
656
657
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
657
658
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
658
659
 
659
660
 
660
661
  request_headers = {}
662
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
661
663
 
662
664
  # Set Headers
663
665
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -715,8 +717,8 @@ module Azure::Storage::Mgmt::V2016_01_01
715
717
  #
716
718
  # @return [StorageAccountListKeysResult] operation results.
717
719
  #
718
- def list_keys(resource_group_name, account_name, custom_headers = nil)
719
- response = list_keys_async(resource_group_name, account_name, custom_headers).value!
720
+ def list_keys(resource_group_name, account_name, custom_headers:nil)
721
+ response = list_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value!
720
722
  response.body unless response.nil?
721
723
  end
722
724
 
@@ -733,8 +735,8 @@ module Azure::Storage::Mgmt::V2016_01_01
733
735
  #
734
736
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
735
737
  #
736
- def list_keys_with_http_info(resource_group_name, account_name, custom_headers = nil)
737
- list_keys_async(resource_group_name, account_name, custom_headers).value!
738
+ def list_keys_with_http_info(resource_group_name, account_name, custom_headers:nil)
739
+ list_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value!
738
740
  end
739
741
 
740
742
  #
@@ -750,7 +752,7 @@ module Azure::Storage::Mgmt::V2016_01_01
750
752
  #
751
753
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
752
754
  #
753
- def list_keys_async(resource_group_name, account_name, custom_headers = nil)
755
+ def list_keys_async(resource_group_name, account_name, custom_headers:nil)
754
756
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
755
757
  fail ArgumentError, 'account_name is nil' if account_name.nil?
756
758
  fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
@@ -760,6 +762,7 @@ module Azure::Storage::Mgmt::V2016_01_01
760
762
 
761
763
 
762
764
  request_headers = {}
765
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
763
766
 
764
767
  # Set Headers
765
768
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -819,8 +822,8 @@ module Azure::Storage::Mgmt::V2016_01_01
819
822
  #
820
823
  # @return [StorageAccountListKeysResult] operation results.
821
824
  #
822
- def regenerate_key(resource_group_name, account_name, regenerate_key, custom_headers = nil)
823
- response = regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers).value!
825
+ def regenerate_key(resource_group_name, account_name, regenerate_key, custom_headers:nil)
826
+ response = regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:custom_headers).value!
824
827
  response.body unless response.nil?
825
828
  end
826
829
 
@@ -839,8 +842,8 @@ module Azure::Storage::Mgmt::V2016_01_01
839
842
  #
840
843
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
841
844
  #
842
- def regenerate_key_with_http_info(resource_group_name, account_name, regenerate_key, custom_headers = nil)
843
- regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers).value!
845
+ def regenerate_key_with_http_info(resource_group_name, account_name, regenerate_key, custom_headers:nil)
846
+ regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:custom_headers).value!
844
847
  end
845
848
 
846
849
  #
@@ -858,7 +861,7 @@ module Azure::Storage::Mgmt::V2016_01_01
858
861
  #
859
862
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
860
863
  #
861
- def regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers = nil)
864
+ def regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:nil)
862
865
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
863
866
  fail ArgumentError, 'account_name is nil' if account_name.nil?
864
867
  fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
@@ -869,13 +872,12 @@ module Azure::Storage::Mgmt::V2016_01_01
869
872
 
870
873
 
871
874
  request_headers = {}
875
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
872
876
 
873
877
  # Set Headers
874
878
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
875
879
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
876
880
 
877
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
878
-
879
881
  # Serialize Request
880
882
  request_mapper = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountRegenerateKeyParameters.mapper()
881
883
  request_content = @client.serialize(request_mapper, regenerate_key)
@@ -941,8 +943,8 @@ module Azure::Storage::Mgmt::V2016_01_01
941
943
  #
942
944
  # @return [StorageAccount] operation results.
943
945
  #
944
- def begin_create(resource_group_name, account_name, parameters, custom_headers = nil)
945
- response = begin_create_async(resource_group_name, account_name, parameters, custom_headers).value!
946
+ def begin_create(resource_group_name, account_name, parameters, custom_headers:nil)
947
+ response = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value!
946
948
  response.body unless response.nil?
947
949
  end
948
950
 
@@ -965,8 +967,8 @@ module Azure::Storage::Mgmt::V2016_01_01
965
967
  #
966
968
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
967
969
  #
968
- def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil)
969
- begin_create_async(resource_group_name, account_name, parameters, custom_headers).value!
970
+ def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil)
971
+ begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value!
970
972
  end
971
973
 
972
974
  #
@@ -988,7 +990,7 @@ module Azure::Storage::Mgmt::V2016_01_01
988
990
  #
989
991
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
990
992
  #
991
- def begin_create_async(resource_group_name, account_name, parameters, custom_headers = nil)
993
+ def begin_create_async(resource_group_name, account_name, parameters, custom_headers:nil)
992
994
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
993
995
  fail ArgumentError, 'account_name is nil' if account_name.nil?
994
996
  fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
@@ -999,13 +1001,12 @@ module Azure::Storage::Mgmt::V2016_01_01
999
1001
 
1000
1002
 
1001
1003
  request_headers = {}
1004
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1002
1005
 
1003
1006
  # Set Headers
1004
1007
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1005
1008
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1006
1009
 
1007
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1008
-
1009
1010
  # Serialize Request
1010
1011
  request_mapper = Azure::Storage::Mgmt::V2016_01_01::Models::StorageAccountCreateParameters.mapper()
1011
1012
  request_content = @client.serialize(request_mapper, parameters)
@@ -110,6 +110,9 @@ module Azure::Storage::Mgmt::V2016_01_01
110
110
  fail ArgumentError, 'path is nil' if path.nil?
111
111
 
112
112
  request_url = options[:base_url] || @base_url
113
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
114
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
115
+ end
113
116
 
114
117
  request_headers = @request_headers
115
118
  request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
@@ -126,7 +129,7 @@ module Azure::Storage::Mgmt::V2016_01_01
126
129
  #
127
130
  def add_telemetry
128
131
  sdk_information = 'azure_mgmt_storage'
129
- sdk_information = "#{sdk_information}/0.15.2"
132
+ sdk_information = "#{sdk_information}/0.16.0"
130
133
  add_user_agent_information(sdk_information)
131
134
  end
132
135
  end
@@ -30,8 +30,8 @@ module Azure::Storage::Mgmt::V2016_01_01
30
30
  #
31
31
  # @return [UsageListResult] operation results.
32
32
  #
33
- def list(custom_headers = nil)
34
- response = list_async(custom_headers).value!
33
+ def list(custom_headers:nil)
34
+ response = list_async(custom_headers:custom_headers).value!
35
35
  response.body unless response.nil?
36
36
  end
37
37
 
@@ -44,8 +44,8 @@ module Azure::Storage::Mgmt::V2016_01_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,12 +57,13 @@ module Azure::Storage::Mgmt::V2016_01_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
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
63
63
 
64
64
 
65
65
  request_headers = {}
66
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
66
67
 
67
68
  # Set Headers
68
69
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid