azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/preview/mediaservices/mgmt/2018-06-01-preview/media Index | Files | Directories

package media

import "github.com/Azure/azure-sdk-for-go/services/preview/mediaservices/mgmt/2018-06-01-preview/media"

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

Index

Package Files

assets.go client.go contentkeypolicies.go jobs.go liveevents.go liveoutputs.go locations.go mediaservices.go models.go operations.go streamingendpoints.go streaminglocators.go streamingpolicies.go transforms.go version.go

Constants

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

func UserAgent Uses

func UserAgent() string

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

func Version Uses

func Version() string

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

type APIError Uses

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

APIError the API error.

type AacAudio Uses

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 Uses

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

AsAacAudio is the BasicCodec implementation for AacAudio.

func (AacAudio) AsAudio Uses

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

AsAudio is the BasicCodec implementation for AacAudio.

func (AacAudio) AsBasicAudio Uses

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

AsBasicAudio is the BasicCodec implementation for AacAudio.

func (AacAudio) AsBasicCodec Uses

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

AsBasicCodec is the BasicCodec implementation for AacAudio.

func (AacAudio) AsBasicImage Uses

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

AsBasicImage is the BasicCodec implementation for AacAudio.

func (AacAudio) AsBasicVideo Uses

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

AsBasicVideo is the BasicCodec implementation for AacAudio.

func (AacAudio) AsCodec Uses

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

AsCodec is the BasicCodec implementation for AacAudio.

func (AacAudio) AsCopyAudio Uses

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

AsCopyAudio is the BasicCodec implementation for AacAudio.

func (AacAudio) AsCopyVideo Uses

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

AsCopyVideo is the BasicCodec implementation for AacAudio.

func (AacAudio) AsH264Video Uses

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

AsH264Video is the BasicCodec implementation for AacAudio.

func (AacAudio) AsImage Uses

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

AsImage is the BasicCodec implementation for AacAudio.

func (AacAudio) AsJpgImage Uses

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

AsJpgImage is the BasicCodec implementation for AacAudio.

func (AacAudio) AsPngImage Uses

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

AsPngImage is the BasicCodec implementation for AacAudio.

func (AacAudio) AsVideo Uses

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

AsVideo is the BasicCodec implementation for AacAudio.

func (AacAudio) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for AacAudio.

type AacAudioProfile Uses

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 Uses

func PossibleAacAudioProfileValues() []AacAudioProfile

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

type AkamaiAccessControl Uses

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

AkamaiAccessControl akamai access control

type AkamaiSignatureHeaderAuthenticationKey Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for Asset.

func (*Asset) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Asset struct.

type AssetCollection Uses

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 Uses

func (ac AssetCollection) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AssetCollectionIterator Uses

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

AssetCollectionIterator provides access to a complete listing of Asset values.

func NewAssetCollectionIterator Uses

func NewAssetCollectionIterator(page AssetCollectionPage) AssetCollectionIterator

Creates a new instance of the AssetCollectionIterator type.

func (*AssetCollectionIterator) Next Uses

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 Uses

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 Uses

func (iter AssetCollectionIterator) NotDone() bool

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

func (AssetCollectionIterator) Response Uses

func (iter AssetCollectionIterator) Response() AssetCollection

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

func (AssetCollectionIterator) Value Uses

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 Uses

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

AssetCollectionPage contains a page of Asset values.

func NewAssetCollectionPage Uses

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

Creates a new instance of the AssetCollectionPage type.

func (*AssetCollectionPage) Next Uses

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 Uses

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 Uses

func (page AssetCollectionPage) NotDone() bool

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

func (AssetCollectionPage) Response Uses

func (page AssetCollectionPage) Response() AssetCollection

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

func (AssetCollectionPage) Values Uses

func (page AssetCollectionPage) Values() []Asset

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

type AssetContainerPermission Uses

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 Uses

func PossibleAssetContainerPermissionValues() []AssetContainerPermission

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

type AssetContainerSas Uses

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 Uses

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.

type AssetStorageEncryptionFormat Uses

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 Uses

func PossibleAssetStorageEncryptionFormatValues() []AssetStorageEncryptionFormat

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

type AssetStorageEncryptionKey Uses

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 Uses

type AssetsClient struct {
    BaseClient
}

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

func NewAssetsClient Uses

func NewAssetsClient(subscriptionID string) AssetsClient

NewAssetsClient creates an instance of the AssetsClient client.

func NewAssetsClientWithBaseURI Uses

func NewAssetsClientWithBaseURI(baseURI string, subscriptionID string) AssetsClient

NewAssetsClientWithBaseURI creates an instance of the AssetsClient client.

func (AssetsClient) CreateOrUpdate Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

DeletePreparer prepares the Delete request.

func (AssetsClient) DeleteResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

GetEncryptionKeyPreparer prepares the GetEncryptionKey request.

func (AssetsClient) GetEncryptionKeyResponder Uses

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 Uses

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 Uses

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

GetPreparer prepares the Get request.

func (AssetsClient) GetResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

AsAacAudio is the BasicCodec implementation for Audio.

func (Audio) AsAudio Uses

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

AsAudio is the BasicCodec implementation for Audio.

func (Audio) AsBasicAudio Uses

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

AsBasicAudio is the BasicCodec implementation for Audio.

func (Audio) AsBasicCodec Uses

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

AsBasicCodec is the BasicCodec implementation for Audio.

func (Audio) AsBasicImage Uses

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

AsBasicImage is the BasicCodec implementation for Audio.

func (Audio) AsBasicVideo Uses

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

AsBasicVideo is the BasicCodec implementation for Audio.

func (Audio) AsCodec Uses

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

AsCodec is the BasicCodec implementation for Audio.

func (Audio) AsCopyAudio Uses

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

AsCopyAudio is the BasicCodec implementation for Audio.

func (Audio) AsCopyVideo Uses

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

AsCopyVideo is the BasicCodec implementation for Audio.

func (Audio) AsH264Video Uses

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

AsH264Video is the BasicCodec implementation for Audio.

func (Audio) AsImage Uses

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

AsImage is the BasicCodec implementation for Audio.

func (Audio) AsJpgImage Uses

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

AsJpgImage is the BasicCodec implementation for Audio.

func (Audio) AsPngImage Uses

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

AsPngImage is the BasicCodec implementation for Audio.

func (Audio) AsVideo Uses

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

AsVideo is the BasicCodec implementation for Audio.

func (Audio) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Audio.

type AudioAnalyzerPreset Uses

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 Uses

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

AsAudioAnalyzerPreset is the BasicPreset implementation for AudioAnalyzerPreset.

func (AudioAnalyzerPreset) AsBasicAudioAnalyzerPreset Uses

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

AsBasicAudioAnalyzerPreset is the BasicPreset implementation for AudioAnalyzerPreset.

func (AudioAnalyzerPreset) AsBasicPreset Uses

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

AsBasicPreset is the BasicPreset implementation for AudioAnalyzerPreset.

func (AudioAnalyzerPreset) AsBuiltInStandardEncoderPreset Uses

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

AsBuiltInStandardEncoderPreset is the BasicPreset implementation for AudioAnalyzerPreset.

func (AudioAnalyzerPreset) AsPreset Uses

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

AsPreset is the BasicPreset implementation for AudioAnalyzerPreset.

func (AudioAnalyzerPreset) AsStandardEncoderPreset Uses

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

AsStandardEncoderPreset is the BasicPreset implementation for AudioAnalyzerPreset.

func (AudioAnalyzerPreset) AsVideoAnalyzerPreset Uses

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

AsVideoAnalyzerPreset is the BasicPreset implementation for AudioAnalyzerPreset.

func (AudioAnalyzerPreset) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for AudioAnalyzerPreset.

type AudioOverlay Uses

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 Uses

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

AsAudioOverlay is the BasicOverlay implementation for AudioOverlay.

func (AudioOverlay) AsBasicOverlay Uses

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

AsBasicOverlay is the BasicOverlay implementation for AudioOverlay.

func (AudioOverlay) AsOverlay Uses

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

AsOverlay is the BasicOverlay implementation for AudioOverlay.

func (AudioOverlay) AsVideoOverlay Uses

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

AsVideoOverlay is the BasicOverlay implementation for AudioOverlay.

func (AudioOverlay) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for AudioOverlay.

type BaseClient Uses

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

BaseClient is the base client for Media.

func New Uses

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type BasicAudio Uses

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

BasicAudio defines the common properties for all audio codecs.

type BasicAudioAnalyzerPreset Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

BasicImageFormat describes the properties for an output image file.

type BasicJobInput Uses

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 Uses

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

BasicJobInputClip represents input files for a Job.

type BasicJobOutput Uses

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

BasicJobOutput describes all the properties of a JobOutput.

type BasicLayer Uses

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 Uses

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 Uses

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

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

type BasicPreset Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

AsAudioAnalyzerPreset is the BasicPreset implementation for BuiltInStandardEncoderPreset.

func (BuiltInStandardEncoderPreset) AsBasicAudioAnalyzerPreset Uses

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

AsBasicAudioAnalyzerPreset is the BasicPreset implementation for BuiltInStandardEncoderPreset.

func (BuiltInStandardEncoderPreset) AsBasicPreset Uses

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

AsBasicPreset is the BasicPreset implementation for BuiltInStandardEncoderPreset.

func (BuiltInStandardEncoderPreset) AsBuiltInStandardEncoderPreset Uses

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

AsBuiltInStandardEncoderPreset is the BasicPreset implementation for BuiltInStandardEncoderPreset.

func (BuiltInStandardEncoderPreset) AsPreset Uses

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

AsPreset is the BasicPreset implementation for BuiltInStandardEncoderPreset.

func (BuiltInStandardEncoderPreset) AsStandardEncoderPreset Uses

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

AsStandardEncoderPreset is the BasicPreset implementation for BuiltInStandardEncoderPreset.

func (BuiltInStandardEncoderPreset) AsVideoAnalyzerPreset Uses

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

AsVideoAnalyzerPreset is the BasicPreset implementation for BuiltInStandardEncoderPreset.

func (BuiltInStandardEncoderPreset) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for BuiltInStandardEncoderPreset.

type CbcsDrmConfiguration Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

AsAacAudio is the BasicCodec implementation for Codec.

func (Codec) AsAudio Uses

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

AsAudio is the BasicCodec implementation for Codec.

func (Codec) AsBasicAudio Uses

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

AsBasicAudio is the BasicCodec implementation for Codec.

func (Codec) AsBasicCodec Uses

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

AsBasicCodec is the BasicCodec implementation for Codec.

func (Codec) AsBasicImage Uses

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

AsBasicImage is the BasicCodec implementation for Codec.

func (Codec) AsBasicVideo Uses

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

AsBasicVideo is the BasicCodec implementation for Codec.

func (Codec) AsCodec Uses

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

AsCodec is the BasicCodec implementation for Codec.

func (Codec) AsCopyAudio Uses

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

AsCopyAudio is the BasicCodec implementation for Codec.

func (Codec) AsCopyVideo Uses

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

AsCopyVideo is the BasicCodec implementation for Codec.

func (Codec) AsH264Video Uses

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

AsH264Video is the BasicCodec implementation for Codec.

func (Codec) AsImage Uses

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

AsImage is the BasicCodec implementation for Codec.

func (Codec) AsJpgImage Uses

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

AsJpgImage is the BasicCodec implementation for Codec.

func (Codec) AsPngImage Uses

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

AsPngImage is the BasicCodec implementation for Codec.

func (Codec) AsVideo Uses

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

AsVideo is the BasicCodec implementation for Codec.

func (Codec) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Codec.

type CommonEncryptionCbcs Uses

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 Uses

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 Uses

type ContentKeyPoliciesClient struct {
    BaseClient
}

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

func NewContentKeyPoliciesClient Uses

func NewContentKeyPoliciesClient(subscriptionID string) ContentKeyPoliciesClient

NewContentKeyPoliciesClient creates an instance of the ContentKeyPoliciesClient client.

func NewContentKeyPoliciesClientWithBaseURI Uses

func NewContentKeyPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ContentKeyPoliciesClient

NewContentKeyPoliciesClientWithBaseURI creates an instance of the ContentKeyPoliciesClient client.

func (ContentKeyPoliciesClient) CreateOrUpdate Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

DeletePreparer prepares the Delete request.

func (ContentKeyPoliciesClient) DeleteResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

GetPolicyPropertiesWithSecretsPreparer prepares the GetPolicyPropertiesWithSecrets request.

func (ContentKeyPoliciesClient) GetPolicyPropertiesWithSecretsResponder Uses

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 Uses

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 Uses

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

GetPreparer prepares the Get request.

func (ContentKeyPoliciesClient) GetResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for ContentKeyPolicy.

func (*ContentKeyPolicy) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ContentKeyPolicy struct.

type ContentKeyPolicyClearKeyConfiguration Uses

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 Uses

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

AsBasicContentKeyPolicyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyClearKeyConfiguration.

func (ContentKeyPolicyClearKeyConfiguration) AsContentKeyPolicyClearKeyConfiguration Uses

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

AsContentKeyPolicyClearKeyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyClearKeyConfiguration.

func (ContentKeyPolicyClearKeyConfiguration) AsContentKeyPolicyConfiguration Uses

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

AsContentKeyPolicyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyClearKeyConfiguration.

func (ContentKeyPolicyClearKeyConfiguration) AsContentKeyPolicyFairPlayConfiguration Uses

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

AsContentKeyPolicyFairPlayConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyClearKeyConfiguration.

func (ContentKeyPolicyClearKeyConfiguration) AsContentKeyPolicyPlayReadyConfiguration Uses

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

AsContentKeyPolicyPlayReadyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyClearKeyConfiguration.

func (ContentKeyPolicyClearKeyConfiguration) AsContentKeyPolicyUnknownConfiguration Uses

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

AsContentKeyPolicyUnknownConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyClearKeyConfiguration.

func (ContentKeyPolicyClearKeyConfiguration) AsContentKeyPolicyWidevineConfiguration Uses

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

AsContentKeyPolicyWidevineConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyClearKeyConfiguration.

func (ContentKeyPolicyClearKeyConfiguration) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ContentKeyPolicyClearKeyConfiguration.

type ContentKeyPolicyCollection Uses

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 Uses

func (ckpc ContentKeyPolicyCollection) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ContentKeyPolicyCollectionIterator Uses

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

ContentKeyPolicyCollectionIterator provides access to a complete listing of ContentKeyPolicy values.

func NewContentKeyPolicyCollectionIterator Uses

func NewContentKeyPolicyCollectionIterator(page ContentKeyPolicyCollectionPage) ContentKeyPolicyCollectionIterator

Creates a new instance of the ContentKeyPolicyCollectionIterator type.

func (*ContentKeyPolicyCollectionIterator) Next Uses

func (iter *ContentKeyPolicyCollectionIterator) 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 (*ContentKeyPolicyCollectionIterator) NextWithContext Uses

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 Uses

func (iter ContentKeyPolicyCollectionIterator) NotDone() bool

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

func (ContentKeyPolicyCollectionIterator) Response Uses

func (iter ContentKeyPolicyCollectionIterator) Response() ContentKeyPolicyCollection

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

func (ContentKeyPolicyCollectionIterator) Value Uses

func (iter ContentKeyPolicyCollectionIterator) Value() ContentKeyPolicy

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

type ContentKeyPolicyCollectionPage Uses

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

ContentKeyPolicyCollectionPage contains a page of ContentKeyPolicy values.

func NewContentKeyPolicyCollectionPage Uses

func NewContentKeyPolicyCollectionPage(getNextPage func(context.Context, ContentKeyPolicyCollection) (ContentKeyPolicyCollection, error)) ContentKeyPolicyCollectionPage

Creates a new instance of the ContentKeyPolicyCollectionPage type.

func (*ContentKeyPolicyCollectionPage) Next Uses

func (page *ContentKeyPolicyCollectionPage) 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 (*ContentKeyPolicyCollectionPage) NextWithContext Uses

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 Uses

func (page ContentKeyPolicyCollectionPage) NotDone() bool

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

func (ContentKeyPolicyCollectionPage) Response Uses

func (page ContentKeyPolicyCollectionPage) Response() ContentKeyPolicyCollection

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

func (ContentKeyPolicyCollectionPage) Values Uses

func (page ContentKeyPolicyCollectionPage) Values() []ContentKeyPolicy

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

type ContentKeyPolicyConfiguration Uses

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 Uses

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

AsBasicContentKeyPolicyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyConfiguration.

func (ContentKeyPolicyConfiguration) AsContentKeyPolicyClearKeyConfiguration Uses

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

AsContentKeyPolicyClearKeyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyConfiguration.

func (ContentKeyPolicyConfiguration) AsContentKeyPolicyConfiguration Uses

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

AsContentKeyPolicyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyConfiguration.

func (ContentKeyPolicyConfiguration) AsContentKeyPolicyFairPlayConfiguration Uses

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

AsContentKeyPolicyFairPlayConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyConfiguration.

func (ContentKeyPolicyConfiguration) AsContentKeyPolicyPlayReadyConfiguration Uses

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

AsContentKeyPolicyPlayReadyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyConfiguration.

func (ContentKeyPolicyConfiguration) AsContentKeyPolicyUnknownConfiguration Uses

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

AsContentKeyPolicyUnknownConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyConfiguration.

