LiveOutputsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

AzureMediaServices's

<xref:live_outputs> attribute.

Inheritance
builtins.object
LiveOutputsOperations

Constructor

LiveOutputsOperations(*args, **kwargs)

Methods

async_operation

Get operation status.

Get a Live Output operation status.

begin_create

Create Live Output.

Creates a new live output.

begin_delete

Delete Live Output.

Deletes a live output. Deleting a live output does not delete the asset the live output is writing to.

get

Get Live Output.

Gets a live output.

list

List Live Outputs.

Lists the live outputs of a live event.

operation_location

Get operation status.

Get a Live Output operation status.

async_operation

Get operation status.

Get a Live Output operation status.

async_operation(resource_group_name: str, account_name: str, operation_id: str, **kwargs: Any) -> AsyncOperationResult

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.

operation_id
Required
str

The ID of an ongoing async operation. Required.

Keyword-Only Parameters

Name Description
cls

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

Returns

Type Description

AsyncOperationResult or the result of cls(response)

Exceptions

Type Description

begin_create

Create Live Output.

Creates a new live output.

begin_create(resource_group_name: str, account_name: str, live_event_name: str, live_output_name: str, parameters: _models.LiveOutput, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.LiveOutput]

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.

live_event_name
Required
str

The name of the live event, maximum length is 32. Required.

live_output_name
Required
str

The name of the live output. Required.

parameters
Required

Live Output properties needed for creation. 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

continuation_token
str

A continuation token to restart a poller from a saved state.

polling

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

Type Description

An instance of LROPoller that returns either LiveOutput or the result of cls(response)

Exceptions

Type Description

begin_delete

Delete Live Output.

Deletes a live output. Deleting a live output does not delete the asset the live output is writing to.

begin_delete(resource_group_name: str, account_name: str, live_event_name: str, live_output_name: str, **kwargs: Any) -> LROPoller[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.

live_event_name
Required
str

The name of the live event, maximum length is 32. Required.

live_output_name
Required
str

The name of the live output. Required.

Keyword-Only Parameters

Name Description
cls

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

continuation_token
str

A continuation token to restart a poller from a saved state.

polling

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

Type Description

An instance of LROPoller that returns either None or the result of cls(response)

Exceptions

Type Description

get

Get Live Output.

Gets a live output.

get(resource_group_name: str, account_name: str, live_event_name: str, live_output_name: str, **kwargs: Any) -> LiveOutput

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.

live_event_name
Required
str

The name of the live event, maximum length is 32. Required.

live_output_name
Required
str

The name of the live output. Required.

Keyword-Only Parameters

Name Description
cls

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

Returns

Type Description

LiveOutput or the result of cls(response)

Exceptions

Type Description

list

List Live Outputs.

Lists the live outputs of a live event.

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

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.

live_event_name
Required
str

The name of the live event, maximum length is 32. 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 LiveOutput or the result of cls(response)

Exceptions

Type Description

operation_location

Get operation status.

Get a Live Output operation status.

operation_location(resource_group_name: str, account_name: str, live_event_name: str, live_output_name: str, operation_id: str, **kwargs: Any) -> LiveOutput | 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.

live_event_name
Required
str

The name of the live event, maximum length is 32. Required.

live_output_name
Required
str

The name of the live output. Required.

operation_id
Required
str

The ID of an ongoing async operation. Required.

Keyword-Only Parameters

Name Description
cls

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

Returns

Type Description

LiveOutput or None 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'>