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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7b2c984acd0bc1184519cd4e11888bbd490c07ae
4
- data.tar.gz: 2642f6793602fea5b1d3e2a672d027970b108f3e
3
+ metadata.gz: 1011064828e2930fe2a586d1fab02dd8b1924b79
4
+ data.tar.gz: 48916d56f53fafd67f4d7e1c2f0874953dcbdceb
5
5
  SHA512:
6
- metadata.gz: 7a44af6b0277000a56cc19411edf743f64a4930501b62ab54f0aeddc9c1dbf1d8f267c8829dcaea6aaeeff63cf9e3b0c17b970361a49121fd1992d6634e8fd19
7
- data.tar.gz: 663245c51d60f36931115a5d569d32fec8bc3f921f58d3edda9bea1a818b00bf92abf3a1f738d9414604c17948899090a00e5f5b5406763d99f0b8bf8bb9f147
6
+ metadata.gz: 3011c2649971c2acd5e42aac12c0ee03f771065de4aa6d702d2a7bb7c70637b3439551706e8953e21716070e232de01b0d8720fd4ae0d138dd4b7f97c5489765
7
+ data.tar.gz: 4df2b16b9a077f53d2e224c5b62761cfea9adba60a4f424609818de23f718a4fb61a3322829b599fae8c5dfef390aa0980860cebea1933ca1e394375677d8869
@@ -33,8 +33,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
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_05_01_preview
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_05_01_preview
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_05_01_preview::Models::StorageAccountCheckNameAvailabilityParameters.mapper()
85
84
  request_content = @client.serialize(request_mapper, account_name)
@@ -145,8 +144,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
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_05_01_preview
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_05_01_preview
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_05_01_preview
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_05_01_preview
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, '@client.api_version is nil' if @client.api_version.nil?
@@ -237,6 +236,7 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
237
236
 
238
237
 
239
238
  request_headers = {}
239
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
240
240
 
241
241
  # Set Headers
242
242
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -286,8 +286,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
286
286
  #
287
287
  # @return [StorageAccount] operation results.
288
288
  #
289
- def get_properties(resource_group_name, account_name, custom_headers = nil)
290
- response = get_properties_async(resource_group_name, account_name, custom_headers).value!
289
+ def get_properties(resource_group_name, account_name, custom_headers:nil)
290
+ response = get_properties_async(resource_group_name, account_name, custom_headers:custom_headers).value!
291
291
  response.body unless response.nil?
292
292
  end
293
293
 
@@ -306,8 +306,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
306
306
  #
307
307
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
308
308
  #
309
- def get_properties_with_http_info(resource_group_name, account_name, custom_headers = nil)
310
- get_properties_async(resource_group_name, account_name, custom_headers).value!
309
+ def get_properties_with_http_info(resource_group_name, account_name, custom_headers:nil)
310
+ get_properties_async(resource_group_name, account_name, custom_headers:custom_headers).value!
311
311
  end
312
312
 
313
313
  #
@@ -325,7 +325,7 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
325
325
  #
326
326
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
327
327
  #
328
- def get_properties_async(resource_group_name, account_name, custom_headers = nil)
328
+ def get_properties_async(resource_group_name, account_name, custom_headers:nil)
329
329
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
330
330
  fail ArgumentError, 'account_name is nil' if account_name.nil?
331
331
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -333,6 +333,7 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
333
333
 
334
334
 
335
335
  request_headers = {}
336
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
336
337
 
337
338
  # Set Headers
338
339
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -401,8 +402,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
401
402
  #
402
403
  # @return [StorageAccount] operation results.
403
404
  #
404
- def update(resource_group_name, account_name, parameters, custom_headers = nil)
405
- response = update_async(resource_group_name, account_name, parameters, custom_headers).value!
405
+ def update(resource_group_name, account_name, parameters, custom_headers:nil)
406
+ response = update_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value!
406
407
  response.body unless response.nil?
407
408
  end
408
409
 
@@ -430,8 +431,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
430
431
  #
