azure-mgmt-storage 23.1.0__py3-none-any.whl → 24.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 (62) hide show
  1. azure/mgmt/storage/_configuration.py +15 -4
  2. azure/mgmt/storage/_storage_management_client.py +18 -4
  3. azure/mgmt/storage/_utils/serialization.py +12 -14
  4. azure/mgmt/storage/_version.py +1 -1
  5. azure/mgmt/storage/aio/_configuration.py +15 -4
  6. azure/mgmt/storage/aio/_storage_management_client.py +18 -4
  7. azure/mgmt/storage/aio/operations/_blob_containers_operations.py +9 -5
  8. azure/mgmt/storage/aio/operations/_blob_inventory_policies_operations.py +3 -2
  9. azure/mgmt/storage/aio/operations/_blob_services_operations.py +3 -2
  10. azure/mgmt/storage/aio/operations/_deleted_accounts_operations.py +3 -2
  11. azure/mgmt/storage/aio/operations/_encryption_scopes_operations.py +3 -2
  12. azure/mgmt/storage/aio/operations/_file_services_operations.py +3 -2
  13. azure/mgmt/storage/aio/operations/_file_shares_operations.py +5 -3
  14. azure/mgmt/storage/aio/operations/_local_users_operations.py +3 -2
  15. azure/mgmt/storage/aio/operations/_management_policies_operations.py +3 -2
  16. azure/mgmt/storage/aio/operations/_network_security_perimeter_configurations_operations.py +3 -2
  17. azure/mgmt/storage/aio/operations/_object_replication_policies_operations.py +3 -2
  18. azure/mgmt/storage/aio/operations/_operations.py +3 -2
  19. azure/mgmt/storage/aio/operations/_private_endpoint_connections_operations.py +3 -2
  20. azure/mgmt/storage/aio/operations/_private_link_resources_operations.py +3 -2
  21. azure/mgmt/storage/aio/operations/_queue_operations.py +3 -2
  22. azure/mgmt/storage/aio/operations/_queue_services_operations.py +3 -2
  23. azure/mgmt/storage/aio/operations/_skus_operations.py +3 -2
  24. azure/mgmt/storage/aio/operations/_storage_accounts_operations.py +3 -2
  25. azure/mgmt/storage/aio/operations/_storage_task_assignment_instances_report_operations.py +3 -2
  26. azure/mgmt/storage/aio/operations/_storage_task_assignments_instances_report_operations.py +3 -2
  27. azure/mgmt/storage/aio/operations/_storage_task_assignments_operations.py +7 -6
  28. azure/mgmt/storage/aio/operations/_table_operations.py +7 -4
  29. azure/mgmt/storage/aio/operations/_table_services_operations.py +3 -2
  30. azure/mgmt/storage/aio/operations/_usages_operations.py +3 -2
  31. azure/mgmt/storage/models/__init__.py +4 -0
  32. azure/mgmt/storage/models/_models_py3.py +195 -93
  33. azure/mgmt/storage/operations/_blob_containers_operations.py +23 -19
  34. azure/mgmt/storage/operations/_blob_inventory_policies_operations.py +7 -6
  35. azure/mgmt/storage/operations/_blob_services_operations.py +6 -5
  36. azure/mgmt/storage/operations/_deleted_accounts_operations.py +5 -4
  37. azure/mgmt/storage/operations/_encryption_scopes_operations.py +7 -6
  38. azure/mgmt/storage/operations/_file_services_operations.py +8 -7
  39. azure/mgmt/storage/operations/_file_shares_operations.py +12 -10
  40. azure/mgmt/storage/operations/_local_users_operations.py +9 -8
  41. azure/mgmt/storage/operations/_management_policies_operations.py +6 -5
  42. azure/mgmt/storage/operations/_network_security_perimeter_configurations_operations.py +6 -5
  43. azure/mgmt/storage/operations/_object_replication_policies_operations.py +7 -6
  44. azure/mgmt/storage/operations/_operations.py +4 -3
  45. azure/mgmt/storage/operations/_private_endpoint_connections_operations.py +7 -6
  46. azure/mgmt/storage/operations/_private_link_resources_operations.py +4 -3
  47. azure/mgmt/storage/operations/_queue_operations.py +8 -7
  48. azure/mgmt/storage/operations/_queue_services_operations.py +6 -5
  49. azure/mgmt/storage/operations/_skus_operations.py +4 -3
  50. azure/mgmt/storage/operations/_storage_accounts_operations.py +21 -20
  51. azure/mgmt/storage/operations/_storage_task_assignment_instances_report_operations.py +5 -4
  52. azure/mgmt/storage/operations/_storage_task_assignments_instances_report_operations.py +4 -3
  53. azure/mgmt/storage/operations/_storage_task_assignments_operations.py +19 -23
  54. azure/mgmt/storage/operations/_table_operations.py +12 -9
  55. azure/mgmt/storage/operations/_table_services_operations.py +6 -5
  56. azure/mgmt/storage/operations/_usages_operations.py +4 -3
  57. {azure_mgmt_storage-23.1.0.dist-info → azure_mgmt_storage-24.0.0.dist-info}/METADATA +22 -21
  58. azure_mgmt_storage-24.0.0.dist-info/RECORD +73 -0
  59. azure_mgmt_storage-23.1.0.dist-info/RECORD +0 -73
  60. {azure_mgmt_storage-23.1.0.dist-info → azure_mgmt_storage-24.0.0.dist-info}/WHEEL +0 -0
  61. {azure_mgmt_storage-23.1.0.dist-info → azure_mgmt_storage-24.0.0.dist-info}/licenses/LICENSE +0 -0
  62. {azure_mgmt_storage-23.1.0.dist-info → azure_mgmt_storage-24.0.0.dist-info}/top_level.txt +0 -0
