azure_mgmt_storage 0.17.8 → 0.17.9

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