media

package
Version: v58.3.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2021 License: MIT Imports: 11 Imported by: 108

Documentation

Overview

Package media implements the Azure ARM Media service API version 2018-06-01-preview.

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Media
	DefaultBaseURI = "https://management.azure.com"
)

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

Types

type APIError

type APIError struct {
	// Error - The error properties.
	Error *ODataError `json:"error,omitempty"`
}

APIError the API error.

type AacAudio

type AacAudio struct {
	// Profile - The encoding profile to be used when encoding audio with AAC. Possible values include: 'AacLc', 'HeAacV1', 'HeAacV2'
	Profile AacAudioProfile `json:"profile,omitempty"`
	// Channels - The number of channels in the audio.
	Channels *int32 `json:"channels,omitempty"`
	// SamplingRate - The sampling rate to use for encoding in hertz.
	SamplingRate *int32 `json:"samplingRate,omitempty"`
	// Bitrate - The bitrate, in bits per second, of the output encoded audio.
	Bitrate *int32 `json:"bitrate,omitempty"`
	// Label - An optional label for the codec. The label can be used to control muxing behavior.
	Label *string `json:"label,omitempty"`
	// OdataType - Possible values include: 'OdataTypeCodec', 'OdataTypeMicrosoftMediaAudio', 'OdataTypeMicrosoftMediaAacAudio', 'OdataTypeMicrosoftMediaCopyVideo', 'OdataTypeMicrosoftMediaVideo', 'OdataTypeMicrosoftMediaImage', 'OdataTypeMicrosoftMediaCopyAudio', 'OdataTypeMicrosoftMediaH264Video', 'OdataTypeMicrosoftMediaJpgImage', 'OdataTypeMicrosoftMediaPngImage'
	OdataType OdataTypeBasicCodec `json:"@odata.type,omitempty"`
}

AacAudio describes Advanced Audio Codec (AAC) audio encoding settings.

func (AacAudio) AsAacAudio

func (aa AacAudio) AsAacAudio() (*AacAudio, bool)

AsAacAudio is the BasicCodec implementation for AacAudio.

func (AacAudio) AsAudio

func (aa AacAudio) AsAudio() (*Audio, bool)

AsAudio is the BasicCodec implementation for AacAudio.

func (AacAudio) AsBasicAudio

func (aa AacAudio) AsBasicAudio() (BasicAudio, bool)

AsBasicAudio is the BasicCodec implementation for AacAudio.

func (AacAudio) AsBasicCodec

func (aa AacAudio) AsBasicCodec() (BasicCodec, bool)

AsBasicCodec is the BasicCodec implementation for AacAudio.

func (AacAudio) AsBasicImage

func (aa AacAudio) AsBasicImage() (BasicImage, bool)

AsBasicImage is the BasicCodec implementation for AacAudio.

func (AacAudio) AsBasicVideo

func (aa AacAudio) AsBasicVideo() (BasicVideo, bool)

AsBasicVideo is the BasicCodec implementation for AacAudio.

func (AacAudio) AsCodec

func (aa AacAudio) AsCodec() (*Codec, bool)

AsCodec is the BasicCodec implementation for AacAudio.

func (AacAudio) AsCopyAudio

func (aa AacAudio) AsCopyAudio() (*CopyAudio, bool)

AsCopyAudio is the BasicCodec implementation for AacAudio.

func (AacAudio) AsCopyVideo

func (aa AacAudio) AsCopyVideo() (*CopyVideo, bool)

AsCopyVideo is the BasicCodec implementation for AacAudio.

func (AacAudio) AsH264Video

func (aa AacAudio) AsH264Video() (*H264Video, bool)

AsH264Video is the BasicCodec implementation for AacAudio.

func (AacAudio) AsImage

func (aa AacAudio) AsImage() (*Image, bool)

AsImage is the BasicCodec implementation for AacAudio.

func (AacAudio) AsJpgImage

func (aa AacAudio) AsJpgImage() (*JpgImage, bool)

AsJpgImage is the BasicCodec implementation for AacAudio.

func (AacAudio) AsPngImage

func (aa AacAudio) AsPngImage() (*PngImage, bool)

AsPngImage is the BasicCodec implementation for AacAudio.

func (AacAudio) AsVideo

func (aa AacAudio) AsVideo() (*Video, bool)

AsVideo is the BasicCodec implementation for AacAudio.

func (AacAudio) MarshalJSON

func (aa AacAudio) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AacAudio.

type AacAudioProfile

type AacAudioProfile string

AacAudioProfile enumerates the values for aac audio profile.

const (
	// AacLc Specifies that the output audio is to be encoded into AAC Low Complexity profile (AAC-LC).
	AacLc AacAudioProfile = "AacLc"
	// HeAacV1 Specifies that the output audio is to be encoded into HE-AAC v1 profile.
	HeAacV1 AacAudioProfile = "HeAacV1"
	// HeAacV2 Specifies that the output audio is to be encoded into HE-AAC v2 profile.
	HeAacV2 AacAudioProfile = "HeAacV2"
)

func PossibleAacAudioProfileValues

func PossibleAacAudioProfileValues() []AacAudioProfile

PossibleAacAudioProfileValues returns an array of possible values for the AacAudioProfile const type.

type AkamaiAccessControl

type AkamaiAccessControl struct {
	// AkamaiSignatureHeaderAuthenticationKeyList - authentication key list
	AkamaiSignatureHeaderAuthenticationKeyList *[]AkamaiSignatureHeaderAuthenticationKey `json:"akamaiSignatureHeaderAuthenticationKeyList,omitempty"`
}

AkamaiAccessControl akamai access control

type AkamaiSignatureHeaderAuthenticationKey

type AkamaiSignatureHeaderAuthenticationKey struct {
	// Identifier - identifier of the key
	Identifier *string `json:"identifier,omitempty"`
	// Base64Key - authentication key
	Base64Key *string `json:"base64Key,omitempty"`
	// Expiration - The exact time the authentication key.
	Expiration *date.Time `json:"expiration,omitempty"`
}

AkamaiSignatureHeaderAuthenticationKey akamai Signature Header authentication key.

type Asset

type Asset struct {
	autorest.Response `json:"-"`
	// AssetProperties - The resource properties.
	*AssetProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Fully qualified resource ID for the resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource.
	Type *string `json:"type,omitempty"`
}

Asset an Asset.

func (Asset) MarshalJSON

func (a Asset) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Asset.

func (*Asset) UnmarshalJSON

func (a *Asset) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Asset struct.

type AssetCollection

type AssetCollection struct {
	autorest.Response `json:"-"`
	// Value - A collection of Asset items.
	Value *[]Asset `json:"value,omitempty"`
	// OdataNextLink - A link to the next page of the collection (when the collection contains too many results to return in one response).
	OdataNextLink *string `json:"@odata.nextLink,omitempty"`
}

AssetCollection a collection of Asset items.

func (AssetCollection) IsEmpty

func (ac AssetCollection) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AssetCollectionIterator

type AssetCollectionIterator struct {
	// contains filtered or unexported fields
}

AssetCollectionIterator provides access to a complete listing of Asset values.

func NewAssetCollectionIterator

func NewAssetCollectionIterator(page AssetCollectionPage) AssetCollectionIterator

Creates a new instance of the AssetCollectionIterator type.

func (*AssetCollectionIterator) Next deprecated

func (iter *AssetCollectionIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*AssetCollectionIterator) NextWithContext