431
432
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
432
433
  #
433
- def update_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil)
434
- update_async(resource_group_name, account_name, parameters, custom_headers).value!
434
+ def update_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil)
435
+ update_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value!
435
436
  end
436
437
 
437
438
  #
@@ -458,7 +459,7 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
458
459
  #
459
460
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
460
461
  #
461
- def update_async(resource_group_name, account_name, parameters, custom_headers = nil)
462
+ def update_async(resource_group_name, account_name, parameters, custom_headers:nil)
462
463
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
463
464
  fail ArgumentError, 'account_name is nil' if account_name.nil?
464
465
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -467,13 +468,12 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
467
468
 
468
469
 
469
470
  request_headers = {}
471
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
470
472
 
471
473
  # Set Headers
472
474
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
473
475
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
474
476
 
475
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
476
-
477
477
  # Serialize Request
478
478
  request_mapper = Azure::Storage::Mgmt::V2015_05_01_preview::Models::StorageAccountUpdateParameters.mapper()
479
479
  request_content = @client.serialize(request_mapper, parameters)
@@ -530,8 +530,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
530
530
  #
531
531
  # @return [StorageAccountKeys] operation results.
532
532
  #
533
- def list_keys(resource_group_name, account_name, custom_headers = nil)
534
- response = list_keys_async(resource_group_name, account_name, custom_headers).value!
533
+ def list_keys(resource_group_name, account_name, custom_headers:nil)
534
+ response = list_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value!
535
535
  response.body unless response.nil?
536
536
  end
537
537
 
@@ -545,8 +545,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
545
545
  #
546
546
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
547
547
  #
548
- def list_keys_with_http_info(resource_group_name, account_name, custom_headers = nil)
549
- list_keys_async(resource_group_name, account_name, custom_headers).value!
548
+ def list_keys_with_http_info(resource_group_name, account_name, custom_headers:nil)
549
+ list_keys_async(resource_group_name, account_name, custom_headers:custom_headers).value!
550
550
  end
551
551
 
552
552
  #
@@ -559,7 +559,7 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
559
559
  #
560
560
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
561
561
  #
562
- def list_keys_async(resource_group_name, account_name, custom_headers = nil)
562
+ def list_keys_async(resource_group_name, account_name, custom_headers:nil)
563
563
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
564
564
  fail ArgumentError, 'account_name is nil' if account_name.nil?
565
565
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -567,6 +567,7 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
567
567
 
568
568
 
569
569
  request_headers = {}
570
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
570
571
 
571
572
  # Set Headers
572
573
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -620,8 +621,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
620
621
  #
621
622
  # @return [Array<StorageAccount>] operation results.
622
623
  #
623
- def list(custom_headers = nil)
624
- first_page = list_as_lazy(custom_headers)
624
+ def list(custom_headers:nil)
625
+ first_page = list_as_lazy(custom_headers:custom_headers)
625
626
  first_page.get_all_items
626
627
  end
627
628
 
@@ -634,8 +635,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
634
635
  #
635
636
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
636
637
  #
637
- def list_with_http_info(custom_headers = nil)
638
- list_async(custom_headers).value!
638
+ def list_with_http_info(custom_headers:nil)
639
+ list_async(custom_headers:custom_headers).value!
639
640
  end
640
641
 
641
642
  #
@@ -647,12 +648,13 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
647
648
  #
648
649
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
649
650
  #
650
- def list_async(custom_headers = nil)
651
+ def list_async(custom_headers:nil)
651
652
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
652
653
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
653
654
 
654
655
 
655
656
  request_headers = {}
657
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
656
658
 
657
659
  # Set Headers
658
660
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -708,8 +710,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
708
710
  #
709
711
  # @return [Array<StorageAccount>] operation results.
710
712
  #
711
- def list_by_resource_group(resource_group_name, custom_headers = nil)
712
- first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers)
713
+ def list_by_resource_group(resource_group_name, custom_headers:nil)
714
+ first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers)
713
715
  first_page.get_all_items
