From 385d54467859e1f1ecc23a17054f9a390d1b280a Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Sat, 20 Apr 2019 00:42:28 +0000 Subject: [PATCH 1/3] Generated from 21d6b9757cd2c3df6e58969ecf69759e0b980a56 correct nullable properties --- .../azure/mgmt/batch/models/cloud_service_configuration.py | 5 +++-- .../mgmt/batch/models/cloud_service_configuration_py3.py | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/azure-mgmt-batch/azure/mgmt/batch/models/cloud_service_configuration.py b/azure-mgmt-batch/azure/mgmt/batch/models/cloud_service_configuration.py index e99645072303..6bfa18ee9be6 100644 --- a/azure-mgmt-batch/azure/mgmt/batch/models/cloud_service_configuration.py +++ b/azure-mgmt-batch/azure/mgmt/batch/models/cloud_service_configuration.py @@ -22,8 +22,9 @@ class CloudServiceConfiguration(Model): the virtual machines in the pool. Possible values are: 2 - OS Family 2, equivalent to Windows Server 2008 R2 SP1. 3 - OS Family 3, equivalent to Windows Server 2012. 4 - OS Family 4, equivalent to Windows Server 2012 - R2. 5 - OS Family 5, equivalent to Windows Server 2016. For more - information, see Azure Guest OS Releases + R2. 5 - OS Family 5, equivalent to Windows Server 2016. 6 - OS Family 6, + equivalent to Windows Server 2019. For more information, see Azure Guest + OS Releases (https://azure.microsoft.com/documentation/articles/cloud-services-guestos-update-matrix/#releases). :type os_family: str :param os_version: The Azure Guest OS version to be installed on the diff --git a/azure-mgmt-batch/azure/mgmt/batch/models/cloud_service_configuration_py3.py b/azure-mgmt-batch/azure/mgmt/batch/models/cloud_service_configuration_py3.py index 277c201c4ff4..cb6346fe829f 100644 --- a/azure-mgmt-batch/azure/mgmt/batch/models/cloud_service_configuration_py3.py +++ b/azure-mgmt-batch/azure/mgmt/batch/models/cloud_service_configuration_py3.py @@ -22,8 +22,9 @@ class CloudServiceConfiguration(Model): the virtual machines in the pool. Possible values are: 2 - OS Family 2, equivalent to Windows Server 2008 R2 SP1. 3 - OS Family 3, equivalent to Windows Server 2012. 4 - OS Family 4, equivalent to Windows Server 2012 - R2. 5 - OS Family 5, equivalent to Windows Server 2016. For more - information, see Azure Guest OS Releases + R2. 5 - OS Family 5, equivalent to Windows Server 2016. 6 - OS Family 6, + equivalent to Windows Server 2019. For more information, see Azure Guest + OS Releases (https://azure.microsoft.com/documentation/articles/cloud-services-guestos-update-matrix/#releases). :type os_family: str :param os_version: The Azure Guest OS version to be installed on the From 0e165d5bb88c660c035b4020c1655005bf2028ec Mon Sep 17 00:00:00 2001 From: azuresdkci Date: Sat, 20 Apr 2019 00:45:52 +0000 Subject: [PATCH 2/3] Packaging update of azure-mgmt-batch --- azure-mgmt-batch/setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/azure-mgmt-batch/setup.py b/azure-mgmt-batch/setup.py index b40cb2d0f575..9d98ecddd9d6 100644 --- a/azure-mgmt-batch/setup.py +++ b/azure-mgmt-batch/setup.py @@ -53,6 +53,7 @@ version=version, description='Microsoft Azure {} Client Library for Python'.format(PACKAGE_PPRINT_NAME), long_description=readme + '\n\n' + history, + long_description_content_type='text/x-rst', license='MIT License', author='Microsoft Corporation', author_email='azpysdkhelp@microsoft.com', From ae4a3ac8bc811159c65ad56b558738ee528214d9 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 22 Apr 2019 06:12:12 +0000 Subject: [PATCH 3/3] Generated from 21d6b9757cd2c3df6e58969ecf69759e0b980a56 correct nullable properties --- azure-mgmt-batch/azure/mgmt/batch/models/pool.py | 15 +++++++++------ .../azure/mgmt/batch/models/pool_py3.py | 15 +++++++++------ .../azure/mgmt/batch/models/start_task.py | 7 +++++++ .../azure/mgmt/batch/models/start_task_py3.py | 7 +++++++ 4 files changed, 32 insertions(+), 12 deletions(-) diff --git a/azure-mgmt-batch/azure/mgmt/batch/models/pool.py b/azure-mgmt-batch/azure/mgmt/batch/models/pool.py index cb8638293639..25740b0584e2 100644 --- a/azure-mgmt-batch/azure/mgmt/batch/models/pool.py +++ b/azure-mgmt-batch/azure/mgmt/batch/models/pool.py @@ -96,10 +96,12 @@ class Pool(ProxyResource): :param network_configuration: The network configuration for the pool. :type network_configuration: ~azure.mgmt.batch.models.NetworkConfiguration :param max_tasks_per_node: The maximum number of tasks that can run - concurrently on a single compute node in the pool. + concurrently on a single compute node in the pool. The default value is 1. + The maximum value is the smaller of 4 times the number of cores of the + vmSize of the pool or 256. :type max_tasks_per_node: int :param task_scheduling_policy: How tasks are distributed across compute - nodes in a pool. + nodes in a pool. If not specified, the default is spread. :type task_scheduling_policy: ~azure.mgmt.batch.models.TaskSchedulingPolicy :param user_accounts: The list of user accounts to be created on each node @@ -124,10 +126,11 @@ class Pool(ProxyResource): /home/{user-name}/certs) and certificates are placed in that directory. :type certificates: list[~azure.mgmt.batch.models.CertificateReference] :param application_packages: The list of application packages to be - installed on each compute node in the pool. Changes to application - packages affect all new compute nodes joining the pool, but do not affect - compute nodes that are already in the pool until they are rebooted or - reimaged. + installed on each compute node in the pool. Changes to application package + references affect all new compute nodes joining the pool, but do not + affect compute nodes that are already in the pool until they are rebooted + or reimaged. There is a maximum of 10 application package references on + any given pool. :type application_packages: list[~azure.mgmt.batch.models.ApplicationPackageReference] :param application_licenses: The list of application licenses the Batch diff --git a/azure-mgmt-batch/azure/mgmt/batch/models/pool_py3.py b/azure-mgmt-batch/azure/mgmt/batch/models/pool_py3.py index 3d396b8550f3..0c44cc200ce6 100644 --- a/azure-mgmt-batch/azure/mgmt/batch/models/pool_py3.py +++ b/azure-mgmt-batch/azure/mgmt/batch/models/pool_py3.py @@ -96,10 +96,12 @@ class Pool(ProxyResource): :param network_configuration: The network configuration for the pool. :type network_configuration: ~azure.mgmt.batch.models.NetworkConfiguration :param max_tasks_per_node: The maximum number of tasks that can run - concurrently on a single compute node in the pool. + concurrently on a single compute node in the pool. The default value is 1. + The maximum value is the smaller of 4 times the number of cores of the + vmSize of the pool or 256. :type max_tasks_per_node: int :param task_scheduling_policy: How tasks are distributed across compute - nodes in a pool. + nodes in a pool. If not specified, the default is spread. :type task_scheduling_policy: ~azure.mgmt.batch.models.TaskSchedulingPolicy :param user_accounts: The list of user accounts to be created on each node @@ -124,10 +126,11 @@ class Pool(ProxyResource): /home/{user-name}/certs) and certificates are placed in that directory. :type certificates: list[~azure.mgmt.batch.models.CertificateReference] :param application_packages: The list of application packages to be - installed on each compute node in the pool. Changes to application - packages affect all new compute nodes joining the pool, but do not affect - compute nodes that are already in the pool until they are rebooted or - reimaged. + installed on each compute node in the pool. Changes to application package + references affect all new compute nodes joining the pool, but do not + affect compute nodes that are already in the pool until they are rebooted + or reimaged. There is a maximum of 10 application package references on + any given pool. :type application_packages: list[~azure.mgmt.batch.models.ApplicationPackageReference] :param application_licenses: The list of application licenses the Batch diff --git a/azure-mgmt-batch/azure/mgmt/batch/models/start_task.py b/azure-mgmt-batch/azure/mgmt/batch/models/start_task.py index 33b6a6570d03..8d47d5b3c616 100644 --- a/azure-mgmt-batch/azure/mgmt/batch/models/start_task.py +++ b/azure-mgmt-batch/azure/mgmt/batch/models/start_task.py @@ -16,6 +16,13 @@ class StartTask(Model): """A task which is run when a compute node joins a pool in the Azure Batch service, or when the compute node is rebooted or reimaged. + In some cases the start task may be re-run even though the node was not + rebooted. Due to this, start tasks should be idempotent and exit gracefully + if the setup they're performing has already been done. Special care should + be taken to avoid start tasks which create breakaway process or + install/launch services from the start task working directory, as this will + block Batch from being able to re-run the start task. + :param command_line: The command line of the start task. The command line does not run under a shell, and therefore cannot take advantage of shell features such as environment variable expansion. If you want to take diff --git a/azure-mgmt-batch/azure/mgmt/batch/models/start_task_py3.py b/azure-mgmt-batch/azure/mgmt/batch/models/start_task_py3.py index 9ec2b7b8b327..c69f63cb846b 100644 --- a/azure-mgmt-batch/azure/mgmt/batch/models/start_task_py3.py +++ b/azure-mgmt-batch/azure/mgmt/batch/models/start_task_py3.py @@ -16,6 +16,13 @@ class StartTask(Model): """A task which is run when a compute node joins a pool in the Azure Batch service, or when the compute node is rebooted or reimaged. + In some cases the start task may be re-run even though the node was not + rebooted. Due to this, start tasks should be idempotent and exit gracefully + if the setup they're performing has already been done. Special care should + be taken to avoid start tasks which create breakaway process or + install/launch services from the start task working directory, as this will + block Batch from being able to re-run the start task. + :param command_line: The command line of the start task. The command line does not run under a shell, and therefore cannot take advantage of shell features such as environment variable expansion. If you want to take