JobsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:jobs> attribute.
- Inheritance
-
builtins.objectJobsOperations
Constructor
JobsOperations(*args, **kwargs)
Methods
cancel_job |
Cancel Job. Cancel a Job. |
create |
Create Job. Creates a Job. |
delete |
Delete Job. Deletes a Job. |
get |
Get Job. Gets a Job. |
list |
List Jobs. Lists all of the Jobs for the Transform. |
update |
Update Job. Update is only supported for description and priority. Updating Priority will take effect when the Job state is Queued or Scheduled and depending on the timing the priority update may be ignored. |
cancel_job
Cancel Job.
Cancel a Job.
async cancel_job(resource_group_name: str, account_name: str, transform_name: str, job_name: str, **kwargs: Any) -> None
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group within the Azure subscription. Required. |
account_name
Required
|
The Media Services account name. Required. |
transform_name
Required
|
The Transform name. Required. |
job_name
Required
|
The Job name. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
create
Create Job.
Creates a Job.
async create(resource_group_name: str, account_name: str, transform_name: str, job_name: str, parameters: _models.Job, *, content_type: str = 'application/json', **kwargs: Any) -> _models.Job
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group within the Azure subscription. Required. |
account_name
Required
|
The Media Services account name. Required. |
transform_name
Required
|
The Transform name. Required. |
job_name
Required
|
The Job name. Required. |
parameters
Required
|
The request parameters. Is either a model type or a IO type. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
content_type
|
Body Parameter content-type. Known values are: 'application/json'. Default value is None. |
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
Job or the result of cls(response) |
Exceptions
Type | Description |
---|---|
delete
Delete Job.
Deletes a Job.
async delete(resource_group_name: str, account_name: str, transform_name: str, job_name: str, **kwargs: Any) -> None
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group within the Azure subscription. Required. |
account_name
Required
|
The Media Services account name. Required. |
transform_name
Required
|
The Transform name. Required. |
job_name
Required
|
The Job name. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
get
Get Job.
Gets a Job.
async get(resource_group_name: str, account_name: str, transform_name: str, job_name: str, **kwargs: Any) -> Job
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group within the Azure subscription. Required. |
account_name
Required
|
The Media Services account name. Required. |
transform_name
Required
|
The Transform name. Required. |
job_name
Required
|
The Job name. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
Job or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list
List Jobs.
Lists all of the Jobs for the Transform.
list(resource_group_name: str, account_name: str, transform_name: str, filter: str | None = None, orderby: str | None = None, **kwargs: Any) -> AsyncIterable[Job]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group within the Azure subscription. Required. |
account_name
Required
|
The Media Services account name. Required. |
transform_name
Required
|
The Transform name. Required. |
filter
Required
|
Restricts the set of items returned. Default value is None. |
orderby
Required
|
Specifies the key by which the result collection should be ordered. Default value is None. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
An iterator like instance of either Job or the result of cls(response) |
Exceptions
Type | Description |
---|---|
update
Update Job.
Update is only supported for description and priority. Updating Priority will take effect when the Job state is Queued or Scheduled and depending on the timing the priority update may be ignored.
async update(resource_group_name: str, account_name: str, transform_name: str, job_name: str, parameters: _models.Job, *, content_type: str = 'application/json', **kwargs: Any) -> _models.Job
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group within the Azure subscription. Required. |
account_name
Required
|
The Media Services account name. Required. |
transform_name
Required
|
The Transform name. Required. |
job_name
Required
|
The Job name. Required. |
parameters
Required
|
The request parameters. Is either a model type or a IO type. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
content_type
|
Body Parameter content-type. Known values are: 'application/json'. Default value is None. |
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
Job or the result of cls(response) |
Exceptions
Type | Description |
---|---|
Attributes
models
models = <module 'azure.mgmt.media.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\media\\models\\__init__.py'>
Azure SDK for Python