Skip to content

Commit 609802a

Browse files
authored
[Batch] Data plane SDK v14.1.0 (#33627)
* ran autorest to get new updates * Remove imports to fix tests * Re-ran autorest command with --tag=package-2023-11 * All tests are passing * Add tests for new features * Remove code-model-v1 file * Update changelog * Reverting import removals
1 parent 555223a commit 609802a

21 files changed

+474
-52
lines changed

sdk/batch/azure-batch/CHANGELOG.md

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,40 @@
11
# Release History
22

3+
## 14.1.0 (2023-11-01)
4+
5+
### Features Added
6+
7+
- Added ResourceTags support to Pool Creation so users are able to specify resource tags for a pool. This feature is currently only supported for pool creation but will be updatable in the future.
8+
- Added `resourceTags` property to `PoolSpecification` definition
9+
- Added `resourceTags` property to `CloudPool` definition
10+
11+
- Added `SecurityProfile` support to Pool Creation. Trusted Launch provides advanced security to Guest OS preventing boot-kits/rootkits (like un-signed driver or kernel modification) to be introduced into boot-chain.
12+
- Added `serviceArtifactReference` and `securityProfile` property to `VirtualMachineConfiguration` definition
13+
14+
- Added `ServiceArtifactReference` and `OSDisk` support to Pool Creation
15+
- Added `standardssd_lrs` value to `StorageAccountType` enum
16+
- Added `caching`, `managedDisk`, `diskSizeGB`, and `writeAcceleratorEnabled` property to `NodePlacementPolicyType` definition
17+
- Added `scaleSetVmResourceID` property to `VirtualMachineInfo` definition
18+
319
## 14.0.0 (2023-05-01)
420

521
### Features Added
6-
- Added boolean property `enableAcceleratedNetworking` to `NetworkConfiguration`.
7-
- This property determines whether this pool should enable accelerated networking, with default value as False.
8-
- Whether this feature can be enabled is also related to whether an operating system/VM instance is supported, which should align with AcceleratedNetworking Policy ([AcceleratedNetworking Limitations and constraints](https://learn.microsoft.com/azure/virtual-network/accelerated-networking-overview?tabs=redhat#limitations-and-constraints)).
9-
- Added boolean property `enableAutomaticUpgrade` to `VMExtension`.
10-
- This property determines whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available.
11-
- Added a new property `type` to `ContainerConfiguration`. Possible values include: `dockerCompatible` and `criCompatible`.
22+
23+
- Added boolean property `enableAcceleratedNetworking` to `NetworkConfiguration`.
24+
- This property determines whether this pool should enable accelerated networking, with default value as False.
25+
- Whether this feature can be enabled is also related to whether an operating system/VM instance is supported, which should align with AcceleratedNetworking Policy ([AcceleratedNetworking Limitations and constraints](https://learn.microsoft.com/azure/virtual-network/accelerated-networking-overview?tabs=redhat#limitations-and-constraints)).
26+
- Added boolean property `enableAutomaticUpgrade` to `VMExtension`.
27+
- This property determines whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available.
28+
- Added a new property `type` to `ContainerConfiguration`. Possible values include: `dockerCompatible` and `criCompatible`.
1229

1330
### Breaking Changes
14-
- Removed lifetime statistics API. This API is no longer supported.
15-
- Removed `job.get_all_lifetime_statistics` API.
16-
- Removed `pool.get_all_lifetime_statistics` API.
31+
32+
- Removed lifetime statistics API. This API is no longer supported.
33+
- Removed `job.get_all_lifetime_statistics` API.
34+
- Removed `pool.get_all_lifetime_statistics` API.
1735

1836
### Other Changes
37+
1938
- Deprecating `CertificateOperations` related methods.
2039
- This operation is deprecating and will be removed after February 2024. Please use [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
2140

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

Lines changed: 2 additions & 2 deletions
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-05-01.17.0'
70+
self.api_version = '2023-11-01.18.0'
7171
self._serialize = Serializer(client_models)
7272
self._deserialize = Deserializer(client_models)
7373

@@ -92,4 +92,4 @@ def __init__(
9292
self.compute_node_extension = ComputeNodeExtensionOperations(
9393
self._client, self.config, self._serialize, self._deserialize)
9494

95-
patch_client()
95+
patch_client()

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

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

12-
VERSION = "14.0.0"
12+
VERSION = "14.1.0"
1313

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@
135135
from ._models_py3 import JobUpdateOptions
136136
from ._models_py3 import JobUpdateParameter
137137
from ._models_py3 import LinuxUserConfiguration
138+
from ._models_py3 import ManagedDisk
138139
from ._models_py3 import MetadataItem
139140
from ._models_py3 import MountConfiguration
140141
from ._models_py3 import MultiInstanceSettings
@@ -189,6 +190,8 @@
189190
from ._models_py3 import ResourceFile
190191
from ._models_py3 import ResourceStatistics
191192
from ._models_py3 import Schedule
193+
from ._models_py3 import SecurityProfile
194+
from ._models_py3 import ServiceArtifactReference
192195
from ._models_py3 import StartTask
193196
from ._models_py3 import StartTaskInformation
194197
from ._models_py3 import SubtaskInformation
@@ -219,6 +222,7 @@
219222
from ._models_py3 import TaskTerminateOptions
220223
from ._models_py3 import TaskUpdateOptions
221224
from ._models_py3 import TaskUpdateParameter
225+
from ._models_py3 import UefiSettings
222226
from ._models_py3 import UploadBatchServiceLogsConfiguration
223227
from ._models_py3 import UploadBatchServiceLogsResult
224228
from ._models_py3 import UsageStatistics
@@ -357,6 +361,7 @@
357361
from ._models import JobUpdateOptions
358362
from ._models import JobUpdateParameter
359363
from ._models import LinuxUserConfiguration
364+
from ._models import ManagedDisk
360365
from ._models import MetadataItem
361366
from ._models import MountConfiguration
362367
from ._models import MultiInstanceSettings
@@ -411,6 +416,8 @@
411416
from ._models import ResourceFile
412417
from ._models import ResourceStatistics
413418
from ._models import Schedule
419+
from ._models import SecurityProfile
420+
from ._models import ServiceArtifactReference
414421
from ._models import StartTask
415422
from ._models import StartTaskInformation
416423
from ._models import SubtaskInformation
@@ -441,6 +448,7 @@
441448
from ._models import TaskTerminateOptions
442449
from ._models import TaskUpdateOptions
443450
from ._models import TaskUpdateParameter
451+
from ._models import UefiSettings
444452
from ._models import UploadBatchServiceLogsConfiguration
445453
from ._models import UploadBatchServiceLogsResult
446454
from ._models import UsageStatistics
@@ -488,6 +496,7 @@
488496
DiskEncryptionTarget,
489497
NodePlacementPolicyType,
490498
DiffDiskPlacement,
499+
SecurityTypes,
491500
DynamicVNetAssignmentScope,
492501
InboundEndpointProtocol,
493502
NetworkSecurityGroupRuleAccess,
@@ -645,6 +654,7 @@
645654
'JobUpdateOptions',
646655
'JobUpdateParameter',
647656
'LinuxUserConfiguration',
657+
'ManagedDisk',
648658
'MetadataItem',
649659
'MountConfiguration',
650660
'MultiInstanceSettings',
@@ -699,6 +709,8 @@
699709
'ResourceFile',
700710
'ResourceStatistics',
701711
'Schedule',
712+
'SecurityProfile',
713+
'ServiceArtifactReference',
702714
'StartTask',
703715
'StartTaskInformation',
704716
'SubtaskInformation',
@@ -729,6 +741,7 @@
729741
'TaskTerminateOptions',
730742
'TaskUpdateOptions',
731743
'TaskUpdateParameter',
744+
'UefiSettings',
732745
'UploadBatchServiceLogsConfiguration',
733746
'UploadBatchServiceLogsResult',
734747
'UsageStatistics',
@@ -775,6 +788,7 @@
775788
'DiskEncryptionTarget',
776789
'NodePlacementPolicyType',
777790
'DiffDiskPlacement',
791+
'SecurityTypes',
778792
'DynamicVNetAssignmentScope',
779793
'InboundEndpointProtocol',
780794
'NetworkSecurityGroupRuleAccess',

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,9 @@ class CachingType(str, Enum):
114114

115115
class StorageAccountType(str, Enum):
116116

117-
standard_lrs = "standard_lrs" #: The data disk should use standard locally redundant storage.
118-
premium_lrs = "premium_lrs" #: The data disk should use premium locally redundant storage.
117+
standard_lrs = "standard_lrs" #: The data disk / OS disk should use standard locally redundant storage.
118+
premium_lrs = "premium_lrs" #: The data disk / OS disk should use premium locally redundant storage.
119+
standard_ssdlrs = "standardssd_lrs" #: The data disk / OS disk should use standard SSD locally redundant storage.
119120

120121

121122
class ContainerType(str, Enum):
@@ -141,6 +142,11 @@ class DiffDiskPlacement(str, Enum):
141142
cache_disk = "CacheDisk" #: The Ephemeral OS Disk is stored on the VM cache.
142143

143144

145+
class SecurityTypes(str, Enum):
146+
147+
trusted_launch = "trustedLaunch" #: Trusted launch protects against advanced and persistent attack techniques.
148+
149+
144150
class DynamicVNetAssignmentScope(str, Enum):
145151

146152
none = "none" #: No dynamic VNet assignment is enabled.

0 commit comments

Comments
 (0)