JobOperations Class
JobOperations operations.
You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.
- Inheritance
-
builtins.objectJobOperations
Constructor
JobOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
An object model deserializer.
Variables
- models
Alias to model classes used in this operation group.
Methods
| create |
Create a job of the runbook. |
| get |
Retrieve the job identified by job name. |
| get_output |
Retrieve the job output identified by job name. |
| get_runbook_content |
Retrieve the runbook content of the job identified by job name. |
| list_by_automation_account |
Retrieve a list of jobs. |
| resume |
Resume the job identified by jobName. |
| stop |
Stop the job identified by jobName. |
| suspend |
Suspend the job identified by job name. |
create
Create a job of the runbook.
create(resource_group_name: str, automation_account_name: str, job_name: str, parameters: _models.JobCreateParameters, client_request_id: Optional[str] = None, **kwargs: Any) -> _models.Job
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
Job, or the result of cls(response)
Return type
Exceptions
get
Retrieve the job identified by job name.
get(resource_group_name: str, automation_account_name: str, job_name: str, client_request_id: Optional[str] = None, **kwargs: Any) -> _models.Job
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
Job, or the result of cls(response)
Return type
Exceptions
get_output
Retrieve the job output identified by job name.
get_output(resource_group_name: str, automation_account_name: str, job_name: str, client_request_id: Optional[str] = None, **kwargs: Any) -> IO
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
IO, or the result of cls(response)
Return type
Exceptions
get_runbook_content
Retrieve the runbook content of the job identified by job name.
get_runbook_content(resource_group_name: str, automation_account_name: str, job_name: str, client_request_id: Optional[str] = None, **kwargs: Any) -> IO
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
IO, or the result of cls(response)
Return type
Exceptions
list_by_automation_account
Retrieve a list of jobs.
list_by_automation_account(resource_group_name: str, automation_account_name: str, filter: Optional[str] = None, client_request_id: Optional[str] = None, **kwargs: Any) -> Iterable[_models.JobListResultV2]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either JobListResultV2 or the result of cls(response)
Return type
Exceptions
resume
Resume the job identified by jobName.
resume(resource_group_name: str, automation_account_name: str, job_name: str, client_request_id: Optional[str] = None, **kwargs: Any) -> None
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
None, or the result of cls(response)
Return type
Exceptions
stop
Stop the job identified by jobName.
stop(resource_group_name: str, automation_account_name: str, job_name: str, client_request_id: Optional[str] = None, **kwargs: Any) -> None
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
None, or the result of cls(response)
Return type
Exceptions
suspend
Suspend the job identified by job name.
suspend(resource_group_name: str, automation_account_name: str, job_name: str, client_request_id: Optional[str] = None, **kwargs: Any) -> None
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
None, or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.automation.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\automation\\models\\__init__.py'>
Feedback
Submit and view feedback for