azure_mgmt_storage 0.16.1 → 0.16.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-05-01-preview/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2016-01-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2016-12-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2017-06-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2017-10-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage.rb +109 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/blob_containers.rb +1721 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/access_tier.rb +16 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/account_sas_parameters.rb +136 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/account_status.rb +16 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/action.rb +15 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/azure_entity_resource.rb +75 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/blob_container.rb +217 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/bypass.rb +18 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/check_name_availability_result.rb +77 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/custom_domain.rb +60 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/default_action.rb +16 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/dimension.rb +57 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/encryption.rb +74 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/encryption_service.rb +62 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/encryption_services.rb +89 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/endpoints.rb +84 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/http_protocol.rb +16 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/identity.rb +72 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/immutability_policy.rb +98 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/immutability_policy_properties.rb +95 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/immutability_policy_state.rb +16 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/immutability_policy_update_type.rb +17 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/iprule.rb +61 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/key_permission.rb +16 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/key_source.rb +16 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/key_vault_properties.rb +68 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/kind.rb +17 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/lease_duration.rb +16 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/lease_state.rb +19 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/lease_status.rb +16 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/legal_hold.rb +71 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/legal_hold_properties.rb +72 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/list_account_sas_response.rb +47 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/list_container_item.rb +216 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/list_container_items.rb +55 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/list_service_sas_response.rb +47 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/management_policies_rules_set_parameter.rb +50 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/metric_specification.rb +145 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/network_rule_set.rb +106 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/operation.rb +83 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/operation_display.rb +68 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/operation_list_result.rb +57 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/permissions.rb +22 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/provisioning_state.rb +17 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/proxy_resource.rb +63 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/public_access.rb +17 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/reason.rb +16 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/reason_code.rb +16 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/resource.rb +74 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/restriction.rb +85 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/service_sas_parameters.rb +247 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/service_specification.rb +56 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/services.rb +18 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/signed_resource.rb +18 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/signed_resource_types.rb +17 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/sku.rb +157 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/sku_name.rb +19 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/sku_tier.rb +16 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/skucapability.rb +63 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/state.rb +19 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/storage_account.rb +326 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb +62 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb +179 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/storage_account_key.rb +73 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb +57 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/storage_account_list_result.rb +57 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/storage_account_management_policies.rb +88 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb +47 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb +167 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/storage_sku_list_result.rb +57 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/tag_property.rb +97 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/tracked_resource.rb +92 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/update_history_property.rb +114 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/usage.rb +89 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/usage_list_result.rb +56 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/usage_name.rb +59 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/usage_unit.rb +20 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/virtual_network_rule.rb +75 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/module_definition.rb +9 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/operations.rb +108 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/skus.rb +114 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/storage_accounts.rb +1670 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/storage_management_client.rb +146 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/usages.rb +207 -0
- data/lib/azure_mgmt_storage.rb +6 -5
- data/lib/profiles/latest/modules/storage_profile_module.rb +198 -190
- data/lib/version.rb +1 -1
- metadata +87 -2
@@ -0,0 +1,146 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Storage::Mgmt::V2018_03_01_preview
|
7
|
+
#
|
8
|
+
# A service client - single point of access to the REST API.
|
9
|
+
#
|
10
|
+
class StorageManagementClient < MsRestAzure::AzureServiceClient
|
11
|
+
include MsRestAzure
|
12
|
+
include MsRestAzure::Serialization
|
13
|
+
|
14
|
+
# @return [String] the base URI of the service.
|
15
|
+
attr_accessor :base_url
|
16
|
+
|
17
|
+
# @return Credentials needed for the client to connect to Azure.
|
18
|
+
attr_reader :credentials
|
19
|
+
|
20
|
+
# @return [String] The ID of the target subscription.
|
21
|
+
attr_accessor :subscription_id
|
22
|
+
|
23
|
+
# @return [String] The API version to use for this operation.
|
24
|
+
attr_reader :api_version
|
25
|
+
|
26
|
+
# @return [String] Gets or sets the preferred language for the response.
|
27
|
+
attr_accessor :accept_language
|
28
|
+
|
29
|
+
# @return [Integer] Gets or sets the retry timeout in seconds for Long
|
30
|
+
# Running Operations. Default value is 30.
|
31
|
+
attr_accessor :long_running_operation_retry_timeout
|
32
|
+
|
33
|
+
# @return [Boolean] When set to true a unique x-ms-client-request-id value
|
34
|
+
# is generated and included in each request. Default is true.
|
35
|
+
attr_accessor :generate_client_request_id
|
36
|
+
|
37
|
+
# @return [Operations] operations
|
38
|
+
attr_reader :operations
|
39
|
+
|
40
|
+
# @return [Skus] skus
|
41
|
+
attr_reader :skus
|
42
|
+
|
43
|
+
# @return [StorageAccounts] storage_accounts
|
44
|
+
attr_reader :storage_accounts
|
45
|
+
|
46
|
+
# @return [Usages] usages
|
47
|
+
attr_reader :usages
|
48
|
+
|
49
|
+
# @return [BlobContainers] blob_containers
|
50
|
+
attr_reader :blob_containers
|
51
|
+
|
52
|
+
#
|
53
|
+
# Creates initializes a new instance of the StorageManagementClient class.
|
54
|
+
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
55
|
+
# @param base_url [String] the base URI of the service.
|
56
|
+
# @param options [Array] filters to be applied to the HTTP requests.
|
57
|
+
#
|
58
|
+
def initialize(credentials = nil, base_url = nil, options = nil)
|
59
|
+
super(credentials, options)
|
60
|
+
@base_url = base_url || 'https://management.azure.com'
|
61
|
+
|
62
|
+
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
63
|
+
@credentials = credentials
|
64
|
+
|
65
|
+
@operations = Operations.new(self)
|
66
|
+
@skus = Skus.new(self)
|
67
|
+
@storage_accounts = StorageAccounts.new(self)
|
68
|
+
@usages = Usages.new(self)
|
69
|
+
@blob_containers = BlobContainers.new(self)
|
70
|
+
@api_version = '2018-03-01-preview'
|
71
|
+
@accept_language = 'en-US'
|
72
|
+
@long_running_operation_retry_timeout = 30
|
73
|
+
@generate_client_request_id = true
|
74
|
+
add_telemetry
|
75
|
+
end
|
76
|
+
|
77
|
+
#
|
78
|
+
# Makes a request and returns the body of the response.
|
79
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
80
|
+
# @param path [String] the path, relative to {base_url}.
|
81
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
82
|
+
# @return [Hash{String=>String}] containing the body of the response.
|
83
|
+
# Example:
|
84
|
+
#
|
85
|
+
# request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
|
86
|
+
# path = "/path"
|
87
|
+
# options = {
|
88
|
+
# body: request_content,
|
89
|
+
# query_params: {'api-version' => '2016-02-01'}
|
90
|
+
# }
|
91
|
+
# result = @client.make_request(:put, path, options)
|
92
|
+
#
|
93
|
+
def make_request(method, path, options = {})
|
94
|
+
result = make_request_with_http_info(method, path, options)
|
95
|
+
result.body unless result.nil?
|
96
|
+
end
|
97
|
+
|
98
|
+
#
|
99
|
+
# Makes a request and returns the operation response.
|
100
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
101
|
+
# @param path [String] the path, relative to {base_url}.
|
102
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
103
|
+
# @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
|
104
|
+
#
|
105
|
+
def make_request_with_http_info(method, path, options = {})
|
106
|
+
result = make_request_async(method, path, options).value!
|
107
|
+
result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
|
108
|
+
result
|
109
|
+
end
|
110
|
+
|
111
|
+
#
|
112
|
+
# Makes a request asynchronously.
|
113
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
114
|
+
# @param path [String] the path, relative to {base_url}.
|
115
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
116
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
117
|
+
#
|
118
|
+
def make_request_async(method, path, options = {})
|
119
|
+
fail ArgumentError, 'method is nil' if method.nil?
|
120
|
+
fail ArgumentError, 'path is nil' if path.nil?
|
121
|
+
|
122
|
+
request_url = options[:base_url] || @base_url
|
123
|
+
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
124
|
+
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
125
|
+
end
|
126
|
+
|
127
|
+
request_headers = @request_headers
|
128
|
+
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
129
|
+
options.merge!({headers: request_headers.merge(options[:headers] || {})})
|
130
|
+
options.merge!({credentials: @credentials}) unless @credentials.nil?
|
131
|
+
|
132
|
+
super(request_url, method, path, options)
|
133
|
+
end
|
134
|
+
|
135
|
+
|
136
|
+
private
|
137
|
+
#
|
138
|
+
# Adds telemetry information.
|
139
|
+
#
|
140
|
+
def add_telemetry
|
141
|
+
sdk_information = 'azure_mgmt_storage'
|
142
|
+
sdk_information = "#{sdk_information}/0.16.1"
|
143
|
+
add_user_agent_information(sdk_information)
|
144
|
+
end
|
145
|
+
end
|
146
|
+
end
|
@@ -0,0 +1,207 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Storage::Mgmt::V2018_03_01_preview
|
7
|
+
#
|
8
|
+
# The Azure Storage Management API.
|
9
|
+
#
|
10
|
+
class Usages
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the Usages class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [StorageManagementClient] reference to the StorageManagementClient
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# Gets the current usage count and the limit for the resources under the
|
26
|
+
# subscription.
|
27
|
+
#
|
28
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
29
|
+
# will be added to the HTTP request.
|
30
|
+
#
|
31
|
+
# @return [UsageListResult] operation results.
|
32
|
+
#
|
33
|
+
def list(custom_headers:nil)
|
34
|
+
response = list_async(custom_headers:custom_headers).value!
|
35
|
+
response.body unless response.nil?
|
36
|
+
end
|
37
|
+
|
38
|
+
#
|
39
|
+
# Gets the current usage count and the limit for the resources under the
|
40
|
+
# subscription.
|
41
|
+
#
|
42
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
43
|
+
# will be added to the HTTP request.
|
44
|
+
#
|
45
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
46
|
+
#
|
47
|
+
def list_with_http_info(custom_headers:nil)
|
48
|
+
list_async(custom_headers:custom_headers).value!
|
49
|
+
end
|
50
|
+
|
51
|
+
#
|
52
|
+
# Gets the current usage count and the limit for the resources under the
|
53
|
+
# subscription.
|
54
|
+
#
|
55
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
56
|
+
# to the HTTP request.
|
57
|
+
#
|
58
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
59
|
+
#
|
60
|
+
def list_async(custom_headers:nil)
|
61
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
62
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
63
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
64
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
65
|
+
|
66
|
+
|
67
|
+
request_headers = {}
|
68
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
69
|
+
|
70
|
+
# Set Headers
|
71
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
72
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
73
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Storage/usages'
|
74
|
+
|
75
|
+
request_url = @base_url || @client.base_url
|
76
|
+
|
77
|
+
options = {
|
78
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
79
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
80
|
+
query_params: {'api-version' => @client.api_version},
|
81
|
+
headers: request_headers.merge(custom_headers || {}),
|
82
|
+
base_url: request_url
|
83
|
+
}
|
84
|
+
promise = @client.make_request_async(:get, path_template, options)
|
85
|
+
|
86
|
+
promise = promise.then do |result|
|
87
|
+
http_response = result.response
|
88
|
+
status_code = http_response.status
|
89
|
+
response_content = http_response.body
|
90
|
+
unless status_code == 200
|
91
|
+
error_model = JSON.load(response_content)
|
92
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
93
|
+
end
|
94
|
+
|
95
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
96
|
+
# Deserialize Response
|
97
|
+
if status_code == 200
|
98
|
+
begin
|
99
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
100
|
+
result_mapper = Azure::Storage::Mgmt::V2018_03_01_preview::Models::UsageListResult.mapper()
|
101
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
102
|
+
rescue Exception => e
|
103
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
result
|
108
|
+
end
|
109
|
+
|
110
|
+
promise.execute
|
111
|
+
end
|
112
|
+
|
113
|
+
#
|
114
|
+
# Gets the current usage count and the limit for the resources of the location
|
115
|
+
# under the subscription.
|
116
|
+
#
|
117
|
+
# @param location [String] The location of the Azure Storage resource.
|
118
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
119
|
+
# will be added to the HTTP request.
|
120
|
+
#
|
121
|
+
# @return [UsageListResult] operation results.
|
122
|
+
#
|
123
|
+
def list_by_location(location, custom_headers:nil)
|
124
|
+
response = list_by_location_async(location, custom_headers:custom_headers).value!
|
125
|
+
response.body unless response.nil?
|
126
|
+
end
|
127
|
+
|
128
|
+
#
|
129
|
+
# Gets the current usage count and the limit for the resources of the location
|
130
|
+
# under the subscription.
|
131
|
+
#
|
132
|
+
# @param location [String] The location of the Azure Storage resource.
|
133
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
134
|
+
# will be added to the HTTP request.
|
135
|
+
#
|
136
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
137
|
+
#
|
138
|
+
def list_by_location_with_http_info(location, custom_headers:nil)
|
139
|
+
list_by_location_async(location, custom_headers:custom_headers).value!
|
140
|
+
end
|
141
|
+
|
142
|
+
#
|
143
|
+
# Gets the current usage count and the limit for the resources of the location
|
144
|
+
# under the subscription.
|
145
|
+
#
|
146
|
+
# @param location [String] The location of the Azure Storage resource.
|
147
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
148
|
+
# to the HTTP request.
|
149
|
+
#
|
150
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
151
|
+
#
|
152
|
+
def list_by_location_async(location, custom_headers:nil)
|
153
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
154
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
155
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
156
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
157
|
+
fail ArgumentError, 'location is nil' if location.nil?
|
158
|
+
|
159
|
+
|
160
|
+
request_headers = {}
|
161
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
162
|
+
|
163
|
+
# Set Headers
|
164
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
165
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
166
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Storage/locations/{location}/usages'
|
167
|
+
|
168
|
+
request_url = @base_url || @client.base_url
|
169
|
+
|
170
|
+
options = {
|
171
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
172
|
+
path_params: {'subscriptionId' => @client.subscription_id,'location' => location},
|
173
|
+
query_params: {'api-version' => @client.api_version},
|
174
|
+
headers: request_headers.merge(custom_headers || {}),
|
175
|
+
base_url: request_url
|
176
|
+
}
|
177
|
+
promise = @client.make_request_async(:get, path_template, options)
|
178
|
+
|
179
|
+
promise = promise.then do |result|
|
180
|
+
http_response = result.response
|
181
|
+
status_code = http_response.status
|
182
|
+
response_content = http_response.body
|
183
|
+
unless status_code == 200
|
184
|
+
error_model = JSON.load(response_content)
|
185
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
186
|
+
end
|
187
|
+
|
188
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
189
|
+
# Deserialize Response
|
190
|
+
if status_code == 200
|
191
|
+
begin
|
192
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
193
|
+
result_mapper = Azure::Storage::Mgmt::V2018_03_01_preview::Models::UsageListResult.mapper()
|
194
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
195
|
+
rescue Exception => e
|
196
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
197
|
+
end
|
198
|
+
end
|
199
|
+
|
200
|
+
result
|
201
|
+
end
|
202
|
+
|
203
|
+
promise.execute
|
204
|
+
end
|
205
|
+
|
206
|
+
end
|
207
|
+
end
|
data/lib/azure_mgmt_storage.rb
CHANGED
@@ -2,12 +2,13 @@
|
|
2
2
|
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
3
|
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
4
|
|
5
|
-
require '
|
6
|
-
require '
|
5
|
+
require '2018-03-01-preview/generated/azure_mgmt_storage'
|
6
|
+
require '2017-10-01/generated/azure_mgmt_storage'
|
7
|
+
require '2018-02-01/generated/azure_mgmt_storage'
|
7
8
|
require '2016-01-01/generated/azure_mgmt_storage'
|
9
|
+
require '2015-06-15/generated/azure_mgmt_storage'
|
10
|
+
require '2015-05-01-preview/generated/azure_mgmt_storage'
|
8
11
|
require '2016-12-01/generated/azure_mgmt_storage'
|
9
12
|
require '2017-06-01/generated/azure_mgmt_storage'
|
10
|
-
require '2017-10-01/generated/azure_mgmt_storage'
|
11
|
-
require '2018-02-01/generated/azure_mgmt_storage'
|
12
|
-
require 'profiles/latest/storage_latest_profile_client'
|
13
13
|
require 'profiles/v2017_03_09/storage_v2017_03_09_profile_client'
|
14
|
+
require 'profiles/latest/storage_latest_profile_client'
|
@@ -6,95 +6,97 @@ require 'azure_mgmt_storage'
|
|
6
6
|
|
7
7
|
module Azure::Storage::Profiles::Latest
|
8
8
|
module Mgmt
|
9
|
-
Operations = Azure::Storage::Mgmt::
|
10
|
-
Skus = Azure::Storage::Mgmt::
|
11
|
-
StorageAccounts = Azure::Storage::Mgmt::
|
12
|
-
|
13
|
-
BlobContainers = Azure::Storage::Mgmt::
|
9
|
+
Operations = Azure::Storage::Mgmt::V2018_03_01_preview::Operations
|
10
|
+
Skus = Azure::Storage::Mgmt::V2018_03_01_preview::Skus
|
11
|
+
StorageAccounts = Azure::Storage::Mgmt::V2018_03_01_preview::StorageAccounts
|
12
|
+
Usages = Azure::Storage::Mgmt::V2018_03_01_preview::Usages
|
13
|
+
BlobContainers = Azure::Storage::Mgmt::V2018_03_01_preview::BlobContainers
|
14
14
|
|
15
15
|
module Models
|
16
|
-
|
17
|
-
|
18
|
-
Dimension = Azure::Storage::Mgmt::
|
19
|
-
|
20
|
-
ServiceSpecification = Azure::Storage::Mgmt::
|
21
|
-
|
22
|
-
OperationListResult = Azure::Storage::Mgmt::
|
23
|
-
|
24
|
-
SKUCapability = Azure::Storage::Mgmt::
|
25
|
-
|
26
|
-
Sku = Azure::Storage::Mgmt::
|
27
|
-
|
28
|
-
CheckNameAvailabilityResult = Azure::Storage::Mgmt::
|
29
|
-
|
30
|
-
EncryptionService = Azure::Storage::Mgmt::
|
31
|
-
|
32
|
-
KeyVaultProperties = Azure::Storage::Mgmt::
|
33
|
-
|
34
|
-
VirtualNetworkRule = Azure::Storage::Mgmt::
|
35
|
-
|
36
|
-
NetworkRuleSet = Azure::Storage::Mgmt::
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
Identity = Azure::Storage::Mgmt::
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
ListContainerItems = Azure::Storage::Mgmt::
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
16
|
+
StorageAccountListResult = Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountListResult
|
17
|
+
StorageAccountListKeysResult = Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountListKeysResult
|
18
|
+
Dimension = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Dimension
|
19
|
+
StorageAccountRegenerateKeyParameters = Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountRegenerateKeyParameters
|
20
|
+
ServiceSpecification = Azure::Storage::Mgmt::V2018_03_01_preview::Models::ServiceSpecification
|
21
|
+
StorageAccountUpdateParameters = Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountUpdateParameters
|
22
|
+
OperationListResult = Azure::Storage::Mgmt::V2018_03_01_preview::Models::OperationListResult
|
23
|
+
UsageName = Azure::Storage::Mgmt::V2018_03_01_preview::Models::UsageName
|
24
|
+
SKUCapability = Azure::Storage::Mgmt::V2018_03_01_preview::Models::SKUCapability
|
25
|
+
Usage = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Usage
|
26
|
+
Sku = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Sku
|
27
|
+
UsageListResult = Azure::Storage::Mgmt::V2018_03_01_preview::Models::UsageListResult
|
28
|
+
CheckNameAvailabilityResult = Azure::Storage::Mgmt::V2018_03_01_preview::Models::CheckNameAvailabilityResult
|
29
|
+
AccountSasParameters = Azure::Storage::Mgmt::V2018_03_01_preview::Models::AccountSasParameters
|
30
|
+
EncryptionService = Azure::Storage::Mgmt::V2018_03_01_preview::Models::EncryptionService
|
31
|
+
ListAccountSasResponse = Azure::Storage::Mgmt::V2018_03_01_preview::Models::ListAccountSasResponse
|
32
|
+
KeyVaultProperties = Azure::Storage::Mgmt::V2018_03_01_preview::Models::KeyVaultProperties
|
33
|
+
ServiceSasParameters = Azure::Storage::Mgmt::V2018_03_01_preview::Models::ServiceSasParameters
|
34
|
+
VirtualNetworkRule = Azure::Storage::Mgmt::V2018_03_01_preview::Models::VirtualNetworkRule
|
35
|
+
ListServiceSasResponse = Azure::Storage::Mgmt::V2018_03_01_preview::Models::ListServiceSasResponse
|
36
|
+
NetworkRuleSet = Azure::Storage::Mgmt::V2018_03_01_preview::Models::NetworkRuleSet
|
37
|
+
EncryptionServices = Azure::Storage::Mgmt::V2018_03_01_preview::Models::EncryptionServices
|
38
|
+
Encryption = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Encryption
|
39
|
+
Endpoints = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Endpoints
|
40
|
+
IPRule = Azure::Storage::Mgmt::V2018_03_01_preview::Models::IPRule
|
41
|
+
StorageAccountKey = Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountKey
|
42
|
+
Identity = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Identity
|
43
|
+
MetricSpecification = Azure::Storage::Mgmt::V2018_03_01_preview::Models::MetricSpecification
|
44
|
+
StorageAccountCheckNameAvailabilityParameters = Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountCheckNameAvailabilityParameters
|
45
|
+
ManagementPoliciesRulesSetParameter = Azure::Storage::Mgmt::V2018_03_01_preview::Models::ManagementPoliciesRulesSetParameter
|
46
|
+
StorageSkuListResult = Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageSkuListResult
|
47
|
+
ListContainerItems = Azure::Storage::Mgmt::V2018_03_01_preview::Models::ListContainerItems
|
48
|
+
StorageAccountCreateParameters = Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountCreateParameters
|
49
|
+
LegalHold = Azure::Storage::Mgmt::V2018_03_01_preview::Models::LegalHold
|
50
|
+
OperationDisplay = Azure::Storage::Mgmt::V2018_03_01_preview::Models::OperationDisplay
|
51
|
+
LegalHoldProperties = Azure::Storage::Mgmt::V2018_03_01_preview::Models::LegalHoldProperties
|
52
|
+
Restriction = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Restriction
|
53
|
+
Resource = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Resource
|
54
|
+
TagProperty = Azure::Storage::Mgmt::V2018_03_01_preview::Models::TagProperty
|
55
|
+
Operation = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Operation
|
56
|
+
UpdateHistoryProperty = Azure::Storage::Mgmt::V2018_03_01_preview::Models::UpdateHistoryProperty
|
57
|
+
CustomDomain = Azure::Storage::Mgmt::V2018_03_01_preview::Models::CustomDomain
|
58
|
+
ImmutabilityPolicyProperties = Azure::Storage::Mgmt::V2018_03_01_preview::Models::ImmutabilityPolicyProperties
|
59
|
+
StorageAccount = Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccount
|
60
|
+
StorageAccountManagementPolicies = Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountManagementPolicies
|
61
|
+
ProxyResource = Azure::Storage::Mgmt::V2018_03_01_preview::Models::ProxyResource
|
62
|
+
TrackedResource = Azure::Storage::Mgmt::V2018_03_01_preview::Models::TrackedResource
|
63
|
+
AzureEntityResource = Azure::Storage::Mgmt::V2018_03_01_preview::Models::AzureEntityResource
|
64
|
+
BlobContainer = Azure::Storage::Mgmt::V2018_03_01_preview::Models::BlobContainer
|
65
|
+
ImmutabilityPolicy = Azure::Storage::Mgmt::V2018_03_01_preview::Models::ImmutabilityPolicy
|
66
|
+
ListContainerItem = Azure::Storage::Mgmt::V2018_03_01_preview::Models::ListContainerItem
|
67
|
+
ReasonCode = Azure::Storage::Mgmt::V2018_03_01_preview::Models::ReasonCode
|
68
|
+
SkuName = Azure::Storage::Mgmt::V2018_03_01_preview::Models::SkuName
|
69
|
+
SkuTier = Azure::Storage::Mgmt::V2018_03_01_preview::Models::SkuTier
|
70
|
+
Kind = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Kind
|
71
|
+
Reason = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Reason
|
72
|
+
KeySource = Azure::Storage::Mgmt::V2018_03_01_preview::Models::KeySource
|
73
|
+
Action = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Action
|
74
|
+
State = Azure::Storage::Mgmt::V2018_03_01_preview::Models::State
|
75
|
+
Bypass = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Bypass
|
76
|
+
DefaultAction = Azure::Storage::Mgmt::V2018_03_01_preview::Models::DefaultAction
|
77
|
+
AccessTier = Azure::Storage::Mgmt::V2018_03_01_preview::Models::AccessTier
|
78
|
+
ProvisioningState = Azure::Storage::Mgmt::V2018_03_01_preview::Models::ProvisioningState
|
79
|
+
AccountStatus = Azure::Storage::Mgmt::V2018_03_01_preview::Models::AccountStatus
|
80
|
+
KeyPermission = Azure::Storage::Mgmt::V2018_03_01_preview::Models::KeyPermission
|
81
|
+
UsageUnit = Azure::Storage::Mgmt::V2018_03_01_preview::Models::UsageUnit
|
82
|
+
Services = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Services
|
83
|
+
SignedResourceTypes = Azure::Storage::Mgmt::V2018_03_01_preview::Models::SignedResourceTypes
|
84
|
+
Permissions = Azure::Storage::Mgmt::V2018_03_01_preview::Models::Permissions
|
85
|
+
HttpProtocol = Azure::Storage::Mgmt::V2018_03_01_preview::Models::HttpProtocol
|
86
|
+
SignedResource = Azure::Storage::Mgmt::V2018_03_01_preview::Models::SignedResource
|
87
|
+
PublicAccess = Azure::Storage::Mgmt::V2018_03_01_preview::Models::PublicAccess
|
88
|
+
LeaseStatus = Azure::Storage::Mgmt::V2018_03_01_preview::Models::LeaseStatus
|
89
|
+
LeaseState = Azure::Storage::Mgmt::V2018_03_01_preview::Models::LeaseState
|
90
|
+
LeaseDuration = Azure::Storage::Mgmt::V2018_03_01_preview::Models::LeaseDuration
|
91
|
+
ImmutabilityPolicyState = Azure::Storage::Mgmt::V2018_03_01_preview::Models::ImmutabilityPolicyState
|
92
|
+
ImmutabilityPolicyUpdateType = Azure::Storage::Mgmt::V2018_03_01_preview::Models::ImmutabilityPolicyUpdateType
|
91
93
|
end
|
92
94
|
|
93
95
|
#
|
94
96
|
# StorageManagementClass
|
95
97
|
#
|
96
98
|
class StorageManagementClass
|
97
|
-
attr_reader :operations, :skus, :storage_accounts, :
|
99
|
+
attr_reader :operations, :skus, :storage_accounts, :usages, :blob_containers, :configurable, :base_url, :options, :model_classes
|
98
100
|
|
99
101
|
def initialize(options = {})
|
100
102
|
if options.is_a?(Hash) && options.length == 0
|
@@ -109,7 +111,7 @@ module Azure::Storage::Profiles::Latest
|
|
109
111
|
@base_url = options[:base_url].nil? ? nil:options[:base_url]
|
110
112
|
@options = options[:options].nil? ? nil:options[:options]
|
111
113
|
|
112
|
-
@client_0 = Azure::Storage::Mgmt::
|
114
|
+
@client_0 = Azure::Storage::Mgmt::V2018_03_01_preview::StorageManagementClient.new(configurable.credentials, base_url, options)
|
113
115
|
if(@client_0.respond_to?(:subscription_id))
|
114
116
|
@client_0.subscription_id = configurable.subscription_id
|
115
117
|
end
|
@@ -117,7 +119,7 @@ module Azure::Storage::Profiles::Latest
|
|
117
119
|
@operations = @client_0.operations
|
118
120
|
@skus = @client_0.skus
|
119
121
|
@storage_accounts = @client_0.storage_accounts
|
120
|
-
@
|
122
|
+
@usages = @client_0.usages
|
121
123
|
@blob_containers = @client_0.blob_containers
|
122
124
|
|
123
125
|
@model_classes = ModelClasses.new
|
@@ -139,230 +141,236 @@ module Azure::Storage::Profiles::Latest
|
|
139
141
|
end
|
140
142
|
|
141
143
|
class ModelClasses
|
142
|
-
def storage_account_key
|
143
|
-
Azure::Storage::Mgmt::V2018_02_01::Models::StorageAccountKey
|
144
|
-
end
|
145
144
|
def storage_account_list_result
|
146
|
-
Azure::Storage::Mgmt::
|
145
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountListResult
|
146
|
+
end
|
147
|
+
def storage_account_list_keys_result
|
148
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountListKeysResult
|
147
149
|
end
|
148
150
|
def dimension
|
149
|
-
Azure::Storage::Mgmt::
|
151
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::Dimension
|
150
152
|
end
|
151
|
-
def
|
152
|
-
Azure::Storage::Mgmt::
|
153
|
+
def storage_account_regenerate_key_parameters
|
154
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountRegenerateKeyParameters
|
153
155
|
end
|
154
156
|
def service_specification
|
155
|
-
Azure::Storage::Mgmt::
|
157
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::ServiceSpecification
|
156
158
|
end
|
157
|
-
def
|
158
|
-
Azure::Storage::Mgmt::
|
159
|
+
def storage_account_update_parameters
|
160
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountUpdateParameters
|
159
161
|
end
|
160
162
|
def operation_list_result
|
161
|
-
Azure::Storage::Mgmt::
|
163
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::OperationListResult
|
162
164
|
end
|
163
|
-
def
|
164
|
-
Azure::Storage::Mgmt::
|
165
|
+
def usage_name
|
166
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::UsageName
|
165
167
|
end
|
166
168
|
def skucapability
|
167
|
-
Azure::Storage::Mgmt::
|
169
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::SKUCapability
|
168
170
|
end
|
169
|
-
def
|
170
|
-
Azure::Storage::Mgmt::
|
171
|
+
def usage
|
172
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::Usage
|
171
173
|
end
|
172
174
|
def sku
|
173
|
-
Azure::Storage::Mgmt::
|
175
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::Sku
|
174
176
|
end
|
175
|
-
def
|
176
|
-
Azure::Storage::Mgmt::
|
177
|
+
def usage_list_result
|
178
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::UsageListResult
|
177
179
|
end
|
178
180
|
def check_name_availability_result
|
179
|
-
Azure::Storage::Mgmt::
|
181
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::CheckNameAvailabilityResult
|
180
182
|
end
|
181
|
-
def
|
182
|
-
Azure::Storage::Mgmt::
|
183
|
+
def account_sas_parameters
|
184
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::AccountSasParameters
|
183
185
|
end
|
184
186
|
def encryption_service
|
185
|
-
Azure::Storage::Mgmt::
|
187
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::EncryptionService
|
186
188
|
end
|
187
|
-
def
|
188
|
-
Azure::Storage::Mgmt::
|
189
|
+
def list_account_sas_response
|
190
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::ListAccountSasResponse
|
189
191
|
end
|
190
192
|
def key_vault_properties
|
191
|
-
Azure::Storage::Mgmt::
|
193
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::KeyVaultProperties
|
192
194
|
end
|
193
|
-
def
|
194
|
-
Azure::Storage::Mgmt::
|
195
|
+
def service_sas_parameters
|
196
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::ServiceSasParameters
|
195
197
|
end
|
196
198
|
def virtual_network_rule
|
197
|
-
Azure::Storage::Mgmt::
|
199
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::VirtualNetworkRule
|
198
200
|
end
|
199
|
-
def
|
200
|
-
Azure::Storage::Mgmt::
|
201
|
+
def list_service_sas_response
|
202
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::ListServiceSasResponse
|
201
203
|
end
|
202
204
|
def network_rule_set
|
203
|
-
Azure::Storage::Mgmt::
|
205
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::NetworkRuleSet
|
204
206
|
end
|
205
|
-
def
|
206
|
-
Azure::Storage::Mgmt::
|
207
|
+
def encryption_services
|
208
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::EncryptionServices
|
207
209
|
end
|
208
|
-
def
|
209
|
-
Azure::Storage::Mgmt::
|
210
|
+
def encryption
|
211
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::Encryption
|
210
212
|
end
|
211
|
-
def
|
212
|
-
Azure::Storage::Mgmt::
|
213
|
+
def endpoints
|
214
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::Endpoints
|
213
215
|
end
|
214
|
-
def
|
215
|
-
Azure::Storage::Mgmt::
|
216
|
+
def iprule
|
217
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::IPRule
|
216
218
|
end
|
217
|
-
def
|
218
|
-
Azure::Storage::Mgmt::
|
219
|
+
def storage_account_key
|
220
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountKey
|
219
221
|
end
|
220
222
|
def identity
|
221
|
-
Azure::Storage::Mgmt::
|
223
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::Identity
|
222
224
|
end
|
223
|
-
def
|
224
|
-
Azure::Storage::Mgmt::
|
225
|
+
def metric_specification
|
226
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::MetricSpecification
|
225
227
|
end
|
226
|
-
def
|
227
|
-
Azure::Storage::Mgmt::
|
228
|
+
def storage_account_check_name_availability_parameters
|
229
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountCheckNameAvailabilityParameters
|
228
230
|
end
|
229
|
-
def
|
230
|
-
Azure::Storage::Mgmt::
|
231
|
+
def management_policies_rules_set_parameter
|
232
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::ManagementPoliciesRulesSetParameter
|
231
233
|
end
|
232
|
-
def
|
233
|
-
Azure::Storage::Mgmt::
|
234
|
+
def storage_sku_list_result
|
235
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageSkuListResult
|
234
236
|
end
|
235
237
|
def list_container_items
|
236
|
-
Azure::Storage::Mgmt::
|
238
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::ListContainerItems
|
237
239
|
end
|
238
|
-
def
|
239
|
-
Azure::Storage::Mgmt::
|
240
|
+
def storage_account_create_parameters
|
241
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountCreateParameters
|
240
242
|
end
|
241
|
-
def
|
242
|
-
Azure::Storage::Mgmt::
|
243
|
+
def legal_hold
|
244
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::LegalHold
|
243
245
|
end
|
244
|
-
def
|
245
|
-
Azure::Storage::Mgmt::
|
246
|
+
def operation_display
|
247
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::OperationDisplay
|
246
248
|
end
|
247
|
-
def
|
248
|
-
Azure::Storage::Mgmt::
|
249
|
+
def legal_hold_properties
|
250
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::LegalHoldProperties
|
249
251
|
end
|
250
|
-
def
|
251
|
-
Azure::Storage::Mgmt::
|
252
|
+
def restriction
|
253
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::Restriction
|
252
254
|
end
|
253
|
-
def
|
254
|
-
Azure::Storage::Mgmt::
|
255
|
+
def resource
|
256
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::Resource
|
255
257
|
end
|
256
|
-
def
|
257
|
-
Azure::Storage::Mgmt::
|
258
|
+
def tag_property
|
259
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::TagProperty
|
258
260
|
end
|
259
|
-
def
|
260
|
-
Azure::Storage::Mgmt::
|
261
|
+
def operation
|
262
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::Operation
|
261
263
|
end
|
262
|
-
def
|
263
|
-
Azure::Storage::Mgmt::
|
264
|
+
def update_history_property
|
265
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::UpdateHistoryProperty
|
264
266
|
end
|
265
|
-
def
|
266
|
-
Azure::Storage::Mgmt::
|
267
|
+
def custom_domain
|
268
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::CustomDomain
|
269
|
+
end
|
270
|
+
def immutability_policy_properties
|
271
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::ImmutabilityPolicyProperties
|
267
272
|
end
|
268
273
|
def storage_account
|
269
|
-
Azure::Storage::Mgmt::
|
274
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccount
|
270
275
|
end
|
271
|
-
def
|
272
|
-
Azure::Storage::Mgmt::
|
276
|
+
def storage_account_management_policies
|
277
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::StorageAccountManagementPolicies
|
273
278
|
end
|
274
|
-
def
|
275
|
-
Azure::Storage::Mgmt::
|
279
|
+
def proxy_resource
|
280
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::ProxyResource
|
276
281
|
end
|
277
282
|
def tracked_resource
|
278
|
-
Azure::Storage::Mgmt::
|
283
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::TrackedResource
|
284
|
+
end
|
285
|
+
def azure_entity_resource
|
286
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::AzureEntityResource
|
279
287
|
end
|
280
288
|
def blob_container
|
281
|
-
Azure::Storage::Mgmt::
|
289
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::BlobContainer
|
282
290
|
end
|
283
291
|
def immutability_policy
|
284
|
-
Azure::Storage::Mgmt::
|
292
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::ImmutabilityPolicy
|
285
293
|
end
|
286
294
|
def list_container_item
|
287
|
-
Azure::Storage::Mgmt::
|
295
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::ListContainerItem
|
288
296
|
end
|
289
297
|
def reason_code
|
290
|
-
Azure::Storage::Mgmt::
|
298
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::ReasonCode
|
291
299
|
end
|
292
300
|
def sku_name
|
293
|
-
Azure::Storage::Mgmt::
|
301
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::SkuName
|
294
302
|
end
|
295
303
|
def sku_tier
|
296
|
-
Azure::Storage::Mgmt::
|
304
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::SkuTier
|
297
305
|
end
|
298
306
|
def kind
|
299
|
-
Azure::Storage::Mgmt::
|
307
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::Kind
|
300
308
|
end
|
301
309
|
def reason
|
302
|
-
Azure::Storage::Mgmt::
|
310
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::Reason
|
303
311
|
end
|
304
312
|
def key_source
|
305
|
-
Azure::Storage::Mgmt::
|
313
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::KeySource
|
306
314
|
end
|
307
315
|
def action
|
308
|
-
Azure::Storage::Mgmt::
|
316
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::Action
|
309
317
|
end
|
310
318
|
def state
|
311
|
-
Azure::Storage::Mgmt::
|
319
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::State
|
312
320
|
end
|
313
321
|
def bypass
|
314
|
-
Azure::Storage::Mgmt::
|
322
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::Bypass
|
315
323
|
end
|
316
324
|
def default_action
|
317
|
-
Azure::Storage::Mgmt::
|
325
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::DefaultAction
|
318
326
|
end
|
319
327
|
def access_tier
|
320
|
-
Azure::Storage::Mgmt::
|
328
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::AccessTier
|
321
329
|
end
|
322
330
|
def provisioning_state
|
323
|
-
Azure::Storage::Mgmt::
|
331
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::ProvisioningState
|
324
332
|
end
|
325
333
|
def account_status
|
326
|
-
Azure::Storage::Mgmt::
|
334
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::AccountStatus
|
327
335
|
end
|
328
336
|
def key_permission
|
329
|
-
Azure::Storage::Mgmt::
|
337
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::KeyPermission
|
330
338
|
end
|
331
339
|
def usage_unit
|
332
|
-
Azure::Storage::Mgmt::
|
340
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::UsageUnit
|
333
341
|
end
|
334
342
|
def services
|
335
|
-
Azure::Storage::Mgmt::
|
343
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::Services
|
336
344
|
end
|
337
345
|
def signed_resource_types
|
338
|
-
Azure::Storage::Mgmt::
|
346
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::SignedResourceTypes
|
339
347
|
end
|
340
348
|
def permissions
|
341
|
-
Azure::Storage::Mgmt::
|
349
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::Permissions
|
342
350
|
end
|
343
351
|
def http_protocol
|
344
|
-
Azure::Storage::Mgmt::
|
352
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::HttpProtocol
|
345
353
|
end
|
346
354
|
def signed_resource
|
347
|
-
Azure::Storage::Mgmt::
|
355
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::SignedResource
|
348
356
|
end
|
349
357
|
def public_access
|
350
|
-
Azure::Storage::Mgmt::
|
358
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::PublicAccess
|
351
359
|
end
|
352
360
|
def lease_status
|
353
|
-
Azure::Storage::Mgmt::
|
361
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::LeaseStatus
|
354
362
|
end
|
355
363
|
def lease_state
|
356
|
-
Azure::Storage::Mgmt::
|
364
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::LeaseState
|
357
365
|
end
|
358
366
|
def lease_duration
|
359
|
-
Azure::Storage::Mgmt::
|
367
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::LeaseDuration
|
360
368
|
end
|
361
369
|
def immutability_policy_state
|
362
|
-
Azure::Storage::Mgmt::
|
370
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::ImmutabilityPolicyState
|
363
371
|
end
|
364
372
|
def immutability_policy_update_type
|
365
|
-
Azure::Storage::Mgmt::
|
373
|
+
Azure::Storage::Mgmt::V2018_03_01_preview::Models::ImmutabilityPolicyUpdateType
|
366
374
|
end
|
367
375
|
end
|
368
376
|
end
|