azure_mgmt_storagecache 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache.rb +61 -0
  4. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/caches.rb +1480 -0
  5. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/models/api_operation.rb +59 -0
  6. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/models/api_operation_display.rb +69 -0
  7. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/models/api_operation_list_result.rb +101 -0
  8. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/models/cache.rb +188 -0
  9. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/models/cache_health.rb +60 -0
  10. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/models/cache_sku.rb +46 -0
  11. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/models/cache_upgrade_status.rb +101 -0
  12. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/models/caches_list_result.rb +100 -0
  13. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/models/clfs_target.rb +46 -0
  14. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/models/cloud_error.rb +47 -0
  15. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/models/cloud_error_body.rb +92 -0
  16. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/models/firmware_status_type.rb +16 -0
  17. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/models/health_state_type.rb +23 -0
  18. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/models/namespace_junction.rb +68 -0
  19. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/models/nfs3target.rb +62 -0
  20. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/models/provisioning_state_type.rb +20 -0
  21. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/models/reason_code.rb +16 -0
  22. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/models/resource_sku.rb +143 -0
  23. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/models/resource_sku_capabilities.rb +57 -0
  24. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/models/resource_sku_location_info.rb +65 -0
  25. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/models/resource_skus_result.rb +100 -0
  26. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/models/restriction.rb +85 -0
  27. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/models/storage_target.rb +155 -0
  28. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/models/storage_target_type.rb +17 -0
  29. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/models/storage_targets_result.rb +99 -0
  30. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/models/unknown_target.rb +55 -0
  31. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/models/usage_model.rb +71 -0
  32. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/models/usage_model_display.rb +46 -0
  33. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/models/usage_models_result.rb +99 -0
  34. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/module_definition.rb +9 -0
  35. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/operations.rb +221 -0
  36. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/skus.rb +223 -0
  37. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/storage_cache_mgmt_client.rb +149 -0
  38. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/storage_targets.rb +788 -0
  39. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/usage_models.rb +223 -0
  40. data/lib/azure_mgmt_storagecache.rb +6 -0
  41. data/lib/module_definition.rb +7 -0
  42. data/lib/profiles/latest/modules/storagecache_profile_module.rb +185 -0
  43. data/lib/profiles/latest/storagecache_latest_profile_client.rb +40 -0
  44. data/lib/profiles/latest/storagecache_module_definition.rb +8 -0
  45. data/lib/version.rb +7 -0
  46. metadata +161 -0
