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
@@ -110,6 +110,9 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
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::V2015_05_01_preview
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::V2015_05_01_preview
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_05_01_preview
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_05_01_preview
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::V2015_06_15
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::V2015_06_15
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::V2015_06_15
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::V2015_06_15::Models::StorageAccountCheckNameAvailabilityParameters.mapper()
85
84
  request_content = @client.serialize(request_mapper, account_name)
@@ -145,8 +144,8 @@ module Azure::Storage::Mgmt::V2015_06_15
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::V2015_06_15
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::V2015_06_15
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::V2015_06_15
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::V2015_06_15
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, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
235
234
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -242,6 +241,7 @@ module Azure::Storage::Mgmt::V2015_06_15
242
241
 
243
242
 
244
243
  request_headers = {}
244
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
245
245
 
246
246
  # Set Headers
247
247
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -291,8 +291,8 @@ module Azure::Storage::Mgmt::V2015_06_15
291
291
  #
292
292
  # @return [StorageAccount] operation results.
293
293
  #
294
- def get_properties(resource_group_name, account_name, custom_headers = nil)
295
- response = get_properties_async(resource_group_name, account_name, custom_headers).value!
294
+ def get_properties(resource_group_name, account_name, custom_headers:nil)
295
+ response = get_properties_async(resource_group_name, account_name, custom_headers:custom_headers).value!
296
296
  response.body unless response.nil?
297
297
  end
298
298
 
@@ -311,8 +311,8 @@ module Azure::Storage::Mgmt::V2015_06_15
311
311
  #
312
312
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
313
313
  #
314
- def get_properties_with_http_info(resource_group_name, account_name, custom_headers = nil)
315
- get_properties_async(resource_group_name, account_name, custom_headers).value!
314
+ def get_properties_with_http_info(resource_group_name, account_name, custom_headers:nil)
315
+ get_properties_async(resource_group_name, account_name, custom_headers:custom_headers).value!
316
316
  end
317
317
 
318
318
  #
@@ -330,7 +330,7 @@ module Azure::Storage::Mgmt::V2015_06_15
330
330
  #
331
331
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
332
332
  #
333
- def get_properties_async(resource_group_name, account_name, custom_headers = nil)
333
+ def get_properties_async(resource_group_name, account_name, custom_headers:nil)
334
334
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
335
335
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
336
336
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -343,6 +343,7 @@ module Azure::Storage::Mgmt::V2015_06_15
343
343
 
344
344
 
345
345
  request_headers = {}
346
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
346
347
 
347
348
  # Set Headers
348
349
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -410,8 +411,8 @@ module Azure::Storage::Mgmt::V2015_06_15
410
411
  #
411
412
  # @return [StorageAccount] operation results.
412
413
  #
413
- def update(resource_group_name, account_name, parameters, custom_headers = nil)
414
- response = update_async(resource_group_name, account_name, parameters, custom_headers).value!
414
+ def update(resource_group_name, account_name, parameters, custom_headers:nil)
415
+ response = update_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value!
415
416
  response.body unless response.nil?
416
417
  end
417
418
 
@@ -438,8 +439,8 @@ module Azure::Storage::Mgmt::V2015_06_15
438
439
  #
439
440
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
440
441
  #
441
- def update_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil)
442
- update_async(resource_group_name, account_name, parameters, custom_headers).value!
442
+ def update_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil)
443
+ update_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value!
443
444
  end
444
445
 
445
446
  #
@@ -465,7 +466,7 @@ module Azure::Storage::Mgmt::V2015_06_15
465
466
  #
466
467
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
467
468
  #
468
- def update_async(resource_group_name, account_name, parameters, custom_headers = nil)
469
+ def update_async(resource_group_name, account_name, parameters, custom_headers:nil)
469
470
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
470
471
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
471
472
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -479,13 +480,12 @@ module Azure::Storage::Mgmt::V2015_06_15
479
480
 
480
481
 
481
482
  request_headers = {}
483
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
482
484
 
483
485
  # Set Headers
484
486
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
485
487
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
486
488
 
487
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
488
-
489
489
  # Serialize Request
