media

package
Version: v67.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: MIT Imports: 11 Imported by: 211

Documentation

Overview

Deprecated: Please note, this package has been deprecated. A replacement package is available github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mediaservices/armmediaservices(https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mediaservices/armmediaservices). We strongly encourage you to upgrade to continue receiving updates. See [Migration Guide](https://aka.ms/azsdk/golang/t2/migration) for guidance on upgrading. Refer to our [deprecation policy](https://azure.github.io/azure-sdk/policies_support.html) for more details.

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

Index

Constants

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

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

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

func Version

func Version() string

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

Types

type APIError

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

APIError the API error.

type AacAudio

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

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

func (AacAudio) AsAacAudio

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

AsAacAudio is the BasicCodec implementation for AacAudio.

func (AacAudio) AsAudio

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

AsAudio is the BasicCodec implementation for AacAudio.

func (AacAudio) AsBasicAudio

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

AsBasicAudio is the BasicCodec implementation for AacAudio.

func (AacAudio) AsBasicCodec

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

AsBasicCodec is the BasicCodec implementation for AacAudio.

func (AacAudio) AsBasicImage

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

AsBasicImage is the BasicCodec implementation for AacAudio.

func (AacAudio) AsBasicVideo

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

AsBasicVideo is the BasicCodec implementation for AacAudio.

func (AacAudio) AsCodec

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

AsCodec is the BasicCodec implementation for AacAudio.

func (AacAudio) AsCopyAudio

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

AsCopyAudio is the BasicCodec implementation for AacAudio.

func (AacAudio) AsCopyVideo

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

AsCopyVideo is the BasicCodec implementation for AacAudio.

func (AacAudio) AsH264Video

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

AsH264Video is the BasicCodec implementation for AacAudio.

func (AacAudio) AsImage

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

AsImage is the BasicCodec implementation for AacAudio.

func (AacAudio) AsJpgImage

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

AsJpgImage is the BasicCodec implementation for AacAudio.

func (AacAudio) AsPngImage

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

AsPngImage is the BasicCodec implementation for AacAudio.

func (AacAudio) AsVideo

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

AsVideo is the BasicCodec implementation for AacAudio.

func (AacAudio) MarshalJSON

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

MarshalJSON is the custom marshaler for AacAudio.

type AacAudioProfile

type AacAudioProfile string

AacAudioProfile enumerates the values for aac audio profile.

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

func PossibleAacAudioProfileValues

func PossibleAacAudioProfileValues() []AacAudioProfile

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

type AbsoluteClipTime

type AbsoluteClipTime struct {
	// Time - The time position on the timeline of the input media. It is usually specified as an ISO8601 period. e.g PT30S for 30 seconds.
	Time *string `json:"time,omitempty"`
	// OdataType - Possible values include: 'OdataTypeClipTime', 'OdataTypeMicrosoftMediaAbsoluteClipTime'
	OdataType OdataTypeBasicClipTime `json:"@odata.type,omitempty"`
}

AbsoluteClipTime specifies the clip time as an absolute time position in the media file. The absolute time can point to a different position depending on whether the media file starts from a timestamp of zero or not.

func (AbsoluteClipTime) AsAbsoluteClipTime

func (act AbsoluteClipTime) AsAbsoluteClipTime() (*AbsoluteClipTime, bool)

AsAbsoluteClipTime is the BasicClipTime implementation for AbsoluteClipTime.

func (AbsoluteClipTime) AsBasicClipTime

func (act AbsoluteClipTime) AsBasicClipTime() (BasicClipTime, bool)

AsBasicClipTime is the BasicClipTime implementation for AbsoluteClipTime.

func (AbsoluteClipTime) AsClipTime

func (act AbsoluteClipTime) AsClipTime() (*ClipTime, bool)

AsClipTime is the BasicClipTime implementation for AbsoluteClipTime.

func (AbsoluteClipTime) MarshalJSON

func (act AbsoluteClipTime) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AbsoluteClipTime.

type AccountFilter

type AccountFilter struct {
	autorest.Response `json:"-"`
	*FilterProperties `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"`
}

AccountFilter an Account Filter.

func (AccountFilter) MarshalJSON

func (af AccountFilter) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AccountFilter.

func (*AccountFilter) UnmarshalJSON

func (af *AccountFilter) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AccountFilter struct.

type AccountFilterCollection

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

AccountFilterCollection a collection of AccountFilter items.

func (AccountFilterCollection) IsEmpty

func (afc AccountFilterCollection) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AccountFilterCollectionIterator

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

AccountFilterCollectionIterator provides access to a complete listing of AccountFilter values.

func NewAccountFilterCollectionIterator

func NewAccountFilterCollectionIterator(page AccountFilterCollectionPage) AccountFilterCollectionIterator

Creates a new instance of the AccountFilterCollectionIterator type.

func (*AccountFilterCollectionIterator) Next

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 (*AccountFilterCollectionIterator) NextWithContext

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

func (iter AccountFilterCollectionIterator) NotDone() bool

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

func (AccountFilterCollectionIterator) Response

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

func (AccountFilterCollectionIterator) Value

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

type AccountFilterCollectionPage

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

AccountFilterCollectionPage contains a page of AccountFilter values.

func NewAccountFilterCollectionPage

Creates a new instance of the AccountFilterCollectionPage type.

func (*AccountFilterCollectionPage) Next

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

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

func (page AccountFilterCollectionPage) NotDone() bool

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

func (AccountFilterCollectionPage) Response

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

func (AccountFilterCollectionPage) Values

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

type AccountFiltersClient

type AccountFiltersClient struct {
	BaseClient
}

AccountFiltersClient is the client for the AccountFilters methods of the Media service.

func NewAccountFiltersClient

func NewAccountFiltersClient(subscriptionID string) AccountFiltersClient

NewAccountFiltersClient creates an instance of the AccountFiltersClient client.

func NewAccountFiltersClientWithBaseURI

func NewAccountFiltersClientWithBaseURI(baseURI string, subscriptionID string) AccountFiltersClient

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

func (AccountFiltersClient) CreateOrUpdate

func (client AccountFiltersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, filterName string, parameters AccountFilter) (result AccountFilter, err error)

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

func (AccountFiltersClient) CreateOrUpdatePreparer

func (client AccountFiltersClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, filterName string, parameters AccountFilter) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (AccountFiltersClient) CreateOrUpdateResponder

func (client AccountFiltersClient) CreateOrUpdateResponder(resp *http.Response) (result AccountFilter, err error)

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

func (AccountFiltersClient) CreateOrUpdateSender

func (client AccountFiltersClient) 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 (AccountFiltersClient) Delete

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

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

func (AccountFiltersClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (AccountFiltersClient) DeleteResponder

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

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

func (client AccountFiltersClient) Get(ctx context.Context, resourceGroupName string, accountName string, filterName string) (result AccountFilter, err error)

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

func (AccountFiltersClient) GetPreparer

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

GetPreparer prepares the Get request.

func (AccountFiltersClient) GetResponder

func (client AccountFiltersClient) GetResponder(resp *http.Response) (result AccountFilter, err error)

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

func (AccountFiltersClient) GetSender

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

func (client AccountFiltersClient) List(ctx context.Context, resourceGroupName string, accountName string) (result AccountFilterCollectionPage, err error)

List list Account Filters in the Media Services account. Parameters: resourceGroupName - the name of the resource group within the Azure subscription. accountName - the Media Services account name.

func (AccountFiltersClient) ListComplete

func (client AccountFiltersClient) ListComplete(ctx context.Context, resourceGroupName string, accountName string) (result AccountFilterCollectionIterator, err error)

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

func (AccountFiltersClient) ListPreparer

func (client AccountFiltersClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string) (*http.Request, error)

ListPreparer prepares the List request.

func (AccountFiltersClient) ListResponder

func (client AccountFiltersClient) ListResponder(resp *http.Response) (result AccountFilterCollection, err error)

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

func (AccountFiltersClient) ListSender

func (client AccountFiltersClient) 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 (AccountFiltersClient) Update

func (client AccountFiltersClient) Update(ctx context.Context, resourceGroupName string, accountName string, filterName string, parameters AccountFilter) (result AccountFilter, err error)

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

func (AccountFiltersClient) UpdatePreparer

func (client AccountFiltersClient) UpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, filterName string, parameters AccountFilter) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (AccountFiltersClient) UpdateResponder

func (client AccountFiltersClient) UpdateResponder(resp *http.Response) (result AccountFilter, err error)

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

func (AccountFiltersClient) UpdateSender

func (client AccountFiltersClient) 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 AkamaiAccessControl

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

AkamaiAccessControl akamai access control

type AkamaiSignatureHeaderAuthenticationKey

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

AkamaiSignatureHeaderAuthenticationKey akamai Signature Header authentication key.

type AnalysisResolution

type AnalysisResolution string

AnalysisResolution enumerates the values for analysis resolution.

const (
	// SourceResolution ...
	SourceResolution AnalysisResolution = "SourceResolution"
	// StandardDefinition ...
	StandardDefinition AnalysisResolution = "StandardDefinition"
)

func PossibleAnalysisResolutionValues

func PossibleAnalysisResolutionValues() []AnalysisResolution

PossibleAnalysisResolutionValues returns an array of possible values for the AnalysisResolution const type.

type Asset

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

Asset an Asset.

func (Asset) MarshalJSON

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

MarshalJSON is the custom marshaler for Asset.

func (*Asset) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Asset struct.

type AssetCollection

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

AssetCollection a collection of Asset items.

func (AssetCollection) IsEmpty

func (ac AssetCollection) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AssetCollectionIterator

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

AssetCollectionIterator provides access to a complete listing of Asset values.

func NewAssetCollectionIterator

func NewAssetCollectionIterator(page AssetCollectionPage) AssetCollectionIterator

Creates a new instance of the AssetCollectionIterator type.

func (*AssetCollectionIterator) Next

func (iter *AssetCollectionIterator) Next() error

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

func (*AssetCollectionIterator) NextWithContext

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

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

func (AssetCollectionIterator) NotDone

func (iter AssetCollectionIterator) NotDone() bool

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

func (AssetCollectionIterator) Response

func (iter AssetCollectionIterator) Response() AssetCollection

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

func (AssetCollectionIterator) Value

func (iter AssetCollectionIterator) Value() Asset

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

type AssetCollectionPage

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

AssetCollectionPage contains a page of Asset values.

func NewAssetCollectionPage

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

Creates a new instance of the AssetCollectionPage type.

func (*AssetCollectionPage) Next

func (page *AssetCollectionPage) Next() error

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

func (*AssetCollectionPage) NextWithContext

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

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

func (AssetCollectionPage) NotDone

func (page AssetCollectionPage) NotDone() bool

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

func (AssetCollectionPage) Response

func (page AssetCollectionPage) Response() AssetCollection

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

func (AssetCollectionPage) Values

func (page AssetCollectionPage) Values() []Asset

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

type AssetContainerPermission

type AssetContainerPermission string

AssetContainerPermission enumerates the values for asset container permission.

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

func PossibleAssetContainerPermissionValues

func PossibleAssetContainerPermissionValues() []AssetContainerPermission

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

type AssetContainerSas

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

AssetContainerSas the Asset Storage container SAS URLs.

type AssetFileEncryptionMetadata

type AssetFileEncryptionMetadata struct {
	// InitializationVector - The Asset File initialization vector.
	InitializationVector *string `json:"initializationVector,omitempty"`
	// AssetFileName - The Asset File name.
	AssetFileName *string `json:"assetFileName,omitempty"`
	// AssetFileID - The Asset File Id.
	AssetFileID *uuid.UUID `json:"assetFileId,omitempty"`
}

AssetFileEncryptionMetadata the Asset File Storage encryption metadata.

type AssetFilter

type AssetFilter struct {
	autorest.Response `json:"-"`
	*FilterProperties `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"`
}

AssetFilter an Asset Filter.

func (AssetFilter) MarshalJSON

func (af AssetFilter) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AssetFilter.

func (*AssetFilter) UnmarshalJSON

func (af *AssetFilter) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AssetFilter struct.

type AssetFilterCollection

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

AssetFilterCollection a collection of AssetFilter items.

func (AssetFilterCollection) IsEmpty

func (afc AssetFilterCollection) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AssetFilterCollectionIterator

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

AssetFilterCollectionIterator provides access to a complete listing of AssetFilter values.

func NewAssetFilterCollectionIterator

func NewAssetFilterCollectionIterator(page AssetFilterCollectionPage) AssetFilterCollectionIterator

Creates a new instance of the AssetFilterCollectionIterator type.

func (*AssetFilterCollectionIterator) Next

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

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

func (iter AssetFilterCollectionIterator) NotDone() bool

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

func (AssetFilterCollectionIterator) Response

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

func (AssetFilterCollectionIterator) Value

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

type AssetFilterCollectionPage

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

AssetFilterCollectionPage contains a page of AssetFilter values.

func NewAssetFilterCollectionPage

Creates a new instance of the AssetFilterCollectionPage type.

func (*AssetFilterCollectionPage) Next

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

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

func (page AssetFilterCollectionPage) NotDone() bool

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

func (AssetFilterCollectionPage) Response

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

func (AssetFilterCollectionPage) Values

func (page AssetFilterCollectionPage) Values() []AssetFilter

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

type AssetFiltersClient

type AssetFiltersClient struct {
	BaseClient
}

AssetFiltersClient is the client for the AssetFilters methods of the Media service.

func NewAssetFiltersClient

func NewAssetFiltersClient(subscriptionID string) AssetFiltersClient

NewAssetFiltersClient creates an instance of the AssetFiltersClient client.

func NewAssetFiltersClientWithBaseURI

func NewAssetFiltersClientWithBaseURI(baseURI string, subscriptionID string) AssetFiltersClient

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

func (AssetFiltersClient) CreateOrUpdate

func (client AssetFiltersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, assetName string, filterName string, parameters AssetFilter) (result AssetFilter, err error)

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

func (AssetFiltersClient) CreateOrUpdatePreparer

func (client AssetFiltersClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, assetName string, filterName string, parameters AssetFilter) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (AssetFiltersClient) CreateOrUpdateResponder

func (client AssetFiltersClient) CreateOrUpdateResponder(resp *http.Response) (result AssetFilter, err error)

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

func (AssetFiltersClient) CreateOrUpdateSender

func (client AssetFiltersClient) 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 (AssetFiltersClient) Delete

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

Delete deletes an Asset Filter associated with the specified Asset. Parameters: resourceGroupName - the name of the resource group within the Azure subscription. accountName - the Media Services account name. assetName - the Asset name. filterName - the Asset Filter name

func (AssetFiltersClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (AssetFiltersClient) DeleteResponder

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

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

func (client AssetFiltersClient) Get(ctx context.Context, resourceGroupName string, accountName string, assetName string, filterName string) (result AssetFilter, err error)

Get get the details of an Asset Filter associated with the specified Asset. Parameters: resourceGroupName - the name of the resource group within the Azure subscription. accountName - the Media Services account name. assetName - the Asset name. filterName - the Asset Filter name

func (AssetFiltersClient) GetPreparer

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

GetPreparer prepares the Get request.

func (AssetFiltersClient) GetResponder

func (client AssetFiltersClient) GetResponder(resp *http.Response) (result AssetFilter, err error)

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

func (AssetFiltersClient) GetSender

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

func (client AssetFiltersClient) List(ctx context.Context, resourceGroupName string, accountName string, assetName string) (result AssetFilterCollectionPage, err error)

List list Asset Filters associated with the specified Asset. Parameters: resourceGroupName - the name of the resource group within the Azure subscription. accountName - the Media Services account name. assetName - the Asset name.

func (AssetFiltersClient) ListComplete

func (client AssetFiltersClient) ListComplete(ctx context.Context, resourceGroupName string, accountName string, assetName string) (result AssetFilterCollectionIterator, err error)

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

func (AssetFiltersClient) ListPreparer

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

ListPreparer prepares the List request.

func (AssetFiltersClient) ListResponder

func (client AssetFiltersClient) ListResponder(resp *http.Response) (result AssetFilterCollection, err error)

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

func (AssetFiltersClient) ListSender

func (client AssetFiltersClient) 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 (AssetFiltersClient) Update

func (client AssetFiltersClient) Update(ctx context.Context, resourceGroupName string, accountName string, assetName string, filterName string, parameters AssetFilter) (result AssetFilter, err error)

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

func (AssetFiltersClient) UpdatePreparer

func (client AssetFiltersClient) UpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, assetName string, filterName string, parameters AssetFilter) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (AssetFiltersClient) UpdateResponder

func (client AssetFiltersClient) UpdateResponder(resp *http.Response) (result AssetFilter, err error)

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

func (AssetFiltersClient) UpdateSender

func (client AssetFiltersClient) 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 AssetProperties

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

AssetProperties the Asset properties.

func (AssetProperties) MarshalJSON

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

MarshalJSON is the custom marshaler for AssetProperties.

type AssetStorageEncryptionFormat

type AssetStorageEncryptionFormat string

AssetStorageEncryptionFormat enumerates the values for asset storage encryption format.

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

func PossibleAssetStorageEncryptionFormatValues

func PossibleAssetStorageEncryptionFormatValues() []AssetStorageEncryptionFormat

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

type AssetStreamingLocator

type AssetStreamingLocator struct {
	// Name - READ-ONLY; Streaming Locator name.
	Name *string `json:"name,omitempty"`
	// AssetName - READ-ONLY; Asset Name.
	AssetName *string `json:"assetName,omitempty"`
	// Created - READ-ONLY; The creation time of the Streaming Locator.
	Created *date.Time `json:"created,omitempty"`
	// StartTime - READ-ONLY; The start time of the Streaming Locator.
	StartTime *date.Time `json:"startTime,omitempty"`
	// EndTime - READ-ONLY; The end time of the Streaming Locator.
	EndTime *date.Time `json:"endTime,omitempty"`
	// StreamingLocatorID - READ-ONLY; StreamingLocatorId of the Streaming Locator.
	StreamingLocatorID *uuid.UUID `json:"streamingLocatorId,omitempty"`
	// StreamingPolicyName - READ-ONLY; Name of the Streaming Policy used by this Streaming Locator.
	StreamingPolicyName *string `json:"streamingPolicyName,omitempty"`
	// DefaultContentKeyPolicyName - READ-ONLY; Name of the default ContentKeyPolicy used by this Streaming Locator.
	DefaultContentKeyPolicyName *string `json:"defaultContentKeyPolicyName,omitempty"`
}

AssetStreamingLocator properties of the Streaming Locator.

func (AssetStreamingLocator) MarshalJSON

func (asl AssetStreamingLocator) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AssetStreamingLocator.

type AssetsClient

type AssetsClient struct {
	BaseClient
}

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

func NewAssetsClient

func NewAssetsClient(subscriptionID string) AssetsClient

NewAssetsClient creates an instance of the AssetsClient client.

func NewAssetsClientWithBaseURI

func NewAssetsClientWithBaseURI(baseURI string, subscriptionID string) AssetsClient

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

func (AssetsClient) CreateOrUpdate

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

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

func (AssetsClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (AssetsClient) CreateOrUpdateResponder

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

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

func (AssetsClient) CreateOrUpdateSender

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

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

func (AssetsClient) Delete

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

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

func (AssetsClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (AssetsClient) DeleteResponder

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

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

func (AssetsClient) DeleteSender

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

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

func (AssetsClient) Get

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

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

func (AssetsClient) GetEncryptionKey

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

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

func (AssetsClient) GetEncryptionKeyPreparer

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

GetEncryptionKeyPreparer prepares the GetEncryptionKey request.

func (AssetsClient) GetEncryptionKeyResponder

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

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

func (AssetsClient) GetEncryptionKeySender

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

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

func (AssetsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (AssetsClient) GetResponder

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

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

func (AssetsClient) GetSender

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

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

func (AssetsClient) List

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

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

func (AssetsClient) ListComplete

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

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

func (AssetsClient) ListContainerSas

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

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

func (AssetsClient) ListContainerSasPreparer

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

ListContainerSasPreparer prepares the ListContainerSas request.

func (AssetsClient) ListContainerSasResponder

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

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

func (AssetsClient) ListContainerSasSender

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

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

func (AssetsClient) ListPreparer

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

ListPreparer prepares the List request.

func (AssetsClient) ListResponder

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

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

func (AssetsClient) ListSender

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

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

func (AssetsClient) ListStreamingLocators

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

ListStreamingLocators lists Streaming Locators which are associated with this asset. Parameters: resourceGroupName - the name of the resource group within the Azure subscription. accountName - the Media Services account name. assetName - the Asset name.

func (AssetsClient) ListStreamingLocatorsPreparer

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

ListStreamingLocatorsPreparer prepares the ListStreamingLocators request.

func (AssetsClient) ListStreamingLocatorsResponder

func (client AssetsClient) ListStreamingLocatorsResponder(resp *http.Response) (result ListStreamingLocatorsResponse, err error)

ListStreamingLocatorsResponder handles the response to the ListStreamingLocators request. The method always closes the http.Response Body.

func (AssetsClient) ListStreamingLocatorsSender

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

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

func (AssetsClient) Update

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

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

func (AssetsClient) UpdatePreparer

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

UpdatePreparer prepares the Update request.

func (AssetsClient) UpdateResponder

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

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

func (AssetsClient) UpdateSender

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

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

type Audio

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

Audio defines the common properties for all audio codecs.

func (Audio) AsAacAudio

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

AsAacAudio is the BasicCodec implementation for Audio.

func (Audio) AsAudio

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

AsAudio is the BasicCodec implementation for Audio.

func (Audio) AsBasicAudio

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

AsBasicAudio is the BasicCodec implementation for Audio.

func (Audio) AsBasicCodec

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

AsBasicCodec is the BasicCodec implementation for Audio.

func (Audio) AsBasicImage

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

AsBasicImage is the BasicCodec implementation for Audio.

func (Audio) AsBasicVideo

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

AsBasicVideo is the BasicCodec implementation for Audio.

func (Audio) AsCodec

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

AsCodec is the BasicCodec implementation for Audio.

func (Audio) AsCopyAudio

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

AsCopyAudio is the BasicCodec implementation for Audio.

func (Audio) AsCopyVideo

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

AsCopyVideo is the BasicCodec implementation for Audio.

func (Audio) AsH264Video

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

AsH264Video is the BasicCodec implementation for Audio.

func (Audio) AsImage

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

AsImage is the BasicCodec implementation for Audio.

func (Audio) AsJpgImage

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

AsJpgImage is the BasicCodec implementation for Audio.

func (Audio) AsPngImage

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

AsPngImage is the BasicCodec implementation for Audio.

func (Audio) AsVideo

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

AsVideo is the BasicCodec implementation for Audio.

func (Audio) MarshalJSON

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

MarshalJSON is the custom marshaler for Audio.

type AudioAnalyzerPreset

type AudioAnalyzerPreset struct {
	// AudioLanguage - The language for the audio payload in the input using the BCP-47 format of 'language tag-region' (e.g: 'en-US').  If you know the language of your content, it is recommended that you specify it. If the language isn't specified or set to null, automatic language detection will choose the first language detected and process with the selected language for the duration of the file. It does not currently support dynamically switching between languages after the first language is detected. The automatic detection works best with audio recordings with clearly discernable speech. If automatic detection fails to find the language, transcription would fallback to 'en-US'." The list of supported languages is available here: https://go.microsoft.com/fwlink/?linkid=2109463
	AudioLanguage *string `json:"audioLanguage,omitempty"`
	// ExperimentalOptions - Dictionary containing key value pairs for parameters not exposed in the preset itself
	ExperimentalOptions map[string]*string `json:"experimentalOptions"`
	// OdataType - Possible values include: 'OdataTypePreset', 'OdataTypeMicrosoftMediaFaceDetectorPreset', 'OdataTypeMicrosoftMediaAudioAnalyzerPreset', 'OdataTypeMicrosoftMediaBuiltInStandardEncoderPreset', 'OdataTypeMicrosoftMediaStandardEncoderPreset', 'OdataTypeMicrosoftMediaVideoAnalyzerPreset'
	OdataType OdataTypeBasicPreset `json:"@odata.type,omitempty"`
}

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

func (AudioAnalyzerPreset) AsAudioAnalyzerPreset

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

AsAudioAnalyzerPreset is the BasicPreset implementation for AudioAnalyzerPreset.

func (AudioAnalyzerPreset) AsBasicAudioAnalyzerPreset

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

AsBasicAudioAnalyzerPreset is the BasicPreset implementation for AudioAnalyzerPreset.

func (AudioAnalyzerPreset) AsBasicPreset

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

AsBasicPreset is the BasicPreset implementation for AudioAnalyzerPreset.

func (AudioAnalyzerPreset) AsBuiltInStandardEncoderPreset

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

AsBuiltInStandardEncoderPreset is the BasicPreset implementation for AudioAnalyzerPreset.

func (AudioAnalyzerPreset) AsFaceDetectorPreset

func (aap AudioAnalyzerPreset) AsFaceDetectorPreset() (*FaceDetectorPreset, bool)

AsFaceDetectorPreset is the BasicPreset implementation for AudioAnalyzerPreset.

func (AudioAnalyzerPreset) AsPreset

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

AsPreset is the BasicPreset implementation for AudioAnalyzerPreset.

func (AudioAnalyzerPreset) AsStandardEncoderPreset

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

AsStandardEncoderPreset is the BasicPreset implementation for AudioAnalyzerPreset.

func (AudioAnalyzerPreset) AsVideoAnalyzerPreset

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

AsVideoAnalyzerPreset is the BasicPreset implementation for AudioAnalyzerPreset.

func (AudioAnalyzerPreset) MarshalJSON

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

MarshalJSON is the custom marshaler for AudioAnalyzerPreset.

type AudioOverlay

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

AudioOverlay describes the properties of an audio overlay.

func (AudioOverlay) AsAudioOverlay

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

AsAudioOverlay is the BasicOverlay implementation for AudioOverlay.

func (AudioOverlay) AsBasicOverlay

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

AsBasicOverlay is the BasicOverlay implementation for AudioOverlay.

func (AudioOverlay) AsOverlay

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

AsOverlay is the BasicOverlay implementation for AudioOverlay.

func (AudioOverlay) AsVideoOverlay

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

AsVideoOverlay is the BasicOverlay implementation for AudioOverlay.

func (AudioOverlay) MarshalJSON

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

MarshalJSON is the custom marshaler for AudioOverlay.

type BaseClient

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

BaseClient is the base client for Media.

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

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

type BasicAudio

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

BasicAudio defines the common properties for all audio codecs.

type BasicAudioAnalyzerPreset

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

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

type BasicClipTime

type BasicClipTime interface {
	AsAbsoluteClipTime() (*AbsoluteClipTime, bool)
	AsClipTime() (*ClipTime, bool)
}

BasicClipTime base class for specifying a clip time. Use sub classes of this class to specify the time position in the media.

type BasicCodec

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

BasicCodec describes the basic properties of all codecs.

type BasicContentKeyPolicyConfiguration

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

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

type BasicContentKeyPolicyPlayReadyContentKeyLocation

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

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

type BasicContentKeyPolicyRestriction

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

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

type BasicContentKeyPolicyRestrictionTokenKey

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

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

type BasicFormat

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

BasicFormat base class for output.

type BasicImage

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

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

type BasicImageFormat

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

BasicImageFormat describes the properties for an output image file.

type BasicJobInput

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

BasicJobInput base class for inputs to a Job.

type BasicJobInputClip

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

BasicJobInputClip represents input files for a Job.

type BasicJobOutput

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

BasicJobOutput describes all the properties of a JobOutput.

type BasicLayer

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

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

type BasicMultiBitrateFormat

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

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

type BasicOverlay

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

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

type BasicPreset

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

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

type BasicVideo

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

BasicVideo describes the basic properties for encoding the input video.

type BasicVideoLayer

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

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

type BuiltInStandardEncoderPreset

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

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

func (BuiltInStandardEncoderPreset) AsAudioAnalyzerPreset

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

AsAudioAnalyzerPreset is the BasicPreset implementation for BuiltInStandardEncoderPreset.

func (BuiltInStandardEncoderPreset) AsBasicAudioAnalyzerPreset

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

AsBasicAudioAnalyzerPreset is the BasicPreset implementation for BuiltInStandardEncoderPreset.

func (BuiltInStandardEncoderPreset) AsBasicPreset

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

AsBasicPreset is the BasicPreset implementation for BuiltInStandardEncoderPreset.

func (BuiltInStandardEncoderPreset) AsBuiltInStandardEncoderPreset

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

AsBuiltInStandardEncoderPreset is the BasicPreset implementation for BuiltInStandardEncoderPreset.

func (BuiltInStandardEncoderPreset) AsFaceDetectorPreset

func (bisep BuiltInStandardEncoderPreset) AsFaceDetectorPreset() (*FaceDetectorPreset, bool)

AsFaceDetectorPreset is the BasicPreset implementation for BuiltInStandardEncoderPreset.

func (BuiltInStandardEncoderPreset) AsPreset

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

AsPreset is the BasicPreset implementation for BuiltInStandardEncoderPreset.

func (BuiltInStandardEncoderPreset) AsStandardEncoderPreset

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

AsStandardEncoderPreset is the BasicPreset implementation for BuiltInStandardEncoderPreset.

func (BuiltInStandardEncoderPreset) AsVideoAnalyzerPreset

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

AsVideoAnalyzerPreset is the BasicPreset implementation for BuiltInStandardEncoderPreset.

func (BuiltInStandardEncoderPreset) MarshalJSON

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

MarshalJSON is the custom marshaler for BuiltInStandardEncoderPreset.

type CbcsDrmConfiguration

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

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

type CencDrmConfiguration

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

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

type CheckNameAvailabilityInput

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

CheckNameAvailabilityInput the input to the check name availability request.

type ClipTime

type ClipTime struct {
	// OdataType - Possible values include: 'OdataTypeClipTime', 'OdataTypeMicrosoftMediaAbsoluteClipTime'
	OdataType OdataTypeBasicClipTime `json:"@odata.type,omitempty"`
}

ClipTime base class for specifying a clip time. Use sub classes of this class to specify the time position in the media.

func (ClipTime) AsAbsoluteClipTime

func (ct ClipTime) AsAbsoluteClipTime() (*AbsoluteClipTime, bool)

AsAbsoluteClipTime is the BasicClipTime implementation for ClipTime.

func (ClipTime) AsBasicClipTime

func (ct ClipTime) AsBasicClipTime() (BasicClipTime, bool)

AsBasicClipTime is the BasicClipTime implementation for ClipTime.

func (ClipTime) AsClipTime

func (ct ClipTime) AsClipTime() (*ClipTime, bool)

AsClipTime is the BasicClipTime implementation for ClipTime.

func (ClipTime) MarshalJSON

func (ct ClipTime) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ClipTime.

type Codec

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

Codec describes the basic properties of all codecs.

func (Codec) AsAacAudio

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

AsAacAudio is the BasicCodec implementation for Codec.

func (Codec) AsAudio

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

AsAudio is the BasicCodec implementation for Codec.

func (Codec) AsBasicAudio

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

AsBasicAudio is the BasicCodec implementation for Codec.

func (Codec) AsBasicCodec

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

AsBasicCodec is the BasicCodec implementation for Codec.

func (Codec) AsBasicImage

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

AsBasicImage is the BasicCodec implementation for Codec.

func (Codec) AsBasicVideo

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

AsBasicVideo is the BasicCodec implementation for Codec.

func (Codec) AsCodec

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

AsCodec is the BasicCodec implementation for Codec.

func (Codec) AsCopyAudio

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

AsCopyAudio is the BasicCodec implementation for Codec.

func (Codec) AsCopyVideo

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

AsCopyVideo is the BasicCodec implementation for Codec.

func (Codec) AsH264Video

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

AsH264Video is the BasicCodec implementation for Codec.

func (Codec) AsImage

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

AsImage is the BasicCodec implementation for Codec.

func (Codec) AsJpgImage

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

AsJpgImage is the BasicCodec implementation for Codec.

func (Codec) AsPngImage

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

AsPngImage is the BasicCodec implementation for Codec.

func (Codec) AsVideo

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

AsVideo is the BasicCodec implementation for Codec.

func (Codec) MarshalJSON

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

MarshalJSON is the custom marshaler for Codec.

type CommonEncryptionCbcs

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

CommonEncryptionCbcs class for CommonEncryptionCbcs encryption scheme

type CommonEncryptionCenc

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

CommonEncryptionCenc class for envelope encryption scheme

type ContentKeyPoliciesClient

type ContentKeyPoliciesClient struct {
	BaseClient
}

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

func NewContentKeyPoliciesClient

func NewContentKeyPoliciesClient(subscriptionID string) ContentKeyPoliciesClient

NewContentKeyPoliciesClient creates an instance of the ContentKeyPoliciesClient client.

func NewContentKeyPoliciesClientWithBaseURI

func NewContentKeyPoliciesClientWithBaseURI(baseURI string, subscriptionID string) ContentKeyPoliciesClient

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

func (ContentKeyPoliciesClient) CreateOrUpdate

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

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

func (ContentKeyPoliciesClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ContentKeyPoliciesClient) CreateOrUpdateResponder

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

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

func (ContentKeyPoliciesClient) CreateOrUpdateSender

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

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

func (ContentKeyPoliciesClient) Delete

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

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

func (ContentKeyPoliciesClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (ContentKeyPoliciesClient) DeleteResponder

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

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

func (ContentKeyPoliciesClient) DeleteSender

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

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

func (ContentKeyPoliciesClient) Get

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

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

func (ContentKeyPoliciesClient) GetPolicyPropertiesWithSecrets

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

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

func (ContentKeyPoliciesClient) GetPolicyPropertiesWithSecretsPreparer

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

GetPolicyPropertiesWithSecretsPreparer prepares the GetPolicyPropertiesWithSecrets request.

func (ContentKeyPoliciesClient) GetPolicyPropertiesWithSecretsResponder

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

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

func (ContentKeyPoliciesClient) GetPolicyPropertiesWithSecretsSender

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

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

func (ContentKeyPoliciesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ContentKeyPoliciesClient) GetResponder

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

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

func (ContentKeyPoliciesClient) GetSender

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

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

func (ContentKeyPoliciesClient) List

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

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

func (ContentKeyPoliciesClient) ListComplete

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

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

func (ContentKeyPoliciesClient) ListPreparer

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

ListPreparer prepares the List request.

func (ContentKeyPoliciesClient) ListResponder

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

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

func (ContentKeyPoliciesClient) ListSender

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

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

func (ContentKeyPoliciesClient) Update

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

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

func (ContentKeyPoliciesClient) UpdatePreparer

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

UpdatePreparer prepares the Update request.

func (ContentKeyPoliciesClient) UpdateResponder

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

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

func (ContentKeyPoliciesClient) UpdateSender

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

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

type ContentKeyPolicy

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

ContentKeyPolicy a Content Key Policy resource.

func (ContentKeyPolicy) MarshalJSON

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

MarshalJSON is the custom marshaler for ContentKeyPolicy.

func (*ContentKeyPolicy) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for ContentKeyPolicy struct.

type ContentKeyPolicyClearKeyConfiguration

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

ContentKeyPolicyClearKeyConfiguration represents a configuration for non-DRM keys.

func (ContentKeyPolicyClearKeyConfiguration) AsBasicContentKeyPolicyConfiguration

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

AsBasicContentKeyPolicyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyClearKeyConfiguration.

func (ContentKeyPolicyClearKeyConfiguration) AsContentKeyPolicyClearKeyConfiguration

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

AsContentKeyPolicyClearKeyConfiguration is the BasicContentKeyPolicyConfiguration implementation for ContentKeyPolicyClearKeyConfiguration.

func (ContentKeyPolicyClearKeyConfiguration) AsContentKeyPolicyConfiguration