Skip to content

Commit

Permalink
T1 batch 2021 01 28 (#16388)
Browse files Browse the repository at this point in the history
* CodeGen from PR 12563 in Azure/azure-rest-api-specs
Enable python track2 pipeline (#12563)

* test,version,CHANGELOG

* fix test

* fix changelog

Co-authored-by: SDKAuto <[email protected]>
  • Loading branch information
00Kai0 and SDKAuto authored Jan 29, 2021
1 parent e13e462 commit 8d513b2
Show file tree
Hide file tree
Showing 27 changed files with 1,935 additions and 1,569 deletions.
17 changes: 17 additions & 0 deletions sdk/batch/azure-mgmt-batch/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
# Release History

## 10.0.0 (2021-01-28)

**Features**

- Added new extensions property to VirtualMachineConfiguration on pools to specify virtual machine extensions for nodes
- Added the ability to specify availability zones using a new property node_placement_configuration on VirtualMachineConfiguration
- Added a new identity property on Pool to specify a managed identity
- Added a new user_assigned_identities on BatchAccountIdentity to specify a user managed identity
- Added certificate operation method PoolOperations.create
- Added certificate operation method CertificateOperations.create

**Breaking changes**

- Removed certificate operation method PoolOperations.begin_create. Certificate operations are not long running operations so this was incorrect.
- Removed certificate operation method CertificateOperations.begin_create. Certificate operations are not long running operations so this was incorrect.

## 9.0.0 (2020-05-29)
### REST API version
- This version targets REST API version 2020-05-01.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def __init__(
super(BatchManagementClient, self).__init__(self.config.credentials, self.config)

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

Expand Down
23 changes: 19 additions & 4 deletions sdk/batch/azure-mgmt-batch/azure/mgmt/batch/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,13 @@
from ._models_py3 import BatchAccount
from ._models_py3 import BatchAccountCreateParameters
from ._models_py3 import BatchAccountIdentity
from ._models_py3 import BatchAccountIdentityUserAssignedIdentitiesValue
from ._models_py3 import BatchAccountKeys
from ._models_py3 import BatchAccountRegenerateKeyParameters
from ._models_py3 import BatchAccountUpdateParameters
from ._models_py3 import BatchLocationQuota
from ._models_py3 import BatchPoolIdentity
from ._models_py3 import BatchPoolIdentityUserAssignedIdentitiesValue
from ._models_py3 import Certificate
from ._models_py3 import CertificateBaseProperties
from ._models_py3 import CertificateCreateOrUpdateParameters
Expand Down Expand Up @@ -56,6 +59,7 @@
from ._models_py3 import NetworkConfiguration
from ._models_py3 import NetworkSecurityGroupRule
from ._models_py3 import NFSMountConfiguration
from ._models_py3 import NodePlacementConfiguration
from ._models_py3 import Operation
from ._models_py3 import OperationDisplay
from ._models_py3 import Pool
Expand All @@ -78,6 +82,7 @@
from ._models_py3 import UserIdentity
from ._models_py3 import VirtualMachineConfiguration
from ._models_py3 import VirtualMachineFamilyCoreQuota
from ._models_py3 import VMExtension
from ._models_py3 import WindowsConfiguration
from ._models_py3 import WindowsUserConfiguration
except (SyntaxError, ImportError):
Expand All @@ -96,10 +101,13 @@
from ._models import BatchAccount
from ._models import BatchAccountCreateParameters
from ._models import BatchAccountIdentity
from ._models import BatchAccountIdentityUserAssignedIdentitiesValue
from ._models import BatchAccountKeys
from ._models import BatchAccountRegenerateKeyParameters
from ._models import BatchAccountUpdateParameters
from ._models import BatchLocationQuota
from ._models import BatchPoolIdentity
from ._models import BatchPoolIdentityUserAssignedIdentitiesValue
from ._models import Certificate
from ._models import CertificateBaseProperties
from ._models import CertificateCreateOrUpdateParameters
Expand Down Expand Up @@ -127,6 +135,7 @@
from ._models import NetworkConfiguration
from ._models import NetworkSecurityGroupRule
from ._models import NFSMountConfiguration
from ._models import NodePlacementConfiguration
from ._models import Operation
from ._models import OperationDisplay
from ._models import Pool
Expand All @@ -149,6 +158,7 @@
from ._models import UserIdentity
from ._models import VirtualMachineConfiguration
from ._models import VirtualMachineFamilyCoreQuota
from ._models import VMExtension
from ._models import WindowsConfiguration
from ._models import WindowsUserConfiguration
from ._paged_models import ApplicationPackagePaged
Expand Down Expand Up @@ -176,6 +186,7 @@
CachingType,
StorageAccountType,
DiskEncryptionTarget,
NodePlacementPolicyType,
ComputeNodeDeallocationOption,
InterNodeCommunicationState,
InboundEndpointProtocol,
Expand All @@ -188,8 +199,7 @@
ContainerWorkingDirectory,
CertificateStoreLocation,
CertificateVisibility,
ContainerType,
ResourceType,
PoolIdentityType,
NameAvailabilityReason,
)

Expand All @@ -209,10 +219,13 @@
'BatchAccount',
'BatchAccountCreateParameters',
'BatchAccountIdentity',
'BatchAccountIdentityUserAssignedIdentitiesValue',
'BatchAccountKeys',
'BatchAccountRegenerateKeyParameters',
'BatchAccountUpdateParameters',
'BatchLocationQuota',
'BatchPoolIdentity',
'BatchPoolIdentityUserAssignedIdentitiesValue',
'Certificate',
'CertificateBaseProperties',
'CertificateCreateOrUpdateParameters',
Expand Down Expand Up @@ -240,6 +253,7 @@
'NetworkConfiguration',
'NetworkSecurityGroupRule',
'NFSMountConfiguration',
'NodePlacementConfiguration',
'Operation',
'OperationDisplay',
'Pool',
Expand All @@ -262,6 +276,7 @@
'UserIdentity',
'VirtualMachineConfiguration',
'VirtualMachineFamilyCoreQuota',
'VMExtension',
'WindowsConfiguration',
'WindowsUserConfiguration',
'BatchAccountPaged',
Expand All @@ -288,6 +303,7 @@
'CachingType',
'StorageAccountType',
'DiskEncryptionTarget',
'NodePlacementPolicyType',
'ComputeNodeDeallocationOption',
'InterNodeCommunicationState',
'InboundEndpointProtocol',
Expand All @@ -300,7 +316,6 @@
'ContainerWorkingDirectory',
'CertificateStoreLocation',
'CertificateVisibility',
'ContainerType',
'ResourceType',
'PoolIdentityType',
'NameAvailabilityReason',
]
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class PublicNetworkAccessType(str, Enum):
class ResourceIdentityType(str, Enum):

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


Expand Down Expand Up @@ -118,6 +119,12 @@ class DiskEncryptionTarget(str, Enum):
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.


class NodePlacementPolicyType(str, Enum):

regional = "Regional" #: All nodes in the pool will be allocated in the same region.
zonal = "Zonal" #: Nodes in the pool will be spread across different zones with best effort balancing.


class ComputeNodeDeallocationOption(str, Enum):

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.
Expand Down Expand Up @@ -154,7 +161,7 @@ class IPAddressProvisioningType(str, Enum):
class ComputeNodeFillType(str, Enum):

spread = "Spread" #: Tasks should be assigned evenly across all nodes in the pool.
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.
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.


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


class ContainerType(str, Enum):

docker_compatible = "DockerCompatible" #: A Docker compatible container technology will be used to launch the containers.


class ResourceType(str, Enum):
class PoolIdentityType(str, Enum):

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


class NameAvailabilityReason(str, Enum):
Expand Down
Loading

0 comments on commit 8d513b2

Please sign in to comment.