azure-mgmt-storage 22.2.0__py3-none-any.whl → 23.0.1__py3-none-any.whl

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 (184) hide show
  1. azure/mgmt/storage/__init__.py +19 -7
  2. azure/mgmt/storage/_configuration.py +27 -29
  3. azure/mgmt/storage/{v2016_01_01/models/_patch.py → _patch.py} +5 -4
  4. azure/mgmt/storage/_storage_management_client.py +184 -499
  5. azure/mgmt/storage/{v2016_01_01/_version.py → _utils/__init__.py} +0 -3
  6. azure/mgmt/storage/{_serialization.py → _utils/serialization.py} +46 -131
  7. azure/mgmt/storage/_version.py +1 -1
  8. azure/mgmt/storage/aio/__init__.py +21 -2
  9. azure/mgmt/storage/aio/_configuration.py +27 -29
  10. azure/mgmt/storage/{v2017_10_01/aio/operations → aio}/_patch.py +5 -4
  11. azure/mgmt/storage/aio/_storage_management_client.py +188 -497
  12. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/__init__.py +1 -0
  13. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_blob_containers_operations.py +68 -84
  14. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_blob_inventory_policies_operations.py +28 -36
  15. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_blob_services_operations.py +22 -24
  16. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_deleted_accounts_operations.py +16 -19
  17. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_encryption_scopes_operations.py +29 -32
  18. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_file_services_operations.py +26 -29
  19. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_file_shares_operations.py +38 -41
  20. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_local_users_operations.py +28 -31
  21. azure/mgmt/storage/{v2019_06_01/aio → aio}/operations/_management_policies_operations.py +23 -30
  22. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_network_security_perimeter_configurations_operations.py +18 -21
  23. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_object_replication_policies_operations.py +23 -25
  24. azure/mgmt/storage/{v2017_10_01/aio → aio}/operations/_operations.py +14 -17
  25. azure/mgmt/storage/{v2016_01_01/aio → aio}/operations/_patch.py +5 -4
  26. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_private_endpoint_connections_operations.py +23 -25
  27. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_private_link_resources_operations.py +11 -13
  28. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_queue_operations.py +29 -32
  29. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_queue_services_operations.py +19 -21
  30. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_skus_operations.py +14 -17
  31. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_storage_accounts_operations.py +83 -111
  32. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_storage_task_assignment_instances_report_operations.py +15 -17
  33. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_storage_task_assignments_instances_report_operations.py +15 -17
  34. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_storage_task_assignments_operations.py +38 -44
  35. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_table_operations.py +29 -31
  36. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_table_services_operations.py +19 -21
  37. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_usages_operations.py +14 -16
  38. azure/mgmt/storage/{v2024_01_01/models → models}/_models_py3.py +857 -912
  39. azure/mgmt/storage/{v2016_01_01/operations → models}/_patch.py +5 -4
  40. azure/mgmt/storage/{v2024_01_01/operations → operations}/__init__.py +1 -0
  41. azure/mgmt/storage/{v2024_01_01/operations → operations}/_blob_containers_operations.py +84 -87
  42. azure/mgmt/storage/{v2024_01_01/operations → operations}/_blob_inventory_policies_operations.py +34 -42
  43. azure/mgmt/storage/{v2024_01_01/operations → operations}/_blob_services_operations.py +27 -30
  44. azure/mgmt/storage/{v2024_01_01/operations → operations}/_deleted_accounts_operations.py +19 -21
  45. azure/mgmt/storage/{v2024_01_01/operations → operations}/_encryption_scopes_operations.py +35 -37
  46. azure/mgmt/storage/{v2024_01_01/operations → operations}/_file_services_operations.py +33 -35
  47. azure/mgmt/storage/{v2024_01_01/operations → operations}/_file_shares_operations.py +47 -50
  48. azure/mgmt/storage/{v2024_01_01/operations → operations}/_local_users_operations.py +36 -38
  49. azure/mgmt/storage/{v2024_01_01/operations → operations}/_management_policies_operations.py +28 -35
  50. azure/mgmt/storage/{v2024_01_01/operations → operations}/_network_security_perimeter_configurations_operations.py +23 -25
  51. azure/mgmt/storage/{v2024_01_01/operations → operations}/_object_replication_policies_operations.py +29 -32
  52. azure/mgmt/storage/{v2024_01_01/operations → operations}/_operations.py +15 -18
  53. azure/mgmt/storage/operations/_patch.py +21 -0
  54. azure/mgmt/storage/{v2024_01_01/operations → operations}/_private_endpoint_connections_operations.py +29 -32
  55. azure/mgmt/storage/{v2024_01_01/operations → operations}/_private_link_resources_operations.py +14 -16
  56. azure/mgmt/storage/{v2024_01_01/operations → operations}/_queue_operations.py +36 -38
  57. azure/mgmt/storage/{v2024_01_01/operations → operations}/_queue_services_operations.py +24 -26
  58. azure/mgmt/storage/{v2024_01_01/operations → operations}/_skus_operations.py +15 -18
  59. azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_accounts_operations.py +101 -109
  60. azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_task_assignment_instances_report_operations.py +17 -21
  61. azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_task_assignments_instances_report_operations.py +17 -21
  62. azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_task_assignments_operations.py +42 -53
  63. azure/mgmt/storage/{v2024_01_01/operations → operations}/_table_operations.py +36 -38
  64. azure/mgmt/storage/{v2024_01_01/operations → operations}/_table_services_operations.py +24 -26
  65. azure/mgmt/storage/{v2024_01_01/operations → operations}/_usages_operations.py +16 -19
  66. {azure_mgmt_storage-22.2.0.dist-info → azure_mgmt_storage-23.0.1.dist-info}/METADATA +17 -6
  67. azure_mgmt_storage-23.0.1.dist-info/RECORD +73 -0
  68. azure/mgmt/storage/models.py +0 -8
  69. azure/mgmt/storage/v2016_01_01/__init__.py +0 -32
  70. azure/mgmt/storage/v2016_01_01/_configuration.py +0 -65
  71. azure/mgmt/storage/v2016_01_01/_patch.py +0 -32
  72. azure/mgmt/storage/v2016_01_01/_storage_management_client.py +0 -117
  73. azure/mgmt/storage/v2016_01_01/aio/__init__.py +0 -29
  74. azure/mgmt/storage/v2016_01_01/aio/_configuration.py +0 -65
  75. azure/mgmt/storage/v2016_01_01/aio/_patch.py +0 -32
  76. azure/mgmt/storage/v2016_01_01/aio/_storage_management_client.py +0 -120
  77. azure/mgmt/storage/v2016_01_01/aio/operations/__init__.py +0 -27
  78. azure/mgmt/storage/v2016_01_01/aio/operations/_storage_accounts_operations.py +0 -1023
  79. azure/mgmt/storage/v2016_01_01/aio/operations/_usage_operations.py +0 -130
  80. azure/mgmt/storage/v2016_01_01/models/__init__.py +0 -88
  81. azure/mgmt/storage/v2016_01_01/models/_models_py3.py +0 -829
  82. azure/mgmt/storage/v2016_01_01/models/_storage_management_client_enums.py +0 -99
  83. azure/mgmt/storage/v2016_01_01/operations/__init__.py +0 -27
  84. azure/mgmt/storage/v2016_01_01/operations/_storage_accounts_operations.py +0 -1278
  85. azure/mgmt/storage/v2016_01_01/operations/_usage_operations.py +0 -157
  86. azure/mgmt/storage/v2016_01_01/py.typed +0 -1
  87. azure/mgmt/storage/v2017_10_01/__init__.py +0 -32
  88. azure/mgmt/storage/v2017_10_01/_configuration.py +0 -65
  89. azure/mgmt/storage/v2017_10_01/_patch.py +0 -32
  90. azure/mgmt/storage/v2017_10_01/_storage_management.py +0 -121
  91. azure/mgmt/storage/v2017_10_01/_version.py +0 -9
  92. azure/mgmt/storage/v2017_10_01/aio/__init__.py +0 -29
  93. azure/mgmt/storage/v2017_10_01/aio/_configuration.py +0 -65
  94. azure/mgmt/storage/v2017_10_01/aio/_patch.py +0 -32
  95. azure/mgmt/storage/v2017_10_01/aio/_storage_management.py +0 -124
  96. azure/mgmt/storage/v2017_10_01/aio/operations/__init__.py +0 -31
  97. azure/mgmt/storage/v2017_10_01/aio/operations/_skus_operations.py +0 -130
  98. azure/mgmt/storage/v2017_10_01/aio/operations/_storage_accounts_operations.py +0 -1299
  99. azure/mgmt/storage/v2017_10_01/aio/operations/_usage_operations.py +0 -130
  100. azure/mgmt/storage/v2017_10_01/models/__init__.py +0 -140
  101. azure/mgmt/storage/v2017_10_01/models/_models_py3.py +0 -1851
  102. azure/mgmt/storage/v2017_10_01/models/_patch.py +0 -20
  103. azure/mgmt/storage/v2017_10_01/models/_storage_management_enums.py +0 -192
  104. azure/mgmt/storage/v2017_10_01/operations/__init__.py +0 -31
  105. azure/mgmt/storage/v2017_10_01/operations/_operations.py +0 -151
  106. azure/mgmt/storage/v2017_10_01/operations/_patch.py +0 -20
  107. azure/mgmt/storage/v2017_10_01/operations/_skus_operations.py +0 -157
  108. azure/mgmt/storage/v2017_10_01/operations/_storage_accounts_operations.py +0 -1638
  109. azure/mgmt/storage/v2017_10_01/operations/_usage_operations.py +0 -157
  110. azure/mgmt/storage/v2017_10_01/py.typed +0 -1
  111. azure/mgmt/storage/v2019_06_01/__init__.py +0 -32
  112. azure/mgmt/storage/v2019_06_01/_configuration.py +0 -64
  113. azure/mgmt/storage/v2019_06_01/_patch.py +0 -32
  114. azure/mgmt/storage/v2019_06_01/_storage_management_client.py +0 -213
  115. azure/mgmt/storage/v2019_06_01/_version.py +0 -9
  116. azure/mgmt/storage/v2019_06_01/aio/__init__.py +0 -29
  117. azure/mgmt/storage/v2019_06_01/aio/_configuration.py +0 -64
  118. azure/mgmt/storage/v2019_06_01/aio/_patch.py +0 -32
  119. azure/mgmt/storage/v2019_06_01/aio/_storage_management_client.py +0 -217
  120. azure/mgmt/storage/v2019_06_01/aio/operations/__init__.py +0 -59
  121. azure/mgmt/storage/v2019_06_01/aio/operations/_blob_containers_operations.py +0 -1725
  122. azure/mgmt/storage/v2019_06_01/aio/operations/_blob_inventory_policies_operations.py +0 -437
  123. azure/mgmt/storage/v2019_06_01/aio/operations/_blob_services_operations.py +0 -368
  124. azure/mgmt/storage/v2019_06_01/aio/operations/_encryption_scopes_operations.py +0 -538
  125. azure/mgmt/storage/v2019_06_01/aio/operations/_file_services_operations.py +0 -335
  126. azure/mgmt/storage/v2019_06_01/aio/operations/_file_shares_operations.py +0 -771
  127. azure/mgmt/storage/v2019_06_01/aio/operations/_object_replication_policies_operations.py +0 -428
  128. azure/mgmt/storage/v2019_06_01/aio/operations/_operations.py +0 -130
  129. azure/mgmt/storage/v2019_06_01/aio/operations/_patch.py +0 -20
  130. azure/mgmt/storage/v2019_06_01/aio/operations/_private_endpoint_connections_operations.py +0 -424
  131. azure/mgmt/storage/v2019_06_01/aio/operations/_private_link_resources_operations.py +0 -113
  132. azure/mgmt/storage/v2019_06_01/aio/operations/_queue_operations.py +0 -597
  133. azure/mgmt/storage/v2019_06_01/aio/operations/_queue_services_operations.py +0 -335
  134. azure/mgmt/storage/v2019_06_01/aio/operations/_skus_operations.py +0 -131
  135. azure/mgmt/storage/v2019_06_01/aio/operations/_storage_accounts_operations.py +0 -1696
  136. azure/mgmt/storage/v2019_06_01/aio/operations/_table_operations.py +0 -394
  137. azure/mgmt/storage/v2019_06_01/aio/operations/_table_services_operations.py +0 -335
  138. azure/mgmt/storage/v2019_06_01/aio/operations/_usages_operations.py +0 -134
  139. azure/mgmt/storage/v2019_06_01/models/__init__.py +0 -364
  140. azure/mgmt/storage/v2019_06_01/models/_models_py3.py +0 -6038
  141. azure/mgmt/storage/v2019_06_01/models/_patch.py +0 -20
  142. azure/mgmt/storage/v2019_06_01/models/_storage_management_client_enums.py +0 -456
  143. azure/mgmt/storage/v2019_06_01/operations/__init__.py +0 -59
  144. azure/mgmt/storage/v2019_06_01/operations/_blob_containers_operations.py +0 -2226
  145. azure/mgmt/storage/v2019_06_01/operations/_blob_inventory_policies_operations.py +0 -582
  146. azure/mgmt/storage/v2019_06_01/operations/_blob_services_operations.py +0 -476
  147. azure/mgmt/storage/v2019_06_01/operations/_encryption_scopes_operations.py +0 -677
  148. azure/mgmt/storage/v2019_06_01/operations/_file_services_operations.py +0 -444
  149. azure/mgmt/storage/v2019_06_01/operations/_file_shares_operations.py +0 -1000
  150. azure/mgmt/storage/v2019_06_01/operations/_management_policies_operations.py +0 -453
  151. azure/mgmt/storage/v2019_06_01/operations/_object_replication_policies_operations.py +0 -567
  152. azure/mgmt/storage/v2019_06_01/operations/_operations.py +0 -151
  153. azure/mgmt/storage/v2019_06_01/operations/_patch.py +0 -20
  154. azure/mgmt/storage/v2019_06_01/operations/_private_endpoint_connections_operations.py +0 -575
  155. azure/mgmt/storage/v2019_06_01/operations/_private_link_resources_operations.py +0 -149
  156. azure/mgmt/storage/v2019_06_01/operations/_queue_operations.py +0 -805
  157. azure/mgmt/storage/v2019_06_01/operations/_queue_services_operations.py +0 -444
  158. azure/mgmt/storage/v2019_06_01/operations/_skus_operations.py +0 -157
  159. azure/mgmt/storage/v2019_06_01/operations/_storage_accounts_operations.py +0 -2122
  160. azure/mgmt/storage/v2019_06_01/operations/_table_operations.py +0 -563
  161. azure/mgmt/storage/v2019_06_01/operations/_table_services_operations.py +0 -444
  162. azure/mgmt/storage/v2019_06_01/operations/_usages_operations.py +0 -164
  163. azure/mgmt/storage/v2019_06_01/py.typed +0 -1
  164. azure/mgmt/storage/v2024_01_01/__init__.py +0 -32
  165. azure/mgmt/storage/v2024_01_01/_configuration.py +0 -64
  166. azure/mgmt/storage/v2024_01_01/_patch.py +0 -20
  167. azure/mgmt/storage/v2024_01_01/_storage_management_client.py +0 -256
  168. azure/mgmt/storage/v2024_01_01/_version.py +0 -9
  169. azure/mgmt/storage/v2024_01_01/aio/__init__.py +0 -29
  170. azure/mgmt/storage/v2024_01_01/aio/_configuration.py +0 -64
  171. azure/mgmt/storage/v2024_01_01/aio/_patch.py +0 -20
  172. azure/mgmt/storage/v2024_01_01/aio/_storage_management_client.py +0 -261
  173. azure/mgmt/storage/v2024_01_01/aio/operations/_management_policies_operations.py +0 -343
  174. azure/mgmt/storage/v2024_01_01/aio/operations/_operations.py +0 -130
  175. azure/mgmt/storage/v2024_01_01/aio/operations/_patch.py +0 -20
  176. azure/mgmt/storage/v2024_01_01/models/_patch.py +0 -20
  177. azure/mgmt/storage/v2024_01_01/operations/_patch.py +0 -20
  178. azure/mgmt/storage/v2024_01_01/py.typed +0 -1
  179. azure_mgmt_storage-22.2.0.dist-info/RECORD +0 -183
  180. /azure/mgmt/storage/{v2024_01_01/models → models}/__init__.py +0 -0
  181. /azure/mgmt/storage/{v2024_01_01/models → models}/_storage_management_client_enums.py +0 -0
  182. {azure_mgmt_storage-22.2.0.dist-info → azure_mgmt_storage-23.0.1.dist-info}/LICENSE +0 -0
  183. {azure_mgmt_storage-22.2.0.dist-info → azure_mgmt_storage-23.0.1.dist-info}/WHEEL +0 -0
  184. {azure_mgmt_storage-22.2.0.dist-info → azure_mgmt_storage-23.0.1.dist-info}/top_level.txt +0 -0
