azure-mgmt-storage 22.2.0__py3-none-any.whl → 23.0.0__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 +66 -69
  14. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_blob_inventory_policies_operations.py +26 -34
  15. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_blob_services_operations.py +20 -22
  16. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_deleted_accounts_operations.py +14 -17
  17. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_encryption_scopes_operations.py +27 -30
  18. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_file_services_operations.py +24 -27
  19. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_file_shares_operations.py +36 -39
  20. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_local_users_operations.py +26 -29
  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 +16 -19
  23. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_object_replication_policies_operations.py +21 -23
  24. azure/mgmt/storage/{v2017_10_01/aio → aio}/operations/_operations.py +12 -15
  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 +21 -23
  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 +27 -30
  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 +12 -15
  31. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_storage_accounts_operations.py +80 -95
  32. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_storage_task_assignment_instances_report_operations.py +13 -15
  33. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_storage_task_assignments_instances_report_operations.py +13 -15
  34. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_storage_task_assignments_operations.py +30 -39
  35. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_table_operations.py +27 -29
  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 +12 -14
  38. azure/mgmt/storage/{v2024_01_01/models → models}/_models_py3.py +855 -910
  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 +81 -84
  42. azure/mgmt/storage/{v2024_01_01/operations → operations}/_blob_inventory_policies_operations.py +31 -39
  43. azure/mgmt/storage/{v2024_01_01/operations → operations}/_blob_services_operations.py +24 -27
  44. azure/mgmt/storage/{v2024_01_01/operations → operations}/_deleted_accounts_operations.py +16 -18
  45. azure/mgmt/storage/{v2024_01_01/operations → operations}/_encryption_scopes_operations.py +32 -34
  46. azure/mgmt/storage/{v2024_01_01/operations → operations}/_file_services_operations.py +30 -32
  47. azure/mgmt/storage/{v2024_01_01/operations → operations}/_file_shares_operations.py +44 -47
  48. azure/mgmt/storage/{v2024_01_01/operations → operations}/_local_users_operations.py +33 -35
  49. azure/mgmt/storage/{v2024_01_01/operations → operations}/_management_policies_operations.py +27 -34
  50. azure/mgmt/storage/{v2024_01_01/operations → operations}/_network_security_perimeter_configurations_operations.py +20 -22
  51. azure/mgmt/storage/{v2024_01_01/operations → operations}/_object_replication_policies_operations.py +26 -29
  52. azure/mgmt/storage/{v2024_01_01/operations → operations}/_operations.py +12 -15
  53. azure/mgmt/storage/operations/_patch.py +21 -0
  54. azure/mgmt/storage/{v2024_01_01/operations → operations}/_private_endpoint_connections_operations.py +26 -29
  55. azure/mgmt/storage/{v2024_01_01/operations → operations}/_private_link_resources_operations.py +13 -15
  56. azure/mgmt/storage/{v2024_01_01/operations → operations}/_queue_operations.py +33 -35
  57. azure/mgmt/storage/{v2024_01_01/operations → operations}/_queue_services_operations.py +23 -25
  58. azure/mgmt/storage/{v2024_01_01/operations → operations}/_skus_operations.py +12 -15
  59. azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_accounts_operations.py +97 -105
  60. azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_task_assignment_instances_report_operations.py +14 -18
  61. azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_task_assignments_instances_report_operations.py +14 -18
  62. azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_task_assignments_operations.py +36 -47
  63. azure/mgmt/storage/{v2024_01_01/operations → operations}/_table_operations.py +33 -35
  64. azure/mgmt/storage/{v2024_01_01/operations → operations}/_table_services_operations.py +23 -25
  65. azure/mgmt/storage/{v2024_01_01/operations → operations}/_usages_operations.py +13 -16
  66. {azure_mgmt_storage-22.2.0.dist-info → azure_mgmt_storage-23.0.0.dist-info}/METADATA +11 -6
  67. azure_mgmt_storage-23.0.0.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.0.dist-info}/LICENSE +0 -0
  183. {azure_mgmt_storage-22.2.0.dist-info → azure_mgmt_storage-23.0.0.dist-info}/WHEEL +0 -0
  184. {azure_mgmt_storage-22.2.0.dist-info → azure_mgmt_storage-23.0.0.dist-info}/top_level.txt +0 -0