714
716
  end
715
717
 
@@ -724,8 +726,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
724
726
  #
725
727
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
726
728
  #
727
- def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil)
728
- list_by_resource_group_async(resource_group_name, custom_headers).value!
729
+ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
730
+ list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
729
731
  end
730
732
 
731
733
  #
@@ -739,13 +741,14 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
739
741
  #
740
742
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
741
743
  #
742
- def list_by_resource_group_async(resource_group_name, custom_headers = nil)
744
+ def list_by_resource_group_async(resource_group_name, custom_headers:nil)
743
745
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
744
746
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
745
747
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
746
748
 
747
749
 
748
750
  request_headers = {}
751
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
749
752
 
750
753
  # Set Headers
751
754
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -805,8 +808,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
805
808
  #
806
809
  # @return [StorageAccountKeys] operation results.
807
810
  #
808
- def regenerate_key(resource_group_name, account_name, regenerate_key, custom_headers = nil)
809
- response = regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers).value!
811
+ def regenerate_key(resource_group_name, account_name, regenerate_key, custom_headers:nil)
812
+ response = regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:custom_headers).value!
810
813
  response.body unless response.nil?
811
814
  end
812
815
 
@@ -825,8 +828,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
825
828
  #
826
829
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
827
830
  #
828
- def regenerate_key_with_http_info(resource_group_name, account_name, regenerate_key, custom_headers = nil)
829
- regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers).value!
831
+ def regenerate_key_with_http_info(resource_group_name, account_name, regenerate_key, custom_headers:nil)
832
+ regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:custom_headers).value!
830
833
  end
831
834
 
832
835
  #
@@ -844,7 +847,7 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
844
847
  #
845
848
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
846
849
  #
847
- def regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers = nil)
850
+ def regenerate_key_async(resource_group_name, account_name, regenerate_key, custom_headers:nil)
848
851
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
849
852
  fail ArgumentError, 'account_name is nil' if account_name.nil?
850
853
  fail ArgumentError, 'regenerate_key is nil' if regenerate_key.nil?
@@ -853,13 +856,12 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
853
856
 
854
857
 
855
858
  request_headers = {}
859
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
856
860
 
857
861
  # Set Headers
858
862
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
859
863
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
860
864
 
861
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
862
-
863
865
  # Serialize Request
864
866
  request_mapper = Azure::Storage::Mgmt::V2015_05_01_preview::Models::StorageAccountRegenerateKeyParameters.mapper()
865
867
  request_content = @client.serialize(request_mapper, regenerate_key)
@@ -925,8 +927,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
925
927
  #
926
928
  # @return [StorageAccount] operation results.
927
929
  #
928
- def begin_create(resource_group_name, account_name, parameters, custom_headers = nil)
929
- response = begin_create_async(resource_group_name, account_name, parameters, custom_headers).value!
930
+ def begin_create(resource_group_name, account_name, parameters, custom_headers:nil)
931
+ response = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value!
930
932
  response.body unless response.nil?
931
933
  end
932
934
 
@@ -949,8 +951,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
949
951
  #
950
952
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
951
953
  #
952
- def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil)
953
- begin_create_async(resource_group_name, account_name, parameters, custom_headers).value!
954
+ def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil)
955
+ begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value!
954
956
  end
955
957
 
956
958
  #
@@ -972,7 +974,7 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
972
974
  #
973
975
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
974
976
  #
975
- def begin_create_async(resource_group_name, account_name, parameters, custom_headers = nil)
977
+ def begin_create_async(resource_group_name, account_name, parameters, custom_headers:nil)
976
978
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
977
979
  fail ArgumentError, 'account_name is nil' if account_name.nil?
978
980
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -981,13 +983,12 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
981
983
 
982
984
 
983
985
  request_headers = {}
986
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
984
987
 
985
988
  # Set Headers
986
989
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
987
990
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
988
991
 
989
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
990
-
991
992
  # Serialize Request