@@ -1,829 +0,0 @@
1
- # coding=utf-8
2
- # --------------------------------------------------------------------------
3
- # Copyright (c) Microsoft Corporation. All rights reserved.
4
- # Licensed under the MIT License. See License.txt in the project root for license information.
5
- # Code generated by Microsoft (R) AutoRest Code Generator.
6
- # Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- # --------------------------------------------------------------------------
8
-
9
- from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union
10
-
11
- from ... import _serialization
12
-
13
- if TYPE_CHECKING:
14
- from .. import models as _models
15
-
16
-
17
- class CheckNameAvailabilityResult(_serialization.Model):
18
- """The CheckNameAvailability operation response.
19
-
20
- Variables are only populated by the server, and will be ignored when sending a request.
21
-
22
- :ivar name_available: Gets a boolean value that indicates whether the name is available for you
23
- to use. If true, the name is available. If false, the name has already been taken or is invalid
24
- and cannot be used.
25
- :vartype name_available: bool
26
- :ivar reason: Gets the reason that a storage account name could not be used. The Reason element
27
- is only returned if NameAvailable is false. Known values are: "AccountNameInvalid" and
28
- "AlreadyExists".
29
- :vartype reason: str or ~azure.mgmt.storage.v2016_01_01.models.Reason
30
- :ivar message: Gets an error message explaining the Reason value in more detail.
31
- :vartype message: str
32
- """
33
-
34
- _validation = {
35
- "name_available": {"readonly": True},
36
- "reason": {"readonly": True},
37
- "message": {"readonly": True},
38
- }
39
-
40
- _attribute_map = {
41
- "name_available": {"key": "nameAvailable", "type": "bool"},
42
- "reason": {"key": "reason", "type": "str"},
43
- "message": {"key": "message", "type": "str"},
44
- }
45
-
46
- def __init__(self, **kwargs: Any) -> None:
47
- """ """
48
- super().__init__(**kwargs)
49
- self.name_available = None
50
- self.reason = None
51
- self.message = None
52
-
53
-
54
- class CustomDomain(_serialization.Model):
55
- """The custom domain assigned to this storage account. This can be set via Update.
56
-
57
- All required parameters must be populated in order to send to server.
58
-
59
- :ivar name: Gets or sets the custom domain name assigned to the storage account. Name is the
60
- CNAME source. Required.
61
- :vartype name: str
62
- :ivar use_sub_domain_name: Indicates whether indirect CName validation is enabled. Default
63
- value is false. This should only be set on updates.
64
- :vartype use_sub_domain_name: bool
65
- """
66
-
67
- _validation = {
68
- "name": {"required": True},
69
- }
70
-
71
- _attribute_map = {
72
- "name": {"key": "name", "type": "str"},
73
- "use_sub_domain_name": {"key": "useSubDomainName", "type": "bool"},
74
- }
75
-
76
- def __init__(self, *, name: str, use_sub_domain_name: Optional[bool] = None, **kwargs: Any) -> None:
77
- """
78
- :keyword name: Gets or sets the custom domain name assigned to the storage account. Name is the
79
- CNAME source. Required.
80
- :paramtype name: str
81
- :keyword use_sub_domain_name: Indicates whether indirect CName validation is enabled. Default
82
- value is false. This should only be set on updates.
83
- :paramtype use_sub_domain_name: bool
84
- """
85
- super().__init__(**kwargs)
86
- self.name = name
87
- self.use_sub_domain_name = use_sub_domain_name
88
-
89
-
90
- class Encryption(_serialization.Model):
91
- """The encryption settings on the storage account.
92
-
93
- All required parameters must be populated in order to send to server.
94
-
95
- :ivar services: List of services which support encryption.
96
- :vartype services: ~azure.mgmt.storage.v2016_01_01.models.EncryptionServices
97
- :ivar key_source: The encryption keySource (provider). Possible values (case-insensitive):
98
- Microsoft.Storage. Required. "Microsoft.Storage"
99
- :vartype key_source: str or ~azure.mgmt.storage.v2016_01_01.models.EncryptionKeySource
100
- """
101
-
102
- _validation = {
103
- "key_source": {"required": True},
104
- }
105
-
106
- _attribute_map = {
107
- "services": {"key": "services", "type": "EncryptionServices"},
108
- "key_source": {"key": "keySource", "type": "str"},
109
- }
110
-
111
- def __init__(
112
- self,
113
- *,
114
- key_source: Union[str, "_models.EncryptionKeySource"],
115
- services: Optional["_models.EncryptionServices"] = None,
116
- **kwargs: Any
117
- ) -> None:
118
- """
119
- :keyword services: List of services which support encryption.
120
- :paramtype services: ~azure.mgmt.storage.v2016_01_01.models.EncryptionServices
121
- :keyword key_source: The encryption keySource (provider). Possible values (case-insensitive):
122
- Microsoft.Storage. Required. "Microsoft.Storage"
123
- :paramtype key_source: str or ~azure.mgmt.storage.v2016_01_01.models.EncryptionKeySource
124
- """
125
- super().__init__(**kwargs)
126
- self.services = services
127
- self.key_source = key_source
128
-
129
-
130
- class EncryptionService(_serialization.Model):
131
- """A service that allows server-side encryption to be used.
132
-
133
- Variables are only populated by the server, and will be ignored when sending a request.
134
-
135
- :ivar enabled: A boolean indicating whether or not the service encrypts the data as it is
136
- stored.
137
- :vartype enabled: bool
138
- :ivar last_enabled_time: Gets a rough estimate of the date/time when the encryption was last
139
- enabled by the user. Only returned when encryption is enabled. There might be some unencrypted
140
- blobs which were written after this time, as it is just a rough estimate.
141
- :vartype last_enabled_time: ~datetime.datetime
142
- """
143
-
144
- _validation = {
145
- "last_enabled_time": {"readonly": True},
146
- }
147
-
148
- _attribute_map = {
149
- "enabled": {"key": "enabled", "type": "bool"},
150
- "last_enabled_time": {"key": "lastEnabledTime", "type": "iso-8601"},
151
- }
152
-
153
- def __init__(self, *, enabled: Optional[bool] = None, **kwargs: Any) -> None:
154
- """
155
- :keyword enabled: A boolean indicating whether or not the service encrypts the data as it is
156
- stored.
157
- :paramtype enabled: bool
158
- """
159
- super().__init__(**kwargs)
160
- self.enabled = enabled
161
- self.last_enabled_time = None
162
-
163
-
164
- class EncryptionServices(_serialization.Model):
165
- """A list of services that support encryption.
166
-
167
- :ivar blob: The encryption function of the blob storage service.
168
- :vartype blob: ~azure.mgmt.storage.v2016_01_01.models.EncryptionService
169
- """
170
-
171
- _attribute_map = {
172
- "blob": {"key": "blob", "type": "EncryptionService"},
173
- }
174
-
175
- def __init__(self, *, blob: Optional["_models.EncryptionService"] = None, **kwargs: Any) -> None:
176
- """
177
- :keyword blob: The encryption function of the blob storage service.
178
- :paramtype blob: ~azure.mgmt.storage.v2016_01_01.models.EncryptionService
179
- """
180
- super().__init__(**kwargs)
181
- self.blob = blob
182
-
183
-
184
- class Endpoints(_serialization.Model):
185
- """The URIs that are used to perform a retrieval of a public blob, queue, or table object.
186
-
187
- Variables are only populated by the server, and will be ignored when sending a request.
188
-
189
- :ivar blob: Gets the blob endpoint.
190
- :vartype blob: str
191
- :ivar queue: Gets the queue endpoint.
192
- :vartype queue: str
193
- :ivar table: Gets the table endpoint.
194
- :vartype table: str
195
- :ivar file: Gets the file endpoint.
196
- :vartype file: str
197
- """
198
-
199
- _validation = {
200
- "blob": {"readonly": True},
201
- "queue": {"readonly": True},
202
- "table": {"readonly": True},
203
- "file": {"readonly": True},
204
- }
205
-
206
- _attribute_map = {
207
- "blob": {"key": "blob", "type": "str"},
208
- "queue": {"key": "queue", "type": "str"},
209
- "table": {"key": "table", "type": "str"},
210
- "file": {"key": "file", "type": "str"},
211
- }
212
-
213
- def __init__(self, **kwargs: Any) -> None:
214
- """ """
215
- super().__init__(**kwargs)
216
- self.blob = None
217
- self.queue = None
218
- self.table = None
219
- self.file = None
220
-
221
-
222
- class Resource(_serialization.Model):
223
- """Resource.
224
-
225
- Variables are only populated by the server, and will be ignored when sending a request.
226
-
227
- :ivar id: Resource Id.
228
- :vartype id: str
229
- :ivar name: Resource name.
230
- :vartype name: str
231
- :ivar type: Resource type.
232
- :vartype type: str
233
- :ivar location: Resource location.
234
- :vartype location: str
235
- :ivar tags: Tags assigned to a resource; can be used for viewing and grouping a resource
236
- (across resource groups).
237
- :vartype tags: dict[str, str]
238
- """
239
-
240
- _validation = {
241
- "id": {"readonly": True},
242
- "name": {"readonly": True},
243
- "type": {"readonly": True},
244
- }
245
-
246
- _attribute_map = {
247
- "id": {"key": "id", "type": "str"},
248
- "name": {"key": "name", "type": "str"},
249
- "type": {"key": "type", "type": "str"},
250
- "location": {"key": "location", "type": "str"},
251
- "tags": {"key": "tags", "type": "{str}"},
252
- }
253
-
254
- def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None:
255
- """
256
- :keyword location: Resource location.
257
- :paramtype location: str
258
- :keyword tags: Tags assigned to a resource; can be used for viewing and grouping a resource
259
- (across resource groups).
260
- :paramtype tags: dict[str, str]
261
- """
262
- super().__init__(**kwargs)
263
- self.id = None
264
- self.name = None
265
- self.type = None
266
- self.location = location
267
- self.tags = tags
268
-
269
-
270
- class Sku(_serialization.Model):
271
- """The SKU of the storage account.
272
-
273
- Variables are only populated by the server, and will be ignored when sending a request.
274
-
275
- All required parameters must be populated in order to send to server.
276
-
277
- :ivar name: Gets or sets the sku name. Required for account creation; optional for update. Note
278
- that in older versions, sku name was called accountType. Required. Known values are:
279
- "Standard_LRS", "Standard_GRS", "Standard_RAGRS", "Standard_ZRS", and "Premium_LRS".
280
- :vartype name: str or ~azure.mgmt.storage.v2016_01_01.models.SkuName
281
- :ivar tier: Gets the sku tier. This is based on the SKU name. Known values are: "Standard" and
282
- "Premium".
283
- :vartype tier: str or ~azure.mgmt.storage.v2016_01_01.models.SkuTier
284
- """
285
-
286
- _validation = {
287
- "name": {"required": True},
288
- "tier": {"readonly": True},
289
- }
290
-
291
- _attribute_map = {
292
- "name": {"key": "name", "type": "str"},
293
- "tier": {"key": "tier", "type": "str"},
294
- }
295
-
296
- def __init__(self, *, name: Union[str, "_models.SkuName"], **kwargs: Any) -> None:
297
- """
298
- :keyword name: Gets or sets the sku name. Required for account creation; optional for update.
299
- Note that in older versions, sku name was called accountType. Required. Known values are:
300
- "Standard_LRS", "Standard_GRS", "Standard_RAGRS", "Standard_ZRS", and "Premium_LRS".
301
- :paramtype name: str or ~azure.mgmt.storage.v2016_01_01.models.SkuName
302
- """
303
- super().__init__(**kwargs)
304
- self.name = name
305
- self.tier = None
306
-
307
-
308
- class StorageAccount(Resource):
309
- """The storage account.
310
-
311
- Variables are only populated by the server, and will be ignored when sending a request.
312
-
313
- :ivar id: Resource Id.
314
- :vartype id: str
315
- :ivar name: Resource name.
316
- :vartype name: str
317
- :ivar type: Resource type.
318
- :vartype type: str
319
- :ivar location: Resource location.
320
- :vartype location: str
321
- :ivar tags: Tags assigned to a resource; can be used for viewing and grouping a resource
322
- (across resource groups).
323
- :vartype tags: dict[str, str]
324
- :ivar sku: Gets the SKU.
325
- :vartype sku: ~azure.mgmt.storage.v2016_01_01.models.Sku
326
- :ivar kind: Gets the Kind. Known values are: "Storage" and "BlobStorage".
327
- :vartype kind: str or ~azure.mgmt.storage.v2016_01_01.models.Kind
328
- :ivar provisioning_state: Gets the status of the storage account at the time the operation was
329
- called. Known values are: "Creating", "ResolvingDNS", and "Succeeded".
330
- :vartype provisioning_state: str or ~azure.mgmt.storage.v2016_01_01.models.ProvisioningState
331
- :ivar primary_endpoints: Gets the URLs that are used to perform a retrieval of a public blob,
332
- queue, or table object. Note that Standard_ZRS and Premium_LRS accounts only return the blob
333
- endpoint.
334
- :vartype primary_endpoints: ~azure.mgmt.storage.v2016_01_01.models.Endpoints
335
- :ivar primary_location: Gets the location of the primary data center for the storage account.
336
- :vartype primary_location: str
337
- :ivar status_of_primary: Gets the status indicating whether the primary location of the storage
338
- account is available or unavailable. Known values are: "Available" and "Unavailable".
339
- :vartype status_of_primary: str or ~azure.mgmt.storage.v2016_01_01.models.AccountStatus
340
- :ivar last_geo_failover_time: Gets the timestamp of the most recent instance of a failover to
341
- the secondary location. Only the most recent timestamp is retained. This element is not
342
- returned if there has never been a failover instance. Only available if the accountType is
343
- Standard_GRS or Standard_RAGRS.
344
- :vartype last_geo_failover_time: ~datetime.datetime
345
- :ivar secondary_location: Gets the location of the geo-replicated secondary for the storage
346
- account. Only available if the accountType is Standard_GRS or Standard_RAGRS.
347
- :vartype secondary_location: str
348
- :ivar status_of_secondary: Gets the status indicating whether the secondary location of the
349
- storage account is available or unavailable. Only available if the SKU name is Standard_GRS or
350
- Standard_RAGRS. Known values are: "Available" and "Unavailable".
351
- :vartype status_of_secondary: str or ~azure.mgmt.storage.v2016_01_01.models.AccountStatus
352
- :ivar creation_time: Gets the creation date and time of the storage account in UTC.
353
- :vartype creation_time: ~datetime.datetime
354
- :ivar custom_domain: Gets the custom domain the user assigned to this storage account.
355
- :vartype custom_domain: ~azure.mgmt.storage.v2016_01_01.models.CustomDomain
356
- :ivar secondary_endpoints: Gets the URLs that are used to perform a retrieval of a public blob,
357
- queue, or table object from the secondary location of the storage account. Only available if
358
- the SKU name is Standard_RAGRS.
359
- :vartype secondary_endpoints: ~azure.mgmt.storage.v2016_01_01.models.Endpoints
360
- :ivar encryption: Gets the encryption settings on the account. If unspecified, the account is
361
- unencrypted.
362
- :vartype encryption: ~azure.mgmt.storage.v2016_01_01.models.Encryption
363
- :ivar access_tier: Required for storage accounts where kind = BlobStorage. The access tier used
364
- for billing. Known values are: "Hot" and "Cool".
365
- :vartype access_tier: str or ~azure.mgmt.storage.v2016_01_01.models.AccessTier
366
- """
367
-
368
- _validation = {
369
- "id": {"readonly": True},
370
- "name": {"readonly": True},
371
- "type": {"readonly": True},
372
- "sku": {"readonly": True},
373
- "kind": {"readonly": True},
374
- "provisioning_state": {"readonly": True},
375
- "primary_endpoints": {"readonly": True},
376
- "primary_location": {"readonly": True},
377
- "status_of_primary": {"readonly": True},
378
- "last_geo_failover_time": {"readonly": True},
379
- "secondary_location": {"readonly": True},
380
- "status_of_secondary": {"readonly": True},
381
- "creation_time": {"readonly": True},
382
- "custom_domain": {"readonly": True},
383
- "secondary_endpoints": {"readonly": True},
384
- "encryption": {"readonly": True},
385
- "access_tier": {"readonly": True},
386
- }
387
-
388
- _attribute_map = {
389
- "id": {"key": "id", "type": "str"},
390
- "name": {"key": "name", "type": "str"},
391
- "type": {"key": "type", "type": "str"},
392
- "location": {"key": "location", "type": "str"},
393
- "tags": {"key": "tags", "type": "{str}"},
394
- "sku": {"key": "sku", "type": "Sku"},
395
- "kind": {"key": "kind", "type": "str"},
396
- "provisioning_state": {"key": "properties.provisioningState", "type": "str"},
397
- "primary_endpoints": {"key": "properties.primaryEndpoints", "type": "Endpoints"},
398
- "primary_location": {"key": "properties.primaryLocation", "type": "str"},
399
- "status_of_primary": {"key": "properties.statusOfPrimary", "type": "str"},
400
- "last_geo_failover_time": {"key": "properties.lastGeoFailoverTime", "type": "iso-8601"},
401
- "secondary_location": {"key": "properties.secondaryLocation", "type": "str"},
402
- "status_of_secondary": {"key": "properties.statusOfSecondary", "type": "str"},
403
- "creation_time": {"key": "properties.creationTime", "type": "iso-8601"},
404
- "custom_domain": {"key": "properties.customDomain", "type": "CustomDomain"},
405
- "secondary_endpoints": {"key": "properties.secondaryEndpoints", "type": "Endpoints"},
406
- "encryption": {"key": "properties.encryption", "type": "Encryption"},
407
- "access_tier": {"key": "properties.accessTier", "type": "str"},
408
- }
409
-
410
- def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None:
411
- """
412
- :keyword location: Resource location.
413
- :paramtype location: str
414
- :keyword tags: Tags assigned to a resource; can be used for viewing and grouping a resource
415
- (across resource groups).
416
- :paramtype tags: dict[str, str]
417
- """
418
- super().__init__(location=location, tags=tags, **kwargs)
419
- self.sku = None
420
- self.kind = None
421
- self.provisioning_state = None
422
- self.primary_endpoints = None
423
- self.primary_location = None
424
- self.status_of_primary = None
425
- self.last_geo_failover_time = None
426
- self.secondary_location = None
427
- self.status_of_secondary = None
428
- self.creation_time = None
429
- self.custom_domain = None
430
- self.secondary_endpoints = None
431
- self.encryption = None
432
- self.access_tier = None
433
-
434
-
435
- class StorageAccountCheckNameAvailabilityParameters(_serialization.Model): # pylint: disable=name-too-long
436
- """StorageAccountCheckNameAvailabilityParameters.
437
-
438
- All required parameters must be populated in order to send to server.
439
-
440
- :ivar name: Required.
441
- :vartype name: str
442
- :ivar type: Required. "Microsoft.Storage/storageAccounts"
443
- :vartype type: str or
444
- ~azure.mgmt.storage.v2016_01_01.models.StorageAccountCheckNameAvailabilityParametersType
445
- """
446
-
447
- _validation = {
448
- "name": {"required": True},
449
- "type": {"required": True},
450
- }
451
-
452
- _attribute_map = {
453
- "name": {"key": "name", "type": "str"},
454
- "type": {"key": "type", "type": "str"},
455
- }
456
-
457
- def __init__(
458
- self, *, name: str, type: Union[str, "_models.StorageAccountCheckNameAvailabilityParametersType"], **kwargs: Any
459
- ) -> None:
460
- """
461
- :keyword name: Required.
462
- :paramtype name: str
463
- :keyword type: Required. "Microsoft.Storage/storageAccounts"
464
- :paramtype type: str or
465
- ~azure.mgmt.storage.v2016_01_01.models.StorageAccountCheckNameAvailabilityParametersType
466
- """
467
- super().__init__(**kwargs)
468
- self.name = name
469
- self.type = type
470
-
471
-
472
- class StorageAccountCreateParameters(_serialization.Model):
473
- """The parameters used when creating a storage account.
474
-
475
- All required parameters must be populated in order to send to server.
476
-
477
- :ivar sku: Required. Gets or sets the sku name. Required.
478
- :vartype sku: ~azure.mgmt.storage.v2016_01_01.models.Sku
479
- :ivar kind: Required. Indicates the type of storage account. Required. Known values are:
480
- "Storage" and "BlobStorage".
481
- :vartype kind: str or ~azure.mgmt.storage.v2016_01_01.models.Kind
482
- :ivar location: Required. Gets or sets the location of the resource. This will be one of the
483
- supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The
484
- geo region of a resource cannot be changed once it is created, but if an identical geo region
485
- is specified on update, the request will succeed. Required.
486
- :vartype location: str
487
- :ivar tags: Gets or sets a list of key value pairs that describe the resource. These tags can
488
- be used for viewing and grouping this resource (across resource groups). A maximum of 15 tags
489
- can be provided for a resource. Each tag must have a key with a length no greater than 128
490
- characters and a value with a length no greater than 256 characters.
491
- :vartype tags: dict[str, str]
492
- :ivar custom_domain: User domain assigned to the storage account. Name is the CNAME source.
493
- Only one custom domain is supported per storage account at this time. To clear the existing
494
- custom domain, use an empty string for the custom domain name property.
495
- :vartype custom_domain: ~azure.mgmt.storage.v2016_01_01.models.CustomDomain
496
- :ivar encryption: Provides the encryption settings on the account. If left unspecified the
497
- account encryption settings will remain the same. The default setting is unencrypted.
498
- :vartype encryption: ~azure.mgmt.storage.v2016_01_01.models.Encryption
499
- :ivar access_tier: Required for storage accounts where kind = BlobStorage. The access tier used
500
- for billing. Known values are: "Hot" and "Cool".
501
- :vartype access_tier: str or ~azure.mgmt.storage.v2016_01_01.models.AccessTier
502
- """
503
-
504
- _validation = {
505
- "sku": {"required": True},
506
- "kind": {"required": True},
507
- "location": {"required": True},
508
- }
509
-
510
- _attribute_map = {
511
- "sku": {"key": "sku", "type": "Sku"},
512
- "kind": {"key": "kind", "type": "str"},
513
- "location": {"key": "location", "type": "str"},
514
- "tags": {"key": "tags", "type": "{str}"},
515
- "custom_domain": {"key": "properties.customDomain", "type": "CustomDomain"},
516
- "encryption": {"key": "properties.encryption", "type": "Encryption"},
517
- "access_tier": {"key": "properties.accessTier", "type": "str"},
518
- }
519
-
520
- def __init__(
521
- self,
522
- *,
523
- sku: "_models.Sku",
524
- kind: Union[str, "_models.Kind"],
525
- location: str,
526
- tags: Optional[Dict[str, str]] = None,
527
- custom_domain: Optional["_models.CustomDomain"] = None,
528
- encryption: Optional["_models.Encryption"] = None,
529
- access_tier: Optional[Union[str, "_models.AccessTier"]] = None,
530
- **kwargs: Any
531
- ) -> None:
532
- """
533
- :keyword sku: Required. Gets or sets the sku name. Required.
534
- :paramtype sku: ~azure.mgmt.storage.v2016_01_01.models.Sku
535
- :keyword kind: Required. Indicates the type of storage account. Required. Known values are:
536
- "Storage" and "BlobStorage".
537
- :paramtype kind: str or ~azure.mgmt.storage.v2016_01_01.models.Kind
538
- :keyword location: Required. Gets or sets the location of the resource. This will be one of the
539
- supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The
540
- geo region of a resource cannot be changed once it is created, but if an identical geo region
541
- is specified on update, the request will succeed. Required.
542
- :paramtype location: str
543
- :keyword tags: Gets or sets a list of key value pairs that describe the resource. These tags
544
- can be used for viewing and grouping this resource (across resource groups). A maximum of 15
545
- tags can be provided for a resource. Each tag must have a key with a length no greater than 128
546
- characters and a value with a length no greater than 256 characters.
547
- :paramtype tags: dict[str, str]
548
- :keyword custom_domain: User domain assigned to the storage account. Name is the CNAME source.
549
- Only one custom domain is supported per storage account at this time. To clear the existing
550
- custom domain, use an empty string for the custom domain name property.
551
- :paramtype custom_domain: ~azure.mgmt.storage.v2016_01_01.models.CustomDomain
552
- :keyword encryption: Provides the encryption settings on the account. If left unspecified the
553
- account encryption settings will remain the same. The default setting is unencrypted.
554
- :paramtype encryption: ~azure.mgmt.storage.v2016_01_01.models.Encryption
555
- :keyword access_tier: Required for storage accounts where kind = BlobStorage. The access tier
556
- used for billing. Known values are: "Hot" and "Cool".
557
- :paramtype access_tier: str or ~azure.mgmt.storage.v2016_01_01.models.AccessTier
558
- """
559
- super().__init__(**kwargs)
560
- self.sku = sku
561
- self.kind = kind
562
- self.location = location
563
- self.tags = tags
564
- self.custom_domain = custom_domain
565
- self.encryption = encryption
566
- self.access_tier = access_tier
567
-
568
-
569
- class StorageAccountKey(_serialization.Model):
570
- """An access key for the storage account.
571
-
572
- Variables are only populated by the server, and will be ignored when sending a request.
573
-
574
- :ivar key_name: Name of the key.
575
- :vartype key_name: str
576
- :ivar value: Base 64-encoded value of the key.
577
- :vartype value: str
578
- :ivar permissions: Permissions for the key -- read-only or full permissions. Known values are:
579
- "READ" and "FULL".
580
- :vartype permissions: str or ~azure.mgmt.storage.v2016_01_01.models.KeyPermission
581
- """
582
-
583
- _validation = {
584
- "key_name": {"readonly": True},
585
- "value": {"readonly": True},
586
- "permissions": {"readonly": True},
587
- }
588
-
589
- _attribute_map = {
590
- "key_name": {"key": "keyName", "type": "str"},
591
- "value": {"key": "value", "type": "str"},
592
- "permissions": {"key": "permissions", "type": "str"},
593
- }
594
-
595
- def __init__(self, **kwargs: Any) -> None:
596
- """ """
597
- super().__init__(**kwargs)
598
- self.key_name = None
599
- self.value = None
600
- self.permissions = None
601
-
602
-
603
- class StorageAccountListKeysResult(_serialization.Model):
604
- """The response from the ListKeys operation.
605
-
606
- Variables are only populated by the server, and will be ignored when sending a request.
607
-
608
- :ivar keys: Gets the list of storage account keys and their properties for the specified
609
- storage account.
610
- :vartype keys: list[~azure.mgmt.storage.v2016_01_01.models.StorageAccountKey]
611
- """
612
-
613
- _validation = {
614
- "keys": {"readonly": True},
615
- }
616
-
617
- _attribute_map = {
618
- "keys": {"key": "keys", "type": "[StorageAccountKey]"},
619
- }
620
-
621
- def __init__(self, **kwargs: Any) -> None:
622
- """ """
623
- super().__init__(**kwargs)
624
- self.keys = None
625
-
626
-
627
- class StorageAccountListResult(_serialization.Model):
628
- """The response from the List Storage Accounts operation.
629
-
630
- Variables are only populated by the server, and will be ignored when sending a request.
631
-
632
- :ivar value: Gets the list of storage accounts and their properties.
633
- :vartype value: list[~azure.mgmt.storage.v2016_01_01.models.StorageAccount]
634
- """
635
-
636
- _validation = {
637
- "value": {"readonly": True},
638
- }
639
-
640
- _attribute_map = {
641
- "value": {"key": "value", "type": "[StorageAccount]"},
642
- }
643
-
644
- def __init__(self, **kwargs: Any) -> None:
645
- """ """
646
- super().__init__(**kwargs)
647
- self.value = None
648
-
649
-
650
- class StorageAccountRegenerateKeyParameters(_serialization.Model):
651
- """StorageAccountRegenerateKeyParameters.
652
-
653
- All required parameters must be populated in order to send to server.
654
-
655
- :ivar key_name: Required.
656
- :vartype key_name: str
657
- """
658
-
659
- _validation = {
660
- "key_name": {"required": True},
661
- }
662
-
663
- _attribute_map = {
664
- "key_name": {"key": "keyName", "type": "str"},
665
- }
666
-
667
- def __init__(self, *, key_name: str, **kwargs: Any) -> None:
668
- """
669
- :keyword key_name: Required.
670
- :paramtype key_name: str
671
- """
672
- super().__init__(**kwargs)
673
- self.key_name = key_name
674
-
675
-
676
- class StorageAccountUpdateParameters(_serialization.Model):
677
- """The parameters that can be provided when updating the storage account properties.
678
-
679
- :ivar sku: Gets or sets the SKU name. Note that the SKU name cannot be updated to Standard_ZRS
680
- or Premium_LRS, nor can accounts of those sku names be updated to any other value.
681
- :vartype sku: ~azure.mgmt.storage.v2016_01_01.models.Sku
682
- :ivar tags: Gets or sets a list of key value pairs that describe the resource. These tags can
683
- be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags
684
- can be provided for a resource. Each tag must have a key no greater in length than 128
685
- characters and a value no greater in length than 256 characters.
686
- :vartype tags: dict[str, str]
687
- :ivar custom_domain: Custom domain assigned to the storage account by the user. Name is the
688
- CNAME source. Only one custom domain is supported per storage account at this time. To clear
689
- the existing custom domain, use an empty string for the custom domain name property.
690
- :vartype custom_domain: ~azure.mgmt.storage.v2016_01_01.models.CustomDomain
691
- :ivar encryption: Provides the encryption settings on the account. The default setting is
692
- unencrypted.
693
- :vartype encryption: ~azure.mgmt.storage.v2016_01_01.models.Encryption
694
- :ivar access_tier: Required for storage accounts where kind = BlobStorage. The access tier used
695
- for billing. Known values are: "Hot" and "Cool".
696
- :vartype access_tier: str or ~azure.mgmt.storage.v2016_01_01.models.AccessTier
697
- """
698
-
699
- _attribute_map = {
700
- "sku": {"key": "sku", "type": "Sku"},
701
- "tags": {"key": "tags", "type": "{str}"},
702
- "custom_domain": {"key": "properties.customDomain", "type": "CustomDomain"},
703
- "encryption": {"key": "properties.encryption", "type": "Encryption"},
704
- "access_tier": {"key": "properties.accessTier", "type": "str"},
705
- }
706
-
707
- def __init__(
708
- self,
709
- *,
710
- sku: Optional["_models.Sku"] = None,
711
- tags: Optional[Dict[str, str]] = None,
712
- custom_domain: Optional["_models.CustomDomain"] = None,
713
- encryption: Optional["_models.Encryption"] = None,
714
- access_tier: Optional[Union[str, "_models.AccessTier"]] = None,
715
- **kwargs: Any
716
- ) -> None:
717
- """
718
- :keyword sku: Gets or sets the SKU name. Note that the SKU name cannot be updated to
719
- Standard_ZRS or Premium_LRS, nor can accounts of those sku names be updated to any other value.
720
- :paramtype sku: ~azure.mgmt.storage.v2016_01_01.models.Sku
721
- :keyword tags: Gets or sets a list of key value pairs that describe the resource. These tags
722
- can be used in viewing and grouping this resource (across resource groups). A maximum of 15
723
- tags can be provided for a resource. Each tag must have a key no greater in length than 128
724
- characters and a value no greater in length than 256 characters.
725
- :paramtype tags: dict[str, str]
726
- :keyword custom_domain: Custom domain assigned to the storage account by the user. Name is the
727
- CNAME source. Only one custom domain is supported per storage account at this time. To clear
728
- the existing custom domain, use an empty string for the custom domain name property.
729
- :paramtype custom_domain: ~azure.mgmt.storage.v2016_01_01.models.CustomDomain
730
- :keyword encryption: Provides the encryption settings on the account. The default setting is
731
- unencrypted.
732
- :paramtype encryption: ~azure.mgmt.storage.v2016_01_01.models.Encryption
733
- :keyword access_tier: Required for storage accounts where kind = BlobStorage. The access tier
734
- used for billing. Known values are: "Hot" and "Cool".
735
- :paramtype access_tier: str or ~azure.mgmt.storage.v2016_01_01.models.AccessTier
736
- """
737
- super().__init__(**kwargs)
738
- self.sku = sku
739
- self.tags = tags
740
- self.custom_domain = custom_domain
741
- self.encryption = encryption
742
- self.access_tier = access_tier
743
-
744
-
745
- class Usage(_serialization.Model):
746
- """Describes Storage Resource Usage.
747
-
748
- Variables are only populated by the server, and will be ignored when sending a request.
749
-
750
- :ivar unit: Gets the unit of measurement. Known values are: "Count", "Bytes", "Seconds",
751
- "Percent", "CountsPerSecond", and "BytesPerSecond".
752
- :vartype unit: str or ~azure.mgmt.storage.v2016_01_01.models.UsageUnit
753
- :ivar current_value: Gets the current count of the allocated resources in the subscription.
754
- :vartype current_value: int
755
- :ivar limit: Gets the maximum count of the resources that can be allocated in the subscription.
756
- :vartype limit: int
757
- :ivar name: Gets the name of the type of usage.
758
- :vartype name: ~azure.mgmt.storage.v2016_01_01.models.UsageName
759
- """
760
-
761
- _validation = {
762
- "unit": {"readonly": True},
763
- "current_value": {"readonly": True},
764
- "limit": {"readonly": True},
765
- "name": {"readonly": True},
766
- }
767
-
768
- _attribute_map = {
769
- "unit": {"key": "unit", "type": "str"},
770
- "current_value": {"key": "currentValue", "type": "int"},
771
- "limit": {"key": "limit", "type": "int"},
772
- "name": {"key": "name", "type": "UsageName"},
773
- }
774
-
775
- def __init__(self, **kwargs: Any) -> None:
776
- """ """
777
- super().__init__(**kwargs)
778
- self.unit = None
779
- self.current_value = None
780
- self.limit = None
781
- self.name = None
782
-
783
-
784
- class UsageListResult(_serialization.Model):
785
- """The response from the List Usages operation.
786
-
787
- :ivar value: Gets or sets the list of Storage Resource Usages.
788
- :vartype value: list[~azure.mgmt.storage.v2016_01_01.models.Usage]
789
- """
790
-
791
- _attribute_map = {
792
- "value": {"key": "value", "type": "[Usage]"},
793
- }
794
-
795
- def __init__(self, *, value: Optional[List["_models.Usage"]] = None, **kwargs: Any) -> None:
796
- """
797
- :keyword value: Gets or sets the list of Storage Resource Usages.
798
- :paramtype value: list[~azure.mgmt.storage.v2016_01_01.models.Usage]
799
- """
800
- super().__init__(**kwargs)
801
- self.value = value
802
-
803
-
804
- class UsageName(_serialization.Model):
805
- """The usage names that can be used; currently limited to StorageAccount.
806
-
807
- Variables are only populated by the server, and will be ignored when sending a request.
808
-
809
- :ivar value: Gets a string describing the resource name.
810
- :vartype value: str
811
- :ivar localized_value: Gets a localized string describing the resource name.
812
- :vartype localized_value: str
813
- """
814
-
815
- _validation = {
816
- "value": {"readonly": True},
817
- "localized_value": {"readonly": True},
818
- }
819
-
820
- _attribute_map = {
821
- "value": {"key": "value", "type": "str"},
822
- "localized_value": {"key": "localizedValue", "type": "str"},
823
- }
824
-
825
- def __init__(self, **kwargs: Any) -> None:
826
- """ """
827
- super().__init__(**kwargs)
828
- self.value = None
829
- self.localized_value = None