Skip to content

Commit 3c33194

Browse files
author
SDKAuto
committed
CodeGen from PR 14862 in Azure/azure-rest-api-specs
Merge 95bc64d4c349e9a79dc2031dead1bc40837ff5c9 into c2e43f8
1 parent f3aa604 commit 3c33194

19 files changed

+1099
-252
lines changed

sdk/batch/azure-mgmt-batch/MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
include _meta.json
12
recursive-include tests *.py *.yaml
23
include *.md
34
include azure/__init__.py
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"autorest": "V2",
3+
"use": "@microsoft.azure/autorest.python@~4.0.71",
4+
"commit": "51f2369aadb2ea7e64b0c2826e36ecc407b79332",
5+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6+
"autorest_command": "autorest specification/batch/resource-manager/readme.md --keep-version-file --multiapi --no-async --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk [email protected]/autorest.python@~4.0.71 --version=V2",
7+
"readme": "specification/batch/resource-manager/readme.md"
8+
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
# regenerated.
1010
# --------------------------------------------------------------------------
1111

12-
from ._configuration import BatchManagementClientConfiguration
13-
from ._batch_management_client import BatchManagementClient
14-
__all__ = ['BatchManagementClient', 'BatchManagementClientConfiguration']
12+
from ._configuration import BatchManagementConfiguration
13+
from ._batch_management import BatchManagement
14+
__all__ = ['BatchManagement', 'BatchManagementConfiguration']
1515

1616
from .version import VERSION
1717

sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_batch_management_client.py renamed to sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_batch_management.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from msrest.service_client import SDKClient
1313
from msrest import Serializer, Deserializer
1414

15-
from ._configuration import BatchManagementClientConfiguration
15+
from ._configuration import BatchManagementConfiguration
1616
from .operations import BatchAccountOperations
1717
from .operations import ApplicationPackageOperations
1818
from .operations import ApplicationOperations
@@ -25,11 +25,11 @@
2525
from . import models
2626

2727

28-
class BatchManagementClient(SDKClient):
29-
"""BatchManagementClient
28+
class BatchManagement(SDKClient):
29+
"""BatchManagement
3030
3131
:ivar config: Configuration for client.
32-
:vartype config: BatchManagementClientConfiguration
32+
:vartype config: BatchManagementConfiguration
3333
3434
:ivar batch_account: BatchAccount operations
3535
:vartype batch_account: azure.mgmt.batch.operations.BatchAccountOperations
@@ -62,11 +62,11 @@ class BatchManagementClient(SDKClient):
6262
def __init__(
6363
self, credentials, subscription_id, base_url=None):
6464

