Skip to content

Commit 9d63a2d

Browse files
azure-sdkChenxiJiang333msyyc
authored
[AutoRelease] t2-storage-2024-06-27-00088(can only be merged by SDK owner) (#36262)
* code and test * update-changelog * Update CHANGELOG.md * update-testcase --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <[email protected]> Co-authored-by: Yuchao Yan <[email protected]>
1 parent a4dddb0 commit 9d63a2d

36 files changed

+109
-50
lines changed

sdk/storage/azure-mgmt-storage/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Release History
22

3+
## 21.2.1 (2024-06-27)
4+
5+
### Bugs Fixed
6+
7+
- Fix signature `maxpagesize` type of Operation StorageTaskAssignmentInstancesReportOperations.list from str to int
8+
- Fix signature `maxpagesize` type of Operation StorageTaskAssignmentsInstancesReportOperations.list from str to int
9+
- Fix signature `maxpagesize` type of Operation StorageTaskAssignmentsOperations.list from str to int
10+
311
## 21.2.0 (2024-06-17)
412

513
### Features Added

sdk/storage/azure-mgmt-storage/_meta.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"commit": "b22c642b361e6d6e7d72a2347a09b0bcf6075d70",
2+
"commit": "43f10d3b8bacd5fc6b01254b5050c613f26c3573",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/[email protected].16",
6+
"@autorest/[email protected].19",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/storage/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/[email protected].16 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/storage/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/[email protected].19 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/storage/resource-manager/readme.md",
1111
"package-2023-01": "2023-07-20 11:56:40 -0700 3e6b4ddca225530c27273d0f816466a905c0151b Microsoft.Storage/stable/2023-01-01/table.json",
1212
"package-2022-09": "2022-11-13 19:43:16 -0800 da0cfefaa0e6c237e1e3819f1cb2e11d7606878d Microsoft.Storage/stable/2022-09-01/table.json",
@@ -29,5 +29,5 @@
2929
"package-2016-12": "2020-05-21 10:20:08 +0200 db0f437ba79086e20570d648fe932c4266e7a7ed Microsoft.Storage/stable/2016-12-01/storage.json",
3030
"package-2016-01": "2019-06-26 12:38:19 -0400 26df0a691d94445b2c96d348f5ecc31f6f9a2099 Microsoft.Storage/stable/2016-01-01/storage.json",
3131
"package-2015-06": "2019-06-26 12:38:19 -0400 26df0a691d94445b2c96d348f5ecc31f6f9a2099 Microsoft.Storage/stable/2015-06-15/storage.json",
32-
"package-2023-05": "2024-06-04 20:39:42 -0700 09c187c9589a143a477ed02c6639e914a4818179 Microsoft.Storage/stable/2023-05-01/storageTaskAssignments.json"
32+
"package-2023-05": "2024-06-26 09:32:01 -0700 db377f47cf7bf53bf077aa42967112a9783980d5 Microsoft.Storage/stable/2023-05-01/storageTaskAssignments.json"
3333
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"AssetsRepo": "Azure/azure-sdk-assets",
3+
"AssetsRepoPrefixPath": "python",
4+
"TagPrefix": "python/storage/azure-mgmt-storage",
5+
"Tag": "python/storage/azure-mgmt-storage_745b7ea500"
6+
}

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/_serialization.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1447,7 +1447,7 @@ def _deserialize(self, target_obj, data):
14471447
elif isinstance(response, type) and issubclass(response, Enum):
14481448
return self.deserialize_enum(data, response)
14491449

1450-
if data is None:
1450+
if data is None or data is CoreNull:
14511451
return data
14521452
try:
14531453
attributes = response._attribute_map # type: ignore

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# license information.
66
# --------------------------------------------------------------------------
77

