Skip to content
Closed
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
11 changes: 2 additions & 9 deletions azure-batch/azure/batch/models/auto_pool_specification.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,8 @@ class AutoPoolSpecification(Model):
the ID that is assigned. The prefix can be up to 20 characters long.
:type auto_pool_id_prefix: str
:param pool_lifetime_option: The minimum lifetime of created auto pools,
and how multiple jobs on a schedule are assigned to pools. When the pool
lifetime is jobSchedule the pool exists for the lifetime of the job
schedule. The Batch Service creates the pool when it creates the first job
on the schedule. You may apply this option only to job schedules, not to
jobs. When the pool lifetime is job the pool exists for the lifetime of
the job to which it is dedicated. The Batch service creates the pool when
it creates the job. If the 'job' option is applied to a job schedule, the
Batch service creates a new auto pool for every job created on the
schedule. Possible values include: 'jobSchedule', 'job'
and how multiple jobs on a schedule are assigned to pools. Possible values
include: 'jobSchedule', 'job'
:type pool_lifetime_option: str or ~azure.batch.models.PoolLifetimeOption
:param keep_alive: Whether to keep an auto pool alive after its lifetime
expires. If false, the Batch service deletes the pool once its lifetime
Expand Down
7 changes: 2 additions & 5 deletions azure-batch/azure/batch/models/auto_user_specification.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@ class AutoUserSpecification(Model):
"""Specifies the parameters for the auto user that runs a task on the Batch
service.

:param scope: The scope for the auto user. Values are:
pool - specifies that the task runs as the common auto user account which
is created on every node in a pool.
task - specifies that the service should create a new user for the task.
The default value is task. Possible values include: 'task', 'pool'
:param scope: The scope for the auto user. The default value is task.
Possible values include: 'task', 'pool'
:type scope: str or ~azure.batch.models.AutoUserScope
:param elevation_level: The elevation level of the auto user. nonAdmin -
The auto user is a standard user without elevated access. admin - The auto
Expand Down
64 changes: 32 additions & 32 deletions azure-batch/azure/batch/models/batch_service_client_enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class CertificateState(Enum):

active = "active"
deleting = "deleting"
delete_failed = "deleteFailed"
delete_failed = "deletefailed"


class CertificateFormat(Enum):
Expand Down Expand Up @@ -57,15 +57,15 @@ class AutoUserScope(Enum):

class ElevationLevel(Enum):

non_admin = "nonAdmin"
non_admin = "nonadmin"
admin = "admin"


class OutputFileUploadCondition(Enum):

task_success = "taskSuccess"
task_failure = "taskFailure"
task_completion = "taskCompletion"
task_success = "tasksuccess"
task_failure = "taskfailure"
task_completion = "taskcompletion"


class ComputeNodeFillType(Enum):
Expand All @@ -76,28 +76,28 @@ class ComputeNodeFillType(Enum):

class CertificateStoreLocation(Enum):

current_user = "currentUser"
local_machine = "localMachine"
current_user = "currentuser"
local_machine = "localmachine"


class CertificateVisibility(Enum):

start_task = "startTask"
start_task = "starttask"
task = "task"
remote_user = "remoteUser"
remote_user = "remoteuser"


class CachingType(Enum):

none = "none"
read_only = "readOnly"
read_write = "readWrite"
read_only = "readonly"
read_write = "readwrite"


class StorageAccountType(Enum):

standard_lrs = "Standard_LRS"
premium_lrs = "Premium_LRS"
standard_lrs = "standard_lrs"
premium_lrs = "premium_lrs"


class InboundEndpointProtocol(Enum):
Expand All @@ -114,20 +114,20 @@ class NetworkSecurityGroupRuleAccess(Enum):

class PoolLifetimeOption(Enum):

job_schedule = "jobSchedule"
job_schedule = "jobschedule"
job = "job"


class OnAllTasksComplete(Enum):

no_action = "noAction"
terminate_job = "terminateJob"
no_action = "noaction"
terminate_job = "terminatejob"


class OnTaskFailure(Enum):

no_action = "noAction"
perform_exit_options_job_action = "performExitOptionsJobAction"
no_action = "noaction"
perform_exit_options_job_action = "performexitoptionsjobaction"


class JobScheduleState(Enum):
Expand All @@ -141,8 +141,8 @@ class JobScheduleState(Enum):

class ErrorCategory(Enum):

user_error = "userError"
server_error = "serverError"
user_error = "usererror"
server_error = "servererror"


class JobState(Enum):
Expand Down Expand Up @@ -205,8 +205,8 @@ class TaskState(Enum):
class TaskAddStatus(Enum):

success = "success"
client_error = "clientError"
server_error = "serverError"
client_error = "clienterror"
server_error = "servererror"


class SubtaskState(Enum):
Expand All @@ -231,10 +231,10 @@ class ComputeNodeState(Enum):
unusable = "unusable"
creating = "creating"
starting = "starting"
waiting_for_start_task = "waitingForStartTask"
start_task_failed = "startTaskFailed"
waiting_for_start_task = "waitingforstarttask"
start_task_failed = "starttaskfailed"
unknown = "unknown"
leaving_pool = "leavingPool"
leaving_pool = "leavingpool"
offline = "offline"
preempted = "preempted"

Expand All @@ -256,28 +256,28 @@ class ComputeNodeDeallocationOption(Enum):

requeue = "requeue"
terminate = "terminate"
task_completion = "taskCompletion"
retained_data = "retainedData"
task_completion = "taskcompletion"
retained_data = "retaineddata"


class ComputeNodeRebootOption(Enum):

requeue = "requeue"
terminate = "terminate"
task_completion = "taskCompletion"
retained_data = "retainedData"
task_completion = "taskcompletion"
retained_data = "retaineddata"


class ComputeNodeReimageOption(Enum):

requeue = "requeue"
terminate = "terminate"
task_completion = "taskCompletion"
retained_data = "retainedData"
task_completion = "taskcompletion"
retained_data = "retaineddata"


class DisableComputeNodeSchedulingOption(Enum):

requeue = "requeue"
terminate = "terminate"
task_completion = "taskCompletion"
task_completion = "taskcompletion"
10 changes: 3 additions & 7 deletions azure-batch/azure/batch/models/certificate_reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class CertificateReference(Model):
:type thumbprint_algorithm: str
:param store_location: The location of the certificate store on the
compute node into which to install the certificate. The default value is
currentUser. This property is applicable only for pools configured with
currentuser. This property is applicable only for pools configured with
Windows nodes (that is, created with cloudServiceConfiguration, or with
virtualMachineConfiguration using a Windows image reference). For Linux
compute nodes, the certificates are stored in a directory inside the task
Expand All @@ -41,12 +41,8 @@ class CertificateReference(Model):
any custom store name can also be used. The default value is My.
:type store_name: str
:param visibility: Which user accounts on the compute node should have
access to the private data of the certificate. Values are:
starttask - The user account under which the start task is run.
task - The accounts under which job tasks are run.
remoteuser - The accounts under which users remotely access the node.
You can specify more than one visibility in this collection. The default
is all accounts.
access to the private data of the certificate. You can specify more than
one visibility in this collection. The default is all accounts.
:type visibility: list[str or ~azure.batch.models.CertificateVisibility]
"""

