azure.mgmt.media.operations module

class azure.mgmt.media.operations.MediaServiceOperations(client, config, serializer, deserializer)[source]

Bases: object

MediaServiceOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
check_name_availability(name, custom_headers=None, raw=False, **operation_config)[source]

Checks whether the Media Service resource name is available. The name must be globally unique.

Parameters:
  • name (str) – The name of the resource. A name must be globally unique.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

CheckNameAvailabilityOutput

Return type:

ClientRawResponse if raw=true

Raises:

ApiErrorException

create(resource_group_name, media_service_name, media_service, custom_headers=None, raw=False, **operation_config)[source]

Creates a Media Service.

Parameters:
  • resource_group_name (str) – Name of the resource group within the Azure subscription.
  • media_service_name (str) – Name of the Media Service.
  • media_service (MediaService) – Media Service properties needed for creation.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

MediaService

Return type:

ClientRawResponse if raw=true

Raises:

ApiErrorException

delete(resource_group_name, media_service_name, custom_headers=None, raw=False, **operation_config)[source]

Deletes a Media Service.

Parameters:
  • resource_group_name (str) – Name of the resource group within the Azure subscription.
  • media_service_name (str) – Name of the Media Service.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

None

Return type:

ClientRawResponse if raw=true

Raises:

ApiErrorException

get(resource_group_name, media_service_name, custom_headers=None, raw=False, **operation_config)[source]

Gets a Media Service.

Parameters:
  • resource_group_name (str) – Name of the resource group within the Azure subscription.
  • media_service_name (str) – Name of the Media Service.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

MediaService

Return type:

ClientRawResponse if raw=true

Raises:

ApiErrorException

list_by_resource_group(resource_group_name, custom_headers=None, raw=False, **operation_config)[source]

Lists all of the Media Services in a resource group.

Parameters:
  • resource_group_name (str) – Name of the resource group within the Azure subscription.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

MediaServicePaged

Raises:

ApiErrorException

list_keys(resource_group_name, media_service_name, custom_headers=None, raw=False, **operation_config)[source]

Lists the keys for a Media Service.

Parameters:
  • resource_group_name (str) – Name of the resource group within the Azure subscription.
  • media_service_name (str) – Name of the Media Service.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

ServiceKeys

Return type:

ClientRawResponse if raw=true

Raises:

ApiErrorException

regenerate_key(resource_group_name, media_service_name, key_type, custom_headers=None, raw=False, **operation_config)[source]

Regenerates a primary or secondary key for a Media Service.

Parameters:
  • resource_group_name (str) – Name of the resource group within the Azure subscription.
  • media_service_name (str) – Name of the Media Service.
  • key_type (str or KeyType) – The keyType indicating which key you want to regenerate, Primary or Secondary. Possible values include: ‘Primary’, ‘Secondary’
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

RegenerateKeyOutput

Return type:

ClientRawResponse if raw=true

Raises:

ApiErrorException

sync_storage_keys(resource_group_name, media_service_name, id, custom_headers=None, raw=False, **operation_config)[source]

Synchronizes storage account keys for a storage account associated with the Media Service account.

Parameters:
  • resource_group_name (str) – Name of the resource group within the Azure subscription.
  • media_service_name (str) – Name of the Media Service.
  • id (str) – The id of the storage account resource.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

None

Return type:

ClientRawResponse if raw=true

Raises:

ApiErrorException

update(resource_group_name, media_service_name, media_service, custom_headers=None, raw=False, **operation_config)[source]

Updates a Media Service.

Parameters:
  • resource_group_name (str) – Name of the resource group within the Azure subscription.
  • media_service_name (str) – Name of the Media Service.
  • media_service (MediaService) – Media Service properties needed for update.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

MediaService

Return type:

ClientRawResponse if raw=true

Raises:

ApiErrorException