8-
VERSION = "21.2.0"
8+
VERSION = "21.2.1"

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2015_06_15/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "21.2.0"
9+
VERSION = "21.2.1"

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2016_01_01/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "21.2.0"
9+
VERSION = "21.2.1"

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2016_12_01/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "21.2.0"
9+
VERSION = "21.2.1"

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2017_06_01/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "21.2.0"
9+
VERSION = "21.2.1"

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2017_10_01/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "21.2.0"
9+
VERSION = "21.2.1"

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2018_02_01/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "21.2.0"
9+
VERSION = "21.2.1"

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2018_03_01_preview/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "21.2.0"
9+
VERSION = "21.2.1"

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2018_07_01/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "21.2.0"
9+
VERSION = "21.2.1"

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2018_11_01/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "21.2.0"
9+
VERSION = "21.2.1"

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "21.2.0"
9+
VERSION = "21.2.1"

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "21.2.0"
9+
VERSION = "21.2.1"

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2020_08_01_preview/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "21.2.0"
9+
VERSION = "21.2.1"

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2021_01_01/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "21.2.0"
9+
VERSION = "21.2.1"

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2021_02_01/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "21.2.0"
9+
VERSION = "21.2.1"

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2021_04_01/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "21.2.0"
9+
VERSION = "21.2.1"

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2021_06_01/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "21.2.0"
9+
VERSION = "21.2.1"

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2021_08_01/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "21.2.0"
9+
VERSION = "21.2.1"

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2021_09_01/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "21.2.0"
9+
VERSION = "21.2.1"

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2022_05_01/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "21.2.0"
9+
VERSION = "21.2.1"

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2022_09_01/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "21.2.0"
9+
VERSION = "21.2.1"

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_01_01/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "21.2.0"
9+
VERSION = "21.2.1"

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "21.2.0"
9+
VERSION = "21.2.1"

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_storage_task_assignment_instances_report_operations.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def list(
6464
resource_group_name: str,
6565
account_name: str,
6666
storage_task_assignment_name: str,
67-
maxpagesize: Optional[str] = None,
67+
maxpagesize: Optional[int] = None,
6868
filter: Optional[str] = None,
6969
**kwargs: Any
7070
) -> AsyncIterable["_models.StorageTaskReportInstance"]:
@@ -83,7 +83,7 @@ def list(
8383
:type storage_task_assignment_name: str
8484
:param maxpagesize: Optional, specifies the maximum number of storage task assignment instances
8585
to be included in the list response. Default value is None.
86-
:type maxpagesize: str
86+
:type maxpagesize: int
8787
:param filter: Optional. When specified, it can be used to query using reporting properties.
8888
See `Constructing Filter Strings
8989
<https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#constructing-filter-strings>`_

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_storage_task_assignments_instances_report_operations.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def list(
6363
self,
6464
resource_group_name: str,
6565
account_name: str,
66-
maxpagesize: Optional[str] = None,
66+
maxpagesize: Optional[int] = None,
6767
filter: Optional[str] = None,
6868
**kwargs: Any
6969
) -> AsyncIterable["_models.StorageTaskReportInstance"]:
@@ -78,7 +78,7 @@ def list(
7878
:type account_name: str
7979
:param maxpagesize: Optional, specifies the maximum number of storage task assignment instances
8080
to be included in the list response. Default value is None.
81-
:type maxpagesize: str
81+
:type maxpagesize: int
8282
:param filter: Optional. When specified, it can be used to query using reporting properties.
8383
See `Constructing Filter Strings
8484
<https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#constructing-filter-strings>`_

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/aio/operations/_storage_task_assignments_operations.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
709709

710710
@distributed_trace
711711
def list(
712-
self, resource_group_name: str, account_name: str, maxpagesize: Optional[str] = None, **kwargs: Any
712+
self, resource_group_name: str, account_name: str, maxpagesize: Optional[int] = None, **kwargs: Any
713713
) -> AsyncIterable["_models.StorageTaskAssignment"]:
714714
"""List all the storage task assignments in an account.
715715
@@ -722,7 +722,7 @@ def list(
722722
:type account_name: str
723723
:param maxpagesize: Optional, specifies the maximum number of storage task assignment Ids to be
724724
included in the list response. Default value is None.
725-
:type maxpagesize: str
725+
:type maxpagesize: int
726726
:return: An iterator like instance of either StorageTaskAssignment or the result of
727727
cls(response)
728728
:rtype:

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_storage_task_assignment_instances_report_operations.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def build_list_request(
4747
storage_task_assignment_name: str,
4848
subscription_id: str,
4949
*,
50-
maxpagesize: Optional[str] = None,
50+
maxpagesize: Optional[int] = None,
5151
filter: Optional[str] = None,
5252
**kwargs: Any
5353
) -> HttpRequest:
@@ -84,7 +84,7 @@ def build_list_request(
8484

8585
# Construct parameters
8686
if maxpagesize is not None:
87-
_params["$maxpagesize"] = _SERIALIZER.query("maxpagesize", maxpagesize, "str")
87+
_params["$maxpagesize"] = _SERIALIZER.query("maxpagesize", maxpagesize, "int")
8888
if filter is not None:
8989
_params["$filter"] = _SERIALIZER.query("filter", filter, "str")
9090
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
@@ -121,7 +121,7 @@ def list(
121121
resource_group_name: str,
122122
account_name: str,
123123
storage_task_assignment_name: str,
124-
maxpagesize: Optional[str] = None,
124+
maxpagesize: Optional[int] = None,
125125
filter: Optional[str] = None,
126126
**kwargs: Any
127127
) -> Iterable["_models.StorageTaskReportInstance"]:
@@ -140,7 +140,7 @@ def list(
140140
:type storage_task_assignment_name: str
141141
:param maxpagesize: Optional, specifies the maximum number of storage task assignment instances
142142
to be included in the list response. Default value is None.
143-
:type maxpagesize: str
143+
:type maxpagesize: int
144144
:param filter: Optional. When specified, it can be used to query using reporting properties.
145145
See `Constructing Filter Strings
146146
<https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#constructing-filter-strings>`_

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_storage_task_assignments_instances_report_operations.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def build_list_request(
4646
account_name: str,
4747
subscription_id: str,
4848
*,
49-
maxpagesize: Optional[str] = None,
49+
maxpagesize: Optional[int] = None,
5050
filter: Optional[str] = None,
5151
**kwargs: Any
5252
) -> HttpRequest:
@@ -75,7 +75,7 @@ def build_list_request(
7575

7676
# Construct parameters
7777
if maxpagesize is not None:
78-
_params["$maxpagesize"] = _SERIALIZER.query("maxpagesize", maxpagesize, "str")
78+
_params["$maxpagesize"] = _SERIALIZER.query("maxpagesize", maxpagesize, "int")
7979
if filter is not None:
8080
_params["$filter"] = _SERIALIZER.query("filter", filter, "str")
8181
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
@@ -111,7 +111,7 @@ def list(
111111
self,
112112
resource_group_name: str,
113113
account_name: str,
114-
maxpagesize: Optional[str] = None,
114+
maxpagesize: Optional[int] = None,
115115
filter: Optional[str] = None,
116116
**kwargs: Any
117117
) -> Iterable["_models.StorageTaskReportInstance"]:
@@ -126,7 +126,7 @@ def list(
126126
:type account_name: str
127127
:param maxpagesize: Optional, specifies the maximum number of storage task assignment instances
128128
to be included in the list response. Default value is None.
129-
:type maxpagesize: str
129+
:type maxpagesize: int
130130
:param filter: Optional. When specified, it can be used to query using reporting properties.
131131
See `Constructing Filter Strings
132132
<https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#constructing-filter-strings>`_

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2023_05_01/operations/_storage_task_assignments_operations.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def build_list_request(
227227
account_name: str,
228228
subscription_id: str,
229229
*,
230-
maxpagesize: Optional[str] = None,
230+
maxpagesize: Optional[int] = None,
231231
**kwargs: Any
232232
) -> HttpRequest:
233233
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
@@ -255,7 +255,7 @@ def build_list_request(
255255

256256
# Construct parameters
257257
if maxpagesize is not None:
258-
_params["$maxpagesize"] = _SERIALIZER.query("maxpagesize", maxpagesize, "str")
258+
_params["$maxpagesize"] = _SERIALIZER.query("maxpagesize", maxpagesize, "int")
259259
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
260260

261261
# Construct headers
@@ -925,7 +925,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
925925

926926
@distributed_trace
927927
def list(
928-
self, resource_group_name: str, account_name: str, maxpagesize: Optional[str] = None, **kwargs: Any
928+
self, resource_group_name: str, account_name: str, maxpagesize: Optional[int] = None, **kwargs: Any
929929
) -> Iterable["_models.StorageTaskAssignment"]:
930930
"""List all the storage task assignments in an account.
931931
@@ -938,7 +938,7 @@ def list(
938938
:type account_name: str
939939
:param maxpagesize: Optional, specifies the maximum number of storage task assignment Ids to be
940940
included in the list response. Default value is None.
941-
:type maxpagesize: str
941+
:type maxpagesize: int
942942
:return: An iterator like instance of either StorageTaskAssignment or the result of
943943
cls(response)
944944
:rtype:
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
-e ../../../tools/azure-sdk-tools
22
aiohttp>=3.0; python_version >= '3.5'
33
azure-mgmt-network==19.0.0
4+
-e ../../resources/azure-mgmt-resource

0 commit comments

Comments
 (0)