Skip to content

Commit 839cbb3

Browse files
[AutoRelease] t2-storage-2025-04-03-73783(can only be merged by SDK owner) (#40358)
* code and test * Update version to 22.2.0 and changelog * Update CHANGELOG.md --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <[email protected]>
1 parent 81c99a0 commit 839cbb3

17 files changed

+35
-31
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release History
22

3+
## 22.2.0 (2025-04-21)
4+
5+
### Features Added
6+
- Enum `ProvisioningState` added member `ACCEPTED`
7+
38
## 22.1.1 (2025-02-27)
49

510
### Bugs Fixed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pip install azure-identity
2424

2525
### Authentication
2626

27-
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configure of following environment variables.
27+
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configuration of the following environment variables.
2828

2929
- `AZURE_CLIENT_ID` for Azure client ID.
3030
- `AZURE_TENANT_ID` for Azure tenant ID.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"commit": "2d73bd7fb1c68a8b6829fac1760bd0fc84ca5554",
2+
"commit": "2ddcc49aa62928eff65f3864a88832fb4959166c",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# license information.
66
# --------------------------------------------------------------------------
77

8-
VERSION = "22.1.1"
8+
VERSION = "22.2.0"

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

Lines changed: 1 addition & 1 deletion
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 = "22.1.1"
9+
VERSION = "22.2.0"

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

Lines changed: 1 addition & 1 deletion
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 = "22.1.1"
9+
VERSION = "22.2.0"

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

Lines changed: 1 addition & 1 deletion
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 = "22.1.1"
9+
VERSION = "22.2.0"

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

Lines changed: 1 addition & 1 deletion
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 = "22.1.1"
9+
VERSION = "22.2.0"

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/aio/operations/_storage_accounts_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1399,7 +1399,7 @@ async def begin_failover(
13991399
primary use case of a Planned Failover is disaster recovery testing drills. This type of
14001400
failover is invoked by setting FailoverType parameter to 'Planned'. Learn more about the
14011401
failover options here-
1402-
https://learn.microsoft.com/en-us/azure/storage/common/storage-disaster-recovery-guidance.
1402+
https://learn.microsoft.com/azure/storage/common/storage-disaster-recovery-guidance.
14031403
14041404
:param resource_group_name: The name of the resource group within the user's subscription. The
14051405
name is case insensitive. Required.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def list(
8484
:type maxpagesize: int
8585
:param filter: Optional. When specified, it can be used to query using reporting properties.
8686
See `Constructing Filter Strings
87-
<https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#constructing-filter-strings>`_
87+
<https://learn.microsoft.com/rest/api/storageservices/querying-tables-and-entities#constructing-filter-strings>`_
8888
for details. Default value is None.
8989
:type filter: str
9090
:return: An iterator like instance of either StorageTaskReportInstance or the result of

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def list(
7979
:type maxpagesize: int
8080
:param filter: Optional. When specified, it can be used to query using reporting properties.
8181
See `Constructing Filter Strings
82-
<https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#constructing-filter-strings>`_
82+
<https://learn.microsoft.com/rest/api/storageservices/querying-tables-and-entities#constructing-filter-strings>`_
8383
for details. Default value is None.
8484
:type filter: str
8585
:return: An iterator like instance of either StorageTaskReportInstance or the result of

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/models/_models_py3.py

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5098,7 +5098,7 @@ class ManagementPolicy(Resource):
50985098
:ivar last_modified_time: Returns the date and time the ManagementPolicies was last modified.
50995099
:vartype last_modified_time: ~datetime.datetime
51005100
:ivar policy: The Storage Account ManagementPolicy, in JSON format. See more details in:
5101-
https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
5101+
https://learn.microsoft.com/azure/storage/blobs/lifecycle-management-overview.
51025102
:vartype policy: ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicySchema
51035103
"""
51045104

@@ -5120,7 +5120,7 @@ class ManagementPolicy(Resource):
51205120
def __init__(self, *, policy: Optional["_models.ManagementPolicySchema"] = None, **kwargs: Any) -> None:
51215121
"""
51225122
:keyword policy: The Storage Account ManagementPolicy, in JSON format. See more details in:
5123-
https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
5123+
https://learn.microsoft.com/azure/storage/blobs/lifecycle-management-overview.
51245124
:paramtype policy: ~azure.mgmt.storage.v2024_01_01.models.ManagementPolicySchema
51255125
"""
51265126
super().__init__(**kwargs)
@@ -5379,13 +5379,12 @@ def __init__(
53795379

53805380
class ManagementPolicySchema(_serialization.Model):
53815381
"""The Storage Account ManagementPolicies Rules. See more details in:
5382-
https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
5382+
https://learn.microsoft.com/azure/storage/blobs/lifecycle-management-overview.
53835383
53845384
All required parameters must be populated in order to send to server.
53855385
53865386
:ivar rules: The Storage Account ManagementPolicies Rules. See more details in:
5387-
https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
5388-
Required.
5387+
https://learn.microsoft.com/azure/storage/blobs/lifecycle-management-overview. Required.
53895388
:vartype rules: list[~azure.mgmt.storage.v2024_01_01.models.ManagementPolicyRule]
53905389
"""
53915390

@@ -5400,8 +5399,7 @@ class ManagementPolicySchema(_serialization.Model):
54005399
def __init__(self, *, rules: List["_models.ManagementPolicyRule"], **kwargs: Any) -> None:
54015400
"""
54025401
:keyword rules: The Storage Account ManagementPolicies Rules. See more details in:
5403-
https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
5404-
Required.
5402+
https://learn.microsoft.com/azure/storage/blobs/lifecycle-management-overview. Required.
54055403
:paramtype rules: list[~azure.mgmt.storage.v2024_01_01.models.ManagementPolicyRule]
54065404
"""
54075405
super().__init__(**kwargs)
@@ -7598,8 +7596,8 @@ class StorageAccount(TrackedResource):
75987596
:vartype extended_location: ~azure.mgmt.storage.v2024_01_01.models.ExtendedLocation
75997597
:ivar provisioning_state: Gets the status of the storage account at the time the operation was
76007598
called. Known values are: "Creating", "ResolvingDNS", "Succeeded",
7601-
"ValidateSubscriptionQuotaBegin", "ValidateSubscriptionQuotaEnd", "Deleting", "Canceled", and
7602-
"Failed".
7599+
"ValidateSubscriptionQuotaBegin", "ValidateSubscriptionQuotaEnd", "Accepted", "Deleting",
7600+
"Canceled", and "Failed".
76037601
:vartype provisioning_state: str or ~azure.mgmt.storage.v2024_01_01.models.ProvisioningState
76047602
:ivar primary_endpoints: Gets the URLs that are used to perform a retrieval of a public blob,
76057603
queue, or table object. Note that Standard_ZRS and Premium_LRS accounts only return the blob
@@ -9127,7 +9125,7 @@ class StorageTaskAssignmentProperties(_serialization.Model):
91279125
:vartype report: ~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignmentReport
91289126
:ivar provisioning_state: Represents the provisioning state of the storage task assignment.
91299127
Known values are: "Creating", "ResolvingDNS", "Succeeded", "ValidateSubscriptionQuotaBegin",
9130-
"ValidateSubscriptionQuotaEnd", "Deleting", "Canceled", and "Failed".
9128+
"ValidateSubscriptionQuotaEnd", "Accepted", "Deleting", "Canceled", and "Failed".
91319129
:vartype provisioning_state: str or ~azure.mgmt.storage.v2024_01_01.models.ProvisioningState
91329130
:ivar run_status: Run status of storage task assignment.
91339131
:vartype run_status: ~azure.mgmt.storage.v2024_01_01.models.StorageTaskReportProperties
@@ -9319,7 +9317,7 @@ class StorageTaskAssignmentUpdateProperties(_serialization.Model):
93199317
:vartype report: ~azure.mgmt.storage.v2024_01_01.models.StorageTaskAssignmentUpdateReport
93209318
:ivar provisioning_state: Represents the provisioning state of the storage task assignment.
93219319
Known values are: "Creating", "ResolvingDNS", "Succeeded", "ValidateSubscriptionQuotaBegin",
9322-
"ValidateSubscriptionQuotaEnd", "Deleting", "Canceled", and "Failed".
9320+
"ValidateSubscriptionQuotaEnd", "Accepted", "Deleting", "Canceled", and "Failed".
93239321
:vartype provisioning_state: str or ~azure.mgmt.storage.v2024_01_01.models.ProvisioningState
93249322
:ivar run_status: Run status of storage task assignment.
93259323
:vartype run_status: ~azure.mgmt.storage.v2024_01_01.models.StorageTaskReportProperties
@@ -9446,32 +9444,32 @@ class StorageTaskReportProperties(_serialization.Model):
94469444
:ivar start_time: Start time of the run instance. Filter options such as startTime gt
94479445
'2023-06-26T20:51:24.4494016Z' and other comparison operators can be used as described for
94489446
DateTime properties in
9449-
https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators. # pylint: disable=line-too-long
9447+
https://learn.microsoft.com/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators.
94509448
:vartype start_time: str
94519449
:ivar finish_time: End time of the run instance. Filter options such as startTime gt
94529450
'2023-06-26T20:51:24.4494016Z' and other comparison operators can be used as described for
94539451
DateTime properties in
9454-
https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators. # pylint: disable=line-too-long
9452+
https://learn.microsoft.com/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators.
94559453
:vartype finish_time: str
94569454
:ivar objects_targeted_count: Total number of objects that meet the condition as defined in the
94579455
storage task assignment execution context. Filter options such as objectsTargetedCount gt 50
94589456
and other comparison operators can be used as described for Numerical properties in
9459-
https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators. # pylint: disable=line-too-long
9457+
https://learn.microsoft.com/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators.
94609458
:vartype objects_targeted_count: str
94619459
:ivar objects_operated_on_count: Total number of objects that meet the storage tasks condition
94629460
and were operated upon. Filter options such as objectsOperatedOnCount ge 100 and other
94639461
comparison operators can be used as described for Numerical properties in
9464-
https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators. # pylint: disable=line-too-long
9462+
https://learn.microsoft.com/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators.
94659463
:vartype objects_operated_on_count: str
94669464
:ivar object_failed_count: Total number of objects where task operation failed when was
94679465
attempted. Filter options such as objectFailedCount eq 0 and other comparison operators can be
94689466
used as described for Numerical properties in
9469-
https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators. # pylint: disable=line-too-long
9467+
https://learn.microsoft.com/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators.
94709468
:vartype object_failed_count: str
94719469
:ivar objects_succeeded_count: Total number of objects where task operation succeeded when was
94729470
attempted.Filter options such as objectsSucceededCount gt 150 and other comparison operators
94739471
can be used as described for Numerical properties in
9474-
https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators. # pylint: disable=line-too-long
9472+
https://learn.microsoft.com/rest/api/storageservices/querying-tables-and-entities#supported-comparison-operators.
94759473
:vartype objects_succeeded_count: str
94769474
:ivar run_status_error: Well known Azure Storage error code that represents the error
94779475
encountered during execution of the run instance.

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/models/_storage_management_client_enums.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,7 @@ class ProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
498498
SUCCEEDED = "Succeeded"
499499
VALIDATE_SUBSCRIPTION_QUOTA_BEGIN = "ValidateSubscriptionQuotaBegin"
500500
VALIDATE_SUBSCRIPTION_QUOTA_END = "ValidateSubscriptionQuotaEnd"
501+
ACCEPTED = "Accepted"
501502
DELETING = "Deleting"
502503
CANCELED = "Canceled"
503504
FAILED = "Failed"

sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2024_01_01/operations/_storage_accounts_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2000,7 +2000,7 @@ def begin_failover(
20002000
primary use case of a Planned Failover is disaster recovery testing drills. This type of
20012001
failover is invoked by setting FailoverType parameter to 'Planned'. Learn more about the
20022002
failover options here-
2003-
https://learn.microsoft.com/en-us/azure/storage/common/storage-disaster-recovery-guidance.
2003+
https://learn.microsoft.com/azure/storage/common/storage-disaster-recovery-guidance.
20042004
20052005
:param resource_group_name: The name of the resource group within the user's subscription. The
20062006
name is case insensitive. Required.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def list(
141141
:type maxpagesize: int
142142
:param filter: Optional. When specified, it can be used to query using reporting properties.
143143
See `Constructing Filter Strings
144-
<https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#constructing-filter-strings>`_
144+
<https://learn.microsoft.com/rest/api/storageservices/querying-tables-and-entities#constructing-filter-strings>`_
145145
for details. Default value is None.
146146
:type filter: str
147147
:return: An iterator like instance of either StorageTaskReportInstance or the result of

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def list(
127127
:type maxpagesize: int
128128
:param filter: Optional. When specified, it can be used to query using reporting properties.
129129
See `Constructing Filter Strings
130-
<https://learn.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#constructing-filter-strings>`_
130+
<https://learn.microsoft.com/rest/api/storageservices/querying-tables-and-entities#constructing-filter-strings>`_
131131
for details. Default value is None.
132132
:type filter: str
133133
:return: An iterator like instance of either StorageTaskReportInstance or the result of

sdk/storage/azure-mgmt-storage/generated_samples/table_operation_put_or_patch_acls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def main():
3030
subscription_id="{subscription-id}",
3131
)
3232

33-
response = client.table.update(
33+
response = client.table.create(
3434
resource_group_name="res3376",
3535
account_name="sto328",
3636
table_name="table6185",

0 commit comments

Comments
 (0)