Skip to content

Commit 352c191

Browse files
authored
[Batch] Data plane SDK v14.2.0 (#34898)
* Ran autorest for 2024-02-01 updates * Add autoosupgrade tests - Remove application package test - add sleep for timeout error * Update changelog
1 parent df2d397 commit 352c191

18 files changed

+745
-203
lines changed

sdk/batch/azure-batch/CHANGELOG.md

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

3+
## 14.2.0 (2024-02-01)
4+
5+
### Features Added
6+
7+
- Added `UpgradePolicy` to `CloudPool` definition for pool creation
8+
- Added `AutomaticOSUpgradePolicy` to include configuration parameters for automatic OS upgrades
9+
- Added `RollingUpgradePolicy` to include configuration parameters for rolling upgrades
10+
311
## 14.1.0 (2023-11-01)
412

513
### Features Added

sdk/batch/azure-batch/azure/batch/_batch_service_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def __init__(
6767
super(BatchServiceClient, self).__init__(self.config.credentials, self.config)
6868

6969
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
70-
self.api_version = '2023-11-01.18.0'
70+
self.api_version = '2024-02-01.19.0'
7171
self._serialize = Serializer(client_models)
7272
self._deserialize = Deserializer(client_models)
7373

sdk/batch/azure-batch/azure/batch/_version.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@
99
# regenerated.
1010
# --------------------------------------------------------------------------
1111

12-
VERSION = "14.1.0"
13-
12+
VERSION = "14.2.0"

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from ._models_py3 import ApplicationPackageReference
1919
from ._models_py3 import ApplicationSummary
2020
from ._models_py3 import AuthenticationTokenSettings
21+
from ._models_py3 import AutomaticOSUpgradePolicy
2122
from ._models_py3 import AutoPoolSpecification
2223
from ._models_py3 import AutoScaleRun
2324
from ._models_py3 import AutoScaleRunError
@@ -189,6 +190,7 @@
189190
from ._models_py3 import ResizeError
190191
from ._models_py3 import ResourceFile
191192
from ._models_py3 import ResourceStatistics
193+
from ._models_py3 import RollingUpgradePolicy
192194
from ._models_py3 import Schedule
193195
from ._models_py3 import SecurityProfile
194196
from ._models_py3 import ServiceArtifactReference
@@ -223,6 +225,7 @@
223225
from ._models_py3 import TaskUpdateOptions
224226
from ._models_py3 import TaskUpdateParameter
225227
from ._models_py3 import UefiSettings
228+
from ._models_py3 import UpgradePolicy
226229
from ._models_py3 import UploadBatchServiceLogsConfiguration
227230
from ._models_py3 import UploadBatchServiceLogsResult
228231
from ._models_py3 import UsageStatistics
@@ -244,6 +247,7 @@
244247
from ._models import ApplicationPackageReference
245248
from ._models import ApplicationSummary
246249
from ._models import AuthenticationTokenSettings
250+
from ._models import AutomaticOSUpgradePolicy
247251
from ._models import AutoPoolSpecification
248252
from ._models import AutoScaleRun
249253
from ._models import AutoScaleRunError
@@ -415,6 +419,7 @@
415419
from ._models import ResizeError
416420
from ._models import ResourceFile
417421
from ._models import ResourceStatistics
422+
from ._models import RollingUpgradePolicy
418423
from ._models import Schedule
419424
from ._models import SecurityProfile
420425
from ._models import ServiceArtifactReference
@@ -449,6 +454,7 @@
449454
from ._models import TaskUpdateOptions
450455
from ._models import TaskUpdateParameter
451456
from ._models import UefiSettings
457+
from ._models import UpgradePolicy
452458
from ._models import UploadBatchServiceLogsConfiguration
453459
from ._models import UploadBatchServiceLogsResult
454460
from ._models import UsageStatistics
@@ -502,6 +508,7 @@
502508
NetworkSecurityGroupRuleAccess,
503509
IPAddressProvisioningType,
504510
NodeCommunicationMode,
511+
UpgradeMode,
505512
PoolLifetimeOption,
506513
OnAllTasksComplete,
507514
OnTaskFailure,
@@ -537,6 +544,7 @@
537544
'ApplicationPackageReference',
538545
'ApplicationSummary',
539546
'AuthenticationTokenSettings',
547+
'AutomaticOSUpgradePolicy',
540548
'AutoPoolSpecification',
541549
'AutoScaleRun',
542550
'AutoScaleRunError',
@@ -708,6 +716,7 @@
708716
'ResizeError',
709717
'ResourceFile',
710718
'ResourceStatistics',
719+
'RollingUpgradePolicy',
711720
'Schedule',
712721
'SecurityProfile',
713722
'ServiceArtifactReference',
@@ -742,6 +751,7 @@
742751
'TaskUpdateOptions',
743752
'TaskUpdateParameter',
744753
'UefiSettings',
754+
'UpgradePolicy',
745755
'UploadBatchServiceLogsConfiguration',
746756
'UploadBatchServiceLogsResult',
747757
'UsageStatistics',
@@ -794,6 +804,7 @@
794804
'NetworkSecurityGroupRuleAccess',
795805
'IPAddressProvisioningType',
796806
'NodeCommunicationMode',
807+
'UpgradeMode',
797808
'PoolLifetimeOption',
798809
'OnAllTasksComplete',
799810
'OnTaskFailure',

sdk/batch/azure-batch/azure/batch/models/_batch_service_client_enums.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,13 @@ class NodeCommunicationMode(str, Enum):
179179
simplified = "simplified" #: Nodes using the simplified communication mode require outbound TCP communication on port 443 to the "BatchNodeManagement.{region}" service tag. No open inbound ports are required.
180180

181181

182+
class UpgradeMode(str, Enum):
183+
184+
automatic = "automatic" #: All virtual machines in the scale set are automatically updated at the same time.
185+
manual = "manual" #: You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.
186+
rolling = "rolling" #: The existing instances in a scale set are brought down in batches to be upgraded. Once the upgraded batch is complete, the instances will begin taking traffic again and the next batch will begin. This continues until all instances brought up-to-date.
187+
188+
182189
class PoolLifetimeOption(str, Enum):
183190

184191
job_schedule = "jobschedule" #: The Pool exists for the lifetime of the Job Schedule. The Batch Service creates the Pool when it creates the first Job on the schedule. You may apply this option only to Job Schedules, not to Jobs.
@@ -310,6 +317,7 @@ class ComputeNodeState(str, Enum):
310317
leaving_pool = "leavingpool" #: The Compute Node is leaving the Pool, either because the user explicitly removed it or because the Pool is resizing or autoscaling down.
311318
offline = "offline" #: The Compute Node is not currently running a Task, and scheduling of new Tasks to the Compute Node is disabled.
312319
preempted = "preempted" #: The Spot/Low-priority Compute Node has been preempted. Tasks which were running on the Compute Node when it was preempted will be rescheduled when another Compute Node becomes available.
320+
upgrading_os = "upgradingos" #: The Compute Node is undergoing an OS upgrade operation.
313321

314322

315323
class SchedulingState(str, Enum):

0 commit comments

Comments
 (0)