azure_mgmt_storagecache 0.17.0 → 0.17.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache.rb +1 -1
- data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/caches.rb +1 -1
- data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/operations.rb +1 -1
- data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/skus.rb +1 -1
- data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/{storage_cache_mgmt_client.rb → storage_cache_management_client.rb} +8 -4
- data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/storage_targets.rb +1 -1
- data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/usage_models.rb +1 -1
- data/lib/2019-11-01/generated/azure_mgmt_storagecache.rb +61 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/caches.rb +1477 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/api_operation.rb +59 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/api_operation_display.rb +69 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/api_operation_list_result.rb +101 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/cache.rb +188 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/cache_health.rb +60 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/cache_sku.rb +46 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/cache_upgrade_status.rb +101 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/caches_list_result.rb +100 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/clfs_target.rb +46 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/cloud_error.rb +47 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/cloud_error_body.rb +92 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/firmware_status_type.rb +16 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/health_state_type.rb +23 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/namespace_junction.rb +68 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/nfs3target.rb +62 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/provisioning_state_type.rb +20 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/reason_code.rb +16 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/resource_sku.rb +143 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/resource_sku_capabilities.rb +57 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/resource_sku_location_info.rb +65 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/resource_skus_result.rb +100 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/restriction.rb +86 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/storage_target.rb +155 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/storage_target_type.rb +17 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/storage_targets_result.rb +99 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/unknown_target.rb +55 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/usage_model.rb +71 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/usage_model_display.rb +46 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/usage_models_result.rb +99 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/module_definition.rb +9 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/operations.rb +221 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/skus.rb +223 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/storage_cache_management_client.rb +153 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/storage_targets.rb +670 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/usage_models.rb +223 -0
- data/lib/azure_mgmt_storagecache.rb +1 -0
- data/lib/profiles/latest/modules/storagecache_profile_module.rb +64 -64
- data/lib/version.rb +1 -1
- metadata +40 -3
@@ -0,0 +1,59 @@
|
|
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_11_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# REST API operation description: see
|
10
|
+
# https://github.com/Azure/azure-rest-api-specs/blob/master/documentation/openapi-authoring-automated-guidelines.md#r3023-operationsapiimplementation
|
11
|
+
#
|
12
|
+
class ApiOperation
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [ApiOperationDisplay] The object that represents the operation.
|
17
|
+
attr_accessor :display
|
18
|
+
|
19
|
+
# @return [String] Operation name: {provider}/{resource}/{operation}
|
20
|
+
attr_accessor :name
|
21
|
+
|
22
|
+
|
23
|
+
#
|
24
|
+
# Mapper for ApiOperation class as Ruby Hash.
|
25
|
+
# This will be used for serialization/deserialization.
|
26
|
+
#
|
27
|
+
def self.mapper()
|
28
|
+
{
|
29
|
+
client_side_validation: true,
|
30
|
+
required: false,
|
31
|
+
serialized_name: 'ApiOperation',
|
32
|
+
type: {
|
33
|
+
name: 'Composite',
|
34
|
+
class_name: 'ApiOperation',
|
35
|
+
model_properties: {
|
36
|
+
display: {
|
37
|
+
client_side_validation: true,
|
38
|
+
required: false,
|
39
|
+
serialized_name: 'display',
|
40
|
+
type: {
|
41
|
+
name: 'Composite',
|
42
|
+
class_name: 'ApiOperationDisplay'
|
43
|
+
}
|
44
|
+
},
|
45
|
+
name: {
|
46
|
+
client_side_validation: true,
|
47
|
+
required: false,
|
48
|
+
serialized_name: 'name',
|
49
|
+
type: {
|
50
|
+
name: 'String'
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,69 @@
|
|
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_11_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The object that represents the operation.
|
10
|
+
#
|
11
|
+
class ApiOperationDisplay
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Operation type: Read, write, delete, etc.
|
16
|
+
attr_accessor :operation
|
17
|
+
|
18
|
+
# @return [String] Service provider: Microsoft.StorageCache
|
19
|
+
attr_accessor :provider
|
20
|
+
|
21
|
+
# @return [String] Resource on which the operation is performed: Cache,
|
22
|
+
# etc.
|
23
|
+
attr_accessor :resource
|
24
|
+
|
25
|
+
|
26
|
+
#
|
27
|
+
# Mapper for ApiOperationDisplay class as Ruby Hash.
|
28
|
+
# This will be used for serialization/deserialization.
|
29
|
+
#
|
30
|
+
def self.mapper()
|
31
|
+
{
|
32
|
+
client_side_validation: true,
|
33
|
+
required: false,
|
34
|
+
serialized_name: 'ApiOperation_display',
|
35
|
+
type: {
|
36
|
+
name: 'Composite',
|
37
|
+
class_name: 'ApiOperationDisplay',
|
38
|
+
model_properties: {
|
39
|
+
operation: {
|
40
|
+
client_side_validation: true,
|
41
|
+
required: false,
|
42
|
+
serialized_name: 'operation',
|
43
|
+
type: {
|
44
|
+
name: 'String'
|
45
|
+
}
|
46
|
+
},
|
47
|
+
provider: {
|
48
|
+
client_side_validation: true,
|
49
|
+
required: false,
|
50
|
+
serialized_name: 'provider',
|
51
|
+
type: {
|
52
|
+
name: 'String'
|
53
|
+
}
|
54
|
+
},
|
55
|
+
resource: {
|
56
|
+
client_side_validation: true,
|
57
|
+
required: false,
|
58
|
+
serialized_name: 'resource',
|
59
|
+
type: {
|
60
|
+
name: 'String'
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,101 @@
|
|
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_11_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Result of the request to list Resource Provider operations. It contains a
|
10
|
+
# list of operations and a URL link to get the next set of results.
|
11
|
+
#
|
12
|
+
class ApiOperationListResult
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
include MsRest::JSONable
|
17
|
+
# @return [String] URL to get the next set of operation list results if
|
18
|
+
# there are any.
|
19
|
+
attr_accessor :next_link
|
20
|
+
|
21
|
+
# @return [Array<ApiOperation>] List of Resource Provider operations
|
22
|
+
# supported by the Microsoft.StorageCache resource provider.
|
23
|
+
attr_accessor :value
|
24
|
+
|
25
|
+
# return [Proc] with next page method call.
|
26
|
+
attr_accessor :next_method
|
27
|
+
|
28
|
+
#
|
29
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
30
|
+
#
|
31
|
+
# @return [Array<ApiOperation>] operation results.
|
32
|
+
#
|
33
|
+
def get_all_items
|
34
|
+
items = @value
|
35
|
+
page = self
|
36
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
37
|
+
page = page.get_next_page
|
38
|
+
items.concat(page.value)
|
39
|
+
end
|
40
|
+
items
|
41
|
+
end
|
42
|
+
|
43
|
+
#
|
44
|
+
# Gets the next page of results.
|
45
|
+
#
|
46
|
+
# @return [ApiOperationListResult] with next page content.
|
47
|
+
#
|
48
|
+
def get_next_page
|
49
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
50
|
+
unless response.nil?
|
51
|
+
@next_link = response.body.next_link
|
52
|
+
@value = response.body.value
|
53
|
+
self
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
#
|
58
|
+
# Mapper for ApiOperationListResult class as Ruby Hash.
|
59
|
+
# This will be used for serialization/deserialization.
|
60
|
+
#
|
61
|
+
def self.mapper()
|
62
|
+
{
|
63
|
+
client_side_validation: true,
|
64
|
+
required: false,
|
65
|
+
serialized_name: 'ApiOperationListResult',
|
66
|
+
type: {
|
67
|
+
name: 'Composite',
|
68
|
+
class_name: 'ApiOperationListResult',
|
69
|
+
model_properties: {
|
70
|
+
next_link: {
|
71
|
+
client_side_validation: true,
|
72
|
+
required: false,
|
73
|
+
serialized_name: 'nextLink',
|
74
|
+
type: {
|
75
|
+
name: 'String'
|
76
|
+
}
|
77
|
+
},
|
78
|
+
value: {
|
79
|
+
client_side_validation: true,
|
80
|
+
required: false,
|
81
|
+
serialized_name: 'value',
|
82
|
+
type: {
|
83
|
+
name: 'Sequence',
|
84
|
+
element: {
|
85
|
+
client_side_validation: true,
|
86
|
+
required: false,
|
87
|
+
serialized_name: 'ApiOperationElementType',
|
88
|
+
type: {
|
89
|
+
name: 'Composite',
|
90
|
+
class_name: 'ApiOperation'
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
@@ -0,0 +1,188 @@
|
|
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_11_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# A Cache instance. Follows Azure Resource Manager standards:
|
10
|
+
# https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/resource-api-reference.md
|
11
|
+
#
|
12
|
+
class Cache
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return ARM tags as name/value pairs.
|
17
|
+
attr_accessor :tags
|
18
|
+
|
19
|
+
# @return [String] Resource ID of the Cache.
|
20
|
+
attr_accessor :id
|
21
|
+
|
22
|
+
# @return [String] Region name string.
|
23
|
+
attr_accessor :location
|
24
|
+
|
25
|
+
# @return [String] Name of Cache.
|
26
|
+
attr_accessor :name
|
27
|
+
|
28
|
+
# @return [String] Type of the Cache; Microsoft.StorageCache/Cache
|
29
|
+
attr_accessor :type
|
30
|
+
|
31
|
+
# @return [Integer] The size of this Cache, in GB.
|
32
|
+
attr_accessor :cache_size_gb
|
33
|
+
|
34
|
+
# @return [CacheHealth] Health of the Cache.
|
35
|
+
attr_accessor :health
|
36
|
+
|
37
|
+
# @return [Array<String>] Array of IP addresses that can be used by
|
38
|
+
# clients mounting this Cache.
|
39
|
+
attr_accessor :mount_addresses
|
40
|
+
|
41
|
+
# @return [ProvisioningStateType] ARM provisioning state, see
|
42
|
+
# https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#provisioningstate-property.
|
43
|
+
# Possible values include: 'Succeeded', 'Failed', 'Cancelled',
|
44
|
+
# 'Creating', 'Deleting', 'Updating'
|
45
|
+
attr_accessor :provisioning_state
|
46
|
+
|
47
|
+
# @return [String] Subnet used for the Cache.
|
48
|
+
attr_accessor :subnet
|
49
|
+
|
50
|
+
# @return [CacheUpgradeStatus] Upgrade status of the Cache.
|
51
|
+
attr_accessor :upgrade_status
|
52
|
+
|
53
|
+
# @return [CacheSku] SKU for the Cache.
|
54
|
+
attr_accessor :sku
|
55
|
+
|
56
|
+
|
57
|
+
#
|
58
|
+
# Mapper for Cache class as Ruby Hash.
|
59
|
+
# This will be used for serialization/deserialization.
|
60
|
+
#
|
61
|
+
def self.mapper()
|
62
|
+
{
|
63
|
+
client_side_validation: true,
|
64
|
+
required: false,
|
65
|
+
serialized_name: 'Cache',
|
66
|
+
type: {
|
67
|
+
name: 'Composite',
|
68
|
+
class_name: 'Cache',
|
69
|
+
model_properties: {
|
70
|
+
tags: {
|
71
|
+
client_side_validation: true,
|
72
|
+
required: false,
|
73
|
+
serialized_name: 'tags',
|
74
|
+
type: {
|
75
|
+
name: 'Object'
|
76
|
+
}
|
77
|
+
},
|
78
|
+
id: {
|
79
|
+
client_side_validation: true,
|
80
|
+
required: false,
|
81
|
+
read_only: true,
|
82
|
+
serialized_name: 'id',
|
83
|
+
type: {
|
84
|
+
name: 'String'
|
85
|
+
}
|
86
|
+
},
|
87
|
+
location: {
|
88
|
+
client_side_validation: true,
|
89
|
+
required: false,
|
90
|
+
serialized_name: 'location',
|
91
|
+
type: {
|
92
|
+
name: 'String'
|
93
|
+
}
|
94
|
+
},
|
95
|
+
name: {
|
96
|
+
client_side_validation: true,
|
97
|
+
required: false,
|
98
|
+
read_only: true,
|
99
|
+
serialized_name: 'name',
|
100
|
+
type: {
|
101
|
+
name: 'String'
|
102
|
+
}
|
103
|
+
},
|
104
|
+
type: {
|
105
|
+
client_side_validation: true,
|
106
|
+
required: false,
|
107
|
+
read_only: true,
|
108
|
+
serialized_name: 'type',
|
109
|
+
type: {
|
110
|
+
name: 'String'
|
111
|
+
}
|
112
|
+
},
|
113
|
+
cache_size_gb: {
|
114
|
+
client_side_validation: true,
|
115
|
+
required: false,
|
116
|
+
serialized_name: 'properties.cacheSizeGB',
|
117
|
+
type: {
|
118
|
+
name: 'Number'
|
119
|
+
}
|
120
|
+
},
|
121
|
+
health: {
|
122
|
+
client_side_validation: true,
|
123
|
+
required: false,
|
124
|
+
read_only: true,
|
125
|
+
serialized_name: 'properties.health',
|
126
|
+
type: {
|
127
|
+
name: 'Composite',
|
128
|
+
class_name: 'CacheHealth'
|
129
|
+
}
|
130
|
+
},
|
131
|
+
mount_addresses: {
|
132
|
+
client_side_validation: true,
|
133
|
+
required: false,
|
134
|
+
read_only: true,
|
135
|
+
serialized_name: 'properties.mountAddresses',
|
136
|
+
type: {
|
137
|
+
name: 'Sequence',
|
138
|
+
element: {
|
139
|
+
client_side_validation: true,
|
140
|
+
required: false,
|
141
|
+
serialized_name: 'StringElementType',
|
142
|
+
type: {
|
143
|
+
name: 'String'
|
144
|
+
}
|
145
|
+
}
|
146
|
+
}
|
147
|
+
},
|
148
|
+
provisioning_state: {
|
149
|
+
client_side_validation: true,
|
150
|
+
required: false,
|
151
|
+
serialized_name: 'properties.provisioningState',
|
152
|
+
type: {
|
153
|
+
name: 'String'
|
154
|
+
}
|
155
|
+
},
|
156
|
+
subnet: {
|
157
|
+
client_side_validation: true,
|
158
|
+
required: false,
|
159
|
+
serialized_name: 'properties.subnet',
|
160
|
+
type: {
|
161
|
+
name: 'String'
|
162
|
+
}
|
163
|
+
},
|
164
|
+
upgrade_status: {
|
165
|
+
client_side_validation: true,
|
166
|
+
required: false,
|
167
|
+
serialized_name: 'properties.upgradeStatus',
|
168
|
+
type: {
|
169
|
+
name: 'Composite',
|
170
|
+
class_name: 'CacheUpgradeStatus'
|
171
|
+
}
|
172
|
+
},
|
173
|
+
sku: {
|
174
|
+
client_side_validation: true,
|
175
|
+
required: false,
|
176
|
+
serialized_name: 'sku',
|
177
|
+
type: {
|
178
|
+
name: 'Composite',
|
179
|
+
class_name: 'CacheSku'
|
180
|
+
}
|
181
|
+
}
|
182
|
+
}
|
183
|
+
}
|
184
|
+
}
|
185
|
+
end
|
186
|
+
end
|
187
|
+
end
|
188
|
+
end
|
@@ -0,0 +1,60 @@
|
|
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_11_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# An indication of Cache health. Gives more information about health than
|
10
|
+
# just that related to provisioning.
|
11
|
+
#
|
12
|
+
class CacheHealth
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [HealthStateType] List of Cache health states. Possible values
|
17
|
+
# include: 'Unknown', 'Healthy', 'Degraded', 'Down', 'Transitioning',
|
18
|
+
# 'Stopping', 'Stopped', 'Upgrading', 'Flushing'
|
19
|
+
attr_accessor :state
|
20
|
+
|
21
|
+
# @return [String] Describes explanation of state.
|
22
|
+
attr_accessor :status_description
|
23
|
+
|
24
|
+
|
25
|
+
#
|
26
|
+
# Mapper for CacheHealth class as Ruby Hash.
|
27
|
+
# This will be used for serialization/deserialization.
|
28
|
+
#
|
29
|
+
def self.mapper()
|
30
|
+
{
|
31
|
+
client_side_validation: true,
|
32
|
+
required: false,
|
33
|
+
serialized_name: 'CacheHealth',
|
34
|
+
type: {
|
35
|
+
name: 'Composite',
|
36
|
+
class_name: 'CacheHealth',
|
37
|
+
model_properties: {
|
38
|
+
state: {
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'state',
|
42
|
+
type: {
|
43
|
+
name: 'String'
|
44
|
+
}
|
45
|
+
},
|
46
|
+
status_description: {
|
47
|
+
client_side_validation: true,
|
48
|
+
required: false,
|
49
|
+
serialized_name: 'statusDescription',
|
50
|
+
type: {
|
51
|
+
name: 'String'
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|