Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 11 additions & 19 deletions sdk/batch/azure-mgmt-batch/README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,21 @@
## Microsoft Azure SDK for Python
# Microsoft Azure SDK for Python

This is the Microsoft Azure Batch Management Client Library.
This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8.
For a more complete view of Azure libraries, see the [Github repo](https://github.com/Azure/azure-sdk-for-python/)

Azure Resource Manager (ARM) is the next generation of management APIs
that replace the old Azure Service Management (ASM).

This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.
# Usage

For the older Azure Service Management (ASM) libraries, see
[azure-servicemanagement-legacy](https://pypi.python.org/pypi/azure-servicemanagement-legacy)
library.

For a more complete set of Azure libraries, see the
[azure](https://pypi.python.org/pypi/azure) bundle package.

## Usage

For code examples, see [Batch
Management](https://docs.microsoft.com/python/api/overview/azure/batch)
For code examples, see [Batch Management](https://docs.microsoft.com/python/api/overview/azure/batch)
on docs.microsoft.com.

## Provide Feedback

If you encounter any bugs or have suggestions, please file an issue in
the [Issues](https://github.com/Azure/azure-sdk-for-python/issues)
# Provide Feedback

If you encounter any bugs or have suggestions, please file an issue in the
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
section of the project.

![image](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-batch%2FREADME.png)

![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-batch%2FREADME.png)
2 changes: 1 addition & 1 deletion sdk/batch/azure-mgmt-batch/azure/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
2 changes: 1 addition & 1 deletion sdk/batch/azure-mgmt-batch/azure/mgmt/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
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-03-01'
self.api_version = '2020-05-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
from ._models_py3 import AzureFileShareConfiguration
from ._models_py3 import BatchAccount
from ._models_py3 import BatchAccountCreateParameters
from ._models_py3 import BatchAccountIdentity
from ._models_py3 import BatchAccountKeys
from ._models_py3 import BatchAccountRegenerateKeyParameters
from ._models_py3 import BatchAccountUpdateParameters
Expand Down Expand Up @@ -94,6 +95,7 @@
from ._models import AzureFileShareConfiguration
from ._models import BatchAccount
from ._models import BatchAccountCreateParameters
from ._models import BatchAccountIdentity
from ._models import BatchAccountKeys
from ._models import BatchAccountRegenerateKeyParameters
from ._models import BatchAccountUpdateParameters
Expand Down Expand Up @@ -161,6 +163,7 @@
KeySource,
PoolAllocationMode,
PublicNetworkAccessType,
ResourceIdentityType,
ProvisioningState,
PrivateEndpointConnectionProvisioningState,
PrivateLinkServiceConnectionStatus,
Expand All @@ -185,8 +188,6 @@
ContainerWorkingDirectory,
CertificateStoreLocation,
CertificateVisibility,
ContainerType,
ResourceType,
NameAvailabilityReason,
)

Expand All @@ -205,6 +206,7 @@
'AzureFileShareConfiguration',
'BatchAccount',
'BatchAccountCreateParameters',
'BatchAccountIdentity',
'BatchAccountKeys',
'BatchAccountRegenerateKeyParameters',
'BatchAccountUpdateParameters',
Expand Down Expand Up @@ -271,6 +273,7 @@
'KeySource',
'PoolAllocationMode',
'PublicNetworkAccessType',
'ResourceIdentityType',
'ProvisioningState',
'PrivateEndpointConnectionProvisioningState',
'PrivateLinkServiceConnectionStatus',
Expand All @@ -295,7 +298,5 @@
'ContainerWorkingDirectory',
'CertificateStoreLocation',
'CertificateVisibility',
'ContainerType',
'ResourceType',
'NameAvailabilityReason',
]
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
class KeySource(str, Enum):

microsoft_batch = "Microsoft.Batch" #: Batch creates and manages the encryption keys used to protect the account data.
microsoft_key_vault = "Microsoft.KeyVault" #: The encryption keys used to protect the account data are stored in an external key vault.
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.


class PoolAllocationMode(str, Enum):
Expand All @@ -30,6 +30,12 @@ class PublicNetworkAccessType(str, Enum):
disabled = "Disabled" #: Disables public connectivity and enables private connectivity to Azure Batch Service through private endpoint resource.


class ResourceIdentityType(str, Enum):

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


class ProvisioningState(str, Enum):

invalid = "Invalid" #: The account is in an invalid state.
Expand Down Expand Up @@ -188,16 +194,6 @@ 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):

batch_accounts = "Microsoft.Batch/batchAccounts" #: The Batch account resource type.


class NameAvailabilityReason(str, Enum):

invalid = "Invalid" #: The requested name is invalid.
Expand Down
Loading