Skip to content

Commit 8d513b2

Browse files
00Kai0SDKAuto
and
SDKAuto
authored
T1 batch 2021 01 28 (Azure#16388)
* CodeGen from PR 12563 in Azure/azure-rest-api-specs Enable python track2 pipeline (Azure#12563) * test,version,CHANGELOG * fix test * fix changelog Co-authored-by: SDKAuto <[email protected]>
1 parent e13e462 commit 8d513b2

27 files changed

+1935
-1569
lines changed

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
11
# Release History
2+
3+
## 10.0.0 (2021-01-28)
4+
5+
**Features**
6+
7+
- Added new extensions property to VirtualMachineConfiguration on pools to specify virtual machine extensions for nodes
8+
- Added the ability to specify availability zones using a new property node_placement_configuration on VirtualMachineConfiguration
9+
- Added a new identity property on Pool to specify a managed identity
10+
- Added a new user_assigned_identities on BatchAccountIdentity to specify a user managed identity
11+
- Added certificate operation method PoolOperations.create
12+
- Added certificate operation method CertificateOperations.create
13+
14+
**Breaking changes**
15+
16+
- Removed certificate operation method PoolOperations.begin_create. Certificate operations are not long running operations so this was incorrect.
17+
- Removed certificate operation method CertificateOperations.begin_create. Certificate operations are not long running operations so this was incorrect.
18+
219
## 9.0.0 (2020-05-29)
320
### REST API version
421
- This version targets REST API version 2020-05-01.

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
@@ -66,7 +66,7 @@ def __init__(
6666
super(BatchManagementClient, self).__init__(self.config.credentials, self.config)
6767

6868
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
69-
self.api_version = '2020-05-01'
69+
self.api_version = '2021-01-01'
7070
self._serialize = Serializer(client_models)
7171
self._deserialize = Deserializer(client_models)
7272

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

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,13 @@
2525
from ._models_py3 import BatchAccount
2626
from ._models_py3 import BatchAccountCreateParameters
2727
from ._models_py3 import BatchAccountIdentity
28+
from ._models_py3 import BatchAccountIdentityUserAssignedIdentitiesValue
2829
from ._models_py3 import BatchAccountKeys
2930
from ._models_py3 import BatchAccountRegenerateKeyParameters
3031
from ._models_py3 import BatchAccountUpdateParameters
3132
from ._models_py3 import BatchLocationQuota
33+
from ._models_py3 import BatchPoolIdentity
34+
from ._models_py3 import BatchPoolIdentityUserAssignedIdentitiesValue
3235
from ._models_py3 import Certificate
3336
from ._models_py3 import CertificateBaseProperties
3437
from ._models_py3 import CertificateCreateOrUpdateParameters
@@ -56,6 +59,7 @@
5659
from ._models_py3 import NetworkConfiguration
5760
from ._models_py3 import NetworkSecurityGroupRule
5861
from ._models_py3 import NFSMountConfiguration
62+
from ._models_py3 import NodePlacementConfiguration
5963
from ._models_py3 import Operation
6064
from ._models_py3 import OperationDisplay
6165
from ._models_py3 import Pool
@@ -78,6 +82,7 @@
7882
from ._models_py3 import UserIdentity
7983
from ._models_py3 import VirtualMachineConfiguration
8084
from ._models_py3 import VirtualMachineFamilyCoreQuota
85+
from ._models_py3 import VMExtension
8186
from ._models_py3 import WindowsConfiguration
8287
from ._models_py3 import WindowsUserConfiguration
8388
except (SyntaxError, ImportError):
@@ -96,10 +101,13 @@
96101
from ._models import BatchAccount
97102
from ._models import BatchAccountCreateParameters
98103
from ._models import BatchAccountIdentity
104+
from ._models import BatchAccountIdentityUserAssignedIdentitiesValue
99105
from ._models import BatchAccountKeys
100106
from ._models import BatchAccountRegenerateKeyParameters
101107
from ._models import BatchAccountUpdateParameters
102108
from ._models import BatchLocationQuota
109+
from ._models import BatchPoolIdentity
110+
from ._models import BatchPoolIdentityUserAssignedIdentitiesValue
103111
from ._models import Certificate
104112
from ._models import CertificateBaseProperties
105113
from ._models import CertificateCreateOrUpdateParameters
@@ -127,6 +135,7 @@
127135
from ._models import NetworkConfiguration
128136
from ._models import NetworkSecurityGroupRule
129137
from ._models import NFSMountConfiguration
138+
from ._models import NodePlacementConfiguration
130139
from ._models import Operation
131140
from ._models import OperationDisplay
132141
from ._models import Pool
@@ -149,6 +158,7 @@
149158
from ._models import UserIdentity
150159
from ._models import VirtualMachineConfiguration
151160
from ._models import VirtualMachineFamilyCoreQuota
161+
from ._models import VMExtension
152162
from ._models import WindowsConfiguration
153163
from ._models import WindowsUserConfiguration
154164
from ._paged_models import ApplicationPackagePaged
@@ -176,6 +186,7 @@
176186
CachingType,
177187
StorageAccountType,
178188
DiskEncryptionTarget,
189+
NodePlacementPolicyType,
179190
ComputeNodeDeallocationOption,
180191
InterNodeCommunicationState,
181192
InboundEndpointProtocol,
@@ -188,8 +199,7 @@
188199
ContainerWorkingDirectory,
189200
CertificateStoreLocation,
190201
CertificateVisibility,
191-
ContainerType,
192-
ResourceType,
202+
PoolIdentityType,
193203
NameAvailabilityReason,
194204
)
195205

@@ -209,10 +219,13 @@
209219
'BatchAccount',
210220
'BatchAccountCreateParameters',
211221
'BatchAccountIdentity',
222+
'BatchAccountIdentityUserAssignedIdentitiesValue',
212223
'BatchAccountKeys',
213224
'BatchAccountRegenerateKeyParameters',
214225
'BatchAccountUpdateParameters',
215226
'BatchLocationQuota',
227+
'BatchPoolIdentity',
228+
'BatchPoolIdentityUserAssignedIdentitiesValue',
216229
'Certificate',
217230
'CertificateBaseProperties',
218231
'CertificateCreateOrUpdateParameters',
@@ -240,6 +253,7 @@
240253
'NetworkConfiguration',
241254
'NetworkSecurityGroupRule',
242255
'NFSMountConfiguration',
256+
'NodePlacementConfiguration',
243257
'Operation',
244258
'OperationDisplay',
245259
'Pool',
@@ -262,6 +276,7 @@
262276
'UserIdentity',
263277
'VirtualMachineConfiguration',
264278
'VirtualMachineFamilyCoreQuota',
279+
'VMExtension',
265280
'WindowsConfiguration',
266281
'WindowsUserConfiguration',
267282
'BatchAccountPaged',
@@ -288,6 +303,7 @@
288303
'CachingType',
289304
'StorageAccountType',
290305
'DiskEncryptionTarget',
306+
'NodePlacementPolicyType',
291307
'ComputeNodeDeallocationOption',
292308
'InterNodeCommunicationState',
293309
'InboundEndpointProtocol',
@@ -300,7 +316,6 @@
300316
'ContainerWorkingDirectory',
301317
'CertificateStoreLocation',
302318
'CertificateVisibility',
303-
'ContainerType',
304-
'ResourceType',
319+
'PoolIdentityType',
305320
'NameAvailabilityReason',
306321
]

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

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class PublicNetworkAccessType(str, Enum):
3333
class ResourceIdentityType(str, Enum):
3434

3535
system_assigned = "SystemAssigned" #: Batch account has a system assigned identity with it.
36+
user_assigned = "UserAssigned" #: Batch account has user assigned identities with it.
3637
none = "None" #: Batch account has no identity associated with it. Setting `None` in update account will remove existing identities.
3738

3839

@@ -118,6 +119,12 @@ class DiskEncryptionTarget(str, Enum):
118119
temporary_disk = "TemporaryDisk" #: The temporary disk on the compute node is encrypted. On Linux this encryption applies to other partitions (such as those on mounted data disks) when encryption occurs at boot time.
119120

120121

122+
class NodePlacementPolicyType(str, Enum):
123+
124+
regional = "Regional" #: All nodes in the pool will be allocated in the same region.
125+
zonal = "Zonal" #: Nodes in the pool will be spread across different zones with best effort balancing.
126+
127+
121128
class ComputeNodeDeallocationOption(str, Enum):
122129

123130
requeue = "Requeue" #: Terminate running task processes and requeue the tasks. The tasks will run again when a node is available. Remove nodes as soon as tasks have been terminated.
@@ -154,7 +161,7 @@ class IPAddressProvisioningType(str, Enum):
154161
class ComputeNodeFillType(str, Enum):
155162

156163
spread = "Spread" #: Tasks should be assigned evenly across all nodes in the pool.
157-
pack = "Pack" #: As many tasks as possible (maxTasksPerNode) should be assigned to each node in the pool before any tasks are assigned to the next node in the pool.
164+
pack = "Pack" #: As many tasks as possible (taskSlotsPerNode) should be assigned to each node in the pool before any tasks are assigned to the next node in the pool.
158165

159166

160167
class ElevationLevel(str, Enum):
@@ -194,14 +201,10 @@ class CertificateVisibility(str, Enum):
194201
remote_user = "RemoteUser" #: The certificate should be visible to the user accounts under which users remotely access the node.
195202

196203

197-
class ContainerType(str, Enum):
198-
199-
docker_compatible = "DockerCompatible" #: A Docker compatible container technology will be used to launch the containers.
200-
201-
202-
class ResourceType(str, Enum):
204+
class PoolIdentityType(str, Enum):
203205

204-
batch_accounts = "Microsoft.Batch/batchAccounts" #: The Batch account resource type.
206+
user_assigned = "UserAssigned" #: Batch pool has user assigned identities with it.
207+
none = "None" #: Batch pool has no identity associated with it. Setting `None` in update pool will remove existing identities.
205208

206209

207210
class NameAvailabilityReason(str, Enum):

0 commit comments

Comments
 (0)