func (ContentKeyPolicyConfiguration) AsContentKeyPolicyWidevineConfiguration Uses

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

AsContentKeyPolicyWidevineConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyConfiguration.

func (ContentKeyPolicyConfiguration) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ContentKeyPolicyConfiguration.

type ContentKeyPolicyFairPlayConfiguration Uses

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 Uses

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

AsBasicContentKeyPolicyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyFairPlayConfiguration.

func (ContentKeyPolicyFairPlayConfiguration) AsContentKeyPolicyClearKeyConfiguration Uses

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

AsContentKeyPolicyClearKeyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyFairPlayConfiguration.

func (ContentKeyPolicyFairPlayConfiguration) AsContentKeyPolicyConfiguration Uses

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

AsContentKeyPolicyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyFairPlayConfiguration.

func (ContentKeyPolicyFairPlayConfiguration) AsContentKeyPolicyFairPlayConfiguration Uses

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

AsContentKeyPolicyFairPlayConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyFairPlayConfiguration.

func (ContentKeyPolicyFairPlayConfiguration) AsContentKeyPolicyPlayReadyConfiguration Uses

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

AsContentKeyPolicyPlayReadyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyFairPlayConfiguration.

func (ContentKeyPolicyFairPlayConfiguration) AsContentKeyPolicyUnknownConfiguration Uses

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

AsContentKeyPolicyUnknownConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyFairPlayConfiguration.

func (ContentKeyPolicyFairPlayConfiguration) AsContentKeyPolicyWidevineConfiguration Uses

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

AsContentKeyPolicyWidevineConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyFairPlayConfiguration.

func (ContentKeyPolicyFairPlayConfiguration) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ContentKeyPolicyFairPlayConfiguration.

type ContentKeyPolicyFairPlayRentalAndLeaseKeyType Uses

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 Uses

func PossibleContentKeyPolicyFairPlayRentalAndLeaseKeyTypeValues() []ContentKeyPolicyFairPlayRentalAndLeaseKeyType

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

type ContentKeyPolicyOpenRestriction Uses

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 Uses

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

AsBasicContentKeyPolicyRestriction is the BasicContentKeyPolicyRestriction implementation for ContentKeyPolicyOpenRestriction.

func (ContentKeyPolicyOpenRestriction) AsContentKeyPolicyOpenRestriction Uses

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

AsContentKeyPolicyOpenRestriction is the BasicContentKeyPolicyRestriction implementation for ContentKeyPolicyOpenRestriction.

func (ContentKeyPolicyOpenRestriction) AsContentKeyPolicyRestriction Uses

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

AsContentKeyPolicyRestriction is the BasicContentKeyPolicyRestriction implementation for ContentKeyPolicyOpenRestriction.

func (ContentKeyPolicyOpenRestriction) AsContentKeyPolicyTokenRestriction Uses

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

AsContentKeyPolicyTokenRestriction is the BasicContentKeyPolicyRestriction implementation for ContentKeyPolicyOpenRestriction.

func (ContentKeyPolicyOpenRestriction) AsContentKeyPolicyUnknownRestriction Uses

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

AsContentKeyPolicyUnknownRestriction is the BasicContentKeyPolicyRestriction implementation for ContentKeyPolicyOpenRestriction.

func (ContentKeyPolicyOpenRestriction) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ContentKeyPolicyOpenRestriction.

type ContentKeyPolicyOption Uses

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) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ContentKeyPolicyOption struct.

type ContentKeyPolicyPlayReadyConfiguration Uses

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 Uses

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

AsBasicContentKeyPolicyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyPlayReadyConfiguration.

func (ContentKeyPolicyPlayReadyConfiguration) AsContentKeyPolicyClearKeyConfiguration Uses

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

AsContentKeyPolicyClearKeyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyPlayReadyConfiguration.

func (ContentKeyPolicyPlayReadyConfiguration) AsContentKeyPolicyConfiguration Uses

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

AsContentKeyPolicyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyPlayReadyConfiguration.

func (ContentKeyPolicyPlayReadyConfiguration) AsContentKeyPolicyFairPlayConfiguration Uses

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

AsContentKeyPolicyFairPlayConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyPlayReadyConfiguration.

func (ContentKeyPolicyPlayReadyConfiguration) AsContentKeyPolicyPlayReadyConfiguration Uses

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

AsContentKeyPolicyPlayReadyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyPlayReadyConfiguration.

func (ContentKeyPolicyPlayReadyConfiguration) AsContentKeyPolicyUnknownConfiguration Uses

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

AsContentKeyPolicyUnknownConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyPlayReadyConfiguration.

func (ContentKeyPolicyPlayReadyConfiguration) AsContentKeyPolicyWidevineConfiguration Uses

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

AsContentKeyPolicyWidevineConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyPlayReadyConfiguration.

func (ContentKeyPolicyPlayReadyConfiguration) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ContentKeyPolicyPlayReadyConfiguration.

type ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader Uses

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 Uses

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

AsBasicContentKeyPolicyPlayReadyContentKeyLocation is the BasicContentKeyPolicyPlayReadyContentKeyLocation implementation for ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader.

func (ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader) AsContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader Uses

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

AsContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader is the BasicContentKeyPolicyPlayReadyContentKeyLocation implementation for ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader.

func (ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader) AsContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier Uses

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

AsContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier is the BasicContentKeyPolicyPlayReadyContentKeyLocation implementation for ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader.

func (ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader) AsContentKeyPolicyPlayReadyContentKeyLocation Uses

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

AsContentKeyPolicyPlayReadyContentKeyLocation is the BasicContentKeyPolicyPlayReadyContentKeyLocation implementation for ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader.

func (ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader) MarshalJSON Uses