func (iter *AssetCollectionIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (AssetCollectionIterator) NotDone

func (iter AssetCollectionIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (AssetCollectionIterator) Response

func (iter AssetCollectionIterator) Response() AssetCollection

Response returns the raw server response from the last page request.

func (AssetCollectionIterator) Value

func (iter AssetCollectionIterator) Value() Asset

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type AssetCollectionPage

type AssetCollectionPage struct {
	// contains filtered or unexported fields
}

AssetCollectionPage contains a page of Asset values.

func NewAssetCollectionPage

func NewAssetCollectionPage(cur AssetCollection, getNextPage func(context.Context, AssetCollection) (AssetCollection, error)) AssetCollectionPage

Creates a new instance of the AssetCollectionPage type.

func (*AssetCollectionPage) Next deprecated

func (page *AssetCollectionPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*AssetCollectionPage) NextWithContext

func (page *AssetCollectionPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (AssetCollectionPage) NotDone

func (page AssetCollectionPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (AssetCollectionPage) Response

func (page AssetCollectionPage) Response() AssetCollection

Response returns the raw server response from the last page request.

func (AssetCollectionPage) Values

func (page AssetCollectionPage) Values() []Asset

Values returns the slice of values for the current page or nil if there are no values.

type AssetContainerPermission

type AssetContainerPermission string

AssetContainerPermission enumerates the values for asset container permission.

const (
	// Read The SAS URL will allow read access to the container.
	Read AssetContainerPermission = "Read"
	// ReadWrite The SAS URL will allow read and write access to the container.
	ReadWrite AssetContainerPermission = "ReadWrite"
	// ReadWriteDelete The SAS URL will allow read, write and delete access to the container.
	ReadWriteDelete AssetContainerPermission = "ReadWriteDelete"
)

func PossibleAssetContainerPermissionValues

func PossibleAssetContainerPermissionValues() []AssetContainerPermission

PossibleAssetContainerPermissionValues returns an array of possible values for the AssetContainerPermission const type.

type AssetContainerSas

type AssetContainerSas struct {
	autorest.Response `json:"-"`
	// AssetContainerSasUrls - The list of Asset container SAS URLs.
	AssetContainerSasUrls *[]string `json:"assetContainerSasUrls,omitempty"`
}

AssetContainerSas the Asset Storage container SAS URLs.

type AssetProperties

type AssetProperties struct {
	// AssetID - READ-ONLY; The Asset ID.
	AssetID *uuid.UUID `json:"assetId,omitempty"`
	// Created - READ-ONLY; The creation date of the Asset.
	Created *date.Time `json:"created,omitempty"`
	// LastModified - READ-ONLY; The last modified date of the Asset.
	LastModified *date.Time `json:"lastModified,omitempty"`
	// AlternateID - The alternate ID of the Asset.
	AlternateID *string `json:"alternateId,omitempty"`
	// Description - The Asset description.
	Description *string `json:"description,omitempty"`
	// Container - The name of the asset blob container.
	Container *string `json:"container,omitempty"`
	// StorageAccountName - The name of the storage account.
	StorageAccountName *string `json:"storageAccountName,omitempty"`
	// StorageEncryptionFormat - READ-ONLY; The Asset encryption format. One of None or MediaStorageEncryption. Possible values include: 'None', 'MediaStorageClientEncryption'
	StorageEncryptionFormat AssetStorageEncryptionFormat `json:"storageEncryptionFormat,omitempty"`
}

AssetProperties the Asset properties.

func (AssetProperties) MarshalJSON

func (ap AssetProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AssetProperties.

type AssetStorageEncryptionFormat

type AssetStorageEncryptionFormat string

AssetStorageEncryptionFormat enumerates the values for asset storage encryption format.

const (
	// MediaStorageClientEncryption The Asset is encrypted with Media Services client-side encryption.
	MediaStorageClientEncryption AssetStorageEncryptionFormat = "MediaStorageClientEncryption"
	// None The Asset does not use client-side storage encryption (this is the only allowed value for new
	// Assets).
	None AssetStorageEncryptionFormat = "None"
)

func PossibleAssetStorageEncryptionFormatValues

func PossibleAssetStorageEncryptionFormatValues() []AssetStorageEncryptionFormat

PossibleAssetStorageEncryptionFormatValues returns an array of possible values for the AssetStorageEncryptionFormat const type.

type AssetStorageEncryptionKey

type AssetStorageEncryptionKey struct {
	autorest.Response `json:"-"`
	// StorageEncryptionKey - The Asset storage encryption key.
	StorageEncryptionKey *string `json:"storageEncryptionKey,omitempty"`
}

AssetStorageEncryptionKey the Asset Storage encryption key.

type AssetsClient

type AssetsClient struct {
	BaseClient
}

AssetsClient is the client for the Assets methods of the Media service.

func NewAssetsClient

func NewAssetsClient(subscriptionID string) AssetsClient

NewAssetsClient creates an instance of the AssetsClient client.

func NewAssetsClientWithBaseURI

func NewAssetsClientWithBaseURI(baseURI string, subscriptionID string) AssetsClient

NewAssetsClientWithBaseURI creates an instance of the AssetsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (AssetsClient) CreateOrUpdate

func (client AssetsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, assetName string, parameters Asset) (result Asset, err error)

CreateOrUpdate creates or updates an Asset in the Media Services account Parameters: resourceGroupName - the name of the resource group within the Azure subscription. accountName - the Media Services account name. assetName - the Asset name. parameters - the request parameters

func (AssetsClient) CreateOrUpdatePreparer

func (client AssetsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, assetName string, parameters Asset) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (AssetsClient) CreateOrUpdateResponder

func (client AssetsClient) CreateOrUpdateResponder(resp *http.Response) (result Asset, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (AssetsClient) CreateOrUpdateSender

func (client AssetsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (AssetsClient) Delete

func (client AssetsClient) Delete(ctx context.Context, resourceGroupName string, accountName string, assetName string) (result autorest.Response, err error)

Delete deletes an Asset in the Media Services account Parameters: resourceGroupName - the name of the resource group within the Azure subscription. accountName - the Media Services account name. assetName - the Asset name.

func (AssetsClient) DeletePreparer

func (client AssetsClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string, assetName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (AssetsClient) DeleteResponder

func (client AssetsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (AssetsClient) DeleteSender

func (client AssetsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (AssetsClient) Get

func (client AssetsClient) Get(ctx context.Context, resourceGroupName string, accountName string, assetName string) (result Asset, err error)

Get get the details of an Asset in the Media Services account Parameters: resourceGroupName - the name of the resource group within the Azure subscription. accountName - the Media Services account name. assetName - the Asset name.

func (AssetsClient) GetEncryptionKey

func (client AssetsClient) GetEncryptionKey(ctx context.Context, resourceGroupName string, accountName string, assetName string) (result AssetStorageEncryptionKey, err error)

GetEncryptionKey gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API Parameters: resourceGroupName - the name of the resource group within the Azure subscription. accountName - the Media Services account name. assetName - the Asset name.

func (AssetsClient) GetEncryptionKeyPreparer

func (client AssetsClient) GetEncryptionKeyPreparer(ctx context.Context, resourceGroupName string, accountName string, assetName string) (*http.Request, error)

GetEncryptionKeyPreparer prepares the GetEncryptionKey request.

func (AssetsClient) GetEncryptionKeyResponder

func (client AssetsClient) GetEncryptionKeyResponder(resp *http.Response) (result AssetStorageEncryptionKey, err error)

GetEncryptionKeyResponder handles the response to the GetEncryptionKey request. The method always closes the http.Response Body.

func (AssetsClient) GetEncryptionKeySender

func (client AssetsClient) GetEncryptionKeySender(req *http.Request) (*http.Response, error)

GetEncryptionKeySender sends the GetEncryptionKey request. The method will close the http.Response Body if it receives an error.

func (AssetsClient) GetPreparer

func (client AssetsClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string, assetName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (AssetsClient) GetResponder

func (client AssetsClient) GetResponder(resp *http.Response) (result Asset, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (AssetsClient) GetSender

func (client AssetsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (AssetsClient) List

func (client AssetsClient) List(ctx context.Context, resourceGroupName string, accountName string, filter string, top *int32, orderby string) (result AssetCollectionPage, err error)

List list Assets in the Media Services account with optional filtering and ordering Parameters: resourceGroupName - the name of the resource group within the Azure subscription. accountName - the Media Services account name. filter - restricts the set of items returned. top - specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n. orderby - specifies the key by which the result collection should be ordered.

func (AssetsClient) ListComplete

func (client AssetsClient) ListComplete(ctx context.Context, resourceGroupName string, accountName string, filter string, top *int32, orderby string) (result AssetCollectionIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (AssetsClient) ListContainerSas

func (client AssetsClient) ListContainerSas(ctx context.Context, resourceGroupName string, accountName string, assetName string, parameters ListContainerSasInput) (result AssetContainerSas, err error)

ListContainerSas lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. The signatures are derived from the storage account keys. Parameters: resourceGroupName - the name of the resource group within the Azure subscription. accountName - the Media Services account name. assetName - the Asset name. parameters - the request parameters

func (AssetsClient) ListContainerSasPreparer

func (client AssetsClient) ListContainerSasPreparer(ctx context.Context, resourceGroupName string, accountName string, assetName string, parameters ListContainerSasInput) (*http.Request, error)

ListContainerSasPreparer prepares the ListContainerSas request.

func (AssetsClient) ListContainerSasResponder

func (client AssetsClient) ListContainerSasResponder(resp *http.Response) (result AssetContainerSas, err error)

ListContainerSasResponder handles the response to the ListContainerSas request. The method always closes the http.Response Body.

func (AssetsClient) ListContainerSasSender

func (client AssetsClient) ListContainerSasSender(req *http.Request) (*http.Response, error)

ListContainerSasSender sends the ListContainerSas request. The method will close the http.Response Body if it receives an error.

func (AssetsClient) ListPreparer

func (client AssetsClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string, filter string, top *int32, orderby string) (*http.Request, error)

ListPreparer prepares the List request.

func (AssetsClient) ListResponder

func (client AssetsClient) ListResponder(resp *http.Response) (result AssetCollection, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (AssetsClient) ListSender

func (client AssetsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (AssetsClient) Update

func (client AssetsClient) Update(ctx context.Context, resourceGroupName string, accountName string, assetName string, parameters Asset) (result Asset, err error)

Update updates an existing Asset in the Media Services account Parameters: resourceGroupName - the name of the resource group within the Azure subscription. accountName - the Media Services account name. assetName - the Asset name. parameters - the request parameters

func (AssetsClient) UpdatePreparer

func (client AssetsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, assetName string, parameters Asset) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (AssetsClient) UpdateResponder

func (client AssetsClient) UpdateResponder(resp *http.Response) (result Asset, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (AssetsClient) UpdateSender

func (client AssetsClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type Audio

type Audio struct {
	// Channels - The number of channels in the audio.
	Channels *int32 `json:"channels,omitempty"`
	// SamplingRate - The sampling rate to use for encoding in hertz.
	SamplingRate *int32 `json:"samplingRate,omitempty"`
	// Bitrate - The bitrate, in bits per second, of the output encoded audio.
	Bitrate *int32 `json:"bitrate,omitempty"`
	// Label - An optional label for the codec. The label can be used to control muxing behavior.
	Label *string `json:"label,omitempty"`
	// OdataType - Possible values include: 'OdataTypeCodec', 'OdataTypeMicrosoftMediaAudio', 'OdataTypeMicrosoftMediaAacAudio', 'OdataTypeMicrosoftMediaCopyVideo', 'OdataTypeMicrosoftMediaVideo', 'OdataTypeMicrosoftMediaImage', 'OdataTypeMicrosoftMediaCopyAudio', 'OdataTypeMicrosoftMediaH264Video', 'OdataTypeMicrosoftMediaJpgImage', 'OdataTypeMicrosoftMediaPngImage'
	OdataType OdataTypeBasicCodec `json:"@odata.type,omitempty"`
}

Audio defines the common properties for all audio codecs.

func (Audio) AsAacAudio

func (a Audio) AsAacAudio() (*AacAudio, bool)

AsAacAudio is the BasicCodec implementation for Audio.

func (Audio) AsAudio

func (a Audio) AsAudio() (*Audio, bool)

AsAudio is the BasicCodec implementation for Audio.

func (Audio) AsBasicAudio

func (a Audio) AsBasicAudio() (BasicAudio, bool)

AsBasicAudio is the BasicCodec implementation for Audio.

func (Audio) AsBasicCodec

func (a Audio) AsBasicCodec() (BasicCodec, bool)

AsBasicCodec is the BasicCodec implementation for Audio.

func (Audio) AsBasicImage

func (a Audio) AsBasicImage() (BasicImage, bool)

AsBasicImage is the BasicCodec implementation for Audio.

func (Audio) AsBasicVideo

func (a Audio) AsBasicVideo() (BasicVideo, bool)

AsBasicVideo is the BasicCodec implementation for Audio.

func (Audio) AsCodec

func (a Audio) AsCodec() (*Codec, bool)

AsCodec is the BasicCodec implementation for Audio.

func (Audio) AsCopyAudio

func (a Audio) AsCopyAudio() (*CopyAudio, bool)

AsCopyAudio is the BasicCodec implementation for Audio.

func (Audio) AsCopyVideo

func (a Audio) AsCopyVideo() (*CopyVideo, bool)

AsCopyVideo is the BasicCodec implementation for Audio.

func (Audio) AsH264Video

func (a Audio) AsH264Video() (*H264Video, bool)

AsH264Video is the BasicCodec implementation for Audio.

func (Audio) AsImage

func (a Audio) AsImage() (*Image, bool)

AsImage is the BasicCodec implementation for Audio.

func (Audio) AsJpgImage

func (a Audio) AsJpgImage() (*JpgImage, bool)

AsJpgImage is the BasicCodec implementation for Audio.

func (Audio) AsPngImage

func (a Audio) AsPngImage() (*PngImage, bool)

AsPngImage is the BasicCodec implementation for Audio.

func (Audio) AsVideo

func (a Audio) AsVideo() (*Video, bool)

AsVideo is the BasicCodec implementation for Audio.

func (Audio) MarshalJSON

func (a Audio) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Audio.

type AudioAnalyzerPreset

type AudioAnalyzerPreset struct {
	// AudioLanguage - The language for the audio payload in the input using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). The list of supported languages are, 'en-US', 'en-GB', 'es-ES', 'es-MX', 'fr-FR', 'it-IT', 'ja-JP', 'pt-BR', 'zh-CN'.
	AudioLanguage *string `json:"audioLanguage,omitempty"`
	// OdataType - Possible values include: 'OdataTypePreset', 'OdataTypeMicrosoftMediaAudioAnalyzerPreset', 'OdataTypeMicrosoftMediaBuiltInStandardEncoderPreset', 'OdataTypeMicrosoftMediaStandardEncoderPreset', 'OdataTypeMicrosoftMediaVideoAnalyzerPreset'
	OdataType OdataTypeBasicPreset `json:"@odata.type,omitempty"`
}

AudioAnalyzerPreset the Audio Analyzer preset applies a pre-defined set of AI-based analysis operations, including speech transcription. Currently, the preset supports processing of content with a single audio track.

func (AudioAnalyzerPreset) AsAudioAnalyzerPreset

func (aap AudioAnalyzerPreset) AsAudioAnalyzerPreset() (*AudioAnalyzerPreset, bool)

AsAudioAnalyzerPreset is the BasicPreset implementation for AudioAnalyzerPreset.

func (AudioAnalyzerPreset) AsBasicAudioAnalyzerPreset

func (aap AudioAnalyzerPreset) AsBasicAudioAnalyzerPreset() (BasicAudioAnalyzerPreset, bool)

AsBasicAudioAnalyzerPreset is the BasicPreset implementation for AudioAnalyzerPreset.

func (AudioAnalyzerPreset) AsBasicPreset

func (aap AudioAnalyzerPreset) AsBasicPreset() (BasicPreset, bool)

AsBasicPreset is the BasicPreset implementation for AudioAnalyzerPreset.

func (AudioAnalyzerPreset) AsBuiltInStandardEncoderPreset

func (aap AudioAnalyzerPreset) AsBuiltInStandardEncoderPreset() (*BuiltInStandardEncoderPreset, bool)

AsBuiltInStandardEncoderPreset is the BasicPreset implementation for AudioAnalyzerPreset.

func (AudioAnalyzerPreset) AsPreset

func (aap AudioAnalyzerPreset) AsPreset() (*Preset, bool)

AsPreset is the BasicPreset implementation for AudioAnalyzerPreset.

func (AudioAnalyzerPreset) AsStandardEncoderPreset

func (aap AudioAnalyzerPreset) AsStandardEncoderPreset() (*StandardEncoderPreset, bool)

AsStandardEncoderPreset is the BasicPreset implementation for AudioAnalyzerPreset.

func (AudioAnalyzerPreset) AsVideoAnalyzerPreset

func (aap AudioAnalyzerPreset) AsVideoAnalyzerPreset() (*VideoAnalyzerPreset, bool)

AsVideoAnalyzerPreset is the BasicPreset implementation for AudioAnalyzerPreset.

func (AudioAnalyzerPreset) MarshalJSON

func (aap AudioAnalyzerPreset) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AudioAnalyzerPreset.

type AudioOverlay

type AudioOverlay struct {
	// InputLabel - The label of the job input which is to be used as an overlay. The Input must specify exactly one file. You can specify an image file in JPG or PNG formats, or an audio file (such as a WAV, MP3, WMA or M4A file), or a video file. See https://aka.ms/mesformats for the complete list of supported audio and video file formats.
	InputLabel *string `json:"inputLabel,omitempty"`
	// Start - The start position, with reference to the input video, at which the overlay starts. The value should be in ISO 8601 format. For example, PT05S to start the overlay at 5 seconds in to the input video. If not specified the overlay starts from the beginning of the input video.
	Start *string `json:"start,omitempty"`
	// End - The position in the input video at which the overlay ends. The value should be in ISO 8601 duration format. For example, PT30S to end the overlay at 30 seconds in to the input video. If not specified the overlay will be applied until the end of the input video if inputLoop is true. Else, if inputLoop is false, then overlay will last as long as the duration of the overlay media.
	End *string `json:"end,omitempty"`
	// FadeInDuration - The duration over which the overlay fades in onto the input video. The value should be in ISO 8601 duration format. If not specified the default behavior is to have no fade in (same as PT0S).
	FadeInDuration *string `json:"fadeInDuration,omitempty"`
	// FadeOutDuration - The duration over which the overlay fades out of the input video. The value should be in ISO 8601 duration format. If not specified the default behavior is to have no fade out (same as PT0S).
	FadeOutDuration *string `json:"fadeOutDuration,omitempty"`
	// AudioGainLevel - The gain level of audio in the overlay. The value should be in the range [0, 1.0]. The default is 1.0.
	AudioGainLevel *float64 `json:"audioGainLevel,omitempty"`
	// OdataType - Possible values include: 'OdataTypeOverlay', 'OdataTypeMicrosoftMediaAudioOverlay', 'OdataTypeMicrosoftMediaVideoOverlay'
	OdataType OdataTypeBasicOverlay `json:"@odata.type,omitempty"`
}

AudioOverlay describes the properties of an audio overlay.

func (AudioOverlay) AsAudioOverlay

func (ao AudioOverlay) AsAudioOverlay() (*AudioOverlay, bool)

AsAudioOverlay is the BasicOverlay implementation for AudioOverlay.

func (AudioOverlay) AsBasicOverlay

func (ao AudioOverlay) AsBasicOverlay() (BasicOverlay, bool)

AsBasicOverlay is the BasicOverlay implementation for AudioOverlay.

func (AudioOverlay) AsOverlay

func (ao AudioOverlay) AsOverlay() (*Overlay, bool)

AsOverlay is the BasicOverlay implementation for AudioOverlay.

func (AudioOverlay) AsVideoOverlay

func (ao AudioOverlay) AsVideoOverlay() (*VideoOverlay, bool)

AsVideoOverlay is the BasicOverlay implementation for AudioOverlay.

func (AudioOverlay) MarshalJSON

func (ao AudioOverlay) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AudioOverlay.

type BaseClient

type BaseClient struct {
	autorest.Client
	BaseURI        string
	SubscriptionID string
}

BaseClient is the base client for Media.

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

type BasicAudio

type BasicAudio interface {
	AsAacAudio() (*AacAudio, bool)
	AsAudio() (*Audio, bool)
}

BasicAudio defines the common properties for all audio codecs.

type BasicAudioAnalyzerPreset

type BasicAudioAnalyzerPreset interface {
	AsVideoAnalyzerPreset() (*VideoAnalyzerPreset, bool)
	AsAudioAnalyzerPreset() (*AudioAnalyzerPreset, bool)
}

BasicAudioAnalyzerPreset the Audio Analyzer preset applies a pre-defined set of AI-based analysis operations, including speech transcription. Currently, the preset supports processing of content with a single audio track.

type BasicCodec

type BasicCodec interface {
	AsAudio() (*Audio, bool)
	AsBasicAudio() (BasicAudio, bool)
	AsAacAudio() (*AacAudio, bool)
	AsCopyVideo() (*CopyVideo, bool)
	AsVideo() (*Video, bool)
	AsBasicVideo() (BasicVideo, bool)
	AsImage() (*Image, bool)
	AsBasicImage() (BasicImage, bool)
	AsCopyAudio() (*CopyAudio, bool)
	AsH264Video() (*H264Video, bool)
	AsJpgImage() (*JpgImage, bool)
	AsPngImage() (*PngImage, bool)
	AsCodec() (*Codec, bool)
}

BasicCodec describes the basic properties of all codecs.

type BasicContentKeyPolicyConfiguration

type BasicContentKeyPolicyConfiguration interface {
	AsContentKeyPolicyClearKeyConfiguration() (*ContentKeyPolicyClearKeyConfiguration, bool)
	AsContentKeyPolicyUnknownConfiguration() (*ContentKeyPolicyUnknownConfiguration, bool)
	AsContentKeyPolicyWidevineConfiguration() (*ContentKeyPolicyWidevineConfiguration, bool)
	AsContentKeyPolicyPlayReadyConfiguration() (*ContentKeyPolicyPlayReadyConfiguration, bool)
	AsContentKeyPolicyFairPlayConfiguration() (*ContentKeyPolicyFairPlayConfiguration, bool)
	AsContentKeyPolicyConfiguration() (*ContentKeyPolicyConfiguration, bool)
}

BasicContentKeyPolicyConfiguration base class for Content Key Policy configuration. A derived class must be used to create a configuration.

type BasicContentKeyPolicyPlayReadyContentKeyLocation

type BasicContentKeyPolicyPlayReadyContentKeyLocation interface {
	AsContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader() (*ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader, bool)
	AsContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier() (*ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier, bool)
	AsContentKeyPolicyPlayReadyContentKeyLocation() (*ContentKeyPolicyPlayReadyContentKeyLocation, bool)
}

BasicContentKeyPolicyPlayReadyContentKeyLocation base class for content key ID location. A derived class must be used to represent the location.

type BasicContentKeyPolicyRestriction

type BasicContentKeyPolicyRestriction interface {
	AsContentKeyPolicyOpenRestriction() (*ContentKeyPolicyOpenRestriction, bool)
	AsContentKeyPolicyUnknownRestriction() (*ContentKeyPolicyUnknownRestriction, bool)
	AsContentKeyPolicyTokenRestriction() (*ContentKeyPolicyTokenRestriction, bool)
	AsContentKeyPolicyRestriction() (*ContentKeyPolicyRestriction, bool)
}

BasicContentKeyPolicyRestriction base class for Content Key Policy restrictions. A derived class must be used to create a restriction.

type BasicContentKeyPolicyRestrictionTokenKey

type BasicContentKeyPolicyRestrictionTokenKey interface {
	AsContentKeyPolicySymmetricTokenKey() (*ContentKeyPolicySymmetricTokenKey, bool)
	AsContentKeyPolicyRsaTokenKey() (*ContentKeyPolicyRsaTokenKey, bool)
	AsContentKeyPolicyX509CertificateTokenKey() (*ContentKeyPolicyX509CertificateTokenKey, bool)
	AsContentKeyPolicyRestrictionTokenKey() (*ContentKeyPolicyRestrictionTokenKey, bool)
}

BasicContentKeyPolicyRestrictionTokenKey base class for Content Key Policy key for token validation. A derived class must be used to create a token key.

type BasicFormat

type BasicFormat interface {
	AsImageFormat() (*ImageFormat, bool)
	AsBasicImageFormat() (BasicImageFormat, bool)
	AsJpgFormat() (*JpgFormat, bool)
	AsPngFormat() (*PngFormat, bool)
	AsMultiBitrateFormat() (*MultiBitrateFormat, bool)
	AsBasicMultiBitrateFormat() (BasicMultiBitrateFormat, bool)
	AsMp4Format() (*Mp4Format, bool)
	AsTransportStreamFormat() (*TransportStreamFormat, bool)
	AsFormat() (*Format, bool)
}

BasicFormat base class for output.

type BasicImage

type BasicImage interface {
	AsJpgImage() (*JpgImage, bool)
	AsPngImage() (*PngImage, bool)
	AsImage() (*Image, bool)
}

BasicImage describes the basic properties for generating thumbnails from the input video

type BasicImageFormat

type BasicImageFormat interface {
	AsJpgFormat() (*JpgFormat, bool)
	AsPngFormat() (*PngFormat, bool)
	AsImageFormat() (*ImageFormat, bool)
}

BasicImageFormat describes the properties for an output image file.

type BasicJobInput

type BasicJobInput interface {
	AsJobInputClip() (*JobInputClip, bool)
	AsBasicJobInputClip() (BasicJobInputClip, bool)
	AsJobInputs() (*JobInputs, bool)
	AsJobInputAsset() (*JobInputAsset, bool)
	AsJobInputHTTP() (*JobInputHTTP, bool)
	AsJobInput() (*JobInput, bool)
}

BasicJobInput base class for inputs to a Job.

type BasicJobInputClip

type BasicJobInputClip interface {
	AsJobInputAsset() (*JobInputAsset, bool)
	AsJobInputHTTP() (*JobInputHTTP, bool)
	AsJobInputClip() (*JobInputClip, bool)
}

BasicJobInputClip represents input files for a Job.

type BasicJobOutput

type BasicJobOutput interface {
	AsJobOutputAsset() (*JobOutputAsset, bool)
	AsJobOutput() (*JobOutput, bool)
}

BasicJobOutput describes all the properties of a JobOutput.

type BasicLayer

type BasicLayer interface {
	AsVideoLayer() (*VideoLayer, bool)
	AsBasicVideoLayer() (BasicVideoLayer, bool)
	AsH264Layer() (*H264Layer, bool)
	AsJpgLayer() (*JpgLayer, bool)
	AsPngLayer() (*PngLayer, bool)
	AsLayer() (*Layer, bool)
}

BasicLayer the encoder can be configured to produce video and/or images (thumbnails) at different resolutions, by specifying a layer for each desired resolution. A layer represents the properties for the video or image at a resolution.

type BasicMultiBitrateFormat

type BasicMultiBitrateFormat interface {
	AsMp4Format() (*Mp4Format, bool)
	AsTransportStreamFormat() (*TransportStreamFormat, bool)
	AsMultiBitrateFormat() (*MultiBitrateFormat, bool)
}

BasicMultiBitrateFormat describes the properties for producing a collection of GOP aligned multi-bitrate files. The default behavior is to produce one output file for each video layer which is muxed together with all the audios. The exact output files produced can be controlled by specifying the outputFiles collection.

type BasicOverlay

type BasicOverlay interface {
	AsAudioOverlay() (*AudioOverlay, bool)
	AsVideoOverlay() (*VideoOverlay, bool)
	AsOverlay() (*Overlay, bool)
}

BasicOverlay base type for all overlays - image, audio or video.

type BasicPreset

type BasicPreset interface {
	AsAudioAnalyzerPreset() (*AudioAnalyzerPreset, bool)
	AsBasicAudioAnalyzerPreset() (BasicAudioAnalyzerPreset, bool)
	AsBuiltInStandardEncoderPreset() (*BuiltInStandardEncoderPreset, bool)
	AsStandardEncoderPreset() (*StandardEncoderPreset, bool)
	AsVideoAnalyzerPreset() (*VideoAnalyzerPreset, bool)
	AsPreset() (*Preset, bool)
}

BasicPreset base type for all Presets, which define the recipe or instructions on how the input media files should be processed.

type BasicVideo

type BasicVideo interface {
	AsImage() (*Image, bool)
	AsBasicImage() (BasicImage, bool)
	AsH264Video() (*H264Video, bool)
	AsJpgImage() (*JpgImage, bool)
	AsPngImage() (*PngImage, bool)
	AsVideo() (*Video, bool)
}

BasicVideo describes the basic properties for encoding the input video.

type BasicVideoLayer

type BasicVideoLayer interface {
	AsH264Layer() (*H264Layer, bool)
	AsVideoLayer() (*VideoLayer, bool)
}

BasicVideoLayer describes the settings to be used when encoding the input video into a desired output bitrate layer.

type BuiltInStandardEncoderPreset

type BuiltInStandardEncoderPreset struct {
	// PresetName - The built-in preset to be used for encoding videos. Possible values include: 'AdaptiveStreaming', 'AACGoodQualityAudio', 'H264MultipleBitrate1080p', 'H264MultipleBitrate720p', 'H264MultipleBitrateSD'
	PresetName EncoderNamedPreset `json:"presetName,omitempty"`
	// OdataType - Possible values include: 'OdataTypePreset', 'OdataTypeMicrosoftMediaAudioAnalyzerPreset', 'OdataTypeMicrosoftMediaBuiltInStandardEncoderPreset', 'OdataTypeMicrosoftMediaStandardEncoderPreset', 'OdataTypeMicrosoftMediaVideoAnalyzerPreset'
	OdataType OdataTypeBasicPreset `json:"@odata.type,omitempty"`
}

BuiltInStandardEncoderPreset describes a built-in preset for encoding the input video with the Standard Encoder.

func (BuiltInStandardEncoderPreset) AsAudioAnalyzerPreset

func (bisep BuiltInStandardEncoderPreset) AsAudioAnalyzerPreset() (*AudioAnalyzerPreset, bool)

AsAudioAnalyzerPreset is the BasicPreset implementation for BuiltInStandardEncoderPreset.

func (BuiltInStandardEncoderPreset) AsBasicAudioAnalyzerPreset

func (bisep BuiltInStandardEncoderPreset) AsBasicAudioAnalyzerPreset() (BasicAudioAnalyzerPreset, bool)

AsBasicAudioAnalyzerPreset is the BasicPreset implementation for BuiltInStandardEncoderPreset.

func (BuiltInStandardEncoderPreset) AsBasicPreset

func (bisep BuiltInStandardEncoderPreset) AsBasicPreset() (BasicPreset, bool)

AsBasicPreset is the BasicPreset implementation for BuiltInStandardEncoderPreset.

func (BuiltInStandardEncoderPreset) AsBuiltInStandardEncoderPreset

func (bisep BuiltInStandardEncoderPreset) AsBuiltInStandardEncoderPreset() (*BuiltInStandardEncoderPreset, bool)

AsBuiltInStandardEncoderPreset is the BasicPreset implementation for BuiltInStandardEncoderPreset.

func (BuiltInStandardEncoderPreset) AsPreset

func (bisep BuiltInStandardEncoderPreset) AsPreset() (*Preset, bool)

AsPreset is the BasicPreset implementation for BuiltInStandardEncoderPreset.

func (BuiltInStandardEncoderPreset) AsStandardEncoderPreset

func (bisep BuiltInStandardEncoderPreset) AsStandardEncoderPreset() (*StandardEncoderPreset, bool)

AsStandardEncoderPreset is the BasicPreset implementation for BuiltInStandardEncoderPreset.

func (BuiltInStandardEncoderPreset) AsVideoAnalyzerPreset

func (bisep BuiltInStandardEncoderPreset) AsVideoAnalyzerPreset() (*VideoAnalyzerPreset, bool)

AsVideoAnalyzerPreset is the BasicPreset implementation for BuiltInStandardEncoderPreset.

func (BuiltInStandardEncoderPreset) MarshalJSON

func (bisep BuiltInStandardEncoderPreset) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for BuiltInStandardEncoderPreset.

type CbcsDrmConfiguration

type CbcsDrmConfiguration struct {
	// FairPlay - FairPlay configurations
	FairPlay *StreamingPolicyFairPlayConfiguration `json:"fairPlay,omitempty"`
	// PlayReady - PlayReady configurations
	PlayReady *StreamingPolicyPlayReadyConfiguration `json:"playReady,omitempty"`
	// Widevine - Widevine configurations
	Widevine *StreamingPolicyWidevineConfiguration `json:"widevine,omitempty"`
}

CbcsDrmConfiguration class to specify DRM configurations of CommonEncryptionCbcs scheme in Streaming Policy

type CencDrmConfiguration

type CencDrmConfiguration struct {
	// PlayReady - PlayReady configurations
	PlayReady *StreamingPolicyPlayReadyConfiguration `json:"playReady,omitempty"`
	// Widevine - Widevine configurations
	Widevine *StreamingPolicyWidevineConfiguration `json:"widevine,omitempty"`
}

CencDrmConfiguration class to specify DRM configurations of CommonEncryptionCenc scheme in Streaming Policy

type CheckNameAvailabilityInput

type CheckNameAvailabilityInput struct {
	// Name - The account name.
	Name *string `json:"name,omitempty"`
	// Type - The account type. For a Media Services account, this should be 'MediaServices'.
	Type *string `json:"type,omitempty"`
}

CheckNameAvailabilityInput the input to the check name availability request.

type Codec

type Codec struct {
	// Label - An optional label for the codec. The label can be used to control muxing behavior.
	Label *string `json:"label,omitempty"`
	// OdataType - Possible values include: 'OdataTypeCodec', 'OdataTypeMicrosoftMediaAudio', 'OdataTypeMicrosoftMediaAacAudio', 'OdataTypeMicrosoftMediaCopyVideo', 'OdataTypeMicrosoftMediaVideo', 'OdataTypeMicrosoftMediaImage', 'OdataTypeMicrosoftMediaCopyAudio', 'OdataTypeMicrosoftMediaH264Video', 'OdataTypeMicrosoftMediaJpgImage', 'OdataTypeMicrosoftMediaPngImage'
	OdataType OdataTypeBasicCodec `json:"@odata.type,omitempty"`
}

Codec describes the basic properties of all codecs.

func (Codec) AsAacAudio

func (c Codec) AsAacAudio() (*AacAudio, bool)

AsAacAudio is the BasicCodec implementation for Codec.

func (Codec) AsAudio

func (c Codec) AsAudio() (*Audio, bool)

AsAudio is the BasicCodec implementation for Codec.

func (Codec) AsBasicAudio

func (c Codec) AsBasicAudio() (BasicAudio, bool)

AsBasicAudio is the BasicCodec implementation for Codec.

func (Codec) AsBasicCodec

func (c Codec) AsBasicCodec() (BasicCodec, bool)

AsBasicCodec is the BasicCodec implementation for Codec.

func (Codec) AsBasicImage

func (c Codec) AsBasicImage() (BasicImage, bool)

AsBasicImage is the BasicCodec implementation for Codec.

func (Codec) AsBasicVideo

func (c Codec) AsBasicVideo() (BasicVideo, bool)

AsBasicVideo is the BasicCodec implementation for Codec.

func (Codec) AsCodec

func (c Codec) AsCodec() (*Codec, bool)

AsCodec is the BasicCodec implementation for Codec.

func (Codec) AsCopyAudio

func (c Codec) AsCopyAudio() (*CopyAudio, bool)

AsCopyAudio is the BasicCodec implementation for Codec.

func (Codec) AsCopyVideo

func (c Codec) AsCopyVideo() (*CopyVideo, bool)

AsCopyVideo is the BasicCodec implementation for Codec.

func (Codec) AsH264Video

func (c Codec) AsH264Video() (*H264Video, bool)

AsH264Video is the BasicCodec implementation for Codec.

func (Codec) AsImage

func (c Codec) AsImage() (*Image, bool)

AsImage is the BasicCodec implementation for Codec.

func (Codec) AsJpgImage

func (c Codec) AsJpgImage() (*JpgImage, bool)

AsJpgImage is the BasicCodec implementation for Codec.

func (Codec) AsPngImage

func (c Codec) AsPngImage() (*PngImage, bool)

AsPngImage is the BasicCodec implementation for Codec.

func (Codec) AsVideo

func (c Codec) AsVideo() (*Video, bool)

AsVideo is the BasicCodec implementation for Codec.

func (Codec) MarshalJSON

func (c Codec) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Codec.

type CommonEncryptionCbcs

type CommonEncryptionCbcs struct {
	// EnabledProtocols - Representing supported protocols
	EnabledProtocols *EnabledProtocols `json:"enabledProtocols,omitempty"`
	// ClearTracks - Representing which tracks should not be encrypted
	ClearTracks *[]TrackSelection `json:"clearTracks,omitempty"`
	// ContentKeys - Representing default content key for each encryption scheme and separate content keys for specific tracks
	ContentKeys *StreamingPolicyContentKeys `json:"contentKeys,omitempty"`
	// Drm - Configuration of DRMs for current encryption scheme
	Drm *CbcsDrmConfiguration `json:"drm,omitempty"`
}

CommonEncryptionCbcs class for CommonEncryptionCbcs encryption scheme

type CommonEncryptionCenc

type CommonEncryptionCenc struct {
	// EnabledProtocols - Representing supported protocols
	EnabledProtocols *EnabledProtocols `json:"enabledProtocols,omitempty"`
	// ClearTracks - Representing which tracks should not be encrypted
	ClearTracks *[]TrackSelection `json:"clearTracks,omitempty"`
	// ContentKeys - Representing default content key for each encryption scheme and separate content keys for specific tracks
	ContentKeys *StreamingPolicyContentKeys `json:"contentKeys,omitempty"`
	// Drm - Configuration of DRMs for CommonEncryptionCenc encryption scheme
	Drm *CencDrmConfiguration `json:"drm,omitempty"`
}

CommonEncryptionCenc class for envelope encryption scheme

type ContentKeyPoliciesClient

type ContentKeyPoliciesClient struct {
	BaseClient
}

ContentKeyPoliciesClient is the client for the ContentKeyPolicies methods of the Media service.

func NewContentKeyPoliciesClient

func NewContentKeyPoliciesClient(subscriptionID string) ContentKeyPoliciesClient

NewContentKeyPoliciesClient creates an instance of the ContentKeyPoliciesClient client.

func NewContentKeyPoliciesClientWithBaseURI

func NewContentKeyPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ContentKeyPoliciesClient

NewContentKeyPoliciesClientWithBaseURI creates an instance of the ContentKeyPoliciesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ContentKeyPoliciesClient) CreateOrUpdate

func (client ContentKeyPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, contentKeyPolicyName string, parameters ContentKeyPolicy) (result ContentKeyPolicy, err error)

CreateOrUpdate create or update a Content Key Policy in the Media Services account Parameters: resourceGroupName - the name of the resource group within the Azure subscription. accountName - the Media Services account name. contentKeyPolicyName - the Content Key Policy name. parameters - the request parameters

func (ContentKeyPoliciesClient) CreateOrUpdatePreparer

func (client ContentKeyPoliciesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, contentKeyPolicyName string, parameters ContentKeyPolicy) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ContentKeyPoliciesClient) CreateOrUpdateResponder

func (client ContentKeyPoliciesClient) CreateOrUpdateResponder(resp *http.Response) (result ContentKeyPolicy, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ContentKeyPoliciesClient) CreateOrUpdateSender

func (client ContentKeyPoliciesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (ContentKeyPoliciesClient) Delete

func (client ContentKeyPoliciesClient) Delete(ctx context.Context, resourceGroupName string, accountName string, contentKeyPolicyName string) (result autorest.Response, err error)

Delete deletes a Content Key Policy in the Media Services account Parameters: resourceGroupName - the name of the resource group within the Azure subscription. accountName - the Media Services account name. contentKeyPolicyName - the Content Key Policy name.

func (ContentKeyPoliciesClient) DeletePreparer

func (client ContentKeyPoliciesClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string, contentKeyPolicyName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ContentKeyPoliciesClient) DeleteResponder

func (client ContentKeyPoliciesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ContentKeyPoliciesClient) DeleteSender

func (client ContentKeyPoliciesClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ContentKeyPoliciesClient) Get

func (client ContentKeyPoliciesClient) Get(ctx context.Context, resourceGroupName string, accountName string, contentKeyPolicyName string) (result ContentKeyPolicy, err error)

Get get the details of a Content Key Policy in the Media Services account Parameters: resourceGroupName - the name of the resource group within the Azure subscription. accountName - the Media Services account name. contentKeyPolicyName - the Content Key Policy name.

func (ContentKeyPoliciesClient) GetPolicyPropertiesWithSecrets

func (client ContentKeyPoliciesClient) GetPolicyPropertiesWithSecrets(ctx context.Context, resourceGroupName string, accountName string, contentKeyPolicyName string) (result ContentKeyPolicyProperties, err error)

GetPolicyPropertiesWithSecrets get a Content Key Policy including secret values Parameters: resourceGroupName - the name of the resource group within the Azure subscription. accountName - the Media Services account name. contentKeyPolicyName - the Content Key Policy name.

func (ContentKeyPoliciesClient) GetPolicyPropertiesWithSecretsPreparer

func (client ContentKeyPoliciesClient) GetPolicyPropertiesWithSecretsPreparer(ctx context.Context, resourceGroupName string, accountName string, contentKeyPolicyName string) (*http.Request, error)

GetPolicyPropertiesWithSecretsPreparer prepares the GetPolicyPropertiesWithSecrets request.

func (ContentKeyPoliciesClient) GetPolicyPropertiesWithSecretsResponder

func (client ContentKeyPoliciesClient) GetPolicyPropertiesWithSecretsResponder(resp *http.Response) (result ContentKeyPolicyProperties, err error)

GetPolicyPropertiesWithSecretsResponder handles the response to the GetPolicyPropertiesWithSecrets request. The method always closes the http.Response Body.

func (ContentKeyPoliciesClient) GetPolicyPropertiesWithSecretsSender

func (client ContentKeyPoliciesClient) GetPolicyPropertiesWithSecretsSender(req *http.Request) (*http.Response, error)

GetPolicyPropertiesWithSecretsSender sends the GetPolicyPropertiesWithSecrets request. The method will close the http.Response Body if it receives an error.

func (ContentKeyPoliciesClient) GetPreparer

func (client ContentKeyPoliciesClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string, contentKeyPolicyName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ContentKeyPoliciesClient) GetResponder

func (client ContentKeyPoliciesClient) GetResponder(resp *http.Response) (result ContentKeyPolicy, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ContentKeyPoliciesClient) GetSender

func (client ContentKeyPoliciesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ContentKeyPoliciesClient) List

func (client ContentKeyPoliciesClient) List(ctx context.Context, resourceGroupName string, accountName string, filter string, top *int32, orderby string) (result ContentKeyPolicyCollectionPage, err error)

List lists the Content Key Policies in the account Parameters: resourceGroupName - the name of the resource group within the Azure subscription. accountName - the Media Services account name. filter - restricts the set of items returned. top - specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n. orderby - specifies the key by which the result collection should be ordered.

func (ContentKeyPoliciesClient) ListComplete

func (client ContentKeyPoliciesClient) ListComplete(ctx context.Context, resourceGroupName string, accountName string, filter string, top *int32, orderby string) (result ContentKeyPolicyCollectionIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (ContentKeyPoliciesClient) ListPreparer

func (client ContentKeyPoliciesClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string, filter string, top *int32, orderby string) (*http.Request, error)

ListPreparer prepares the List request.

func (ContentKeyPoliciesClient) ListResponder

func (client ContentKeyPoliciesClient) ListResponder(resp *http.Response) (result ContentKeyPolicyCollection, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (ContentKeyPoliciesClient) ListSender

func (client ContentKeyPoliciesClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (ContentKeyPoliciesClient) Update

func (client ContentKeyPoliciesClient) Update(ctx context.Context, resourceGroupName string, accountName string, contentKeyPolicyName string, parameters ContentKeyPolicy) (result ContentKeyPolicy, err error)

Update updates an existing Content Key Policy in the Media Services account Parameters: resourceGroupName - the name of the resource group within the Azure subscription. accountName - the Media Services account name. contentKeyPolicyName - the Content Key Policy name. parameters - the request parameters

func (ContentKeyPoliciesClient) UpdatePreparer

func (client ContentKeyPoliciesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, contentKeyPolicyName string, parameters ContentKeyPolicy) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ContentKeyPoliciesClient) UpdateResponder

func (client ContentKeyPoliciesClient) UpdateResponder(resp *http.Response) (result ContentKeyPolicy, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (ContentKeyPoliciesClient) UpdateSender

func (client ContentKeyPoliciesClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type ContentKeyPolicy

type ContentKeyPolicy struct {
	autorest.Response           `json:"-"`
	*ContentKeyPolicyProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Fully qualified resource ID for the resource.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource.
	Type *string `json:"type,omitempty"`
}

ContentKeyPolicy a Content Key Policy resource.

func (ContentKeyPolicy) MarshalJSON

func (ckp ContentKeyPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ContentKeyPolicy.

func (*ContentKeyPolicy) UnmarshalJSON

func (ckp *ContentKeyPolicy) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ContentKeyPolicy struct.

type ContentKeyPolicyClearKeyConfiguration

type ContentKeyPolicyClearKeyConfiguration struct {
	// OdataType - Possible values include: 'OdataTypeContentKeyPolicyConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyUnknownConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration'
	OdataType OdataTypeBasicContentKeyPolicyConfiguration `json:"@odata.type,omitempty"`
}

ContentKeyPolicyClearKeyConfiguration represents a configuration for non-DRM keys.

func (ContentKeyPolicyClearKeyConfiguration) AsBasicContentKeyPolicyConfiguration

func (ckpckc ContentKeyPolicyClearKeyConfiguration) AsBasicContentKeyPolicyConfiguration() (BasicContentKeyPolicyConfiguration, bool)

AsBasicContentKeyPolicyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyClearKeyConfiguration.

func (ContentKeyPolicyClearKeyConfiguration) AsContentKeyPolicyClearKeyConfiguration

func (ckpckc ContentKeyPolicyClearKeyConfiguration) AsContentKeyPolicyClearKeyConfiguration() (*ContentKeyPolicyClearKeyConfiguration, bool)

AsContentKeyPolicyClearKeyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyClearKeyConfiguration.

func (ContentKeyPolicyClearKeyConfiguration) AsContentKeyPolicyConfiguration

func (ckpckc ContentKeyPolicyClearKeyConfiguration) AsContentKeyPolicyConfiguration() (*ContentKeyPolicyConfiguration, bool)

AsContentKeyPolicyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyClearKeyConfiguration.

func (ContentKeyPolicyClearKeyConfiguration) AsContentKeyPolicyFairPlayConfiguration

func (ckpckc ContentKeyPolicyClearKeyConfiguration) AsContentKeyPolicyFairPlayConfiguration() (*ContentKeyPolicyFairPlayConfiguration, bool)

AsContentKeyPolicyFairPlayConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyClearKeyConfiguration.

func (ContentKeyPolicyClearKeyConfiguration) AsContentKeyPolicyPlayReadyConfiguration

func (ckpckc ContentKeyPolicyClearKeyConfiguration) AsContentKeyPolicyPlayReadyConfiguration() (*ContentKeyPolicyPlayReadyConfiguration, bool)

AsContentKeyPolicyPlayReadyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyClearKeyConfiguration.

func (ContentKeyPolicyClearKeyConfiguration) AsContentKeyPolicyUnknownConfiguration

func (ckpckc ContentKeyPolicyClearKeyConfiguration) AsContentKeyPolicyUnknownConfiguration() (*ContentKeyPolicyUnknownConfiguration, bool)

AsContentKeyPolicyUnknownConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyClearKeyConfiguration.

func (ContentKeyPolicyClearKeyConfiguration) AsContentKeyPolicyWidevineConfiguration

func (ckpckc ContentKeyPolicyClearKeyConfiguration) AsContentKeyPolicyWidevineConfiguration() (*ContentKeyPolicyWidevineConfiguration, bool)

AsContentKeyPolicyWidevineConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyClearKeyConfiguration.

func (ContentKeyPolicyClearKeyConfiguration) MarshalJSON

func (ckpckc ContentKeyPolicyClearKeyConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ContentKeyPolicyClearKeyConfiguration.

type ContentKeyPolicyCollection

type ContentKeyPolicyCollection struct {
	autorest.Response `json:"-"`
	// Value - A collection of ContentKeyPolicy items.
	Value *[]ContentKeyPolicy `json:"value,omitempty"`
	// OdataNextLink - A link to the next page of the collection (when the collection contains too many results to return in one response).
	OdataNextLink *string `json:"@odata.nextLink,omitempty"`
}

ContentKeyPolicyCollection a collection of ContentKeyPolicy items.

func (ContentKeyPolicyCollection) IsEmpty

func (ckpc ContentKeyPolicyCollection) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ContentKeyPolicyCollectionIterator

type ContentKeyPolicyCollectionIterator struct {
	// contains filtered or unexported fields
}

ContentKeyPolicyCollectionIterator provides access to a complete listing of ContentKeyPolicy values.

func NewContentKeyPolicyCollectionIterator

func NewContentKeyPolicyCollectionIterator(page ContentKeyPolicyCollectionPage) ContentKeyPolicyCollectionIterator

Creates a new instance of the ContentKeyPolicyCollectionIterator type.

func (*ContentKeyPolicyCollectionIterator) Next deprecated

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ContentKeyPolicyCollectionIterator) NextWithContext

func (iter *ContentKeyPolicyCollectionIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ContentKeyPolicyCollectionIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (ContentKeyPolicyCollectionIterator) Response

Response returns the raw server response from the last page request.

func (ContentKeyPolicyCollectionIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ContentKeyPolicyCollectionPage

type ContentKeyPolicyCollectionPage struct {
	// contains filtered or unexported fields
}

ContentKeyPolicyCollectionPage contains a page of ContentKeyPolicy values.

func NewContentKeyPolicyCollectionPage

Creates a new instance of the ContentKeyPolicyCollectionPage type.

func (*ContentKeyPolicyCollectionPage) Next deprecated

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ContentKeyPolicyCollectionPage) NextWithContext

func (page *ContentKeyPolicyCollectionPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ContentKeyPolicyCollectionPage) NotDone

func (page ContentKeyPolicyCollectionPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ContentKeyPolicyCollectionPage) Response

Response returns the raw server response from the last page request.

func (ContentKeyPolicyCollectionPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type ContentKeyPolicyConfiguration

type ContentKeyPolicyConfiguration struct {
	// OdataType - Possible values include: 'OdataTypeContentKeyPolicyConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyUnknownConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration'
	OdataType OdataTypeBasicContentKeyPolicyConfiguration `json:"@odata.type,omitempty"`
}

ContentKeyPolicyConfiguration base class for Content Key Policy configuration. A derived class must be used to create a configuration.

func (ContentKeyPolicyConfiguration) AsBasicContentKeyPolicyConfiguration

func (ckpc ContentKeyPolicyConfiguration) AsBasicContentKeyPolicyConfiguration() (BasicContentKeyPolicyConfiguration, bool)

AsBasicContentKeyPolicyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyConfiguration.

func (ContentKeyPolicyConfiguration) AsContentKeyPolicyClearKeyConfiguration

func (ckpc ContentKeyPolicyConfiguration) AsContentKeyPolicyClearKeyConfiguration() (*ContentKeyPolicyClearKeyConfiguration, bool)

AsContentKeyPolicyClearKeyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyConfiguration.

func (ContentKeyPolicyConfiguration) AsContentKeyPolicyConfiguration

func (ckpc ContentKeyPolicyConfiguration) AsContentKeyPolicyConfiguration() (*ContentKeyPolicyConfiguration, bool)

AsContentKeyPolicyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyConfiguration.

func (ContentKeyPolicyConfiguration) AsContentKeyPolicyFairPlayConfiguration

func (ckpc ContentKeyPolicyConfiguration) AsContentKeyPolicyFairPlayConfiguration() (*ContentKeyPolicyFairPlayConfiguration, bool)

AsContentKeyPolicyFairPlayConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyConfiguration.

func (ContentKeyPolicyConfiguration) AsContentKeyPolicyPlayReadyConfiguration

func (ckpc ContentKeyPolicyConfiguration) AsContentKeyPolicyPlayReadyConfiguration() (*ContentKeyPolicyPlayReadyConfiguration, bool)

AsContentKeyPolicyPlayReadyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyConfiguration.

func (ContentKeyPolicyConfiguration) AsContentKeyPolicyUnknownConfiguration

func (ckpc ContentKeyPolicyConfiguration) AsContentKeyPolicyUnknownConfiguration() (*ContentKeyPolicyUnknownConfiguration, bool)

AsContentKeyPolicyUnknownConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyConfiguration.

func (ContentKeyPolicyConfiguration) AsContentKeyPolicyWidevineConfiguration

func (ckpc ContentKeyPolicyConfiguration) AsContentKeyPolicyWidevineConfiguration() (*ContentKeyPolicyWidevineConfiguration, bool)

AsContentKeyPolicyWidevineConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyConfiguration.

func (ContentKeyPolicyConfiguration) MarshalJSON

func (ckpc ContentKeyPolicyConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ContentKeyPolicyConfiguration.

type ContentKeyPolicyFairPlayConfiguration

type ContentKeyPolicyFairPlayConfiguration struct {
	// Ask - The key that must be used as FairPlay ASk.
	Ask *[]byte `json:"ask,omitempty"`
	// FairPlayPfxPassword - The password encrypting FairPlay certificate in PKCS 12 (pfx) format.
	FairPlayPfxPassword *string `json:"fairPlayPfxPassword,omitempty"`
	// FairPlayPfx - The Base64 representation of FairPlay certificate in PKCS 12 (pfx) format (including private key).
	FairPlayPfx *string `json:"fairPlayPfx,omitempty"`
	// RentalAndLeaseKeyType - The rental and lease key type. Possible values include: 'Unknown', 'Undefined', 'PersistentUnlimited', 'PersistentLimited'
	RentalAndLeaseKeyType ContentKeyPolicyFairPlayRentalAndLeaseKeyType `json:"rentalAndLeaseKeyType,omitempty"`
	// RentalDuration - The rental duration. Must be greater than or equal to 0.
	RentalDuration *int64 `json:"rentalDuration,omitempty"`
	// OdataType - Possible values include: 'OdataTypeContentKeyPolicyConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyUnknownConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration'
	OdataType OdataTypeBasicContentKeyPolicyConfiguration `json:"@odata.type,omitempty"`
}

ContentKeyPolicyFairPlayConfiguration specifies a configuration for FairPlay licenses.

func (ContentKeyPolicyFairPlayConfiguration) AsBasicContentKeyPolicyConfiguration

func (ckpfpc ContentKeyPolicyFairPlayConfiguration) AsBasicContentKeyPolicyConfiguration() (BasicContentKeyPolicyConfiguration, bool)

AsBasicContentKeyPolicyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyFairPlayConfiguration.

func (ContentKeyPolicyFairPlayConfiguration) AsContentKeyPolicyClearKeyConfiguration

func (ckpfpc ContentKeyPolicyFairPlayConfiguration) AsContentKeyPolicyClearKeyConfiguration() (*ContentKeyPolicyClearKeyConfiguration, bool)

AsContentKeyPolicyClearKeyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyFairPlayConfiguration.

func (ContentKeyPolicyFairPlayConfiguration) AsContentKeyPolicyConfiguration

func (ckpfpc ContentKeyPolicyFairPlayConfiguration) AsContentKeyPolicyConfiguration() (*ContentKeyPolicyConfiguration, bool)

AsContentKeyPolicyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyFairPlayConfiguration.

func (ContentKeyPolicyFairPlayConfiguration) AsContentKeyPolicyFairPlayConfiguration

func (ckpfpc ContentKeyPolicyFairPlayConfiguration) AsContentKeyPolicyFairPlayConfiguration() (*ContentKeyPolicyFairPlayConfiguration, bool)

AsContentKeyPolicyFairPlayConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyFairPlayConfiguration.

func (ContentKeyPolicyFairPlayConfiguration) AsContentKeyPolicyPlayReadyConfiguration

func (ckpfpc ContentKeyPolicyFairPlayConfiguration) AsContentKeyPolicyPlayReadyConfiguration() (*ContentKeyPolicyPlayReadyConfiguration, bool)

AsContentKeyPolicyPlayReadyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyFairPlayConfiguration.

func (ContentKeyPolicyFairPlayConfiguration) AsContentKeyPolicyUnknownConfiguration

func (ckpfpc ContentKeyPolicyFairPlayConfiguration) AsContentKeyPolicyUnknownConfiguration() (*ContentKeyPolicyUnknownConfiguration, bool)

AsContentKeyPolicyUnknownConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyFairPlayConfiguration.

func (ContentKeyPolicyFairPlayConfiguration) AsContentKeyPolicyWidevineConfiguration

func (ckpfpc ContentKeyPolicyFairPlayConfiguration) AsContentKeyPolicyWidevineConfiguration() (*ContentKeyPolicyWidevineConfiguration, bool)

AsContentKeyPolicyWidevineConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyFairPlayConfiguration.

func (ContentKeyPolicyFairPlayConfiguration) MarshalJSON

func (ckpfpc ContentKeyPolicyFairPlayConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ContentKeyPolicyFairPlayConfiguration.

type ContentKeyPolicyFairPlayRentalAndLeaseKeyType

type ContentKeyPolicyFairPlayRentalAndLeaseKeyType string

ContentKeyPolicyFairPlayRentalAndLeaseKeyType enumerates the values for content key policy fair play rental and lease key type.

const (
	// PersistentLimited Content key can be persisted and the valid duration is limited by the Rental Duration
	// value
	PersistentLimited ContentKeyPolicyFairPlayRentalAndLeaseKeyType = "PersistentLimited"
	// PersistentUnlimited Content key can be persisted with an unlimited duration
	PersistentUnlimited ContentKeyPolicyFairPlayRentalAndLeaseKeyType = "PersistentUnlimited"
	// Undefined Key duration is not specified.
	Undefined ContentKeyPolicyFairPlayRentalAndLeaseKeyType = "Undefined"
	// Unknown Represents a ContentKeyPolicyFairPlayRentalAndLeaseKeyType that is unavailable in current API
	// version.
	Unknown ContentKeyPolicyFairPlayRentalAndLeaseKeyType = "Unknown"
)

func PossibleContentKeyPolicyFairPlayRentalAndLeaseKeyTypeValues

func PossibleContentKeyPolicyFairPlayRentalAndLeaseKeyTypeValues() []ContentKeyPolicyFairPlayRentalAndLeaseKeyType

PossibleContentKeyPolicyFairPlayRentalAndLeaseKeyTypeValues returns an array of possible values for the ContentKeyPolicyFairPlayRentalAndLeaseKeyType const type.

type ContentKeyPolicyOpenRestriction

type ContentKeyPolicyOpenRestriction struct {
	// OdataType - Possible values include: 'OdataTypeContentKeyPolicyRestriction', 'OdataTypeMicrosoftMediaContentKeyPolicyOpenRestriction', 'OdataTypeMicrosoftMediaContentKeyPolicyUnknownRestriction', 'OdataTypeMicrosoftMediaContentKeyPolicyTokenRestriction'
	OdataType OdataTypeBasicContentKeyPolicyRestriction `json:"@odata.type,omitempty"`
}

ContentKeyPolicyOpenRestriction represents an open restriction. License or key will be delivered on every request.

func (ContentKeyPolicyOpenRestriction) AsBasicContentKeyPolicyRestriction

func (ckpor ContentKeyPolicyOpenRestriction) AsBasicContentKeyPolicyRestriction() (BasicContentKeyPolicyRestriction, bool)

AsBasicContentKeyPolicyRestriction is the BasicContentKeyPolicyRestriction implementation for ContentKeyPolicyOpenRestriction.

func (ContentKeyPolicyOpenRestriction) AsContentKeyPolicyOpenRestriction

func (ckpor ContentKeyPolicyOpenRestriction) AsContentKeyPolicyOpenRestriction() (*ContentKeyPolicyOpenRestriction, bool)

AsContentKeyPolicyOpenRestriction is the BasicContentKeyPolicyRestriction implementation for ContentKeyPolicyOpenRestriction.

func (ContentKeyPolicyOpenRestriction) AsContentKeyPolicyRestriction

func (ckpor ContentKeyPolicyOpenRestriction) AsContentKeyPolicyRestriction() (*ContentKeyPolicyRestriction, bool)

AsContentKeyPolicyRestriction is the BasicContentKeyPolicyRestriction implementation for ContentKeyPolicyOpenRestriction.

func (ContentKeyPolicyOpenRestriction) AsContentKeyPolicyTokenRestriction

func (ckpor ContentKeyPolicyOpenRestriction) AsContentKeyPolicyTokenRestriction() (*ContentKeyPolicyTokenRestriction, bool)

AsContentKeyPolicyTokenRestriction is the BasicContentKeyPolicyRestriction implementation for ContentKeyPolicyOpenRestriction.

func (ContentKeyPolicyOpenRestriction) AsContentKeyPolicyUnknownRestriction

func (ckpor ContentKeyPolicyOpenRestriction) AsContentKeyPolicyUnknownRestriction() (*ContentKeyPolicyUnknownRestriction, bool)

AsContentKeyPolicyUnknownRestriction is the BasicContentKeyPolicyRestriction implementation for ContentKeyPolicyOpenRestriction.

func (ContentKeyPolicyOpenRestriction) MarshalJSON

func (ckpor ContentKeyPolicyOpenRestriction) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ContentKeyPolicyOpenRestriction.

type ContentKeyPolicyOption

type ContentKeyPolicyOption struct {
	// PolicyOptionID - READ-ONLY; The legacy Policy Option ID.
	PolicyOptionID *uuid.UUID `json:"policyOptionId,omitempty"`
	// Name - The Policy Option description.
	Name *string `json:"name,omitempty"`
	// Configuration - The key delivery configuration.
	Configuration BasicContentKeyPolicyConfiguration `json:"configuration,omitempty"`
	// Restriction - The requirements that must be met to deliver keys with this configuration
	Restriction BasicContentKeyPolicyRestriction `json:"restriction,omitempty"`
}

ContentKeyPolicyOption represents a policy option.

func (ContentKeyPolicyOption) MarshalJSON

func (ckpo ContentKeyPolicyOption) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ContentKeyPolicyOption.

func (*ContentKeyPolicyOption) UnmarshalJSON

func (ckpo *ContentKeyPolicyOption) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ContentKeyPolicyOption struct.

type ContentKeyPolicyPlayReadyConfiguration

type ContentKeyPolicyPlayReadyConfiguration struct {
	// Licenses - The PlayReady licenses.
	Licenses *[]ContentKeyPolicyPlayReadyLicense `json:"licenses,omitempty"`
	// ResponseCustomData - The custom response data.
	ResponseCustomData *string `json:"responseCustomData,omitempty"`
	// OdataType - Possible values include: 'OdataTypeContentKeyPolicyConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyUnknownConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration'
	OdataType OdataTypeBasicContentKeyPolicyConfiguration `json:"@odata.type,omitempty"`
}

ContentKeyPolicyPlayReadyConfiguration specifies a configuration for PlayReady licenses.

func (ContentKeyPolicyPlayReadyConfiguration) AsBasicContentKeyPolicyConfiguration

func (ckpprc ContentKeyPolicyPlayReadyConfiguration) AsBasicContentKeyPolicyConfiguration() (BasicContentKeyPolicyConfiguration, bool)

AsBasicContentKeyPolicyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyPlayReadyConfiguration.

func (ContentKeyPolicyPlayReadyConfiguration) AsContentKeyPolicyClearKeyConfiguration

func (ckpprc ContentKeyPolicyPlayReadyConfiguration) AsContentKeyPolicyClearKeyConfiguration() (*ContentKeyPolicyClearKeyConfiguration, bool)

AsContentKeyPolicyClearKeyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyPlayReadyConfiguration.

func (ContentKeyPolicyPlayReadyConfiguration) AsContentKeyPolicyConfiguration

func (ckpprc ContentKeyPolicyPlayReadyConfiguration) AsContentKeyPolicyConfiguration() (*ContentKeyPolicyConfiguration, bool)

AsContentKeyPolicyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyPlayReadyConfiguration.

func (ContentKeyPolicyPlayReadyConfiguration) AsContentKeyPolicyFairPlayConfiguration

func (ckpprc ContentKeyPolicyPlayReadyConfiguration) AsContentKeyPolicyFairPlayConfiguration() (*ContentKeyPolicyFairPlayConfiguration, bool)

AsContentKeyPolicyFairPlayConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyPlayReadyConfiguration.

func (ContentKeyPolicyPlayReadyConfiguration) AsContentKeyPolicyPlayReadyConfiguration

func (ckpprc ContentKeyPolicyPlayReadyConfiguration) AsContentKeyPolicyPlayReadyConfiguration() (*ContentKeyPolicyPlayReadyConfiguration, bool)

AsContentKeyPolicyPlayReadyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyPlayReadyConfiguration.

func (ContentKeyPolicyPlayReadyConfiguration) AsContentKeyPolicyUnknownConfiguration

func (ckpprc ContentKeyPolicyPlayReadyConfiguration) AsContentKeyPolicyUnknownConfiguration() (*ContentKeyPolicyUnknownConfiguration, bool)

AsContentKeyPolicyUnknownConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyPlayReadyConfiguration.

func (ContentKeyPolicyPlayReadyConfiguration) AsContentKeyPolicyWidevineConfiguration

func (ckpprc ContentKeyPolicyPlayReadyConfiguration) AsContentKeyPolicyWidevineConfiguration() (*ContentKeyPolicyWidevineConfiguration, bool)

AsContentKeyPolicyWidevineConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyPlayReadyConfiguration.

func (ContentKeyPolicyPlayReadyConfiguration) MarshalJSON

func (ckpprc ContentKeyPolicyPlayReadyConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ContentKeyPolicyPlayReadyConfiguration.

type ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader

type ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader struct {
	// OdataType - Possible values include: 'OdataTypeContentKeyPolicyPlayReadyContentKeyLocation', 'OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader', 'OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier'
	OdataType OdataType `json:"@odata.type,omitempty"`
}

ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader specifies that the content key ID is in the PlayReady header.

func (ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader) AsBasicContentKeyPolicyPlayReadyContentKeyLocation

func (ckpprcekfh ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader) AsBasicContentKeyPolicyPlayReadyContentKeyLocation() (BasicContentKeyPolicyPlayReadyContentKeyLocation, bool)

AsBasicContentKeyPolicyPlayReadyContentKeyLocation is the BasicContentKeyPolicyPlayReadyContentKeyLocation implementation for ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader.

func (ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader) AsContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader

func (ckpprcekfh ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader) AsContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader() (*ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader, bool)

AsContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader is the BasicContentKeyPolicyPlayReadyContentKeyLocation implementation for ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader.

func (ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader) AsContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier

func (ckpprcekfh ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader) AsContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier() (*ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier, bool)

AsContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier is the BasicContentKeyPolicyPlayReadyContentKeyLocation implementation for ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader.

func (ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader) AsContentKeyPolicyPlayReadyContentKeyLocation

func (ckpprcekfh ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader) AsContentKeyPolicyPlayReadyContentKeyLocation() (*ContentKeyPolicyPlayReadyContentKeyLocation, bool)

AsContentKeyPolicyPlayReadyContentKeyLocation is the BasicContentKeyPolicyPlayReadyContentKeyLocation implementation for ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader.

func (ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader) MarshalJSON

MarshalJSON is the custom marshaler for ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader.

type ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier

type ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier struct {
	// KeyID - The content key ID.
	KeyID *uuid.UUID `json:"keyId,omitempty"`
	// OdataType - Possible values include: 'OdataTypeContentKeyPolicyPlayReadyContentKeyLocation', 'OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader', 'OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier'
	OdataType OdataType `json:"@odata.type,omitempty"`
}

ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier specifies that the content key ID is specified in the PlayReady configuration.

func (ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier) AsBasicContentKeyPolicyPlayReadyContentKeyLocation

func (ckpprcekfki ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier) AsBasicContentKeyPolicyPlayReadyContentKeyLocation() (BasicContentKeyPolicyPlayReadyContentKeyLocation, bool)

AsBasicContentKeyPolicyPlayReadyContentKeyLocation is the BasicContentKeyPolicyPlayReadyContentKeyLocation implementation for ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier.

func (ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier) AsContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader

func (ckpprcekfki ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier) AsContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader() (*ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader, bool)

AsContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader is the BasicContentKeyPolicyPlayReadyContentKeyLocation implementation for ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier.

func (ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier) AsContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier