assetsandassetfilters

package
v0.0.0-...-a81a29a Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: MPL-2.0 Imports: 14 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/media/2022-08-01/assetsandassetfilters Documentation

The assetsandassetfilters SDK allows for interaction with the Azure Resource Manager Service media (API Version 2022-08-01).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/media/2022-08-01/assetsandassetfilters"

Client Initialization

client := assetsandassetfilters.NewAssetsAndAssetFiltersClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: AssetsAndAssetFiltersClient.AssetFiltersCreateOrUpdate

ctx := context.TODO()
id := assetsandassetfilters.NewAssetFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mediaServiceValue", "assetValue", "assetFilterValue")

payload := assetsandassetfilters.AssetFilter{
	// ...
}


read, err := client.AssetFiltersCreateOrUpdate(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: AssetsAndAssetFiltersClient.AssetFiltersDelete

ctx := context.TODO()
id := assetsandassetfilters.NewAssetFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mediaServiceValue", "assetValue", "assetFilterValue")

read, err := client.AssetFiltersDelete(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: AssetsAndAssetFiltersClient.AssetFiltersGet

ctx := context.TODO()
id := assetsandassetfilters.NewAssetFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mediaServiceValue", "assetValue", "assetFilterValue")

read, err := client.AssetFiltersGet(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: AssetsAndAssetFiltersClient.AssetFiltersList

ctx := context.TODO()
id := assetsandassetfilters.NewAssetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mediaServiceValue", "assetValue")

// alternatively `client.AssetFiltersList(ctx, id)` can be used to do batched pagination
items, err := client.AssetFiltersListComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: AssetsAndAssetFiltersClient.AssetFiltersUpdate

ctx := context.TODO()
id := assetsandassetfilters.NewAssetFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mediaServiceValue", "assetValue", "assetFilterValue")

payload := assetsandassetfilters.AssetFilter{
	// ...
}


read, err := client.AssetFiltersUpdate(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: AssetsAndAssetFiltersClient.AssetsCreateOrUpdate

ctx := context.TODO()
id := assetsandassetfilters.NewAssetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mediaServiceValue", "assetValue")

payload := assetsandassetfilters.Asset{
	// ...
}


read, err := client.AssetsCreateOrUpdate(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: AssetsAndAssetFiltersClient.AssetsDelete

ctx := context.TODO()
id := assetsandassetfilters.NewAssetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mediaServiceValue", "assetValue")

read, err := client.AssetsDelete(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: AssetsAndAssetFiltersClient.AssetsGet

ctx := context.TODO()
id := assetsandassetfilters.NewAssetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mediaServiceValue", "assetValue")

read, err := client.AssetsGet(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: AssetsAndAssetFiltersClient.AssetsGetEncryptionKey

ctx := context.TODO()
id := assetsandassetfilters.NewAssetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mediaServiceValue", "assetValue")

read, err := client.AssetsGetEncryptionKey(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: AssetsAndAssetFiltersClient.AssetsList

ctx := context.TODO()
id := assetsandassetfilters.NewMediaServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mediaServiceValue")

// alternatively `client.AssetsList(ctx, id, assetsandassetfilters.DefaultAssetsListOperationOptions())` can be used to do batched pagination
items, err := client.AssetsListComplete(ctx, id, assetsandassetfilters.DefaultAssetsListOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: AssetsAndAssetFiltersClient.AssetsListContainerSas

ctx := context.TODO()
id := assetsandassetfilters.NewAssetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mediaServiceValue", "assetValue")

payload := assetsandassetfilters.ListContainerSasInput{
	// ...
}


read, err := client.AssetsListContainerSas(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: AssetsAndAssetFiltersClient.AssetsListStreamingLocators

ctx := context.TODO()
id := assetsandassetfilters.NewAssetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mediaServiceValue", "assetValue")

read, err := client.AssetsListStreamingLocators(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: AssetsAndAssetFiltersClient.AssetsUpdate

ctx := context.TODO()
id := assetsandassetfilters.NewAssetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mediaServiceValue", "assetValue")

payload := assetsandassetfilters.Asset{
	// ...
}


read, err := client.AssetsUpdate(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: AssetsAndAssetFiltersClient.TracksCreateOrUpdate

ctx := context.TODO()
id := assetsandassetfilters.NewTrackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mediaServiceValue", "assetValue", "trackValue")

payload := assetsandassetfilters.AssetTrack{
	// ...
}


if err := client.TracksCreateOrUpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: AssetsAndAssetFiltersClient.TracksDelete

ctx := context.TODO()
id := assetsandassetfilters.NewTrackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mediaServiceValue", "assetValue", "trackValue")

if err := client.TracksDeleteThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: AssetsAndAssetFiltersClient.TracksGet

ctx := context.TODO()
id := assetsandassetfilters.NewTrackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mediaServiceValue", "assetValue", "trackValue")

read, err := client.TracksGet(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: AssetsAndAssetFiltersClient.TracksList

ctx := context.TODO()
id := assetsandassetfilters.NewAssetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mediaServiceValue", "assetValue")

read, err := client.TracksList(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: AssetsAndAssetFiltersClient.TracksUpdate

ctx := context.TODO()
id := assetsandassetfilters.NewTrackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mediaServiceValue", "assetValue", "trackValue")

payload := assetsandassetfilters.AssetTrack{
	// ...
}


if err := client.TracksUpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: AssetsAndAssetFiltersClient.TracksUpdateTrackData

ctx := context.TODO()
id := assetsandassetfilters.NewTrackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mediaServiceValue", "assetValue", "trackValue")

if err := client.TracksUpdateTrackDataThenPoll(ctx, id); err != nil {
	// handle the error
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForAssetContainerPermission

func PossibleValuesForAssetContainerPermission() []string

func PossibleValuesForAssetStorageEncryptionFormat

func PossibleValuesForAssetStorageEncryptionFormat() []string

func PossibleValuesForFilterTrackPropertyCompareOperation

func PossibleValuesForFilterTrackPropertyCompareOperation() []string

func PossibleValuesForFilterTrackPropertyType

func PossibleValuesForFilterTrackPropertyType() []string

func PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func PossibleValuesForVisibility

func PossibleValuesForVisibility() []string

func ValidateAssetFilterID

func ValidateAssetFilterID(input interface{}, key string) (warnings []string, errors []error)

ValidateAssetFilterID checks that 'input' can be parsed as a Asset Filter ID

func ValidateAssetID

func ValidateAssetID(input interface{}, key string) (warnings []string, errors []error)

ValidateAssetID checks that 'input' can be parsed as a Asset ID

func ValidateMediaServiceID

func ValidateMediaServiceID(input interface{}, key string) (warnings []string, errors []error)

ValidateMediaServiceID checks that 'input' can be parsed as a Media Service ID

func ValidateTrackID

func ValidateTrackID(input interface{}, key string) (warnings []string, errors []error)

ValidateTrackID checks that 'input' can be parsed as a Track ID

Types

type Asset

type Asset struct {
	Id         *string                `json:"id,omitempty"`
	Name       *string                `json:"name,omitempty"`
	Properties *AssetProperties       `json:"properties,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

type AssetContainerPermission

type AssetContainerPermission string
const (
	AssetContainerPermissionRead            AssetContainerPermission = "Read"
	AssetContainerPermissionReadWrite       AssetContainerPermission = "ReadWrite"
	AssetContainerPermissionReadWriteDelete AssetContainerPermission = "ReadWriteDelete"
)

func (*AssetContainerPermission) UnmarshalJSON

func (s *AssetContainerPermission) UnmarshalJSON(bytes []byte) error

type AssetContainerSas

type AssetContainerSas struct {
	AssetContainerSasUrls *[]string `json:"assetContainerSasUrls,omitempty"`
}

type AssetFileEncryptionMetadata

type AssetFileEncryptionMetadata struct {
	AssetFileId          string  `json:"assetFileId"`
	AssetFileName        *string `json:"assetFileName,omitempty"`
	InitializationVector *string `json:"initializationVector,omitempty"`
}

type AssetFilter

type AssetFilter struct {
	Id         *string                `json:"id,omitempty"`
	Name       *string                `json:"name,omitempty"`
	Properties *MediaFilterProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

type AssetFilterId

type AssetFilterId struct {
	SubscriptionId    string
	ResourceGroupName string
	MediaServiceName  string
	AssetName         string
	AssetFilterName   string
}

AssetFilterId is a struct representing the Resource ID for a Asset Filter

func NewAssetFilterID

func NewAssetFilterID(subscriptionId string, resourceGroupName string, mediaServiceName string, assetName string, assetFilterName string) AssetFilterId

NewAssetFilterID returns a new AssetFilterId struct

func ParseAssetFilterID

func ParseAssetFilterID(input string) (*AssetFilterId, error)

ParseAssetFilterID parses 'input' into a AssetFilterId

func ParseAssetFilterIDInsensitively

func ParseAssetFilterIDInsensitively(input string) (*AssetFilterId, error)

ParseAssetFilterIDInsensitively parses 'input' case-insensitively into a AssetFilterId note: this method should only be used for API response data and not user input

func (AssetFilterId) ID

func (id AssetFilterId) ID() string

ID returns the formatted Asset Filter ID

func (AssetFilterId) Segments

func (id AssetFilterId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Asset Filter ID

func (AssetFilterId) String

func (id AssetFilterId) String() string

String returns a human-readable description of this Asset Filter ID

type AssetFilterOperationPredicate

type AssetFilterOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (AssetFilterOperationPredicate) Matches

type AssetFiltersCreateOrUpdateOperationResponse

type AssetFiltersCreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *AssetFilter
}

type AssetFiltersDeleteOperationResponse

type AssetFiltersDeleteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type AssetFiltersGetOperationResponse

type AssetFiltersGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *AssetFilter
}

type AssetFiltersListCompleteResult

type AssetFiltersListCompleteResult struct {
	Items []AssetFilter
}

type AssetFiltersListOperationResponse

type AssetFiltersListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]AssetFilter
}

type AssetFiltersUpdateOperationResponse

type AssetFiltersUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *AssetFilter
}

type AssetId

type AssetId struct {
	SubscriptionId    string
	ResourceGroupName string
	MediaServiceName  string
	AssetName         string
}

AssetId is a struct representing the Resource ID for a Asset

func NewAssetID

func NewAssetID(subscriptionId string, resourceGroupName string, mediaServiceName string, assetName string) AssetId

NewAssetID returns a new AssetId struct

func ParseAssetID

func ParseAssetID(input string) (*AssetId, error)

ParseAssetID parses 'input' into a AssetId

func ParseAssetIDInsensitively

func ParseAssetIDInsensitively(input string) (*AssetId, error)

ParseAssetIDInsensitively parses 'input' case-insensitively into a AssetId note: this method should only be used for API response data and not user input

func (AssetId) ID

func (id AssetId) ID() string

ID returns the formatted Asset ID

func (AssetId) Segments

func (id AssetId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Asset ID

func (AssetId) String

func (id AssetId) String() string

String returns a human-readable description of this Asset ID

type AssetOperationPredicate

type AssetOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (AssetOperationPredicate) Matches

func (p AssetOperationPredicate) Matches(input Asset) bool

type AssetProperties

type AssetProperties struct {
	AlternateId             *string                       `json:"alternateId,omitempty"`
	AssetId                 *string                       `json:"assetId,omitempty"`
	Container               *string                       `json:"container,omitempty"`
	Created                 *string                       `json:"created,omitempty"`
	Description             *string                       `json:"description,omitempty"`
	LastModified            *string                       `json:"lastModified,omitempty"`
	StorageAccountName      *string                       `json:"storageAccountName,omitempty"`
	StorageEncryptionFormat *AssetStorageEncryptionFormat `json:"storageEncryptionFormat,omitempty"`
}

func (*AssetProperties) GetCreatedAsTime

func (o *AssetProperties) GetCreatedAsTime() (*time.Time, error)

func (*AssetProperties) GetLastModifiedAsTime

func (o *AssetProperties) GetLastModifiedAsTime() (*time.Time, error)

func (*AssetProperties) SetCreatedAsTime

func (o *AssetProperties) SetCreatedAsTime(input time.Time)

func (*AssetProperties) SetLastModifiedAsTime

func (o *AssetProperties) SetLastModifiedAsTime(input time.Time)

type AssetStorageEncryptionFormat

type AssetStorageEncryptionFormat string
const (
	AssetStorageEncryptionFormatMediaStorageClientEncryption AssetStorageEncryptionFormat = "MediaStorageClientEncryption"
	AssetStorageEncryptionFormatNone                         AssetStorageEncryptionFormat = "None"
)

func (*AssetStorageEncryptionFormat) UnmarshalJSON

func (s *AssetStorageEncryptionFormat) UnmarshalJSON(bytes []byte) error

type AssetStreamingLocator

type AssetStreamingLocator struct {
	AssetName                   *string `json:"assetName,omitempty"`
	Created                     *string `json:"created,omitempty"`
	DefaultContentKeyPolicyName *string `json:"defaultContentKeyPolicyName,omitempty"`
	EndTime                     *string `json:"endTime,omitempty"`
	Name                        *string `json:"name,omitempty"`
	StartTime                   *string `json:"startTime,omitempty"`
	StreamingLocatorId          *string `json:"streamingLocatorId,omitempty"`
	StreamingPolicyName         *string `json:"streamingPolicyName,omitempty"`
}

func (*AssetStreamingLocator) GetCreatedAsTime

func (o *AssetStreamingLocator) GetCreatedAsTime() (*time.Time, error)

func (*AssetStreamingLocator) GetEndTimeAsTime

func (o *AssetStreamingLocator) GetEndTimeAsTime() (*time.Time, error)

func (*AssetStreamingLocator) GetStartTimeAsTime

func (o *AssetStreamingLocator) GetStartTimeAsTime() (*time.Time, error)

func (*AssetStreamingLocator) SetCreatedAsTime

func (o *AssetStreamingLocator) SetCreatedAsTime(input time.Time)

func (*AssetStreamingLocator) SetEndTimeAsTime

func (o *AssetStreamingLocator) SetEndTimeAsTime(input time.Time)

func (*AssetStreamingLocator) SetStartTimeAsTime

func (o *AssetStreamingLocator) SetStartTimeAsTime(input time.Time)

type AssetTrack

type AssetTrack struct {
	Id         *string               `json:"id,omitempty"`
	Name       *string               `json:"name,omitempty"`
	Properties *AssetTrackProperties `json:"properties,omitempty"`
	Type       *string               `json:"type,omitempty"`
}

type AssetTrackCollection

type AssetTrackCollection struct {
	Value *[]AssetTrack `json:"value,omitempty"`
}

type AssetTrackProperties

type AssetTrackProperties struct {
	ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"`
	Track             TrackBase          `json:"track"`
}

func (*AssetTrackProperties) UnmarshalJSON

func (s *AssetTrackProperties) UnmarshalJSON(bytes []byte) error

type AssetsAndAssetFiltersClient

type AssetsAndAssetFiltersClient struct {
	Client *resourcemanager.Client
}

func NewAssetsAndAssetFiltersClientWithBaseURI

func NewAssetsAndAssetFiltersClientWithBaseURI(api environments.Api) (*AssetsAndAssetFiltersClient, error)

func (AssetsAndAssetFiltersClient) AssetFiltersCreateOrUpdate

AssetFiltersCreateOrUpdate ...

func (AssetsAndAssetFiltersClient) AssetFiltersDelete

AssetFiltersDelete ...

func (AssetsAndAssetFiltersClient) AssetFiltersGet

AssetFiltersGet ...

func (AssetsAndAssetFiltersClient) AssetFiltersList

AssetFiltersList ...

func (AssetsAndAssetFiltersClient) AssetFiltersListComplete

AssetFiltersListComplete retrieves all the results into a single object

func (AssetsAndAssetFiltersClient) AssetFiltersListCompleteMatchingPredicate

func (c AssetsAndAssetFiltersClient) AssetFiltersListCompleteMatchingPredicate(ctx context.Context, id AssetId, predicate AssetFilterOperationPredicate) (result AssetFiltersListCompleteResult, err error)

AssetFiltersListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (AssetsAndAssetFiltersClient) AssetFiltersUpdate

AssetFiltersUpdate ...

func (AssetsAndAssetFiltersClient) AssetsCreateOrUpdate

func (c AssetsAndAssetFiltersClient) AssetsCreateOrUpdate(ctx context.Context, id AssetId, input Asset) (result AssetsCreateOrUpdateOperationResponse, err error)

AssetsCreateOrUpdate ...

func (AssetsAndAssetFiltersClient) AssetsDelete

AssetsDelete ...

func (AssetsAndAssetFiltersClient) AssetsGet

AssetsGet ...

func (AssetsAndAssetFiltersClient) AssetsGetEncryptionKey

func (c AssetsAndAssetFiltersClient) AssetsGetEncryptionKey(ctx context.Context, id AssetId) (result AssetsGetEncryptionKeyOperationResponse, err error)

AssetsGetEncryptionKey ...

func (AssetsAndAssetFiltersClient) AssetsList

AssetsList ...

func (AssetsAndAssetFiltersClient) AssetsListComplete

AssetsListComplete retrieves all the results into a single object

func (AssetsAndAssetFiltersClient) AssetsListCompleteMatchingPredicate

func (c AssetsAndAssetFiltersClient) AssetsListCompleteMatchingPredicate(ctx context.Context, id MediaServiceId, options AssetsListOperationOptions, predicate AssetOperationPredicate) (result AssetsListCompleteResult, err error)

AssetsListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (AssetsAndAssetFiltersClient) AssetsListContainerSas

AssetsListContainerSas ...

func (AssetsAndAssetFiltersClient) AssetsListStreamingLocators

func (c AssetsAndAssetFiltersClient) AssetsListStreamingLocators(ctx context.Context, id AssetId) (result AssetsListStreamingLocatorsOperationResponse, err error)

AssetsListStreamingLocators ...

func (AssetsAndAssetFiltersClient) AssetsUpdate

func (c AssetsAndAssetFiltersClient) AssetsUpdate(ctx context.Context, id AssetId, input Asset) (result AssetsUpdateOperationResponse, err error)

AssetsUpdate ...

func (AssetsAndAssetFiltersClient) TracksCreateOrUpdate

func (c AssetsAndAssetFiltersClient) TracksCreateOrUpdate(ctx context.Context, id TrackId, input AssetTrack) (result TracksCreateOrUpdateOperationResponse, err error)

TracksCreateOrUpdate ...

func (AssetsAndAssetFiltersClient) TracksCreateOrUpdateThenPoll

func (c AssetsAndAssetFiltersClient) TracksCreateOrUpdateThenPoll(ctx context.Context, id TrackId, input AssetTrack) error

TracksCreateOrUpdateThenPoll performs TracksCreateOrUpdate then polls until it's completed

func (AssetsAndAssetFiltersClient) TracksDelete

TracksDelete ...

func (AssetsAndAssetFiltersClient) TracksDeleteThenPoll

func (c AssetsAndAssetFiltersClient) TracksDeleteThenPoll(ctx context.Context, id TrackId) error

TracksDeleteThenPoll performs TracksDelete then polls until it's completed

func (AssetsAndAssetFiltersClient) TracksGet

TracksGet ...

func (AssetsAndAssetFiltersClient) TracksList

TracksList ...

func (AssetsAndAssetFiltersClient) TracksUpdate

TracksUpdate ...

func (AssetsAndAssetFiltersClient) TracksUpdateThenPoll

func (c AssetsAndAssetFiltersClient) TracksUpdateThenPoll(ctx context.Context, id TrackId, input AssetTrack) error

TracksUpdateThenPoll performs TracksUpdate then polls until it's completed

func (AssetsAndAssetFiltersClient) TracksUpdateTrackData

func (c AssetsAndAssetFiltersClient) TracksUpdateTrackData(ctx context.Context, id TrackId) (result TracksUpdateTrackDataOperationResponse, err error)

TracksUpdateTrackData ...

func (AssetsAndAssetFiltersClient) TracksUpdateTrackDataThenPoll

func (c AssetsAndAssetFiltersClient) TracksUpdateTrackDataThenPoll(ctx context.Context, id TrackId) error

TracksUpdateTrackDataThenPoll performs TracksUpdateTrackData then polls until it's completed

type AssetsCreateOrUpdateOperationResponse

type AssetsCreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Asset
}

type AssetsDeleteOperationResponse

type AssetsDeleteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type AssetsGetEncryptionKeyOperationResponse

type AssetsGetEncryptionKeyOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *StorageEncryptedAssetDecryptionData
}

type AssetsGetOperationResponse

type AssetsGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Asset
}

type AssetsListCompleteResult

type AssetsListCompleteResult struct {
	Items []Asset
}

type AssetsListContainerSasOperationResponse

type AssetsListContainerSasOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *AssetContainerSas
}

type AssetsListOperationOptions

type AssetsListOperationOptions struct {
	Filter  *string
	Orderby *string
	Top     *int64
}

func DefaultAssetsListOperationOptions

func DefaultAssetsListOperationOptions() AssetsListOperationOptions

func (AssetsListOperationOptions) ToHeaders

func (o AssetsListOperationOptions) ToHeaders() *client.Headers

func (AssetsListOperationOptions) ToOData

func (o AssetsListOperationOptions) ToOData() *odata.Query

func (AssetsListOperationOptions) ToQuery

type AssetsListOperationResponse

type AssetsListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]Asset
}

type AssetsListStreamingLocatorsOperationResponse

type AssetsListStreamingLocatorsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ListStreamingLocatorsResponse
}

type AssetsUpdateOperationResponse

type AssetsUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Asset
}

type AudioTrack

type AudioTrack struct {
	BitRate      *int64        `json:"bitRate,omitempty"`
	DashSettings *DashSettings `json:"dashSettings,omitempty"`
	DisplayName  *string       `json:"displayName,omitempty"`
	FileName     *string       `json:"fileName,omitempty"`
	HlsSettings  *HlsSettings  `json:"hlsSettings,omitempty"`
	LanguageCode *string       `json:"languageCode,omitempty"`
	Mpeg4TrackId *int64        `json:"mpeg4TrackId,omitempty"`
}

func (AudioTrack) MarshalJSON

func (s AudioTrack) MarshalJSON() ([]byte, error)

type DashSettings

type DashSettings struct {
	Role *string `json:"role,omitempty"`
}

type FilterTrackPropertyCompareOperation

type FilterTrackPropertyCompareOperation string
const (
	FilterTrackPropertyCompareOperationEqual    FilterTrackPropertyCompareOperation = "Equal"
	FilterTrackPropertyCompareOperationNotEqual FilterTrackPropertyCompareOperation = "NotEqual"
)

func (*FilterTrackPropertyCompareOperation) UnmarshalJSON

func (s *FilterTrackPropertyCompareOperation) UnmarshalJSON(bytes []byte) error

type FilterTrackPropertyCondition

type FilterTrackPropertyCondition struct {
	Operation FilterTrackPropertyCompareOperation `json:"operation"`
	Property  FilterTrackPropertyType             `json:"property"`
	Value     string                              `json:"value"`
}

type FilterTrackPropertyType

type FilterTrackPropertyType string
const (
	FilterTrackPropertyTypeBitrate  FilterTrackPropertyType = "Bitrate"
	FilterTrackPropertyTypeFourCC   FilterTrackPropertyType = "FourCC"
	FilterTrackPropertyTypeLanguage FilterTrackPropertyType = "Language"
	FilterTrackPropertyTypeName     FilterTrackPropertyType = "Name"
	FilterTrackPropertyTypeType     FilterTrackPropertyType = "Type"
	FilterTrackPropertyTypeUnknown  FilterTrackPropertyType = "Unknown"
)

func (*FilterTrackPropertyType) UnmarshalJSON

func (s *FilterTrackPropertyType) UnmarshalJSON(bytes []byte) error

type FilterTrackSelection

type FilterTrackSelection struct {
	TrackSelections []FilterTrackPropertyCondition `json:"trackSelections"`
}

type FirstQuality

type FirstQuality struct {
	Bitrate int64 `json:"bitrate"`
}

type HlsSettings

type HlsSettings struct {
	Characteristics *string `json:"characteristics,omitempty"`
	Default         *bool   `json:"default,omitempty"`
	Forced          *bool   `json:"forced,omitempty"`
}

type ListContainerSasInput

type ListContainerSasInput struct {
	ExpiryTime  *string                   `json:"expiryTime,omitempty"`
	Permissions *AssetContainerPermission `json:"permissions,omitempty"`
}

func (*ListContainerSasInput) GetExpiryTimeAsTime

func (o *ListContainerSasInput) GetExpiryTimeAsTime() (*time.Time, error)

func (*ListContainerSasInput) SetExpiryTimeAsTime

func (o *ListContainerSasInput) SetExpiryTimeAsTime(input time.Time)

type ListStreamingLocatorsResponse

type ListStreamingLocatorsResponse struct {
	StreamingLocators *[]AssetStreamingLocator `json:"streamingLocators,omitempty"`
}

type MediaFilterProperties

type MediaFilterProperties struct {
	FirstQuality          *FirstQuality           `json:"firstQuality,omitempty"`
	PresentationTimeRange *PresentationTimeRange  `json:"presentationTimeRange,omitempty"`
	Tracks                *[]FilterTrackSelection `json:"tracks,omitempty"`
}

type MediaServiceId

type MediaServiceId struct {
	SubscriptionId    string
	ResourceGroupName string
	MediaServiceName  string
}

MediaServiceId is a struct representing the Resource ID for a Media Service

func NewMediaServiceID

func NewMediaServiceID(subscriptionId string, resourceGroupName string, mediaServiceName string) MediaServiceId

NewMediaServiceID returns a new MediaServiceId struct

func ParseMediaServiceID

func ParseMediaServiceID(input string) (*MediaServiceId, error)

ParseMediaServiceID parses 'input' into a MediaServiceId

func ParseMediaServiceIDInsensitively

func ParseMediaServiceIDInsensitively(input string) (*MediaServiceId, error)

ParseMediaServiceIDInsensitively parses 'input' case-insensitively into a MediaServiceId note: this method should only be used for API response data and not user input

func (MediaServiceId) ID

func (id MediaServiceId) ID() string

ID returns the formatted Media Service ID

func (MediaServiceId) Segments

func (id MediaServiceId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Media Service ID

func (MediaServiceId) String

func (id MediaServiceId) String() string

String returns a human-readable description of this Media Service ID

type PresentationTimeRange

type PresentationTimeRange struct {
	EndTimestamp               *int64 `json:"endTimestamp,omitempty"`
	ForceEndTimestamp          *bool  `json:"forceEndTimestamp,omitempty"`
	LiveBackoffDuration        *int64 `json:"liveBackoffDuration,omitempty"`
	PresentationWindowDuration *int64 `json:"presentationWindowDuration,omitempty"`
	StartTimestamp             *int64 `json:"startTimestamp,omitempty"`
	Timescale                  *int64 `json:"timescale,omitempty"`
}

type ProvisioningState

type ProvisioningState string
const (
	ProvisioningStateFailed     ProvisioningState = "Failed"
	ProvisioningStateInProgress ProvisioningState = "InProgress"
	ProvisioningStateSucceeded  ProvisioningState = "Succeeded"
)

func (*ProvisioningState) UnmarshalJSON

func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error

type StorageEncryptedAssetDecryptionData

type StorageEncryptedAssetDecryptionData struct {
	AssetFileEncryptionMetadata *[]AssetFileEncryptionMetadata `json:"assetFileEncryptionMetadata,omitempty"`
	Key                         *string                        `json:"key,omitempty"`
}

type TextTrack

type TextTrack struct {
	DisplayName      *string      `json:"displayName,omitempty"`
	FileName         *string      `json:"fileName,omitempty"`
	HlsSettings      *HlsSettings `json:"hlsSettings,omitempty"`
	LanguageCode     *string      `json:"languageCode,omitempty"`
	PlayerVisibility *Visibility  `json:"playerVisibility,omitempty"`
}

func (TextTrack) MarshalJSON

func (s TextTrack) MarshalJSON() ([]byte, error)

type TrackBase

type TrackBase interface {
}

type TrackId

type TrackId struct {
	SubscriptionId    string
	ResourceGroupName string
	MediaServiceName  string
	AssetName         string
	TrackName         string
}

TrackId is a struct representing the Resource ID for a Track

func NewTrackID

func NewTrackID(subscriptionId string, resourceGroupName string, mediaServiceName string, assetName string, trackName string) TrackId

NewTrackID returns a new TrackId struct

func ParseTrackID

func ParseTrackID(input string) (*TrackId, error)

ParseTrackID parses 'input' into a TrackId

func ParseTrackIDInsensitively

func ParseTrackIDInsensitively(input string) (*TrackId, error)

ParseTrackIDInsensitively parses 'input' case-insensitively into a TrackId note: this method should only be used for API response data and not user input

func (TrackId) ID

func (id TrackId) ID() string

ID returns the formatted Track ID

func (TrackId) Segments

func (id TrackId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Track ID

func (TrackId) String

func (id TrackId) String() string

String returns a human-readable description of this Track ID

type TracksCreateOrUpdateOperationResponse

type TracksCreateOrUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type TracksDeleteOperationResponse

type TracksDeleteOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type TracksGetOperationResponse

type TracksGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *AssetTrack
}

type TracksListOperationResponse

type TracksListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *AssetTrackCollection
}

type TracksUpdateOperationResponse

type TracksUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type TracksUpdateTrackDataOperationResponse

type TracksUpdateTrackDataOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type VideoTrack

type VideoTrack struct {
}

func (VideoTrack) MarshalJSON

func (s VideoTrack) MarshalJSON() ([]byte, error)

type Visibility

type Visibility string
const (
	VisibilityHidden  Visibility = "Hidden"
	VisibilityVisible Visibility = "Visible"
)

func (*Visibility) UnmarshalJSON

func (s *Visibility) UnmarshalJSON(bytes []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL