Skip to content

Commit f59a585

Browse files
[AutoRelease] t2-batch-2024-02-29-16578(can only be merged by SDK owner) (#34526)
* code and test * Update CHANGELOG.md * Update pyproject.toml --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <[email protected]>
1 parent 75c3683 commit f59a585

File tree

101 files changed

+546
-134
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+546
-134
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[tool.azure-sdk-build]
22
pylint = false
33
pyright = false
4+
mypy = false
45
type_check_samples = false
56
verifytypes = false
67
ci_enabled = false

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

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

3+
## 17.3.0 (2024-03-19)
4+
5+
### Features Added
6+
7+
- Model Pool has a new parameter upgrade_policy
8+
- Model SupportedSku has a new parameter batch_support_end_of_life
9+
310
## 17.2.0 (2023-12-18)
411

512
### Features Added

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

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

sdk/batch/azure-mgmt-batch/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "python",
44
"TagPrefix": "python/batch/azure-mgmt-batch",
5-
"Tag": "python/batch/azure-mgmt-batch_44d6d4f74e"
5+
"Tag": "python/batch/azure-mgmt-batch_a0b3bb5717"
66
}

sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_batch_management_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class BatchManagementClient: # pylint: disable=client-accepts-api-version-keywo
6161
:type subscription_id: str
6262
:param base_url: Service URL. Default value is "https://management.azure.com".
6363
:type base_url: str
64-
:keyword api_version: Api Version. Default value is "2023-11-01". Note that overriding this
64+
:keyword api_version: Api Version. Default value is "2024-02-01". Note that overriding this
6565
default value may result in unsupported behavior.
6666
:paramtype api_version: str
6767
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no

sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ class BatchManagementClientConfiguration(Configuration): # pylint: disable=too-
3030
:param subscription_id: The Azure subscription ID. This is a GUID-formatted string (e.g.
3131
00000000-0000-0000-0000-000000000000). Required.
3232
:type subscription_id: str
33-
:keyword api_version: Api Version. Default value is "2023-11-01". Note that overriding this
33+
:keyword api_version: Api Version. Default value is "2024-02-01". Note that overriding this
3434
default value may result in unsupported behavior.
3535
:paramtype api_version: str
3636
"""
3737

3838
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
3939
super(BatchManagementClientConfiguration, self).__init__(**kwargs)
40-
api_version: str = kwargs.pop("api_version", "2023-11-01")
40+
api_version: str = kwargs.pop("api_version", "2024-02-01")
4141

4242
if credential is None:
4343
raise ValueError("Parameter 'credential' must not be None.")

sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_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 = "17.2.0"
9+
VERSION = "17.3.0"

sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/_batch_management_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class BatchManagementClient: # pylint: disable=client-accepts-api-version-keywo
6161
:type subscription_id: str
6262
:param base_url: Service URL. Default value is "https://management.azure.com".
6363
:type base_url: str
64-
:keyword api_version: Api Version. Default value is "2023-11-01". Note that overriding this
64+
:keyword api_version: Api Version. Default value is "2024-02-01". Note that overriding this
6565
default value may result in unsupported behavior.
6666
:paramtype api_version: str
6767
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no

sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/_configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ class BatchManagementClientConfiguration(Configuration): # pylint: disable=too-
3030
:param subscription_id: The Azure subscription ID. This is a GUID-formatted string (e.g.
3131
00000000-0000-0000-0000-000000000000). Required.
3232
:type subscription_id: str
33-
:keyword api_version: Api Version. Default value is "2023-11-01". Note that overriding this
33+
:keyword api_version: Api Version. Default value is "2024-02-01". Note that overriding this
3434
default value may result in unsupported behavior.
3535
:paramtype api_version: str
3636
"""
3737

3838
def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
3939
super(BatchManagementClientConfiguration, self).__init__(**kwargs)
40-
api_version: str = kwargs.pop("api_version", "2023-11-01")
40+
api_version: str = kwargs.pop("api_version", "2024-02-01")
4141

4242
if credential is None:
4343
raise ValueError("Parameter 'credential' must not be None.")

sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from ._models_py3 import AutoStorageBaseProperties
1717
from ._models_py3 import AutoStorageProperties
1818
from ._models_py3 import AutoUserSpecification
19+
from ._models_py3 import AutomaticOSUpgradePolicy
1920
from ._models_py3 import AzureBlobFileSystemConfiguration
2021
from ._models_py3 import AzureFileShareConfiguration
2122
from ._models_py3 import BatchAccount
@@ -92,6 +93,7 @@
9293
from ._models_py3 import ResizeOperationStatus
9394
from ._models_py3 import Resource
9495
from ._models_py3 import ResourceFile
96+
from ._models_py3 import RollingUpgradePolicy
9597
from ._models_py3 import ScaleSettings
9698
from ._models_py3 import SecurityProfile
9799
from ._models_py3 import ServiceArtifactReference
@@ -102,6 +104,7 @@
102104
from ._models_py3 import TaskContainerSettings
103105
from ._models_py3 import TaskSchedulingPolicy
104106
from ._models_py3 import UefiSettings
107+
from ._models_py3 import UpgradePolicy
105108
from ._models_py3 import UserAccount
106109
from ._models_py3 import UserAssignedIdentities
107110
from ._models_py3 import UserIdentity
@@ -148,6 +151,7 @@
148151
from ._batch_management_client_enums import PublicNetworkAccessType
149152
from ._batch_management_client_enums import ResourceIdentityType
150153
from ._batch_management_client_enums import StorageAccountType
154+
from ._batch_management_client_enums import UpgradeMode
151155
from ._patch import __all__ as _patch_all
152156
from ._patch import * # pylint: disable=unused-wildcard-import
153157
from ._patch import patch_sdk as _patch_sdk
@@ -163,6 +167,7 @@
163167
"AutoStorageBaseProperties",
164168
"AutoStorageProperties",
165169
"AutoUserSpecification",
170+
"AutomaticOSUpgradePolicy",
166171
"AzureBlobFileSystemConfiguration",
167172
"AzureFileShareConfiguration",
168173
"BatchAccount",
@@ -239,6 +244,7 @@
239244
"ResizeOperationStatus",
240245
"Resource",
241246
"ResourceFile",
247+
"RollingUpgradePolicy",
242248
"ScaleSettings",
243249
"SecurityProfile",
244250
"ServiceArtifactReference",
@@ -249,6 +255,7 @@
249255
"TaskContainerSettings",
250256
"TaskSchedulingPolicy",
251257
"UefiSettings",
258+
"UpgradePolicy",
252259
"UserAccount",
253260
"UserAssignedIdentities",
254261
"UserIdentity",
@@ -294,6 +301,7 @@
294301
"PublicNetworkAccessType",
295302
"ResourceIdentityType",
296303
"StorageAccountType",
304+
"UpgradeMode",
297305
]
298306
__all__.extend([p for p in _patch_all if p not in __all__])
299307
_patch_sdk()

0 commit comments

Comments
 (0)