azure.batch package¶
-
class
azure.batch.
BatchServiceClient
(credentials, batch_url)[source]¶ A client for issuing REST requests to the Azure Batch service.
- Variables
config (BatchServiceClientConfiguration) – Configuration for client.
application (azure.batch.operations.ApplicationOperations) – Application operations
pool (azure.batch.operations.PoolOperations) – Pool operations
account (azure.batch.operations.AccountOperations) – Account operations
job (azure.batch.operations.JobOperations) – Job operations
certificate (azure.batch.operations.CertificateOperations) – Certificate operations
file (azure.batch.operations.FileOperations) – File operations
job_schedule (azure.batch.operations.JobScheduleOperations) – JobSchedule operations
task (azure.batch.operations.TaskOperations) – Task operations
compute_node (azure.batch.operations.ComputeNodeOperations) – ComputeNode operations
- Parameters
credentials (
A msrestazure Credentials object
) – Credentials needed for the client to connect to Azure.batch_url (str) – The base URL for all Azure Batch service requests.
-
close
()¶ Close the client if keep_alive is True.
-
class
azure.batch.
BatchServiceClientConfiguration
(credentials, batch_url)[source]¶ Configuration for BatchServiceClient Note that all parameters used to create this instance are saved as instance attributes.
- Parameters
credentials (
A msrestazure Credentials object
) – Credentials needed for the client to connect to Azure.batch_url (str) – The base URL for all Azure Batch service requests.
-
add_user_agent
(value)¶ Add value to current user agent with a space.
- Parameters
value (str) – value to add to user agent.
-
load
(filepath)¶ Load configuration from existing file.
- Parameters
filepath (str) – Path to existing config file.
- Raises
ValueError if supplied config file is invalid.
-
save
(filepath)¶ Save current configuration to file.
- Parameters
filepath (str) – Path to save file to.
- Raises
ValueError if supplied filepath cannot be written to.
-
property
enable_http_logger
¶
-
property
user_agent
¶ The current user agent value.
Subpackages¶
Submodules¶
azure.batch.batch_auth module¶
Create requests session with any required auth headers applied.
If a session object is provided, configure it directly. Otherwise, create a new session and return it.
- Parameters
session (requests.Session) – The session to configure for authentication
- Return type