azure.mgmt.media.models module

class azure.mgmt.media.models.ApiEndpoint(endpoint=None, major_version=None)[source]

Bases: msrest.serialization.Model

The properties for a Media Services REST API endpoint.

Parameters:
  • endpoint (str) – The Media Services REST endpoint.
  • major_version (str) – The version of Media Services REST API.
class azure.mgmt.media.models.ApiError(code=None, message=None)[source]

Bases: msrest.serialization.Model

The error returned from a failed Media Services REST API call.

Parameters:
  • code (str) – Error code.
  • message (str) – Error message.
exception azure.mgmt.media.models.ApiErrorException(deserialize, response, *args)[source]

Bases: msrest.exceptions.HttpOperationError

Server responsed with exception of type: ‘ApiError’.

Parameters:
  • deserialize – A deserializer
  • response – Server response to be deserialized.
class azure.mgmt.media.models.CheckNameAvailabilityInput(name)[source]

Bases: msrest.serialization.Model

The request body for CheckNameAvailability API.

Variables are only populated by the server, and will be ignored when sending a request.

Parameters:name (str) – The name of the resource. A name must be globally unique.
Variables:type (str) – The type of the resource - mediaservices. Default value: “mediaservices” .
type = 'mediaservices'
class azure.mgmt.media.models.CheckNameAvailabilityOutput(name_available=None, reason=None, message=None)[source]

Bases: msrest.serialization.Model

The response body for CheckNameAvailability API.

Parameters:
  • name_available (bool) – Specifies if the name is available.
  • reason (str or EntityNameUnavailabilityReason) – Specifies the reason if the name is not available. Possible values include: ‘None’, ‘Invalid’, ‘AlreadyExists’
  • message (str) – Specifies the detailed reason if the name is not available.
class azure.mgmt.media.models.StorageAccount(id, is_primary)[source]

Bases: msrest.serialization.Model

The properties of a storage account associated with this resource.

Parameters:
  • id (str) – The id of the storage account resource. Media Services relies on tables and queues as well as blobs, so the primary storage account must be a Standard Storage account (either Microsoft.ClassicStorage or Microsoft.Storage). Blob only storage accounts can be added as secondary storage accounts (isPrimary false).
  • is_primary (bool) – Is this storage account resource the primary storage account for the Media Service resource. Blob only storage must set this to false.
class azure.mgmt.media.models.MediaService(location=None, tags=None, storage_accounts=None)[source]

Bases: azure.mgmt.media.models.resource.Resource

The properties of a Media Service resource.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • id (str) – The id of the resource.
  • name (str) – The name of the resource.
  • type (str) – The type of the resource
  • api_endpoints (list of ApiEndpoint) – Read-only property that lists the Media Services REST API endpoints for this resource. If supplied on a PUT or PATCH, the value will be ignored.
Parameters:
  • location (str) – The geographic location of the resource. This must be one of the supported and registered Azure Geo Regions (for example, West US, East US, Southeast Asia, and so forth).
  • tags (dict) – Tags to help categorize the resource in the Azure portal.
  • storage_accounts (list of StorageAccount) – The storage accounts for this resource.
class azure.mgmt.media.models.RegenerateKeyInput(key_type)[source]

Bases: msrest.serialization.Model

The request body for a RegenerateKey API.

Parameters:key_type (str or KeyType) – The keyType indicating which key you want to regenerate, Primary or Secondary. Possible values include: ‘Primary’, ‘Secondary’
class azure.mgmt.media.models.RegenerateKeyOutput(key=None)[source]

Bases: msrest.serialization.Model

The response body for a RegenerateKey API.

Parameters:key (str) – The new value of either the primary or secondary key.
class azure.mgmt.media.models.Resource(location=None, tags=None)[source]

Bases: msrest.serialization.Model

The Azure Resource Manager resource.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • id (str) – The id of the resource.
  • name (str) – The name of the resource.
  • type (str) – The type of the resource
Parameters:
  • location (str) – The geographic location of the resource. This must be one of the supported and registered Azure Geo Regions (for example, West US, East US, Southeast Asia, and so forth).
  • tags (dict) – Tags to help categorize the resource in the Azure portal.
class azure.mgmt.media.models.ServiceKeys(primary_auth_endpoint=None, secondary_auth_endpoint=None, primary_key=None, secondary_key=None, scope=None)[source]

Bases: msrest.serialization.Model

The response body for a ListKeys API.

Parameters:
  • primary_auth_endpoint (str) – The primary authorization endpoint.
  • secondary_auth_endpoint (str) – The secondary authorization endpoint.
  • primary_key (str) – The primary key for the Media Service resource.
  • secondary_key (str) – The secondary key for the Media Service resource.
  • scope (str) – The authorization scope.
class azure.mgmt.media.models.SyncStorageKeysInput(id)[source]

Bases: msrest.serialization.Model

The request body for a SyncStorageKeys API.

Parameters:id (str) – The id of the storage account resource.
class azure.mgmt.media.models.OperationDisplay[source]

Bases: msrest.serialization.Model

The object that represents the operation.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • provider (str) – Service provider: Microsoft.Media
  • resource (str) – Resource on which the operation is performed: Invoice, etc.
  • operation (str) – Operation type: Read, write, delete, etc.
class azure.mgmt.media.models.Operation(display=None)[source]

Bases: msrest.serialization.Model

A Media Services REST API operation.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:name (str) – Operation name: {provider}/{resource}/{operation}
Parameters:display (OperationDisplay) – The object that represents the operation.
class azure.mgmt.media.models.OperationListResult[source]

Bases: msrest.serialization.Model

Result of the request to list Media Services operations.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • value (list of Operation) – List of Media Services operations supported by the Microsoft.Media resource provider.
  • next_link (str) – URL to get the next set of operation list results if there are any.
class azure.mgmt.media.models.MediaServicePaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of MediaService object

class azure.mgmt.media.models.ResourceType[source]

Bases: enum.Enum

mediaservices = 'mediaservices'
class azure.mgmt.media.models.EntityNameUnavailabilityReason[source]

Bases: enum.Enum

already_exists = 'AlreadyExists'
invalid = 'Invalid'
none = 'None'
class azure.mgmt.media.models.KeyType[source]

Bases: enum.Enum

primary = 'Primary'
secondary = 'Secondary'