func (ckpprcekfh ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader.

type ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier Uses

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 Uses

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

AsBasicContentKeyPolicyPlayReadyContentKeyLocation is the BasicContentKeyPolicyPlayReadyContentKeyLocation implementation for ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier.

func (ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier) AsContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader Uses

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

AsContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader is the BasicContentKeyPolicyPlayReadyContentKeyLocation implementation for ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier.

func (ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier) AsContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier Uses

func (ckpprcekfki ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier) AsContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier() (*ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier, bool)

AsContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier is the BasicContentKeyPolicyPlayReadyContentKeyLocation implementation for ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier.

func (ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier) AsContentKeyPolicyPlayReadyContentKeyLocation Uses

func (ckpprcekfki ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier) AsContentKeyPolicyPlayReadyContentKeyLocation() (*ContentKeyPolicyPlayReadyContentKeyLocation, bool)

AsContentKeyPolicyPlayReadyContentKeyLocation is the BasicContentKeyPolicyPlayReadyContentKeyLocation implementation for ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier.

func (ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier) MarshalJSON Uses

func (ckpprcekfki ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier.

type ContentKeyPolicyPlayReadyContentKeyLocation Uses

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

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

func (ContentKeyPolicyPlayReadyContentKeyLocation) AsBasicContentKeyPolicyPlayReadyContentKeyLocation Uses

func (ckpprckl ContentKeyPolicyPlayReadyContentKeyLocation) AsBasicContentKeyPolicyPlayReadyContentKeyLocation() (BasicContentKeyPolicyPlayReadyContentKeyLocation, bool)

AsBasicContentKeyPolicyPlayReadyContentKeyLocation is the BasicContentKeyPolicyPlayReadyContentKeyLocation implementation for ContentKeyPolicyPlayReadyContentKeyLocation.

func (ContentKeyPolicyPlayReadyContentKeyLocation) AsContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader Uses

func (ckpprckl ContentKeyPolicyPlayReadyContentKeyLocation) AsContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader() (*ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader, bool)

AsContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader is the BasicContentKeyPolicyPlayReadyContentKeyLocation implementation for ContentKeyPolicyPlayReadyContentKeyLocation.

func (ContentKeyPolicyPlayReadyContentKeyLocation) AsContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier Uses

func (ckpprckl ContentKeyPolicyPlayReadyContentKeyLocation) AsContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier() (*ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier, bool)

AsContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier is the BasicContentKeyPolicyPlayReadyContentKeyLocation implementation for ContentKeyPolicyPlayReadyContentKeyLocation.

func (ContentKeyPolicyPlayReadyContentKeyLocation) AsContentKeyPolicyPlayReadyContentKeyLocation Uses

func (ckpprckl ContentKeyPolicyPlayReadyContentKeyLocation) AsContentKeyPolicyPlayReadyContentKeyLocation() (*ContentKeyPolicyPlayReadyContentKeyLocation, bool)

AsContentKeyPolicyPlayReadyContentKeyLocation is the BasicContentKeyPolicyPlayReadyContentKeyLocation implementation for ContentKeyPolicyPlayReadyContentKeyLocation.

func (ContentKeyPolicyPlayReadyContentKeyLocation) MarshalJSON Uses

func (ckpprckl ContentKeyPolicyPlayReadyContentKeyLocation) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ContentKeyPolicyPlayReadyContentKeyLocation.

type ContentKeyPolicyPlayReadyContentType Uses

type ContentKeyPolicyPlayReadyContentType string

ContentKeyPolicyPlayReadyContentType enumerates the values for content key policy play ready content type.

const (
    // ContentKeyPolicyPlayReadyContentTypeUltraVioletDownload Ultraviolet download content type.
    ContentKeyPolicyPlayReadyContentTypeUltraVioletDownload ContentKeyPolicyPlayReadyContentType = "UltraVioletDownload"
    // ContentKeyPolicyPlayReadyContentTypeUltraVioletStreaming Ultraviolet streaming content type.
    ContentKeyPolicyPlayReadyContentTypeUltraVioletStreaming ContentKeyPolicyPlayReadyContentType = "UltraVioletStreaming"
    // ContentKeyPolicyPlayReadyContentTypeUnknown Represents a ContentKeyPolicyPlayReadyContentType that is
    // unavailable in current API version.
    ContentKeyPolicyPlayReadyContentTypeUnknown ContentKeyPolicyPlayReadyContentType = "Unknown"
    // ContentKeyPolicyPlayReadyContentTypeUnspecified Unspecified content type.
    ContentKeyPolicyPlayReadyContentTypeUnspecified ContentKeyPolicyPlayReadyContentType = "Unspecified"
)

func PossibleContentKeyPolicyPlayReadyContentTypeValues Uses

func PossibleContentKeyPolicyPlayReadyContentTypeValues() []ContentKeyPolicyPlayReadyContentType

PossibleContentKeyPolicyPlayReadyContentTypeValues returns an array of possible values for the ContentKeyPolicyPlayReadyContentType const type.

type ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction Uses

type ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction struct {
    // BestEffort - Indicates whether this restriction is enforced on a Best Effort basis.
    BestEffort *bool `json:"bestEffort,omitempty"`
    // ConfigurationData - Configures the restriction control bits. Must be between 0 and 3 inclusive.
    ConfigurationData *int32 `json:"configurationData,omitempty"`
}

ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction configures the Explicit Analog Television Output Restriction control bits. For further details see the PlayReady Compliance Rules.

type ContentKeyPolicyPlayReadyLicense Uses

type ContentKeyPolicyPlayReadyLicense struct {
    // AllowTestDevices - A flag indicating whether test devices can use the license.
    AllowTestDevices *bool `json:"allowTestDevices,omitempty"`
    // BeginDate - The begin date of license
    BeginDate *date.Time `json:"beginDate,omitempty"`
    // ExpirationDate - The expiration date of license.
    ExpirationDate *date.Time `json:"expirationDate,omitempty"`
    // RelativeBeginDate - The relative begin date of license.
    RelativeBeginDate *string `json:"relativeBeginDate,omitempty"`
    // RelativeExpirationDate - The relative expiration date of license.
    RelativeExpirationDate *string `json:"relativeExpirationDate,omitempty"`
    // GracePeriod - The grace period of license.
    GracePeriod *string `json:"gracePeriod,omitempty"`
    // PlayRight - The license PlayRight
    PlayRight *ContentKeyPolicyPlayReadyPlayRight `json:"playRight,omitempty"`
    // LicenseType - The license type. Possible values include: 'ContentKeyPolicyPlayReadyLicenseTypeUnknown', 'ContentKeyPolicyPlayReadyLicenseTypeNonPersistent', 'ContentKeyPolicyPlayReadyLicenseTypePersistent'
    LicenseType ContentKeyPolicyPlayReadyLicenseType `json:"licenseType,omitempty"`
    // ContentKeyLocation - The content key location.
    ContentKeyLocation BasicContentKeyPolicyPlayReadyContentKeyLocation `json:"contentKeyLocation,omitempty"`
    // ContentType - The PlayReady content type. Possible values include: 'ContentKeyPolicyPlayReadyContentTypeUnknown', 'ContentKeyPolicyPlayReadyContentTypeUnspecified', 'ContentKeyPolicyPlayReadyContentTypeUltraVioletDownload', 'ContentKeyPolicyPlayReadyContentTypeUltraVioletStreaming'
    ContentType ContentKeyPolicyPlayReadyContentType `json:"contentType,omitempty"`
}

ContentKeyPolicyPlayReadyLicense the PlayReady license

func (*ContentKeyPolicyPlayReadyLicense) UnmarshalJSON Uses

func (ckpprl *ContentKeyPolicyPlayReadyLicense) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ContentKeyPolicyPlayReadyLicense struct.

type ContentKeyPolicyPlayReadyLicenseType Uses

type ContentKeyPolicyPlayReadyLicenseType string

ContentKeyPolicyPlayReadyLicenseType enumerates the values for content key policy play ready license type.

const (
    // ContentKeyPolicyPlayReadyLicenseTypeNonPersistent Non persistent license.
    ContentKeyPolicyPlayReadyLicenseTypeNonPersistent ContentKeyPolicyPlayReadyLicenseType = "NonPersistent"
    // ContentKeyPolicyPlayReadyLicenseTypePersistent Persistent license. Allows offline playback.
    ContentKeyPolicyPlayReadyLicenseTypePersistent ContentKeyPolicyPlayReadyLicenseType = "Persistent"
    // ContentKeyPolicyPlayReadyLicenseTypeUnknown Represents a ContentKeyPolicyPlayReadyLicenseType that is
    // unavailable in current API version.
    ContentKeyPolicyPlayReadyLicenseTypeUnknown ContentKeyPolicyPlayReadyLicenseType = "Unknown"
)

func PossibleContentKeyPolicyPlayReadyLicenseTypeValues Uses

func PossibleContentKeyPolicyPlayReadyLicenseTypeValues() []ContentKeyPolicyPlayReadyLicenseType

PossibleContentKeyPolicyPlayReadyLicenseTypeValues returns an array of possible values for the ContentKeyPolicyPlayReadyLicenseType const type.

type ContentKeyPolicyPlayReadyPlayRight Uses

type ContentKeyPolicyPlayReadyPlayRight struct {
    // FirstPlayExpiration - The amount of time that the license is valid after the license is first used to play content.
    FirstPlayExpiration *string `json:"firstPlayExpiration,omitempty"`
    // ScmsRestriction - Configures the Serial Copy Management System (SCMS) in the license. Must be between 0 and 3 inclusive.
    ScmsRestriction *int32 `json:"scmsRestriction,omitempty"`
    // AgcAndColorStripeRestriction - Configures Automatic Gain Control (AGC) and Color Stripe in the license. Must be between 0 and 3 inclusive.
    AgcAndColorStripeRestriction *int32 `json:"agcAndColorStripeRestriction,omitempty"`
    // ExplicitAnalogTelevisionOutputRestriction - Configures the Explicit Analog Television Output Restriction in the license. Configuration data must be between 0 and 3 inclusive.
    ExplicitAnalogTelevisionOutputRestriction *ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction `json:"explicitAnalogTelevisionOutputRestriction,omitempty"`
    // DigitalVideoOnlyContentRestriction - Enables the Image Constraint For Analog Component Video Restriction in the license.
    DigitalVideoOnlyContentRestriction *bool `json:"digitalVideoOnlyContentRestriction,omitempty"`
    // ImageConstraintForAnalogComponentVideoRestriction - Enables the Image Constraint For Analog Component Video Restriction in the license.
    ImageConstraintForAnalogComponentVideoRestriction *bool `json:"imageConstraintForAnalogComponentVideoRestriction,omitempty"`
    // ImageConstraintForAnalogComputerMonitorRestriction - Enables the Image Constraint For Analog Component Video Restriction in the license.
    ImageConstraintForAnalogComputerMonitorRestriction *bool `json:"imageConstraintForAnalogComputerMonitorRestriction,omitempty"`
    // AllowPassingVideoContentToUnknownOutput - Configures Unknown output handling settings of the license. Possible values include: 'ContentKeyPolicyPlayReadyUnknownOutputPassingOptionUnknown', 'ContentKeyPolicyPlayReadyUnknownOutputPassingOptionNotAllowed', 'ContentKeyPolicyPlayReadyUnknownOutputPassingOptionAllowed', 'ContentKeyPolicyPlayReadyUnknownOutputPassingOptionAllowedWithVideoConstriction'
    AllowPassingVideoContentToUnknownOutput ContentKeyPolicyPlayReadyUnknownOutputPassingOption `json:"allowPassingVideoContentToUnknownOutput,omitempty"`
    // UncompressedDigitalVideoOpl - Specifies the output protection level for uncompressed digital video.
    UncompressedDigitalVideoOpl *int32 `json:"uncompressedDigitalVideoOpl,omitempty"`
    // CompressedDigitalVideoOpl - Specifies the output protection level for compressed digital video.
    CompressedDigitalVideoOpl *int32 `json:"compressedDigitalVideoOpl,omitempty"`
    // AnalogVideoOpl - Specifies the output protection level for compressed digital audio.
    AnalogVideoOpl *int32 `json:"analogVideoOpl,omitempty"`
    // CompressedDigitalAudioOpl - Specifies the output protection level for compressed digital audio.
    CompressedDigitalAudioOpl *int32 `json:"compressedDigitalAudioOpl,omitempty"`
    // UncompressedDigitalAudioOpl - Specifies the output protection level for uncompressed digital audio.
    UncompressedDigitalAudioOpl *int32 `json:"uncompressedDigitalAudioOpl,omitempty"`
}

ContentKeyPolicyPlayReadyPlayRight configures the Play Right in the PlayReady license.

type ContentKeyPolicyPlayReadyUnknownOutputPassingOption Uses

type ContentKeyPolicyPlayReadyUnknownOutputPassingOption string

ContentKeyPolicyPlayReadyUnknownOutputPassingOption enumerates the values for content key policy play ready unknown output passing option.

const (
    // ContentKeyPolicyPlayReadyUnknownOutputPassingOptionAllowed Passing the video portion of protected
    // content to an Unknown Output is allowed.
    ContentKeyPolicyPlayReadyUnknownOutputPassingOptionAllowed ContentKeyPolicyPlayReadyUnknownOutputPassingOption = "Allowed"
    // ContentKeyPolicyPlayReadyUnknownOutputPassingOptionAllowedWithVideoConstriction Passing the video
    // portion of protected content to an Unknown Output is allowed but with constrained resolution.
    ContentKeyPolicyPlayReadyUnknownOutputPassingOptionAllowedWithVideoConstriction ContentKeyPolicyPlayReadyUnknownOutputPassingOption = "AllowedWithVideoConstriction"
    // ContentKeyPolicyPlayReadyUnknownOutputPassingOptionNotAllowed Passing the video portion of protected
    // content to an Unknown Output is not allowed.
    ContentKeyPolicyPlayReadyUnknownOutputPassingOptionNotAllowed ContentKeyPolicyPlayReadyUnknownOutputPassingOption = "NotAllowed"
    // ContentKeyPolicyPlayReadyUnknownOutputPassingOptionUnknown Represents a
    // ContentKeyPolicyPlayReadyUnknownOutputPassingOption that is unavailable in current API version.
    ContentKeyPolicyPlayReadyUnknownOutputPassingOptionUnknown ContentKeyPolicyPlayReadyUnknownOutputPassingOption = "Unknown"
)

func PossibleContentKeyPolicyPlayReadyUnknownOutputPassingOptionValues Uses

func PossibleContentKeyPolicyPlayReadyUnknownOutputPassingOptionValues() []ContentKeyPolicyPlayReadyUnknownOutputPassingOption

PossibleContentKeyPolicyPlayReadyUnknownOutputPassingOptionValues returns an array of possible values for the ContentKeyPolicyPlayReadyUnknownOutputPassingOption const type.

type ContentKeyPolicyProperties Uses

type ContentKeyPolicyProperties struct {
    autorest.Response `json:"-"`
    // PolicyID - READ-ONLY; The legacy Policy ID.
    PolicyID *uuid.UUID `json:"policyId,omitempty"`
    // Created - READ-ONLY; The creation date of the Policy
    Created *date.Time `json:"created,omitempty"`
    // LastModified - READ-ONLY; The last modified date of the Policy
    LastModified *date.Time `json:"lastModified,omitempty"`
    // Description - A description for the Policy.
    Description *string `json:"description,omitempty"`
    // Options - The Key Policy options.
    Options *[]ContentKeyPolicyOption `json:"options,omitempty"`
}

ContentKeyPolicyProperties the properties of the Content Key Policy.

type ContentKeyPolicyRestriction Uses

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

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

func (ContentKeyPolicyRestriction) AsBasicContentKeyPolicyRestriction Uses

func (ckpr ContentKeyPolicyRestriction) AsBasicContentKeyPolicyRestriction() (BasicContentKeyPolicyRestriction, bool)

AsBasicContentKeyPolicyRestriction is the BasicContentKeyPolicyRestriction implementation for ContentKeyPolicyRestriction.

func (ContentKeyPolicyRestriction) AsContentKeyPolicyOpenRestriction Uses

func (ckpr ContentKeyPolicyRestriction) AsContentKeyPolicyOpenRestriction() (*ContentKeyPolicyOpenRestriction, bool)

AsContentKeyPolicyOpenRestriction is the BasicContentKeyPolicyRestriction implementation for ContentKeyPolicyRestriction.

func (ContentKeyPolicyRestriction) AsContentKeyPolicyRestriction Uses

func (ckpr ContentKeyPolicyRestriction) AsContentKeyPolicyRestriction() (*ContentKeyPolicyRestriction, bool)

AsContentKeyPolicyRestriction is the BasicContentKeyPolicyRestriction implementation for ContentKeyPolicyRestriction.

func (ContentKeyPolicyRestriction) AsContentKeyPolicyTokenRestriction Uses

func (ckpr ContentKeyPolicyRestriction) AsContentKeyPolicyTokenRestriction() (*ContentKeyPolicyTokenRestriction, bool)

AsContentKeyPolicyTokenRestriction is the BasicContentKeyPolicyRestriction implementation for ContentKeyPolicyRestriction.

func (ContentKeyPolicyRestriction) AsContentKeyPolicyUnknownRestriction Uses

func (ckpr ContentKeyPolicyRestriction) AsContentKeyPolicyUnknownRestriction() (*ContentKeyPolicyUnknownRestriction, bool)

AsContentKeyPolicyUnknownRestriction is the BasicContentKeyPolicyRestriction implementation for ContentKeyPolicyRestriction.

func (ContentKeyPolicyRestriction) MarshalJSON Uses

func (ckpr ContentKeyPolicyRestriction) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ContentKeyPolicyRestriction.

type ContentKeyPolicyRestrictionTokenKey Uses

type ContentKeyPolicyRestrictionTokenKey struct {
    // OdataType - Possible values include: 'OdataTypeContentKeyPolicyRestrictionTokenKey', 'OdataTypeMicrosoftMediaContentKeyPolicySymmetricTokenKey', 'OdataTypeMicrosoftMediaContentKeyPolicyRsaTokenKey', 'OdataTypeMicrosoftMediaContentKeyPolicyX509CertificateTokenKey'
    OdataType OdataTypeBasicContentKeyPolicyRestrictionTokenKey `json:"@odata.type,omitempty"`
}

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

func (ContentKeyPolicyRestrictionTokenKey) AsBasicContentKeyPolicyRestrictionTokenKey Uses

func (ckprtk ContentKeyPolicyRestrictionTokenKey) AsBasicContentKeyPolicyRestrictionTokenKey() (BasicContentKeyPolicyRestrictionTokenKey, bool)

AsBasicContentKeyPolicyRestrictionTokenKey is the BasicContentKeyPolicyRestrictionTokenKey implementation for ContentKeyPolicyRestrictionTokenKey.

func (ContentKeyPolicyRestrictionTokenKey) AsContentKeyPolicyRestrictionTokenKey Uses

func (ckprtk ContentKeyPolicyRestrictionTokenKey) AsContentKeyPolicyRestrictionTokenKey() (*ContentKeyPolicyRestrictionTokenKey, bool)

AsContentKeyPolicyRestrictionTokenKey is the BasicContentKeyPolicyRestrictionTokenKey implementation for ContentKeyPolicyRestrictionTokenKey.

func (ContentKeyPolicyRestrictionTokenKey) AsContentKeyPolicyRsaTokenKey Uses

func (ckprtk ContentKeyPolicyRestrictionTokenKey) AsContentKeyPolicyRsaTokenKey() (*ContentKeyPolicyRsaTokenKey, bool)

AsContentKeyPolicyRsaTokenKey is the BasicContentKeyPolicyRestrictionTokenKey implementation for ContentKeyPolicyRestrictionTokenKey.

func (ContentKeyPolicyRestrictionTokenKey) AsContentKeyPolicySymmetricTokenKey Uses

func (ckprtk ContentKeyPolicyRestrictionTokenKey) AsContentKeyPolicySymmetricTokenKey() (*ContentKeyPolicySymmetricTokenKey, bool)

AsContentKeyPolicySymmetricTokenKey is the BasicContentKeyPolicyRestrictionTokenKey implementation for ContentKeyPolicyRestrictionTokenKey.

func (ContentKeyPolicyRestrictionTokenKey) AsContentKeyPolicyX509CertificateTokenKey Uses

func (ckprtk ContentKeyPolicyRestrictionTokenKey) AsContentKeyPolicyX509CertificateTokenKey() (*ContentKeyPolicyX509CertificateTokenKey, bool)

AsContentKeyPolicyX509CertificateTokenKey is the BasicContentKeyPolicyRestrictionTokenKey implementation for ContentKeyPolicyRestrictionTokenKey.

func (ContentKeyPolicyRestrictionTokenKey) MarshalJSON Uses

func (ckprtk ContentKeyPolicyRestrictionTokenKey) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ContentKeyPolicyRestrictionTokenKey.

type ContentKeyPolicyRestrictionTokenType Uses

type ContentKeyPolicyRestrictionTokenType string

ContentKeyPolicyRestrictionTokenType enumerates the values for content key policy restriction token type.

const (
    // ContentKeyPolicyRestrictionTokenTypeJwt JSON Web Token.
    ContentKeyPolicyRestrictionTokenTypeJwt ContentKeyPolicyRestrictionTokenType = "Jwt"
    // ContentKeyPolicyRestrictionTokenTypeSwt Simple Web Token.
    ContentKeyPolicyRestrictionTokenTypeSwt ContentKeyPolicyRestrictionTokenType = "Swt"
    // ContentKeyPolicyRestrictionTokenTypeUnknown Represents a ContentKeyPolicyRestrictionTokenType that is
    // unavailable in current API version.
    ContentKeyPolicyRestrictionTokenTypeUnknown ContentKeyPolicyRestrictionTokenType = "Unknown"
)

func PossibleContentKeyPolicyRestrictionTokenTypeValues Uses

func PossibleContentKeyPolicyRestrictionTokenTypeValues() []ContentKeyPolicyRestrictionTokenType

PossibleContentKeyPolicyRestrictionTokenTypeValues returns an array of possible values for the ContentKeyPolicyRestrictionTokenType const type.

type ContentKeyPolicyRsaTokenKey Uses

type ContentKeyPolicyRsaTokenKey struct {
    // Exponent - The RSA Parameter exponent
    Exponent *[]byte `json:"exponent,omitempty"`
    // Modulus - The RSA Parameter modulus
    Modulus *[]byte `json:"modulus,omitempty"`
    // OdataType - Possible values include: 'OdataTypeContentKeyPolicyRestrictionTokenKey', 'OdataTypeMicrosoftMediaContentKeyPolicySymmetricTokenKey', 'OdataTypeMicrosoftMediaContentKeyPolicyRsaTokenKey', 'OdataTypeMicrosoftMediaContentKeyPolicyX509CertificateTokenKey'
    OdataType OdataTypeBasicContentKeyPolicyRestrictionTokenKey `json:"@odata.type,omitempty"`
}

ContentKeyPolicyRsaTokenKey specifies a RSA key for token validation

func (ContentKeyPolicyRsaTokenKey) AsBasicContentKeyPolicyRestrictionTokenKey Uses

func (ckprtk ContentKeyPolicyRsaTokenKey) AsBasicContentKeyPolicyRestrictionTokenKey() (BasicContentKeyPolicyRestrictionTokenKey, bool)

AsBasicContentKeyPolicyRestrictionTokenKey is the BasicContentKeyPolicyRestrictionTokenKey implementation for ContentKeyPolicyRsaTokenKey.

func (ContentKeyPolicyRsaTokenKey) AsContentKeyPolicyRestrictionTokenKey Uses

func (ckprtk ContentKeyPolicyRsaTokenKey) AsContentKeyPolicyRestrictionTokenKey() (*ContentKeyPolicyRestrictionTokenKey, bool)

AsContentKeyPolicyRestrictionTokenKey is the BasicContentKeyPolicyRestrictionTokenKey implementation for ContentKeyPolicyRsaTokenKey.

func (ContentKeyPolicyRsaTokenKey) AsContentKeyPolicyRsaTokenKey Uses

func (ckprtk ContentKeyPolicyRsaTokenKey) AsContentKeyPolicyRsaTokenKey() (*ContentKeyPolicyRsaTokenKey, bool)

AsContentKeyPolicyRsaTokenKey is the BasicContentKeyPolicyRestrictionTokenKey implementation for ContentKeyPolicyRsaTokenKey.

func (ContentKeyPolicyRsaTokenKey) AsContentKeyPolicySymmetricTokenKey Uses

func (ckprtk ContentKeyPolicyRsaTokenKey) AsContentKeyPolicySymmetricTokenKey() (*ContentKeyPolicySymmetricTokenKey, bool)

AsContentKeyPolicySymmetricTokenKey is the BasicContentKeyPolicyRestrictionTokenKey implementation for ContentKeyPolicyRsaTokenKey.

func (ContentKeyPolicyRsaTokenKey) AsContentKeyPolicyX509CertificateTokenKey Uses

func (ckprtk ContentKeyPolicyRsaTokenKey) AsContentKeyPolicyX509CertificateTokenKey() (*ContentKeyPolicyX509CertificateTokenKey, bool)

AsContentKeyPolicyX509CertificateTokenKey is the BasicContentKeyPolicyRestrictionTokenKey implementation for ContentKeyPolicyRsaTokenKey.

func (ContentKeyPolicyRsaTokenKey) MarshalJSON Uses

func (ckprtk ContentKeyPolicyRsaTokenKey) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ContentKeyPolicyRsaTokenKey.

type ContentKeyPolicySymmetricTokenKey Uses

type ContentKeyPolicySymmetricTokenKey struct {
    // KeyValue - The key value of the key
    KeyValue *[]byte `json:"keyValue,omitempty"`
    // OdataType - Possible values include: 'OdataTypeContentKeyPolicyRestrictionTokenKey', 'OdataTypeMicrosoftMediaContentKeyPolicySymmetricTokenKey', 'OdataTypeMicrosoftMediaContentKeyPolicyRsaTokenKey', 'OdataTypeMicrosoftMediaContentKeyPolicyX509CertificateTokenKey'
    OdataType OdataTypeBasicContentKeyPolicyRestrictionTokenKey `json:"@odata.type,omitempty"`
}

ContentKeyPolicySymmetricTokenKey specifies a symmetric key for token validation.

func (ContentKeyPolicySymmetricTokenKey) AsBasicContentKeyPolicyRestrictionTokenKey Uses

func (ckpstk ContentKeyPolicySymmetricTokenKey) AsBasicContentKeyPolicyRestrictionTokenKey() (BasicContentKeyPolicyRestrictionTokenKey, bool)

AsBasicContentKeyPolicyRestrictionTokenKey is the BasicContentKeyPolicyRestrictionTokenKey implementation for ContentKeyPolicySymmetricTokenKey.

func (ContentKeyPolicySymmetricTokenKey) AsContentKeyPolicyRestrictionTokenKey Uses

func (ckpstk ContentKeyPolicySymmetricTokenKey) AsContentKeyPolicyRestrictionTokenKey() (*ContentKeyPolicyRestrictionTokenKey, bool)

AsContentKeyPolicyRestrictionTokenKey is the BasicContentKeyPolicyRestrictionTokenKey implementation for ContentKeyPolicySymmetricTokenKey.

func (ContentKeyPolicySymmetricTokenKey) AsContentKeyPolicyRsaTokenKey Uses

func (ckpstk ContentKeyPolicySymmetricTokenKey) AsContentKeyPolicyRsaTokenKey() (*ContentKeyPolicyRsaTokenKey, bool)

AsContentKeyPolicyRsaTokenKey is the BasicContentKeyPolicyRestrictionTokenKey implementation for ContentKeyPolicySymmetricTokenKey.

func (ContentKeyPolicySymmetricTokenKey) AsContentKeyPolicySymmetricTokenKey Uses

func (ckpstk ContentKeyPolicySymmetricTokenKey) AsContentKeyPolicySymmetricTokenKey() (*ContentKeyPolicySymmetricTokenKey, bool)

AsContentKeyPolicySymmetricTokenKey is the BasicContentKeyPolicyRestrictionTokenKey implementation for ContentKeyPolicySymmetricTokenKey.

func (ContentKeyPolicySymmetricTokenKey) AsContentKeyPolicyX509CertificateTokenKey Uses

func (ckpstk ContentKeyPolicySymmetricTokenKey) AsContentKeyPolicyX509CertificateTokenKey() (*ContentKeyPolicyX509CertificateTokenKey, bool)

AsContentKeyPolicyX509CertificateTokenKey is the BasicContentKeyPolicyRestrictionTokenKey implementation for ContentKeyPolicySymmetricTokenKey.

func (ContentKeyPolicySymmetricTokenKey) MarshalJSON Uses

func (ckpstk ContentKeyPolicySymmetricTokenKey) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ContentKeyPolicySymmetricTokenKey.

type ContentKeyPolicyTokenClaim Uses

type ContentKeyPolicyTokenClaim struct {
    // ClaimType - Token claim type.
    ClaimType *string `json:"claimType,omitempty"`
    // ClaimValue - Token claim value.
    ClaimValue *string `json:"claimValue,omitempty"`
}

ContentKeyPolicyTokenClaim represents a token claim.

type ContentKeyPolicyTokenRestriction Uses

type ContentKeyPolicyTokenRestriction struct {
    // Issuer - The token issuer.
    Issuer *string `json:"issuer,omitempty"`
    // Audience - The audience for the token.
    Audience *string `json:"audience,omitempty"`
    // PrimaryVerificationKey - The primary verification key.
    PrimaryVerificationKey BasicContentKeyPolicyRestrictionTokenKey `json:"primaryVerificationKey,omitempty"`
    // AlternateVerificationKeys - A list of alternative verification keys.
    AlternateVerificationKeys *[]BasicContentKeyPolicyRestrictionTokenKey `json:"alternateVerificationKeys,omitempty"`
    // RequiredClaims - A list of required token claims.
    RequiredClaims *[]ContentKeyPolicyTokenClaim `json:"requiredClaims,omitempty"`
    // RestrictionTokenType - The type of token. Possible values include: 'ContentKeyPolicyRestrictionTokenTypeUnknown', 'ContentKeyPolicyRestrictionTokenTypeSwt', 'ContentKeyPolicyRestrictionTokenTypeJwt'
    RestrictionTokenType ContentKeyPolicyRestrictionTokenType `json:"restrictionTokenType,omitempty"`
    // OpenIDConnectDiscoveryDocument - The OpenID connect discovery document.
    OpenIDConnectDiscoveryDocument *string `json:"openIdConnectDiscoveryDocument,omitempty"`
    // OdataType - Possible values include: 'OdataTypeContentKeyPolicyRestriction', 'OdataTypeMicrosoftMediaContentKeyPolicyOpenRestriction', 'OdataTypeMicrosoftMediaContentKeyPolicyUnknownRestriction', 'OdataTypeMicrosoftMediaContentKeyPolicyTokenRestriction'
    OdataType OdataTypeBasicContentKeyPolicyRestriction `json:"@odata.type,omitempty"`
}

ContentKeyPolicyTokenRestriction represents a token restriction. Provided token must match these requirements for successful license or key delivery.

func (ContentKeyPolicyTokenRestriction) AsBasicContentKeyPolicyRestriction Uses

func (ckptr ContentKeyPolicyTokenRestriction) AsBasicContentKeyPolicyRestriction() (BasicContentKeyPolicyRestriction, bool)

AsBasicContentKeyPolicyRestriction is the BasicContentKeyPolicyRestriction implementation for ContentKeyPolicyTokenRestriction.

func (ContentKeyPolicyTokenRestriction) AsContentKeyPolicyOpenRestriction Uses

func (ckptr ContentKeyPolicyTokenRestriction) AsContentKeyPolicyOpenRestriction() (*ContentKeyPolicyOpenRestriction, bool)

AsContentKeyPolicyOpenRestriction is the BasicContentKeyPolicyRestriction implementation for ContentKeyPolicyTokenRestriction.

func (ContentKeyPolicyTokenRestriction) AsContentKeyPolicyRestriction Uses

func (ckptr ContentKeyPolicyTokenRestriction) AsContentKeyPolicyRestriction() (*ContentKeyPolicyRestriction, bool)

AsContentKeyPolicyRestriction is the BasicContentKeyPolicyRestriction implementation for ContentKeyPolicyTokenRestriction.

func (ContentKeyPolicyTokenRestriction) AsContentKeyPolicyTokenRestriction Uses

func (ckptr ContentKeyPolicyTokenRestriction) AsContentKeyPolicyTokenRestriction() (*ContentKeyPolicyTokenRestriction, bool)

AsContentKeyPolicyTokenRestriction is the BasicContentKeyPolicyRestriction implementation for ContentKeyPolicyTokenRestriction.

func (ContentKeyPolicyTokenRestriction) AsContentKeyPolicyUnknownRestriction Uses

func (ckptr ContentKeyPolicyTokenRestriction) AsContentKeyPolicyUnknownRestriction() (*ContentKeyPolicyUnknownRestriction, bool)

AsContentKeyPolicyUnknownRestriction is the BasicContentKeyPolicyRestriction implementation for ContentKeyPolicyTokenRestriction.

func (ContentKeyPolicyTokenRestriction) MarshalJSON Uses

func (ckptr ContentKeyPolicyTokenRestriction) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ContentKeyPolicyTokenRestriction.

func (*ContentKeyPolicyTokenRestriction) UnmarshalJSON Uses

func (ckptr *ContentKeyPolicyTokenRestriction) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ContentKeyPolicyTokenRestriction struct.

type ContentKeyPolicyUnknownConfiguration Uses

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

ContentKeyPolicyUnknownConfiguration represents a ContentKeyPolicyConfiguration that is unavailable in the current API version.

func (ContentKeyPolicyUnknownConfiguration) AsBasicContentKeyPolicyConfiguration Uses

func (ckpuc ContentKeyPolicyUnknownConfiguration) AsBasicContentKeyPolicyConfiguration() (BasicContentKeyPolicyConfiguration, bool)

AsBasicContentKeyPolicyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyUnknownConfiguration.

func (ContentKeyPolicyUnknownConfiguration) AsContentKeyPolicyClearKeyConfiguration Uses

func (ckpuc ContentKeyPolicyUnknownConfiguration) AsContentKeyPolicyClearKeyConfiguration() (*ContentKeyPolicyClearKeyConfiguration, bool)

AsContentKeyPolicyClearKeyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyUnknownConfiguration.

func (ContentKeyPolicyUnknownConfiguration) AsContentKeyPolicyConfiguration Uses

func (ckpuc ContentKeyPolicyUnknownConfiguration) AsContentKeyPolicyConfiguration() (*ContentKeyPolicyConfiguration, bool)

AsContentKeyPolicyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyUnknownConfiguration.

func (ContentKeyPolicyUnknownConfiguration) AsContentKeyPolicyFairPlayConfiguration Uses

func (ckpuc ContentKeyPolicyUnknownConfiguration) AsContentKeyPolicyFairPlayConfiguration() (*ContentKeyPolicyFairPlayConfiguration, bool)

AsContentKeyPolicyFairPlayConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyUnknownConfiguration.

func (ContentKeyPolicyUnknownConfiguration) AsContentKeyPolicyPlayReadyConfiguration Uses

func (ckpuc ContentKeyPolicyUnknownConfiguration) AsContentKeyPolicyPlayReadyConfiguration() (*ContentKeyPolicyPlayReadyConfiguration, bool)

AsContentKeyPolicyPlayReadyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyUnknownConfiguration.

func (ContentKeyPolicyUnknownConfiguration) AsContentKeyPolicyUnknownConfiguration Uses

func (ckpuc ContentKeyPolicyUnknownConfiguration) AsContentKeyPolicyUnknownConfiguration() (*ContentKeyPolicyUnknownConfiguration, bool)

AsContentKeyPolicyUnknownConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyUnknownConfiguration.

func (ContentKeyPolicyUnknownConfiguration) AsContentKeyPolicyWidevineConfiguration Uses

func (ckpuc ContentKeyPolicyUnknownConfiguration) AsContentKeyPolicyWidevineConfiguration() (*ContentKeyPolicyWidevineConfiguration, bool)

AsContentKeyPolicyWidevineConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyUnknownConfiguration.

func (ContentKeyPolicyUnknownConfiguration) MarshalJSON Uses

func (ckpuc ContentKeyPolicyUnknownConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ContentKeyPolicyUnknownConfiguration.

type ContentKeyPolicyUnknownRestriction Uses

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

ContentKeyPolicyUnknownRestriction represents a ContentKeyPolicyRestriction that is unavailable in the current API version.

func (ContentKeyPolicyUnknownRestriction) AsBasicContentKeyPolicyRestriction Uses

func (ckpur ContentKeyPolicyUnknownRestriction) AsBasicContentKeyPolicyRestriction() (BasicContentKeyPolicyRestriction, bool)

AsBasicContentKeyPolicyRestriction is the BasicContentKeyPolicyRestriction implementation for ContentKeyPolicyUnknownRestriction.

func (ContentKeyPolicyUnknownRestriction) AsContentKeyPolicyOpenRestriction Uses

func (ckpur ContentKeyPolicyUnknownRestriction) AsContentKeyPolicyOpenRestriction() (*ContentKeyPolicyOpenRestriction, bool)

AsContentKeyPolicyOpenRestriction is the BasicContentKeyPolicyRestriction implementation for ContentKeyPolicyUnknownRestriction.

func (ContentKeyPolicyUnknownRestriction) AsContentKeyPolicyRestriction Uses

func (ckpur ContentKeyPolicyUnknownRestriction) AsContentKeyPolicyRestriction() (*ContentKeyPolicyRestriction, bool)

AsContentKeyPolicyRestriction is the BasicContentKeyPolicyRestriction implementation for ContentKeyPolicyUnknownRestriction.

func (ContentKeyPolicyUnknownRestriction) AsContentKeyPolicyTokenRestriction Uses

func (ckpur ContentKeyPolicyUnknownRestriction) AsContentKeyPolicyTokenRestriction() (*ContentKeyPolicyTokenRestriction, bool)

AsContentKeyPolicyTokenRestriction is the BasicContentKeyPolicyRestriction implementation for ContentKeyPolicyUnknownRestriction.

func (ContentKeyPolicyUnknownRestriction) AsContentKeyPolicyUnknownRestriction Uses

func (ckpur ContentKeyPolicyUnknownRestriction) AsContentKeyPolicyUnknownRestriction() (*ContentKeyPolicyUnknownRestriction, bool)

AsContentKeyPolicyUnknownRestriction is the BasicContentKeyPolicyRestriction implementation for ContentKeyPolicyUnknownRestriction.

func (ContentKeyPolicyUnknownRestriction) MarshalJSON Uses

func (ckpur ContentKeyPolicyUnknownRestriction) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ContentKeyPolicyUnknownRestriction.

type ContentKeyPolicyWidevineConfiguration Uses

type ContentKeyPolicyWidevineConfiguration struct {
    // WidevineTemplate - The Widevine template.
    WidevineTemplate *string `json:"widevineTemplate,omitempty"`
    // OdataType - Possible values include: 'OdataTypeContentKeyPolicyConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyUnknownConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration'
    OdataType OdataTypeBasicContentKeyPolicyConfiguration `json:"@odata.type,omitempty"`
}

ContentKeyPolicyWidevineConfiguration specifies a configuration for Widevine licenses.

func (ContentKeyPolicyWidevineConfiguration) AsBasicContentKeyPolicyConfiguration Uses

func (ckpwc ContentKeyPolicyWidevineConfiguration) AsBasicContentKeyPolicyConfiguration() (BasicContentKeyPolicyConfiguration, bool)

AsBasicContentKeyPolicyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyWidevineConfiguration.

func (ContentKeyPolicyWidevineConfiguration) AsContentKeyPolicyClearKeyConfiguration Uses

func (ckpwc ContentKeyPolicyWidevineConfiguration) AsContentKeyPolicyClearKeyConfiguration() (*ContentKeyPolicyClearKeyConfiguration, bool)

AsContentKeyPolicyClearKeyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyWidevineConfiguration.

func (ContentKeyPolicyWidevineConfiguration) AsContentKeyPolicyConfiguration Uses

func (ckpwc ContentKeyPolicyWidevineConfiguration) AsContentKeyPolicyConfiguration() (*ContentKeyPolicyConfiguration, bool)

AsContentKeyPolicyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyWidevineConfiguration.

func (ContentKeyPolicyWidevineConfiguration) AsContentKeyPolicyFairPlayConfiguration Uses

func (ckpwc ContentKeyPolicyWidevineConfiguration) AsContentKeyPolicyFairPlayConfiguration() (*ContentKeyPolicyFairPlayConfiguration, bool)

AsContentKeyPolicyFairPlayConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyWidevineConfiguration.

func (ContentKeyPolicyWidevineConfiguration) AsContentKeyPolicyPlayReadyConfiguration Uses

func (ckpwc ContentKeyPolicyWidevineConfiguration) AsContentKeyPolicyPlayReadyConfiguration() (*ContentKeyPolicyPlayReadyConfiguration, bool)

AsContentKeyPolicyPlayReadyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyWidevineConfiguration.

func (ContentKeyPolicyWidevineConfiguration) AsContentKeyPolicyUnknownConfiguration Uses

func (ckpwc ContentKeyPolicyWidevineConfiguration) AsContentKeyPolicyUnknownConfiguration() (*ContentKeyPolicyUnknownConfiguration, bool)

AsContentKeyPolicyUnknownConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyWidevineConfiguration.

func (ContentKeyPolicyWidevineConfiguration) AsContentKeyPolicyWidevineConfiguration Uses

func (ckpwc ContentKeyPolicyWidevineConfiguration) AsContentKeyPolicyWidevineConfiguration() (*ContentKeyPolicyWidevineConfiguration, bool)

AsContentKeyPolicyWidevineConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyWidevineConfiguration.

func (ContentKeyPolicyWidevineConfiguration) MarshalJSON Uses

func (ckpwc ContentKeyPolicyWidevineConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ContentKeyPolicyWidevineConfiguration.

type ContentKeyPolicyX509CertificateTokenKey Uses

type ContentKeyPolicyX509CertificateTokenKey struct {
    // RawBody - The raw data field of a certificate in PKCS 12 format (X509Certificate2 in .NET)
    RawBody *[]byte `json:"rawBody,omitempty"`
    // OdataType - Possible values include: 'OdataTypeContentKeyPolicyRestrictionTokenKey', 'OdataTypeMicrosoftMediaContentKeyPolicySymmetricTokenKey', 'OdataTypeMicrosoftMediaContentKeyPolicyRsaTokenKey', 'OdataTypeMicrosoftMediaContentKeyPolicyX509CertificateTokenKey'
    OdataType OdataTypeBasicContentKeyPolicyRestrictionTokenKey `json:"@odata.type,omitempty"`
}

ContentKeyPolicyX509CertificateTokenKey specifies a certificate for token validation.

func (ContentKeyPolicyX509CertificateTokenKey) AsBasicContentKeyPolicyRestrictionTokenKey Uses

func (ckpxctk ContentKeyPolicyX509CertificateTokenKey) AsBasicContentKeyPolicyRestrictionTokenKey() (BasicContentKeyPolicyRestrictionTokenKey, bool)

AsBasicContentKeyPolicyRestrictionTokenKey is the BasicContentKeyPolicyRestrictionTokenKey implementation for ContentKeyPolicyX509CertificateTokenKey.

func (ContentKeyPolicyX509CertificateTokenKey) AsContentKeyPolicyRestrictionTokenKey Uses

func (ckpxctk ContentKeyPolicyX509CertificateTokenKey) AsContentKeyPolicyRestrictionTokenKey() (*ContentKeyPolicyRestrictionTokenKey, bool)

AsContentKeyPolicyRestrictionTokenKey is the BasicContentKeyPolicyRestrictionTokenKey implementation for ContentKeyPolicyX509CertificateTokenKey.

func (ContentKeyPolicyX509CertificateTokenKey) AsContentKeyPolicyRsaTokenKey Uses

func (ckpxctk ContentKeyPolicyX509CertificateTokenKey) AsContentKeyPolicyRsaTokenKey() (*ContentKeyPolicyRsaTokenKey, bool)

AsContentKeyPolicyRsaTokenKey is the BasicContentKeyPolicyRestrictionTokenKey implementation for ContentKeyPolicyX509CertificateTokenKey.

func (ContentKeyPolicyX509CertificateTokenKey) AsContentKeyPolicySymmetricTokenKey Uses

func (ckpxctk ContentKeyPolicyX509CertificateTokenKey) AsContentKeyPolicySymmetricTokenKey() (*ContentKeyPolicySymmetricTokenKey, bool)

AsContentKeyPolicySymmetricTokenKey is the BasicContentKeyPolicyRestrictionTokenKey implementation for ContentKeyPolicyX509CertificateTokenKey.

func (ContentKeyPolicyX509CertificateTokenKey) AsContentKeyPolicyX509CertificateTokenKey Uses

func (ckpxctk ContentKeyPolicyX509CertificateTokenKey) AsContentKeyPolicyX509CertificateTokenKey() (*ContentKeyPolicyX509CertificateTokenKey, bool)

AsContentKeyPolicyX509CertificateTokenKey is the BasicContentKeyPolicyRestrictionTokenKey implementation for ContentKeyPolicyX509CertificateTokenKey.

func (ContentKeyPolicyX509CertificateTokenKey) MarshalJSON Uses

func (ckpxctk ContentKeyPolicyX509CertificateTokenKey) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ContentKeyPolicyX509CertificateTokenKey.

type CopyAudio Uses

type CopyAudio 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"`
}

CopyAudio a codec flag, which tells the encoder to copy the input audio bitstream.

func (CopyAudio) AsAacAudio Uses

func (ca CopyAudio) AsAacAudio() (*AacAudio, bool)

AsAacAudio is the BasicCodec implementation for CopyAudio.

func (CopyAudio) AsAudio Uses

func (ca CopyAudio) AsAudio() (*Audio, bool)

AsAudio is the BasicCodec implementation for CopyAudio.

func (CopyAudio) AsBasicAudio Uses

func (ca CopyAudio) AsBasicAudio() (BasicAudio, bool)

AsBasicAudio is the BasicCodec implementation for CopyAudio.

func (CopyAudio) AsBasicCodec Uses

func (ca CopyAudio) AsBasicCodec() (BasicCodec, bool)

AsBasicCodec is the BasicCodec implementation for CopyAudio.

func (CopyAudio) AsBasicImage Uses

func (ca CopyAudio) AsBasicImage() (BasicImage, bool)

AsBasicImage is the BasicCodec implementation for CopyAudio.

func (CopyAudio) AsBasicVideo Uses

func (ca CopyAudio) AsBasicVideo() (BasicVideo, bool)

AsBasicVideo is the BasicCodec implementation for CopyAudio.

func (CopyAudio) AsCodec Uses

func (ca CopyAudio) AsCodec() (*Codec, bool)

AsCodec is the BasicCodec implementation for CopyAudio.

func (CopyAudio) AsCopyAudio Uses

func (ca CopyAudio) AsCopyAudio() (*CopyAudio, bool)

AsCopyAudio is the BasicCodec implementation for CopyAudio.

func (CopyAudio) AsCopyVideo Uses

func (ca CopyAudio) AsCopyVideo() (*CopyVideo, bool)

AsCopyVideo is the BasicCodec implementation for CopyAudio.

func (CopyAudio) AsH264Video Uses

func (ca CopyAudio) AsH264Video() (*H264Video, bool)

AsH264Video is the BasicCodec implementation for CopyAudio.

func (CopyAudio) AsImage Uses

func (ca CopyAudio) AsImage() (*Image, bool)

AsImage is the BasicCodec implementation for CopyAudio.

func (CopyAudio) AsJpgImage Uses

func (ca CopyAudio) AsJpgImage() (*JpgImage, bool)

AsJpgImage is the BasicCodec implementation for CopyAudio.

func (CopyAudio) AsPngImage Uses

func (ca CopyAudio) AsPngImage() (*PngImage, bool)

AsPngImage is the BasicCodec implementation for CopyAudio.

func (CopyAudio) AsVideo Uses

func (ca CopyAudio) AsVideo() (*Video, bool)

AsVideo is the BasicCodec implementation for CopyAudio.

func (CopyAudio) MarshalJSON Uses

func (ca CopyAudio) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CopyAudio.

type CopyVideo Uses

type CopyVideo 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"`
}

CopyVideo a codec flag, which tells the encoder to copy the input video bitstream without re-encoding.

func (CopyVideo) AsAacAudio Uses

func (cv CopyVideo) AsAacAudio() (*AacAudio, bool)

AsAacAudio is the BasicCodec implementation for CopyVideo.

func (CopyVideo) AsAudio Uses

func (cv CopyVideo) AsAudio() (*Audio, bool)

AsAudio is the BasicCodec implementation for CopyVideo.

func (CopyVideo) AsBasicAudio Uses

func (cv CopyVideo) AsBasicAudio() (BasicAudio, bool)

AsBasicAudio is the BasicCodec implementation for CopyVideo.

func (CopyVideo) AsBasicCodec Uses

func (cv CopyVideo) AsBasicCodec() (BasicCodec, bool)

AsBasicCodec is the BasicCodec implementation for CopyVideo.

func (CopyVideo) AsBasicImage Uses

func (cv CopyVideo) AsBasicImage() (BasicImage, bool)

AsBasicImage is the BasicCodec implementation for CopyVideo.

func (CopyVideo) AsBasicVideo Uses

func (cv CopyVideo) AsBasicVideo() (BasicVideo, bool)

AsBasicVideo is the BasicCodec implementation for CopyVideo.

func (CopyVideo) AsCodec Uses

func (cv CopyVideo) AsCodec() (*Codec, bool)

AsCodec is the BasicCodec implementation for CopyVideo.

func (CopyVideo) AsCopyAudio Uses

func (cv CopyVideo) AsCopyAudio() (*CopyAudio, bool)

AsCopyAudio is the BasicCodec implementation for CopyVideo.

func (CopyVideo) AsCopyVideo Uses

func (cv CopyVideo) AsCopyVideo() (*CopyVideo, bool)

AsCopyVideo is the BasicCodec implementation for CopyVideo.

func (CopyVideo) AsH264Video Uses

func (cv CopyVideo) AsH264Video() (*H264Video, bool)

AsH264Video is the BasicCodec implementation for CopyVideo.

func (CopyVideo) AsImage Uses

func (cv CopyVideo) AsImage() (*Image, bool)

AsImage is the BasicCodec implementation for CopyVideo.

func (CopyVideo) AsJpgImage Uses

func (cv CopyVideo) AsJpgImage() (*JpgImage, bool)

AsJpgImage is the BasicCodec implementation for CopyVideo.

func (CopyVideo) AsPngImage Uses

func (cv CopyVideo) AsPngImage() (*PngImage, bool)

AsPngImage is the BasicCodec implementation for CopyVideo.

func (CopyVideo) AsVideo Uses

func (cv CopyVideo) AsVideo() (*Video, bool)

AsVideo is the BasicCodec implementation for CopyVideo.

func (CopyVideo) MarshalJSON Uses

func (cv CopyVideo) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CopyVideo.

type CrossSiteAccessPolicies Uses

type CrossSiteAccessPolicies struct {
    // ClientAccessPolicy - The content of clientaccesspolicy.xml used by Silverlight.
    ClientAccessPolicy *string `json:"clientAccessPolicy,omitempty"`
    // CrossDomainPolicy - The content of crossdomain.xml used by Silverlight.
    CrossDomainPolicy *string `json:"crossDomainPolicy,omitempty"`
}

CrossSiteAccessPolicies the client access policy.

type DefaultKey Uses

type DefaultKey struct {
    // Label - Label can be used to specify Content Key when creating a Streaming Locator
    Label *string `json:"label,omitempty"`
    // PolicyName - Policy used by Default Key
    PolicyName *string `json:"policyName,omitempty"`
}

DefaultKey class to specify properties of default content key for each encryption scheme

type Deinterlace Uses

type Deinterlace struct {
    // Parity - The field parity for de-interlacing, defaults to Auto. Possible values include: 'Auto', 'TopFieldFirst', 'BottomFieldFirst'
    Parity DeinterlaceParity `json:"parity,omitempty"`
    // Mode - The deinterlacing mode. Defaults to AutoPixelAdaptive. Possible values include: 'Off', 'AutoPixelAdaptive'
    Mode DeinterlaceMode `json:"mode,omitempty"`
}

Deinterlace describes the de-interlacing settings.

type DeinterlaceMode Uses

type DeinterlaceMode string

DeinterlaceMode enumerates the values for deinterlace mode.

const (
    // AutoPixelAdaptive Apply automatic pixel adaptive de-interlacing on each frame in the input video.
    AutoPixelAdaptive DeinterlaceMode = "AutoPixelAdaptive"
    // Off Disables de-interlacing of the source video.
    Off DeinterlaceMode = "Off"
)

func PossibleDeinterlaceModeValues Uses

func PossibleDeinterlaceModeValues() []DeinterlaceMode

PossibleDeinterlaceModeValues returns an array of possible values for the DeinterlaceMode const type.

type DeinterlaceParity Uses

type DeinterlaceParity string

DeinterlaceParity enumerates the values for deinterlace parity.

const (
    // Auto Automatically detect the order of fields
    Auto DeinterlaceParity = "Auto"
    // BottomFieldFirst Apply bottom field first processing of input video.
    BottomFieldFirst DeinterlaceParity = "BottomFieldFirst"
    // TopFieldFirst Apply top field first processing of input video.
    TopFieldFirst DeinterlaceParity = "TopFieldFirst"
)

func PossibleDeinterlaceParityValues Uses

func PossibleDeinterlaceParityValues() []DeinterlaceParity

PossibleDeinterlaceParityValues returns an array of possible values for the DeinterlaceParity const type.

type EnabledProtocols Uses

type EnabledProtocols struct {
    // Download - Enable Download protocol or not
    Download *bool `json:"download,omitempty"`
    // Dash - Enable DASH protocol or not
    Dash *bool `json:"dash,omitempty"`
    // Hls - Enable HLS protocol or not
    Hls *bool `json:"hls,omitempty"`
    // SmoothStreaming - Enable SmoothStreaming protocol or not
    SmoothStreaming *bool `json:"smoothStreaming,omitempty"`
}

EnabledProtocols class to specify which protocols are enabled

type EncoderNamedPreset Uses

type EncoderNamedPreset string

EncoderNamedPreset enumerates the values for encoder named preset.

const (
    // AACGoodQualityAudio Produces a single MP4 file containing only stereo audio encoded at 192 kbps.
    AACGoodQualityAudio EncoderNamedPreset = "AACGoodQualityAudio"
    // AdaptiveStreaming Produces a set of GOP aligned MP4 files with H.264 video and stereo AAC audio.
    // Auto-generates a bitrate ladder based on the input resolution and bitrate. The auto-generated preset
    // will never exceed the input resolution and bitrate. For example, if the input is 720p at 3 Mbps, output
    // will remain 720p at best, and will start at rates lower than 3 Mbps. The output will have video and
    // audio in separate MP4 files, which is optimal for adaptive streaming.
    AdaptiveStreaming EncoderNamedPreset = "AdaptiveStreaming"
    // H264MultipleBitrate1080p Produces a set of 8 GOP-aligned MP4 files, ranging from 6000 kbps to 400 kbps,
    // and stereo AAC audio. Resolution starts at 1080p and goes down to 360p.
    H264MultipleBitrate1080p EncoderNamedPreset = "H264MultipleBitrate1080p"
    // H264MultipleBitrate720p Produces a set of 6 GOP-aligned MP4 files, ranging from 3400 kbps to 400 kbps,
    // and stereo AAC audio. Resolution starts at 720p and goes down to 360p.
    H264MultipleBitrate720p EncoderNamedPreset = "H264MultipleBitrate720p"
    // H264MultipleBitrateSD Produces a set of 5 GOP-aligned MP4 files, ranging from 1600kbps to 400 kbps, and
    // stereo AAC audio. Resolution starts at 480p and goes down to 360p.
    H264MultipleBitrateSD EncoderNamedPreset = "H264MultipleBitrateSD"
)

func PossibleEncoderNamedPresetValues Uses

func PossibleEncoderNamedPresetValues() []EncoderNamedPreset

PossibleEncoderNamedPresetValues returns an array of possible values for the EncoderNamedPreset const type.

type EncryptionScheme Uses

type EncryptionScheme string

EncryptionScheme enumerates the values for encryption scheme.

const (
    // EncryptionSchemeCommonEncryptionCbcs CommonEncryptionCbcs scheme
    EncryptionSchemeCommonEncryptionCbcs EncryptionScheme = "CommonEncryptionCbcs"
    // EncryptionSchemeCommonEncryptionCenc CommonEncryptionCenc scheme
    EncryptionSchemeCommonEncryptionCenc EncryptionScheme = "CommonEncryptionCenc"
    // EncryptionSchemeEnvelopeEncryption EnvelopeEncryption scheme
    EncryptionSchemeEnvelopeEncryption EncryptionScheme = "EnvelopeEncryption"
    // EncryptionSchemeNoEncryption NoEncryption scheme
    EncryptionSchemeNoEncryption EncryptionScheme = "NoEncryption"
)

func PossibleEncryptionSchemeValues Uses

func PossibleEncryptionSchemeValues() []EncryptionScheme

PossibleEncryptionSchemeValues returns an array of possible values for the EncryptionScheme const type.

type EntityNameAvailabilityCheckOutput Uses

type EntityNameAvailabilityCheckOutput struct {
    autorest.Response `json:"-"`
    // NameAvailable - Specifies if the name is available.
    NameAvailable *bool `json:"nameAvailable,omitempty"`
    // Reason - Specifies the reason if the name is not available.
    Reason *string `json:"reason,omitempty"`
    // Message - Specifies the detailed reason if the name is not available.
    Message *string `json:"message,omitempty"`
}

EntityNameAvailabilityCheckOutput the response from the check name availability request.

type EntropyMode Uses

type EntropyMode string

EntropyMode enumerates the values for entropy mode.

const (
    // Cabac Context Adaptive Binary Arithmetic Coder (CABAC) entropy encoding.
    Cabac EntropyMode = "Cabac"
    // Cavlc Context Adaptive Variable Length Coder (CAVLC) entropy encoding.
    Cavlc EntropyMode = "Cavlc"
)

func PossibleEntropyModeValues Uses

func PossibleEntropyModeValues() []EntropyMode

PossibleEntropyModeValues returns an array of possible values for the EntropyMode const type.

type EnvelopeEncryption Uses

type EnvelopeEncryption 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"`
    // CustomKeyAcquisitionURLTemplate - KeyAcquisitionUrlTemplate is used to point to user specified service to delivery content keys
    CustomKeyAcquisitionURLTemplate *string `json:"customKeyAcquisitionUrlTemplate,omitempty"`
}

EnvelopeEncryption class for EnvelopeEncryption encryption scheme

type Filters Uses

type Filters struct {
    // Deinterlace - The de-interlacing settings.
    Deinterlace *Deinterlace `json:"deinterlace,omitempty"`
    // Rotation - The rotation, if any, to be applied to the input video, before it is encoded. Default is Auto. Possible values include: 'RotationAuto', 'RotationNone', 'RotationRotate0', 'RotationRotate90', 'RotationRotate180', 'RotationRotate270'
    Rotation Rotation `json:"rotation,omitempty"`
    // Crop - The parameters for the rectangular window with which to crop the input video.
    Crop *Rectangle `json:"crop,omitempty"`
    // Overlays - The properties of overlays to be applied to the input video. These could be audio, image or video overlays.
    Overlays *[]BasicOverlay `json:"overlays,omitempty"`
}

Filters describes all the filtering operations, such as de-interlacing, rotation etc. that are to be applied to the input media before encoding.

func (*Filters) UnmarshalJSON Uses

func (f *Filters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Filters struct.

type Format Uses

type Format struct {
    // FilenamePattern - The pattern of the file names for the generated output files. The following macros are supported in the file name: {Basename} - The base name of the input video {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted macros will be collapsed and removed from the filename.
    FilenamePattern *string `json:"filenamePattern,omitempty"`
    // OdataType - Possible values include: 'OdataTypeFormat', 'OdataTypeMicrosoftMediaImageFormat', 'OdataTypeMicrosoftMediaJpgFormat', 'OdataTypeMicrosoftMediaPngFormat', 'OdataTypeMicrosoftMediaMultiBitrateFormat', 'OdataTypeMicrosoftMediaMp4Format', 'OdataTypeMicrosoftMediaTransportStreamFormat'
    OdataType OdataTypeBasicFormat `json:"@odata.type,omitempty"`
}

Format base class for output.

func (Format) AsBasicFormat Uses

func (f Format) AsBasicFormat() (BasicFormat, bool)

AsBasicFormat is the BasicFormat implementation for Format.

func (Format) AsBasicImageFormat Uses

func (f Format) AsBasicImageFormat() (BasicImageFormat, bool)

AsBasicImageFormat is the BasicFormat implementation for Format.

func (Format) AsBasicMultiBitrateFormat Uses

func (f Format) AsBasicMultiBitrateFormat() (BasicMultiBitrateFormat, bool)

AsBasicMultiBitrateFormat is the BasicFormat implementation for Format.

func (Format) AsFormat Uses

func (f Format) AsFormat() (*Format, bool)

AsFormat is the BasicFormat implementation for Format.

func (Format) AsImageFormat Uses

func (f Format) AsImageFormat() (*ImageFormat, bool)

AsImageFormat is the BasicFormat implementation for Format.

func (Format) AsJpgFormat Uses

func (f Format) AsJpgFormat() (*JpgFormat, bool)

AsJpgFormat is the BasicFormat implementation for Format.

func (Format) AsMp4Format Uses

func (f Format) AsMp4Format() (*Mp4Format, bool)

AsMp4Format is the BasicFormat implementation for Format.

func (Format) AsMultiBitrateFormat Uses

func (f Format) AsMultiBitrateFormat() (*MultiBitrateFormat, bool)

AsMultiBitrateFormat is the BasicFormat implementation for Format.

func (Format) AsPngFormat Uses

func (f Format) AsPngFormat() (*PngFormat, bool)

AsPngFormat is the BasicFormat implementation for Format.

func (Format) AsTransportStreamFormat Uses

func (f Format) AsTransportStreamFormat() (*TransportStreamFormat, bool)

AsTransportStreamFormat is the BasicFormat implementation for Format.

func (Format) MarshalJSON Uses

func (f Format) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Format.

type H264Complexity Uses

type H264Complexity string

H264Complexity enumerates the values for h264 complexity.

const (
    // Balanced Tells the encoder to use settings that achieve a balance between speed and quality.
    Balanced H264Complexity = "Balanced"
    // Quality Tells the encoder to use settings that are optimized to produce higher quality output at the
    // expense of slower overall encode time.
    Quality H264Complexity = "Quality"
    // Speed Tells the encoder to use settings that are optimized for faster encoding. Quality is sacrificed to
    // decrease encoding time.
    Speed H264Complexity = "Speed"
)

func PossibleH264ComplexityValues Uses

func PossibleH264ComplexityValues() []H264Complexity

PossibleH264ComplexityValues returns an array of possible values for the H264Complexity const type.

type H264Layer Uses

type H264Layer struct {
    // Profile - Which profile of the H.264 standard should be used when encoding this layer. Default is Auto. Possible values include: 'H264VideoProfileAuto', 'H264VideoProfileBaseline', 'H264VideoProfileMain', 'H264VideoProfileHigh', 'H264VideoProfileHigh422', 'H264VideoProfileHigh444'
    Profile H264VideoProfile `json:"profile,omitempty"`
    // Level - Which level of the H.264 standard should be used when encoding this layer. The value can be Auto, or a number that matches the H.264 profile. If not specified, the default is Auto, which lets the encoder choose the Level that is appropriate for this layer.
    Level *string `json:"level,omitempty"`
    // BufferWindow - The VBV buffer window length. The value should be in ISO 8601 format. The value should be in the range [0.1-100] seconds. The default is 5 seconds (for example, PT5S).
    BufferWindow *string `json:"bufferWindow,omitempty"`
    // ReferenceFrames - The number of reference frames to be used when encoding this layer. If not specified, the encoder determines an appropriate number based on the encoder complexity setting.
    ReferenceFrames *int32 `json:"referenceFrames,omitempty"`
    // EntropyMode - The entropy mode to be used for this layer. If not specified, the encoder chooses the mode that is appropriate for the profile and level. Possible values include: 'Cabac', 'Cavlc'
    EntropyMode EntropyMode `json:"entropyMode,omitempty"`
    // Bitrate - The average bitrate in bits per second at which to encode the input video when generating this layer. This is a required field.
    Bitrate *int32 `json:"bitrate,omitempty"`
    // MaxBitrate - The maximum bitrate (in bits per second), at which the VBV buffer should be assumed to refill. If not specified, defaults to the same value as bitrate.
    MaxBitrate *int32 `json:"maxBitrate,omitempty"`
    // BFrames - The number of B-frames to be used when encoding this layer.  If not specified, the encoder chooses an appropriate number based on the video profile and level.
    BFrames *int32 `json:"bFrames,omitempty"`
    // FrameRate - The frame rate (in frames per second) at which to encode this layer. The value can be in the form of M/N where M and N are integers (For example, 30000/1001), or in the form of a number (For example, 30, or 29.97). The encoder enforces constraints on allowed frame rates based on the profile and level. If it is not specified, the encoder will use the same frame rate as the input video.
    FrameRate *string `json:"frameRate,omitempty"`
    // Slices - The number of slices to be used when encoding this layer. If not specified, default is zero, which means that encoder will use a single slice for each frame.
    Slices *int32 `json:"slices,omitempty"`
    // AdaptiveBFrame - Whether or not adaptive B-frames are to be used when encoding this layer. If not specified, the encoder will turn it on whenever the video profile permits its use.
    AdaptiveBFrame *bool `json:"adaptiveBFrame,omitempty"`
    // Width - The width of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in width as the input.
    Width *string `json:"width,omitempty"`
    // Height - The height of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in height as the input.
    Height *string `json:"height,omitempty"`
    // Label - The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file.
    Label *string `json:"label,omitempty"`
    // OdataType - Possible values include: 'OdataTypeLayer', 'OdataTypeMicrosoftMediaVideoLayer', 'OdataTypeMicrosoftMediaH264Layer', 'OdataTypeMicrosoftMediaJpgLayer', 'OdataTypeMicrosoftMediaPngLayer'
    OdataType OdataTypeBasicLayer `json:"@odata.type,omitempty"`
}

H264Layer describes the settings to be used when encoding the input video into a desired output bitrate layer with the H.264 video codec.

func (H264Layer) AsBasicLayer Uses

func (hl H264Layer) AsBasicLayer() (BasicLayer, bool)

AsBasicLayer is the BasicLayer implementation for H264Layer.

func (H264Layer) AsBasicVideoLayer Uses

func (hl H264Layer) AsBasicVideoLayer() (BasicVideoLayer, bool)

AsBasicVideoLayer is the BasicLayer implementation for H264Layer.

func (H264Layer) AsH264Layer Uses

func (hl H264Layer) AsH264Layer() (*H264Layer, bool)

AsH264Layer is the BasicLayer implementation for H264Layer.

func (H264Layer) AsJpgLayer Uses

func (hl H264Layer) AsJpgLayer() (*JpgLayer, bool)

AsJpgLayer is the BasicLayer implementation for H264Layer.

func (H264Layer) AsLayer Uses

func (hl H264Layer) AsLayer() (*Layer, bool)

AsLayer is the BasicLayer implementation for H264Layer.

func (H264Layer) AsPngLayer Uses

func (hl H264Layer) AsPngLayer() (*PngLayer, bool)

AsPngLayer is the BasicLayer implementation for H264Layer.

func (H264Layer) AsVideoLayer Uses

func (hl H264Layer) AsVideoLayer() (*VideoLayer, bool)

AsVideoLayer is the BasicLayer implementation for H264Layer.

func (H264Layer) MarshalJSON Uses

func (hl H264Layer) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for H264Layer.

type H264Video Uses

type H264Video struct {
    // SceneChangeDetection - Whether or not the encoder should insert key frames at scene changes. If not specified, the default is false. This flag should be set to true only when the encoder is being configured to produce a single output video.
    SceneChangeDetection *bool `json:"sceneChangeDetection,omitempty"`
    // Complexity - Tells the encoder how to choose its encoding settings. The default value is Balanced. Possible values include: 'Speed', 'Balanced', 'Quality'
    Complexity H264Complexity `json:"complexity,omitempty"`
    // Layers - The collection of output H.264 layers to be produced by the encoder.
    Layers *[]H264Layer `json:"layers,omitempty"`
    // KeyFrameInterval - The distance between two key frames, thereby defining a group of pictures (GOP). The value should be a non-zero integer in the range [1, 30] seconds, specified in ISO 8601 format. The default is 2 seconds (PT2S).
    KeyFrameInterval *string `json:"keyFrameInterval,omitempty"`
    // StretchMode - The resizing mode - how the input video will be resized to fit the desired output resolution(s). Default is AutoSize. Possible values include: 'StretchModeNone', 'StretchModeAutoSize', 'StretchModeAutoFit'
    StretchMode StretchMode `json:"stretchMode,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"`
}

H264Video describes all the properties for encoding a video with the H.264 codec.

func (H264Video) AsAacAudio Uses

func (hv H264Video) AsAacAudio() (*AacAudio, bool)

AsAacAudio is the BasicCodec implementation for H264Video.

func (H264Video) AsAudio Uses

func (hv H264Video) AsAudio() (*Audio, bool)

AsAudio is the BasicCodec implementation for H264Video.

func (H264Video) AsBasicAudio Uses

func (hv H264Video) AsBasicAudio() (BasicAudio, bool)

AsBasicAudio is the BasicCodec implementation for H264Video.

func (H264Video) AsBasicCodec Uses

func (hv H264Video) AsBasicCodec() (BasicCodec, bool)

AsBasicCodec is the BasicCodec implementation for H264Video.

func (H264Video) AsBasicImage Uses

func (hv H264Video) AsBasicImage() (BasicImage, bool)

AsBasicImage is the BasicCodec implementation for H264Video.

func (H264Video) AsBasicVideo Uses

func (hv H264Video) AsBasicVideo() (BasicVideo, bool)

AsBasicVideo is the BasicCodec implementation for H264Video.

func (H264Video) AsCodec Uses

func (hv H264Video) AsCodec() (*Codec, bool)

AsCodec is the BasicCodec implementation for H264Video.

func (H264Video) AsCopyAudio Uses

func (hv H264Video) AsCopyAudio() (*CopyAudio, bool)

AsCopyAudio is the BasicCodec implementation for H264Video.

func (H264Video) AsCopyVideo Uses

func (hv H264Video) AsCopyVideo() (*CopyVideo, bool)

AsCopyVideo is the BasicCodec implementation for H264Video.

func (H264Video) AsH264Video Uses

func (hv H264Video) AsH264Video() (*H264Video, bool)

AsH264Video is the BasicCodec implementation for H264Video.

func (H264Video) AsImage Uses

func (hv H264Video) AsImage() (*Image, bool)

AsImage is the BasicCodec implementation for H264Video.

func (H264Video) AsJpgImage Uses

func (hv H264Video) AsJpgImage() (*JpgImage, bool)

AsJpgImage is the BasicCodec implementation for H264Video.

func (H264Video) AsPngImage Uses

func (hv H264Video) AsPngImage() (*PngImage, bool)

AsPngImage is the BasicCodec implementation for H264Video.

func (H264Video) AsVideo Uses

func (hv H264Video) AsVideo() (*Video, bool)

AsVideo is the BasicCodec implementation for H264Video.

func (H264Video) MarshalJSON Uses

func (hv H264Video) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for H264Video.

type H264VideoProfile Uses

type H264VideoProfile string

H264VideoProfile enumerates the values for h264 video profile.

const (
    // H264VideoProfileAuto Tells the encoder to automatically determine the appropriate H.264 profile.
    H264VideoProfileAuto H264VideoProfile = "Auto"
    // H264VideoProfileBaseline Baseline profile
    H264VideoProfileBaseline H264VideoProfile = "Baseline"
    // H264VideoProfileHigh High profile.
    H264VideoProfileHigh H264VideoProfile = "High"
    // H264VideoProfileHigh422 High 4:2:2 profile.
    H264VideoProfileHigh422 H264VideoProfile = "High422"
    // H264VideoProfileHigh444 High 4:4:4 predictive profile.
    H264VideoProfileHigh444 H264VideoProfile = "High444"
    // H264VideoProfileMain Main profile
    H264VideoProfileMain H264VideoProfile = "Main"
)

func PossibleH264VideoProfileValues Uses

func PossibleH264VideoProfileValues() []H264VideoProfile

PossibleH264VideoProfileValues returns an array of possible values for the H264VideoProfile const type.

type Hls Uses

type Hls struct {
    // FragmentsPerTsSegment - The amount of fragments per HTTP Live Streaming (HLS) segment.
    FragmentsPerTsSegment *int32 `json:"fragmentsPerTsSegment,omitempty"`
}

Hls the HLS configuration.

type IPAccessControl Uses

type IPAccessControl struct {
    // Allow - The IP allow list.
    Allow *[]IPRange `json:"allow,omitempty"`
}

IPAccessControl the IP access control.

type IPRange Uses

type IPRange struct {
    // Name - The friendly name for the IP address range.
    Name *string `json:"name,omitempty"`
    // Address - The IP address.
    Address *string `json:"address,omitempty"`
    // SubnetPrefixLength - The subnet mask prefix length (see CIDR notation).
    SubnetPrefixLength *int32 `json:"subnetPrefixLength,omitempty"`
}

IPRange the IP address range in the CIDR scheme.

type Image Uses

type Image struct {
    // Start - The position in the input video from where to start generating thumbnails. The value can be in absolute timestamp (ISO 8601, e.g: PT05S), or a frame count (For example, 10 for the 10th frame), or a relative value (For example, 1%). Also supports a macro {Best}, which tells the encoder to select the best thumbnail from the first few seconds of the video.
    Start *string `json:"start,omitempty"`
    // Step - The intervals at which thumbnails are generated. The value can be in absolute timestamp (ISO 8601, e.g: PT05S for one image every 5 seconds), or a frame count (For example, 30 for every 30 frames), or a relative value (For example, 1%).
    Step *string `json:"step,omitempty"`
    // Range - The position in the input video at which to stop generating thumbnails. The value can be in absolute timestamp (ISO 8601, e.g: PT5M30S to stop at 5 minutes and 30 seconds), or a frame count (For example, 300 to stop at the 300th frame), or a relative value (For example, 100%).
    Range *string `json:"range,omitempty"`
    // KeyFrameInterval - The distance between two key frames, thereby defining a group of pictures (GOP). The value should be a non-zero integer in the range [1, 30] seconds, specified in ISO 8601 format. The default is 2 seconds (PT2S).
    KeyFrameInterval *string `json:"keyFrameInterval,omitempty"`
    // StretchMode - The resizing mode - how the input video will be resized to fit the desired output resolution(s). Default is AutoSize. Possible values include: 'StretchModeNone', 'StretchModeAutoSize', 'StretchModeAutoFit'
    StretchMode StretchMode `json:"stretchMode,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"`
}

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

func (Image) AsAacAudio Uses

func (i Image) AsAacAudio() (*AacAudio, bool)

AsAacAudio is the BasicCodec implementation for Image.

func (Image) AsAudio Uses

func (i Image) AsAudio() (*Audio, bool)

AsAudio is the BasicCodec implementation for Image.

func (Image) AsBasicAudio Uses

func (i Image) AsBasicAudio() (BasicAudio, bool)

AsBasicAudio is the BasicCodec implementation for Image.

func (Image) AsBasicCodec Uses

func (i Image) AsBasicCodec() (BasicCodec, bool)

AsBasicCodec is the BasicCodec implementation for Image.

func (Image) AsBasicImage Uses

func (i Image) AsBasicImage() (BasicImage, bool)

AsBasicImage is the BasicCodec implementation for Image.

func (Image) AsBasicVideo Uses

func (i Image) AsBasicVideo() (BasicVideo, bool)

AsBasicVideo is the BasicCodec implementation for Image.

func (Image) AsCodec Uses

func (i Image) AsCodec() (*Codec, bool)

AsCodec is the BasicCodec implementation for Image.

func (Image) AsCopyAudio Uses

func (i Image) AsCopyAudio() (*CopyAudio, bool)

AsCopyAudio is the BasicCodec implementation for Image.

func (Image) AsCopyVideo Uses

func (i Image) AsCopyVideo() (*CopyVideo, bool)

AsCopyVideo is the BasicCodec implementation for Image.

func (Image) AsH264Video Uses

func (i Image) AsH264Video() (*H264Video, bool)

AsH264Video is the BasicCodec implementation for Image.

func (Image) AsImage Uses

func (i Image) AsImage() (*Image, bool)

AsImage is the BasicCodec implementation for Image.

func (Image) AsJpgImage Uses

func (i Image) AsJpgImage() (*JpgImage, bool)

AsJpgImage is the BasicCodec implementation for Image.

func (Image) AsPngImage Uses

func (i Image) AsPngImage() (*PngImage, bool)

AsPngImage is the BasicCodec implementation for Image.

func (Image) AsVideo Uses

func (i Image) AsVideo() (*Video, bool)

AsVideo is the BasicCodec implementation for Image.

func (Image) MarshalJSON Uses

func (i Image) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Image.

type ImageFormat Uses

type ImageFormat struct {
    // FilenamePattern - The pattern of the file names for the generated output files. The following macros are supported in the file name: {Basename} - The base name of the input video {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted macros will be collapsed and removed from the filename.
    FilenamePattern *string `json:"filenamePattern,omitempty"`
    // OdataType - Possible values include: 'OdataTypeFormat', 'OdataTypeMicrosoftMediaImageFormat', 'OdataTypeMicrosoftMediaJpgFormat', 'OdataTypeMicrosoftMediaPngFormat', 'OdataTypeMicrosoftMediaMultiBitrateFormat', 'OdataTypeMicrosoftMediaMp4Format', 'OdataTypeMicrosoftMediaTransportStreamFormat'
    OdataType OdataTypeBasicFormat `json:"@odata.type,omitempty"`
}

ImageFormat describes the properties for an output image file.

func (ImageFormat) AsBasicFormat Uses

func (ifVar ImageFormat) AsBasicFormat() (BasicFormat, bool)

AsBasicFormat is the BasicFormat implementation for ImageFormat.

func (ImageFormat) AsBasicImageFormat Uses

func (ifVar ImageFormat) AsBasicImageFormat() (BasicImageFormat, bool)

AsBasicImageFormat is the BasicFormat implementation for ImageFormat.

func (ImageFormat) AsBasicMultiBitrateFormat Uses

func (ifVar ImageFormat) AsBasicMultiBitrateFormat() (BasicMultiBitrateFormat, bool)

AsBasicMultiBitrateFormat is the BasicFormat implementation for ImageFormat.

func (ImageFormat) AsFormat Uses

func (ifVar ImageFormat) AsFormat() (*Format, bool)

AsFormat is the BasicFormat implementation for ImageFormat.

func (ImageFormat) AsImageFormat Uses

func (ifVar ImageFormat) AsImageFormat() (*ImageFormat, bool)

AsImageFormat is the BasicFormat implementation for ImageFormat.

func (ImageFormat) AsJpgFormat Uses

func (ifVar ImageFormat) AsJpgFormat() (*JpgFormat, bool)

AsJpgFormat is the BasicFormat implementation for ImageFormat.

func (ImageFormat) AsMp4Format Uses

func (ifVar ImageFormat) AsMp4Format() (*Mp4Format, bool)

AsMp4Format is the BasicFormat implementation for ImageFormat.

func (ImageFormat) AsMultiBitrateFormat Uses

func (ifVar ImageFormat) AsMultiBitrateFormat() (*MultiBitrateFormat, bool)

AsMultiBitrateFormat is the BasicFormat implementation for ImageFormat.

func (ImageFormat) AsPngFormat Uses

func (ifVar ImageFormat) AsPngFormat() (*PngFormat, bool)

AsPngFormat is the BasicFormat implementation for ImageFormat.

func (ImageFormat) AsTransportStreamFormat Uses

func (ifVar ImageFormat) AsTransportStreamFormat() (*TransportStreamFormat, bool)

AsTransportStreamFormat is the BasicFormat implementation for ImageFormat.

func (ImageFormat) MarshalJSON Uses

func (ifVar ImageFormat) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ImageFormat.

type Job Uses

type Job struct {
    autorest.Response `json:"-"`
    // JobProperties - The resource properties.
    *JobProperties `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"`
}

Job a Job resource type. The progress and state can be obtained by polling a Job or subscribing to events using EventGrid.

func (Job) MarshalJSON Uses

func (j Job) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Job.

func (*Job) UnmarshalJSON Uses

func (j *Job) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Job struct.

type JobCollection Uses

type JobCollection struct {
    autorest.Response `json:"-"`
    // Value - A collection of Job items.
    Value *[]Job `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"`
}

JobCollection a collection of Job items.

func (JobCollection) IsEmpty Uses

func (jc JobCollection) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type JobCollectionIterator Uses

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

JobCollectionIterator provides access to a complete listing of Job values.

func NewJobCollectionIterator Uses

func NewJobCollectionIterator(page JobCollectionPage) JobCollectionIterator

Creates a new instance of the JobCollectionIterator type.

func (*JobCollectionIterator) Next Uses

func (iter *JobCollectionIterator) 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 (*JobCollectionIterator) NextWithContext Uses

func (iter *JobCollectionIterator) 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 (JobCollectionIterator) NotDone Uses

func (iter JobCollectionIterator) NotDone() bool

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

func (JobCollectionIterator) Response Uses

func (iter JobCollectionIterator) Response() JobCollection

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

func (JobCollectionIterator) Value Uses

func (iter JobCollectionIterator) Value() Job

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

type JobCollectionPage Uses

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

JobCollectionPage contains a page of Job values.

func NewJobCollectionPage Uses

func NewJobCollectionPage(getNextPage func(context.Context, JobCollection) (JobCollection, error)) JobCollectionPage

Creates a new instance of the JobCollectionPage type.

func (*JobCollectionPage) Next Uses

func (page *JobCollectionPage) 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 (*JobCollectionPage) NextWithContext Uses

func (page *JobCollectionPage) 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 (JobCollectionPage) NotDone Uses

func (page JobCollectionPage) NotDone() bool

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

func (JobCollectionPage) Response Uses

func (page JobCollectionPage) Response() JobCollection

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

func (JobCollectionPage) Values Uses

func (page JobCollectionPage) Values() []Job

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

type JobError Uses

type JobError struct {
    // Code - READ-ONLY; Error code describing the error. Possible values include: 'ServiceError', 'ServiceTransientError', 'DownloadNotAccessible', 'DownloadTransientError', 'UploadNotAccessible', 'UploadTransientError', 'ConfigurationUnsupported', 'ContentMalformed', 'ContentUnsupported'
    Code JobErrorCode `json:"code,omitempty"`
    // Message - READ-ONLY; A human-readable language-dependent representation of the error.
    Message *string `json:"message,omitempty"`
    // Category - READ-ONLY; Helps with categorization of errors. Possible values include: 'JobErrorCategoryService', 'JobErrorCategoryDownload', 'JobErrorCategoryUpload', 'JobErrorCategoryConfiguration', 'JobErrorCategoryContent'
    Category JobErrorCategory `json:"category,omitempty"`
    // Retry - READ-ONLY; Indicates that it may be possible to retry the Job. If retry is unsuccessful, please contact Azure support via Azure Portal. Possible values include: 'DoNotRetry', 'MayRetry'
    Retry JobRetry `json:"retry,omitempty"`
    // Details - READ-ONLY; An array of details about specific errors that led to this reported error.
    Details *[]JobErrorDetail `json:"details,omitempty"`
}

JobError details of JobOutput errors.

type JobErrorCategory Uses

type JobErrorCategory string

JobErrorCategory enumerates the values for job error category.

const (
    // JobErrorCategoryConfiguration The error is configuration related.
    JobErrorCategoryConfiguration JobErrorCategory = "Configuration"
    // JobErrorCategoryContent The error is related to data in the input files.
    JobErrorCategoryContent JobErrorCategory = "Content"
    // JobErrorCategoryDownload The error is download related.
    JobErrorCategoryDownload JobErrorCategory = "Download"
    // JobErrorCategoryService The error is service related.
    JobErrorCategoryService JobErrorCategory = "Service"
    // JobErrorCategoryUpload The error is upload related.
    JobErrorCategoryUpload JobErrorCategory = "Upload"
)

func PossibleJobErrorCategoryValues Uses

func PossibleJobErrorCategoryValues() []JobErrorCategory

PossibleJobErrorCategoryValues returns an array of possible values for the JobErrorCategory const type.

type JobErrorCode Uses

type JobErrorCode string

JobErrorCode enumerates the values for job error code.

const (
    // ConfigurationUnsupported There was a problem with the combination of input files and the configuration
    // settings applied, fix the configuration settings and retry with the same input, or change input to match
    // the configuration.
    ConfigurationUnsupported JobErrorCode = "ConfigurationUnsupported"
    // ContentMalformed There was a problem with the input content (for example: zero byte files, or
    // corrupt/non-decodable files), check the input files.
    ContentMalformed JobErrorCode = "ContentMalformed"
    // ContentUnsupported There was a problem with the format of the input (not valid media file, or an
    // unsupported file/codec), check the validity of the input files.
    ContentUnsupported JobErrorCode = "ContentUnsupported"
    // DownloadNotAccessible While trying to download the input files, the files were not accessible, please
    // check the availability of the source.
    DownloadNotAccessible JobErrorCode = "DownloadNotAccessible"
    // DownloadTransientError While trying to download the input files, there was an issue during transfer
    // (storage service, network errors), see details and check your source.
    DownloadTransientError JobErrorCode = "DownloadTransientError"
    // ServiceError Fatal service error, please contact support.
    ServiceError JobErrorCode = "ServiceError"
    // ServiceTransientError Transient error, please retry, if retry is unsuccessful, please contact support.
    ServiceTransientError JobErrorCode = "ServiceTransientError"
    // UploadNotAccessible While trying to upload the output files, the destination was not reachable, please
    // check the availability of the destination.
    UploadNotAccessible JobErrorCode = "UploadNotAccessible"
    // UploadTransientError While trying to upload the output files, there was an issue during transfer
    // (storage service, network errors), see details and check your destination.
    UploadTransientError JobErrorCode = "UploadTransientError"
)

func PossibleJobErrorCodeValues Uses

func PossibleJobErrorCodeValues() []JobErrorCode

PossibleJobErrorCodeValues returns an array of possible values for the JobErrorCode const type.

type JobErrorDetail Uses

type JobErrorDetail struct {
    // Code - READ-ONLY; Code describing the error detail.
    Code *string `json:"code,omitempty"`
    // Message - READ-ONLY; A human-readable representation of the error.
    Message *string `json:"message,omitempty"`
}

JobErrorDetail details of JobOutput errors.

type JobInput Uses

type JobInput struct {
    // Label - A label that is assigned to a JobInput, that is used to satisfy a reference used in the Transform. For example, a Transform can be authored so as to take an image file with the label 'xyz' and apply it as an overlay onto the input video before it is encoded. When submitting a Job, exactly one of the JobInputs should be the image file, and it should have the label 'xyz'.
    Label *string `json:"label,omitempty"`
    // OdataType - Possible values include: 'OdataTypeJobInput', 'OdataTypeMicrosoftMediaJobInputClip', 'OdataTypeMicrosoftMediaJobInputs', 'OdataTypeMicrosoftMediaJobInputAsset', 'OdataTypeMicrosoftMediaJobInputHTTP'
    OdataType OdataTypeBasicJobInput `json:"@odata.type,omitempty"`
}

JobInput base class for inputs to a Job.

func (JobInput) AsBasicJobInput Uses

func (ji JobInput) AsBasicJobInput() (BasicJobInput, bool)

AsBasicJobInput is the BasicJobInput implementation for JobInput.

func (JobInput) AsBasicJobInputClip Uses

func (ji JobInput) AsBasicJobInputClip() (BasicJobInputClip, bool)

AsBasicJobInputClip is the BasicJobInput implementation for JobInput.

func (JobInput) AsJobInput Uses

func (ji JobInput) AsJobInput() (*JobInput, bool)

AsJobInput is the BasicJobInput implementation for JobInput.

func (JobInput) AsJobInputAsset Uses

func (ji JobInput) AsJobInputAsset() (*JobInputAsset, bool)

AsJobInputAsset is the BasicJobInput implementation for JobInput.

func (JobInput) AsJobInputClip Uses

func (ji JobInput) AsJobInputClip() (*JobInputClip, bool)

AsJobInputClip is the BasicJobInput implementation for JobInput.

func (JobInput) AsJobInputHTTP Uses

func (ji JobInput) AsJobInputHTTP() (*JobInputHTTP, bool)

AsJobInputHTTP is the BasicJobInput implementation for JobInput.

func (JobInput) AsJobInputs Uses

func (ji JobInput) AsJobInputs() (*JobInputs, bool)

AsJobInputs is the BasicJobInput implementation for JobInput.

func (JobInput) MarshalJSON Uses

func (ji JobInput) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for JobInput.

type JobInputAsset Uses

type JobInputAsset struct {
    // AssetName - The name of the input Asset.
    AssetName *string `json:"assetName,omitempty"`
    // Files - List of files. Required for JobInputHttp.
    Files *[]string `json:"files,omitempty"`
    // Label - A label that is assigned to a JobInput, that is used to satisfy a reference used in the Transform. For example, a Transform can be authored so as to take an image file with the label 'xyz' and apply it as an overlay onto the input video before it is encoded. When submitting a Job, exactly one of the JobInputs should be the image file, and it should have the label 'xyz'.
    Label *string `json:"label,omitempty"`
    // OdataType - Possible values include: 'OdataTypeJobInput', 'OdataTypeMicrosoftMediaJobInputClip', 'OdataTypeMicrosoftMediaJobInputs', 'OdataTypeMicrosoftMediaJobInputAsset', 'OdataTypeMicrosoftMediaJobInputHTTP'
    OdataType OdataTypeBasicJobInput `json:"@odata.type,omitempty"`
}

JobInputAsset represents an Asset for input into a Job.

func (JobInputAsset) AsBasicJobInput Uses

func (jia JobInputAsset) AsBasicJobInput() (BasicJobInput, bool)

AsBasicJobInput is the BasicJobInput implementation for JobInputAsset.

func (JobInputAsset) AsBasicJobInputClip Uses

func (jia JobInputAsset) AsBasicJobInputClip() (BasicJobInputClip, bool)

AsBasicJobInputClip is the BasicJobInput implementation for JobInputAsset.

func (JobInputAsset) AsJobInput Uses

func (jia JobInputAsset) AsJobInput() (*JobInput, bool)

AsJobInput is the BasicJobInput implementation for JobInputAsset.

func (JobInputAsset) AsJobInputAsset Uses

func (jia JobInputAsset) AsJobInputAsset() (*JobInputAsset, bool)

AsJobInputAsset is the BasicJobInput implementation for JobInputAsset.

func (JobInputAsset) AsJobInputClip Uses

func (jia JobInputAsset) AsJobInputClip() (*JobInputClip, bool)

AsJobInputClip is the BasicJobInput implementation for JobInputAsset.

func (JobInputAsset) AsJobInputHTTP Uses

func (jia JobInputAsset) AsJobInputHTTP() (*JobInputHTTP, bool)

AsJobInputHTTP is the BasicJobInput implementation for JobInputAsset.

func (JobInputAsset) AsJobInputs Uses

func (jia JobInputAsset) AsJobInputs() (*JobInputs, bool)

AsJobInputs is the BasicJobInput implementation for JobInputAsset.

func (JobInputAsset) MarshalJSON Uses

func (jia JobInputAsset) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for JobInputAsset.

type JobInputClip Uses

type JobInputClip struct {
    // Files - List of files. Required for JobInputHttp.
    Files *[]string `json:"files,omitempty"`
    // Label - A label that is assigned to a JobInput, that is used to satisfy a reference used in the Transform. For example, a Transform can be authored so as to take an image file with the label 'xyz' and apply it as an overlay onto the input video before it is encoded. When submitting a Job, exactly one of the JobInputs should be the image file, and it should have the label 'xyz'.
    Label *string `json:"label,omitempty"`
    // OdataType - Possible values include: 'OdataTypeJobInput', 'OdataTypeMicrosoftMediaJobInputClip', 'OdataTypeMicrosoftMediaJobInputs', 'OdataTypeMicrosoftMediaJobInputAsset', 'OdataTypeMicrosoftMediaJobInputHTTP'
    OdataType OdataTypeBasicJobInput `json:"@odata.type,omitempty"`
}

JobInputClip represents input files for a Job.

func (JobInputClip) AsBasicJobInput Uses

func (jic JobInputClip) AsBasicJobInput() (BasicJobInput, bool)

AsBasicJobInput is the BasicJobInput implementation for JobInputClip.

func (JobInputClip) AsBasicJobInputClip Uses

func (jic JobInputClip) AsBasicJobInputClip() (BasicJobInputClip, bool)

AsBasicJobInputClip is the BasicJobInput implementation for JobInputClip.

func (JobInputClip) AsJobInput Uses

func (jic JobInputClip) AsJobInput() (*JobInput, bool)

AsJobInput is the BasicJobInput implementation for JobInputClip.

func (JobInputClip) AsJobInputAsset Uses

func (jic JobInputClip) AsJobInputAsset() (*JobInputAsset, bool)

AsJobInputAsset is the BasicJobInput implementation for JobInputClip.

func (JobInputClip) AsJobInputClip Uses

func (jic JobInputClip) AsJobInputClip() (*JobInputClip, bool)

AsJobInputClip is the BasicJobInput implementation for JobInputClip.

func (JobInputClip) AsJobInputHTTP Uses

func (jic JobInputClip) AsJobInputHTTP() (*JobInputHTTP, bool)

AsJobInputHTTP is the BasicJobInput implementation for JobInputClip.

func (JobInputClip) AsJobInputs Uses

func (jic JobInputClip) AsJobInputs() (*JobInputs, bool)

AsJobInputs is the BasicJobInput implementation for JobInputClip.

func (JobInputClip) MarshalJSON Uses

func (jic JobInputClip) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for JobInputClip.

type JobInputHTTP Uses

type JobInputHTTP struct {
    // BaseURI - Base URI for HTTPS job input. It will be concatenated with provided file names.   If no base uri is given, then the provided file list is assumed to be fully qualified uris.
    BaseURI *string `json:"baseUri,omitempty"`
    // Files - List of files. Required for JobInputHttp.
    Files *[]string `json:"files,omitempty"`
    // Label - A label that is assigned to a JobInput, that is used to satisfy a reference used in the Transform. For example, a Transform can be authored so as to take an image file with the label 'xyz' and apply it as an overlay onto the input video before it is encoded. When submitting a Job, exactly one of the JobInputs should be the image file, and it should have the label 'xyz'.
    Label *string `json:"label,omitempty"`
    // OdataType - Possible values include: 'OdataTypeJobInput', 'OdataTypeMicrosoftMediaJobInputClip', 'OdataTypeMicrosoftMediaJobInputs', 'OdataTypeMicrosoftMediaJobInputAsset', 'OdataTypeMicrosoftMediaJobInputHTTP'
    OdataType OdataTypeBasicJobInput `json:"@odata.type,omitempty"`
}

JobInputHTTP represents HTTPS job input.

func (JobInputHTTP) AsBasicJobInput Uses

func (jih JobInputHTTP) AsBasicJobInput() (BasicJobInput, bool)

AsBasicJobInput is the BasicJobInput implementation for JobInputHTTP.

func (JobInputHTTP) AsBasicJobInputClip Uses

func (jih JobInputHTTP) AsBasicJobInputClip() (BasicJobInputClip, bool)

AsBasicJobInputClip is the BasicJobInput implementation for JobInputHTTP.

func (JobInputHTTP) AsJobInput Uses

func (jih JobInputHTTP) AsJobInput() (*JobInput, bool)

AsJobInput is the BasicJobInput implementation for JobInputHTTP.

func (JobInputHTTP) AsJobInputAsset Uses

func (jih JobInputHTTP) AsJobInputAsset() (*JobInputAsset, bool)

AsJobInputAsset is the BasicJobInput implementation for JobInputHTTP.

func (JobInputHTTP) AsJobInputClip Uses

func (jih JobInputHTTP) AsJobInputClip() (*JobInputClip, bool)

AsJobInputClip is the BasicJobInput implementation for JobInputHTTP.

func (JobInputHTTP) AsJobInputHTTP Uses

func (jih JobInputHTTP) AsJobInputHTTP() (*JobInputHTTP, bool)

AsJobInputHTTP is the BasicJobInput implementation for JobInputHTTP.

func (JobInputHTTP) AsJobInputs Uses

func (jih JobInputHTTP) AsJobInputs() (*JobInputs, bool)

AsJobInputs is the BasicJobInput implementation for JobInputHTTP.

func (JobInputHTTP) MarshalJSON Uses

func (jih JobInputHTTP) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for JobInputHTTP.

type JobInputs Uses

type JobInputs struct {
    // Inputs - List of inputs to a Job.
    Inputs *[]BasicJobInput `json:"inputs,omitempty"`
    // Label - A label that is assigned to a JobInput, that is used to satisfy a reference used in the Transform. For example, a Transform can be authored so as to take an image file with the label 'xyz' and apply it as an overlay onto the input video before it is encoded. When submitting a Job, exactly one of the JobInputs should be the image file, and it should have the label 'xyz'.
    Label *string `json:"label,omitempty"`
    // OdataType - Possible values include: 'OdataTypeJobInput', 'OdataTypeMicrosoftMediaJobInputClip', 'OdataTypeMicrosoftMediaJobInputs', 'OdataTypeMicrosoftMediaJobInputAsset', 'OdataTypeMicrosoftMediaJobInputHTTP'
    OdataType OdataTypeBasicJobInput `json:"@odata.type,omitempty"`
}

JobInputs describes a list of inputs to a Job.

func (JobInputs) AsBasicJobInput Uses

func (ji JobInputs) AsBasicJobInput() (BasicJobInput, bool)

AsBasicJobInput is the BasicJobInput implementation for JobInputs.

func (JobInputs) AsBasicJobInputClip Uses

func (ji JobInputs) AsBasicJobInputClip() (BasicJobInputClip, bool)

AsBasicJobInputClip is the BasicJobInput implementation for JobInputs.

func (JobInputs) AsJobInput Uses

func (ji JobInputs) AsJobInput() (*JobInput, bool)

AsJobInput is the BasicJobInput implementation for JobInputs.

func (JobInputs) AsJobInputAsset Uses

func (ji JobInputs) AsJobInputAsset() (*JobInputAsset, bool)

AsJobInputAsset is the BasicJobInput implementation for JobInputs.

func (JobInputs) AsJobInputClip Uses

func (ji JobInputs) AsJobInputClip() (*JobInputClip, bool)

AsJobInputClip is the BasicJobInput implementation for JobInputs.

func (JobInputs) AsJobInputHTTP Uses

func (ji JobInputs) AsJobInputHTTP() (*JobInputHTTP, bool)

AsJobInputHTTP is the BasicJobInput implementation for JobInputs.

func (JobInputs) AsJobInputs Uses

func (ji JobInputs) AsJobInputs() (*JobInputs, bool)

AsJobInputs is the BasicJobInput implementation for JobInputs.

func (JobInputs) MarshalJSON Uses

func (ji JobInputs) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for JobInputs.

func (*JobInputs) UnmarshalJSON Uses

func (ji *JobInputs) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for JobInputs struct.

type JobOutput Uses

type JobOutput struct {
    // Error - READ-ONLY; If the JobOutput is in the Error state, it contains the details of the error.
    Error *JobError `json:"error,omitempty"`
    // State - READ-ONLY; Describes the state of the JobOutput. Possible values include: 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', 'Queued', 'Scheduled'
    State JobState `json:"state,omitempty"`
    // Progress - READ-ONLY; If the JobOutput is in a Processing state, this contains the job completion percentage.  The value is an estimate and not intended to be used to predict job completion times. To determine if the JobOutput is complete, use the State property.
    Progress *int32 `json:"progress,omitempty"`
    // OdataType - Possible values include: 'OdataTypeJobOutput', 'OdataTypeMicrosoftMediaJobOutputAsset'
    OdataType OdataTypeBasicJobOutput `json:"@odata.type,omitempty"`
}

JobOutput describes all the properties of a JobOutput.

func (JobOutput) AsBasicJobOutput Uses

func (jo JobOutput) AsBasicJobOutput() (BasicJobOutput, bool)

AsBasicJobOutput is the BasicJobOutput implementation for JobOutput.

func (JobOutput) AsJobOutput Uses

func (jo JobOutput) AsJobOutput() (*JobOutput, bool)

AsJobOutput is the BasicJobOutput implementation for JobOutput.

func (JobOutput) AsJobOutputAsset Uses

func (jo JobOutput) AsJobOutputAsset() (*JobOutputAsset, bool)

AsJobOutputAsset is the BasicJobOutput implementation for JobOutput.

func (JobOutput) MarshalJSON Uses

func (jo JobOutput) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for JobOutput.

type JobOutputAsset Uses

type JobOutputAsset struct {
    // AssetName - The name of the output Asset.
    AssetName *string `json:"assetName,omitempty"`
    // Error - READ-ONLY; If the JobOutput is in the Error state, it contains the details of the error.
    Error *JobError `json:"error,omitempty"`
    // State - READ-ONLY; Describes the state of the JobOutput. Possible values include: 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', 'Queued', 'Scheduled'
    State JobState `json:"state,omitempty"`
    // Progress - READ-ONLY; If the JobOutput is in a Processing state, this contains the job completion percentage.  The value is an estimate and not intended to be used to predict job completion times. To determine if the JobOutput is complete, use the State property.
    Progress *int32 `json:"progress,omitempty"`
    // OdataType - Possible values include: 'OdataTypeJobOutput', 'OdataTypeMicrosoftMediaJobOutputAsset'
    OdataType OdataTypeBasicJobOutput `json:"@odata.type,omitempty"`
}

JobOutputAsset represents an Asset used as a JobOutput.

func (JobOutputAsset) AsBasicJobOutput Uses

func (joa JobOutputAsset) AsBasicJobOutput() (BasicJobOutput, bool)

AsBasicJobOutput is the BasicJobOutput implementation for JobOutputAsset.

func (JobOutputAsset) AsJobOutput Uses

func (joa JobOutputAsset) AsJobOutput() (*JobOutput, bool)

AsJobOutput is the BasicJobOutput implementation for JobOutputAsset.

func (JobOutputAsset) AsJobOutputAsset Uses

func (joa JobOutputAsset) AsJobOutputAsset() (*JobOutputAsset, bool)

AsJobOutputAsset is the BasicJobOutput implementation for JobOutputAsset.

func (JobOutputAsset) MarshalJSON Uses

func (joa JobOutputAsset) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for JobOutputAsset.

type JobProperties Uses

type JobProperties struct {
    // Created - READ-ONLY; The UTC date and time when the Job was created, in 'YYYY-MM-DDThh:mm:ssZ' format.
    Created *date.Time `json:"created,omitempty"`
    // State - READ-ONLY; The current state of the job. Possible values include: 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', 'Queued', 'Scheduled'
    State JobState `json:"state,omitempty"`
    // Description - Optional customer supplied description of the Job.
    Description *string `json:"description,omitempty"`
    // Input - The inputs for the Job.
    Input BasicJobInput `json:"input,omitempty"`
    // LastModified - READ-ONLY; The UTC date and time when the Job was last updated, in 'YYYY-MM-DDThh:mm:ssZ' format.
    LastModified *date.Time `json:"lastModified,omitempty"`
    // Outputs - The outputs for the Job.
    Outputs *[]BasicJobOutput `json:"outputs,omitempty"`
    // Priority - Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. If not set, the default is normal. Possible values include: 'Low', 'Normal', 'High'
    Priority Priority `json:"priority,omitempty"`
    // CorrelationData - Customer provided correlation data that will be returned in Job completed events.
    CorrelationData map[string]*string `json:"correlationData"`
}

JobProperties properties of the Job.

func (JobProperties) MarshalJSON Uses

func (jp JobProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for JobProperties.

func (*JobProperties) UnmarshalJSON Uses

func (jp *JobProperties) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for JobProperties struct.

type JobRetry Uses

type JobRetry string

JobRetry enumerates the values for job retry.

const (
    // DoNotRetry Issue needs to be investigated and then the job resubmitted with corrections or retried once
    // the underlying issue has been corrected.
    DoNotRetry JobRetry = "DoNotRetry"
    // MayRetry Issue may be resolved after waiting for a period of time and resubmitting the same Job.
    MayRetry JobRetry = "MayRetry"
)

func PossibleJobRetryValues Uses

func PossibleJobRetryValues() []JobRetry

PossibleJobRetryValues returns an array of possible values for the JobRetry const type.

type JobState Uses

type JobState string

JobState enumerates the values for job state.

const (
    // Canceled The job was canceled. This is a final state for the job.
    Canceled JobState = "Canceled"
    // Canceling The job is in the process of being canceled. This is a transient state for the job.
    Canceling JobState = "Canceling"
    // Error The job has encountered an error. This is a final state for the job.
    Error JobState = "Error"
    // Finished The job is finished. This is a final state for the job.
    Finished JobState = "Finished"
    // Processing The job is processing. This is a transient state for the job.
    Processing JobState = "Processing"
    // Queued The job is in a queued state, waiting for resources to become available. This is a transient
    // state.
    Queued JobState = "Queued"
    // Scheduled The job is being scheduled to run on an available resource. This is a transient state, between
    // queued and processing states.
    Scheduled JobState = "Scheduled"
)

func PossibleJobStateValues Uses

func PossibleJobStateValues() []JobState

PossibleJobStateValues returns an array of possible values for the JobState const type.

type JobsClient Uses

type JobsClient struct {
    BaseClient
}

JobsClient is the client for the Jobs methods of the Media service.

func NewJobsClient Uses

func NewJobsClient(subscriptionID string) JobsClient

NewJobsClient creates an instance of the JobsClient client.

func NewJobsClientWithBaseURI Uses

func NewJobsClientWithBaseURI(baseURI string, subscriptionID string) JobsClient

NewJobsClientWithBaseURI creates an instance of the JobsClient client.

func (JobsClient) CancelJob Uses

func (client JobsClient) CancelJob(ctx context.Context, resourceGroupName string, accountName string, transformName string, jobName string) (result autorest.Response, err error)

CancelJob cancel a Job. Parameters: resourceGroupName - the name of the resource group within the Azure subscription. accountName - the Media Services account name. transformName - the Transform name. jobName - the Job name.

func (JobsClient) CancelJobPreparer Uses

func (client JobsClient) CancelJobPreparer(ctx context.Context, resourceGroupName string, accountName string, transformName string, jobName string) (*http.Request, error)

CancelJobPreparer prepares the CancelJob request.

func (JobsClient) CancelJobResponder Uses

func (client JobsClient) CancelJobResponder(resp *http.Response) (result autorest.Response, err error)

CancelJobResponder handles the response to the CancelJob request. The method always closes the http.Response Body.

func (JobsClient) CancelJobSender Uses

func (client JobsClient) CancelJobSender(req *http.Request) (*http.Response, error)

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

func (JobsClient) Create Uses

func (client JobsClient) Create(ctx context.Context, resourceGroupName string, accountName string, transformName string, jobName string, parameters Job) (result Job, err error)

Create creates a Job. Parameters: resourceGroupName - the name of the resource group within the Azure subscription. accountName - the Media Services account name. transformName - the Transform name. jobName - the Job name. parameters - the request parameters

func (JobsClient) CreatePreparer Uses

func (client JobsClient) CreatePreparer(ctx context.Context, resourceGroupName string, accountName string, transformName string, jobName string, parameters Job) (*http.Request, error)

CreatePreparer prepares the Create request.

func (JobsClient) CreateResponder Uses

func (client JobsClient) CreateResponder(resp *http.Response) (result Job, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (JobsClient) CreateSender Uses

func (client JobsClient) CreateSender(req *http.Request) (*http.Response, error)

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

func (JobsClient) Delete Uses

func (client JobsClient) Delete(ctx context.Context, resourceGroupName string, accountName string, transformName string, jobName string) (result autorest.Response, err error)

Delete deletes a Job. Parameters: resourceGroupName - the name of the resource group within the Azure subscription. accountName - the Media Services account name. transformName - the Transform name. jobName - the Job name.

func (JobsClient) DeletePreparer Uses

func (client JobsClient) DeletePreparer(ctx context.Context, resourceGroupName string, accountName string, transformName string, jobName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (JobsClient) DeleteResponder Uses

func (client JobsClient) 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 (JobsClient) DeleteSender Uses

func (client JobsClient) 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 (JobsClient) Get Uses

func (client JobsClient) Get(ctx context.Context, resourceGroupName string, accountName string, transformName string, jobName string) (result Job, err error)

Get gets a Job. Parameters: resourceGroupName - the name of the resource group within the Azure subscription. accountName - the Media Services account name. transformName - the Transform name. jobName - the Job name.

func (JobsClient) GetPreparer Uses

func (client JobsClient) GetPreparer(ctx context.Context, resourceGroupName string, accountName string, transformName string, jobName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (JobsClient) GetResponder Uses

func (client JobsClient) GetResponder(resp *http.Response) (result Job, err error)

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

func (JobsClient) GetSender Uses

func (client JobsClient) 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 (JobsClient) List Uses

func (client JobsClient) List(ctx context.Context, resourceGroupName string, accountName string, transformName string, filter string, top *int32, skip *int32) (result JobCollectionPage, err error)

List lists all of the Jobs for the Transform. Parameters: resourceGroupName - the name of the resource group within the Azure subscription. accountName - the Media Services account name. transformName - the Transform 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. skip - specifies a non-negative integer n that excludes the first n items of the queried collection from the result. The service returns items starting at position n+1.

func (JobsClient) ListComplete Uses

func (client JobsClient) ListComplete(ctx context.Context, resourceGroupName string, accountName string, transformName string, filter string, top *int32, skip *int32) (result JobCollectionIterator, err error)

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

func (JobsClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (JobsClient) ListResponder Uses

func (client JobsClient) ListResponder(resp *http.Response) (result JobCollection, err error)

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

func (JobsClient) ListSender Uses

func (client JobsClient) 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.

type JpgFormat Uses

type JpgFormat struct {
    // FilenamePattern - The pattern of the file names for the generated output files. The following macros are supported in the file name: {Basename} - The base name of the input video {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted macros will be collapsed and removed from the filename.
    FilenamePattern *string `json:"filenamePattern,omitempty"`
    // OdataType - Possible values include: 'OdataTypeFormat', 'OdataTypeMicrosoftMediaImageFormat', 'OdataTypeMicrosoftMediaJpgFormat', 'OdataTypeMicrosoftMediaPngFormat', 'OdataTypeMicrosoftMediaMultiBitrateFormat', 'OdataTypeMicrosoftMediaMp4Format', 'OdataTypeMicrosoftMediaTransportStreamFormat'
    OdataType OdataTypeBasicFormat `json:"@odata.type,omitempty"`
}

JpgFormat describes the settings for producing JPEG thumbnails.

func (JpgFormat) AsBasicFormat Uses

func (jf JpgFormat) AsBasicFormat() (BasicFormat, bool)

AsBasicFormat is the BasicFormat implementation for JpgFormat.

func (JpgFormat) AsBasicImageFormat Uses

func (jf JpgFormat) AsBasicImageFormat() (BasicImageFormat, bool)

AsBasicImageFormat is the BasicFormat implementation for JpgFormat.

func (JpgFormat) AsBasicMultiBitrateFormat Uses

func (jf JpgFormat) AsBasicMultiBitrateFormat() (BasicMultiBitrateFormat, bool)

AsBasicMultiBitrateFormat is the BasicFormat implementation for JpgFormat.

func (JpgFormat) AsFormat Uses

func (jf JpgFormat) AsFormat() (*Format, bool)

AsFormat is the BasicFormat implementation for JpgFormat.

func (JpgFormat) AsImageFormat Uses

func (jf JpgFormat) AsImageFormat() (*ImageFormat, bool)

AsImageFormat is the BasicFormat implementation for JpgFormat.

func (JpgFormat) AsJpgFormat Uses

func (jf JpgFormat) AsJpgFormat() (*JpgFormat, bool)

AsJpgFormat is the BasicFormat implementation for JpgFormat.

func (JpgFormat) AsMp4Format Uses

func (jf JpgFormat) AsMp4Format() (*Mp4Format, bool)

AsMp4Format is the BasicFormat implementation for JpgFormat.

func (JpgFormat) AsMultiBitrateFormat Uses

func (jf JpgFormat) AsMultiBitrateFormat() (*MultiBitrateFormat, bool)

AsMultiBitrateFormat is the BasicFormat implementation for JpgFormat.

func (JpgFormat) AsPngFormat Uses

func (jf JpgFormat) AsPngFormat() (*PngFormat, bool)

AsPngFormat is the BasicFormat implementation for JpgFormat.

func (JpgFormat) AsTransportStreamFormat Uses

func (jf JpgFormat) AsTransportStreamFormat() (*TransportStreamFormat, bool)

AsTransportStreamFormat is the BasicFormat implementation for JpgFormat.

func (JpgFormat) MarshalJSON Uses

func (jf JpgFormat) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for JpgFormat.

type JpgImage Uses

type JpgImage struct {
    // Layers - A collection of output JPEG image layers to be produced by the encoder.
    Layers *[]JpgLayer `json:"layers,omitempty"`