Expand Down
16 changes: 5 additions & 11 deletions azure-batch/azure/batch/models/cloud_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,22 +81,16 @@ class CloudJob(Model):
:param pool_info: The pool settings associated with the job.
:type pool_info: ~azure.batch.models.PoolInformation
:param on_all_tasks_complete: The action the Batch service should take
when all tasks in the job are in the completed state. noAction - do
nothing. The job remains active unless terminated or disabled by some
other means. terminateJob - terminate the job. The job's terminateReason
is set to 'AllTasksComplete'. The default is noAction. Possible values
include: 'noAction', 'terminateJob'
when all tasks in the job are in the completed state. The default is
noaction. Possible values include: 'noAction', 'terminateJob'
:type on_all_tasks_complete: str or ~azure.batch.models.OnAllTasksComplete
:param on_task_failure: The action the Batch service should take when any
task in the job fails. A task is considered to have failed if has a
failureInfo. A failureInfo is set if the task completes with a non-zero
exit code after exhausting its retry count, or if there was an error
starting the task, for example due to a resource file download error.
noAction - do nothing. performExitOptionsJobAction - take the action
associated with the task exit condition in the task's exitConditions
collection. (This may still result in no action being taken, if that is
what the task specifies.) The default is noAction. Possible values
include: 'noAction', 'performExitOptionsJobAction'
starting the task, for example due to a resource file download error. The
default is noaction. Possible values include: 'noAction',
'performExitOptionsJobAction'
:type on_task_failure: str or ~azure.batch.models.OnTaskFailure
:param metadata: A list of name-value pairs associated with the job as
metadata. The Batch service does not assign any meaning to metadata; it is
Expand Down
24 changes: 4 additions & 20 deletions azure-batch/azure/batch/models/cloud_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,30 +40,14 @@ class CloudPool(Model):
:type last_modified: datetime
:param creation_time: The creation time of the pool.
:type creation_time: datetime
:param state: The current state of the pool. Values are:
active - The pool is available to run tasks subject to the availability of
compute nodes.
deleting - The user has requested that the pool be deleted, but the delete
operation has not yet completed.
upgrading - The user has requested that the operating system of the pool's
nodes be upgraded, but the upgrade operation has not yet completed (that
is, some nodes in the pool have not yet been upgraded). While upgrading,
the pool may be able to run tasks (with reduced capacity) but this is not
guaranteed. Possible values include: 'active', 'deleting', 'upgrading'
:param state: The current state of the pool. Possible values include:
'active', 'deleting', 'upgrading'
:type state: str or ~azure.batch.models.PoolState
:param state_transition_time: The time at which the pool entered its
current state.
:type state_transition_time: datetime
:param allocation_state: Whether the pool is resizing. Values are:
steady - The pool is not resizing. There are no changes to the number of
nodes in the pool in progress. A pool enters this state when it is created
and when no operations are being performed on the pool to change the
number of dedicated nodes.
resizing - The pool is resizing; that is, compute nodes are being added to
or removed from the pool.
stopping - The pool was resizing, but the user has requested that the
resize be stopped, but the stop request has not yet been completed.
Possible values include: 'steady', 'resizing', 'stopping'
:param allocation_state: Whether the pool is resizing. Possible values
include: 'steady', 'resizing', 'stopping'
:type allocation_state: str or ~azure.batch.models.AllocationState
:param allocation_state_transition_time: The time at which the pool
entered its current allocation state.
Expand Down
39 changes: 7 additions & 32 deletions azure-batch/azure/batch/models/compute_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,40 +22,15 @@ class ComputeNode(Model):
:type id: str
:param url: The URL of the compute node.
:type url: str
:param state: The current state of the compute node. Values are:
idle - The node is not currently running a task.
rebooting - The node is rebooting.
reimaging - The node is reimaging.
running - The node is running one or more tasks (other than a start task).
unusable - The node cannot be used for task execution due to errors.
creating - The Batch service has obtained the underlying virtual machine
from Azure Compute, but it has not yet started to join the pool.
starting - the Batch service is starting on the underlying virtual
machine.
waitingforstarttask - The start task has started running on the compute
node, but waitForSuccess is set and the start task has not yet completed.
starttaskfailed - The start task has failed on the compute node (and
exhausted all retries), and waitForSuccess is set. The node is not usable
for running tasks.
unknown - The Batch service has lost contact with the node, and does not
know its true state.
leavingpool - The node is leaving the pool, either because the user
explicitly removed it or because the pool is resizing or autoscaling down.
offline - The node is not currently running a task, and scheduling of new
tasks to the node is disabled.
preempted - The low-priority node has been preempted. Tasks which were
running on the node when it was pre-empted will be rescheduled when
another node becomes available. Possible values include: 'idle',
'rebooting', 'reimaging', 'running', 'unusable', 'creating', 'starting',
'waitingForStartTask', 'startTaskFailed', 'unknown', 'leavingPool',
'offline', 'preempted'
:param state: The current state of the compute node. The low-priority node
has been preempted. Tasks which were running on the node when it was
pre-empted will be rescheduled when another node becomes available.
Possible values include: 'idle', 'rebooting', 'reimaging', 'running',
'unusable', 'creating', 'starting', 'waitingForStartTask',
'startTaskFailed', 'unknown', 'leavingPool', 'offline', 'preempted'
:type state: str or ~azure.batch.models.ComputeNodeState
:param scheduling_state: Whether the compute node is available for task
scheduling. Values are:
enabled - Tasks can be scheduled on the node.
disabled - No new tasks will be scheduled on the node. Tasks already
running on the node may still run to completion. All nodes start with
scheduling enabled. Possible values include: 'enabled', 'disabled'
scheduling. Possible values include: 'enabled', 'disabled'
:type scheduling_state: str or ~azure.batch.models.SchedulingState
:param state_transition_time: The time at which the compute node entered
its current state.
Expand Down
5 changes: 2 additions & 3 deletions azure-batch/azure/batch/models/container_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ class ContainerConfiguration(Model):
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar type: The container technology to be used. Values are:
docker - Docker will be used to launch the containers. Default value:
"docker" .
:ivar type: The container technology to be used. Default value: "docker"
.
:vartype type: str
:param container_image_names: The collection of container image names.
This is the full image reference, as would be specified to "docker pull".
Expand Down
15 changes: 4 additions & 11 deletions azure-batch/azure/batch/models/data_disk.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,17 @@ class DataDisk(Model):
each data disk. If attaching multiple disks, each should have a distinct
lun.
:type lun: int
:param caching: The type of caching to be enabled for the data disks.
Values are:
none - The caching mode for the disk is not enabled.
readOnly - The caching mode for the disk is read only.
readWrite - The caching mode for the disk is read and write.
The default value for caching is none. For information about the caching
:param caching: The type of caching to be enabled for the data disks. The
default value for caching is none. For information about the caching
options see:
https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/.
Possible values include: 'none', 'readOnly', 'readWrite'
:type caching: str or ~azure.batch.models.CachingType
:param disk_size_gb: The initial disk size in gigabytes.
:type disk_size_gb: int
:param storage_account_type: The storage account type to be used for the
data disk. If omitted, the default is "Standard_LRS". Values are:
Standard_LRS - The data disk should use standard locally redundant
storage.
Premium_LRS - The data disk should use premium locally redundant storage.
Possible values include: 'Standard_LRS', 'Premium_LRS'
data disk. If omitted, the default is "standard_lrs". Possible values
include: 'StandardLRS', 'PremiumLRS'
:type storage_account_type: str or ~azure.batch.models.StorageAccountType
"""

Expand Down
Loading