azure-mgmt-storage 22.1.1__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 +81 -96
  32. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_storage_task_assignment_instances_report_operations.py +14 -16
  33. azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_storage_task_assignments_instances_report_operations.py +14 -16
  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 +870 -927
  39. azure/mgmt/storage/{v2016_01_01/operations → models}/_patch.py +5 -4
  40. azure/mgmt/storage/{v2024_01_01/models → models}/_storage_management_client_enums.py +1 -0
  41. azure/mgmt/storage/{v2024_01_01/operations → operations}/__init__.py +1 -0
  42. azure/mgmt/storage/{v2024_01_01/operations → operations}/_blob_containers_operations.py +81 -84
  43. azure/mgmt/storage/{v2024_01_01/operations → operations}/_blob_inventory_policies_operations.py +31 -39
  44. azure/mgmt/storage/{v2024_01_01/operations → operations}/_blob_services_operations.py +24 -27
  45. azure/mgmt/storage/{v2024_01_01/operations → operations}/_deleted_accounts_operations.py +16 -18
  46. azure/mgmt/storage/{v2024_01_01/operations → operations}/_encryption_scopes_operations.py +32 -34
  47. azure/mgmt/storage/{v2024_01_01/operations → operations}/_file_services_operations.py +30 -32
  48. azure/mgmt/storage/{v2024_01_01/operations → operations}/_file_shares_operations.py +44 -47
  49. azure/mgmt/storage/{v2024_01_01/operations → operations}/_local_users_operations.py +33 -35
  50. azure/mgmt/storage/{v2024_01_01/operations → operations}/_management_policies_operations.py +27 -34
  51. azure/mgmt/storage/{v2024_01_01/operations → operations}/_network_security_perimeter_configurations_operations.py +20 -22
  52. azure/mgmt/storage/{v2024_01_01/operations → operations}/_object_replication_policies_operations.py +26 -29
  53. azure/mgmt/storage/{v2024_01_01/operations → operations}/_operations.py +12 -15
  54. azure/mgmt/storage/operations/_patch.py +21 -0
  55. azure/mgmt/storage/{v2024_01_01/operations → operations}/_private_endpoint_connections_operations.py +26 -29
  56. azure/mgmt/storage/{v2024_01_01/operations → operations}/_private_link_resources_operations.py +13 -15
  57. azure/mgmt/storage/{v2024_01_01/operations → operations}/_queue_operations.py +33 -35
  58. azure/mgmt/storage/{v2024_01_01/operations → operations}/_queue_services_operations.py +23 -25
  59. azure/mgmt/storage/{v2024_01_01/operations → operations}/_skus_operations.py +12 -15
  60. azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_accounts_operations.py +98 -106
  61. azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_task_assignment_instances_report_operations.py +15 -19
  62. azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_task_assignments_instances_report_operations.py +15 -19
  63. azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_task_assignments_operations.py +36 -47
  64. azure/mgmt/storage/{v2024_01_01/operations → operations}/_table_operations.py +33 -35
  65. azure/mgmt/storage/{v2024_01_01/operations → operations}/_table_services_operations.py +23 -25
  66. azure/mgmt/storage/{v2024_01_01/operations → operations}/_usages_operations.py +13 -16
  67. {azure_mgmt_storage-22.1.1.dist-info → azure_mgmt_storage-23.0.0.dist-info}/METADATA +20 -10
  68. azure_mgmt_storage-23.0.0.dist-info/RECORD +73 -0
  69. {azure_mgmt_storage-22.1.1.dist-info → azure_mgmt_storage-23.0.0.dist-info}/WHEEL +1 -1
  70. azure/mgmt/storage/models.py +0 -8
  71. azure/mgmt/storage/v2016_01_01/__init__.py +0 -32
  72. azure/mgmt/storage/v2016_01_01/_configuration.py +0 -65
  73. azure/mgmt/storage/v2016_01_01/_patch.py +0 -32
  74. azure/mgmt/storage/v2016_01_01/_storage_management_client.py +0 -117
  75. azure/mgmt/storage/v2016_01_01/aio/__init__.py +0 -29
  76. azure/mgmt/storage/v2016_01_01/aio/_configuration.py +0 -65
  77. azure/mgmt/storage/v2016_01_01/aio/_patch.py +0 -32
  78. azure/mgmt/storage/v2016_01_01/aio/_storage_management_client.py +0 -120
  79. azure/mgmt/storage/v2016_01_01/aio/operations/__init__.py +0 -27
  80. azure/mgmt/storage/v2016_01_01/aio/operations/_storage_accounts_operations.py +0 -1023
  81. azure/mgmt/storage/v2016_01_01/aio/operations/_usage_operations.py +0 -130
  82. azure/mgmt/storage/v2016_01_01/models/__init__.py +0 -88
  83. azure/mgmt/storage/v2016_01_01/models/_models_py3.py +0 -829
  84. azure/mgmt/storage/v2016_01_01/models/_storage_management_client_enums.py +0 -99
  85. azure/mgmt/storage/v2016_01_01/operations/__init__.py +0 -27
  86. azure/mgmt/storage/v2016_01_01/operations/_storage_accounts_operations.py +0 -1278
  87. azure/mgmt/storage/v2016_01_01/operations/_usage_operations.py +0 -157
  88. azure/mgmt/storage/v2016_01_01/py.typed +0 -1
  89. azure/mgmt/storage/v2017_10_01/__init__.py +0 -32
  90. azure/mgmt/storage/v2017_10_01/_configuration.py +0 -65
  91. azure/mgmt/storage/v2017_10_01/_patch.py +0 -32
  92. azure/mgmt/storage/v2017_10_01/_storage_management.py +0 -121
  93. azure/mgmt/storage/v2017_10_01/_version.py +0 -9
  94. azure/mgmt/storage/v2017_10_01/aio/__init__.py +0 -29
  95. azure/mgmt/storage/v2017_10_01/aio/_configuration.py +0 -65
  96. azure/mgmt/storage/v2017_10_01/aio/_patch.py +0 -32
  97. azure/mgmt/storage/v2017_10_01/aio/_storage_management.py +0 -124
  98. azure/mgmt/storage/v2017_10_01/aio/operations/__init__.py +0 -31
  99. azure/mgmt/storage/v2017_10_01/aio/operations/_skus_operations.py +0 -130
  100. azure/mgmt/storage/v2017_10_01/aio/operations/_storage_accounts_operations.py +0 -1299
  101. azure/mgmt/storage/v2017_10_01/aio/operations/_usage_operations.py +0 -130
  102. azure/mgmt/storage/v2017_10_01/models/__init__.py +0 -140
  103. azure/mgmt/storage/v2017_10_01/models/_models_py3.py +0 -1851
  104. azure/mgmt/storage/v2017_10_01/models/_patch.py +0 -20
  105. azure/mgmt/storage/v2017_10_01/models/_storage_management_enums.py +0 -192
  106. azure/mgmt/storage/v2017_10_01/operations/__init__.py +0 -31
  107. azure/mgmt/storage/v2017_10_01/operations/_operations.py +0 -151
  108. azure/mgmt/storage/v2017_10_01/operations/_patch.py +0 -20
  109. azure/mgmt/storage/v2017_10_01/operations/_skus_operations.py +0 -157
  110. azure/mgmt/storage/v2017_10_01/operations/_storage_accounts_operations.py +0 -1638
  111. azure/mgmt/storage/v2017_10_01/operations/_usage_operations.py +0 -157
  112. azure/mgmt/storage/v2017_10_01/py.typed +0 -1
  113. azure/mgmt/storage/v2019_06_01/__init__.py +0 -32
  114. azure/mgmt/storage/v2019_06_01/_configuration.py +0 -64
  115. azure/mgmt/storage/v2019_06_01/_patch.py +0 -32
  116. azure/mgmt/storage/v2019_06_01/_storage_management_client.py +0 -213
  117. azure/mgmt/storage/v2019_06_01/_version.py +0 -9
  118. azure/mgmt/storage/v2019_06_01/aio/__init__.py +0 -29
  119. azure/mgmt/storage/v2019_06_01/aio/_configuration.py +0 -64
  120. azure/mgmt/storage/v2019_06_01/aio/_patch.py +0 -32
  121. azure/mgmt/storage/v2019_06_01/aio/_storage_management_client.py +0 -217
  122. azure/mgmt/storage/v2019_06_01/aio/operations/__init__.py +0 -59
  123. azure/mgmt/storage/v2019_06_01/aio/operations/_blob_containers_operations.py +0 -1725
  124. azure/mgmt/storage/v2019_06_01/aio/operations/_blob_inventory_policies_operations.py +0 -437
  125. azure/mgmt/storage/v2019_06_01/aio/operations/_blob_services_operations.py +0 -368
  126. azure/mgmt/storage/v2019_06_01/aio/operations/_encryption_scopes_operations.py +0 -538
  127. azure/mgmt/storage/v2019_06_01/aio/operations/_file_services_operations.py +0 -335
  128. azure/mgmt/storage/v2019_06_01/aio/operations/_file_shares_operations.py +0 -771
  129. azure/mgmt/storage/v2019_06_01/aio/operations/_object_replication_policies_operations.py +0 -428
  130. azure/mgmt/storage/v2019_06_01/aio/operations/_operations.py +0 -130
  131. azure/mgmt/storage/v2019_06_01/aio/operations/_patch.py +0 -20
  132. azure/mgmt/storage/v2019_06_01/aio/operations/_private_endpoint_connections_operations.py +0 -424
  133. azure/mgmt/storage/v2019_06_01/aio/operations/_private_link_resources_operations.py +0 -113
  134. azure/mgmt/storage/v2019_06_01/aio/operations/_queue_operations.py +0 -597
  135. azure/mgmt/storage/v2019_06_01/aio/operations/_queue_services_operations.py +0 -335
  136. azure/mgmt/storage/v2019_06_01/aio/operations/_skus_operations.py +0 -131
  137. azure/mgmt/storage/v2019_06_01/aio/operations/_storage_accounts_operations.py +0 -1696
  138. azure/mgmt/storage/v2019_06_01/aio/operations/_table_operations.py +0 -394
  139. azure/mgmt/storage/v2019_06_01/aio/operations/_table_services_operations.py +0 -335
  140. azure/mgmt/storage/v2019_06_01/aio/operations/_usages_operations.py +0 -134
  141. azure/mgmt/storage/v2019_06_01/models/__init__.py +0 -364
  142. azure/mgmt/storage/v2019_06_01/models/_models_py3.py +0 -6038
  143. azure/mgmt/storage/v2019_06_01/models/_patch.py +0 -20
  144. azure/mgmt/storage/v2019_06_01/models/_storage_management_client_enums.py +0 -456
  145. azure/mgmt/storage/v2019_06_01/operations/__init__.py +0 -59
  146. azure/mgmt/storage/v2019_06_01/operations/_blob_containers_operations.py +0 -2226
  147. azure/mgmt/storage/v2019_06_01/operations/_blob_inventory_policies_operations.py +0 -582
  148. azure/mgmt/storage/v2019_06_01/operations/_blob_services_operations.py +0 -476
  149. azure/mgmt/storage/v2019_06_01/operations/_encryption_scopes_operations.py +0 -677
  150. azure/mgmt/storage/v2019_06_01/operations/_file_services_operations.py +0 -444
  151. azure/mgmt/storage/v2019_06_01/operations/_file_shares_operations.py +0 -1000
  152. azure/mgmt/storage/v2019_06_01/operations/_management_policies_operations.py +0 -453
  153. azure/mgmt/storage/v2019_06_01/operations/_object_replication_policies_operations.py +0 -567
  154. azure/mgmt/storage/v2019_06_01/operations/_operations.py +0 -151
  155. azure/mgmt/storage/v2019_06_01/operations/_patch.py +0 -20
  156. azure/mgmt/storage/v2019_06_01/operations/_private_endpoint_connections_operations.py +0 -575
  157. azure/mgmt/storage/v2019_06_01/operations/_private_link_resources_operations.py +0 -149
  158. azure/mgmt/storage/v2019_06_01/operations/_queue_operations.py +0 -805
  159. azure/mgmt/storage/v2019_06_01/operations/_queue_services_operations.py +0 -444
  160. azure/mgmt/storage/v2019_06_01/operations/_skus_operations.py +0 -157
  161. azure/mgmt/storage/v2019_06_01/operations/_storage_accounts_operations.py +0 -2122
  162. azure/mgmt/storage/v2019_06_01/operations/_table_operations.py +0 -563
  163. azure/mgmt/storage/v2019_06_01/operations/_table_services_operations.py +0 -444
  164. azure/mgmt/storage/v2019_06_01/operations/_usages_operations.py +0 -164
  165. azure/mgmt/storage/v2019_06_01/py.typed +0 -1
  166. azure/mgmt/storage/v2024_01_01/__init__.py +0 -32
  167. azure/mgmt/storage/v2024_01_01/_configuration.py +0 -64
  168. azure/mgmt/storage/v2024_01_01/_patch.py +0 -20
  169. azure/mgmt/storage/v2024_01_01/_storage_management_client.py +0 -256
  170. azure/mgmt/storage/v2024_01_01/_version.py +0 -9
  171. azure/mgmt/storage/v2024_01_01/aio/__init__.py +0 -29
  172. azure/mgmt/storage/v2024_01_01/aio/_configuration.py +0 -64
  173. azure/mgmt/storage/v2024_01_01/aio/_patch.py +0 -20
  174. azure/mgmt/storage/v2024_01_01/aio/_storage_management_client.py +0 -261
  175. azure/mgmt/storage/v2024_01_01/aio/operations/_management_policies_operations.py +0 -343
  176. azure/mgmt/storage/v2024_01_01/aio/operations/_operations.py +0 -130
  177. azure/mgmt/storage/v2024_01_01/aio/operations/_patch.py +0 -20
  178. azure/mgmt/storage/v2024_01_01/models/_patch.py +0 -20
  179. azure/mgmt/storage/v2024_01_01/operations/_patch.py +0 -20
  180. azure/mgmt/storage/v2024_01_01/py.typed +0 -1
  181. azure_mgmt_storage-22.1.1.dist-info/RECORD +0 -183
  182. /azure/mgmt/storage/{v2024_01_01/models → models}/__init__.py +0 -0
  183. {azure_mgmt_storage-22.1.1.dist-info → azure_mgmt_storage-23.0.0.dist-info}/LICENSE +0 -0
  184. {azure_mgmt_storage-22.1.1.dist-info → azure_mgmt_storage-23.0.0.dist-info}/top_level.txt +0 -0