@@ -7,7 +7,7 @@
7
7
  # --------------------------------------------------------------------------
8
8
  from collections.abc import MutableMapping
9
9
  from io import IOBase
10
- from typing import Any, Callable, Dict, IO, Literal, Optional, TypeVar, Union, overload
10
+ from typing import Any, Callable, IO, Literal, Optional, TypeVar, Union, overload
11
11
 
12
12
  from azure.core import AsyncPipelineClient
13
13
  from azure.core.exceptions import (
@@ -34,7 +34,8 @@ from ...operations._queue_services_operations import (
34
34
  from .._configuration import StorageManagementClientConfiguration
35
35
 
36
36
  T = TypeVar("T")
37
- ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
37
+ ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]]
38
+ List = list
38
39
 
39
40
 
40
41
  class QueueServicesOperations:
@@ -6,7 +6,7 @@
6
6
  # Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  # --------------------------------------------------------------------------
8
8
  from collections.abc import MutableMapping
9
- from typing import Any, Callable, Dict, Optional, TypeVar
9
+ from typing import Any, Callable, Optional, TypeVar
10
10
  import urllib.parse
11
11
 
12
12
  from azure.core import AsyncPipelineClient
@@ -31,7 +31,8 @@ from ...operations._skus_operations import build_list_request
31
31
  from .._configuration import StorageManagementClientConfiguration
32
32
 
33
33
  T = TypeVar("T")
34
- ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
34
+ ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]]
35
+ List = list
35
36
 
36
37
 
37
38
  class SkusOperations:
@@ -8,7 +8,7 @@
8
8
  # --------------------------------------------------------------------------
9
9
  from collections.abc import MutableMapping
10
10
  from io import IOBase
11
- from typing import Any, AsyncIterator, Callable, Dict, IO, Literal, Optional, TypeVar, Union, cast, overload
11
+ from typing import Any, AsyncIterator, Callable, IO, Literal, Optional, TypeVar, Union, cast, overload
12
12
  import urllib.parse
13
13
 
14
14
  from azure.core import AsyncPipelineClient
@@ -57,7 +57,8 @@ from ...operations._storage_accounts_operations import (
57
57
  from .._configuration import StorageManagementClientConfiguration
58
58
 
59
59
  T = TypeVar("T")
60
- ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
60
+ ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]]
61
+ List = list
61
62
 
62
63
 
63
64
  class StorageAccountsOperations: # pylint: disable=too-many-public-methods
@@ -7,7 +7,7 @@
7
7
  # Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
8
  # --------------------------------------------------------------------------
9
9
  from collections.abc import MutableMapping
10
- from typing import Any, Callable, Dict, Optional, TypeVar
10
+ from typing import Any, Callable, Optional, TypeVar
11
11
  import urllib.parse