@@ -0,0 +1,223 @@
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::StorageCache::Mgmt::V2019_08_01_preview
7
+ #
8
+ # A Storage Cache provides scalable caching service for NAS clients, serving
9
+ # data from either NFSv3 or Blob at-rest storage (referred to as "Storage
10
+ # Targets"). These operations allow you to manage caches.
11
+ #
12
+ class UsageModels
13
+ include MsRestAzure
14
+
15
+ #
16
+ # Creates and initializes a new instance of the UsageModels class.
17
+ # @param client service class for accessing basic functionality.
18
+ #
19
+ def initialize(client)
20
+ @client = client
21
+ end
22
+
23
+ # @return [StorageCacheMgmtClient] reference to the StorageCacheMgmtClient
24
+ attr_reader :client
25
+
26
+ #
27
+ # Get the list of cache Usage Models available to this subscription.
28
+ #
29
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
30
+ # will be added to the HTTP request.
31
+ #
32
+ # @return [Array<UsageModel>] operation results.
33
+ #
34
+ def list(custom_headers:nil)
35
+ first_page = list_as_lazy(custom_headers:custom_headers)
36
+ first_page.get_all_items
37
+ end
38
+
39
+ #
40
+ # Get the list of cache Usage Models available to this 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
+ # Get the list of cache Usage Models available to this subscription.
53
+ #
54
+ # @param [Hash{String => String}] A hash of custom headers that will be added
55
+ # to the HTTP request.
56
+ #
57
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
58
+ #
59
+ def list_async(custom_headers:nil)
60
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
61
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
62
+
63
+
64
+ request_headers = {}
65
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
66
+
67
+ # Set Headers
68
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
69
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
70
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/usageModels'
71
+
72
+ request_url = @base_url || @client.base_url
73
+
74
+ options = {
75
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
76
+ path_params: {'subscriptionId' => @client.subscription_id},
77
+ query_params: {'api-version' => @client.api_version},
78
+ headers: request_headers.merge(custom_headers || {}),
79
+ base_url: request_url
80
+ }
81
+ promise = @client.make_request_async(:get, path_template, options)
82
+
83
+ promise = promise.then do |result|
84
+ http_response = result.response
85
+ status_code = http_response.status
86
+ response_content = http_response.body
87
+ unless status_code == 200
88
+ error_model = JSON.load(response_content)
89
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
90
+ end
91
+
92
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
93
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
94
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
95
+ # Deserialize Response
96
+ if status_code == 200
97
+ begin
98
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
99
+ result_mapper = Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::UsageModelsResult.mapper()
100
+ result.body = @client.deserialize(result_mapper, parsed_response)
101
+ rescue Exception => e
102
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
103
+ end
104
+ end
105
+
106
+ result
107
+ end
108
+
109
+ promise.execute
110
+ end
111
+
112
+ #
113
+ # Get the list of cache Usage Models available to this subscription.
114
+ #
115
+ # @param next_page_link [String] The NextLink from the previous successful call
116
+ # to List operation.
117
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
118
+ # will be added to the HTTP request.
119
+ #
120
+ # @return [UsageModelsResult] operation results.
121
+ #
122
+ def list_next(next_page_link, custom_headers:nil)
123
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
124
+ response.body unless response.nil?
125
+ end
126
+
127
+ #
128
+ # Get the list of cache Usage Models available to this subscription.
129
+ #
130
+ # @param next_page_link [String] The NextLink from the previous successful call
131
+ # to List operation.
132
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
133
+ # will be added to the HTTP request.
134
+ #
135
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
136
+ #
137
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
138
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
139
+ end
140
+
141
+ #
142
+ # Get the list of cache Usage Models available to this subscription.
143
+ #
144
+ # @param next_page_link [String] The NextLink from the previous successful call
145
+ # to List operation.
146
+ # @param [Hash{String => String}] A hash of custom headers that will be added
147
+ # to the HTTP request.
148
+ #
149
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
150
+ #
151
+ def list_next_async(next_page_link, custom_headers:nil)
152
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
153
+
154
+
155
+ request_headers = {}
156
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
157
+
158
+ # Set Headers
159
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
160
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
161
+ path_template = '{nextLink}'
162
+
163
+ request_url = @base_url || @client.base_url
164
+
165
+ options = {
166
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
167
+ skip_encoding_path_params: {'nextLink' => next_page_link},
168
+ headers: request_headers.merge(custom_headers || {}),
169
+ base_url: request_url
170
+ }
171
+ promise = @client.make_request_async(:get, path_template, options)
172
+
173
+ promise = promise.then do |result|
174
+ http_response = result.response
175
+ status_code = http_response.status
176
+ response_content = http_response.body
177
+ unless status_code == 200
178
+ error_model = JSON.load(response_content)
179
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
180
+ end
181
+
182
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
183
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
184
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
185
+ # Deserialize Response
186
+ if status_code == 200
187
+ begin
188
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
189
+ result_mapper = Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::UsageModelsResult.mapper()
190
+ result.body = @client.deserialize(result_mapper, parsed_response)
191
+ rescue Exception => e
192
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
193
+ end
194
+ end
195
+
196
+ result
197
+ end
198
+
199
+ promise.execute
200
+ end
201
+
202
+ #
203
+ # Get the list of cache Usage Models available to this subscription.
204
+ #
205
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
206
+ # will be added to the HTTP request.
207
+ #
208
+ # @return [UsageModelsResult] which provide lazy access to pages of the
209
+ # response.
210
+ #
211
+ def list_as_lazy(custom_headers:nil)
212
+ response = list_async(custom_headers:custom_headers).value!
213
+ unless response.nil?
214
+ page = response.body
215
+ page.next_method = Proc.new do |next_page_link|
216
+ list_next_async(next_page_link, custom_headers:custom_headers)
217
+ end
218
+ page
219
+ end
220
+ end
221
+
222
+ end
223
+ end
@@ -0,0 +1,6 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ require '2019-08-01-preview/generated/azure_mgmt_storagecache'
6
+ require 'profiles/latest/storagecache_latest_profile_client'
@@ -0,0 +1,7 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ module Azure end
6
+ module Azure::Storagecache end
7
+ module Azure::Storagecache::Mgmt end
@@ -0,0 +1,185 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ require 'azure_mgmt_storagecache'
6
+
7
+ module Azure::StorageCache::Profiles::Latest
8
+ module Mgmt
9
+ Operations = Azure::StorageCache::Mgmt::V2019_08_01_preview::Operations
10
+ Skus = Azure::StorageCache::Mgmt::V2019_08_01_preview::Skus
11
+ UsageModels = Azure::StorageCache::Mgmt::V2019_08_01_preview::UsageModels
12
+ Caches = Azure::StorageCache::Mgmt::V2019_08_01_preview::Caches
13
+ StorageTargets = Azure::StorageCache::Mgmt::V2019_08_01_preview::StorageTargets
14
+
15
+ module Models
16
+ ClfsTarget = Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::ClfsTarget
17
+ UnknownTarget = Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::UnknownTarget
18
+ ApiOperation = Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::ApiOperation
19
+ ResourceSkuCapabilities = Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::ResourceSkuCapabilities
20
+ CloudErrorBody = Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::CloudErrorBody
21
+ ResourceSkuLocationInfo = Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::ResourceSkuLocationInfo
22
+ CacheHealth = Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::CacheHealth
23
+ Restriction = Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::Restriction
24
+ CacheSku = Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::CacheSku
25
+ ResourceSku = Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::ResourceSku
26
+ CachesListResult = Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::CachesListResult
27
+ ResourceSkusResult = Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::ResourceSkusResult
28
+ ApiOperationDisplay = Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::ApiOperationDisplay
29
+ NamespaceJunction = Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::NamespaceJunction
30
+ CloudError = Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::CloudError
31
+ StorageTarget = Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::StorageTarget
32
+ Cache = Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::Cache
33
+ StorageTargetsResult = Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::StorageTargetsResult
34
+ ApiOperationListResult = Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::ApiOperationListResult
35
+ UsageModelDisplay = Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::UsageModelDisplay
36
+ Nfs3Target = Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::Nfs3Target
37
+ UsageModel = Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::UsageModel
38
+ CacheUpgradeStatus = Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::CacheUpgradeStatus
39
+ UsageModelsResult = Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::UsageModelsResult
40
+ HealthStateType = Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::HealthStateType
41
+ ProvisioningStateType = Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::ProvisioningStateType
42
+ FirmwareStatusType = Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::FirmwareStatusType
43
+ ReasonCode = Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::ReasonCode
44
+ StorageTargetType = Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::StorageTargetType
45
+ end
46
+
47
+ #
48
+ # StorageCacheManagementClass
49
+ #
50
+ class StorageCacheManagementClass
51
+ attr_reader :operations, :skus, :usage_models, :caches, :storage_targets, :configurable, :base_url, :options, :model_classes
52
+
53
+ def initialize(options = {})
54
+ if options.is_a?(Hash) && options.length == 0
55
+ @options = setup_default_options
56
+ else
57
+ @options = options
58
+ end
59
+
60
+ reset!(options)
61
+
62
+ @configurable = self
63
+ @base_url = options[:base_url].nil? ? nil:options[:base_url]
64
+ @options = options[:options].nil? ? nil:options[:options]
65
+
66
+ @client_0 = Azure::StorageCache::Mgmt::V2019_08_01_preview::StorageCacheMgmtClient.new(configurable.credentials, base_url, options)
67
+ if(@client_0.respond_to?(:subscription_id))
68
+ @client_0.subscription_id = configurable.subscription_id
69
+ end
70
+ add_telemetry(@client_0)
71
+ @operations = @client_0.operations
72
+ @skus = @client_0.skus
73
+ @usage_models = @client_0.usage_models
74
+ @caches = @client_0.caches
75
+ @storage_targets = @client_0.storage_targets
76
+
77
+ @model_classes = ModelClasses.new
78
+ end
79
+
80
+ def add_telemetry(client)
81
+ profile_information = 'Profiles/Latest/StorageCache/Mgmt'
82
+ client.add_user_agent_information(profile_information)
83
+ end
84
+
85
+ def method_missing(method, *args)
86
+ if @client_0.respond_to?method
87
+ @client_0.send(method, *args)
88
+ else
89
+ super
90
+ end
91
+ end
92
+
93
+ end
94
+
95
+ class ModelClasses
96
+ def clfs_target
97
+ Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::ClfsTarget
98
+ end
99
+ def unknown_target
100
+ Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::UnknownTarget
101
+ end
102
+ def api_operation
103
+ Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::ApiOperation
104
+ end
105
+ def resource_sku_capabilities
106
+ Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::ResourceSkuCapabilities
107
+ end
108
+ def cloud_error_body
109
+ Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::CloudErrorBody
110
+ end
111
+ def resource_sku_location_info
112
+ Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::ResourceSkuLocationInfo
113
+ end
114
+ def cache_health
115
+ Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::CacheHealth
116
+ end
117
+ def restriction
118
+ Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::Restriction
119
+ end
120
+ def cache_sku
121
+ Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::CacheSku
122
+ end
123
+ def resource_sku
124
+ Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::ResourceSku
125
+ end
126
+ def caches_list_result
127
+ Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::CachesListResult
128
+ end
129
+ def resource_skus_result
130
+ Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::ResourceSkusResult
131
+ end
132
+ def api_operation_display
133
+ Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::ApiOperationDisplay
134
+ end
135
+ def namespace_junction
136
+ Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::NamespaceJunction
137
+ end
138
+ def cloud_error
139
+ Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::CloudError
140
+ end
141
+ def storage_target
142
+ Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::StorageTarget
143
+ end
144
+ def cache
145
+ Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::Cache
146
+ end
147
+ def storage_targets_result
148
+ Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::StorageTargetsResult
149
+ end
150
+ def api_operation_list_result
151
+ Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::ApiOperationListResult
152
+ end
153
+ def usage_model_display
154
+ Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::UsageModelDisplay
155
+ end
156
+ def nfs3_target
157
+ Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::Nfs3Target
158
+ end
159
+ def usage_model
160
+ Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::UsageModel
161
+ end
162
+ def cache_upgrade_status
163
+ Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::CacheUpgradeStatus
164
+ end
165
+ def usage_models_result
166
+ Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::UsageModelsResult
167
+ end
168
+ def health_state_type
169
+ Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::HealthStateType
170
+ end
171
+ def provisioning_state_type
172
+ Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::ProvisioningStateType
173
+ end
174
+ def firmware_status_type
175
+ Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::FirmwareStatusType
176
+ end
177
+ def reason_code
178
+ Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::ReasonCode
179
+ end
180
+ def storage_target_type
181
+ Azure::StorageCache::Mgmt::V2019_08_01_preview::Models::StorageTargetType
182
+ end
183
+ end
184
+ end
185
+ end
@@ -0,0 +1,40 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ require 'profiles/latest/storagecache_module_definition'
6
+ require 'profiles/latest/modules/storagecache_profile_module'
7
+
8
+ module Azure::StorageCache::Profiles::Latest
9
+ module Mgmt
10
+ #
11
+ # Client class for the Latest profile SDK.
12
+ #
13
+ class Client < StorageCacheManagementClass
14
+ include MsRestAzure::Common::Configurable
15
+
16
+ #
17
+ # Initializes a new instance of the Client class.
18
+ # @param options [Hash] hash of client options.
19
+ # options = {
20
+ # tenant_id: 'YOUR TENANT ID',
21
+ # client_id: 'YOUR CLIENT ID',
22
+ # client_secret: 'YOUR CLIENT SECRET',
23
+ # subscription_id: 'YOUR SUBSCRIPTION ID',
24
+ # credentials: credentials,
25
+ # active_directory_settings: active_directory_settings,
26
+ # base_url: 'YOUR BASE URL',
27
+ # options: options
28
+ # }
29
+ # 'credentials' are optional and if not passed in the hash, will be obtained
30
+ # from MsRest::TokenCredentials using MsRestAzure::ApplicationTokenProvider.
31
+ #
32
+ # Also, base_url, active_directory_settings & options are optional.
33
+ #
34
+ def initialize(options = {})
35
+ super(options)
36
+ end
37
+
38
+ end
39
+ end
40
+ end