65-
self.config = BatchManagementClientConfiguration(credentials, subscription_id, base_url)
66-
super(BatchManagementClient, self).__init__(self.config.credentials, self.config)
65+
self.config = BatchManagementConfiguration(credentials, subscription_id, base_url)
66+
super(BatchManagement, 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 = '2021-01-01'
69+
self.api_version = '2021-06-01'
7070
self._serialize = Serializer(client_models)
7171
self._deserialize = Deserializer(client_models)
7272

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
from .version import VERSION
1414

1515

16-
class BatchManagementClientConfiguration(AzureConfiguration):
17-
"""Configuration for BatchManagementClient
16+
class BatchManagementConfiguration(AzureConfiguration):
17+
"""Configuration for BatchManagement
1818
Note that all parameters used to create this instance are saved as instance
1919
attributes.
2020
@@ -37,7 +37,7 @@ def __init__(
3737
if not base_url:
3838
base_url = 'https://management.azure.com'
3939

40-
super(BatchManagementClientConfiguration, self).__init__(base_url)
40+
super(BatchManagementConfiguration, self).__init__(base_url)
4141

4242
# Starting Autorest.Python 4.0.64, make connection pool activated by default
4343
self.keep_alive = True

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

Lines changed: 38 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,11 @@
2525
from ._models_py3 import BatchAccount
2626
from ._models_py3 import BatchAccountCreateParameters
2727
from ._models_py3 import BatchAccountIdentity
28-
from ._models_py3 import BatchAccountIdentityUserAssignedIdentitiesValue
2928
from ._models_py3 import BatchAccountKeys
3029
from ._models_py3 import BatchAccountRegenerateKeyParameters
3130
from ._models_py3 import BatchAccountUpdateParameters
3231
from ._models_py3 import BatchLocationQuota
3332
from ._models_py3 import BatchPoolIdentity
34-
from ._models_py3 import BatchPoolIdentityUserAssignedIdentitiesValue
3533
from ._models_py3 import Certificate
3634
from ._models_py3 import CertificateBaseProperties
3735
from ._models_py3 import CertificateCreateOrUpdateParameters
@@ -40,13 +38,17 @@
4038
from ._models_py3 import CheckNameAvailabilityResult
4139
from ._models_py3 import CIFSMountConfiguration
4240
from ._models_py3 import CloudServiceConfiguration
41+
from ._models_py3 import ComputeNodeIdentityReference
4342
from ._models_py3 import ContainerConfiguration
4443
from ._models_py3 import ContainerRegistry
4544
from ._models_py3 import DataDisk
4645
from ._models_py3 import DeleteCertificateError
4746
from ._models_py3 import DeploymentConfiguration
47+
from ._models_py3 import DiffDiskSettings
4848
from ._models_py3 import DiskEncryptionConfiguration
4949
from ._models_py3 import EncryptionProperties
50+
from ._models_py3 import EndpointDependency
51+
from ._models_py3 import EndpointDetail
5052
from ._models_py3 import EnvironmentSetting
5153
from ._models_py3 import FixedScaleSettings
5254
from ._models_py3 import ImageReference
@@ -62,6 +64,8 @@
6264
from ._models_py3 import NodePlacementConfiguration
6365
from ._models_py3 import Operation
6466
from ._models_py3 import OperationDisplay
67+
from ._models_py3 import OSDisk
68+
from ._models_py3 import OutboundEnvironmentEndpoint
6569
from ._models_py3 import Pool
6670
from ._models_py3 import PoolEndpointConfiguration
6771
from ._models_py3 import PrivateEndpoint
@@ -75,10 +79,13 @@
7579
from ._models_py3 import Resource
7680
from ._models_py3 import ResourceFile
7781
from ._models_py3 import ScaleSettings
82+
from ._models_py3 import SkuCapability
7883
from ._models_py3 import StartTask
84+
from ._models_py3 import SupportedSku
7985
from ._models_py3 import TaskContainerSettings
8086
from ._models_py3 import TaskSchedulingPolicy
8187
from ._models_py3 import UserAccount
88+
from ._models_py3 import UserAssignedIdentities
8289
from ._models_py3 import UserIdentity
8390
from ._models_py3 import VirtualMachineConfiguration
8491
from ._models_py3 import VirtualMachineFamilyCoreQuota
@@ -101,13 +108,11 @@
101108
from ._models import BatchAccount
102109
from ._models import BatchAccountCreateParameters
103110
from ._models import BatchAccountIdentity
104-
from ._models import BatchAccountIdentityUserAssignedIdentitiesValue
105111
from ._models import BatchAccountKeys
106112
from ._models import BatchAccountRegenerateKeyParameters
107113
from ._models import BatchAccountUpdateParameters
108114
from ._models import BatchLocationQuota
109115
from ._models import BatchPoolIdentity
110-
from ._models import BatchPoolIdentityUserAssignedIdentitiesValue
111116
from ._models import Certificate
112117
from ._models import CertificateBaseProperties
113118
from ._models import CertificateCreateOrUpdateParameters
@@ -116,13 +121,17 @@
116121
from ._models import CheckNameAvailabilityResult
117122
from ._models import CIFSMountConfiguration
118123
from ._models import CloudServiceConfiguration
124+
from ._models import ComputeNodeIdentityReference
119125
from ._models import ContainerConfiguration
120126
from ._models import ContainerRegistry
121127
from ._models import DataDisk
122128
from ._models import DeleteCertificateError
123129
from ._models import DeploymentConfiguration
130+
from ._models import DiffDiskSettings
124131
from ._models import DiskEncryptionConfiguration
125132
from ._models import EncryptionProperties
133+
from ._models import EndpointDependency
134+
from ._models import EndpointDetail
126135
from ._models import EnvironmentSetting
127136
from ._models import FixedScaleSettings
128137
from ._models import ImageReference
@@ -138,6 +147,8 @@
138147
from ._models import NodePlacementConfiguration
139148
from ._models import Operation
140149
from ._models import OperationDisplay
150+
from ._models import OSDisk
151+
from ._models import OutboundEnvironmentEndpoint
141152
from ._models import Pool
142153
from ._models import PoolEndpointConfiguration
143154
from ._models import PrivateEndpoint
@@ -151,10 +162,13 @@
151162
from ._models import Resource
152163
from ._models import ResourceFile
153164
from ._models import ScaleSettings
165+
from ._models import SkuCapability
154166
from ._models import StartTask
167+
from ._models import SupportedSku
155168
from ._models import TaskContainerSettings
156169
from ._models import TaskSchedulingPolicy
157170
from ._models import UserAccount
171+
from ._models import UserAssignedIdentities
158172
from ._models import UserIdentity
159173
from ._models import VirtualMachineConfiguration
160174
from ._models import VirtualMachineFamilyCoreQuota
@@ -166,11 +180,15 @@
166180
from ._paged_models import BatchAccountPaged
167181
from ._paged_models import CertificatePaged
168182
from ._paged_models import OperationPaged
183+
from ._paged_models import OutboundEnvironmentEndpointPaged
169184
from ._paged_models import PoolPaged
170185
from ._paged_models import PrivateEndpointConnectionPaged
171186
from ._paged_models import PrivateLinkResourcePaged
172-
from ._batch_management_client_enums import (
187+
from ._paged_models import SupportedSkuPaged
188+
from ._batch_management_enums import (
189+
AutoStorageAuthenticationMode,
173190
KeySource,
191+
AuthenticationMode,
174192
PoolAllocationMode,
175193
PublicNetworkAccessType,
176194
ResourceIdentityType,
@@ -187,6 +205,7 @@
187205
StorageAccountType,
188206
DiskEncryptionTarget,
189207
NodePlacementPolicyType,
208+
DiffDiskPlacement,
190209
ComputeNodeDeallocationOption,
191210
InterNodeCommunicationState,
192211
InboundEndpointProtocol,
@@ -219,13 +238,11 @@
219238
'BatchAccount',
220239
'BatchAccountCreateParameters',
221240
'BatchAccountIdentity',
222-
'BatchAccountIdentityUserAssignedIdentitiesValue',
223241
'BatchAccountKeys',
224242
'BatchAccountRegenerateKeyParameters',
225243
'BatchAccountUpdateParameters',
226244
'BatchLocationQuota',
227245
'BatchPoolIdentity',
228-
'BatchPoolIdentityUserAssignedIdentitiesValue',
229246
'Certificate',
230247
'CertificateBaseProperties',
231248
'CertificateCreateOrUpdateParameters',
@@ -234,13 +251,17 @@
234251
'CheckNameAvailabilityResult',
235252
'CIFSMountConfiguration',
236253
'CloudServiceConfiguration',
254+
'ComputeNodeIdentityReference',
237255
'ContainerConfiguration',
238256
'ContainerRegistry',
239257
'DataDisk',
240258
'DeleteCertificateError',
241259
'DeploymentConfiguration',
260+
'DiffDiskSettings',
242261
'DiskEncryptionConfiguration',
243262
'EncryptionProperties',
263+
'EndpointDependency',
264+
'EndpointDetail',
244265
'EnvironmentSetting',
245266
'FixedScaleSettings',
246267
'ImageReference',
@@ -256,6 +277,8 @@
256277
'NodePlacementConfiguration',
257278
'Operation',
258279
'OperationDisplay',
280+
'OSDisk',
281+
'OutboundEnvironmentEndpoint',
259282
'Pool',
260283
'PoolEndpointConfiguration',
261284
'PrivateEndpoint',
@@ -269,25 +292,32 @@
269292
'Resource',
270293
'ResourceFile',
271294
'ScaleSettings',
295+
'SkuCapability',
272296
'StartTask',
297+
'SupportedSku',
273298
'TaskContainerSettings',
274299
'TaskSchedulingPolicy',
275300
'UserAccount',
301+
'UserAssignedIdentities',
276302
'UserIdentity',
277303
'VirtualMachineConfiguration',
278304
'VirtualMachineFamilyCoreQuota',
279305
'VMExtension',
280306
'WindowsConfiguration',
281307
'WindowsUserConfiguration',
282308
'BatchAccountPaged',
309+
'OutboundEnvironmentEndpointPaged',
283310
'ApplicationPackagePaged',
284311
'ApplicationPaged',
312+
'SupportedSkuPaged',
285313
'OperationPaged',
286314
'CertificatePaged',
287315
'PrivateLinkResourcePaged',
288316
'PrivateEndpointConnectionPaged',
289317
'PoolPaged',
318+
'AutoStorageAuthenticationMode',
290319
'KeySource',
320+
'AuthenticationMode',
291321
'PoolAllocationMode',
292322
'PublicNetworkAccessType',
293323
'ResourceIdentityType',
@@ -304,6 +334,7 @@
304334
'StorageAccountType',
305335
'DiskEncryptionTarget',
306336
'NodePlacementPolicyType',
337+
'DiffDiskPlacement',
307338
'ComputeNodeDeallocationOption',
308339
'InterNodeCommunicationState',
309340
'InboundEndpointProtocol',
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,25 @@
1212
from enum import Enum
1313

1414

15+
class AutoStorageAuthenticationMode(str, Enum):
16+
17+
storage_keys = "StorageKeys" #: The Batch service will authenticate requests to auto-storage using storage account keys.
18+
batch_account_managed_identity = "BatchAccountManagedIdentity" #: The Batch service will authenticate requests to auto-storage using the managed identity assigned to the Batch account.
19+
20+
1521
class KeySource(str, Enum):
1622

1723
microsoft_batch = "Microsoft.Batch" #: Batch creates and manages the encryption keys used to protect the account data.
1824
microsoft_key_vault = "Microsoft.KeyVault" #: The encryption keys used to protect the account data are stored in an external key vault. If this is set then the Batch Account identity must be set to `SystemAssigned` and a valid Key Identifier must also be supplied under the keyVaultProperties.
1925

2026

27+
class AuthenticationMode(str, Enum):
28+
29+
shared_key = "SharedKey" #: The authentication mode using shared keys.
30+
aad = "AAD" #: The authentication mode using Azure Active Directory.
31+
task_authentication_token = "TaskAuthenticationToken" #: The authentication mode using task authentication tokens.
32+
33+
2134
class PoolAllocationMode(str, Enum):
2235

2336
batch_service = "BatchService" #: Pools will be allocated in subscriptions owned by the Batch service.
@@ -125,6 +138,11 @@ class NodePlacementPolicyType(str, Enum):
125138
zonal = "Zonal" #: Nodes in the pool will be spread across different zones with best effort balancing.
126139

127140

141+
class DiffDiskPlacement(str, Enum):
142+
143+
cache_disk = "CacheDisk" #: The Ephemeral OS Disk is stored on the VM cache.
144+
145+
128146
class ComputeNodeDeallocationOption(str, Enum):
129147

130148
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.

0 commit comments

Comments
 (0)