Skip to content

Commit

Permalink
[AutoPR batch/resource-manager] Dev batch microsoft.batch 2019 04 01-…
Browse files Browse the repository at this point in the history
… Fix swagger spec incorrect nullable property (#4917)

* Generated from 21d6b9757cd2c3df6e58969ecf69759e0b980a56

correct nullable properties

* Packaging update of azure-mgmt-batch

* Generated from 21d6b9757cd2c3df6e58969ecf69759e0b980a56

correct nullable properties
  • Loading branch information
AutorestCI committed Apr 22, 2019
1 parent da276d8 commit 3319969
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 9 additions & 6 deletions azure-mgmt-batch/azure/mgmt/batch/models/pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
15 changes: 9 additions & 6 deletions azure-mgmt-batch/azure/mgmt/batch/models/pool_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
7 changes: 7 additions & 0 deletions azure-mgmt-batch/azure/mgmt/batch/models/start_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions azure-mgmt-batch/azure/mgmt/batch/models/start_task_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions azure-mgmt-batch/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 3319969

Please sign in to comment.