AssetFiltersOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

AzureMediaServices's

<xref:asset_filters> attribute.

Inheritance
builtins.object
AssetFiltersOperations

Constructor

AssetFiltersOperations(*args, **kwargs)

Methods

create_or_update

Create or update an Asset Filter.

Creates or updates an Asset Filter associated with the specified Asset.

delete

Delete an Asset Filter.

Deletes an Asset Filter associated with the specified Asset.

get

Get an Asset Filter.

Get the details of an Asset Filter associated with the specified Asset.

list

List Asset Filters.

List Asset Filters associated with the specified Asset.

update

Update an Asset Filter.

Updates an existing Asset Filter associated with the specified Asset.

create_or_update

Create or update an Asset Filter.

Creates or updates an Asset Filter associated with the specified Asset.

create_or_update(resource_group_name: str, account_name: str, asset_name: str, filter_name: str, parameters: _models.AssetFilter, *, content_type: str = 'application/json', **kwargs: Any) -> _models.AssetFilter

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group within the Azure subscription. Required.

account_name
Required
str

The Media Services account name. Required.

asset_name
Required
str

The Asset name. Required.

filter_name
Required
str

The Asset Filter name. Required.

parameters
Required

The request parameters. Is either a model type or a IO type. Required.

Keyword-Only Parameters

Name Description
content_type
str

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

AssetFilter or the result of cls(response)

Exceptions

Type Description

delete

Delete an Asset Filter.

Deletes an Asset Filter associated with the specified Asset.

delete(resource_group_name: str, account_name: str, asset_name: str, filter_name: str, **kwargs: Any) -> None

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group within the Azure subscription. Required.

account_name
Required
str

The Media Services account name. Required.

asset_name
Required
str

The Asset name. Required.

filter_name
Required
str

The Asset Filter 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 an Asset Filter.

Get the details of an Asset Filter associated with the specified Asset.

get(resource_group_name: str, account_name: str, asset_name: str, filter_name: str, **kwargs: Any) -> AssetFilter

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group within the Azure subscription. Required.

account_name
Required
str

The Media Services account name. Required.

asset_name
Required
str

The Asset name. Required.

filter_name
Required
str

The Asset Filter name. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

AssetFilter or the result of cls(response)

Exceptions

Type Description

list

List Asset Filters.

List Asset Filters associated with the specified Asset.

list(resource_group_name: str, account_name: str, asset_name: str, **kwargs: Any) -> Iterable[AssetFilter]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group within the Azure subscription. Required.

account_name
Required
str

The Media Services account name. Required.

asset_name
Required
str

The Asset name. Required.

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 AssetFilter or the result of cls(response)

Exceptions

Type Description

update

Update an Asset Filter.

Updates an existing Asset Filter associated with the specified Asset.

update(resource_group_name: str, account_name: str, asset_name: str, filter_name: str, parameters: _models.AssetFilter, *, content_type: str = 'application/json', **kwargs: Any) -> _models.AssetFilter

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group within the Azure subscription. Required.

account_name
Required
str

The Media Services account name. Required.

asset_name
Required
str

The Asset name. Required.

filter_name
Required
str

The Asset Filter name. Required.

parameters
Required

The request parameters. Is either a model type or a IO type. Required.

Keyword-Only Parameters

Name Description
content_type
str

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

AssetFilter 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'>