azure_mgmt_storage 0.10.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generated/azure_mgmt_storage.rb +32 -11
- data/lib/generated/azure_mgmt_storage/models/access_tier.rb +1 -1
- data/lib/generated/azure_mgmt_storage/models/account_sas_parameters.rb +12 -11
- data/lib/generated/azure_mgmt_storage/models/account_status.rb +1 -1
- data/lib/generated/azure_mgmt_storage/models/action.rb +15 -0
- data/lib/generated/azure_mgmt_storage/models/bypass.rb +18 -0
- data/lib/generated/azure_mgmt_storage/models/check_name_availability_result.rb +2 -1
- data/lib/generated/azure_mgmt_storage/models/custom_domain.rb +2 -1
- data/lib/generated/azure_mgmt_storage/models/default_action.rb +16 -0
- data/lib/generated/azure_mgmt_storage/models/dimension.rb +55 -0
- data/lib/generated/azure_mgmt_storage/models/encryption.rb +17 -5
- data/lib/generated/azure_mgmt_storage/models/encryption_service.rb +2 -1
- data/lib/generated/azure_mgmt_storage/models/encryption_services.rb +2 -1
- data/lib/generated/azure_mgmt_storage/models/endpoints.rb +2 -1
- data/lib/generated/azure_mgmt_storage/models/http_protocol.rb +1 -1
- data/lib/generated/azure_mgmt_storage/models/identity.rb +69 -0
- data/lib/generated/azure_mgmt_storage/models/iprule.rb +59 -0
- data/lib/generated/azure_mgmt_storage/models/key_permission.rb +1 -1
- data/lib/generated/azure_mgmt_storage/models/key_source.rb +16 -0
- data/lib/generated/azure_mgmt_storage/models/key_vault_properties.rb +65 -0
- data/lib/generated/azure_mgmt_storage/models/kind.rb +1 -1
- data/lib/generated/azure_mgmt_storage/models/list_account_sas_response.rb +2 -1
- data/lib/generated/azure_mgmt_storage/models/list_service_sas_response.rb +2 -1
- data/lib/generated/azure_mgmt_storage/models/metric_specification.rb +134 -0
- data/lib/generated/azure_mgmt_storage/models/operation.rb +79 -0
- data/lib/generated/azure_mgmt_storage/models/operation_display.rb +65 -0
- data/lib/generated/azure_mgmt_storage/models/operation_list_result.rb +55 -0
- data/lib/generated/azure_mgmt_storage/models/permissions.rb +22 -0
- data/lib/generated/azure_mgmt_storage/models/provisioning_state.rb +1 -1
- data/lib/generated/azure_mgmt_storage/models/reason.rb +1 -1
- data/lib/generated/azure_mgmt_storage/models/service_sas_parameters.rb +9 -8
- data/lib/generated/azure_mgmt_storage/models/service_specification.rb +54 -0
- data/lib/generated/azure_mgmt_storage/models/services.rb +18 -0
- data/lib/generated/azure_mgmt_storage/models/signed_resource.rb +18 -0
- data/lib/generated/azure_mgmt_storage/models/signed_resource_types.rb +17 -0
- data/lib/generated/azure_mgmt_storage/models/sku.rb +2 -1
- data/lib/generated/azure_mgmt_storage/models/sku_name.rb +1 -1
- data/lib/generated/azure_mgmt_storage/models/sku_tier.rb +1 -1
- data/lib/generated/azure_mgmt_storage/models/state.rb +19 -0
- data/lib/generated/azure_mgmt_storage/models/storage_account.rb +37 -1
- data/lib/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb +6 -3
- data/lib/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb +36 -1
- data/lib/generated/azure_mgmt_storage/models/storage_account_key.rb +2 -1
- data/lib/generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb +2 -1
- data/lib/generated/azure_mgmt_storage/models/storage_account_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb +4 -2
- data/lib/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb +36 -1
- data/lib/generated/azure_mgmt_storage/models/storage_network_acls.rb +100 -0
- data/lib/generated/azure_mgmt_storage/models/usage.rb +2 -1
- data/lib/generated/azure_mgmt_storage/models/usage_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_storage/models/usage_name.rb +2 -1
- data/lib/generated/azure_mgmt_storage/models/usage_unit.rb +1 -1
- data/lib/generated/azure_mgmt_storage/models/virtual_network_rule.rb +71 -0
- data/lib/generated/azure_mgmt_storage/module_definition.rb +1 -1
- data/lib/generated/azure_mgmt_storage/operations.rb +106 -0
- data/lib/generated/azure_mgmt_storage/storage_accounts.rb +46 -47
- data/lib/generated/azure_mgmt_storage/storage_management_client.rb +6 -2
- data/lib/generated/azure_mgmt_storage/usage_operations.rb +4 -5
- data/lib/generated/azure_mgmt_storage/version.rb +2 -2
- metadata +25 -4
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -8,7 +8,6 @@ module Azure::ARM::Storage
|
|
8
8
|
# The Azure Storage Management API.
|
9
9
|
#
|
10
10
|
class StorageAccounts
|
11
|
-
include Azure::ARM::Storage::Models
|
12
11
|
include MsRestAzure
|
13
12
|
|
14
13
|
#
|
@@ -82,11 +81,11 @@ module Azure::ARM::Storage
|
|
82
81
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
83
82
|
|
84
83
|
# Serialize Request
|
85
|
-
request_mapper = StorageAccountCheckNameAvailabilityParameters.mapper()
|
86
|
-
request_content = @client.serialize(request_mapper, account_name
|
84
|
+
request_mapper = Azure::ARM::Storage::Models::StorageAccountCheckNameAvailabilityParameters.mapper()
|
85
|
+
request_content = @client.serialize(request_mapper, account_name)
|
87
86
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
88
87
|
|
89
|
-
path_template = '
|
88
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability'
|
90
89
|
|
91
90
|
request_url = @base_url || @client.base_url
|
92
91
|
|
@@ -114,8 +113,8 @@ module Azure::ARM::Storage
|
|
114
113
|
if status_code == 200
|
115
114
|
begin
|
116
115
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
117
|
-
result_mapper = CheckNameAvailabilityResult.mapper()
|
118
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
116
|
+
result_mapper = Azure::ARM::Storage::Models::CheckNameAvailabilityResult.mapper()
|
117
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
119
118
|
rescue Exception => e
|
120
119
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
121
120
|
end
|
@@ -172,8 +171,8 @@ module Azure::ARM::Storage
|
|
172
171
|
promise = promise.then do |response|
|
173
172
|
# Defining deserialization method.
|
174
173
|
deserialize_method = lambda do |parsed_response|
|
175
|
-
result_mapper = StorageAccount.mapper()
|
176
|
-
parsed_response = @client.deserialize(result_mapper, parsed_response
|
174
|
+
result_mapper = Azure::ARM::Storage::Models::StorageAccount.mapper()
|
175
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
177
176
|
end
|
178
177
|
|
179
178
|
# Waiting for response.
|
@@ -242,7 +241,7 @@ module Azure::ARM::Storage
|
|
242
241
|
# Set Headers
|
243
242
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
244
243
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
245
|
-
path_template = '
|
244
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}'
|
246
245
|
|
247
246
|
request_url = @base_url || @client.base_url
|
248
247
|
|
@@ -338,7 +337,7 @@ module Azure::ARM::Storage
|
|
338
337
|
# Set Headers
|
339
338
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
340
339
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
341
|
-
path_template = '
|
340
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}'
|
342
341
|
|
343
342
|
request_url = @base_url || @client.base_url
|
344
343
|
|
@@ -365,8 +364,8 @@ module Azure::ARM::Storage
|
|
365
364
|
if status_code == 200
|
366
365
|
begin
|
367
366
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
368
|
-
result_mapper = StorageAccount.mapper()
|
369
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
367
|
+
result_mapper = Azure::ARM::Storage::Models::StorageAccount.mapper()
|
368
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
370
369
|
rescue Exception => e
|
371
370
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
372
371
|
end
|
@@ -473,11 +472,11 @@ module Azure::ARM::Storage
|
|
473
472
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
474
473
|
|
475
474
|
# Serialize Request
|
476
|
-
request_mapper = StorageAccountUpdateParameters.mapper()
|
477
|
-
request_content = @client.serialize(request_mapper, parameters
|
475
|
+
request_mapper = Azure::ARM::Storage::Models::StorageAccountUpdateParameters.mapper()
|
476
|
+
request_content = @client.serialize(request_mapper, parameters)
|
478
477
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
479
478
|
|
480
|
-
path_template = '
|
479
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}'
|
481
480
|
|
482
481
|
request_url = @base_url || @client.base_url
|
483
482
|
|
@@ -505,8 +504,8 @@ module Azure::ARM::Storage
|
|
505
504
|
if status_code == 200
|
506
505
|
begin
|
507
506
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
508
|
-
result_mapper = StorageAccount.mapper()
|
509
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
507
|
+
result_mapper = Azure::ARM::Storage::Models::StorageAccount.mapper()
|
508
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
510
509
|
rescue Exception => e
|
511
510
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
512
511
|
end
|
@@ -564,7 +563,7 @@ module Azure::ARM::Storage
|
|
564
563
|
# Set Headers
|
565
564
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
566
565
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
567
|
-
path_template = '
|
566
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts'
|
568
567
|
|
569
568
|
request_url = @base_url || @client.base_url
|
570
569
|
|
@@ -591,8 +590,8 @@ module Azure::ARM::Storage
|
|
591
590
|
if status_code == 200
|
592
591
|
begin
|
593
592
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
594
|
-
result_mapper = StorageAccountListResult.mapper()
|
595
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
593
|
+
result_mapper = Azure::ARM::Storage::Models::StorageAccountListResult.mapper()
|
594
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
596
595
|
rescue Exception => e
|
597
596
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
598
597
|
end
|
@@ -657,7 +656,7 @@ module Azure::ARM::Storage
|
|
657
656
|
# Set Headers
|
658
657
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
659
658
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
660
|
-
path_template = '
|
659
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts'
|
661
660
|
|
662
661
|
request_url = @base_url || @client.base_url
|
663
662
|
|
@@ -684,8 +683,8 @@ module Azure::ARM::Storage
|
|
684
683
|
if status_code == 200
|
685
684
|
begin
|
686
685
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
687
|
-
result_mapper = StorageAccountListResult.mapper()
|
688
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
686
|
+
result_mapper = Azure::ARM::Storage::Models::StorageAccountListResult.mapper()
|
687
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
689
688
|
rescue Exception => e
|
690
689
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
691
690
|
end
|
@@ -757,7 +756,7 @@ module Azure::ARM::Storage
|
|
757
756
|
# Set Headers
|
758
757
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
759
758
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
760
|
-
path_template = '
|
759
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys'
|
761
760
|
|
762
761
|
request_url = @base_url || @client.base_url
|
763
762
|
|
@@ -784,8 +783,8 @@ module Azure::ARM::Storage
|
|
784
783
|
if status_code == 200
|
785
784
|
begin
|
786
785
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
787
|
-
result_mapper = StorageAccountListKeysResult.mapper()
|
788
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
786
|
+
result_mapper = Azure::ARM::Storage::Models::StorageAccountListKeysResult.mapper()
|
787
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
789
788
|
rescue Exception => e
|
790
789
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
791
790
|
end
|
@@ -868,11 +867,11 @@ module Azure::ARM::Storage
|
|
868
867
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
869
868
|
|
870
869
|
# Serialize Request
|
871
|
-
request_mapper = StorageAccountRegenerateKeyParameters.mapper()
|
872
|
-
request_content = @client.serialize(request_mapper, regenerate_key
|
870
|
+
request_mapper = Azure::ARM::Storage::Models::StorageAccountRegenerateKeyParameters.mapper()
|
871
|
+
request_content = @client.serialize(request_mapper, regenerate_key)
|
873
872
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
874
873
|
|
875
|
-
path_template = '
|
874
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey'
|
876
875
|
|
877
876
|
request_url = @base_url || @client.base_url
|
878
877
|
|
@@ -900,8 +899,8 @@ module Azure::ARM::Storage
|
|
900
899
|
if status_code == 200
|
901
900
|
begin
|
902
901
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
903
|
-
result_mapper = StorageAccountListKeysResult.mapper()
|
904
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
902
|
+
result_mapper = Azure::ARM::Storage::Models::StorageAccountListKeysResult.mapper()
|
903
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
905
904
|
rescue Exception => e
|
906
905
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
907
906
|
end
|
@@ -984,11 +983,11 @@ module Azure::ARM::Storage
|
|
984
983
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
985
984
|
|
986
985
|
# Serialize Request
|
987
|
-
request_mapper = AccountSasParameters.mapper()
|
988
|
-
request_content = @client.serialize(request_mapper, parameters
|
986
|
+
request_mapper = Azure::ARM::Storage::Models::AccountSasParameters.mapper()
|
987
|
+
request_content = @client.serialize(request_mapper, parameters)
|
989
988
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
990
989
|
|
991
|
-
path_template = '
|
990
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListAccountSas'
|
992
991
|
|
993
992
|
request_url = @base_url || @client.base_url
|
994
993
|
|
@@ -1016,8 +1015,8 @@ module Azure::ARM::Storage
|
|
1016
1015
|
if status_code == 200
|
1017
1016
|
begin
|
1018
1017
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1019
|
-
result_mapper = ListAccountSasResponse.mapper()
|
1020
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
1018
|
+
result_mapper = Azure::ARM::Storage::Models::ListAccountSasResponse.mapper()
|
1019
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1021
1020
|
rescue Exception => e
|
1022
1021
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1023
1022
|
end
|
@@ -1100,11 +1099,11 @@ module Azure::ARM::Storage
|
|
1100
1099
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1101
1100
|
|
1102
1101
|
# Serialize Request
|
1103
|
-
request_mapper = ServiceSasParameters.mapper()
|
1104
|
-
request_content = @client.serialize(request_mapper, parameters
|
1102
|
+
request_mapper = Azure::ARM::Storage::Models::ServiceSasParameters.mapper()
|
1103
|
+
request_content = @client.serialize(request_mapper, parameters)
|
1105
1104
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
1106
1105
|
|
1107
|
-
path_template = '
|
1106
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/ListServiceSas'
|
1108
1107
|
|
1109
1108
|
request_url = @base_url || @client.base_url
|
1110
1109
|
|
@@ -1132,8 +1131,8 @@ module Azure::ARM::Storage
|
|
1132
1131
|
if status_code == 200
|
1133
1132
|
begin
|
1134
1133
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1135
|
-
result_mapper = ListServiceSasResponse.mapper()
|
1136
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
1134
|
+
result_mapper = Azure::ARM::Storage::Models::ListServiceSasResponse.mapper()
|
1135
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1137
1136
|
rescue Exception => e
|
1138
1137
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1139
1138
|
end
|
@@ -1228,11 +1227,11 @@ module Azure::ARM::Storage
|
|
1228
1227
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1229
1228
|
|
1230
1229
|
# Serialize Request
|
1231
|
-
request_mapper = StorageAccountCreateParameters.mapper()
|
1232
|
-
request_content = @client.serialize(request_mapper, parameters
|
1230
|
+
request_mapper = Azure::ARM::Storage::Models::StorageAccountCreateParameters.mapper()
|
1231
|
+
request_content = @client.serialize(request_mapper, parameters)
|
1233
1232
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
1234
1233
|
|
1235
|
-
path_template = '
|
1234
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}'
|
1236
1235
|
|
1237
1236
|
request_url = @base_url || @client.base_url
|
1238
1237
|
|
@@ -1260,8 +1259,8 @@ module Azure::ARM::Storage
|
|
1260
1259
|
if status_code == 200
|
1261
1260
|
begin
|
1262
1261
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1263
|
-
result_mapper = StorageAccount.mapper()
|
1264
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
1262
|
+
result_mapper = Azure::ARM::Storage::Models::StorageAccount.mapper()
|
1263
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1265
1264
|
rescue Exception => e
|
1266
1265
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1267
1266
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -36,6 +36,9 @@ module Azure::ARM::Storage
|
|
36
36
|
# is generated and included in each request. Default is true.
|
37
37
|
attr_accessor :generate_client_request_id
|
38
38
|
|
39
|
+
# @return [Operations] operations
|
40
|
+
attr_reader :operations
|
41
|
+
|
39
42
|
# @return [StorageAccounts] storage_accounts
|
40
43
|
attr_reader :storage_accounts
|
41
44
|
|
@@ -55,9 +58,10 @@ module Azure::ARM::Storage
|
|
55
58
|
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
56
59
|
@credentials = credentials
|
57
60
|
|
61
|
+
@operations = Operations.new(self)
|
58
62
|
@storage_accounts = StorageAccounts.new(self)
|
59
63
|
@usage_operations = UsageOperations.new(self)
|
60
|
-
@api_version = '
|
64
|
+
@api_version = '2017-06-01'
|
61
65
|
@accept_language = 'en-US'
|
62
66
|
@long_running_operation_retry_timeout = 30
|
63
67
|
@generate_client_request_id = true
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -8,7 +8,6 @@ module Azure::ARM::Storage
|
|
8
8
|
# The Azure Storage Management API.
|
9
9
|
#
|
10
10
|
class UsageOperations
|
11
|
-
include Azure::ARM::Storage::Models
|
12
11
|
include MsRestAzure
|
13
12
|
|
14
13
|
#
|
@@ -68,7 +67,7 @@ module Azure::ARM::Storage
|
|
68
67
|
# Set Headers
|
69
68
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
70
69
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
71
|
-
path_template = '
|
70
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Storage/usages'
|
72
71
|
|
73
72
|
request_url = @base_url || @client.base_url
|
74
73
|
|
@@ -95,8 +94,8 @@ module Azure::ARM::Storage
|
|
95
94
|
if status_code == 200
|
96
95
|
begin
|
97
96
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
98
|
-
result_mapper = UsageListResult.mapper()
|
99
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
97
|
+
result_mapper = Azure::ARM::Storage::Models::UsageListResult.mapper()
|
98
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
100
99
|
rescue Exception => e
|
101
100
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
102
101
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
6
|
module Azure::ARM::Storage
|
7
|
-
VERSION = '0.
|
7
|
+
VERSION = '0.11.0'
|
8
8
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_mgmt_storage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.8.0
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: 0.8.0
|
83
83
|
description: Microsoft Azure Storage Management Client Library for Ruby
|
84
84
|
email: azrubyteam@microsoft.com
|
85
85
|
executables: []
|
@@ -93,23 +93,41 @@ files:
|
|
93
93
|
- lib/generated/azure_mgmt_storage/models/access_tier.rb
|
94
94
|
- lib/generated/azure_mgmt_storage/models/account_sas_parameters.rb
|
95
95
|
- lib/generated/azure_mgmt_storage/models/account_status.rb
|
96
|
+
- lib/generated/azure_mgmt_storage/models/action.rb
|
97
|
+
- lib/generated/azure_mgmt_storage/models/bypass.rb
|
96
98
|
- lib/generated/azure_mgmt_storage/models/check_name_availability_result.rb
|
97
99
|
- lib/generated/azure_mgmt_storage/models/custom_domain.rb
|
100
|
+
- lib/generated/azure_mgmt_storage/models/default_action.rb
|
101
|
+
- lib/generated/azure_mgmt_storage/models/dimension.rb
|
98
102
|
- lib/generated/azure_mgmt_storage/models/encryption.rb
|
99
103
|
- lib/generated/azure_mgmt_storage/models/encryption_service.rb
|
100
104
|
- lib/generated/azure_mgmt_storage/models/encryption_services.rb
|
101
105
|
- lib/generated/azure_mgmt_storage/models/endpoints.rb
|
102
106
|
- lib/generated/azure_mgmt_storage/models/http_protocol.rb
|
107
|
+
- lib/generated/azure_mgmt_storage/models/identity.rb
|
108
|
+
- lib/generated/azure_mgmt_storage/models/iprule.rb
|
103
109
|
- lib/generated/azure_mgmt_storage/models/key_permission.rb
|
110
|
+
- lib/generated/azure_mgmt_storage/models/key_source.rb
|
111
|
+
- lib/generated/azure_mgmt_storage/models/key_vault_properties.rb
|
104
112
|
- lib/generated/azure_mgmt_storage/models/kind.rb
|
105
113
|
- lib/generated/azure_mgmt_storage/models/list_account_sas_response.rb
|
106
114
|
- lib/generated/azure_mgmt_storage/models/list_service_sas_response.rb
|
115
|
+
- lib/generated/azure_mgmt_storage/models/metric_specification.rb
|
116
|
+
- lib/generated/azure_mgmt_storage/models/operation.rb
|
117
|
+
- lib/generated/azure_mgmt_storage/models/operation_display.rb
|
118
|
+
- lib/generated/azure_mgmt_storage/models/operation_list_result.rb
|
119
|
+
- lib/generated/azure_mgmt_storage/models/permissions.rb
|
107
120
|
- lib/generated/azure_mgmt_storage/models/provisioning_state.rb
|
108
121
|
- lib/generated/azure_mgmt_storage/models/reason.rb
|
109
122
|
- lib/generated/azure_mgmt_storage/models/service_sas_parameters.rb
|
123
|
+
- lib/generated/azure_mgmt_storage/models/service_specification.rb
|
124
|
+
- lib/generated/azure_mgmt_storage/models/services.rb
|
125
|
+
- lib/generated/azure_mgmt_storage/models/signed_resource.rb
|
126
|
+
- lib/generated/azure_mgmt_storage/models/signed_resource_types.rb
|
110
127
|
- lib/generated/azure_mgmt_storage/models/sku.rb
|
111
128
|
- lib/generated/azure_mgmt_storage/models/sku_name.rb
|
112
129
|
- lib/generated/azure_mgmt_storage/models/sku_tier.rb
|
130
|
+
- lib/generated/azure_mgmt_storage/models/state.rb
|
113
131
|
- lib/generated/azure_mgmt_storage/models/storage_account.rb
|
114
132
|
- lib/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb
|
115
133
|
- lib/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb
|
@@ -118,11 +136,14 @@ files:
|
|
118
136
|
- lib/generated/azure_mgmt_storage/models/storage_account_list_result.rb
|
119
137
|
- lib/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb
|
120
138
|
- lib/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb
|
139
|
+
- lib/generated/azure_mgmt_storage/models/storage_network_acls.rb
|
121
140
|
- lib/generated/azure_mgmt_storage/models/usage.rb
|
122
141
|
- lib/generated/azure_mgmt_storage/models/usage_list_result.rb
|
123
142
|
- lib/generated/azure_mgmt_storage/models/usage_name.rb
|
124
143
|
- lib/generated/azure_mgmt_storage/models/usage_unit.rb
|
144
|
+
- lib/generated/azure_mgmt_storage/models/virtual_network_rule.rb
|
125
145
|
- lib/generated/azure_mgmt_storage/module_definition.rb
|
146
|
+
- lib/generated/azure_mgmt_storage/operations.rb
|
126
147
|
- lib/generated/azure_mgmt_storage/storage_accounts.rb
|
127
148
|
- lib/generated/azure_mgmt_storage/storage_management_client.rb
|
128
149
|
- lib/generated/azure_mgmt_storage/usage_operations.rb
|