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
@@ -118,6 +118,9 @@ module Azure::Storage::Mgmt::V2017_06_01
118
118
  fail ArgumentError, 'path is nil' if path.nil?
119
119
 
120
120
  request_url = options[:base_url] || @base_url
121
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
122
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
123
+ end
121
124
 
122
125
  request_headers = @request_headers
123
126
  request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
@@ -134,7 +137,7 @@ module Azure::Storage::Mgmt::V2017_06_01
134
137
  #
135
138
  def add_telemetry
136
139
  sdk_information = 'azure_mgmt_storage'
137
- sdk_information = "#{sdk_information}/0.15.2"
140
+ sdk_information = "#{sdk_information}/0.16.0"
138
141
  add_user_agent_information(sdk_information)
139
142
  end
140
143
  end
@@ -30,8 +30,8 @@ module Azure::Storage::Mgmt::V2017_06_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::V2017_06_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::V2017_06_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
@@ -29,8 +29,8 @@ module Azure::Storage::Mgmt::V2017_10_01
29
29
  #
30
30
  # @return [OperationListResult] operation results.
31
31
  #
32
- def list(custom_headers = nil)
33
- response = list_async(custom_headers).value!
32
+ def list(custom_headers:nil)
33
+ response = list_async(custom_headers:custom_headers).value!
34
34
  response.body unless response.nil?
35
35
  end
36
36
 
@@ -42,8 +42,8 @@ module Azure::Storage::Mgmt::V2017_10_01
42
42
  #
43
43
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
44
44
  #
45
- def list_with_http_info(custom_headers = nil)
46
- list_async(custom_headers).value!
45
+ def list_with_http_info(custom_headers:nil)
46
+ list_async(custom_headers:custom_headers).value!
47
47
  end
48
48
 
49
49
  #
@@ -54,11 +54,12 @@ module Azure::Storage::Mgmt::V2017_10_01
54
54
  #
55
55
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
56
56
  #
57
- def list_async(custom_headers = nil)
57
+ def list_async(custom_headers:nil)
58
58
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
59
59
 
60
60
 
61
61
  request_headers = {}
62
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
62
63
 
63
64
  # Set Headers
64
65
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -30,8 +30,8 @@ module Azure::Storage::Mgmt::V2017_10_01
30
30
  #
31
31
  # @return [StorageSkuListResult] 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::V2017_10_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::V2017_10_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
@@ -33,8 +33,8 @@ module Azure::Storage::Mgmt::V2017_10_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::V2017_10_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::V2017_10_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::V2017_10_01::Models::StorageAccountCheckNameAvailabilityParameters.mapper()
85
84
  request_content = @client.serialize(request_mapper, account_name)
@@ -145,8 +144,8 @@ module Azure::Storage::Mgmt::V2017_10_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::V2017_10_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::V2017_10_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::V2017_10_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::V2017_10_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, "'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::V2017_10_01
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::V2017_10_01
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::V2017_10_01
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::V2017_10_01
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::V2017_10_01
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::V2017_10_01
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::V2017_10_01
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::V2017_10_01
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::V2017_10_01
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::V2017_10_01::Models::StorageAccountUpdateParameters.mapper()
491
491
  request_content = @client.serialize(request_mapper, parameters)
@@ -541,8 +541,8 @@ module Azure::Storage::Mgmt::V2017_10_01
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::V2017_10_01
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::V2017_10_01
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::V2017_10_01
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::V2017_10_01
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::V2017_10_01
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::V2017_10_01
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::V2017_10_01
727
729
  #
728
730
  # @return [StorageAccountListKeysResult] 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::V2017_10_01
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::V2017_10_01
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::V2017_10_01
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::V2017_10_01
834
837
  #
835
838
  # @return [StorageAccountListKeysResult] 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::V2017_10_01
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::V2017_10_01
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::V2017_10_01
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::V2017_10_01::Models::StorageAccountRegenerateKeyParameters.mapper()
899
901
  request_content = @client.serialize(request_mapper, regenerate_key)
@@ -955,8 +957,8 @@ module Azure::Storage::Mgmt::V2017_10_01
955
957
  #
956
958
  # @return [ListAccountSasResponse] operation results.
957
959
  #
958
- def list_account_sas(resource_group_name, account_name, parameters, custom_headers = nil)
959
- response = list_account_sas_async(resource_group_name, account_name, parameters, custom_headers).value!
960
+ def list_account_sas(resource_group_name, account_name, parameters, custom_headers:nil)
961
+ response = list_account_sas_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value!
960
962
  response.body unless response.nil?
961
963
  end
962
964
 
@@ -975,8 +977,8 @@ module Azure::Storage::Mgmt::V2017_10_01
975
977
  #
976
978
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
977
979
  #
978
- def list_account_sas_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil)
979
- list_account_sas_async(resource_group_name, account_name, parameters, custom_headers).value!
980
+ def list_account_sas_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil)
981
+ list_account_sas_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value!
980
982
  end
981
983
 
982
984
  #