@@ -1,157 +0,0 @@
1
- # coding=utf-8
2
- # --------------------------------------------------------------------------
3
- # Copyright (c) Microsoft Corporation. All rights reserved.
4
- # Licensed under the MIT License. See License.txt in the project root for license information.
5
- # Code generated by Microsoft (R) AutoRest Code Generator.
6
- # Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- # --------------------------------------------------------------------------
8
- import sys
9
- from typing import Any, Callable, Dict, Iterable, Optional, TypeVar
10
- import urllib.parse
11
-
12
- from azure.core.exceptions import (
13
- ClientAuthenticationError,
14
- HttpResponseError,
15
- ResourceExistsError,
16
- ResourceNotFoundError,
17
- ResourceNotModifiedError,
18
- map_error,
19
- )
20
- from azure.core.paging import ItemPaged
21
- from azure.core.pipeline import PipelineResponse
22
- from azure.core.rest import HttpRequest, HttpResponse
23
- from azure.core.tracing.decorator import distributed_trace
24
- from azure.core.utils import case_insensitive_dict
25
- from azure.mgmt.core.exceptions import ARMErrorFormat
26
-
27
- from .. import models as _models
28
- from ..._serialization import Serializer
29
-
30
- if sys.version_info >= (3, 9):
31
- from collections.abc import MutableMapping
32
- else:
33
- from typing import MutableMapping # type: ignore
34
- T = TypeVar("T")
35
- ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
36
-
37
- _SERIALIZER = Serializer()
38
- _SERIALIZER.client_side_validation = False
39
-
40
-
41
- def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest:
42
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
43
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
44
-
45
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2017-10-01"))
46
- accept = _headers.pop("Accept", "application/json, text/json")
47
-
48
- # Construct URL
49
- _url = kwargs.pop("template_url", "/subscriptions/{subscriptionId}/providers/Microsoft.Storage/usages")
50
- path_format_arguments = {
51
- "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"),
52
- }
53
-
54
- _url: str = _url.format(**path_format_arguments) # type: ignore
55
-
56
- # Construct parameters
57
- _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
58
-
59
- # Construct headers
60
- _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
61
-
62
- return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
63
-
64
-
65
- class UsageOperations:
66
- """
67
- .. warning::
68
- **DO NOT** instantiate this class directly.
69
-
70
- Instead, you should access the following operations through
71
- :class:`~azure.mgmt.storage.v2017_10_01.StorageManagement`'s
72
- :attr:`usage` attribute.
73
- """
74
-
75
- models = _models
76
-
77
- def __init__(self, *args, **kwargs):
78
- input_args = list(args)
79
- self._client = input_args.pop(0) if input_args else kwargs.pop("client")
80
- self._config = input_args.pop(0) if input_args else kwargs.pop("config")
81
- self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
82
- self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
83
- self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
84
-
85
- @distributed_trace
86
- def list(self, **kwargs: Any) -> Iterable["_models.Usage"]:
87
- """Gets the current usage count and the limit for the resources under the subscription.
88
-
89
- :return: An iterator like instance of either Usage or the result of cls(response)
90
- :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2017_10_01.models.Usage]
91
- :raises ~azure.core.exceptions.HttpResponseError:
92
- """
93
- _headers = kwargs.pop("headers", {}) or {}
94
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
95
-
96
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2017-10-01"))
97
- cls: ClsType[_models.UsageListResult] = kwargs.pop("cls", None)
98
-
99
- error_map: MutableMapping = {
100
- 401: ClientAuthenticationError,
101
- 404: ResourceNotFoundError,
102
- 409: ResourceExistsError,
103
- 304: ResourceNotModifiedError,
104
- }
105
- error_map.update(kwargs.pop("error_map", {}) or {})
106
-
107
- def prepare_request(next_link=None):
108
- if not next_link:
109
-
110
- _request = build_list_request(
111
- subscription_id=self._config.subscription_id,
112
- api_version=api_version,
113
- headers=_headers,
114
- params=_params,
115
- )
116
- _request.url = self._client.format_url(_request.url)
117
-
118
- else:
119
- # make call to next link with the client's api-version
120
- _parsed_next_link = urllib.parse.urlparse(next_link)
121
- _next_request_params = case_insensitive_dict(
122
- {
123
- key: [urllib.parse.quote(v) for v in value]
124
- for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
125
- }
126
- )
127
- _next_request_params["api-version"] = self._api_version
128
- _request = HttpRequest(
129
- "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
130
- )
131
- _request.url = self._client.format_url(_request.url)
132
- _request.method = "GET"
133
- return _request
134
-
135
- def extract_data(pipeline_response):
136
- deserialized = self._deserialize("UsageListResult", pipeline_response)
137
- list_of_elem = deserialized.value
138
- if cls:
139
- list_of_elem = cls(list_of_elem) # type: ignore
140
- return None, iter(list_of_elem)
141
-
142
- def get_next(next_link=None):
143
- _request = prepare_request(next_link)
144
-
145
- _stream = False
146
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
147
- _request, stream=_stream, **kwargs
148
- )
149
- response = pipeline_response.http_response
150
-
151
- if response.status_code not in [200]:
152
- map_error(status_code=response.status_code, response=response, error_map=error_map)
153
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
154
-
155
- return pipeline_response
156
-
157
- return ItemPaged(get_next, extract_data)
@@ -1 +0,0 @@
1
- # Marker file for PEP 561.
@@ -1,32 +0,0 @@
1
- # coding=utf-8
2
- # --------------------------------------------------------------------------
3
- # Copyright (c) Microsoft Corporation. All rights reserved.
4
- # Licensed under the MIT License. See License.txt in the project root for license information.
5
- # Code generated by Microsoft (R) AutoRest Code Generator.
6
- # Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- # --------------------------------------------------------------------------
8
- # pylint: disable=wrong-import-position
9
-
10
- from typing import TYPE_CHECKING
11
-
12
- if TYPE_CHECKING:
13
- from ._patch import * # pylint: disable=unused-wildcard-import
14
-
15
- from ._storage_management_client import StorageManagementClient # type: ignore
16
- from ._version import VERSION
17
-
18
- __version__ = VERSION
19
-
20
- try:
21
- from ._patch import __all__ as _patch_all
22
- from ._patch import *
23
- except ImportError:
24
- _patch_all = []
25
- from ._patch import patch_sdk as _patch_sdk
26
-
27
- __all__ = [
28
- "StorageManagementClient",
29
- ]
30
- __all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
31
-
32
- _patch_sdk()
@@ -1,64 +0,0 @@
1
- # coding=utf-8
2
- # --------------------------------------------------------------------------
3
- # Copyright (c) Microsoft Corporation. All rights reserved.
4
- # Licensed under the MIT License. See License.txt in the project root for license information.
5
- # Code generated by Microsoft (R) AutoRest Code Generator.
6
- # Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- # --------------------------------------------------------------------------
8
-
9
- from typing import Any, TYPE_CHECKING
10
-
11
- from azure.core.pipeline import policies
12
- from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy
13
-
14
- from ._version import VERSION
15
-
16
- if TYPE_CHECKING:
17
- from azure.core.credentials import TokenCredential
18
-
19
-
20
- class StorageManagementClientConfiguration: # pylint: disable=too-many-instance-attributes
21
- """Configuration for StorageManagementClient.
22
-
23
- Note that all parameters used to create this instance are saved as instance
24
- attributes.
25
-
26
- :param credential: Credential needed for the client to connect to Azure. Required.
27
- :type credential: ~azure.core.credentials.TokenCredential
28
- :param subscription_id: The ID of the target subscription. Required.
29
- :type subscription_id: str
30
- :keyword api_version: Api Version. Default value is "2019-06-01". Note that overriding this
31
- default value may result in unsupported behavior.
32
- :paramtype api_version: str
33
- """
34
-
35
- def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
36
- api_version: str = kwargs.pop("api_version", "2019-06-01")
37
-
38
- if credential is None:
39
- raise ValueError("Parameter 'credential' must not be None.")
40
- if subscription_id is None:
41
- raise ValueError("Parameter 'subscription_id' must not be None.")
42
-
43
- self.credential = credential
44
- self.subscription_id = subscription_id
45
- self.api_version = api_version
46
- self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
47
- kwargs.setdefault("sdk_moniker", "mgmt-storage/{}".format(VERSION))
48
- self.polling_interval = kwargs.get("polling_interval", 30)
49
- self._configure(**kwargs)
50
-
51
- def _configure(self, **kwargs: Any) -> None:
52
- self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs)
53
- self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs)
54
- self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs)
55
- self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs)
56
- self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs)
57
- self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs)
58
- self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs)
59
- self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs)
60
- self.authentication_policy = kwargs.get("authentication_policy")
61
- if self.credential and not self.authentication_policy:
62
- self.authentication_policy = ARMChallengeAuthenticationPolicy(
63
- self.credential, *self.credential_scopes, **kwargs
64
- )
@@ -1,32 +0,0 @@
1
- # coding=utf-8
2
- # --------------------------------------------------------------------------
3
- #
4
- # Copyright (c) Microsoft Corporation. All rights reserved.
5
- #
6
- # The MIT License (MIT)
7
- #
8
- # Permission is hereby granted, free of charge, to any person obtaining a copy
9
- # of this software and associated documentation files (the ""Software""), to
10
- # deal in the Software without restriction, including without limitation the
11
- # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
12
- # sell copies of the Software, and to permit persons to whom the Software is
13
- # furnished to do so, subject to the following conditions:
14
- #
15
- # The above copyright notice and this permission notice shall be included in
16
- # all copies or substantial portions of the Software.
17
- #
18
- # THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23
- # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
24
- # IN THE SOFTWARE.
25
- #
26
- # --------------------------------------------------------------------------
27
-
28
-
29
- # This file is used for handwritten extensions to the generated code. Example:
30
- # https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
31
- def patch_sdk():
32
- pass
@@ -1,213 +0,0 @@
1
- # coding=utf-8
2
- # --------------------------------------------------------------------------
3
- # Copyright (c) Microsoft Corporation. All rights reserved.
4
- # Licensed under the MIT License. See License.txt in the project root for license information.
5
- # Code generated by Microsoft (R) AutoRest Code Generator.
6
- # Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- # --------------------------------------------------------------------------
8
-
9
- from copy import deepcopy
10
- from typing import Any, TYPE_CHECKING
11
- from typing_extensions import Self
12
-
13
- from azure.core.pipeline import policies
14
- from azure.core.rest import HttpRequest, HttpResponse
15
- from azure.mgmt.core import ARMPipelineClient
16
- from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy
17
-
18
- from . import models as _models
19
- from .._serialization import Deserializer, Serializer
20
- from ._configuration import StorageManagementClientConfiguration
21
- from .operations import (
22
- BlobContainersOperations,
23
- BlobInventoryPoliciesOperations,
24
- BlobServicesOperations,
25
- EncryptionScopesOperations,
26
- FileServicesOperations,
27
- FileSharesOperations,
28
- ManagementPoliciesOperations,
29
- ObjectReplicationPoliciesOperations,
30
- Operations,
31
- PrivateEndpointConnectionsOperations,
32
- PrivateLinkResourcesOperations,
33
- QueueOperations,
34
- QueueServicesOperations,
35
- SkusOperations,
36
- StorageAccountsOperations,
37
- TableOperations,
38
- TableServicesOperations,
39
- UsagesOperations,
40
- )
41
-
42
- if TYPE_CHECKING:
43
- from azure.core.credentials import TokenCredential
44
-
45
-
46
- class StorageManagementClient: # pylint: disable=too-many-instance-attributes
47
- """The Azure Storage Management API.
48
-
49
- :ivar operations: Operations operations
50
- :vartype operations: azure.mgmt.storage.v2019_06_01.operations.Operations
51
- :ivar skus: SkusOperations operations
52
- :vartype skus: azure.mgmt.storage.v2019_06_01.operations.SkusOperations
53
- :ivar storage_accounts: StorageAccountsOperations operations
54
- :vartype storage_accounts: azure.mgmt.storage.v2019_06_01.operations.StorageAccountsOperations
55
- :ivar usages: UsagesOperations operations
56
- :vartype usages: azure.mgmt.storage.v2019_06_01.operations.UsagesOperations
57
- :ivar management_policies: ManagementPoliciesOperations operations
58
- :vartype management_policies:
59
- azure.mgmt.storage.v2019_06_01.operations.ManagementPoliciesOperations
60
- :ivar blob_inventory_policies: BlobInventoryPoliciesOperations operations
61
- :vartype blob_inventory_policies:
62
- azure.mgmt.storage.v2019_06_01.operations.BlobInventoryPoliciesOperations
63
- :ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
64
- :vartype private_endpoint_connections:
65
- azure.mgmt.storage.v2019_06_01.operations.PrivateEndpointConnectionsOperations
66
- :ivar private_link_resources: PrivateLinkResourcesOperations operations
67
- :vartype private_link_resources:
68
- azure.mgmt.storage.v2019_06_01.operations.PrivateLinkResourcesOperations
69
- :ivar object_replication_policies: ObjectReplicationPoliciesOperations operations
70
- :vartype object_replication_policies:
71
- azure.mgmt.storage.v2019_06_01.operations.ObjectReplicationPoliciesOperations
72
- :ivar encryption_scopes: EncryptionScopesOperations operations
73
- :vartype encryption_scopes:
74
- azure.mgmt.storage.v2019_06_01.operations.EncryptionScopesOperations
75
- :ivar blob_services: BlobServicesOperations operations
76
- :vartype blob_services: azure.mgmt.storage.v2019_06_01.operations.BlobServicesOperations
77
- :ivar blob_containers: BlobContainersOperations operations
78
- :vartype blob_containers: azure.mgmt.storage.v2019_06_01.operations.BlobContainersOperations
79
- :ivar file_services: FileServicesOperations operations
80
- :vartype file_services: azure.mgmt.storage.v2019_06_01.operations.FileServicesOperations
81
- :ivar file_shares: FileSharesOperations operations
82
- :vartype file_shares: azure.mgmt.storage.v2019_06_01.operations.FileSharesOperations
83
- :ivar queue_services: QueueServicesOperations operations
84
- :vartype queue_services: azure.mgmt.storage.v2019_06_01.operations.QueueServicesOperations
85
- :ivar queue: QueueOperations operations
86
- :vartype queue: azure.mgmt.storage.v2019_06_01.operations.QueueOperations
87
- :ivar table_services: TableServicesOperations operations
88
- :vartype table_services: azure.mgmt.storage.v2019_06_01.operations.TableServicesOperations
89
- :ivar table: TableOperations operations
90
- :vartype table: azure.mgmt.storage.v2019_06_01.operations.TableOperations
91
- :param credential: Credential needed for the client to connect to Azure. Required.
92
- :type credential: ~azure.core.credentials.TokenCredential
93
- :param subscription_id: The ID of the target subscription. Required.
94
- :type subscription_id: str
95
- :param base_url: Service URL. Default value is "https://management.azure.com".
96
- :type base_url: str
97
- :keyword api_version: Api Version. Default value is "2019-06-01". Note that overriding this
98
- default value may result in unsupported behavior.
99
- :paramtype api_version: str
100
- :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
101
- Retry-After header is present.
102
- """
103
-
104
- def __init__(
105
- self,
106
- credential: "TokenCredential",
107
- subscription_id: str,
108
- base_url: str = "https://management.azure.com",
109
- **kwargs: Any
110
- ) -> None:
111
- self._config = StorageManagementClientConfiguration(
112
- credential=credential, subscription_id=subscription_id, **kwargs
113
- )
114
- _policies = kwargs.pop("policies", None)
115
- if _policies is None:
116
- _policies = [
117
- policies.RequestIdPolicy(**kwargs),
118
- self._config.headers_policy,
119
- self._config.user_agent_policy,
120
- self._config.proxy_policy,
121
- policies.ContentDecodePolicy(**kwargs),
122
- ARMAutoResourceProviderRegistrationPolicy(),
123
- self._config.redirect_policy,
124
- self._config.retry_policy,
125
- self._config.authentication_policy,
126
- self._config.custom_hook_policy,
127
- self._config.logging_policy,
128
- policies.DistributedTracingPolicy(**kwargs),
129
- policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
130
- self._config.http_logging_policy,
131
- ]
132
- self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs)
133
-
134
- client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
135
- self._serialize = Serializer(client_models)
136
- self._deserialize = Deserializer(client_models)
137
- self._serialize.client_side_validation = False
138
- self.operations = Operations(self._client, self._config, self._serialize, self._deserialize, "2019-06-01")
139
- self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize, "2019-06-01")
140
- self.storage_accounts = StorageAccountsOperations(
141
- self._client, self._config, self._serialize, self._deserialize, "2019-06-01"
142
- )
143
- self.usages = UsagesOperations(self._client, self._config, self._serialize, self._deserialize, "2019-06-01")
144
- self.management_policies = ManagementPoliciesOperations(
145
- self._client, self._config, self._serialize, self._deserialize, "2019-06-01"
146
- )
147
- self.blob_inventory_policies = BlobInventoryPoliciesOperations(
148
- self._client, self._config, self._serialize, self._deserialize, "2019-06-01"
149
- )
150
- self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
151
- self._client, self._config, self._serialize, self._deserialize, "2019-06-01"
152
- )
153
- self.private_link_resources = PrivateLinkResourcesOperations(
154
- self._client, self._config, self._serialize, self._deserialize, "2019-06-01"
155
- )
156
- self.object_replication_policies = ObjectReplicationPoliciesOperations(
157
- self._client, self._config, self._serialize, self._deserialize, "2019-06-01"
158
- )
159
- self.encryption_scopes = EncryptionScopesOperations(
160
- self._client, self._config, self._serialize, self._deserialize, "2019-06-01"
161
- )
162
- self.blob_services = BlobServicesOperations(
163
- self._client, self._config, self._serialize, self._deserialize, "2019-06-01"
164
- )
165
- self.blob_containers = BlobContainersOperations(
166
- self._client, self._config, self._serialize, self._deserialize, "2019-06-01"
167
- )
168
- self.file_services = FileServicesOperations(
169
- self._client, self._config, self._serialize, self._deserialize, "2019-06-01"
170
- )
171
- self.file_shares = FileSharesOperations(
172
- self._client, self._config, self._serialize, self._deserialize, "2019-06-01"
173
- )
174
- self.queue_services = QueueServicesOperations(
175
- self._client, self._config, self._serialize, self._deserialize, "2019-06-01"
176
- )
177
- self.queue = QueueOperations(self._client, self._config, self._serialize, self._deserialize, "2019-06-01")
178
- self.table_services = TableServicesOperations(
179
- self._client, self._config, self._serialize, self._deserialize, "2019-06-01"
180
- )
181
- self.table = TableOperations(self._client, self._config, self._serialize, self._deserialize, "2019-06-01")
182
-
183
- def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
184
- """Runs the network request through the client's chained policies.
185
-
186
- >>> from azure.core.rest import HttpRequest
187
- >>> request = HttpRequest("GET", "https://www.example.org/")
188
- <HttpRequest [GET], url: 'https://www.example.org/'>
189
- >>> response = client._send_request(request)
190
- <HttpResponse: 200 OK>
191
-
192
- For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request
193
-
194
- :param request: The network request you want to make. Required.
195
- :type request: ~azure.core.rest.HttpRequest
196
- :keyword bool stream: Whether the response payload will be streamed. Defaults to False.
197
- :return: The response of your network call. Does not do error handling on your response.
198
- :rtype: ~azure.core.rest.HttpResponse
199
- """
200
-
201
- request_copy = deepcopy(request)
202
- request_copy.url = self._client.format_url(request_copy.url)
203
- return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore
204
-
205
- def close(self) -> None:
206
- self._client.close()
207
-
208
- def __enter__(self) -> Self:
209
- self._client.__enter__()
210
- return self
211
-
212
- def __exit__(self, *exc_details: Any) -> None:
213
- self._client.__exit__(*exc_details)
@@ -1,9 +0,0 @@
1
- # coding=utf-8
2
- # --------------------------------------------------------------------------
3
- # Copyright (c) Microsoft Corporation. All rights reserved.
4
- # Licensed under the MIT License. See License.txt in the project root for license information.
5
- # Code generated by Microsoft (R) AutoRest Code Generator.
6
- # Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- # --------------------------------------------------------------------------
8
-
9
- VERSION = "22.2.0"
@@ -1,29 +0,0 @@
1
- # coding=utf-8
2
- # --------------------------------------------------------------------------
3
- # Copyright (c) Microsoft Corporation. All rights reserved.
4
- # Licensed under the MIT License. See License.txt in the project root for license information.
5
- # Code generated by Microsoft (R) AutoRest Code Generator.
6
- # Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- # --------------------------------------------------------------------------
8
- # pylint: disable=wrong-import-position
9
-
10
- from typing import TYPE_CHECKING
11
-
12
- if TYPE_CHECKING:
13
- from ._patch import * # pylint: disable=unused-wildcard-import
14
-
15
- from ._storage_management_client import StorageManagementClient # type: ignore
16
-
17
- try:
18
- from ._patch import __all__ as _patch_all
19
- from ._patch import *
20
- except ImportError:
21
- _patch_all = []
22
- from ._patch import patch_sdk as _patch_sdk
23
-
24
- __all__ = [
25
- "StorageManagementClient",
26
- ]
27
- __all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
28
-
29
- _patch_sdk()
@@ -1,64 +0,0 @@
1
- # coding=utf-8
2
- # --------------------------------------------------------------------------
3
- # Copyright (c) Microsoft Corporation. All rights reserved.
4
- # Licensed under the MIT License. See License.txt in the project root for license information.
5
- # Code generated by Microsoft (R) AutoRest Code Generator.
6
- # Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- # --------------------------------------------------------------------------
8
-
9
- from typing import Any, TYPE_CHECKING
10
-
11
- from azure.core.pipeline import policies
12
- from azure.mgmt.core.policies import ARMHttpLoggingPolicy, AsyncARMChallengeAuthenticationPolicy
13
-
14
- from .._version import VERSION
15
-
16
- if TYPE_CHECKING:
17
- from azure.core.credentials_async import AsyncTokenCredential
18
-
19
-
20
- class StorageManagementClientConfiguration: # pylint: disable=too-many-instance-attributes
21
- """Configuration for StorageManagementClient.
22
-
23
- Note that all parameters used to create this instance are saved as instance
24
- attributes.
25
-
26
- :param credential: Credential needed for the client to connect to Azure. Required.
27
- :type credential: ~azure.core.credentials_async.AsyncTokenCredential
28
- :param subscription_id: The ID of the target subscription. Required.
29
- :type subscription_id: str
30
- :keyword api_version: Api Version. Default value is "2019-06-01". Note that overriding this
31
- default value may result in unsupported behavior.
32
- :paramtype api_version: str
33
- """
34
-
35
- def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
36
- api_version: str = kwargs.pop("api_version", "2019-06-01")
37
-
38
- if credential is None:
39
- raise ValueError("Parameter 'credential' must not be None.")
40
- if subscription_id is None:
41
- raise ValueError("Parameter 'subscription_id' must not be None.")
42
-
43
- self.credential = credential
44
- self.subscription_id = subscription_id
45
- self.api_version = api_version
46
- self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
47
- kwargs.setdefault("sdk_moniker", "mgmt-storage/{}".format(VERSION))
48
- self.polling_interval = kwargs.get("polling_interval", 30)
49
- self._configure(**kwargs)
50
-
51
- def _configure(self, **kwargs: Any) -> None:
52
- self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs)
53
- self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs)
54
- self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs)
55
- self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs)
56
- self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs)
57
- self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs)
58
- self.redirect_policy = kwargs.get("redirect_policy") or policies.AsyncRedirectPolicy(**kwargs)
59
- self.retry_policy = kwargs.get("retry_policy") or policies.AsyncRetryPolicy(**kwargs)
60
- self.authentication_policy = kwargs.get("authentication_policy")
61
- if self.credential and not self.authentication_policy:
62
- self.authentication_policy = AsyncARMChallengeAuthenticationPolicy(
63
- self.credential, *self.credential_scopes, **kwargs
64
- )
@@ -1,32 +0,0 @@
1
- # coding=utf-8
2
- # --------------------------------------------------------------------------
3
- #
4
- # Copyright (c) Microsoft Corporation. All rights reserved.
5
- #
6
- # The MIT License (MIT)
7
- #
8
- # Permission is hereby granted, free of charge, to any person obtaining a copy
9
- # of this software and associated documentation files (the ""Software""), to
10
- # deal in the Software without restriction, including without limitation the
11
- # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
12
- # sell copies of the Software, and to permit persons to whom the Software is
13
- # furnished to do so, subject to the following conditions:
14
- #
15
- # The above copyright notice and this permission notice shall be included in
16
- # all copies or substantial portions of the Software.
17
- #
18
- # THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23
- # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
24
- # IN THE SOFTWARE.
25
- #
26
- # --------------------------------------------------------------------------
27
-
28
-
29
- # This file is used for handwritten extensions to the generated code. Example:
30
- # https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
31
- def patch_sdk():
32
- pass