490
490
  request_mapper = Azure::Storage::Mgmt::V2015_06_15::Models::StorageAccountUpdateParameters.mapper()
491
491
  request_content = @client.serialize(request_mapper, parameters)
@@ -541,8 +541,8 @@ module Azure::Storage::Mgmt::V2015_06_15
541
541
  #
542
542
  # @return [StorageAccountListResult] operation results.
543
543
  #
544
- def list(custom_headers = nil)
545
- response = list_async(custom_headers).value!
544
+ def list(custom_headers:nil)
545
+ response = list_async(custom_headers:custom_headers).value!
546
546
  response.body unless response.nil?
547
547
  end
548
548
 
@@ -555,8 +555,8 @@ module Azure::Storage::Mgmt::V2015_06_15
555
555
  #
556
556
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
557
557
  #
558
- def list_with_http_info(custom_headers = nil)
559
- list_async(custom_headers).value!
558
+ def list_with_http_info(custom_headers:nil)
559
+ list_async(custom_headers:custom_headers).value!
560
560
  end
561
561
 
562
562
  #
@@ -568,12 +568,13 @@ module Azure::Storage::Mgmt::V2015_06_15
568
568
  #
569
569
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
570
570
  #
571
- def list_async(custom_headers = nil)
571
+ def list_async(custom_headers:nil)
572
572
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
573
573
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
574
574
 
575
575
 
576
576
  request_headers = {}
577
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
577
578
 
578
579
  # Set Headers
579
580
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -629,8 +630,8 @@ module Azure::Storage::Mgmt::V2015_06_15
629
630
  #
630
631
  # @return [StorageAccountListResult] operation results.
631
632
  #
632
- def list_by_resource_group(resource_group_name, custom_headers = nil)
633
- response = list_by_resource_group_async(resource_group_name, custom_headers).value!
633
+ def list_by_resource_group(resource_group_name, custom_headers:nil)
634
+ response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
634
635
  response.body unless response.nil?
635
636
  end
636
637
 
@@ -645,8 +646,8 @@ module Azure::Storage::Mgmt::V2015_06_15
645
646
  #
646
647
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
647
648
  #
648
- def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil)
649
- list_by_resource_group_async(resource_group_name, custom_headers).value!
649
+ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
650
+ list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
650
651
  end
651
652
 
652
653
  #
@@ -660,7 +661,7 @@ module Azure::Storage::Mgmt::V2015_06_15
660
661
  #
661
662
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
662
663
  #
663
- def list_by_resource_group_async(resource_group_name, custom_headers = nil)
664
+ def list_by_resource_group_async(resource_group_name, custom_headers:nil)
664
665
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
665
666
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
666
667
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -670,6 +671,7 @@ module Azure::Storage::Mgmt::V2015_06_15
670
671
 
671
672
 
672
673
  request_headers = {}
674
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
673
675
 
674
676
  # Set Headers
675
677
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -727,8 +729,8 @@ module Azure::Storage::Mgmt::V2015_06_15
727
729
  #
728
730
  # @return [StorageAccountKeys] operation results.
729
731
  #
730
- def list_keys(resource_group_name, account_name, custom_headers = nil)
731
- response = list_keys_async(resource_group_name, account_name, custom_headers).value!
732
+ def list_keys(resource_group_name, account_name, custom_headers:nil)
733
+ response = list_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value!
732
734
  response.body unless response.nil?
733
735
  end
734
736
 
@@ -745,8 +747,8 @@ module Azure::Storage::Mgmt::V2015_06_15
745
747
  #
746
748
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
747
749
  #
748
- def list_keys_with_http_info(resource_group_name, account_name, custom_headers = nil)
749
- list_keys_async(resource_group_name, account_name, custom_headers).value!
750
+ def list_keys_with_http_info(resource_group_name, account_name, custom_headers:nil)
751
+ list_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value!
750
752
  end
751
753
 
752
754
  #
@@ -762,7 +764,7 @@ module Azure::Storage::Mgmt::V2015_06_15
762
764
  #
763
765
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
764
766
  #