12
12
 
13
13
  from azure.core import AsyncPipelineClient
@@ -32,7 +32,8 @@ from ...operations._storage_task_assignment_instances_report_operations import b
32
32
  from .._configuration import StorageManagementClientConfiguration
33
33
 
34
34
  T = TypeVar("T")
35
- ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
35
+ ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]]
36
+ List = list
36
37
 
37
38
 
38
39
  class StorageTaskAssignmentInstancesReportOperations: # pylint: disable=name-too-long
@@ -7,7 +7,7 @@
7
7
  # Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
8
  # --------------------------------------------------------------------------
9
9
  from collections.abc import MutableMapping
10
- from typing import Any, Callable, Dict, Optional, TypeVar
10
+ from typing import Any, Callable, Optional, TypeVar
11
11
  import urllib.parse
12
12
 
13
13
  from azure.core import AsyncPipelineClient
@@ -32,7 +32,8 @@ from ...operations._storage_task_assignments_instances_report_operations import
32
32
  from .._configuration import StorageManagementClientConfiguration
33
33
 
34
34
  T = TypeVar("T")
35
- ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
35
+ ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]]
36
+ List = list
36
37
 
37
38
 
38
39
  class StorageTaskAssignmentsInstancesReportOperations: # pylint: disable=name-too-long
@@ -7,7 +7,7 @@
7
7
  # --------------------------------------------------------------------------
8
8
  from collections.abc import MutableMapping
9
9
  from io import IOBase
10
- from typing import Any, AsyncIterator, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload
10
+ from typing import Any, AsyncIterator, Callable, IO, Optional, TypeVar, Union, cast, overload
11
11
  import urllib.parse
12
12
 
13
13
  from azure.core import AsyncPipelineClient
@@ -43,7 +43,8 @@ from ...operations._storage_task_assignments_operations import (
43
43
  from .._configuration import StorageManagementClientConfiguration
44
44
 
45
45
  T = TypeVar("T")
46
- ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
46
+ ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]]
47
+ List = list
47
48
 
48
49
 
49
50
  class StorageTaskAssignmentsOperations:
@@ -722,7 +723,7 @@ class StorageTaskAssignmentsOperations:
722
723
 
723
724
  @distributed_trace
724
725
  def list(
725
- self, resource_group_name: str, account_name: str, maxpagesize: Optional[int] = None, **kwargs: Any
726
+ self, resource_group_name: str, account_name: str, top: Optional[int] = None, **kwargs: Any
726
727
  ) -> AsyncItemPaged["_models.StorageTaskAssignment"]:
727
728
  """List all the storage task assignments in an account.
728
729
 
@@ -733,9 +734,9 @@ class StorageTaskAssignmentsOperations:
733
734
  Storage account names must be between 3 and 24 characters in length and use numbers and
734
735
  lower-case letters only. Required.
735
736
  :type account_name: str
736
- :param maxpagesize: Optional, specifies the maximum number of storage task assignment Ids to be
737
+ :param top: Optional, specifies the maximum number of storage task assignment Ids to be
737
738
  included in the list response. Default value is None.
738
- :type maxpagesize: int
739
+ :type top: int
739
740
  :return: An iterator like instance of either StorageTaskAssignment or the result of
740
741
  cls(response)
741
742
  :rtype:
@@ -763,7 +764,7 @@ class StorageTaskAssignmentsOperations:
763
764
  resource_group_name=resource_group_name,
764
765
  account_name=account_name,
765
766
  subscription_id=self._config.subscription_id,
766
- maxpagesize=maxpagesize,
767
+ top=top,
767
768
  api_version=api_version,
768
769
  headers=_headers,
769
770
  params=_params,
@@ -7,7 +7,7 @@
7
7
  # --------------------------------------------------------------------------
8
8
  from collections.abc import MutableMapping
9
9
  from io import IOBase
10
- from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload
10
+ from typing import Any, Callable, IO, Optional, TypeVar, Union, overload
11
11
  import urllib.parse
12
12
 
13
13
  from azure.core import AsyncPipelineClient
@@ -39,7 +39,8 @@ from ...operations._table_operations import (
39
39
  from .._configuration import StorageManagementClientConfiguration
40
40
 
41
41
  T = TypeVar("T")
42
- ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
42
+ ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]]
43
+ List = list
43
44
 
44
45
 
45
46
  class TableOperations:
@@ -171,9 +172,10 @@ class TableOperations:
171
172
 
172
173
  api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
173
174
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
175
+ content_type = content_type if parameters else None
174
176
  cls: ClsType[_models.Table] = kwargs.pop("cls", None)
175
177
 
176
- content_type = content_type or "application/json"
178
+ content_type = content_type or "application/json" if parameters else None
177
179
  _json = None
178
180
  _content = None
179
181
  if isinstance(parameters, (IOBase, bytes)):
@@ -326,9 +328,10 @@ class TableOperations:
326
328
 
327
329
  api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version))
328
330
  content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
331
+ content_type = content_type if parameters else None
329
332
  cls: ClsType[_models.Table] = kwargs.pop("cls", None)
330
333
 
331
- content_type = content_type or "application/json"
334
+ content_type = content_type or "application/json" if parameters else None
332
335
  _json = None
333
336
  _content = None
334
337
  if isinstance(parameters, (IOBase, bytes)):
@@ -7,7 +7,7 @@
7
7
  # --------------------------------------------------------------------------
8
8
  from collections.abc import MutableMapping
9
9
  from io import IOBase
10
- from typing import Any, Callable, Dict, IO, Literal, Optional, TypeVar, Union, overload
10
+ from typing import Any, Callable, IO, Literal, Optional, TypeVar, Union, overload
11
11
 
12
12
  from azure.core import AsyncPipelineClient
13
13
  from azure.core.exceptions import (
@@ -34,7 +34,8 @@ from ...operations._table_services_operations import (
34
34
  from .._configuration import StorageManagementClientConfiguration
35
35
 
36
36
  T = TypeVar("T")
37
- ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
37
+ ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]]
38
+ List = list
38
39
 
39
40
 
40
41
  class TableServicesOperations:
@@ -6,7 +6,7 @@
6
6
  # Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  # --------------------------------------------------------------------------
8
8
  from collections.abc import MutableMapping
9
- from typing import Any, Callable, Dict, Optional, TypeVar
9
+ from typing import Any, Callable, Optional, TypeVar
10
10
  import urllib.parse
11
11
 
12
12
  from azure.core import AsyncPipelineClient
@@ -31,7 +31,8 @@ from ...operations._usages_operations import build_list_by_location_request
31
31
  from .._configuration import StorageManagementClientConfiguration
32
32
 
33
33
  T = TypeVar("T")
34
- ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
34
+ ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]]
35
+ List = list
35
36
 
36
37
 
37
38
  class UsagesOperations:
@@ -79,6 +79,7 @@ from ._models_py3 import ( # type: ignore
79
79
  FileShareLimits,
80
80
  FileSharePropertiesFileSharePaidBursting,
81
81
  FileShareRecommendations,
82
+ GeoPriorityReplicationStatus,
82
83
  GeoReplicationStats,
83
84
  IPRule,
84
85
  Identity,
@@ -135,6 +136,7 @@ from ._models_py3 import ( # type: ignore
135
136
  ObjectReplicationPolicy,
136
137
  ObjectReplicationPolicyFilter,
137
138
  ObjectReplicationPolicyPropertiesMetrics,
139
+ ObjectReplicationPolicyPropertiesPriorityReplication,
138
140
  ObjectReplicationPolicyRule,
139
141
  Operation,
140
142
  OperationDisplay,
@@ -368,6 +370,7 @@ __all__ = [
368
370
  "FileShareLimits",
369
371
  "FileSharePropertiesFileSharePaidBursting",
370
372
  "FileShareRecommendations",
373
+ "GeoPriorityReplicationStatus",
371
374
  "GeoReplicationStats",
372
375
  "IPRule",
373
376
  "Identity",
@@ -424,6 +427,7 @@ __all__ = [
424
427
  "ObjectReplicationPolicy",
425
428
  "ObjectReplicationPolicyFilter",
426
429
  "ObjectReplicationPolicyPropertiesMetrics",
430
+ "ObjectReplicationPolicyPropertiesPriorityReplication",
427
431
  "ObjectReplicationPolicyRule",
428
432
  "Operation",
429
433
  "OperationDisplay",