JobsOperations Class
JobsOperations async 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.objectJobsOperations
Constructor
JobsOperations(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_or_update |
Provisions a new job or updates an existing job. |
| delete |
Deletes a job. |
| get |
Gets a job. |
| list |
Lists all jobs under the specified job collection. |
| list_job_history |
Lists job history. |
| patch |
Patches an existing job. |
| run |
Runs a job. |
create_or_update
Provisions a new job or updates an existing job.
async create_or_update(resource_group_name: str, job_collection_name: str, job_name: str, job: azure.mgmt.scheduler.models._models_py3.JobDefinition, **kwargs) -> azure.mgmt.scheduler.models._models_py3.JobDefinition
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
JobDefinition, or the result of cls(response)
Return type
Exceptions
delete
Deletes a job.
async delete(resource_group_name: str, job_collection_name: str, job_name: str, **kwargs) -> 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
get
Gets a job.
async get(resource_group_name: str, job_collection_name: str, job_name: str, **kwargs) -> azure.mgmt.scheduler.models._models_py3.JobDefinition
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
JobDefinition, or the result of cls(response)
Return type
Exceptions
list
Lists all jobs under the specified job collection.
list(resource_group_name: str, job_collection_name: str, top: Optional[int] = None, skip: Optional[int] = None, filter: Optional[str] = None, **kwargs) -> AsyncIterable[azure.mgmt.scheduler.models._models_py3.JobListResult]
Parameters
- skip
- int
The (0-based) index of the job history list from which to begin requesting entries.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either JobListResult or the result of cls(response)
Return type
Exceptions
list_job_history
Lists job history.
list_job_history(resource_group_name: str, job_collection_name: str, job_name: str, top: Optional[int] = None, skip: Optional[int] = None, filter: Optional[str] = None, **kwargs) -> AsyncIterable[azure.mgmt.scheduler.models._models_py3.JobHistoryListResult]
Parameters
- skip
- int
The (0-based) index of the job history list from which to begin requesting entries.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either JobHistoryListResult or the result of cls(response)
Return type
Exceptions
patch
Patches an existing job.
async patch(resource_group_name: str, job_collection_name: str, job_name: str, job: azure.mgmt.scheduler.models._models_py3.JobDefinition, **kwargs) -> azure.mgmt.scheduler.models._models_py3.JobDefinition
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
JobDefinition, or the result of cls(response)
Return type
Exceptions
run
Runs a job.
async run(resource_group_name: str, job_collection_name: str, job_name: str, **kwargs) -> 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.scheduler.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\scheduler\\models\\__init__.py'>
Feedback
Submit and view feedback for