@@ -994,7 +996,7 @@ module Azure::Storage::Mgmt::V2017_10_01
994
996
  #
995
997
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
996
998
  #
997
- def list_account_sas_async(resource_group_name, account_name, parameters, custom_headers = nil)
999
+ def list_account_sas_async(resource_group_name, account_name, parameters, custom_headers:nil)
998
1000
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
999
1001
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1000
1002
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -1008,13 +1010,12 @@ module Azure::Storage::Mgmt::V2017_10_01
1008
1010
 
1009
1011
 
1010
1012
  request_headers = {}
1013
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1011
1014
 
1012
1015
  # Set Headers
1013
1016
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1014
1017
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1015
1018
 
1016
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1017
-
1018
1019
  # Serialize Request
1019
1020
  request_mapper = Azure::Storage::Mgmt::V2017_10_01::Models::AccountSasParameters.mapper()
1020
1021
  request_content = @client.serialize(request_mapper, parameters)
@@ -1076,8 +1077,8 @@ module Azure::Storage::Mgmt::V2017_10_01
1076
1077
  #
1077
1078
  # @return [ListServiceSasResponse] operation results.
1078
1079
  #
1079
- def list_service_sas(resource_group_name, account_name, parameters, custom_headers = nil)
1080
- response = list_service_sas_async(resource_group_name, account_name, parameters, custom_headers).value!
1080
+ def list_service_sas(resource_group_name, account_name, parameters, custom_headers:nil)
1081
+ response = list_service_sas_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value!
1081
1082
  response.body unless response.nil?
1082
1083
  end
1083
1084
 
@@ -1096,8 +1097,8 @@ module Azure::Storage::Mgmt::V2017_10_01
1096
1097
  #
1097
1098
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1098
1099
  #
1099
- def list_service_sas_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil)
1100
- list_service_sas_async(resource_group_name, account_name, parameters, custom_headers).value!
1100
+ def list_service_sas_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil)
1101
+ list_service_sas_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value!
1101
1102
  end
1102
1103
 
1103
1104
  #
@@ -1115,7 +1116,7 @@ module Azure::Storage::Mgmt::V2017_10_01
1115
1116
  #
1116
1117
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1117
1118
  #
1118
- def list_service_sas_async(resource_group_name, account_name, parameters, custom_headers = nil)
1119
+ def list_service_sas_async(resource_group_name, account_name, parameters, custom_headers:nil)
1119
1120
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1120
1121
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1121
1122
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -1129,13 +1130,12 @@ module Azure::Storage::Mgmt::V2017_10_01
1129
1130
 
1130
1131
 
1131
1132
  request_headers = {}
1133
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1132
1134
 
1133
1135
  # Set Headers
1134
1136
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1135
1137
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1136
1138
 
1137
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1138
-
1139
1139
  # Serialize Request
1140
1140
  request_mapper = Azure::Storage::Mgmt::V2017_10_01::Models::ServiceSasParameters.mapper()
1141
1141
  request_content = @client.serialize(request_mapper, parameters)
@@ -1201,8 +1201,8 @@ module Azure::Storage::Mgmt::V2017_10_01
1201
1201
  #
1202
1202
  # @return [StorageAccount] operation results.
1203
1203
  #
1204
- def begin_create(resource_group_name, account_name, parameters, custom_headers = nil)
1205
- response = begin_create_async(resource_group_name, account_name, parameters, custom_headers).value!
1204
+ def begin_create(resource_group_name, account_name, parameters, custom_headers:nil)
1205
+ response = begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value!
1206
1206
  response.body unless response.nil?
1207
1207
  end
1208
1208
 
@@ -1225,8 +1225,8 @@ module Azure::Storage::Mgmt::V2017_10_01
1225
1225
  #
1226
1226
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1227
1227
  #
1228
- def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil)
1229
- begin_create_async(resource_group_name, account_name, parameters, custom_headers).value!
1228
+ def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers:nil)
1229
+ begin_create_async(resource_group_name, account_name, parameters, custom_headers:custom_headers).value!
1230
1230
  end
1231
1231
 
1232
1232
  #
@@ -1248,7 +1248,7 @@ module Azure::Storage::Mgmt::V2017_10_01
1248
1248
  #
1249
1249
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1250
1250
  #
1251
- def begin_create_async(resource_group_name, account_name, parameters, custom_headers = nil)
1251
+ def begin_create_async(resource_group_name, account_name, parameters, custom_headers:nil)
1252
1252
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1253
1253
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
1254
1254
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
@@ -1262,13 +1262,12 @@ module Azure::Storage::Mgmt::V2017_10_01
1262
1262
 
1263
1263
 
1264
1264
  request_headers = {}
1265
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1265
1266
 
1266
1267
  # Set Headers
1267
1268
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1268
1269
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1269
1270
 
1270
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1271
-
1272
1271
  # Serialize Request
1273
1272
  request_mapper = Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountCreateParameters.mapper()
1274
1273
  request_content = @client.serialize(request_mapper, parameters)