azure-mgmt-storage 22.2.0__py3-none-any.whl → 23.0.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +68 -84
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_blob_inventory_policies_operations.py +28 -36
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_blob_services_operations.py +22 -24
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_deleted_accounts_operations.py +16 -19
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_encryption_scopes_operations.py +29 -32
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_file_services_operations.py +26 -29
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_file_shares_operations.py +38 -41
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_local_users_operations.py +28 -31
- 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 +18 -21
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_object_replication_policies_operations.py +23 -25
- azure/mgmt/storage/{v2017_10_01/aio → aio}/operations/_operations.py +14 -17
- 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 +23 -25
- 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 +29 -32
- 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 +14 -17
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_storage_accounts_operations.py +83 -111
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_storage_task_assignment_instances_report_operations.py +15 -17
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_storage_task_assignments_instances_report_operations.py +15 -17
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_storage_task_assignments_operations.py +38 -44
- azure/mgmt/storage/{v2024_01_01/aio → aio}/operations/_table_operations.py +29 -31
- 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 +14 -16
- azure/mgmt/storage/{v2024_01_01/models → models}/_models_py3.py +857 -912
- 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 +84 -87
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_blob_inventory_policies_operations.py +34 -42
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_blob_services_operations.py +27 -30
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_deleted_accounts_operations.py +19 -21
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_encryption_scopes_operations.py +35 -37
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_file_services_operations.py +33 -35
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_file_shares_operations.py +47 -50
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_local_users_operations.py +36 -38
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_management_policies_operations.py +28 -35
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_network_security_perimeter_configurations_operations.py +23 -25
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_object_replication_policies_operations.py +29 -32
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_operations.py +15 -18
- azure/mgmt/storage/operations/_patch.py +21 -0
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_private_endpoint_connections_operations.py +29 -32
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_private_link_resources_operations.py +14 -16
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_queue_operations.py +36 -38
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_queue_services_operations.py +24 -26
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_skus_operations.py +15 -18
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_accounts_operations.py +101 -109
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_task_assignment_instances_report_operations.py +17 -21
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_task_assignments_instances_report_operations.py +17 -21
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_storage_task_assignments_operations.py +42 -53
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_table_operations.py +36 -38
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_table_services_operations.py +24 -26
- azure/mgmt/storage/{v2024_01_01/operations → operations}/_usages_operations.py +16 -19
- {azure_mgmt_storage-22.2.0.dist-info → azure_mgmt_storage-23.0.1.dist-info}/METADATA +17 -6
- azure_mgmt_storage-23.0.1.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.1.dist-info}/LICENSE +0 -0
- {azure_mgmt_storage-22.2.0.dist-info → azure_mgmt_storage-23.0.1.dist-info}/WHEEL +0 -0
- {azure_mgmt_storage-22.2.0.dist-info → azure_mgmt_storage-23.0.1.dist-info}/top_level.txt +0 -0
@@ -1,20 +0,0 @@
|
|
1
|
-
# ------------------------------------
|
2
|
-
# Copyright (c) Microsoft Corporation.
|
3
|
-
# Licensed under the MIT License.
|
4
|
-
# ------------------------------------
|
5
|
-
"""Customize generated code here.
|
6
|
-
|
7
|
-
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
|
8
|
-
"""
|
9
|
-
from typing import List
|
10
|
-
|
11
|
-
__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
|
12
|
-
|
13
|
-
|
14
|
-
def patch_sdk():
|
15
|
-
"""Do not remove from this file.
|
16
|
-
|
17
|
-
`patch_sdk` is a last resort escape hatch that allows you to do customizations
|
18
|
-
you can't accomplish using the techniques described in
|
19
|
-
https://aka.ms/azsdk/python/dpcodegen/python/customize
|
20
|
-
"""
|
@@ -1,192 +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 enum import Enum
|
10
|
-
from azure.core import CaseInsensitiveEnumMeta
|
11
|
-
|
12
|
-
|
13
|
-
class AccessTier(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
14
|
-
"""Required for storage accounts where kind = BlobStorage. The access tier used for billing."""
|
15
|
-
|
16
|
-
HOT = "Hot"
|
17
|
-
COOL = "Cool"
|
18
|
-
|
19
|
-
|
20
|
-
class AccountStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
21
|
-
"""Gets the status indicating whether the primary location of the storage account is available or
|
22
|
-
unavailable.
|
23
|
-
"""
|
24
|
-
|
25
|
-
AVAILABLE = "available"
|
26
|
-
UNAVAILABLE = "unavailable"
|
27
|
-
|
28
|
-
|
29
|
-
class Bypass(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
30
|
-
"""Specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Possible values are
|
31
|
-
any combination of Logging|Metrics|AzureServices (For example, "Logging, Metrics"), or None to
|
32
|
-
bypass none of those traffics.
|
33
|
-
"""
|
34
|
-
|
35
|
-
NONE = "None"
|
36
|
-
LOGGING = "Logging"
|
37
|
-
METRICS = "Metrics"
|
38
|
-
AZURE_SERVICES = "AzureServices"
|
39
|
-
|
40
|
-
|
41
|
-
class DefaultAction(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
42
|
-
"""Specifies the default action of allow or deny when no other rules match."""
|
43
|
-
|
44
|
-
ALLOW = "Allow"
|
45
|
-
DENY = "Deny"
|
46
|
-
|
47
|
-
|
48
|
-
class HttpProtocol(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
49
|
-
"""The protocol permitted for a request made with the account SAS."""
|
50
|
-
|
51
|
-
HTTPS_HTTP = "https,http"
|
52
|
-
HTTPS = "https"
|
53
|
-
|
54
|
-
|
55
|
-
class KeyPermission(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
56
|
-
"""Permissions for the key -- read-only or full permissions."""
|
57
|
-
|
58
|
-
READ = "Read"
|
59
|
-
FULL = "Full"
|
60
|
-
|
61
|
-
|
62
|
-
class KeySource(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
63
|
-
"""The encryption keySource (provider). Possible values (case-insensitive): Microsoft.Storage,
|
64
|
-
Microsoft.Keyvault.
|
65
|
-
"""
|
66
|
-
|
67
|
-
MICROSOFT_STORAGE = "Microsoft.Storage"
|
68
|
-
MICROSOFT_KEYVAULT = "Microsoft.Keyvault"
|
69
|
-
|
70
|
-
|
71
|
-
class Kind(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
72
|
-
"""Indicates the type of storage account."""
|
73
|
-
|
74
|
-
STORAGE = "Storage"
|
75
|
-
STORAGE_V2 = "StorageV2"
|
76
|
-
BLOB_STORAGE = "BlobStorage"
|
77
|
-
|
78
|
-
|
79
|
-
class Permissions(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
80
|
-
"""The signed permissions for the account SAS. Possible values include: Read (r), Write (w),
|
81
|
-
Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p).
|
82
|
-
"""
|
83
|
-
|
84
|
-
R = "r"
|
85
|
-
D = "d"
|
86
|
-
W = "w"
|
87
|
-
L = "l"
|
88
|
-
A = "a"
|
89
|
-
C = "c"
|
90
|
-
U = "u"
|
91
|
-
P = "p"
|
92
|
-
|
93
|
-
|
94
|
-
class ProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
95
|
-
"""Gets the status of the storage account at the time the operation was called."""
|
96
|
-
|
97
|
-
CREATING = "Creating"
|
98
|
-
RESOLVING_DNS = "ResolvingDNS"
|
99
|
-
SUCCEEDED = "Succeeded"
|
100
|
-
|
101
|
-
|
102
|
-
class Reason(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
103
|
-
"""Gets the reason that a storage account name could not be used. The Reason element is only
|
104
|
-
returned if NameAvailable is false.
|
105
|
-
"""
|
106
|
-
|
107
|
-
ACCOUNT_NAME_INVALID = "AccountNameInvalid"
|
108
|
-
ALREADY_EXISTS = "AlreadyExists"
|
109
|
-
|
110
|
-
|
111
|
-
class ReasonCode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
112
|
-
"""The reason for the restriction. As of now this can be "QuotaId" or
|
113
|
-
"NotAvailableForSubscription". Quota Id is set when the SKU has requiredQuotas parameter as the
|
114
|
-
subscription does not belong to that quota. The "NotAvailableForSubscription" is related to
|
115
|
-
capacity at DC.
|
116
|
-
"""
|
117
|
-
|
118
|
-
QUOTA_ID = "QuotaId"
|
119
|
-
NOT_AVAILABLE_FOR_SUBSCRIPTION = "NotAvailableForSubscription"
|
120
|
-
|
121
|
-
|
122
|
-
class Services(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
123
|
-
"""The signed services accessible with the account SAS. Possible values include: Blob (b), Queue
|
124
|
-
(q), Table (t), File (f).
|
125
|
-
"""
|
126
|
-
|
127
|
-
B = "b"
|
128
|
-
Q = "q"
|
129
|
-
T = "t"
|
130
|
-
F = "f"
|
131
|
-
|
132
|
-
|
133
|
-
class SignedResource(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
134
|
-
"""The signed services accessible with the service SAS. Possible values include: Blob (b),
|
135
|
-
Container (c), File (f), Share (s).
|
136
|
-
"""
|
137
|
-
|
138
|
-
B = "b"
|
139
|
-
C = "c"
|
140
|
-
F = "f"
|
141
|
-
S = "s"
|
142
|
-
|
143
|
-
|
144
|
-
class SignedResourceTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
145
|
-
"""The signed resource types that are accessible with the account SAS. Service (s): Access to
|
146
|
-
service-level APIs; Container (c): Access to container-level APIs; Object (o): Access to
|
147
|
-
object-level APIs for blobs, queue messages, table entities, and files.
|
148
|
-
"""
|
149
|
-
|
150
|
-
S = "s"
|
151
|
-
C = "c"
|
152
|
-
O = "o"
|
153
|
-
|
154
|
-
|
155
|
-
class SkuName(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
156
|
-
"""Gets or sets the sku name. Required for account creation; optional for update. Note that in
|
157
|
-
older versions, sku name was called accountType.
|
158
|
-
"""
|
159
|
-
|
160
|
-
STANDARD_LRS = "Standard_LRS"
|
161
|
-
STANDARD_GRS = "Standard_GRS"
|
162
|
-
STANDARD_RAGRS = "Standard_RAGRS"
|
163
|
-
STANDARD_ZRS = "Standard_ZRS"
|
164
|
-
PREMIUM_LRS = "Premium_LRS"
|
165
|
-
|
166
|
-
|
167
|
-
class SkuTier(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
168
|
-
"""Gets the sku tier. This is based on the SKU name."""
|
169
|
-
|
170
|
-
STANDARD = "Standard"
|
171
|
-
PREMIUM = "Premium"
|
172
|
-
|
173
|
-
|
174
|
-
class State(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
175
|
-
"""Gets the state of virtual network rule."""
|
176
|
-
|
177
|
-
PROVISIONING = "provisioning"
|
178
|
-
DEPROVISIONING = "deprovisioning"
|
179
|
-
SUCCEEDED = "succeeded"
|
180
|
-
FAILED = "failed"
|
181
|
-
NETWORK_SOURCE_DELETED = "networkSourceDeleted"
|
182
|
-
|
183
|
-
|
184
|
-
class UsageUnit(str, Enum, metaclass=CaseInsensitiveEnumMeta):
|
185
|
-
"""Gets the unit of measurement."""
|
186
|
-
|
187
|
-
COUNT = "Count"
|
188
|
-
BYTES = "Bytes"
|
189
|
-
SECONDS = "Seconds"
|
190
|
-
PERCENT = "Percent"
|
191
|
-
COUNTS_PER_SECOND = "CountsPerSecond"
|
192
|
-
BYTES_PER_SECOND = "BytesPerSecond"
|
@@ -1,31 +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 ._operations import Operations # type: ignore
|
16
|
-
from ._skus_operations import SkusOperations # type: ignore
|
17
|
-
from ._storage_accounts_operations import StorageAccountsOperations # type: ignore
|
18
|
-
from ._usage_operations import UsageOperations # type: ignore
|
19
|
-
|
20
|
-
from ._patch import __all__ as _patch_all
|
21
|
-
from ._patch import *
|
22
|
-
from ._patch import patch_sdk as _patch_sdk
|
23
|
-
|
24
|
-
__all__ = [
|
25
|
-
"Operations",
|
26
|
-
"SkusOperations",
|
27
|
-
"StorageAccountsOperations",
|
28
|
-
"UsageOperations",
|
29
|
-
]
|
30
|
-
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
|
31
|
-
_patch_sdk()
|
@@ -1,151 +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(**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", "/providers/Microsoft.Storage/operations")
|
50
|
-
|
51
|
-
# Construct parameters
|
52
|
-
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
|
53
|
-
|
54
|
-
# Construct headers
|
55
|
-
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
|
56
|
-
|
57
|
-
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
|
58
|
-
|
59
|
-
|
60
|
-
class Operations:
|
61
|
-
"""
|
62
|
-
.. warning::
|
63
|
-
**DO NOT** instantiate this class directly.
|
64
|
-
|
65
|
-
Instead, you should access the following operations through
|
66
|
-
:class:`~azure.mgmt.storage.v2017_10_01.StorageManagement`'s
|
67
|
-
:attr:`operations` attribute.
|
68
|
-
"""
|
69
|
-
|
70
|
-
models = _models
|
71
|
-
|
72
|
-
def __init__(self, *args, **kwargs):
|
73
|
-
input_args = list(args)
|
74
|
-
self._client = input_args.pop(0) if input_args else kwargs.pop("client")
|
75
|
-
self._config = input_args.pop(0) if input_args else kwargs.pop("config")
|
76
|
-
self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer")
|
77
|
-
self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer")
|
78
|
-
self._api_version = input_args.pop(0) if input_args else kwargs.pop("api_version")
|
79
|
-
|
80
|
-
@distributed_trace
|
81
|
-
def list(self, **kwargs: Any) -> Iterable["_models.Operation"]:
|
82
|
-
"""Lists all of the available Storage Rest API operations.
|
83
|
-
|
84
|
-
:return: An iterator like instance of either Operation or the result of cls(response)
|
85
|
-
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2017_10_01.models.Operation]
|
86
|
-
:raises ~azure.core.exceptions.HttpResponseError:
|
87
|
-
"""
|
88
|
-
_headers = kwargs.pop("headers", {}) or {}
|
89
|
-
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
|
90
|
-
|
91
|
-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version or "2017-10-01"))
|
92
|
-
cls: ClsType[_models.OperationListResult] = kwargs.pop("cls", None)
|
93
|
-
|
94
|
-
error_map: MutableMapping = {
|
95
|
-
401: ClientAuthenticationError,
|
96
|
-
404: ResourceNotFoundError,
|
97
|
-
409: ResourceExistsError,
|
98
|
-
304: ResourceNotModifiedError,
|
99
|
-
}
|
100
|
-
error_map.update(kwargs.pop("error_map", {}) or {})
|
101
|
-
|
102
|
-
def prepare_request(next_link=None):
|
103
|
-
if not next_link:
|
104
|
-
|
105
|
-
_request = build_list_request(
|
106
|
-
api_version=api_version,
|
107
|
-
headers=_headers,
|
108
|
-
params=_params,
|
109
|
-
)
|
110
|
-
_request.url = self._client.format_url(_request.url)
|
111
|
-
|
112
|
-
else:
|
113
|
-
# make call to next link with the client's api-version
|
114
|
-
_parsed_next_link = urllib.parse.urlparse(next_link)
|
115
|
-
_next_request_params = case_insensitive_dict(
|
116
|
-
{
|
117
|
-
key: [urllib.parse.quote(v) for v in value]
|
118
|
-
for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
|
119
|
-
}
|
120
|
-
)
|
121
|
-
_next_request_params["api-version"] = self._api_version
|
122
|
-
_request = HttpRequest(
|
123
|
-
"GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params
|
124
|
-
)
|
125
|
-
_request.url = self._client.format_url(_request.url)
|
126
|
-
_request.method = "GET"
|
127
|
-
return _request
|
128
|
-
|
129
|
-
def extract_data(pipeline_response):
|
130
|
-
deserialized = self._deserialize("OperationListResult", pipeline_response)
|
131
|
-
list_of_elem = deserialized.value
|
132
|
-
if cls:
|
133
|
-
list_of_elem = cls(list_of_elem) # type: ignore
|
134
|
-
return None, iter(list_of_elem)
|
135
|
-
|
136
|
-
def get_next(next_link=None):
|
137
|
-
_request = prepare_request(next_link)
|
138
|
-
|
139
|
-
_stream = False
|
140
|
-
pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
|
141
|
-
_request, stream=_stream, **kwargs
|
142
|
-
)
|
143
|
-
response = pipeline_response.http_response
|
144
|
-
|
145
|
-
if response.status_code not in [200]:
|
146
|
-
map_error(status_code=response.status_code, response=response, error_map=error_map)
|
147
|
-
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
|
148
|
-
|
149
|
-
return pipeline_response
|
150
|
-
|
151
|
-
return ItemPaged(get_next, extract_data)
|
@@ -1,20 +0,0 @@
|
|
1
|
-
# ------------------------------------
|
2
|
-
# Copyright (c) Microsoft Corporation.
|
3
|
-
# Licensed under the MIT License.
|
4
|
-
# ------------------------------------
|
5
|
-
"""Customize generated code here.
|
6
|
-
|
7
|
-
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
|
8
|
-
"""
|
9
|
-
from typing import List
|
10
|
-
|
11
|
-
__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
|
12
|
-
|
13
|
-
|
14
|
-
def patch_sdk():
|
15
|
-
"""Do not remove from this file.
|
16
|
-
|
17
|
-
`patch_sdk` is a last resort escape hatch that allows you to do customizations
|
18
|
-
you can't accomplish using the techniques described in
|
19
|
-
https://aka.ms/azsdk/python/dpcodegen/python/customize
|
20
|
-
"""
|
@@ -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/skus")
|
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 SkusOperations:
|
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:`skus` 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.Sku"]:
|
87
|
-
"""Lists the available SKUs supported by Microsoft.Storage for given subscription.
|
88
|
-
|
89
|
-
:return: An iterator like instance of either Sku or the result of cls(response)
|
90
|
-
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.storage.v2017_10_01.models.Sku]
|
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.StorageSkuListResult] = 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("StorageSkuListResult", 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)
|