992
993
  request_mapper = Azure::Storage::Mgmt::V2015_05_01_preview::Models::StorageAccountCreateParameters.mapper()
993
994
  request_content = @client.serialize(request_mapper, parameters)
@@ -1045,8 +1046,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
1045
1046
  #
1046
1047
  # @return [StorageAccountListResult] operation results.
1047
1048
  #
1048
- def list_next(next_page_link, custom_headers = nil)
1049
- response = list_next_async(next_page_link, custom_headers).value!
1049
+ def list_next(next_page_link, custom_headers:nil)
1050
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
1050
1051
  response.body unless response.nil?
1051
1052
  end
1052
1053
 
@@ -1061,8 +1062,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
1061
1062
  #
1062
1063
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1063
1064
  #
1064
- def list_next_with_http_info(next_page_link, custom_headers = nil)
1065
- list_next_async(next_page_link, custom_headers).value!
1065
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
1066
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
1066
1067
  end
1067
1068
 
1068
1069
  #
@@ -1076,11 +1077,12 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
1076
1077
  #
1077
1078
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1078
1079
  #
1079
- def list_next_async(next_page_link, custom_headers = nil)
1080
+ def list_next_async(next_page_link, custom_headers:nil)
1080
1081
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1081
1082
 
1082
1083
 
1083
1084
  request_headers = {}
1085
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1084
1086
 
1085
1087
  # Set Headers
1086
1088
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1135,8 +1137,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
1135
1137
  #
1136
1138
  # @return [StorageAccountListResult] operation results.
1137
1139
  #
1138
- def list_by_resource_group_next(next_page_link, custom_headers = nil)
1139
- response = list_by_resource_group_next_async(next_page_link, custom_headers).value!
1140
+ def list_by_resource_group_next(next_page_link, custom_headers:nil)
1141
+ response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
1140
1142
  response.body unless response.nil?
1141
1143
  end
1142
1144
 
@@ -1151,8 +1153,8 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
1151
1153
  #
1152
1154
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1153
1155
  #
1154
- def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil)
1155
- list_by_resource_group_next_async(next_page_link, custom_headers).value!
1156
+ def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
1157
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
1156
1158
  end
1157
1159
 
1158
1160
  #
@@ -1166,11 +1168,12 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
1166
1168
  #
1167
1169
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1168
1170
  #
1169
- def list_by_resource_group_next_async(next_page_link, custom_headers = nil)
1171
+ def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
1170
1172
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1171
1173
 
1172
1174
 
1173
1175
  request_headers = {}
1176
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1174
1177
 
1175
1178
  # Set Headers
1176
1179
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1224,12 +1227,12 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
1224
1227
  # @return [StorageAccountListResult] which provide lazy access to pages of the
1225
1228
  # response.
1226
1229
  #
1227
- def list_as_lazy(custom_headers = nil)
1228
- response = list_async(custom_headers).value!
1230
+ def list_as_lazy(custom_headers:nil)
1231
+ response = list_async(custom_headers:custom_headers).value!
1229
1232
  unless response.nil?
1230
1233
  page = response.body
1231
1234
  page.next_method = Proc.new do |next_page_link|
1232
- list_next_async(next_page_link, custom_headers)
1235
+ list_next_async(next_page_link, custom_headers:custom_headers)
1233
1236
  end
1234
1237
  page
1235
1238
  end
@@ -1247,12 +1250,12 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
1247
1250
  # @return [StorageAccountListResult] which provide lazy access to pages of the
1248
1251
  # response.
1249
1252
  #
1250
- def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil)
1251
- response = list_by_resource_group_async(resource_group_name, custom_headers).value!
1253
+ def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil)
1254
+ response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
1252
1255
  unless response.nil?
1253
1256
  page = response.body
1254
1257
  page.next_method = Proc.new do |next_page_link|
1255
- list_by_resource_group_next_async(next_page_link, custom_headers)
1258
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
1256
1259
  end
1257
1260
  page
1258
1261
  end