765
- def list_keys_async(resource_group_name, account_name, custom_headers = nil)
767
+ def list_keys_async(resource_group_name, account_name, custom_headers:nil)
766
768
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
767
769
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
768
770
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -775,6 +777,7 @@ module Azure::Storage::Mgmt::V2015_06_15
775
777
 
776
778
 
777
779
  request_headers = {}
780
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
778
781
 
779
782
  # Set Headers
780
783
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -834,8 +837,8 @@ module Azure::Storage::Mgmt::V2015_06_15
834
837
  #
835
838
  # @return [StorageAccountKeys] operation results.
836
839
  #
837
- def regenerate_key(resource_group_name, account_name, regenerate_key, custom_headers = nil)
838
- response = regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers).value!
840
+ def regenerate_key(resource_group_name, account_name, regenerate_key, custom_headers:nil)
841
+ response = regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:custom_headers).value!
839
842
  response.body unless response.nil?
840
843
  end
841
844
 
@@ -854,8 +857,8 @@ module Azure::Storage::Mgmt::V2015_06_15
854
857
  #
855
858
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
856
859
  #
857
- def regenerate_key_with_http_info(resource_group_name, account_name, regenerate_key, custom_headers = nil)
858
- regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers).value!
860
+ def regenerate_key_with_http_info(resource_group_name, account_name, regenerate_key, custom_headers:nil)
861
+ regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:custom_headers).value!
859
862
  end
860
863
 
861
864
  #
@@ -873,7 +876,7 @@ module Azure::Storage::Mgmt::V2015_06_15
873
876
  #
874
877
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
875
878
  #
876
- def regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers = nil)
879
+ def regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:nil)
877
880
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
878
881
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
879
882
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -887,13 +890,12 @@ module Azure::Storage::Mgmt::V2015_06_15
887
890
 
888
891
 
889
892
  request_headers = {}
893
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
890
894
 
891
895
  # Set Headers
892
896
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
893
897
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
894
898
 
895
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
896
-
897
899
  # Serialize Request
898
900
  request_mapper = Azure::Storage::Mgmt::V2015_06_15::Models::StorageAccountRegenerateKeyParameters.mapper()
899
901
  request_content = @client.serialize(request_mapper, regenerate_key)
@@ -959,8 +961,8 @@ module Azure::Storage::Mgmt::V2015_06_15
959
961
  #
960
962
  # @return [StorageAccount] operation results.
961
963
  #
962
- def begin_create(resource_group_name, account_name, parameters, custom_headers = nil)
963
- response = begin_create_async(resource_group_name, account_name, parameters, custom_headers).value!
964
+ def begin_create(resource_group_name, account_name, parameters, custom_headers:nil)
965
+ response = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value!
964
966
  response.body unless response.nil?
965
967
  end
966
968
 
@@ -983,8 +985,8 @@ module Azure::Storage::Mgmt::V2015_06_15
983
985
  #
984
986
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
985
987
  #
986
- def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil)
987
- begin_create_async(resource_group_name, account_name, parameters, custom_headers).value!
988
+ def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil)
989
+ begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value!
988
990
  end
989
991
 
990
992
  #
@@ -1006,7 +1008,7 @@ module Azure::Storage::Mgmt::V2015_06_15
1006
1008
  #
1007
1009
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1008
1010
  #
1009
- def begin_create_async(resource_group_name, account_name, parameters, custom_headers = nil)
1011
+ def begin_create_async(resource_group_name, account_name, parameters, custom_headers:nil)
1010
1012
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1011
1013
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1012
1014
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -1020,13 +1022,12 @@ module Azure::Storage::Mgmt::V2015_06_15
1020
1022
 
1021
1023
 
1022
1024
  request_headers = {}
1025
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1023
1026
 
1024
1027
  # Set Headers
1025
1028
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1026
1029
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1027
1030
 
1028
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1029
-
1030
1031
  # Serialize Request
1031
1032
  request_mapper = Azure::Storage::Mgmt::V2015_06_15::Models::StorageAccountCreateParameters.mapper()
1032
1033
  request_content = @client.serialize(request_mapper, parameters)
@@ -110,6 +110,9 @@ module Azure::Storage::Mgmt::V2015_06_15
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::V2015_06_15
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