AccountFiltersOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

AzureMediaServices's

<xref:account_filters> attribute.

Inheritance
builtins.object
AccountFiltersOperations

Constructor

AccountFiltersOperations(*args, **kwargs)

Methods

create_or_update

Create or update an Account Filter.

Creates or updates an Account Filter in the Media Services account.

delete

Delete an Account Filter.

Deletes an Account Filter in the Media Services account.

get

Get an Account Filter.

Get the details of an Account Filter in the Media Services account.

list

List Account Filters.

List Account Filters in the Media Services account.

update

Update an Account Filter.

Updates an existing Account Filter in the Media Services account.

create_or_update

Create or update an Account Filter.

Creates or updates an Account Filter in the Media Services account.

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

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.

filter_name
Required
str

The Account 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

AccountFilter or the result of cls(response)

Exceptions

Type Description

delete

Delete an Account Filter.

Deletes an Account Filter in the Media Services account.

delete(resource_group_name: str, account_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.

filter_name
Required
str

The Account 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 Account Filter.

Get the details of an Account Filter in the Media Services account.

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

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.

filter_name
Required
str

The Account Filter name. Required.

Keyword-Only Parameters

Name Description
cls

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

Returns

Type Description

AccountFilter or the result of cls(response)

Exceptions

Type Description

list

List Account Filters.

List Account Filters in the Media Services account.

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

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.

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

Exceptions

Type Description

update

Update an Account Filter.

Updates an existing Account Filter in the Media Services account.

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

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.

filter_name
Required
str

The Account 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

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