azure_mgmt_storage 0.17.6 → 0.17.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. checksums.yaml +4 -4
  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/storage_management_client.rb +1 -1
  9. data/lib/2018-03-01-preview/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
  10. data/lib/2018-07-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
  11. data/lib/2018-11-01/generated/azure_mgmt_storage/blob_containers.rb +1721 -0
  12. data/lib/2018-11-01/generated/azure_mgmt_storage/blob_services.rb +266 -0
  13. data/lib/2018-11-01/generated/azure_mgmt_storage/management_policies.rb +355 -0
  14. data/lib/2018-11-01/generated/azure_mgmt_storage/models/access_tier.rb +16 -0
  15. data/lib/2018-11-01/generated/azure_mgmt_storage/models/account_sas_parameters.rb +136 -0
  16. data/lib/2018-11-01/generated/azure_mgmt_storage/models/account_status.rb +16 -0
  17. data/lib/2018-11-01/generated/azure_mgmt_storage/models/action.rb +15 -0
  18. data/lib/2018-11-01/generated/azure_mgmt_storage/models/azure_entity_resource.rb +75 -0
  19. data/lib/2018-11-01/generated/azure_mgmt_storage/models/blob_container.rb +217 -0
  20. data/lib/2018-11-01/generated/azure_mgmt_storage/models/blob_service_properties.rb +104 -0
  21. data/lib/2018-11-01/generated/azure_mgmt_storage/models/bypass.rb +18 -0
  22. data/lib/2018-11-01/generated/azure_mgmt_storage/models/check_name_availability_result.rb +77 -0
  23. data/lib/2018-11-01/generated/azure_mgmt_storage/models/cors_rule.rb +128 -0
  24. data/lib/2018-11-01/generated/azure_mgmt_storage/models/cors_rules.rb +57 -0
  25. data/lib/2018-11-01/generated/azure_mgmt_storage/models/custom_domain.rb +60 -0
  26. data/lib/2018-11-01/generated/azure_mgmt_storage/models/date_after_creation.rb +50 -0
  27. data/lib/2018-11-01/generated/azure_mgmt_storage/models/date_after_modification.rb +50 -0
  28. data/lib/2018-11-01/generated/azure_mgmt_storage/models/default_action.rb +16 -0
  29. data/lib/2018-11-01/generated/azure_mgmt_storage/models/delete_retention_policy.rb +64 -0
  30. data/lib/2018-11-01/generated/azure_mgmt_storage/models/dimension.rb +57 -0
  31. data/lib/2018-11-01/generated/azure_mgmt_storage/models/encryption.rb +74 -0
  32. data/lib/2018-11-01/generated/azure_mgmt_storage/models/encryption_service.rb +62 -0
  33. data/lib/2018-11-01/generated/azure_mgmt_storage/models/encryption_services.rb +89 -0
  34. data/lib/2018-11-01/generated/azure_mgmt_storage/models/endpoints.rb +108 -0
  35. data/lib/2018-11-01/generated/azure_mgmt_storage/models/geo_replication_stats.rb +85 -0
  36. data/lib/2018-11-01/generated/azure_mgmt_storage/models/geo_replication_status.rb +17 -0
  37. data/lib/2018-11-01/generated/azure_mgmt_storage/models/http_protocol.rb +16 -0
  38. data/lib/2018-11-01/generated/azure_mgmt_storage/models/identity.rb +72 -0
  39. data/lib/2018-11-01/generated/azure_mgmt_storage/models/immutability_policy.rb +98 -0
  40. data/lib/2018-11-01/generated/azure_mgmt_storage/models/immutability_policy_properties.rb +95 -0
  41. data/lib/2018-11-01/generated/azure_mgmt_storage/models/immutability_policy_state.rb +16 -0
  42. data/lib/2018-11-01/generated/azure_mgmt_storage/models/immutability_policy_update_type.rb +17 -0
  43. data/lib/2018-11-01/generated/azure_mgmt_storage/models/iprule.rb +61 -0
  44. data/lib/2018-11-01/generated/azure_mgmt_storage/models/key_permission.rb +16 -0
  45. data/lib/2018-11-01/generated/azure_mgmt_storage/models/key_source.rb +16 -0
  46. data/lib/2018-11-01/generated/azure_mgmt_storage/models/key_vault_properties.rb +68 -0
  47. data/lib/2018-11-01/generated/azure_mgmt_storage/models/kind.rb +19 -0
  48. data/lib/2018-11-01/generated/azure_mgmt_storage/models/lease_duration.rb +16 -0
  49. data/lib/2018-11-01/generated/azure_mgmt_storage/models/lease_state.rb +19 -0
  50. data/lib/2018-11-01/generated/azure_mgmt_storage/models/lease_status.rb +16 -0
  51. data/lib/2018-11-01/generated/azure_mgmt_storage/models/legal_hold.rb +71 -0
  52. data/lib/2018-11-01/generated/azure_mgmt_storage/models/legal_hold_properties.rb +72 -0
  53. data/lib/2018-11-01/generated/azure_mgmt_storage/models/list_account_sas_response.rb +47 -0
  54. data/lib/2018-11-01/generated/azure_mgmt_storage/models/list_container_item.rb +216 -0
  55. data/lib/2018-11-01/generated/azure_mgmt_storage/models/list_container_items.rb +55 -0
  56. data/lib/2018-11-01/generated/azure_mgmt_storage/models/list_service_sas_response.rb +47 -0
  57. data/lib/2018-11-01/generated/azure_mgmt_storage/models/management_policy.rb +89 -0
  58. data/lib/2018-11-01/generated/azure_mgmt_storage/models/management_policy_action.rb +62 -0
  59. data/lib/2018-11-01/generated/azure_mgmt_storage/models/management_policy_base_blob.rb +73 -0
  60. data/lib/2018-11-01/generated/azure_mgmt_storage/models/management_policy_definition.rb +60 -0
  61. data/lib/2018-11-01/generated/azure_mgmt_storage/models/management_policy_filter.rb +76 -0
  62. data/lib/2018-11-01/generated/azure_mgmt_storage/models/management_policy_rule.rb +87 -0
  63. data/lib/2018-11-01/generated/azure_mgmt_storage/models/management_policy_schema.rb +58 -0
  64. data/lib/2018-11-01/generated/azure_mgmt_storage/models/management_policy_snap_shot.rb +47 -0
  65. data/lib/2018-11-01/generated/azure_mgmt_storage/models/metric_specification.rb +145 -0
  66. data/lib/2018-11-01/generated/azure_mgmt_storage/models/network_rule_set.rb +106 -0
  67. data/lib/2018-11-01/generated/azure_mgmt_storage/models/operation.rb +83 -0
  68. data/lib/2018-11-01/generated/azure_mgmt_storage/models/operation_display.rb +79 -0
  69. data/lib/2018-11-01/generated/azure_mgmt_storage/models/operation_list_result.rb +57 -0
  70. data/lib/2018-11-01/generated/azure_mgmt_storage/models/permissions.rb +22 -0
  71. data/lib/2018-11-01/generated/azure_mgmt_storage/models/provisioning_state.rb +17 -0
  72. data/lib/2018-11-01/generated/azure_mgmt_storage/models/proxy_resource.rb +63 -0
  73. data/lib/2018-11-01/generated/azure_mgmt_storage/models/public_access.rb +17 -0
  74. data/lib/2018-11-01/generated/azure_mgmt_storage/models/reason.rb +16 -0
  75. data/lib/2018-11-01/generated/azure_mgmt_storage/models/reason_code.rb +16 -0
  76. data/lib/2018-11-01/generated/azure_mgmt_storage/models/resource.rb +83 -0
  77. data/lib/2018-11-01/generated/azure_mgmt_storage/models/restriction.rb +85 -0
  78. data/lib/2018-11-01/generated/azure_mgmt_storage/models/service_sas_parameters.rb +247 -0
  79. data/lib/2018-11-01/generated/azure_mgmt_storage/models/service_specification.rb +56 -0
  80. data/lib/2018-11-01/generated/azure_mgmt_storage/models/services.rb +18 -0
  81. data/lib/2018-11-01/generated/azure_mgmt_storage/models/signed_resource.rb +18 -0
  82. data/lib/2018-11-01/generated/azure_mgmt_storage/models/signed_resource_types.rb +17 -0
  83. data/lib/2018-11-01/generated/azure_mgmt_storage/models/sku.rb +159 -0
  84. data/lib/2018-11-01/generated/azure_mgmt_storage/models/sku_name.rb +20 -0
  85. data/lib/2018-11-01/generated/azure_mgmt_storage/models/sku_tier.rb +16 -0
  86. data/lib/2018-11-01/generated/azure_mgmt_storage/models/skucapability.rb +63 -0
  87. data/lib/2018-11-01/generated/azure_mgmt_storage/models/state.rb +19 -0
  88. data/lib/2018-11-01/generated/azure_mgmt_storage/models/storage_account.rb +375 -0
  89. data/lib/2018-11-01/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb +63 -0
  90. data/lib/2018-11-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb +203 -0
  91. data/lib/2018-11-01/generated/azure_mgmt_storage/models/storage_account_expand.rb +15 -0
  92. data/lib/2018-11-01/generated/azure_mgmt_storage/models/storage_account_key.rb +73 -0
  93. data/lib/2018-11-01/generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb +57 -0
  94. data/lib/2018-11-01/generated/azure_mgmt_storage/models/storage_account_list_result.rb +57 -0
  95. data/lib/2018-11-01/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb +47 -0
  96. data/lib/2018-11-01/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb +179 -0
  97. data/lib/2018-11-01/generated/azure_mgmt_storage/models/storage_sku_list_result.rb +57 -0
  98. data/lib/2018-11-01/generated/azure_mgmt_storage/models/tag_property.rb +97 -0
  99. data/lib/2018-11-01/generated/azure_mgmt_storage/models/tracked_resource.rb +92 -0
  100. data/lib/2018-11-01/generated/azure_mgmt_storage/models/update_history_property.rb +114 -0
  101. data/lib/2018-11-01/generated/azure_mgmt_storage/models/usage.rb +89 -0
  102. data/lib/2018-11-01/generated/azure_mgmt_storage/models/usage_list_result.rb +56 -0
  103. data/lib/2018-11-01/generated/azure_mgmt_storage/models/usage_name.rb +59 -0
  104. data/lib/2018-11-01/generated/azure_mgmt_storage/models/usage_unit.rb +20 -0
  105. data/lib/2018-11-01/generated/azure_mgmt_storage/models/virtual_network_rule.rb +75 -0
  106. data/lib/2018-11-01/generated/azure_mgmt_storage/module_definition.rb +9 -0
  107. data/lib/2018-11-01/generated/azure_mgmt_storage/operations.rb +108 -0
  108. data/lib/2018-11-01/generated/azure_mgmt_storage/skus.rb +114 -0
  109. data/lib/2018-11-01/generated/azure_mgmt_storage/storage_accounts.rb +1505 -0
  110. data/lib/2018-11-01/generated/azure_mgmt_storage/storage_management_client.rb +155 -0
  111. data/lib/2018-11-01/generated/azure_mgmt_storage/usages.rb +118 -0
  112. data/lib/2018-11-01/generated/azure_mgmt_storage.rb +126 -0
  113. data/lib/azure_mgmt_storage.rb +1 -0
  114. data/lib/profiles/latest/modules/storage_profile_module.rb +250 -224
  115. data/lib/version.rb +1 -1
  116. metadata +104 -2
