MediaservicesOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:mediaservices> attribute.
- Inheritance
-
builtins.objectMediaservicesOperations
Constructor
MediaservicesOperations(*args, **kwargs)
Methods
begin_create_or_update |
Create or update a Media Services account. Creates or updates a Media Services account. |
begin_update |
Update a Media Services account. Updates an existing Media Services account. |
delete |
Delete a Media Services account. Deletes a Media Services account. |
get |
Get a Media Services account. Get the details of a Media Services account. |
list |
List Media Services accounts. List Media Services accounts in the resource group. |
list_by_subscription |
List Media Services accounts. List Media Services accounts in the subscription. |
list_edge_policies |
List the media edge policies associated with the Media Services account. List all the media edge policies associated with the Media Services account. |
sync_storage_keys |
Synchronizes Storage Account Keys. Synchronizes storage account keys for a storage account associated with the Media Service account. |
begin_create_or_update
Create or update a Media Services account.
Creates or updates a Media Services account.
begin_create_or_update(resource_group_name: str, account_name: str, parameters: _models.MediaService, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.MediaService]
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. |
parameters
Required
|
MediaService or
IO
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 |
continuation_token
|
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
|
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 MediaService or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_update
Update a Media Services account.
Updates an existing Media Services account.
begin_update(resource_group_name: str, account_name: str, parameters: _models.MediaServiceUpdate, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.MediaService]
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. |
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 |
continuation_token
|
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
|
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 MediaService or the result of cls(response) |
Exceptions
Type | Description |
---|---|
delete
Delete a Media Services account.
Deletes a Media Services account.
delete(resource_group_name: str, account_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. |
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 Media Services account.
Get the details of a Media Services account.
get(resource_group_name: str, account_name: str, **kwargs: Any) -> MediaService
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. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
MediaService or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list
List Media Services accounts.
List Media Services accounts in the resource group.
list(resource_group_name: str, **kwargs: Any) -> Iterable[MediaService]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group within the Azure subscription. 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 MediaService or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list_by_subscription
List Media Services accounts.
List Media Services accounts in the subscription.
list_by_subscription(**kwargs: Any) -> Iterable[MediaService]
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 MediaService or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list_edge_policies
List the media edge policies associated with the Media Services account.
List all the media edge policies associated with the Media Services account.
list_edge_policies(resource_group_name: str, account_name: str, parameters: _models.ListEdgePoliciesInput, *, content_type: str = 'application/json', **kwargs: Any) -> _models.EdgePolicies
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. |
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 |
---|---|
EdgePolicies or the result of cls(response) |
Exceptions
Type | Description |
---|---|
sync_storage_keys
Synchronizes Storage Account Keys.
Synchronizes storage account keys for a storage account associated with the Media Service account.
sync_storage_keys(resource_group_name: str, account_name: str, parameters: _models.SyncStorageKeysInput, *, content_type: str = 'application/json', **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. |
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 |
---|---|
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'>
Azure SDK for Python