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