StreamingLocatorsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

AzureMediaServices's

<xref:streaming_locators> attribute.

Inheritance
builtins.object
StreamingLocatorsOperations

Constructor

StreamingLocatorsOperations(*args, **kwargs)

Methods

create

Create a Streaming Locator.

Create a Streaming Locator in the Media Services account.

delete

Delete a Streaming Locator.

Deletes a Streaming Locator in the Media Services account.

get

Get a Streaming Locator.

Get the details of a Streaming Locator in the Media Services account.

list

List Streaming Locators.

Lists the Streaming Locators in the account.

list_content_keys

List Content Keys.

List Content Keys used by this Streaming Locator.

list_paths

List Paths.

List Paths supported by this Streaming Locator.

create

Create a Streaming Locator.

Create a Streaming Locator in the Media Services account.

async create(resource_group_name: str, account_name: str, streaming_locator_name: str, parameters: _models.StreamingLocator, *, content_type: str = 'application/json', **kwargs: Any) -> _models.StreamingLocator

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.

streaming_locator_name
Required
str

The Streaming Locator 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

StreamingLocator or the result of cls(response)

Exceptions

Type Description

delete

Delete a Streaming Locator.

Deletes a Streaming Locator in the Media Services account.

async delete(resource_group_name: str, account_name: str, streaming_locator_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.

streaming_locator_name
Required
str

The Streaming Locator 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 a Streaming Locator.

Get the details of a Streaming Locator in the Media Services account.

async get(resource_group_name: str, account_name: str, streaming_locator_name: str, **kwargs: Any) -> StreamingLocator

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.

streaming_locator_name
Required
str

The Streaming Locator name. Required.

Keyword-Only Parameters

Name Description
cls

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

Returns

Type Description

StreamingLocator or the result of cls(response)

Exceptions

Type Description

list

List Streaming Locators.

Lists the Streaming Locators in the account.

list(resource_group_name: str, account_name: str, filter: str | None = None, top: int | None = None, orderby: str | None = None, **kwargs: Any) -> AsyncIterable[StreamingLocator]

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
Required
str

Restricts the set of items returned. Default value is None.

top
Required
int

Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n. Default value is None.

orderby
Required
str

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

Exceptions

Type Description

list_content_keys

List Content Keys.

List Content Keys used by this Streaming Locator.

async list_content_keys(resource_group_name: str, account_name: str, streaming_locator_name: str, **kwargs: Any) -> ListContentKeysResponse

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.

streaming_locator_name
Required
str

The Streaming Locator name. Required.

Keyword-Only Parameters

Name Description
cls

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

Returns

Type Description

ListContentKeysResponse or the result of cls(response)

Exceptions

Type Description

list_paths

List Paths.

List Paths supported by this Streaming Locator.

async list_paths(resource_group_name: str, account_name: str, streaming_locator_name: str, **kwargs: Any) -> ListPathsResponse

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.

streaming_locator_name
Required
str

The Streaming Locator name. Required.

Keyword-Only Parameters

Name Description
cls

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

Returns

Type Description

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