azure_mgmt_storage 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +5 -13
  2. data/azure_mgmt_storage.gemspec +4 -5
  3. data/lib/azure_mgmt_storage.rb +3 -57
  4. data/lib/generated/azure_mgmt_storage.rb +56 -0
  5. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/access_tier.rb +0 -0
  6. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/account_status.rb +0 -0
  7. data/lib/generated/azure_mgmt_storage/models/check_name_availability_result.rb +73 -0
  8. data/lib/generated/azure_mgmt_storage/models/custom_domain.rb +57 -0
  9. data/lib/generated/azure_mgmt_storage/models/encryption.rb +59 -0
  10. data/lib/generated/azure_mgmt_storage/models/encryption_service.rb +60 -0
  11. data/lib/generated/azure_mgmt_storage/models/encryption_services.rb +45 -0
  12. data/lib/generated/azure_mgmt_storage/models/endpoints.rb +79 -0
  13. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/key_permission.rb +0 -0
  14. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/kind.rb +0 -0
  15. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/provisioning_state.rb +0 -0
  16. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/reason.rb +0 -0
  17. data/lib/generated/azure_mgmt_storage/models/sku.rb +61 -0
  18. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/sku_name.rb +0 -0
  19. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/sku_tier.rb +0 -0
  20. data/lib/generated/azure_mgmt_storage/models/storage_account.rb +269 -0
  21. data/lib/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb +57 -0
  22. data/lib/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb +134 -0
  23. data/lib/generated/azure_mgmt_storage/models/storage_account_key.rb +69 -0
  24. data/lib/generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb +54 -0
  25. data/lib/generated/azure_mgmt_storage/models/storage_account_list_result.rb +54 -0
  26. data/lib/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb +44 -0
  27. data/lib/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb +108 -0
  28. data/lib/generated/azure_mgmt_storage/models/usage.rb +84 -0
  29. data/lib/generated/azure_mgmt_storage/models/usage_list_result.rb +52 -0
  30. data/lib/generated/azure_mgmt_storage/models/usage_name.rb +56 -0
  31. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/usage_unit.rb +0 -0
  32. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/module_definition.rb +0 -0
  33. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/storage_accounts.rb +81 -66
  34. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/storage_management_client.rb +4 -4
  35. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/usage_operations.rb +4 -4
  36. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/version.rb +1 -1
  37. metadata +54 -77
  38. data/lib/azure_mgmt_storage/models/check_name_availability_result.rb +0 -82
  39. data/lib/azure_mgmt_storage/models/custom_domain.rb +0 -68
  40. data/lib/azure_mgmt_storage/models/encryption.rb +0 -73
  41. data/lib/azure_mgmt_storage/models/encryption_service.rb +0 -72
  42. data/lib/azure_mgmt_storage/models/encryption_services.rb +0 -62
  43. data/lib/azure_mgmt_storage/models/endpoints.rb +0 -84
  44. data/lib/azure_mgmt_storage/models/sku.rb +0 -77
  45. data/lib/azure_mgmt_storage/models/storage_account.rb +0 -122
  46. data/lib/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb +0 -67
  47. data/lib/azure_mgmt_storage/models/storage_account_create_parameters.rb +0 -122
  48. data/lib/azure_mgmt_storage/models/storage_account_key.rb +0 -78
  49. data/lib/azure_mgmt_storage/models/storage_account_list_keys_result.rb +0 -77
  50. data/lib/azure_mgmt_storage/models/storage_account_list_result.rb +0 -77
  51. data/lib/azure_mgmt_storage/models/storage_account_properties.rb +0 -227
  52. data/lib/azure_mgmt_storage/models/storage_account_properties_create_parameters.rb +0 -100
  53. data/lib/azure_mgmt_storage/models/storage_account_properties_update_parameters.rb +0 -98
  54. data/lib/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb +0 -56
  55. data/lib/azure_mgmt_storage/models/storage_account_update_parameters.rb +0 -94
  56. data/lib/azure_mgmt_storage/models/usage.rb +0 -99
  57. data/lib/azure_mgmt_storage/models/usage_list_result.rb +0 -76
  58. 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
@@ -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
@@ -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
@@ -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