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,1851 +0,0 @@
1
- # pylint: disable=too-many-lines
2
- # coding=utf-8
3
- # --------------------------------------------------------------------------
4
- # Copyright (c) Microsoft Corporation. All rights reserved.
5
- # Licensed under the MIT License. See License.txt in the project root for license information.
6
- # Code generated by Microsoft (R) AutoRest Code Generator.
7
- # Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
- # --------------------------------------------------------------------------
9
-
10
- import datetime
11
- from typing import Any, Dict, List, Literal, Optional, TYPE_CHECKING, Union
12
-
13
- from ... import _serialization
14
-
15
- if TYPE_CHECKING:
16
- from .. import models as _models
17
-
18
-
19
- class AccountSasParameters(_serialization.Model):
20
- """The parameters to list SAS credentials of a storage account.
21
-
22
- All required parameters must be populated in order to send to server.
23
-
24
- :ivar services: The signed services accessible with the account SAS. Possible values include:
25
- Blob (b), Queue (q), Table (t), File (f). Required. Known values are: "b", "q", "t", and "f".
26
- :vartype services: str or ~azure.mgmt.storage.v2017_10_01.models.Services
27
- :ivar resource_types: The signed resource types that are accessible with the account SAS.
28
- Service (s): Access to service-level APIs; Container (c): Access to container-level APIs;
29
- Object (o): Access to object-level APIs for blobs, queue messages, table entities, and files.
30
- Required. Known values are: "s", "c", and "o".
31
- :vartype resource_types: str or ~azure.mgmt.storage.v2017_10_01.models.SignedResourceTypes
32
- :ivar permissions: The signed permissions for the account SAS. Possible values include: Read
33
- (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p).
34
- Required. Known values are: "r", "d", "w", "l", "a", "c", "u", and "p".
35
- :vartype permissions: str or ~azure.mgmt.storage.v2017_10_01.models.Permissions
36
- :ivar ip_address_or_range: An IP address or a range of IP addresses from which to accept
37
- requests.
38
- :vartype ip_address_or_range: str
39
- :ivar protocols: The protocol permitted for a request made with the account SAS. Known values
40
- are: "https,http" and "https".
41
- :vartype protocols: str or ~azure.mgmt.storage.v2017_10_01.models.HttpProtocol
42
- :ivar shared_access_start_time: The time at which the SAS becomes valid.
43
- :vartype shared_access_start_time: ~datetime.datetime
44
- :ivar shared_access_expiry_time: The time at which the shared access signature becomes invalid.
45
- Required.
46
- :vartype shared_access_expiry_time: ~datetime.datetime
47
- :ivar key_to_sign: The key to sign the account SAS token with.
48
- :vartype key_to_sign: str
49
- """
50
-
51
- _validation = {
52
- "services": {"required": True},
53
- "resource_types": {"required": True},
54
- "permissions": {"required": True},
55
- "shared_access_expiry_time": {"required": True},
56
- }
57
-
58
- _attribute_map = {
59
- "services": {"key": "signedServices", "type": "str"},
60
- "resource_types": {"key": "signedResourceTypes", "type": "str"},
61
- "permissions": {"key": "signedPermission", "type": "str"},
62
- "ip_address_or_range": {"key": "signedIp", "type": "str"},
63
- "protocols": {"key": "signedProtocol", "type": "str"},
64
- "shared_access_start_time": {"key": "signedStart", "type": "iso-8601"},
65
- "shared_access_expiry_time": {"key": "signedExpiry", "type": "iso-8601"},
66
- "key_to_sign": {"key": "keyToSign", "type": "str"},
67
- }
68
-
69
- def __init__(
70
- self,
71
- *,
72
- services: Union[str, "_models.Services"],
73
- resource_types: Union[str, "_models.SignedResourceTypes"],
74
- permissions: Union[str, "_models.Permissions"],
75
- shared_access_expiry_time: datetime.datetime,
76
- ip_address_or_range: Optional[str] = None,
77
- protocols: Optional[Union[str, "_models.HttpProtocol"]] = None,
78
- shared_access_start_time: Optional[datetime.datetime] = None,
79
- key_to_sign: Optional[str] = None,
80
- **kwargs: Any
81
- ) -> None:
82
- """
83
- :keyword services: The signed services accessible with the account SAS. Possible values
84
- include: Blob (b), Queue (q), Table (t), File (f). Required. Known values are: "b", "q", "t",
85
- and "f".
86
- :paramtype services: str or ~azure.mgmt.storage.v2017_10_01.models.Services
87
- :keyword resource_types: The signed resource types that are accessible with the account SAS.
88
- Service (s): Access to service-level APIs; Container (c): Access to container-level APIs;
89
- Object (o): Access to object-level APIs for blobs, queue messages, table entities, and files.
90
- Required. Known values are: "s", "c", and "o".
91
- :paramtype resource_types: str or ~azure.mgmt.storage.v2017_10_01.models.SignedResourceTypes
92
- :keyword permissions: The signed permissions for the account SAS. Possible values include: Read
93
- (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p).
94
- Required. Known values are: "r", "d", "w", "l", "a", "c", "u", and "p".
95
- :paramtype permissions: str or ~azure.mgmt.storage.v2017_10_01.models.Permissions
96
- :keyword ip_address_or_range: An IP address or a range of IP addresses from which to accept
97
- requests.
98
- :paramtype ip_address_or_range: str
99
- :keyword protocols: The protocol permitted for a request made with the account SAS. Known
100
- values are: "https,http" and "https".
101
- :paramtype protocols: str or ~azure.mgmt.storage.v2017_10_01.models.HttpProtocol
102
- :keyword shared_access_start_time: The time at which the SAS becomes valid.
103
- :paramtype shared_access_start_time: ~datetime.datetime
104
- :keyword shared_access_expiry_time: The time at which the shared access signature becomes
105
- invalid. Required.
106
- :paramtype shared_access_expiry_time: ~datetime.datetime
107
- :keyword key_to_sign: The key to sign the account SAS token with.
108
- :paramtype key_to_sign: str
109
- """
110
- super().__init__(**kwargs)
111
- self.services = services
112
- self.resource_types = resource_types
113
- self.permissions = permissions
114
- self.ip_address_or_range = ip_address_or_range
115
- self.protocols = protocols
116
- self.shared_access_start_time = shared_access_start_time
117
- self.shared_access_expiry_time = shared_access_expiry_time
118
- self.key_to_sign = key_to_sign
119
-
120
-
121
- class CheckNameAvailabilityResult(_serialization.Model):
122
- """The CheckNameAvailability operation response.
123
-
124
- Variables are only populated by the server, and will be ignored when sending a request.
125
-
126
- :ivar name_available: Gets a boolean value that indicates whether the name is available for you
127
- to use. If true, the name is available. If false, the name has already been taken or is invalid
128
- and cannot be used.
129
- :vartype name_available: bool
130
- :ivar reason: Gets the reason that a storage account name could not be used. The Reason element
131
- is only returned if NameAvailable is false. Known values are: "AccountNameInvalid" and
132
- "AlreadyExists".
133
- :vartype reason: str or ~azure.mgmt.storage.v2017_10_01.models.Reason
134
- :ivar message: Gets an error message explaining the Reason value in more detail.
135
- :vartype message: str
136
- """
137
-
138
- _validation = {
139
- "name_available": {"readonly": True},
140
- "reason": {"readonly": True},
141
- "message": {"readonly": True},
142
- }
143
-
144
- _attribute_map = {
145
- "name_available": {"key": "nameAvailable", "type": "bool"},
146
- "reason": {"key": "reason", "type": "str"},
147
- "message": {"key": "message", "type": "str"},
148
- }
149
-
150
- def __init__(self, **kwargs: Any) -> None:
151
- """ """
152
- super().__init__(**kwargs)
153
- self.name_available = None
154
- self.reason = None
155
- self.message = None
156
-
157
-
158
- class CustomDomain(_serialization.Model):
159
- """The custom domain assigned to this storage account. This can be set via Update.
160
-
161
- All required parameters must be populated in order to send to server.
162
-
163
- :ivar name: Gets or sets the custom domain name assigned to the storage account. Name is the
164
- CNAME source. Required.
165
- :vartype name: str
166
- :ivar use_sub_domain_name: Indicates whether indirect CName validation is enabled. Default
167
- value is false. This should only be set on updates.
168
- :vartype use_sub_domain_name: bool
169
- """
170
-
171
- _validation = {
172
- "name": {"required": True},
173
- }
174
-
175
- _attribute_map = {
176
- "name": {"key": "name", "type": "str"},
177
- "use_sub_domain_name": {"key": "useSubDomainName", "type": "bool"},
178
- }
179
-
180
- def __init__(self, *, name: str, use_sub_domain_name: Optional[bool] = None, **kwargs: Any) -> None:
181
- """
182
- :keyword name: Gets or sets the custom domain name assigned to the storage account. Name is the
183
- CNAME source. Required.
184
- :paramtype name: str
185
- :keyword use_sub_domain_name: Indicates whether indirect CName validation is enabled. Default
186
- value is false. This should only be set on updates.
187
- :paramtype use_sub_domain_name: bool
188
- """
189
- super().__init__(**kwargs)
190
- self.name = name
191
- self.use_sub_domain_name = use_sub_domain_name
192
-
193
-
194
- class Dimension(_serialization.Model):
195
- """Dimension of blobs, possibly be blob type or access tier.
196
-
197
- :ivar name: Display name of dimension.
198
- :vartype name: str
199
- :ivar display_name: Display name of dimension.
200
- :vartype display_name: str
201
- """
202
-
203
- _attribute_map = {
204
- "name": {"key": "name", "type": "str"},
205
- "display_name": {"key": "displayName", "type": "str"},
206
- }
207
-
208
- def __init__(self, *, name: Optional[str] = None, display_name: Optional[str] = None, **kwargs: Any) -> None:
209
- """
210
- :keyword name: Display name of dimension.
211
- :paramtype name: str
212
- :keyword display_name: Display name of dimension.
213
- :paramtype display_name: str
214
- """
215
- super().__init__(**kwargs)
216
- self.name = name
217
- self.display_name = display_name
218
-
219
-
220
- class Encryption(_serialization.Model):
221
- """The encryption settings on the storage account.
222
-
223
- All required parameters must be populated in order to send to server.
224
-
225
- :ivar services: List of services which support encryption.
226
- :vartype services: ~azure.mgmt.storage.v2017_10_01.models.EncryptionServices
227
- :ivar key_source: The encryption keySource (provider). Possible values (case-insensitive):
228
- Microsoft.Storage, Microsoft.Keyvault. Known values are: "Microsoft.Storage" and
229
- "Microsoft.Keyvault".
230
- :vartype key_source: str or ~azure.mgmt.storage.v2017_10_01.models.KeySource
231
- :ivar key_vault_properties: Properties provided by key vault.
232
- :vartype key_vault_properties: ~azure.mgmt.storage.v2017_10_01.models.KeyVaultProperties
233
- """
234
-
235
- _validation = {
236
- "key_source": {"required": True},
237
- }
238
-
239
- _attribute_map = {
240
- "services": {"key": "services", "type": "EncryptionServices"},
241
- "key_source": {"key": "keySource", "type": "str"},
242
- "key_vault_properties": {"key": "keyvaultproperties", "type": "KeyVaultProperties"},
243
- }
244
-
245
- def __init__(
246
- self,
247
- *,
248
- key_source: Union[str, "_models.KeySource"] = "Microsoft.Storage",
249
- services: Optional["_models.EncryptionServices"] = None,
250
- key_vault_properties: Optional["_models.KeyVaultProperties"] = None,
251
- **kwargs: Any
252
- ) -> None:
253
- """
254
- :keyword services: List of services which support encryption.
255
- :paramtype services: ~azure.mgmt.storage.v2017_10_01.models.EncryptionServices
256
- :keyword key_source: The encryption keySource (provider). Possible values (case-insensitive):
257
- Microsoft.Storage, Microsoft.Keyvault. Known values are: "Microsoft.Storage" and
258
- "Microsoft.Keyvault".
259
- :paramtype key_source: str or ~azure.mgmt.storage.v2017_10_01.models.KeySource
260
- :keyword key_vault_properties: Properties provided by key vault.
261
- :paramtype key_vault_properties: ~azure.mgmt.storage.v2017_10_01.models.KeyVaultProperties
262
- """
263
- super().__init__(**kwargs)
264
- self.services = services
265
- self.key_source = key_source
266
- self.key_vault_properties = key_vault_properties
267
-
268
-
269
- class EncryptionService(_serialization.Model):
270
- """A service that allows server-side encryption to be used.
271
-
272
- Variables are only populated by the server, and will be ignored when sending a request.
273
-
274
- :ivar enabled: A boolean indicating whether or not the service encrypts the data as it is
275
- stored.
276
- :vartype enabled: bool
277
- :ivar last_enabled_time: Gets a rough estimate of the date/time when the encryption was last
278
- enabled by the user. Only returned when encryption is enabled. There might be some unencrypted
279
- blobs which were written after this time, as it is just a rough estimate.
280
- :vartype last_enabled_time: ~datetime.datetime
281
- """
282
-
283
- _validation = {
284
- "last_enabled_time": {"readonly": True},
285
- }
286
-
287
- _attribute_map = {
288
- "enabled": {"key": "enabled", "type": "bool"},
289
- "last_enabled_time": {"key": "lastEnabledTime", "type": "iso-8601"},
290
- }
291
-
292
- def __init__(self, *, enabled: Optional[bool] = None, **kwargs: Any) -> None:
293
- """
294
- :keyword enabled: A boolean indicating whether or not the service encrypts the data as it is
295
- stored.
296
- :paramtype enabled: bool
297
- """
298
- super().__init__(**kwargs)
299
- self.enabled = enabled
300
- self.last_enabled_time = None
301
-
302
-
303
- class EncryptionServices(_serialization.Model):
304
- """A list of services that support encryption.
305
-
306
- Variables are only populated by the server, and will be ignored when sending a request.
307
-
308
- :ivar blob: The encryption function of the blob storage service.
309
- :vartype blob: ~azure.mgmt.storage.v2017_10_01.models.EncryptionService
310
- :ivar file: The encryption function of the file storage service.
311
- :vartype file: ~azure.mgmt.storage.v2017_10_01.models.EncryptionService
312
- :ivar table: The encryption function of the table storage service.
313
- :vartype table: ~azure.mgmt.storage.v2017_10_01.models.EncryptionService
314
- :ivar queue: The encryption function of the queue storage service.
315
- :vartype queue: ~azure.mgmt.storage.v2017_10_01.models.EncryptionService
316
- """
317
-
318
- _validation = {
319
- "table": {"readonly": True},
320
- "queue": {"readonly": True},
321
- }
322
-
323
- _attribute_map = {
324
- "blob": {"key": "blob", "type": "EncryptionService"},
325
- "file": {"key": "file", "type": "EncryptionService"},
326
- "table": {"key": "table", "type": "EncryptionService"},
327
- "queue": {"key": "queue", "type": "EncryptionService"},
328
- }
329
-
330
- def __init__(
331
- self,
332
- *,
333
- blob: Optional["_models.EncryptionService"] = None,
334
- file: Optional["_models.EncryptionService"] = None,
335
- **kwargs: Any
336
- ) -> None:
337
- """
338
- :keyword blob: The encryption function of the blob storage service.
339
- :paramtype blob: ~azure.mgmt.storage.v2017_10_01.models.EncryptionService
340
- :keyword file: The encryption function of the file storage service.
341
- :paramtype file: ~azure.mgmt.storage.v2017_10_01.models.EncryptionService
342
- """
343
- super().__init__(**kwargs)
344
- self.blob = blob
345
- self.file = file
346
- self.table = None
347
- self.queue = None
348
-
349
-
350
- class Endpoints(_serialization.Model):
351
- """The URIs that are used to perform a retrieval of a public blob, queue, or table object.
352
-
353
- Variables are only populated by the server, and will be ignored when sending a request.
354
-
355
- :ivar blob: Gets the blob endpoint.
356
- :vartype blob: str
357
- :ivar queue: Gets the queue endpoint.
358
- :vartype queue: str
359
- :ivar table: Gets the table endpoint.
360
- :vartype table: str
361
- :ivar file: Gets the file endpoint.
362
- :vartype file: str
363
- """
364
-
365
- _validation = {
366
- "blob": {"readonly": True},
367
- "queue": {"readonly": True},
368
- "table": {"readonly": True},
369
- "file": {"readonly": True},
370
- }
371
-
372
- _attribute_map = {
373
- "blob": {"key": "blob", "type": "str"},
374
- "queue": {"key": "queue", "type": "str"},
375
- "table": {"key": "table", "type": "str"},
376
- "file": {"key": "file", "type": "str"},
377
- }
378
-
379
- def __init__(self, **kwargs: Any) -> None:
380
- """ """
381
- super().__init__(**kwargs)
382
- self.blob = None
383
- self.queue = None
384
- self.table = None
385
- self.file = None
386
-
387
-
388
- class Identity(_serialization.Model):
389
- """Identity for the resource.
390
-
391
- Variables are only populated by the server, and will be ignored when sending a request.
392
-
393
- All required parameters must be populated in order to send to server.
394
-
395
- :ivar principal_id: The principal ID of resource identity.
396
- :vartype principal_id: str
397
- :ivar tenant_id: The tenant ID of resource.
398
- :vartype tenant_id: str
399
- :ivar type: The identity type. Required. Default value is "SystemAssigned".
400
- :vartype type: str
401
- """
402
-
403
- _validation = {
404
- "principal_id": {"readonly": True},
405
- "tenant_id": {"readonly": True},
406
- "type": {"required": True, "constant": True},
407
- }
408
-
409
- _attribute_map = {
410
- "principal_id": {"key": "principalId", "type": "str"},
411
- "tenant_id": {"key": "tenantId", "type": "str"},
412
- "type": {"key": "type", "type": "str"},
413
- }
414
-
415
- type = "SystemAssigned"
416
-
417
- def __init__(self, **kwargs: Any) -> None:
418
- """ """
419
- super().__init__(**kwargs)
420
- self.principal_id = None
421
- self.tenant_id = None
422
-
423
-
424
- class IPRule(_serialization.Model):
425
- """IP rule with specific IP or IP range in CIDR format.
426
-
427
- All required parameters must be populated in order to send to server.
428
-
429
- :ivar ip_address_or_range: Specifies the IP or IP range in CIDR format. Only IPV4 address is
430
- allowed. Required.
431
- :vartype ip_address_or_range: str
432
- :ivar action: The action of IP ACL rule. Default value is "Allow".
433
- :vartype action: str
434
- """
435
-
436
- _validation = {
437
- "ip_address_or_range": {"required": True},
438
- }
439
-
440
- _attribute_map = {
441
- "ip_address_or_range": {"key": "value", "type": "str"},
442
- "action": {"key": "action", "type": "str"},
443
- }
444
-
445
- def __init__(self, *, ip_address_or_range: str, action: Optional[Literal["Allow"]] = None, **kwargs: Any) -> None:
446
- """
447
- :keyword ip_address_or_range: Specifies the IP or IP range in CIDR format. Only IPV4 address is
448
- allowed. Required.
449
- :paramtype ip_address_or_range: str
450
- :keyword action: The action of IP ACL rule. Default value is "Allow".
451
- :paramtype action: str
452
- """
453
- super().__init__(**kwargs)
454
- self.ip_address_or_range = ip_address_or_range
455
- self.action = action
456
-
457
-
458
- class KeyVaultProperties(_serialization.Model):
459
- """Properties of key vault.
460
-
461
- :ivar key_name: The name of KeyVault key.
462
- :vartype key_name: str
463
- :ivar key_version: The version of KeyVault key.
464
- :vartype key_version: str
465
- :ivar key_vault_uri: The Uri of KeyVault.
466
- :vartype key_vault_uri: str
467
- """
468
-
469
- _attribute_map = {
470
- "key_name": {"key": "keyname", "type": "str"},
471
- "key_version": {"key": "keyversion", "type": "str"},
472
- "key_vault_uri": {"key": "keyvaulturi", "type": "str"},
473
- }
474
-
475
- def __init__(
476
- self,
477
- *,
478
- key_name: Optional[str] = None,
479
- key_version: Optional[str] = None,
480
- key_vault_uri: Optional[str] = None,
481
- **kwargs: Any
482
- ) -> None:
483
- """
484
- :keyword key_name: The name of KeyVault key.
485
- :paramtype key_name: str
486
- :keyword key_version: The version of KeyVault key.
487
- :paramtype key_version: str
488
- :keyword key_vault_uri: The Uri of KeyVault.
489
- :paramtype key_vault_uri: str
490
- """
491
- super().__init__(**kwargs)
492
- self.key_name = key_name
493
- self.key_version = key_version
494
- self.key_vault_uri = key_vault_uri
495
-
496
-
497
- class ListAccountSasResponse(_serialization.Model):
498
- """The List SAS credentials operation response.
499
-
500
- Variables are only populated by the server, and will be ignored when sending a request.
501
-
502
- :ivar account_sas_token: List SAS credentials of storage account.
503
- :vartype account_sas_token: str
504
- """
505
-
506
- _validation = {
507
- "account_sas_token": {"readonly": True},
508
- }
509
-
510
- _attribute_map = {
511
- "account_sas_token": {"key": "accountSasToken", "type": "str"},
512
- }
513
-
514
- def __init__(self, **kwargs: Any) -> None:
515
- """ """
516
- super().__init__(**kwargs)
517
- self.account_sas_token = None
518
-
519
-
520
- class ListServiceSasResponse(_serialization.Model):
521
- """The List service SAS credentials operation response.
522
-
523
- Variables are only populated by the server, and will be ignored when sending a request.
524
-
525
- :ivar service_sas_token: List service SAS credentials of specific resource.
526
- :vartype service_sas_token: str
527
- """
528
-
529
- _validation = {
530
- "service_sas_token": {"readonly": True},
531
- }
532
-
533
- _attribute_map = {
534
- "service_sas_token": {"key": "serviceSasToken", "type": "str"},
535
- }
536
-
537
- def __init__(self, **kwargs: Any) -> None:
538
- """ """
539
- super().__init__(**kwargs)
540
- self.service_sas_token = None
541
-
542
-
543
- class MetricSpecification(_serialization.Model):
544
- """Metric specification of operation.
545
-
546
- :ivar name: Name of metric specification.
547
- :vartype name: str
548
- :ivar display_name: Display name of metric specification.
549
- :vartype display_name: str
550
- :ivar display_description: Display description of metric specification.
551
- :vartype display_description: str
552
- :ivar unit: Unit could be Bytes or Count.
553
- :vartype unit: str
554
- :ivar dimensions: Dimensions of blobs, including blob type and access tier.
555
- :vartype dimensions: list[~azure.mgmt.storage.v2017_10_01.models.Dimension]
556
- :ivar aggregation_type: Aggregation type could be Average.
557
- :vartype aggregation_type: str
558
- :ivar fill_gap_with_zero: The property to decide fill gap with zero or not.
559
- :vartype fill_gap_with_zero: bool
560
- :ivar category: The category this metric specification belong to, could be Capacity.
561
- :vartype category: str
562
- :ivar resource_id_dimension_name_override: Account Resource Id.
563
- :vartype resource_id_dimension_name_override: str
564
- """
565
-
566
- _attribute_map = {
567
- "name": {"key": "name", "type": "str"},
568
- "display_name": {"key": "displayName", "type": "str"},
569
- "display_description": {"key": "displayDescription", "type": "str"},
570
- "unit": {"key": "unit", "type": "str"},
571
- "dimensions": {"key": "dimensions", "type": "[Dimension]"},
572
- "aggregation_type": {"key": "aggregationType", "type": "str"},
573
- "fill_gap_with_zero": {"key": "fillGapWithZero", "type": "bool"},
574
- "category": {"key": "category", "type": "str"},
575
- "resource_id_dimension_name_override": {"key": "resourceIdDimensionNameOverride", "type": "str"},
576
- }
577
-
578
- def __init__(
579
- self,
580
- *,
581
- name: Optional[str] = None,
582
- display_name: Optional[str] = None,
583
- display_description: Optional[str] = None,
584
- unit: Optional[str] = None,
585
- dimensions: Optional[List["_models.Dimension"]] = None,
586
- aggregation_type: Optional[str] = None,
587
- fill_gap_with_zero: Optional[bool] = None,
588
- category: Optional[str] = None,
589
- resource_id_dimension_name_override: Optional[str] = None,
590
- **kwargs: Any
591
- ) -> None:
592
- """
593
- :keyword name: Name of metric specification.
594
- :paramtype name: str
595
- :keyword display_name: Display name of metric specification.
596
- :paramtype display_name: str
597
- :keyword display_description: Display description of metric specification.
598
- :paramtype display_description: str
599
- :keyword unit: Unit could be Bytes or Count.
600
- :paramtype unit: str
601
- :keyword dimensions: Dimensions of blobs, including blob type and access tier.
602
- :paramtype dimensions: list[~azure.mgmt.storage.v2017_10_01.models.Dimension]
603
- :keyword aggregation_type: Aggregation type could be Average.
604
- :paramtype aggregation_type: str
605
- :keyword fill_gap_with_zero: The property to decide fill gap with zero or not.
606
- :paramtype fill_gap_with_zero: bool
607
- :keyword category: The category this metric specification belong to, could be Capacity.
608
- :paramtype category: str
609
- :keyword resource_id_dimension_name_override: Account Resource Id.
610
- :paramtype resource_id_dimension_name_override: str
611
- """
612
- super().__init__(**kwargs)
613
- self.name = name
614
- self.display_name = display_name
615
- self.display_description = display_description
616
- self.unit = unit
617
- self.dimensions = dimensions
618
- self.aggregation_type = aggregation_type
619
- self.fill_gap_with_zero = fill_gap_with_zero
620
- self.category = category
621
- self.resource_id_dimension_name_override = resource_id_dimension_name_override
622
-
623
-
624
- class NetworkRuleSet(_serialization.Model):
625
- """Network rule set.
626
-
627
- All required parameters must be populated in order to send to server.
628
-
629
- :ivar bypass: Specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Possible
630
- values are any combination of Logging|Metrics|AzureServices (For example, "Logging, Metrics"),
631
- or None to bypass none of those traffics. Known values are: "None", "Logging", "Metrics", and
632
- "AzureServices".
633
- :vartype bypass: str or ~azure.mgmt.storage.v2017_10_01.models.Bypass
634
- :ivar virtual_network_rules: Sets the virtual network rules.
635
- :vartype virtual_network_rules: list[~azure.mgmt.storage.v2017_10_01.models.VirtualNetworkRule]
636
- :ivar ip_rules: Sets the IP ACL rules.
637
- :vartype ip_rules: list[~azure.mgmt.storage.v2017_10_01.models.IPRule]
638
- :ivar default_action: Specifies the default action of allow or deny when no other rules match.
639
- Known values are: "Allow" and "Deny".
640
- :vartype default_action: str or ~azure.mgmt.storage.v2017_10_01.models.DefaultAction
641
- """
642
-
643
- _validation = {
644
- "default_action": {"required": True},
645
- }
646
-
647
- _attribute_map = {
648
- "bypass": {"key": "bypass", "type": "str"},
649
- "virtual_network_rules": {"key": "virtualNetworkRules", "type": "[VirtualNetworkRule]"},
650
- "ip_rules": {"key": "ipRules", "type": "[IPRule]"},
651
- "default_action": {"key": "defaultAction", "type": "str"},
652
- }
653
-
654
- def __init__(
655
- self,
656
- *,
657
- default_action: Union[str, "_models.DefaultAction"] = "Allow",
658
- bypass: Union[str, "_models.Bypass"] = "AzureServices",
659
- virtual_network_rules: Optional[List["_models.VirtualNetworkRule"]] = None,
660
- ip_rules: Optional[List["_models.IPRule"]] = None,
661
- **kwargs: Any
662
- ) -> None:
663
- """
664
- :keyword bypass: Specifies whether traffic is bypassed for Logging/Metrics/AzureServices.
665
- Possible values are any combination of Logging|Metrics|AzureServices (For example, "Logging,
666
- Metrics"), or None to bypass none of those traffics. Known values are: "None", "Logging",
667
- "Metrics", and "AzureServices".
668
- :paramtype bypass: str or ~azure.mgmt.storage.v2017_10_01.models.Bypass
669
- :keyword virtual_network_rules: Sets the virtual network rules.
670
- :paramtype virtual_network_rules:
671
- list[~azure.mgmt.storage.v2017_10_01.models.VirtualNetworkRule]
672
- :keyword ip_rules: Sets the IP ACL rules.
673
- :paramtype ip_rules: list[~azure.mgmt.storage.v2017_10_01.models.IPRule]
674
- :keyword default_action: Specifies the default action of allow or deny when no other rules
675
- match. Known values are: "Allow" and "Deny".
676
- :paramtype default_action: str or ~azure.mgmt.storage.v2017_10_01.models.DefaultAction
677
- """
678
- super().__init__(**kwargs)
679
- self.bypass = bypass
680
- self.virtual_network_rules = virtual_network_rules
681
- self.ip_rules = ip_rules
682
- self.default_action = default_action
683
-
684
-
685
- class Operation(_serialization.Model):
686
- """Storage REST API operation definition.
687
-
688
- :ivar name: Operation name: {provider}/{resource}/{operation}.
689
- :vartype name: str
690
- :ivar display: Display metadata associated with the operation.
691
- :vartype display: ~azure.mgmt.storage.v2017_10_01.models.OperationDisplay
692
- :ivar origin: The origin of operations.
693
- :vartype origin: str
694
- :ivar service_specification: One property of operation, include metric specifications.
695
- :vartype service_specification: ~azure.mgmt.storage.v2017_10_01.models.ServiceSpecification
696
- """
697
-
698
- _attribute_map = {
699
- "name": {"key": "name", "type": "str"},
700
- "display": {"key": "display", "type": "OperationDisplay"},
701
- "origin": {"key": "origin", "type": "str"},
702
- "service_specification": {"key": "properties.serviceSpecification", "type": "ServiceSpecification"},
703
- }
704
-
705
- def __init__(
706
- self,
707
- *,
708
- name: Optional[str] = None,
709
- display: Optional["_models.OperationDisplay"] = None,
710
- origin: Optional[str] = None,
711
- service_specification: Optional["_models.ServiceSpecification"] = None,
712
- **kwargs: Any
713
- ) -> None:
714
- """
715
- :keyword name: Operation name: {provider}/{resource}/{operation}.
716
- :paramtype name: str
717
- :keyword display: Display metadata associated with the operation.
718
- :paramtype display: ~azure.mgmt.storage.v2017_10_01.models.OperationDisplay
719
- :keyword origin: The origin of operations.
720
- :paramtype origin: str
721
- :keyword service_specification: One property of operation, include metric specifications.
722
- :paramtype service_specification: ~azure.mgmt.storage.v2017_10_01.models.ServiceSpecification
723
- """
724
- super().__init__(**kwargs)
725
- self.name = name
726
- self.display = display
727
- self.origin = origin
728
- self.service_specification = service_specification
729
-
730
-
731
- class OperationDisplay(_serialization.Model):
732
- """Display metadata associated with the operation.
733
-
734
- :ivar provider: Service provider: Microsoft Storage.
735
- :vartype provider: str
736
- :ivar resource: Resource on which the operation is performed etc.
737
- :vartype resource: str
738
- :ivar operation: Type of operation: get, read, delete, etc.
739
- :vartype operation: str
740
- """
741
-
742
- _attribute_map = {
743
- "provider": {"key": "provider", "type": "str"},
744
- "resource": {"key": "resource", "type": "str"},
745
- "operation": {"key": "operation", "type": "str"},
746
- }
747
-
748
- def __init__(
749
- self,
750
- *,
751
- provider: Optional[str] = None,
752
- resource: Optional[str] = None,
753
- operation: Optional[str] = None,
754
- **kwargs: Any
755
- ) -> None:
756
- """
757
- :keyword provider: Service provider: Microsoft Storage.
758
- :paramtype provider: str
759
- :keyword resource: Resource on which the operation is performed etc.
760
- :paramtype resource: str
761
- :keyword operation: Type of operation: get, read, delete, etc.
762
- :paramtype operation: str
763
- """
764
- super().__init__(**kwargs)
765
- self.provider = provider
766
- self.resource = resource
767
- self.operation = operation
768
-
769
-
770
- class OperationListResult(_serialization.Model):
771
- """Result of the request to list Storage operations. It contains a list of operations and a URL
772
- link to get the next set of results.
773
-
774
- :ivar value: List of Storage operations supported by the Storage resource provider.
775
- :vartype value: list[~azure.mgmt.storage.v2017_10_01.models.Operation]
776
- """
777
-
778
- _attribute_map = {
779
- "value": {"key": "value", "type": "[Operation]"},
780
- }
781
-
782
- def __init__(self, *, value: Optional[List["_models.Operation"]] = None, **kwargs: Any) -> None:
783
- """
784
- :keyword value: List of Storage operations supported by the Storage resource provider.
785
- :paramtype value: list[~azure.mgmt.storage.v2017_10_01.models.Operation]
786
- """
787
- super().__init__(**kwargs)
788
- self.value = value
789
-
790
-
791
- class Resource(_serialization.Model):
792
- """Describes a storage resource.
793
-
794
- Variables are only populated by the server, and will be ignored when sending a request.
795
-
796
- :ivar id: Resource Id.
797
- :vartype id: str
798
- :ivar name: Resource name.
799
- :vartype name: str
800
- :ivar type: Resource type.
801
- :vartype type: str
802
- :ivar location: Resource location.
803
- :vartype location: str
804
- :ivar tags: Tags assigned to a resource; can be used for viewing and grouping a resource
805
- (across resource groups).
806
- :vartype tags: dict[str, str]
807
- """
808
-
809
- _validation = {
810
- "id": {"readonly": True},
811
- "name": {"readonly": True},
812
- "type": {"readonly": True},
813
- }
814
-
815
- _attribute_map = {
816
- "id": {"key": "id", "type": "str"},
817
- "name": {"key": "name", "type": "str"},
818
- "type": {"key": "type", "type": "str"},
819
- "location": {"key": "location", "type": "str"},
820
- "tags": {"key": "tags", "type": "{str}"},
821
- }
822
-
823
- def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None:
824
- """
825
- :keyword location: Resource location.
826
- :paramtype location: str
827
- :keyword tags: Tags assigned to a resource; can be used for viewing and grouping a resource
828
- (across resource groups).
829
- :paramtype tags: dict[str, str]
830
- """
831
- super().__init__(**kwargs)
832
- self.id = None
833
- self.name = None
834
- self.type = None
835
- self.location = location
836
- self.tags = tags
837
-
838
-
839
- class Restriction(_serialization.Model):
840
- """The restriction because of which SKU cannot be used.
841
-
842
- Variables are only populated by the server, and will be ignored when sending a request.
843
-
844
- :ivar type: The type of restrictions. As of now only possible value for this is location.
845
- :vartype type: str
846
- :ivar values: The value of restrictions. If the restriction type is set to location. This would
847
- be different locations where the SKU is restricted.
848
- :vartype values: list[str]
849
- :ivar reason_code: The reason for the restriction. As of now this can be "QuotaId" or
850
- "NotAvailableForSubscription". Quota Id is set when the SKU has requiredQuotas parameter as the
851
- subscription does not belong to that quota. The "NotAvailableForSubscription" is related to
852
- capacity at DC. Known values are: "QuotaId" and "NotAvailableForSubscription".
853
- :vartype reason_code: str or ~azure.mgmt.storage.v2017_10_01.models.ReasonCode
854
- """
855
-
856
- _validation = {
857
- "type": {"readonly": True},
858
- "values": {"readonly": True},
859
- }
860
-
861
- _attribute_map = {
862
- "type": {"key": "type", "type": "str"},
863
- "values": {"key": "values", "type": "[str]"},
864
- "reason_code": {"key": "reasonCode", "type": "str"},
865
- }
866
-
867
- def __init__(self, *, reason_code: Optional[Union[str, "_models.ReasonCode"]] = None, **kwargs: Any) -> None:
868
- """
869
- :keyword reason_code: The reason for the restriction. As of now this can be "QuotaId" or
870
- "NotAvailableForSubscription". Quota Id is set when the SKU has requiredQuotas parameter as the
871
- subscription does not belong to that quota. The "NotAvailableForSubscription" is related to
872
- capacity at DC. Known values are: "QuotaId" and "NotAvailableForSubscription".
873
- :paramtype reason_code: str or ~azure.mgmt.storage.v2017_10_01.models.ReasonCode
874
- """
875
- super().__init__(**kwargs)
876
- self.type = None
877
- self.values = None
878
- self.reason_code = reason_code
879
-
880
-
881
- class ServiceSasParameters(_serialization.Model):
882
- """The parameters to list service SAS credentials of a specific resource.
883
-
884
- All required parameters must be populated in order to send to server.
885
-
886
- :ivar canonicalized_resource: The canonical path to the signed resource. Required.
887
- :vartype canonicalized_resource: str
888
- :ivar resource: The signed services accessible with the service SAS. Possible values include:
889
- Blob (b), Container (c), File (f), Share (s). Required. Known values are: "b", "c", "f", and
890
- "s".
891
- :vartype resource: str or ~azure.mgmt.storage.v2017_10_01.models.SignedResource
892
- :ivar permissions: The signed permissions for the service SAS. Possible values include: Read
893
- (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p). Known
894
- values are: "r", "d", "w", "l", "a", "c", "u", and "p".
895
- :vartype permissions: str or ~azure.mgmt.storage.v2017_10_01.models.Permissions
896
- :ivar ip_address_or_range: An IP address or a range of IP addresses from which to accept
897
- requests.
898
- :vartype ip_address_or_range: str
899
- :ivar protocols: The protocol permitted for a request made with the account SAS. Known values
900
- are: "https,http" and "https".
901
- :vartype protocols: str or ~azure.mgmt.storage.v2017_10_01.models.HttpProtocol
902
- :ivar shared_access_start_time: The time at which the SAS becomes valid.
903
- :vartype shared_access_start_time: ~datetime.datetime
904
- :ivar shared_access_expiry_time: The time at which the shared access signature becomes invalid.
905
- :vartype shared_access_expiry_time: ~datetime.datetime
906
- :ivar identifier: A unique value up to 64 characters in length that correlates to an access
907
- policy specified for the container, queue, or table.
908
- :vartype identifier: str
909
- :ivar partition_key_start: The start of partition key.
910
- :vartype partition_key_start: str
911
- :ivar partition_key_end: The end of partition key.
912
- :vartype partition_key_end: str
913
- :ivar row_key_start: The start of row key.
914
- :vartype row_key_start: str
915
- :ivar row_key_end: The end of row key.
916
- :vartype row_key_end: str
917
- :ivar key_to_sign: The key to sign the account SAS token with.
918
- :vartype key_to_sign: str
919
- :ivar cache_control: The response header override for cache control.
920
- :vartype cache_control: str
921
- :ivar content_disposition: The response header override for content disposition.
922
- :vartype content_disposition: str
923
- :ivar content_encoding: The response header override for content encoding.
924
- :vartype content_encoding: str
925
- :ivar content_language: The response header override for content language.
926
- :vartype content_language: str
927
- :ivar content_type: The response header override for content type.
928
- :vartype content_type: str
929
- """
930
-
931
- _validation = {
932
- "canonicalized_resource": {"required": True},
933
- "resource": {"required": True},
934
- "identifier": {"max_length": 64},
935
- }
936
-
937
- _attribute_map = {
938
- "canonicalized_resource": {"key": "canonicalizedResource", "type": "str"},
939
- "resource": {"key": "signedResource", "type": "str"},
940
- "permissions": {"key": "signedPermission", "type": "str"},
941
- "ip_address_or_range": {"key": "signedIp", "type": "str"},
942
- "protocols": {"key": "signedProtocol", "type": "str"},
943
- "shared_access_start_time": {"key": "signedStart", "type": "iso-8601"},
944
- "shared_access_expiry_time": {"key": "signedExpiry", "type": "iso-8601"},
945
- "identifier": {"key": "signedIdentifier", "type": "str"},
946
- "partition_key_start": {"key": "startPk", "type": "str"},
947
- "partition_key_end": {"key": "endPk", "type": "str"},
948
- "row_key_start": {"key": "startRk", "type": "str"},
949
- "row_key_end": {"key": "endRk", "type": "str"},
950
- "key_to_sign": {"key": "keyToSign", "type": "str"},
951
- "cache_control": {"key": "rscc", "type": "str"},
952
- "content_disposition": {"key": "rscd", "type": "str"},
953
- "content_encoding": {"key": "rsce", "type": "str"},
954
- "content_language": {"key": "rscl", "type": "str"},
955
- "content_type": {"key": "rsct", "type": "str"},
956
- }
957
-
958
- def __init__(
959
- self,
960
- *,
961
- canonicalized_resource: str,
962
- resource: Union[str, "_models.SignedResource"],
963
- permissions: Optional[Union[str, "_models.Permissions"]] = None,
964
- ip_address_or_range: Optional[str] = None,
965
- protocols: Optional[Union[str, "_models.HttpProtocol"]] = None,
966
- shared_access_start_time: Optional[datetime.datetime] = None,
967
- shared_access_expiry_time: Optional[datetime.datetime] = None,
968
- identifier: Optional[str] = None,
969
- partition_key_start: Optional[str] = None,
970
- partition_key_end: Optional[str] = None,
971
- row_key_start: Optional[str] = None,
972
- row_key_end: Optional[str] = None,
973
- key_to_sign: Optional[str] = None,
974
- cache_control: Optional[str] = None,
975
- content_disposition: Optional[str] = None,
976
- content_encoding: Optional[str] = None,
977
- content_language: Optional[str] = None,
978
- content_type: Optional[str] = None,
979
- **kwargs: Any
980
- ) -> None:
981
- """
982
- :keyword canonicalized_resource: The canonical path to the signed resource. Required.
983
- :paramtype canonicalized_resource: str
984
- :keyword resource: The signed services accessible with the service SAS. Possible values
985
- include: Blob (b), Container (c), File (f), Share (s). Required. Known values are: "b", "c",
986
- "f", and "s".
987
- :paramtype resource: str or ~azure.mgmt.storage.v2017_10_01.models.SignedResource
988
- :keyword permissions: The signed permissions for the service SAS. Possible values include: Read
989
- (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p). Known
990
- values are: "r", "d", "w", "l", "a", "c", "u", and "p".
991
- :paramtype permissions: str or ~azure.mgmt.storage.v2017_10_01.models.Permissions
992
- :keyword ip_address_or_range: An IP address or a range of IP addresses from which to accept
993
- requests.
994
- :paramtype ip_address_or_range: str
995
- :keyword protocols: The protocol permitted for a request made with the account SAS. Known
996
- values are: "https,http" and "https".
997
- :paramtype protocols: str or ~azure.mgmt.storage.v2017_10_01.models.HttpProtocol
998
- :keyword shared_access_start_time: The time at which the SAS becomes valid.
999
- :paramtype shared_access_start_time: ~datetime.datetime
1000
- :keyword shared_access_expiry_time: The time at which the shared access signature becomes
1001
- invalid.
1002
- :paramtype shared_access_expiry_time: ~datetime.datetime
1003
- :keyword identifier: A unique value up to 64 characters in length that correlates to an access
1004
- policy specified for the container, queue, or table.
1005
- :paramtype identifier: str
1006
- :keyword partition_key_start: The start of partition key.
1007
- :paramtype partition_key_start: str
1008
- :keyword partition_key_end: The end of partition key.
1009
- :paramtype partition_key_end: str
1010
- :keyword row_key_start: The start of row key.
1011
- :paramtype row_key_start: str
1012
- :keyword row_key_end: The end of row key.
1013
- :paramtype row_key_end: str
1014
- :keyword key_to_sign: The key to sign the account SAS token with.
1015
- :paramtype key_to_sign: str
1016
- :keyword cache_control: The response header override for cache control.
1017
- :paramtype cache_control: str
1018
- :keyword content_disposition: The response header override for content disposition.
1019
- :paramtype content_disposition: str
1020
- :keyword content_encoding: The response header override for content encoding.
1021
- :paramtype content_encoding: str
1022
- :keyword content_language: The response header override for content language.
1023
- :paramtype content_language: str
1024
- :keyword content_type: The response header override for content type.
1025
- :paramtype content_type: str
1026
- """
1027
- super().__init__(**kwargs)
1028
- self.canonicalized_resource = canonicalized_resource
1029
- self.resource = resource
1030
- self.permissions = permissions
1031
- self.ip_address_or_range = ip_address_or_range
1032
- self.protocols = protocols
1033
- self.shared_access_start_time = shared_access_start_time
1034
- self.shared_access_expiry_time = shared_access_expiry_time
1035
- self.identifier = identifier
1036
- self.partition_key_start = partition_key_start
1037
- self.partition_key_end = partition_key_end
1038
- self.row_key_start = row_key_start
1039
- self.row_key_end = row_key_end
1040
- self.key_to_sign = key_to_sign
1041
- self.cache_control = cache_control
1042
- self.content_disposition = content_disposition
1043
- self.content_encoding = content_encoding
1044
- self.content_language = content_language
1045
- self.content_type = content_type
1046
-
1047
-
1048
- class ServiceSpecification(_serialization.Model):
1049
- """One property of operation, include metric specifications.
1050
-
1051
- :ivar metric_specifications: Metric specifications of operation.
1052
- :vartype metric_specifications:
1053
- list[~azure.mgmt.storage.v2017_10_01.models.MetricSpecification]
1054
- """
1055
-
1056
- _attribute_map = {
1057
- "metric_specifications": {"key": "metricSpecifications", "type": "[MetricSpecification]"},
1058
- }
1059
-
1060
- def __init__(
1061
- self, *, metric_specifications: Optional[List["_models.MetricSpecification"]] = None, **kwargs: Any
1062
- ) -> None:
1063
- """
1064
- :keyword metric_specifications: Metric specifications of operation.
1065
- :paramtype metric_specifications:
1066
- list[~azure.mgmt.storage.v2017_10_01.models.MetricSpecification]
1067
- """
1068
- super().__init__(**kwargs)
1069
- self.metric_specifications = metric_specifications
1070
-
1071
-
1072
- class Sku(_serialization.Model):
1073
- """The SKU of the storage account.
1074
-
1075
- Variables are only populated by the server, and will be ignored when sending a request.
1076
-
1077
- All required parameters must be populated in order to send to server.
1078
-
1079
- :ivar name: Gets or sets the sku name. Required for account creation; optional for update. Note
1080
- that in older versions, sku name was called accountType. Required. Known values are:
1081
- "Standard_LRS", "Standard_GRS", "Standard_RAGRS", "Standard_ZRS", and "Premium_LRS".
1082
- :vartype name: str or ~azure.mgmt.storage.v2017_10_01.models.SkuName
1083
- :ivar tier: Gets the sku tier. This is based on the SKU name. Known values are: "Standard" and
1084
- "Premium".
1085
- :vartype tier: str or ~azure.mgmt.storage.v2017_10_01.models.SkuTier
1086
- :ivar resource_type: The type of the resource, usually it is 'storageAccounts'.
1087
- :vartype resource_type: str
1088
- :ivar kind: Indicates the type of storage account. Known values are: "Storage", "StorageV2",
1089
- and "BlobStorage".
1090
- :vartype kind: str or ~azure.mgmt.storage.v2017_10_01.models.Kind
1091
- :ivar locations: The set of locations that the SKU is available. This will be supported and
1092
- registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.).
1093
- :vartype locations: list[str]
1094
- :ivar capabilities: The capability information in the specified sku, including file encryption,
1095
- network acls, change notification, etc.
1096
- :vartype capabilities: list[~azure.mgmt.storage.v2017_10_01.models.SKUCapability]
1097
- :ivar restrictions: The restrictions because of which SKU cannot be used. This is empty if
1098
- there are no restrictions.
1099
- :vartype restrictions: list[~azure.mgmt.storage.v2017_10_01.models.Restriction]
1100
- """
1101
-
1102
- _validation = {
1103
- "name": {"required": True},
1104
- "tier": {"readonly": True},
1105
- "resource_type": {"readonly": True},
1106
- "kind": {"readonly": True},
1107
- "locations": {"readonly": True},
1108
- "capabilities": {"readonly": True},
1109
- }
1110
-
1111
- _attribute_map = {
1112
- "name": {"key": "name", "type": "str"},
1113
- "tier": {"key": "tier", "type": "str"},
1114
- "resource_type": {"key": "resourceType", "type": "str"},
1115
- "kind": {"key": "kind", "type": "str"},
1116
- "locations": {"key": "locations", "type": "[str]"},
1117
- "capabilities": {"key": "capabilities", "type": "[SKUCapability]"},
1118
- "restrictions": {"key": "restrictions", "type": "[Restriction]"},
1119
- }
1120
-
1121
- def __init__(
1122
- self,
1123
- *,
1124
- name: Union[str, "_models.SkuName"],
1125
- restrictions: Optional[List["_models.Restriction"]] = None,
1126
- **kwargs: Any
1127
- ) -> None:
1128
- """
1129
- :keyword name: Gets or sets the sku name. Required for account creation; optional for update.
1130
- Note that in older versions, sku name was called accountType. Required. Known values are:
1131
- "Standard_LRS", "Standard_GRS", "Standard_RAGRS", "Standard_ZRS", and "Premium_LRS".
1132
- :paramtype name: str or ~azure.mgmt.storage.v2017_10_01.models.SkuName
1133
- :keyword restrictions: The restrictions because of which SKU cannot be used. This is empty if
1134
- there are no restrictions.
1135
- :paramtype restrictions: list[~azure.mgmt.storage.v2017_10_01.models.Restriction]
1136
- """
1137
- super().__init__(**kwargs)
1138
- self.name = name
1139
- self.tier = None
1140
- self.resource_type = None
1141
- self.kind = None
1142
- self.locations = None
1143
- self.capabilities = None
1144
- self.restrictions = restrictions
1145
-
1146
-
1147
- class SKUCapability(_serialization.Model):
1148
- """The capability information in the specified sku, including file encryption, network acls,
1149
- change notification, etc.
1150
-
1151
- Variables are only populated by the server, and will be ignored when sending a request.
1152
-
1153
- :ivar name: The name of capability, The capability information in the specified sku, including
1154
- file encryption, network acls, change notification, etc.
1155
- :vartype name: str
1156
- :ivar value: A string value to indicate states of given capability. Possibly 'true' or 'false'.
1157
- :vartype value: str
1158
- """
1159
-
1160
- _validation = {
1161
- "name": {"readonly": True},
1162
- "value": {"readonly": True},
1163
- }
1164
-
1165
- _attribute_map = {
1166
- "name": {"key": "name", "type": "str"},
1167
- "value": {"key": "value", "type": "str"},
1168
- }
1169
-
1170
- def __init__(self, **kwargs: Any) -> None:
1171
- """ """
1172
- super().__init__(**kwargs)
1173
- self.name = None
1174
- self.value = None
1175
-
1176
-
1177
- class StorageAccount(Resource):
1178
- """The storage account.
1179
-
1180
- Variables are only populated by the server, and will be ignored when sending a request.
1181
-
1182
- :ivar id: Resource Id.
1183
- :vartype id: str
1184
- :ivar name: Resource name.
1185
- :vartype name: str
1186
- :ivar type: Resource type.
1187
- :vartype type: str
1188
- :ivar location: Resource location.
1189
- :vartype location: str
1190
- :ivar tags: Tags assigned to a resource; can be used for viewing and grouping a resource
1191
- (across resource groups).
1192
- :vartype tags: dict[str, str]
1193
- :ivar sku: Gets the SKU.
1194
- :vartype sku: ~azure.mgmt.storage.v2017_10_01.models.Sku
1195
- :ivar kind: Gets the Kind. Known values are: "Storage", "StorageV2", and "BlobStorage".
1196
- :vartype kind: str or ~azure.mgmt.storage.v2017_10_01.models.Kind
1197
- :ivar identity: The identity of the resource.
1198
- :vartype identity: ~azure.mgmt.storage.v2017_10_01.models.Identity
1199
- :ivar provisioning_state: Gets the status of the storage account at the time the operation was
1200
- called. Known values are: "Creating", "ResolvingDNS", and "Succeeded".
1201
- :vartype provisioning_state: str or ~azure.mgmt.storage.v2017_10_01.models.ProvisioningState
1202
- :ivar primary_endpoints: Gets the URLs that are used to perform a retrieval of a public blob,
1203
- queue, or table object. Note that Standard_ZRS and Premium_LRS accounts only return the blob
1204
- endpoint.
1205
- :vartype primary_endpoints: ~azure.mgmt.storage.v2017_10_01.models.Endpoints
1206
- :ivar primary_location: Gets the location of the primary data center for the storage account.
1207
- :vartype primary_location: str
1208
- :ivar status_of_primary: Gets the status indicating whether the primary location of the storage
1209
- account is available or unavailable. Known values are: "available" and "unavailable".
1210
- :vartype status_of_primary: str or ~azure.mgmt.storage.v2017_10_01.models.AccountStatus
1211
- :ivar last_geo_failover_time: Gets the timestamp of the most recent instance of a failover to
1212
- the secondary location. Only the most recent timestamp is retained. This element is not
1213
- returned if there has never been a failover instance. Only available if the accountType is
1214
- Standard_GRS or Standard_RAGRS.
1215
- :vartype last_geo_failover_time: ~datetime.datetime
1216
- :ivar secondary_location: Gets the location of the geo-replicated secondary for the storage
1217
- account. Only available if the accountType is Standard_GRS or Standard_RAGRS.
1218
- :vartype secondary_location: str
1219
- :ivar status_of_secondary: Gets the status indicating whether the secondary location of the
1220
- storage account is available or unavailable. Only available if the SKU name is Standard_GRS or
1221
- Standard_RAGRS. Known values are: "available" and "unavailable".
1222
- :vartype status_of_secondary: str or ~azure.mgmt.storage.v2017_10_01.models.AccountStatus
1223
- :ivar creation_time: Gets the creation date and time of the storage account in UTC.
1224
- :vartype creation_time: ~datetime.datetime
1225
- :ivar custom_domain: Gets the custom domain the user assigned to this storage account.
1226
- :vartype custom_domain: ~azure.mgmt.storage.v2017_10_01.models.CustomDomain
1227
- :ivar secondary_endpoints: Gets the URLs that are used to perform a retrieval of a public blob,
1228
- queue, or table object from the secondary location of the storage account. Only available if
1229
- the SKU name is Standard_RAGRS.
1230
- :vartype secondary_endpoints: ~azure.mgmt.storage.v2017_10_01.models.Endpoints
1231
- :ivar encryption: Gets the encryption settings on the account. If unspecified, the account is
1232
- unencrypted.
1233
- :vartype encryption: ~azure.mgmt.storage.v2017_10_01.models.Encryption
1234
- :ivar access_tier: Required for storage accounts where kind = BlobStorage. The access tier used
1235
- for billing. Known values are: "Hot" and "Cool".
1236
- :vartype access_tier: str or ~azure.mgmt.storage.v2017_10_01.models.AccessTier
1237
- :ivar enable_https_traffic_only: Allows https traffic only to storage service if sets to true.
1238
- :vartype enable_https_traffic_only: bool
1239
- :ivar network_rule_set: Network rule set.
1240
- :vartype network_rule_set: ~azure.mgmt.storage.v2017_10_01.models.NetworkRuleSet
1241
- """
1242
-
1243
- _validation = {
1244
- "id": {"readonly": True},
1245
- "name": {"readonly": True},
1246
- "type": {"readonly": True},
1247
- "sku": {"readonly": True},
1248
- "kind": {"readonly": True},
1249
- "provisioning_state": {"readonly": True},
1250
- "primary_endpoints": {"readonly": True},
1251
- "primary_location": {"readonly": True},
1252
- "status_of_primary": {"readonly": True},
1253
- "last_geo_failover_time": {"readonly": True},
1254
- "secondary_location": {"readonly": True},
1255
- "status_of_secondary": {"readonly": True},
1256
- "creation_time": {"readonly": True},
1257
- "custom_domain": {"readonly": True},
1258
- "secondary_endpoints": {"readonly": True},
1259
- "encryption": {"readonly": True},
1260
- "access_tier": {"readonly": True},
1261
- "network_rule_set": {"readonly": True},
1262
- }
1263
-
1264
- _attribute_map = {
1265
- "id": {"key": "id", "type": "str"},
1266
- "name": {"key": "name", "type": "str"},
1267
- "type": {"key": "type", "type": "str"},
1268
- "location": {"key": "location", "type": "str"},
1269
- "tags": {"key": "tags", "type": "{str}"},
1270
- "sku": {"key": "sku", "type": "Sku"},
1271
- "kind": {"key": "kind", "type": "str"},
1272
- "identity": {"key": "identity", "type": "Identity"},
1273
- "provisioning_state": {"key": "properties.provisioningState", "type": "str"},
1274
- "primary_endpoints": {"key": "properties.primaryEndpoints", "type": "Endpoints"},
1275
- "primary_location": {"key": "properties.primaryLocation", "type": "str"},
1276
- "status_of_primary": {"key": "properties.statusOfPrimary", "type": "str"},
1277
- "last_geo_failover_time": {"key": "properties.lastGeoFailoverTime", "type": "iso-8601"},
1278
- "secondary_location": {"key": "properties.secondaryLocation", "type": "str"},
1279
- "status_of_secondary": {"key": "properties.statusOfSecondary", "type": "str"},
1280
- "creation_time": {"key": "properties.creationTime", "type": "iso-8601"},
1281
- "custom_domain": {"key": "properties.customDomain", "type": "CustomDomain"},
1282
- "secondary_endpoints": {"key": "properties.secondaryEndpoints", "type": "Endpoints"},
1283
- "encryption": {"key": "properties.encryption", "type": "Encryption"},
1284
- "access_tier": {"key": "properties.accessTier", "type": "str"},
1285
- "enable_https_traffic_only": {"key": "properties.supportsHttpsTrafficOnly", "type": "bool"},
1286
- "network_rule_set": {"key": "properties.networkAcls", "type": "NetworkRuleSet"},
1287
- }
1288
-
1289
- def __init__(
1290
- self,
1291
- *,
1292
- location: Optional[str] = None,
1293
- tags: Optional[Dict[str, str]] = None,
1294
- identity: Optional["_models.Identity"] = None,
1295
- enable_https_traffic_only: bool = False,
1296
- **kwargs: Any
1297
- ) -> None:
1298
- """
1299
- :keyword location: Resource location.
1300
- :paramtype location: str
1301
- :keyword tags: Tags assigned to a resource; can be used for viewing and grouping a resource
1302
- (across resource groups).
1303
- :paramtype tags: dict[str, str]
1304
- :keyword identity: The identity of the resource.
1305
- :paramtype identity: ~azure.mgmt.storage.v2017_10_01.models.Identity
1306
- :keyword enable_https_traffic_only: Allows https traffic only to storage service if sets to
1307
- true.
1308
- :paramtype enable_https_traffic_only: bool
1309
- """
1310
- super().__init__(location=location, tags=tags, **kwargs)
1311
- self.sku = None
1312
- self.kind = None
1313
- self.identity = identity
1314
- self.provisioning_state = None
1315
- self.primary_endpoints = None
1316
- self.primary_location = None
1317
- self.status_of_primary = None
1318
- self.last_geo_failover_time = None
1319
- self.secondary_location = None
1320
- self.status_of_secondary = None
1321
- self.creation_time = None
1322
- self.custom_domain = None
1323
- self.secondary_endpoints = None
1324
- self.encryption = None
1325
- self.access_tier = None
1326
- self.enable_https_traffic_only = enable_https_traffic_only
1327
- self.network_rule_set = None
1328
-
1329
-
1330
- class StorageAccountCheckNameAvailabilityParameters(_serialization.Model): # pylint: disable=name-too-long
1331
- """The parameters used to check the availability of the storage account name.
1332
-
1333
- Variables are only populated by the server, and will be ignored when sending a request.
1334
-
1335
- All required parameters must be populated in order to send to server.
1336
-
1337
- :ivar name: The storage account name. Required.
1338
- :vartype name: str
1339
- :ivar type: The type of resource, Microsoft.Storage/storageAccounts. Required. Default value is
1340
- "Microsoft.Storage/storageAccounts".
1341
- :vartype type: str
1342
- """
1343
-
1344
- _validation = {
1345
- "name": {"required": True},
1346
- "type": {"required": True, "constant": True},
1347
- }
1348
-
1349
- _attribute_map = {
1350
- "name": {"key": "name", "type": "str"},
1351
- "type": {"key": "type", "type": "str"},
1352
- }
1353
-
1354
- type = "Microsoft.Storage/storageAccounts"
1355
-
1356
- def __init__(self, *, name: str, **kwargs: Any) -> None:
1357
- """
1358
- :keyword name: The storage account name. Required.
1359
- :paramtype name: str
1360
- """
1361
- super().__init__(**kwargs)
1362
- self.name = name
1363
-
1364
-
1365
- class StorageAccountCreateParameters(_serialization.Model):
1366
- """The parameters used when creating a storage account.
1367
-
1368
- All required parameters must be populated in order to send to server.
1369
-
1370
- :ivar sku: Required. Gets or sets the sku name. Required.
1371
- :vartype sku: ~azure.mgmt.storage.v2017_10_01.models.Sku
1372
- :ivar kind: Required. Indicates the type of storage account. Required. Known values are:
1373
- "Storage", "StorageV2", and "BlobStorage".
1374
- :vartype kind: str or ~azure.mgmt.storage.v2017_10_01.models.Kind
1375
- :ivar location: Required. Gets or sets the location of the resource. This will be one of the
1376
- supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The
1377
- geo region of a resource cannot be changed once it is created, but if an identical geo region
1378
- is specified on update, the request will succeed. Required.
1379
- :vartype location: str
1380
- :ivar tags: Gets or sets a list of key value pairs that describe the resource. These tags can
1381
- be used for viewing and grouping this resource (across resource groups). A maximum of 15 tags
1382
- can be provided for a resource. Each tag must have a key with a length no greater than 128
1383
- characters and a value with a length no greater than 256 characters.
1384
- :vartype tags: dict[str, str]
1385
- :ivar identity: The identity of the resource.
1386
- :vartype identity: ~azure.mgmt.storage.v2017_10_01.models.Identity
1387
- :ivar custom_domain: User domain assigned to the storage account. Name is the CNAME source.
1388
- Only one custom domain is supported per storage account at this time. To clear the existing
1389
- custom domain, use an empty string for the custom domain name property.
1390
- :vartype custom_domain: ~azure.mgmt.storage.v2017_10_01.models.CustomDomain
1391
- :ivar encryption: Provides the encryption settings on the account. If left unspecified the
1392
- account encryption settings will remain the same. The default setting is unencrypted.
1393
- :vartype encryption: ~azure.mgmt.storage.v2017_10_01.models.Encryption
1394
- :ivar network_rule_set: Network rule set.
1395
- :vartype network_rule_set: ~azure.mgmt.storage.v2017_10_01.models.NetworkRuleSet
1396
- :ivar access_tier: Required for storage accounts where kind = BlobStorage. The access tier used
1397
- for billing. Known values are: "Hot" and "Cool".
1398
- :vartype access_tier: str or ~azure.mgmt.storage.v2017_10_01.models.AccessTier
1399
- :ivar enable_https_traffic_only: Allows https traffic only to storage service if sets to true.
1400
- :vartype enable_https_traffic_only: bool
1401
- """
1402
-
1403
- _validation = {
1404
- "sku": {"required": True},
1405
- "kind": {"required": True},
1406
- "location": {"required": True},
1407
- }
1408
-
1409
- _attribute_map = {
1410
- "sku": {"key": "sku", "type": "Sku"},
1411
- "kind": {"key": "kind", "type": "str"},
1412
- "location": {"key": "location", "type": "str"},
1413
- "tags": {"key": "tags", "type": "{str}"},
1414
- "identity": {"key": "identity", "type": "Identity"},
1415
- "custom_domain": {"key": "properties.customDomain", "type": "CustomDomain"},
1416
- "encryption": {"key": "properties.encryption", "type": "Encryption"},
1417
- "network_rule_set": {"key": "properties.networkAcls", "type": "NetworkRuleSet"},
1418
- "access_tier": {"key": "properties.accessTier", "type": "str"},
1419
- "enable_https_traffic_only": {"key": "properties.supportsHttpsTrafficOnly", "type": "bool"},
1420
- }
1421
-
1422
- def __init__(
1423
- self,
1424
- *,
1425
- sku: "_models.Sku",
1426
- kind: Union[str, "_models.Kind"],
1427
- location: str,
1428
- tags: Optional[Dict[str, str]] = None,
1429
- identity: Optional["_models.Identity"] = None,
1430
- custom_domain: Optional["_models.CustomDomain"] = None,
1431
- encryption: Optional["_models.Encryption"] = None,
1432
- network_rule_set: Optional["_models.NetworkRuleSet"] = None,
1433
- access_tier: Optional[Union[str, "_models.AccessTier"]] = None,
1434
- enable_https_traffic_only: bool = False,
1435
- **kwargs: Any
1436
- ) -> None:
1437
- """
1438
- :keyword sku: Required. Gets or sets the sku name. Required.
1439
- :paramtype sku: ~azure.mgmt.storage.v2017_10_01.models.Sku
1440
- :keyword kind: Required. Indicates the type of storage account. Required. Known values are:
1441
- "Storage", "StorageV2", and "BlobStorage".
1442
- :paramtype kind: str or ~azure.mgmt.storage.v2017_10_01.models.Kind
1443
- :keyword location: Required. Gets or sets the location of the resource. This will be one of the
1444
- supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The
1445
- geo region of a resource cannot be changed once it is created, but if an identical geo region
1446
- is specified on update, the request will succeed. Required.
1447
- :paramtype location: str
1448
- :keyword tags: Gets or sets a list of key value pairs that describe the resource. These tags
1449
- can be used for viewing and grouping this resource (across resource groups). A maximum of 15
1450
- tags can be provided for a resource. Each tag must have a key with a length no greater than 128
1451
- characters and a value with a length no greater than 256 characters.
1452
- :paramtype tags: dict[str, str]
1453
- :keyword identity: The identity of the resource.
1454
- :paramtype identity: ~azure.mgmt.storage.v2017_10_01.models.Identity
1455
- :keyword custom_domain: User domain assigned to the storage account. Name is the CNAME source.
1456
- Only one custom domain is supported per storage account at this time. To clear the existing
1457
- custom domain, use an empty string for the custom domain name property.
1458
- :paramtype custom_domain: ~azure.mgmt.storage.v2017_10_01.models.CustomDomain
1459
- :keyword encryption: Provides the encryption settings on the account. If left unspecified the
1460
- account encryption settings will remain the same. The default setting is unencrypted.
1461
- :paramtype encryption: ~azure.mgmt.storage.v2017_10_01.models.Encryption
1462
- :keyword network_rule_set: Network rule set.
1463
- :paramtype network_rule_set: ~azure.mgmt.storage.v2017_10_01.models.NetworkRuleSet
1464
- :keyword access_tier: Required for storage accounts where kind = BlobStorage. The access tier
1465
- used for billing. Known values are: "Hot" and "Cool".
1466
- :paramtype access_tier: str or ~azure.mgmt.storage.v2017_10_01.models.AccessTier
1467
- :keyword enable_https_traffic_only: Allows https traffic only to storage service if sets to
1468
- true.
1469
- :paramtype enable_https_traffic_only: bool
1470
- """
1471
- super().__init__(**kwargs)
1472
- self.sku = sku
1473
- self.kind = kind
1474
- self.location = location
1475
- self.tags = tags
1476
- self.identity = identity
1477
- self.custom_domain = custom_domain
1478
- self.encryption = encryption
1479
- self.network_rule_set = network_rule_set
1480
- self.access_tier = access_tier
1481
- self.enable_https_traffic_only = enable_https_traffic_only
1482
-
1483
-
1484
- class StorageAccountKey(_serialization.Model):
1485
- """An access key for the storage account.
1486
-
1487
- Variables are only populated by the server, and will be ignored when sending a request.
1488
-
1489
- :ivar key_name: Name of the key.
1490
- :vartype key_name: str
1491
- :ivar value: Base 64-encoded value of the key.
1492
- :vartype value: str
1493
- :ivar permissions: Permissions for the key -- read-only or full permissions. Known values are:
1494
- "Read" and "Full".
1495
- :vartype permissions: str or ~azure.mgmt.storage.v2017_10_01.models.KeyPermission
1496
- """
1497
-
1498
- _validation = {
1499
- "key_name": {"readonly": True},
1500
- "value": {"readonly": True},
1501
- "permissions": {"readonly": True},
1502
- }
1503
-
1504
- _attribute_map = {
1505
- "key_name": {"key": "keyName", "type": "str"},
1506
- "value": {"key": "value", "type": "str"},
1507
- "permissions": {"key": "permissions", "type": "str"},
1508
- }
1509
-
1510
- def __init__(self, **kwargs: Any) -> None:
1511
- """ """
1512
- super().__init__(**kwargs)
1513
- self.key_name = None
1514
- self.value = None
1515
- self.permissions = None
1516
-
1517
-
1518
- class StorageAccountListKeysResult(_serialization.Model):
1519
- """The response from the ListKeys operation.
1520
-
1521
- Variables are only populated by the server, and will be ignored when sending a request.
1522
-
1523
- :ivar keys: Gets the list of storage account keys and their properties for the specified
1524
- storage account.
1525
- :vartype keys: list[~azure.mgmt.storage.v2017_10_01.models.StorageAccountKey]
1526
- """
1527
-
1528
- _validation = {
1529
- "keys": {"readonly": True},
1530
- }
1531
-
1532
- _attribute_map = {
1533
- "keys": {"key": "keys", "type": "[StorageAccountKey]"},
1534
- }
1535
-
1536
- def __init__(self, **kwargs: Any) -> None:
1537
- """ """
1538
- super().__init__(**kwargs)
1539
- self.keys = None
1540
-
1541
-
1542
- class StorageAccountListResult(_serialization.Model):
1543
- """The response from the List Storage Accounts operation.
1544
-
1545
- Variables are only populated by the server, and will be ignored when sending a request.
1546
-
1547
- :ivar value: Gets the list of storage accounts and their properties.
1548
- :vartype value: list[~azure.mgmt.storage.v2017_10_01.models.StorageAccount]
1549
- """
1550
-
1551
- _validation = {
1552
- "value": {"readonly": True},
1553
- }
1554
-
1555
- _attribute_map = {
1556
- "value": {"key": "value", "type": "[StorageAccount]"},
1557
- }
1558
-
1559
- def __init__(self, **kwargs: Any) -> None:
1560
- """ """
1561
- super().__init__(**kwargs)
1562
- self.value = None
1563
-
1564
-
1565
- class StorageAccountRegenerateKeyParameters(_serialization.Model):
1566
- """The parameters used to regenerate the storage account key.
1567
-
1568
- All required parameters must be populated in order to send to server.
1569
-
1570
- :ivar key_name: The name of storage keys that want to be regenerated, possible values are key1,
1571
- key2. Required.
1572
- :vartype key_name: str
1573
- """
1574
-
1575
- _validation = {
1576
- "key_name": {"required": True},
1577
- }
1578
-
1579
- _attribute_map = {
1580
- "key_name": {"key": "keyName", "type": "str"},
1581
- }
1582
-
1583
- def __init__(self, *, key_name: str, **kwargs: Any) -> None:
1584
- """
1585
- :keyword key_name: The name of storage keys that want to be regenerated, possible values are
1586
- key1, key2. Required.
1587
- :paramtype key_name: str
1588
- """
1589
- super().__init__(**kwargs)
1590
- self.key_name = key_name
1591
-
1592
-
1593
- class StorageAccountUpdateParameters(_serialization.Model):
1594
- """The parameters that can be provided when updating the storage account properties.
1595
-
1596
- :ivar sku: Gets or sets the SKU name. Note that the SKU name cannot be updated to Standard_ZRS
1597
- or Premium_LRS, nor can accounts of those sku names be updated to any other value.
1598
- :vartype sku: ~azure.mgmt.storage.v2017_10_01.models.Sku
1599
- :ivar tags: Gets or sets a list of key value pairs that describe the resource. These tags can
1600
- be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags
1601
- can be provided for a resource. Each tag must have a key no greater in length than 128
1602
- characters and a value no greater in length than 256 characters.
1603
- :vartype tags: dict[str, str]
1604
- :ivar identity: The identity of the resource.
1605
- :vartype identity: ~azure.mgmt.storage.v2017_10_01.models.Identity
1606
- :ivar kind: Optional. Indicates the type of storage account. Currently only StorageV2 value
1607
- supported by server. Known values are: "Storage", "StorageV2", and "BlobStorage".
1608
- :vartype kind: str or ~azure.mgmt.storage.v2017_10_01.models.Kind
1609
- :ivar custom_domain: Custom domain assigned to the storage account by the user. Name is the
1610
- CNAME source. Only one custom domain is supported per storage account at this time. To clear
1611
- the existing custom domain, use an empty string for the custom domain name property.
1612
- :vartype custom_domain: ~azure.mgmt.storage.v2017_10_01.models.CustomDomain
1613
- :ivar encryption: Provides the encryption settings on the account. The default setting is
1614
- unencrypted.
1615
- :vartype encryption: ~azure.mgmt.storage.v2017_10_01.models.Encryption
1616
- :ivar access_tier: Required for storage accounts where kind = BlobStorage. The access tier used
1617
- for billing. Known values are: "Hot" and "Cool".
1618
- :vartype access_tier: str or ~azure.mgmt.storage.v2017_10_01.models.AccessTier
1619
- :ivar enable_https_traffic_only: Allows https traffic only to storage service if sets to true.
1620
- :vartype enable_https_traffic_only: bool
1621
- :ivar network_rule_set: Network rule set.
1622
- :vartype network_rule_set: ~azure.mgmt.storage.v2017_10_01.models.NetworkRuleSet
1623
- """
1624
-
1625
- _attribute_map = {
1626
- "sku": {"key": "sku", "type": "Sku"},
1627
- "tags": {"key": "tags", "type": "{str}"},
1628
- "identity": {"key": "identity", "type": "Identity"},
1629
- "kind": {"key": "kind", "type": "str"},
1630
- "custom_domain": {"key": "properties.customDomain", "type": "CustomDomain"},
1631
- "encryption": {"key": "properties.encryption", "type": "Encryption"},
1632
- "access_tier": {"key": "properties.accessTier", "type": "str"},
1633
- "enable_https_traffic_only": {"key": "properties.supportsHttpsTrafficOnly", "type": "bool"},
1634
- "network_rule_set": {"key": "properties.networkAcls", "type": "NetworkRuleSet"},
1635
- }
1636
-
1637
- def __init__(
1638
- self,
1639
- *,
1640
- sku: Optional["_models.Sku"] = None,
1641
- tags: Optional[Dict[str, str]] = None,
1642
- identity: Optional["_models.Identity"] = None,
1643
- kind: Optional[Union[str, "_models.Kind"]] = None,
1644
- custom_domain: Optional["_models.CustomDomain"] = None,
1645
- encryption: Optional["_models.Encryption"] = None,
1646
- access_tier: Optional[Union[str, "_models.AccessTier"]] = None,
1647
- enable_https_traffic_only: bool = False,
1648
- network_rule_set: Optional["_models.NetworkRuleSet"] = None,
1649
- **kwargs: Any
1650
- ) -> None:
1651
- """
1652
- :keyword sku: Gets or sets the SKU name. Note that the SKU name cannot be updated to
1653
- Standard_ZRS or Premium_LRS, nor can accounts of those sku names be updated to any other value.
1654
- :paramtype sku: ~azure.mgmt.storage.v2017_10_01.models.Sku
1655
- :keyword tags: Gets or sets a list of key value pairs that describe the resource. These tags
1656
- can be used in viewing and grouping this resource (across resource groups). A maximum of 15
1657
- tags can be provided for a resource. Each tag must have a key no greater in length than 128
1658
- characters and a value no greater in length than 256 characters.
1659
- :paramtype tags: dict[str, str]
1660
- :keyword identity: The identity of the resource.
1661
- :paramtype identity: ~azure.mgmt.storage.v2017_10_01.models.Identity
1662
- :keyword kind: Optional. Indicates the type of storage account. Currently only StorageV2 value
1663
- supported by server. Known values are: "Storage", "StorageV2", and "BlobStorage".
1664
- :paramtype kind: str or ~azure.mgmt.storage.v2017_10_01.models.Kind
1665
- :keyword custom_domain: Custom domain assigned to the storage account by the user. Name is the
1666
- CNAME source. Only one custom domain is supported per storage account at this time. To clear
1667
- the existing custom domain, use an empty string for the custom domain name property.
1668
- :paramtype custom_domain: ~azure.mgmt.storage.v2017_10_01.models.CustomDomain
1669
- :keyword encryption: Provides the encryption settings on the account. The default setting is
1670
- unencrypted.
1671
- :paramtype encryption: ~azure.mgmt.storage.v2017_10_01.models.Encryption
1672
- :keyword access_tier: Required for storage accounts where kind = BlobStorage. The access tier
1673
- used for billing. Known values are: "Hot" and "Cool".
1674
- :paramtype access_tier: str or ~azure.mgmt.storage.v2017_10_01.models.AccessTier
1675
- :keyword enable_https_traffic_only: Allows https traffic only to storage service if sets to
1676
- true.
1677
- :paramtype enable_https_traffic_only: bool
1678
- :keyword network_rule_set: Network rule set.
1679
- :paramtype network_rule_set: ~azure.mgmt.storage.v2017_10_01.models.NetworkRuleSet
1680
- """
1681
- super().__init__(**kwargs)
1682
- self.sku = sku
1683
- self.tags = tags
1684
- self.identity = identity
1685
- self.kind = kind
1686
- self.custom_domain = custom_domain
1687
- self.encryption = encryption
1688
- self.access_tier = access_tier
1689
- self.enable_https_traffic_only = enable_https_traffic_only
1690
- self.network_rule_set = network_rule_set
1691
-
1692
-
1693
- class StorageSkuListResult(_serialization.Model):
1694
- """The response from the List Storage SKUs operation.
1695
-
1696
- Variables are only populated by the server, and will be ignored when sending a request.
1697
-
1698
- :ivar value: Get the list result of storage SKUs and their properties.
1699
- :vartype value: list[~azure.mgmt.storage.v2017_10_01.models.Sku]
1700
- """
1701
-
1702
- _validation = {
1703
- "value": {"readonly": True},
1704
- }
1705
-
1706
- _attribute_map = {
1707
- "value": {"key": "value", "type": "[Sku]"},
1708
- }
1709
-
1710
- def __init__(self, **kwargs: Any) -> None:
1711
- """ """
1712
- super().__init__(**kwargs)
1713
- self.value = None
1714
-
1715
-
1716
- class Usage(_serialization.Model):
1717
- """Describes Storage Resource Usage.
1718
-
1719
- Variables are only populated by the server, and will be ignored when sending a request.
1720
-
1721
- :ivar unit: Gets the unit of measurement. Known values are: "Count", "Bytes", "Seconds",
1722
- "Percent", "CountsPerSecond", and "BytesPerSecond".
1723
- :vartype unit: str or ~azure.mgmt.storage.v2017_10_01.models.UsageUnit
1724
- :ivar current_value: Gets the current count of the allocated resources in the subscription.
1725
- :vartype current_value: int
1726
- :ivar limit: Gets the maximum count of the resources that can be allocated in the subscription.
1727
- :vartype limit: int
1728
- :ivar name: Gets the name of the type of usage.
1729
- :vartype name: ~azure.mgmt.storage.v2017_10_01.models.UsageName
1730
- """
1731
-
1732
- _validation = {
1733
- "unit": {"readonly": True},
1734
- "current_value": {"readonly": True},
1735
- "limit": {"readonly": True},
1736
- "name": {"readonly": True},
1737
- }
1738
-
1739
- _attribute_map = {
1740
- "unit": {"key": "unit", "type": "str"},
1741
- "current_value": {"key": "currentValue", "type": "int"},
1742
- "limit": {"key": "limit", "type": "int"},
1743
- "name": {"key": "name", "type": "UsageName"},
1744
- }
1745
-
1746
- def __init__(self, **kwargs: Any) -> None:
1747
- """ """
1748
- super().__init__(**kwargs)
1749
- self.unit = None
1750
- self.current_value = None
1751
- self.limit = None
1752
- self.name = None
1753
-
1754
-
1755
- class UsageListResult(_serialization.Model):
1756
- """The response from the List Usages operation.
1757
-
1758
- :ivar value: Gets or sets the list of Storage Resource Usages.
1759
- :vartype value: list[~azure.mgmt.storage.v2017_10_01.models.Usage]
1760
- """
1761
-
1762
- _attribute_map = {
1763
- "value": {"key": "value", "type": "[Usage]"},
1764
- }
1765
-
1766
- def __init__(self, *, value: Optional[List["_models.Usage"]] = None, **kwargs: Any) -> None:
1767
- """
1768
- :keyword value: Gets or sets the list of Storage Resource Usages.
1769
- :paramtype value: list[~azure.mgmt.storage.v2017_10_01.models.Usage]
1770
- """
1771
- super().__init__(**kwargs)
1772
- self.value = value
1773
-
1774
-
1775
- class UsageName(_serialization.Model):
1776
- """The usage names that can be used; currently limited to StorageAccount.
1777
-
1778
- Variables are only populated by the server, and will be ignored when sending a request.
1779
-
1780
- :ivar value: Gets a string describing the resource name.
1781
- :vartype value: str
1782
- :ivar localized_value: Gets a localized string describing the resource name.
1783
- :vartype localized_value: str
1784
- """
1785
-
1786
- _validation = {
1787
- "value": {"readonly": True},
1788
- "localized_value": {"readonly": True},
1789
- }
1790
-
1791
- _attribute_map = {
1792
- "value": {"key": "value", "type": "str"},
1793
- "localized_value": {"key": "localizedValue", "type": "str"},
1794
- }
1795
-
1796
- def __init__(self, **kwargs: Any) -> None:
1797
- """ """
1798
- super().__init__(**kwargs)
1799
- self.value = None
1800
- self.localized_value = None
1801
-
1802
-
1803
- class VirtualNetworkRule(_serialization.Model):
1804
- """Virtual Network rule.
1805
-
1806
- All required parameters must be populated in order to send to server.
1807
-
1808
- :ivar virtual_network_resource_id: Resource ID of a subnet, for example:
1809
- /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. # pylint: disable=line-too-long
1810
- Required.
1811
- :vartype virtual_network_resource_id: str
1812
- :ivar action: The action of virtual network rule. Default value is "Allow".
1813
- :vartype action: str
1814
- :ivar state: Gets the state of virtual network rule. Known values are: "provisioning",
1815
- "deprovisioning", "succeeded", "failed", and "networkSourceDeleted".
1816
- :vartype state: str or ~azure.mgmt.storage.v2017_10_01.models.State
1817
- """
1818
-
1819
- _validation = {
1820
- "virtual_network_resource_id": {"required": True},
1821
- }
1822
-
1823
- _attribute_map = {
1824
- "virtual_network_resource_id": {"key": "id", "type": "str"},
1825
- "action": {"key": "action", "type": "str"},
1826
- "state": {"key": "state", "type": "str"},
1827
- }
1828
-
1829
- def __init__(
1830
- self,
1831
- *,
1832
- virtual_network_resource_id: str,
1833
- action: Optional[Literal["Allow"]] = None,
1834
- state: Optional[Union[str, "_models.State"]] = None,
1835
- **kwargs: Any
1836
- ) -> None:
1837
- """
1838
- :keyword virtual_network_resource_id: Resource ID of a subnet, for example:
1839
- /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. # pylint: disable=line-too-long
1840
- Required.
1841
- :paramtype virtual_network_resource_id: str
1842
- :keyword action: The action of virtual network rule. Default value is "Allow".
1843
- :paramtype action: str
1844
- :keyword state: Gets the state of virtual network rule. Known values are: "provisioning",
1845
- "deprovisioning", "succeeded", "failed", and "networkSourceDeleted".
1846
- :paramtype state: str or ~azure.mgmt.storage.v2017_10_01.models.State
1847
- """
1848
- super().__init__(**kwargs)
1849
- self.virtual_network_resource_id = virtual_network_resource_id
1850
- self.action = action
1851
- self.state = state