azure.mgmt.media.operations module

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

Bases: object

Operations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – Version of the API to be used with the client request. The current version is 2015-10-01. Constant value: “2015-10-01”.

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

Lists all of the available Media Services REST API operations.

Parameters:
Returns:

OperationListResult or ClientRawResponse if raw=true

Return type:

OperationListResult or ClientRawResponse

Raises:

CloudError

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.
Variables:

api_version – Version of the API to be used with the client request. The current version is 2015-10-01. Constant value: “2015-10-01”.

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.
Returns:

CheckNameAvailabilityOutput or ClientRawResponse if raw=true

Return type:

CheckNameAvailabilityOutput or ClientRawResponse

Raises:

ApiErrorException

create(resource_group_name, media_service_name, parameters, 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.
  • parameters (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.
Returns:

MediaService or ClientRawResponse if raw=true

Return type:

MediaService or ClientRawResponse

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.
Returns:

None or ClientRawResponse if raw=true

Return type:

None or ClientRawResponse

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.
Returns:

MediaService or ClientRawResponse if raw=true

Return type:

MediaService or ClientRawResponse

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.
Returns:

An iterator like instance of MediaService

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.
Returns:

ServiceKeys or ClientRawResponse if raw=true

Return type:

ServiceKeys or ClientRawResponse

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.
Returns:

RegenerateKeyOutput or ClientRawResponse if raw=true

Return type:

RegenerateKeyOutput or ClientRawResponse

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.
Returns:

None or ClientRawResponse if raw=true

Return type:

None or ClientRawResponse

Raises:

ApiErrorException

update(resource_group_name, media_service_name, parameters, 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.
  • parameters (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.
Returns:

MediaService or ClientRawResponse if raw=true

Return type:

MediaService or ClientRawResponse

Raises:

ApiErrorException