@@ -1,677 +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
- from io import IOBase
9
- import sys
10
- from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, overload
11
- import urllib.parse
12
-
13
- from azure.core.exceptions import (
14
- ClientAuthenticationError,
15
- HttpResponseError,
16
- ResourceExistsError,
17
- ResourceNotFoundError,
18
- ResourceNotModifiedError,
19
- map_error,
20
- )
21
- from azure.core.paging import ItemPaged
22
- from azure.core.pipeline import PipelineResponse
23
- from azure.core.rest import HttpRequest, HttpResponse
24
- from azure.core.tracing.decorator import distributed_trace
25
- from azure.core.utils import case_insensitive_dict
26
- from azure.mgmt.core.exceptions import ARMErrorFormat
27
-
28
- from .. import models as _models
29
- from ..._serialization import Serializer
30
-
31
- if sys.version_info >= (3, 9):
32
- from collections.abc import MutableMapping
33
- else:
34
- from typing import MutableMapping # type: ignore
35
- T = TypeVar("T")
36
- ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
37
-
38
- _SERIALIZER = Serializer()
39
- _SERIALIZER.client_side_validation = False
40
-
41
-
42
- def build_put_request(
43
- resource_group_name: str, account_name: str, encryption_scope_name: str, subscription_id: str, **kwargs: Any
44
- ) -> HttpRequest:
45
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
46
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
47
-
48
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2019-06-01"))
49
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
50
- accept = _headers.pop("Accept", "application/json")
51
-
52
- # Construct URL
53
- _url = kwargs.pop(
54
- "template_url",
55
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/encryptionScopes/{encryptionScopeName}",
56
- ) # pylint: disable=line-too-long
57
- path_format_arguments = {
58
- "resourceGroupName": _SERIALIZER.url(
59
- "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
60
- ),
61
- "accountName": _SERIALIZER.url("account_name", account_name, "str", max_length=24, min_length=3),
62
- "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
63
- "encryptionScopeName": _SERIALIZER.url(
64
- "encryption_scope_name", encryption_scope_name, "str", max_length=63, min_length=3
65
- ),
66
- }
67
-
68
- _url: str = _url.format(**path_format_arguments) # type: ignore
69
-
70
- # Construct parameters
71
- _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
72
-
73
- # Construct headers
74
- if content_type is not None:
75
- _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
76
- _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
77
-
78
- return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs)
79
-
80
-
81
- def build_patch_request(
82
- resource_group_name: str, account_name: str, encryption_scope_name: str, subscription_id: str, **kwargs: Any
83
- ) -> HttpRequest:
84
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
85
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
86
-
87
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2019-06-01"))
88
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
89
- accept = _headers.pop("Accept", "application/json")
90
-
91
- # Construct URL
92
- _url = kwargs.pop(
93
- "template_url",
94
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/encryptionScopes/{encryptionScopeName}",
95
- ) # pylint: disable=line-too-long
96
- path_format_arguments = {
97
- "resourceGroupName": _SERIALIZER.url(
98
- "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
99
- ),
100
- "accountName": _SERIALIZER.url("account_name", account_name, "str", max_length=24, min_length=3),
101
- "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
102
- "encryptionScopeName": _SERIALIZER.url(
103
- "encryption_scope_name", encryption_scope_name, "str", max_length=63, min_length=3
104
- ),
105
- }
106
-
107
- _url: str = _url.format(**path_format_arguments) # type: ignore
108
-
109
- # Construct parameters
110
- _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
111
-
112
- # Construct headers
113
- if content_type is not None:
114
- _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
115
- _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
116
-
117
- return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs)
118
-
119
-
120
- def build_get_request(
121
- resource_group_name: str, account_name: str, encryption_scope_name: str, subscription_id: str, **kwargs: Any
122
- ) -> HttpRequest:
123
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
124
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
125
-
126
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2019-06-01"))
127
- accept = _headers.pop("Accept", "application/json")
128
-
129
- # Construct URL
130
- _url = kwargs.pop(
131
- "template_url",
132
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/encryptionScopes/{encryptionScopeName}",
133
- ) # pylint: disable=line-too-long
134
- path_format_arguments = {
135
- "resourceGroupName": _SERIALIZER.url(
136
- "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
137
- ),
138
- "accountName": _SERIALIZER.url("account_name", account_name, "str", max_length=24, min_length=3),
139
- "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
140
- "encryptionScopeName": _SERIALIZER.url(
141
- "encryption_scope_name", encryption_scope_name, "str", max_length=63, min_length=3
142
- ),
143
- }
144
-
145
- _url: str = _url.format(**path_format_arguments) # type: ignore
146
-
147
- # Construct parameters
148
- _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
149
-
150
- # Construct headers
151
- _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
152
-
153
- return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
154
-
155
-
156
- def build_list_request(resource_group_name: str, account_name: str, subscription_id: str, **kwargs: Any) -> HttpRequest:
157
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
158
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
159
-
160
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2019-06-01"))
161
- accept = _headers.pop("Accept", "application/json")
162
-
163
- # Construct URL
164
- _url = kwargs.pop(
165
- "template_url",
166
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/encryptionScopes",
167
- ) # pylint: disable=line-too-long
168
- path_format_arguments = {
169
- "resourceGroupName": _SERIALIZER.url(
170
- "resource_group_name", resource_group_name, "str", max_length=90, min_length=1, pattern=r"^[-\w\._\(\)]+$"
171
- ),
172
- "accountName": _SERIALIZER.url("account_name", account_name, "str", max_length=24, min_length=3),
173
- "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str", min_length=1),
174
- }
175
-
176
- _url: str = _url.format(**path_format_arguments) # type: ignore
177
-
178
- # Construct parameters
179
- _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
180
-
181
- # Construct headers
182
- _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
183
-
184
- return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
185
-
186
-
187
- class EncryptionScopesOperations:
188
- """
189
- .. warning::
190
- **DO NOT** instantiate this class directly.
191
-
192
- Instead, you should access the following operations through
193
- :class:`~azure.mgmt.storage.v2019_06_01.StorageManagementClient`'s
194
- :attr:`encryption_scopes` attribute.
195
- """
196
-
197
- models = _models
198
-
199
- def __init__(self, *args, **kwargs):
200
- input_args = list(args)
201
- self._client = input_args.pop(0) if input_args else kwargs.pop("client")
202
- self._config = input_args.pop(0) if input_args else kwargs.pop("config")
203
- self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
204
- self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
205
- self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
206
-
207
- @overload
208
- def put(
209
- self,
210
- resource_group_name: str,
211
- account_name: str,
212
- encryption_scope_name: str,
213
- encryption_scope: _models.EncryptionScope,
214
- *,
215
- content_type: str = "application/json",
216
- **kwargs: Any
217
- ) -> _models.EncryptionScope:
218
- """Synchronously creates or updates an encryption scope under the specified storage account. If an
219
- encryption scope is already created and a subsequent request is issued with different
220
- properties, the encryption scope properties will be updated per the specified request.
221
-
222
- :param resource_group_name: The name of the resource group within the user's subscription. The
223
- name is case insensitive. Required.
224
- :type resource_group_name: str
225
- :param account_name: The name of the storage account within the specified resource group.
226
- Storage account names must be between 3 and 24 characters in length and use numbers and
227
- lower-case letters only. Required.
228
- :type account_name: str
229
- :param encryption_scope_name: The name of the encryption scope within the specified storage
230
- account. Encryption scope names must be between 3 and 63 characters in length and use numbers,
231
- lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and
232
- followed by a letter or number. Required.
233
- :type encryption_scope_name: str
234
- :param encryption_scope: Encryption scope properties to be used for the create or update.
235
- Required.
236
- :type encryption_scope: ~azure.mgmt.storage.v2019_06_01.models.EncryptionScope
237
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
238
- Default value is "application/json".
239
- :paramtype content_type: str
240
- :return: EncryptionScope or the result of cls(response)
241
- :rtype: ~azure.mgmt.storage.v2019_06_01.models.EncryptionScope
242
- :raises ~azure.core.exceptions.HttpResponseError:
243
- """
244
-
245
- @overload
246
- def put(
247
- self,
248
- resource_group_name: str,
249
- account_name: str,
250
- encryption_scope_name: str,
251
- encryption_scope: IO[bytes],
252
- *,
253
- content_type: str = "application/json",
254
- **kwargs: Any
255
- ) -> _models.EncryptionScope:
256
- """Synchronously creates or updates an encryption scope under the specified storage account. If an
257
- encryption scope is already created and a subsequent request is issued with different
258
- properties, the encryption scope properties will be updated per the specified request.
259
-
260
- :param resource_group_name: The name of the resource group within the user's subscription. The
261
- name is case insensitive. Required.
262
- :type resource_group_name: str
263
- :param account_name: The name of the storage account within the specified resource group.
264
- Storage account names must be between 3 and 24 characters in length and use numbers and
265
- lower-case letters only. Required.
266
- :type account_name: str
267
- :param encryption_scope_name: The name of the encryption scope within the specified storage
268
- account. Encryption scope names must be between 3 and 63 characters in length and use numbers,
269
- lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and
270
- followed by a letter or number. Required.
271
- :type encryption_scope_name: str
272
- :param encryption_scope: Encryption scope properties to be used for the create or update.
273
- Required.
274
- :type encryption_scope: IO[bytes]
275
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
276
- Default value is "application/json".
277
- :paramtype content_type: str
278
- :return: EncryptionScope or the result of cls(response)
279
- :rtype: ~azure.mgmt.storage.v2019_06_01.models.EncryptionScope
280
- :raises ~azure.core.exceptions.HttpResponseError:
281
- """
282
-
283
- @distributed_trace
284
- def put(
285
- self,
286
- resource_group_name: str,
287
- account_name: str,
288
- encryption_scope_name: str,
289
- encryption_scope: Union[_models.EncryptionScope, IO[bytes]],
290
- **kwargs: Any
291
- ) -> _models.EncryptionScope:
292
- """Synchronously creates or updates an encryption scope under the specified storage account. If an
293
- encryption scope is already created and a subsequent request is issued with different
294
- properties, the encryption scope properties will be updated per the specified request.
295
-
296
- :param resource_group_name: The name of the resource group within the user's subscription. The
297
- name is case insensitive. Required.
298
- :type resource_group_name: str
299
- :param account_name: The name of the storage account within the specified resource group.
300
- Storage account names must be between 3 and 24 characters in length and use numbers and
301
- lower-case letters only. Required.
302
- :type account_name: str
303
- :param encryption_scope_name: The name of the encryption scope within the specified storage
304
- account. Encryption scope names must be between 3 and 63 characters in length and use numbers,
305
- lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and
306
- followed by a letter or number. Required.
307
- :type encryption_scope_name: str
308
- :param encryption_scope: Encryption scope properties to be used for the create or update. Is
309
- either a EncryptionScope type or a IO[bytes] type. Required.
310
- :type encryption_scope: ~azure.mgmt.storage.v2019_06_01.models.EncryptionScope or IO[bytes]
311
- :return: EncryptionScope or the result of cls(response)
312
- :rtype: ~azure.mgmt.storage.v2019_06_01.models.EncryptionScope
313
- :raises ~azure.core.exceptions.HttpResponseError:
314
- """
315
- error_map: MutableMapping = {
316
- 401: ClientAuthenticationError,
317
- 404: ResourceNotFoundError,
318
- 409: ResourceExistsError,
319
- 304: ResourceNotModifiedError,
320
- }
321
- error_map.update(kwargs.pop("error_map", {}) or {})
322
-
323
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
324
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
325
-
326
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2019-06-01"))
327
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
328
- cls: ClsType[_models.EncryptionScope] = kwargs.pop("cls", None)
329
-
330
- content_type = content_type or "application/json"
331
- _json = None
332
- _content = None
333
- if isinstance(encryption_scope, (IOBase, bytes)):
334
- _content = encryption_scope
335
- else:
336
- _json = self._serialize.body(encryption_scope, "EncryptionScope")
337
-
338
- _request = build_put_request(
339
- resource_group_name=resource_group_name,
340
- account_name=account_name,
341
- encryption_scope_name=encryption_scope_name,
342
- subscription_id=self._config.subscription_id,
343
- api_version=api_version,
344
- content_type=content_type,
345
- json=_json,
346
- content=_content,
347
- headers=_headers,
348
- params=_params,
349
- )
350
- _request.url = self._client.format_url(_request.url)
351
-
352
- _stream = False
353
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
354
- _request, stream=_stream, **kwargs
355
- )
356
-
357
- response = pipeline_response.http_response
358
-
359
- if response.status_code not in [200, 201]:
360
- map_error(status_code=response.status_code, response=response, error_map=error_map)
361
- error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
362
- raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
363
-
364
- deserialized = self._deserialize("EncryptionScope", pipeline_response.http_response)
365
-
366
- if cls:
367
- return cls(pipeline_response, deserialized, {}) # type: ignore
368
-
369
- return deserialized # type: ignore
370
-
371
- @overload
372
- def patch(
373
- self,
374
- resource_group_name: str,
375
- account_name: str,
376
- encryption_scope_name: str,
377
- encryption_scope: _models.EncryptionScope,
378
- *,
379
- content_type: str = "application/json",
380
- **kwargs: Any
381
- ) -> _models.EncryptionScope:
382
- """Update encryption scope properties as specified in the request body. Update fails if the
383
- specified encryption scope does not already exist.
384
-
385
- :param resource_group_name: The name of the resource group within the user's subscription. The
386
- name is case insensitive. Required.
387
- :type resource_group_name: str
388
- :param account_name: The name of the storage account within the specified resource group.
389
- Storage account names must be between 3 and 24 characters in length and use numbers and
390
- lower-case letters only. Required.
391
- :type account_name: str
392
- :param encryption_scope_name: The name of the encryption scope within the specified storage
393
- account. Encryption scope names must be between 3 and 63 characters in length and use numbers,
394
- lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and
395
- followed by a letter or number. Required.
396
- :type encryption_scope_name: str
397
- :param encryption_scope: Encryption scope properties to be used for the update. Required.
398
- :type encryption_scope: ~azure.mgmt.storage.v2019_06_01.models.EncryptionScope
399
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
400
- Default value is "application/json".
401
- :paramtype content_type: str
402
- :return: EncryptionScope or the result of cls(response)
403
- :rtype: ~azure.mgmt.storage.v2019_06_01.models.EncryptionScope
404
- :raises ~azure.core.exceptions.HttpResponseError:
405
- """
406
-
407
- @overload
408
- def patch(
409
- self,
410
- resource_group_name: str,
411
- account_name: str,
412
- encryption_scope_name: str,
413
- encryption_scope: IO[bytes],
414
- *,
415
- content_type: str = "application/json",
416
- **kwargs: Any
417
- ) -> _models.EncryptionScope:
418
- """Update encryption scope properties as specified in the request body. Update fails if the
419
- specified encryption scope does not already exist.
420
-
421
- :param resource_group_name: The name of the resource group within the user's subscription. The
422
- name is case insensitive. Required.
423
- :type resource_group_name: str
424
- :param account_name: The name of the storage account within the specified resource group.
425
- Storage account names must be between 3 and 24 characters in length and use numbers and
426
- lower-case letters only. Required.
427
- :type account_name: str
428
- :param encryption_scope_name: The name of the encryption scope within the specified storage
429
- account. Encryption scope names must be between 3 and 63 characters in length and use numbers,
430
- lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and
431
- followed by a letter or number. Required.
432
- :type encryption_scope_name: str
433
- :param encryption_scope: Encryption scope properties to be used for the update. Required.
434
- :type encryption_scope: IO[bytes]
435
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
436
- Default value is "application/json".
437
- :paramtype content_type: str
438
- :return: EncryptionScope or the result of cls(response)
439
- :rtype: ~azure.mgmt.storage.v2019_06_01.models.EncryptionScope
440
- :raises ~azure.core.exceptions.HttpResponseError:
441
- """
442
-
443
- @distributed_trace
444
- def patch(
445
- self,
446
- resource_group_name: str,
447
- account_name: str,
448
- encryption_scope_name: str,
449
- encryption_scope: Union[_models.EncryptionScope, IO[bytes]],
450
- **kwargs: Any
451
- ) -> _models.EncryptionScope:
452
- """Update encryption scope properties as specified in the request body. Update fails if the
453
- specified encryption scope does not already exist.
454
-
455
- :param resource_group_name: The name of the resource group within the user's subscription. The
456
- name is case insensitive. Required.
457
- :type resource_group_name: str
458
- :param account_name: The name of the storage account within the specified resource group.
459
- Storage account names must be between 3 and 24 characters in length and use numbers and
460
- lower-case letters only. Required.
461
- :type account_name: str
462
- :param encryption_scope_name: The name of the encryption scope within the specified storage
463
- account. Encryption scope names must be between 3 and 63 characters in length and use numbers,
464
- lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and
465
- followed by a letter or number. Required.
466
- :type encryption_scope_name: str
467
- :param encryption_scope: Encryption scope properties to be used for the update. Is either a
468
- EncryptionScope type or a IO[bytes] type. Required.
469
- :type encryption_scope: ~azure.mgmt.storage.v2019_06_01.models.EncryptionScope or IO[bytes]
470
- :return: EncryptionScope or the result of cls(response)
471
- :rtype: ~azure.mgmt.storage.v2019_06_01.models.EncryptionScope
472
- :raises ~azure.core.exceptions.HttpResponseError:
473
- """
474
- error_map: MutableMapping = {
475
- 401: ClientAuthenticationError,
476
- 404: ResourceNotFoundError,
477
- 409: ResourceExistsError,
478
- 304: ResourceNotModifiedError,
479
- }
480
- error_map.update(kwargs.pop("error_map", {}) or {})
481
-
482
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
483
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
484
-
485
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2019-06-01"))
486
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
487
- cls: ClsType[_models.EncryptionScope] = kwargs.pop("cls", None)
488
-
489
- content_type = content_type or "application/json"
490
- _json = None
491
- _content = None
492
- if isinstance(encryption_scope, (IOBase, bytes)):
493
- _content = encryption_scope
494
- else:
495
- _json = self._serialize.body(encryption_scope, "EncryptionScope")
496
-
497
- _request = build_patch_request(
498
- resource_group_name=resource_group_name,
499
- account_name=account_name,
500
- encryption_scope_name=encryption_scope_name,
501
- subscription_id=self._config.subscription_id,
502
- api_version=api_version,
503
- content_type=content_type,
504
- json=_json,
505
- content=_content,
506
- headers=_headers,
507
- params=_params,
508
- )
509
- _request.url = self._client.format_url(_request.url)
510
-
511
- _stream = False
512
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
513
- _request, stream=_stream, **kwargs
514
- )
515
-
516
- response = pipeline_response.http_response
517
-
518
- if response.status_code not in [200]:
519
- map_error(status_code=response.status_code, response=response, error_map=error_map)
520
- error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
521
- raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
522
-
523
- deserialized = self._deserialize("EncryptionScope", pipeline_response.http_response)
524
-
525
- if cls:
526
- return cls(pipeline_response, deserialized, {}) # type: ignore
527
-
528
- return deserialized # type: ignore
529
-
530
- @distributed_trace
531
- def get(
532
- self, resource_group_name: str, account_name: str, encryption_scope_name: str, **kwargs: Any
533
- ) -> _models.EncryptionScope:
534
- """Returns the properties for the specified encryption scope.
535
-
536
- :param resource_group_name: The name of the resource group within the user's subscription. The
537
- name is case insensitive. Required.
538
- :type resource_group_name: str
539
- :param account_name: The name of the storage account within the specified resource group.
540
- Storage account names must be between 3 and 24 characters in length and use numbers and
541
- lower-case letters only. Required.
542
- :type account_name: str
543
- :param encryption_scope_name: The name of the encryption scope within the specified storage
544
- account. Encryption scope names must be between 3 and 63 characters in length and use numbers,
545
- lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and
546
- followed by a letter or number. Required.
547
- :type encryption_scope_name: str
548
- :return: EncryptionScope or the result of cls(response)
549
- :rtype: ~azure.mgmt.storage.v2019_06_01.models.EncryptionScope
550
- :raises ~azure.core.exceptions.HttpResponseError:
551
- """
552
- error_map: MutableMapping = {
553
- 401: ClientAuthenticationError,
554
- 404: ResourceNotFoundError,
555
- 409: ResourceExistsError,
556
- 304: ResourceNotModifiedError,
557
- }
558
- error_map.update(kwargs.pop("error_map", {}) or {})
559
-
560
- _headers = kwargs.pop("headers", {}) or {}
561
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
562
-
563
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2019-06-01"))
564
- cls: ClsType[_models.EncryptionScope] = kwargs.pop("cls", None)
565
-
566
- _request = build_get_request(
567
- resource_group_name=resource_group_name,
568
- account_name=account_name,
569
- encryption_scope_name=encryption_scope_name,
570
- subscription_id=self._config.subscription_id,
571
- api_version=api_version,
572
- headers=_headers,
573
- params=_params,
574
- )
575
- _request.url = self._client.format_url(_request.url)
576
-
577
- _stream = False
578
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
579
- _request, stream=_stream, **kwargs
580
- )
581
-
582
- response = pipeline_response.http_response
583
-
584
- if response.status_code not in [200]:
585
- map_error(status_code=response.status_code, response=response, error_map=error_map)
586
- error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
587
- raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
588
-
589
- deserialized = self._deserialize("EncryptionScope", pipeline_response.http_response)
590
-
591
- if cls:
592
- return cls(pipeline_response, deserialized, {}) # type: ignore
593
-
594
- return deserialized # type: ignore
595
-
596
- @distributed_trace
597
- def list(self, resource_group_name: str, account_name: str, **kwargs: Any) -> Iterable["_models.EncryptionScope"]:
598
- """Lists all the encryption scopes available under the specified storage account.
599
-
600
- :param resource_group_name: The name of the resource group within the user's subscription. The
601
- name is case insensitive. Required.
602
- :type resource_group_name: str
603
- :param account_name: The name of the storage account within the specified resource group.
604
- Storage account names must be between 3 and 24 characters in length and use numbers and
605
- lower-case letters only. Required.
606
- :type account_name: str
607
- :return: An iterator like instance of either EncryptionScope or the result of cls(response)
608
- :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2019_06_01.models.EncryptionScope]
609
- :raises ~azure.core.exceptions.HttpResponseError:
610
- """
611
- _headers = kwargs.pop("headers", {}) or {}
612
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
613
-
614
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2019-06-01"))
615
- cls: ClsType[_models.EncryptionScopeListResult] = kwargs.pop("cls", None)
616
-
617
- error_map: MutableMapping = {
618
- 401: ClientAuthenticationError,
619
- 404: ResourceNotFoundError,
620
- 409: ResourceExistsError,
621
- 304: ResourceNotModifiedError,
622
- }
623
- error_map.update(kwargs.pop("error_map", {}) or {})
624
-
625
- def prepare_request(next_link=None):
626
- if not next_link:
627
-
628
- _request = build_list_request(
629
- resource_group_name=resource_group_name,
630
- account_name=account_name,
631
- subscription_id=self._config.subscription_id,
632
- api_version=api_version,
633
- headers=_headers,
634
- params=_params,
635
- )
636
- _request.url = self._client.format_url(_request.url)
637
-
638
- else:
639
- # make call to next link with the client's api-version
640
- _parsed_next_link = urllib.parse.urlparse(next_link)
641
- _next_request_params = case_insensitive_dict(
642
- {
643
- key: [urllib.parse.quote(v) for v in value]
644
- for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
645
- }
646
- )
647
- _next_request_params["api-version"] = self._api_version
648
- _request = HttpRequest(
649
- "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
650
- )
651
- _request.url = self._client.format_url(_request.url)
652
- _request.method = "GET"
653
- return _request
654
-
655
- def extract_data(pipeline_response):
656
- deserialized = self._deserialize("EncryptionScopeListResult", pipeline_response)
657
- list_of_elem = deserialized.value
658
- if cls:
659
- list_of_elem = cls(list_of_elem) # type: ignore
660
- return deserialized.next_link or None, iter(list_of_elem)
661
-
662
- def get_next(next_link=None):
663
- _request = prepare_request(next_link)
664
-
665
- _stream = False
666
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
667
- _request, stream=_stream, **kwargs
668
- )
669
- response = pipeline_response.http_response
670
-
671
- if response.status_code not in [200]:
672
- map_error(status_code=response.status_code, response=response, error_map=error_map)
673
- raise HttpResponseError(response=response, error_format=ARMErrorFormat)
674
-
675
- return pipeline_response
676
-
677
- return ItemPaged(get_next, extract_data)