@@ -0,0 +1,375 @@
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::V2018_11_01
7
+ module Models
8
+ #
9
+ # The storage account.
10
+ #
11
+ class StorageAccount < TrackedResource
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
+ # 'StorageV2', 'BlobStorage', 'FileStorage', 'BlockBlobStorage'
20
+ attr_accessor :kind
21
+
22
+ # @return [Identity] The identity of the resource.
23
+ attr_accessor :identity
24
+
25
+ # @return [ProvisioningState] Gets the status of the storage account at
26
+ # the time the operation was called. Possible values include: 'Creating',
27
+ # 'ResolvingDNS', 'Succeeded'
28
+ attr_accessor :provisioning_state
29
+
30
+ # @return [Endpoints] Gets the URLs that are used to perform a retrieval
31
+ # of a public blob, queue, or table object. Note that Standard_ZRS and
32
+ # Premium_LRS accounts only return the blob endpoint.
33
+ attr_accessor :primary_endpoints
34
+
35
+ # @return [String] Gets the location of the primary data center for the
36
+ # storage account.
37
+ attr_accessor :primary_location
38
+
39
+ # @return [AccountStatus] Gets the status indicating whether the primary
40
+ # location of the storage account is available or unavailable. Possible
41
+ # values include: 'available', 'unavailable'
42
+ attr_accessor :status_of_primary
43
+
44
+ # @return [DateTime] Gets the timestamp of the most recent instance of a
45
+ # failover to the secondary location. Only the most recent timestamp is
46
+ # retained. This element is not returned if there has never been a
47
+ # failover instance. Only available if the accountType is Standard_GRS or
48
+ # Standard_RAGRS.
49
+ attr_accessor :last_geo_failover_time
50
+
51
+ # @return [String] Gets the location of the geo-replicated secondary for
52
+ # the storage account. Only available if the accountType is Standard_GRS
53
+ # or Standard_RAGRS.
54
+ attr_accessor :secondary_location
55
+
56
+ # @return [AccountStatus] Gets the status indicating whether the
57
+ # secondary location of the storage account is available or unavailable.
58
+ # Only available if the SKU name is Standard_GRS or Standard_RAGRS.
59
+ # Possible values include: 'available', 'unavailable'
60
+ attr_accessor :status_of_secondary
61
+
62
+ # @return [DateTime] Gets the creation date and time of the storage
63
+ # account in UTC.
64
+ attr_accessor :creation_time
65
+
66
+ # @return [CustomDomain] Gets the custom domain the user assigned to this
67
+ # storage account.
68
+ attr_accessor :custom_domain
69
+
70
+ # @return [Endpoints] Gets the URLs that are used to perform a retrieval
71
+ # of a public blob, queue, or table object from the secondary location of
72
+ # the storage account. Only available if the SKU name is Standard_RAGRS.
73
+ attr_accessor :secondary_endpoints
74
+
75
+ # @return [Encryption] Gets the encryption settings on the account. If
76
+ # unspecified, the account is unencrypted.
77
+ attr_accessor :encryption
78
+
79
+ # @return [AccessTier] Required for storage accounts where kind =
80
+ # BlobStorage. The access tier used for billing. Possible values include:
81
+ # 'Hot', 'Cool'
82
+ attr_accessor :access_tier
83
+
84
+ # @return [Boolean] Enables Azure Files AAD Integration for SMB if sets
85
+ # to true.
86
+ attr_accessor :enable_azure_files_aad_integration
87
+
88
+ # @return [Boolean] Allows https traffic only to storage service if sets
89
+ # to true.
90
+ attr_accessor :enable_https_traffic_only
91
+
92
+ # @return [NetworkRuleSet] Network rule set
93
+ attr_accessor :network_rule_set
94
+
95
+ # @return [Boolean] Account HierarchicalNamespace enabled if sets to
96
+ # true.
97
+ attr_accessor :is_hns_enabled
98
+
99
+ # @return [GeoReplicationStats] Geo Replication Stats
100
+ attr_accessor :geo_replication_stats
101
+
102
+ # @return [Boolean] If the failover is in progress, the value will be
103
+ # true, otherwise, it will be null.
104
+ attr_accessor :failover_in_progress
105
+
106
+
107
+ #
108
+ # Mapper for StorageAccount class as Ruby Hash.
109
+ # This will be used for serialization/deserialization.
110
+ #
111
+ def self.mapper()
112
+ {
113
+ client_side_validation: true,
114
+ required: false,
115
+ serialized_name: 'StorageAccount',
116
+ type: {
117
+ name: 'Composite',
118
+ class_name: 'StorageAccount',
119
+ model_properties: {
120
+ id: {
121
+ client_side_validation: true,
122
+ required: false,
123
+ read_only: true,
124
+ serialized_name: 'id',
125
+ type: {
126
+ name: 'String'
127
+ }
128
+ },
129
+ name: {
130
+ client_side_validation: true,
131
+ required: false,
132
+ read_only: true,
133
+ serialized_name: 'name',
134
+ type: {
135
+ name: 'String'
136
+ }
137
+ },
138
+ type: {
139
+ client_side_validation: true,
140
+ required: false,
141
+ read_only: true,
142
+ serialized_name: 'type',
143
+ type: {
144
+ name: 'String'
145
+ }
146
+ },
147
+ tags: {
148
+ client_side_validation: true,
149
+ required: false,
150
+ serialized_name: 'tags',
151
+ type: {
152
+ name: 'Dictionary',
153
+ value: {
154
+ client_side_validation: true,
155
+ required: false,
156
+ serialized_name: 'StringElementType',
157
+ type: {
158
+ name: 'String'
159
+ }
160
+ }
161
+ }
162
+ },
163
+ location: {
164
+ client_side_validation: true,
165
+ required: true,
166
+ serialized_name: 'location',
167
+ type: {
168
+ name: 'String'
169
+ }
170
+ },
171
+ sku: {
172
+ client_side_validation: true,
173
+ required: false,
174
+ read_only: true,
175
+ serialized_name: 'sku',
176
+ type: {
177
+ name: 'Composite',
178
+ class_name: 'Sku'
179
+ }
180
+ },
181
+ kind: {
182
+ client_side_validation: true,
183
+ required: false,
184
+ read_only: true,
185
+ serialized_name: 'kind',
186
+ type: {
187
+ name: 'Enum',
188
+ module: 'Kind'
189
+ }
190
+ },
191
+ identity: {
192
+ client_side_validation: true,
193
+ required: false,
194
+ serialized_name: 'identity',
195
+ type: {
196
+ name: 'Composite',
197
+ class_name: 'Identity'
198
+ }
199
+ },
200
+ provisioning_state: {
201
+ client_side_validation: true,
202
+ required: false,
203
+ read_only: true,
204
+ serialized_name: 'properties.provisioningState',
205
+ type: {
206
+ name: 'Enum',
207
+ module: 'ProvisioningState'
208
+ }
209
+ },
210
+ primary_endpoints: {
211
+ client_side_validation: true,
212
+ required: false,
213
+ read_only: true,
214
+ serialized_name: 'properties.primaryEndpoints',
215
+ type: {
216
+ name: 'Composite',
217
+ class_name: 'Endpoints'
218
+ }
219
+ },
220
+ primary_location: {
221
+ client_side_validation: true,
222
+ required: false,
223
+ read_only: true,
224
+ serialized_name: 'properties.primaryLocation',
225
+ type: {
226
+ name: 'String'
227
+ }
228
+ },
229
+ status_of_primary: {
230
+ client_side_validation: true,
231
+ required: false,
232
+ read_only: true,
233
+ serialized_name: 'properties.statusOfPrimary',
234
+ type: {
235
+ name: 'Enum',
236
+ module: 'AccountStatus'
237
+ }
238
+ },
239
+ last_geo_failover_time: {
240
+ client_side_validation: true,
241
+ required: false,
242
+ read_only: true,
243
+ serialized_name: 'properties.lastGeoFailoverTime',
244
+ type: {
245
+ name: 'DateTime'
246
+ }
247
+ },
248
+ secondary_location: {
249
+ client_side_validation: true,
250
+ required: false,
251
+ read_only: true,
252
+ serialized_name: 'properties.secondaryLocation',
253
+ type: {
254
+ name: 'String'
255
+ }
256
+ },
257
+ status_of_secondary: {
258
+ client_side_validation: true,
259
+ required: false,
260
+ read_only: true,
261
+ serialized_name: 'properties.statusOfSecondary',
262
+ type: {
263
+ name: 'Enum',
264
+ module: 'AccountStatus'
265
+ }
266
+ },
267
+ creation_time: {
268
+ client_side_validation: true,
269
+ required: false,
270
+ read_only: true,
271
+ serialized_name: 'properties.creationTime',
272
+ type: {
273
+ name: 'DateTime'
274
+ }
275
+ },
276
+ custom_domain: {
277
+ client_side_validation: true,
278
+ required: false,
279
+ read_only: true,
280
+ serialized_name: 'properties.customDomain',
281
+ type: {
282
+ name: 'Composite',
283
+ class_name: 'CustomDomain'
284
+ }
285
+ },
286
+ secondary_endpoints: {
287
+ client_side_validation: true,
288
+ required: false,
289
+ read_only: true,
290
+ serialized_name: 'properties.secondaryEndpoints',
291
+ type: {
292
+ name: 'Composite',
293
+ class_name: 'Endpoints'
294
+ }
295
+ },
296
+ encryption: {
297
+ client_side_validation: true,
298
+ required: false,
299
+ read_only: true,
300
+ serialized_name: 'properties.encryption',
301
+ type: {
302
+ name: 'Composite',
303
+ class_name: 'Encryption'
304
+ }
305
+ },
306
+ access_tier: {
307
+ client_side_validation: true,
308
+ required: false,
309
+ read_only: true,
310
+ serialized_name: 'properties.accessTier',
311
+ type: {
312
+ name: 'Enum',
313
+ module: 'AccessTier'
314
+ }
315
+ },
316
+ enable_azure_files_aad_integration: {
317
+ client_side_validation: true,
318
+ required: false,
319
+ serialized_name: 'properties.azureFilesAadIntegration',
320
+ type: {
321
+ name: 'Boolean'
322
+ }
323
+ },
324
+ enable_https_traffic_only: {
325
+ client_side_validation: true,
326
+ required: false,
327
+ serialized_name: 'properties.supportsHttpsTrafficOnly',
328
+ type: {
329
+ name: 'Boolean'
330
+ }
331
+ },
332
+ network_rule_set: {
333
+ client_side_validation: true,
334
+ required: false,
335
+ read_only: true,
336
+ serialized_name: 'properties.networkAcls',
337
+ type: {
338
+ name: 'Composite',
339
+ class_name: 'NetworkRuleSet'
340
+ }
341
+ },
342
+ is_hns_enabled: {
343
+ client_side_validation: true,
344
+ required: false,
345
+ serialized_name: 'properties.isHnsEnabled',
346
+ type: {
347
+ name: 'Boolean'
348
+ }
349
+ },
350
+ geo_replication_stats: {
351
+ client_side_validation: true,
352
+ required: false,
353
+ read_only: true,
354
+ serialized_name: 'properties.geoReplicationStats',
355
+ type: {
356
+ name: 'Composite',
357
+ class_name: 'GeoReplicationStats'
358
+ }
359
+ },
360
+ failover_in_progress: {
361
+ client_side_validation: true,
362
+ required: false,
363
+ read_only: true,
364
+ serialized_name: 'properties.failoverInProgress',
365
+ type: {
366
+ name: 'Boolean'
367
+ }
368
+ }
369
+ }
370
+ }
371
+ }
372
+ end
373
+ end
374
+ end
375
+ end
@@ -0,0 +1,63 @@
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::V2018_11_01
7
+ module Models
8
+ #
9
+ # The parameters used to check the availability of the storage account
10
+ # name.
11
+ #
12
+ class StorageAccountCheckNameAvailabilityParameters
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] The storage account name.
17
+ attr_accessor :name
18
+
19
+ # @return [String] The type of resource,
20
+ # Microsoft.Storage/storageAccounts. Default value:
21
+ # 'Microsoft.Storage/storageAccounts' .
22
+ attr_accessor :type
23
+
24
+
25
+ #
26
+ # Mapper for StorageAccountCheckNameAvailabilityParameters class as Ruby
27
+ # 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: 'StorageAccountCheckNameAvailabilityParameters',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'StorageAccountCheckNameAvailabilityParameters',
38
+ model_properties: {
39
+ name: {
40
+ client_side_validation: true,
41
+ required: true,
42
+ serialized_name: 'name',
43
+ type: {
44
+ name: 'String'
45
+ }
46
+ },
47
+ type: {
48
+ client_side_validation: true,
49
+ required: true,
50
+ is_constant: true,
51
+ serialized_name: 'type',
52
+ default_value: 'Microsoft.Storage/storageAccounts',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ }
57
+ }
58
+ }
59
+ }
60
+ end
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,203 @@
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::V2018_11_01
7
+ module Models
8
+ #
9
+ # The parameters used when creating a storage account.
10
+ #
11
+ class StorageAccountCreateParameters
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Sku] Required. Gets or sets the SKU name.
16
+ attr_accessor :sku
17
+
18
+ # @return [Kind] Required. Indicates the type of storage account.
19
+ # Possible values include: 'Storage', 'StorageV2', 'BlobStorage',
20
+ # 'FileStorage', 'BlockBlobStorage'
21
+ attr_accessor :kind
22
+
23
+ # @return [String] Required. Gets or sets the location of the resource.
24
+ # This will be one of the supported and registered Azure Geo Regions
25
+ # (e.g. West US, East US, Southeast Asia, etc.). The geo region of a
26
+ # resource cannot be changed once it is created, but if an identical geo
27
+ # region is specified on update, the request will succeed.
28
+ attr_accessor :location
29
+
30
+ # @return [Hash{String => String}] Gets or sets a list of key value pairs
31
+ # that describe the resource. These tags can be used for viewing and
32
+ # grouping this resource (across resource groups). A maximum of 15 tags
33
+ # can be provided for a resource. Each tag must have a key with a length
34
+ # no greater than 128 characters and a value with a length no greater
35
+ # than 256 characters.
36
+ attr_accessor :tags
37
+
38
+ # @return [Identity] The identity of the resource.
39
+ attr_accessor :identity
40
+
41
+ # @return [CustomDomain] User domain assigned to the storage account.
42
+ # Name is the CNAME source. Only one custom domain is supported per
43
+ # storage account at this time. To clear the existing custom domain, use
44
+ # an empty string for the custom domain name property.
45
+ attr_accessor :custom_domain
46
+
47
+ # @return [Encryption] Provides the encryption settings on the account.
48
+ # If left unspecified the account encryption settings will remain the
49
+ # same. The default setting is unencrypted.
50
+ attr_accessor :encryption
51
+
52
+ # @return [NetworkRuleSet] Network rule set
53
+ attr_accessor :network_rule_set
54
+
55
+ # @return [AccessTier] Required for storage accounts where kind =
56
+ # BlobStorage. The access tier used for billing. Possible values include:
57
+ # 'Hot', 'Cool'
58
+ attr_accessor :access_tier
59
+
60
+ # @return [Boolean] Enables Azure Files AAD Integration for SMB if sets
61
+ # to true.
62
+ attr_accessor :enable_azure_files_aad_integration
63
+
64
+ # @return [Boolean] Allows https traffic only to storage service if sets
65
+ # to true.
66
+ attr_accessor :enable_https_traffic_only
67
+
68
+ # @return [Boolean] Account HierarchicalNamespace enabled if sets to
69
+ # true.
70
+ attr_accessor :is_hns_enabled
71
+
72
+
73
+ #
74
+ # Mapper for StorageAccountCreateParameters class as Ruby Hash.
75
+ # This will be used for serialization/deserialization.
76
+ #
77
+ def self.mapper()
78
+ {
79
+ client_side_validation: true,
80
+ required: false,
81
+ serialized_name: 'StorageAccountCreateParameters',
82
+ type: {
83
+ name: 'Composite',
84
+ class_name: 'StorageAccountCreateParameters',
85
+ model_properties: {
86
+ sku: {
87
+ client_side_validation: true,
88
+ required: true,
89
+ serialized_name: 'sku',
90
+ type: {
91
+ name: 'Composite',
92
+ class_name: 'Sku'
93
+ }
94
+ },
95
+ kind: {
96
+ client_side_validation: true,
97
+ required: true,
98
+ serialized_name: 'kind',
99
+ type: {
100
+ name: 'Enum',
101
+ module: 'Kind'
102
+ }
103
+ },
104
+ location: {
105
+ client_side_validation: true,
106
+ required: true,
107
+ serialized_name: 'location',
108
+ type: {
109
+ name: 'String'
110
+ }
111
+ },
112
+ tags: {
113
+ client_side_validation: true,
114
+ required: false,
115
+ serialized_name: 'tags',
116
+ type: {
117
+ name: 'Dictionary',
118
+ value: {
119
+ client_side_validation: true,
120
+ required: false,
121
+ serialized_name: 'StringElementType',
122
+ type: {
123
+ name: 'String'
124
+ }
125
+ }
126
+ }
127
+ },
128
+ identity: {
129
+ client_side_validation: true,
130
+ required: false,
131
+ serialized_name: 'identity',
132
+ type: {
133
+ name: 'Composite',
134
+ class_name: 'Identity'
135
+ }
136
+ },
137
+ custom_domain: {
138
+ client_side_validation: true,
139
+ required: false,
140
+ serialized_name: 'properties.customDomain',
141
+ type: {
142
+ name: 'Composite',
143
+ class_name: 'CustomDomain'
144
+ }
145
+ },
146
+ encryption: {
147
+ client_side_validation: true,
148
+ required: false,
149
+ serialized_name: 'properties.encryption',
150
+ type: {
151
+ name: 'Composite',
152
+ class_name: 'Encryption'
153
+ }
154
+ },
155
+ network_rule_set: {
156
+ client_side_validation: true,
157
+ required: false,
158
+ serialized_name: 'properties.networkAcls',
159
+ type: {
160
+ name: 'Composite',
161
+ class_name: 'NetworkRuleSet'
162
+ }
163
+ },
164
+ access_tier: {
165
+ client_side_validation: true,
166
+ required: false,
167
+ serialized_name: 'properties.accessTier',
168
+ type: {
169
+ name: 'Enum',
170
+ module: 'AccessTier'
171
+ }
172
+ },
173
+ enable_azure_files_aad_integration: {
174
+ client_side_validation: true,
175
+ required: false,
176
+ serialized_name: 'properties.azureFilesAadIntegration',
177
+ type: {
178
+ name: 'Boolean'
179
+ }
180
+ },
181
+ enable_https_traffic_only: {
182
+ client_side_validation: true,
183
+ required: false,
184
+ serialized_name: 'properties.supportsHttpsTrafficOnly',
185
+ type: {
186
+ name: 'Boolean'
187
+ }
188
+ },
189
+ is_hns_enabled: {
190
+ client_side_validation: true,
191
+ required: false,
192
+ serialized_name: 'properties.isHnsEnabled',
193
+ type: {
194
+ name: 'Boolean'
195
+ }
196
+ }
197
+ }
198
+ }
199
+ }
200
+ end
201
+ end
202
+ end
203
+ end
@@ -0,0 +1,15 @@
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::V2018_11_01
7
+ module Models
8
+ #
9
+ # Defines values for StorageAccountExpand
10
+ #
11
+ module StorageAccountExpand
12
+ GeoReplicationStats = "geoReplicationStats"
13
+ end
14
+ end
15
+ end