azure_mgmt_storage 0.3.1 → 0.4.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.
- checksums.yaml +5 -13
- data/azure_mgmt_storage.gemspec +4 -5
- data/lib/azure_mgmt_storage.rb +3 -57
- data/lib/generated/azure_mgmt_storage.rb +56 -0
- data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/access_tier.rb +0 -0
- data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/account_status.rb +0 -0
- data/lib/generated/azure_mgmt_storage/models/check_name_availability_result.rb +73 -0
- data/lib/generated/azure_mgmt_storage/models/custom_domain.rb +57 -0
- data/lib/generated/azure_mgmt_storage/models/encryption.rb +59 -0
- data/lib/generated/azure_mgmt_storage/models/encryption_service.rb +60 -0
- data/lib/generated/azure_mgmt_storage/models/encryption_services.rb +45 -0
- data/lib/generated/azure_mgmt_storage/models/endpoints.rb +79 -0
- data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/key_permission.rb +0 -0
- data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/kind.rb +0 -0
- data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/provisioning_state.rb +0 -0
- data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/reason.rb +0 -0
- data/lib/generated/azure_mgmt_storage/models/sku.rb +61 -0
- data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/sku_name.rb +0 -0
- data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/sku_tier.rb +0 -0
- data/lib/generated/azure_mgmt_storage/models/storage_account.rb +269 -0
- data/lib/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb +57 -0
- data/lib/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb +134 -0
- data/lib/generated/azure_mgmt_storage/models/storage_account_key.rb +69 -0
- data/lib/generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb +54 -0
- data/lib/generated/azure_mgmt_storage/models/storage_account_list_result.rb +54 -0
- data/lib/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb +44 -0
- data/lib/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb +108 -0
- data/lib/generated/azure_mgmt_storage/models/usage.rb +84 -0
- data/lib/generated/azure_mgmt_storage/models/usage_list_result.rb +52 -0
- data/lib/generated/azure_mgmt_storage/models/usage_name.rb +56 -0
- data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/usage_unit.rb +0 -0
- data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/module_definition.rb +0 -0
- data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/storage_accounts.rb +81 -66
- data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/storage_management_client.rb +4 -4
- data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/usage_operations.rb +4 -4
- data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/version.rb +1 -1
- metadata +54 -77
- data/lib/azure_mgmt_storage/models/check_name_availability_result.rb +0 -82
- data/lib/azure_mgmt_storage/models/custom_domain.rb +0 -68
- data/lib/azure_mgmt_storage/models/encryption.rb +0 -73
- data/lib/azure_mgmt_storage/models/encryption_service.rb +0 -72
- data/lib/azure_mgmt_storage/models/encryption_services.rb +0 -62
- data/lib/azure_mgmt_storage/models/endpoints.rb +0 -84
- data/lib/azure_mgmt_storage/models/sku.rb +0 -77
- data/lib/azure_mgmt_storage/models/storage_account.rb +0 -122
- data/lib/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb +0 -67
- data/lib/azure_mgmt_storage/models/storage_account_create_parameters.rb +0 -122
- data/lib/azure_mgmt_storage/models/storage_account_key.rb +0 -78
- data/lib/azure_mgmt_storage/models/storage_account_list_keys_result.rb +0 -77
- data/lib/azure_mgmt_storage/models/storage_account_list_result.rb +0 -77
- data/lib/azure_mgmt_storage/models/storage_account_properties.rb +0 -227
- data/lib/azure_mgmt_storage/models/storage_account_properties_create_parameters.rb +0 -100
- data/lib/azure_mgmt_storage/models/storage_account_properties_update_parameters.rb +0 -98
- data/lib/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb +0 -56
- data/lib/azure_mgmt_storage/models/storage_account_update_parameters.rb +0 -94
- data/lib/azure_mgmt_storage/models/usage.rb +0 -99
- data/lib/azure_mgmt_storage/models/usage_list_result.rb +0 -76
- data/lib/azure_mgmt_storage/models/usage_name.rb +0 -65
@@ -0,0 +1,79 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Storage
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The URIs that are used to perform a retrieval of a public blob, queue or
|
10
|
+
# table object.
|
11
|
+
#
|
12
|
+
class Endpoints
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] Gets the blob endpoint.
|
17
|
+
attr_accessor :blob
|
18
|
+
|
19
|
+
# @return [String] Gets the queue endpoint.
|
20
|
+
attr_accessor :queue
|
21
|
+
|
22
|
+
# @return [String] Gets the table endpoint.
|
23
|
+
attr_accessor :table
|
24
|
+
|
25
|
+
# @return [String] Gets the file endpoint.
|
26
|
+
attr_accessor :file
|
27
|
+
|
28
|
+
|
29
|
+
#
|
30
|
+
# Mapper for Endpoints class as Ruby Hash.
|
31
|
+
# This will be used for serialization/deserialization.
|
32
|
+
#
|
33
|
+
def self.mapper()
|
34
|
+
{
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'Endpoints',
|
37
|
+
type: {
|
38
|
+
name: 'Composite',
|
39
|
+
class_name: 'Endpoints',
|
40
|
+
model_properties: {
|
41
|
+
blob: {
|
42
|
+
required: false,
|
43
|
+
read_only: true,
|
44
|
+
serialized_name: 'blob',
|
45
|
+
type: {
|
46
|
+
name: 'String'
|
47
|
+
}
|
48
|
+
},
|
49
|
+
queue: {
|
50
|
+
required: false,
|
51
|
+
read_only: true,
|
52
|
+
serialized_name: 'queue',
|
53
|
+
type: {
|
54
|
+
name: 'String'
|
55
|
+
}
|
56
|
+
},
|
57
|
+
table: {
|
58
|
+
required: false,
|
59
|
+
read_only: true,
|
60
|
+
serialized_name: 'table',
|
61
|
+
type: {
|
62
|
+
name: 'String'
|
63
|
+
}
|
64
|
+
},
|
65
|
+
file: {
|
66
|
+
required: false,
|
67
|
+
read_only: true,
|
68
|
+
serialized_name: 'file',
|
69
|
+
type: {
|
70
|
+
name: 'String'
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,61 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Storage
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The SKU of the storage account.
|
10
|
+
#
|
11
|
+
class Sku
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [SkuName] Gets or sets the sku name. Required for account
|
16
|
+
# creation, optional for update. Note that in older versions, sku name
|
17
|
+
# was called accountType. Possible values include: 'Standard_LRS',
|
18
|
+
# 'Standard_GRS', 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS'
|
19
|
+
attr_accessor :name
|
20
|
+
|
21
|
+
# @return [SkuTier] Gets the sku tier. This is based on the SKU name.
|
22
|
+
# Possible values include: 'Standard', 'Premium'
|
23
|
+
attr_accessor :tier
|
24
|
+
|
25
|
+
|
26
|
+
#
|
27
|
+
# Mapper for Sku class as Ruby Hash.
|
28
|
+
# This will be used for serialization/deserialization.
|
29
|
+
#
|
30
|
+
def self.mapper()
|
31
|
+
{
|
32
|
+
required: false,
|
33
|
+
serialized_name: 'Sku',
|
34
|
+
type: {
|
35
|
+
name: 'Composite',
|
36
|
+
class_name: 'Sku',
|
37
|
+
model_properties: {
|
38
|
+
name: {
|
39
|
+
required: true,
|
40
|
+
serialized_name: 'name',
|
41
|
+
type: {
|
42
|
+
name: 'Enum',
|
43
|
+
module: 'SkuName'
|
44
|
+
}
|
45
|
+
},
|
46
|
+
tier: {
|
47
|
+
required: false,
|
48
|
+
read_only: true,
|
49
|
+
serialized_name: 'tier',
|
50
|
+
type: {
|
51
|
+
name: 'Enum',
|
52
|
+
module: 'SkuTier'
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
File without changes
|
File without changes
|
@@ -0,0 +1,269 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Storage
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The storage account.
|
10
|
+
#
|
11
|
+
class StorageAccount < MsRestAzure::Resource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Sku] Gets the SKU.
|
16
|
+
attr_accessor :sku
|
17
|
+
|
18
|
+
# @return [Kind] Gets the Kind. Possible values include: 'Storage',
|
19
|
+
# 'BlobStorage'
|
20
|
+
attr_accessor :kind
|
21
|
+
|
22
|
+
# @return [ProvisioningState] Gets the status of the storage account at
|
23
|
+
# the time the operation was called. Possible values include:
|
24
|
+
# 'Creating', 'ResolvingDNS', 'Succeeded'
|
25
|
+
attr_accessor :provisioning_state
|
26
|
+
|
27
|
+
# @return [Endpoints] Gets the URLs that are used to perform a retrieval
|
28
|
+
# of a public blob, queue or table object.Note that StandardZRS and
|
29
|
+
# PremiumLRS accounts only return the blob endpoint.
|
30
|
+
attr_accessor :primary_endpoints
|
31
|
+
|
32
|
+
# @return [String] Gets the location of the primary for the storage
|
33
|
+
# account.
|
34
|
+
attr_accessor :primary_location
|
35
|
+
|
36
|
+
# @return [AccountStatus] Gets the status indicating whether the primary
|
37
|
+
# location of the storage account is available or unavailable. Possible
|
38
|
+
# values include: 'Available', 'Unavailable'
|
39
|
+
attr_accessor :status_of_primary
|
40
|
+
|
41
|
+
# @return [DateTime] Gets the timestamp of the most recent instance of a
|
42
|
+
# failover to the secondary location. Only the most recent timestamp is
|
43
|
+
# retained. This element is not returned if there has never been a
|
44
|
+
# failover instance. Only available if the accountType is StandardGRS
|
45
|
+
# or StandardRAGRS.
|
46
|
+
attr_accessor :last_geo_failover_time
|
47
|
+
|
48
|
+
# @return [String] Gets the location of the geo replicated secondary for
|
49
|
+
# the storage account. Only available if the accountType is StandardGRS
|
50
|
+
# or StandardRAGRS.
|
51
|
+
attr_accessor :secondary_location
|
52
|
+
|
53
|
+
# @return [AccountStatus] Gets the status indicating whether the
|
54
|
+
# secondary location of the storage account is available or
|
55
|
+
# unavailable. Only available if the accountType is StandardGRS or
|
56
|
+
# StandardRAGRS. Possible values include: 'Available', 'Unavailable'
|
57
|
+
attr_accessor :status_of_secondary
|
58
|
+
|
59
|
+
# @return [DateTime] Gets the creation date and time of the storage
|
60
|
+
# account in UTC.
|
61
|
+
attr_accessor :creation_time
|
62
|
+
|
63
|
+
# @return [CustomDomain] Gets the user assigned custom domain assigned
|
64
|
+
# to this storage account.
|
65
|
+
attr_accessor :custom_domain
|
66
|
+
|
67
|
+
# @return [Endpoints] Gets the URLs that are used to perform a retrieval
|
68
|
+
# of a public blob, queue or table object from the secondary location
|
69
|
+
# of the storage account. Only available if the accountType is
|
70
|
+
# StandardRAGRS.
|
71
|
+
attr_accessor :secondary_endpoints
|
72
|
+
|
73
|
+
# @return [Encryption] Gets the encryption settings on the account. If
|
74
|
+
# unspecified the account is unencrypted.
|
75
|
+
attr_accessor :encryption
|
76
|
+
|
77
|
+
# @return [AccessTier] The access tier used for billing. Access tier
|
78
|
+
# cannot be changed more than once every 7 days (168 hours). Access
|
79
|
+
# tier cannot be set for StandardLRS, StandardGRS, StandardRAGRS, or
|
80
|
+
# PremiumLRS account types. Possible values include: 'Hot', 'Cool'
|
81
|
+
attr_accessor :access_tier
|
82
|
+
|
83
|
+
|
84
|
+
#
|
85
|
+
# Mapper for StorageAccount class as Ruby Hash.
|
86
|
+
# This will be used for serialization/deserialization.
|
87
|
+
#
|
88
|
+
def self.mapper()
|
89
|
+
{
|
90
|
+
required: false,
|
91
|
+
serialized_name: 'StorageAccount',
|
92
|
+
type: {
|
93
|
+
name: 'Composite',
|
94
|
+
class_name: 'StorageAccount',
|
95
|
+
model_properties: {
|
96
|
+
id: {
|
97
|
+
required: false,
|
98
|
+
read_only: true,
|
99
|
+
serialized_name: 'id',
|
100
|
+
type: {
|
101
|
+
name: 'String'
|
102
|
+
}
|
103
|
+
},
|
104
|
+
name: {
|
105
|
+
required: false,
|
106
|
+
read_only: true,
|
107
|
+
serialized_name: 'name',
|
108
|
+
type: {
|
109
|
+
name: 'String'
|
110
|
+
}
|
111
|
+
},
|
112
|
+
type: {
|
113
|
+
required: false,
|
114
|
+
read_only: true,
|
115
|
+
serialized_name: 'type',
|
116
|
+
type: {
|
117
|
+
name: 'String'
|
118
|
+
}
|
119
|
+
},
|
120
|
+
location: {
|
121
|
+
required: false,
|
122
|
+
serialized_name: 'location',
|
123
|
+
type: {
|
124
|
+
name: 'String'
|
125
|
+
}
|
126
|
+
},
|
127
|
+
tags: {
|
128
|
+
required: false,
|
129
|
+
serialized_name: 'tags',
|
130
|
+
type: {
|
131
|
+
name: 'Dictionary',
|
132
|
+
value: {
|
133
|
+
required: false,
|
134
|
+
serialized_name: 'StringElementType',
|
135
|
+
type: {
|
136
|
+
name: 'String'
|
137
|
+
}
|
138
|
+
}
|
139
|
+
}
|
140
|
+
},
|
141
|
+
sku: {
|
142
|
+
required: false,
|
143
|
+
read_only: true,
|
144
|
+
serialized_name: 'sku',
|
145
|
+
type: {
|
146
|
+
name: 'Composite',
|
147
|
+
class_name: 'Sku'
|
148
|
+
}
|
149
|
+
},
|
150
|
+
kind: {
|
151
|
+
required: false,
|
152
|
+
read_only: true,
|
153
|
+
serialized_name: 'kind',
|
154
|
+
type: {
|
155
|
+
name: 'Enum',
|
156
|
+
module: 'Kind'
|
157
|
+
}
|
158
|
+
},
|
159
|
+
provisioning_state: {
|
160
|
+
required: false,
|
161
|
+
read_only: true,
|
162
|
+
serialized_name: 'properties.provisioningState',
|
163
|
+
type: {
|
164
|
+
name: 'Enum',
|
165
|
+
module: 'ProvisioningState'
|
166
|
+
}
|
167
|
+
},
|
168
|
+
primary_endpoints: {
|
169
|
+
required: false,
|
170
|
+
read_only: true,
|
171
|
+
serialized_name: 'properties.primaryEndpoints',
|
172
|
+
type: {
|
173
|
+
name: 'Composite',
|
174
|
+
class_name: 'Endpoints'
|
175
|
+
}
|
176
|
+
},
|
177
|
+
primary_location: {
|
178
|
+
required: false,
|
179
|
+
read_only: true,
|
180
|
+
serialized_name: 'properties.primaryLocation',
|
181
|
+
type: {
|
182
|
+
name: 'String'
|
183
|
+
}
|
184
|
+
},
|
185
|
+
status_of_primary: {
|
186
|
+
required: false,
|
187
|
+
read_only: true,
|
188
|
+
serialized_name: 'properties.statusOfPrimary',
|
189
|
+
type: {
|
190
|
+
name: 'Enum',
|
191
|
+
module: 'AccountStatus'
|
192
|
+
}
|
193
|
+
},
|
194
|
+
last_geo_failover_time: {
|
195
|
+
required: false,
|
196
|
+
read_only: true,
|
197
|
+
serialized_name: 'properties.lastGeoFailoverTime',
|
198
|
+
type: {
|
199
|
+
name: 'DateTime'
|
200
|
+
}
|
201
|
+
},
|
202
|
+
secondary_location: {
|
203
|
+
required: false,
|
204
|
+
read_only: true,
|
205
|
+
serialized_name: 'properties.secondaryLocation',
|
206
|
+
type: {
|
207
|
+
name: 'String'
|
208
|
+
}
|
209
|
+
},
|
210
|
+
status_of_secondary: {
|
211
|
+
required: false,
|
212
|
+
read_only: true,
|
213
|
+
serialized_name: 'properties.statusOfSecondary',
|
214
|
+
type: {
|
215
|
+
name: 'Enum',
|
216
|
+
module: 'AccountStatus'
|
217
|
+
}
|
218
|
+
},
|
219
|
+
creation_time: {
|
220
|
+
required: false,
|
221
|
+
read_only: true,
|
222
|
+
serialized_name: 'properties.creationTime',
|
223
|
+
type: {
|
224
|
+
name: 'DateTime'
|
225
|
+
}
|
226
|
+
},
|
227
|
+
custom_domain: {
|
228
|
+
required: false,
|
229
|
+
read_only: true,
|
230
|
+
serialized_name: 'properties.customDomain',
|
231
|
+
type: {
|
232
|
+
name: 'Composite',
|
233
|
+
class_name: 'CustomDomain'
|
234
|
+
}
|
235
|
+
},
|
236
|
+
secondary_endpoints: {
|
237
|
+
required: false,
|
238
|
+
read_only: true,
|
239
|
+
serialized_name: 'properties.secondaryEndpoints',
|
240
|
+
type: {
|
241
|
+
name: 'Composite',
|
242
|
+
class_name: 'Endpoints'
|
243
|
+
}
|
244
|
+
},
|
245
|
+
encryption: {
|
246
|
+
required: false,
|
247
|
+
read_only: true,
|
248
|
+
serialized_name: 'properties.encryption',
|
249
|
+
type: {
|
250
|
+
name: 'Composite',
|
251
|
+
class_name: 'Encryption'
|
252
|
+
}
|
253
|
+
},
|
254
|
+
access_tier: {
|
255
|
+
required: false,
|
256
|
+
read_only: true,
|
257
|
+
serialized_name: 'properties.accessTier',
|
258
|
+
type: {
|
259
|
+
name: 'Enum',
|
260
|
+
module: 'AccessTier'
|
261
|
+
}
|
262
|
+
}
|
263
|
+
}
|
264
|
+
}
|
265
|
+
}
|
266
|
+
end
|
267
|
+
end
|
268
|
+
end
|
269
|
+
end
|
data/lib/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::Storage
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Model object.
|
10
|
+
#
|
11
|
+
class StorageAccountCheckNameAvailabilityParameters
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String]
|
16
|
+
attr_accessor :name
|
17
|
+
|
18
|
+
# @return [String] Default value: 'Microsoft.Storage/storageAccounts' .
|
19
|
+
attr_accessor :type
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for StorageAccountCheckNameAvailabilityParameters class as Ruby
|
24
|
+
# Hash.
|
25
|
+
# This will be used for serialization/deserialization.
|
26
|
+
#
|
27
|
+
def self.mapper()
|
28
|
+
{
|
29
|
+
required: false,
|
30
|
+
serialized_name: 'StorageAccountCheckNameAvailabilityParameters',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'StorageAccountCheckNameAvailabilityParameters',
|
34
|
+
model_properties: {
|
35
|
+
name: {
|
36
|
+
required: true,
|
37
|
+
serialized_name: 'name',
|
38
|
+
type: {
|
39
|
+
name: 'String'
|
40
|
+
}
|
41
|
+
},
|
42
|
+
type: {
|
43
|
+
required: true,
|
44
|
+
is_constant: true,
|
45
|
+
serialized_name: 'type',
|
46
|
+
default_value: 'Microsoft.Storage/storageAccounts',
|
47
|
+
type: {
|
48
|
+
name: 'String'
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|