streamingpoliciesandstreaminglocators

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: 13 Imported by: 0

README

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

The streamingpoliciesandstreaminglocators 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/streamingpoliciesandstreaminglocators"

Client Initialization

client := streamingpoliciesandstreaminglocators.NewStreamingPoliciesAndStreamingLocatorsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: StreamingPoliciesAndStreamingLocatorsClient.StreamingLocatorsCreate

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

payload := streamingpoliciesandstreaminglocators.StreamingLocator{
	// ...
}


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

Example Usage: StreamingPoliciesAndStreamingLocatorsClient.StreamingLocatorsDelete

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

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

Example Usage: StreamingPoliciesAndStreamingLocatorsClient.StreamingLocatorsGet

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

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

Example Usage: StreamingPoliciesAndStreamingLocatorsClient.StreamingLocatorsList

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

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

Example Usage: StreamingPoliciesAndStreamingLocatorsClient.StreamingLocatorsListContentKeys

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

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

Example Usage: StreamingPoliciesAndStreamingLocatorsClient.StreamingLocatorsListPaths

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

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

Example Usage: StreamingPoliciesAndStreamingLocatorsClient.StreamingPoliciesCreate

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

payload := streamingpoliciesandstreaminglocators.StreamingPolicy{
	// ...
}


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

Example Usage: StreamingPoliciesAndStreamingLocatorsClient.StreamingPoliciesDelete

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

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

Example Usage: StreamingPoliciesAndStreamingLocatorsClient.StreamingPoliciesGet

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

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

Example Usage: StreamingPoliciesAndStreamingLocatorsClient.StreamingPoliciesList

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForEncryptionScheme

func PossibleValuesForEncryptionScheme() []string

func PossibleValuesForStreamingLocatorContentKeyType

func PossibleValuesForStreamingLocatorContentKeyType() []string

func PossibleValuesForStreamingPolicyStreamingProtocol

func PossibleValuesForStreamingPolicyStreamingProtocol() []string

func PossibleValuesForTrackPropertyCompareOperation

func PossibleValuesForTrackPropertyCompareOperation() []string

func PossibleValuesForTrackPropertyType

func PossibleValuesForTrackPropertyType() []string

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 ValidateStreamingLocatorID

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

ValidateStreamingLocatorID checks that 'input' can be parsed as a Streaming Locator ID

func ValidateStreamingPolicyID

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

ValidateStreamingPolicyID checks that 'input' can be parsed as a Streaming Policy ID

Types

type CbcsDrmConfiguration

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

type CencDrmConfiguration

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

type ClearKeyEncryptionConfiguration

type ClearKeyEncryptionConfiguration struct {
	CustomKeysAcquisitionUrlTemplate *string `json:"customKeysAcquisitionUrlTemplate,omitempty"`
}

type CommonEncryptionCbcs

type CommonEncryptionCbcs struct {
	ClearKeyEncryptionConfiguration *ClearKeyEncryptionConfiguration `json:"clearKeyEncryptionConfiguration,omitempty"`
	ClearTracks                     *[]TrackSelection                `json:"clearTracks,omitempty"`
	ContentKeys                     *StreamingPolicyContentKeys      `json:"contentKeys,omitempty"`
	Drm                             *CbcsDrmConfiguration            `json:"drm,omitempty"`
	EnabledProtocols                *EnabledProtocols                `json:"enabledProtocols,omitempty"`
}

type CommonEncryptionCenc

type CommonEncryptionCenc struct {
	ClearKeyEncryptionConfiguration *ClearKeyEncryptionConfiguration `json:"clearKeyEncryptionConfiguration,omitempty"`
	ClearTracks                     *[]TrackSelection                `json:"clearTracks,omitempty"`
	ContentKeys                     *StreamingPolicyContentKeys      `json:"contentKeys,omitempty"`
	Drm                             *CencDrmConfiguration            `json:"drm,omitempty"`
	EnabledProtocols                *EnabledProtocols                `json:"enabledProtocols,omitempty"`
}

type DefaultKey

type DefaultKey struct {
	Label      *string `json:"label,omitempty"`
	PolicyName *string `json:"policyName,omitempty"`
}

type EnabledProtocols

type EnabledProtocols struct {
	Dash            bool `json:"dash"`
	Download        bool `json:"download"`
	Hls             bool `json:"hls"`
	SmoothStreaming bool `json:"smoothStreaming"`
}

type EncryptionScheme

type EncryptionScheme string
const (
	EncryptionSchemeCommonEncryptionCbcs EncryptionScheme = "CommonEncryptionCbcs"
	EncryptionSchemeCommonEncryptionCenc EncryptionScheme = "CommonEncryptionCenc"
	EncryptionSchemeEnvelopeEncryption   EncryptionScheme = "EnvelopeEncryption"
	EncryptionSchemeNoEncryption         EncryptionScheme = "NoEncryption"
)

func (*EncryptionScheme) UnmarshalJSON

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

type EnvelopeEncryption

type EnvelopeEncryption struct {
	ClearTracks                     *[]TrackSelection           `json:"clearTracks,omitempty"`
	ContentKeys                     *StreamingPolicyContentKeys `json:"contentKeys,omitempty"`
	CustomKeyAcquisitionUrlTemplate *string                     `json:"customKeyAcquisitionUrlTemplate,omitempty"`
	EnabledProtocols                *EnabledProtocols           `json:"enabledProtocols,omitempty"`
}

type ListContentKeysResponse

type ListContentKeysResponse struct {
	ContentKeys *[]StreamingLocatorContentKey `json:"contentKeys,omitempty"`
}

type ListPathsResponse

type ListPathsResponse struct {
	DownloadPaths  *[]string        `json:"downloadPaths,omitempty"`
	StreamingPaths *[]StreamingPath `json:"streamingPaths,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 NoEncryption

type NoEncryption struct {
	EnabledProtocols *EnabledProtocols `json:"enabledProtocols,omitempty"`
}

type StreamingLocator

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

type StreamingLocatorContentKey

type StreamingLocatorContentKey struct {
	Id                              string                          `json:"id"`
	LabelReferenceInStreamingPolicy *string                         `json:"labelReferenceInStreamingPolicy,omitempty"`
	PolicyName                      *string                         `json:"policyName,omitempty"`
	Tracks                          *[]TrackSelection               `json:"tracks,omitempty"`
	Type                            *StreamingLocatorContentKeyType `json:"type,omitempty"`
	Value                           *string                         `json:"value,omitempty"`
}

type StreamingLocatorContentKeyType

type StreamingLocatorContentKeyType string
const (
	StreamingLocatorContentKeyTypeCommonEncryptionCbcs StreamingLocatorContentKeyType = "CommonEncryptionCbcs"
	StreamingLocatorContentKeyTypeCommonEncryptionCenc StreamingLocatorContentKeyType = "CommonEncryptionCenc"
	StreamingLocatorContentKeyTypeEnvelopeEncryption   StreamingLocatorContentKeyType = "EnvelopeEncryption"
)

func (*StreamingLocatorContentKeyType) UnmarshalJSON

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

type StreamingLocatorId

type StreamingLocatorId struct {
	SubscriptionId       string
	ResourceGroupName    string
	MediaServiceName     string
	StreamingLocatorName string
}

StreamingLocatorId is a struct representing the Resource ID for a Streaming Locator

func NewStreamingLocatorID

func NewStreamingLocatorID(subscriptionId string, resourceGroupName string, mediaServiceName string, streamingLocatorName string) StreamingLocatorId

NewStreamingLocatorID returns a new StreamingLocatorId struct

func ParseStreamingLocatorID

func ParseStreamingLocatorID(input string) (*StreamingLocatorId, error)

ParseStreamingLocatorID parses 'input' into a StreamingLocatorId

func ParseStreamingLocatorIDInsensitively

func ParseStreamingLocatorIDInsensitively(input string) (*StreamingLocatorId, error)

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

func (StreamingLocatorId) ID

func (id StreamingLocatorId) ID() string

ID returns the formatted Streaming Locator ID

func (StreamingLocatorId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Streaming Locator ID

func (StreamingLocatorId) String

func (id StreamingLocatorId) String() string

String returns a human-readable description of this Streaming Locator ID

type StreamingLocatorOperationPredicate

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

func (StreamingLocatorOperationPredicate) Matches

type StreamingLocatorProperties

type StreamingLocatorProperties struct {
	AlternativeMediaId          *string                       `json:"alternativeMediaId,omitempty"`
	AssetName                   string                        `json:"assetName"`
	ContentKeys                 *[]StreamingLocatorContentKey `json:"contentKeys,omitempty"`
	Created                     *string                       `json:"created,omitempty"`
	DefaultContentKeyPolicyName *string                       `json:"defaultContentKeyPolicyName,omitempty"`
	EndTime                     *string                       `json:"endTime,omitempty"`
	Filters                     *[]string                     `json:"filters,omitempty"`
	StartTime                   *string                       `json:"startTime,omitempty"`
	StreamingLocatorId          *string                       `json:"streamingLocatorId,omitempty"`
	StreamingPolicyName         string                        `json:"streamingPolicyName"`
}

func (*StreamingLocatorProperties) GetCreatedAsTime

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

func (*StreamingLocatorProperties) GetEndTimeAsTime

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

func (*StreamingLocatorProperties) GetStartTimeAsTime

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

func (*StreamingLocatorProperties) SetCreatedAsTime

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

func (*StreamingLocatorProperties) SetEndTimeAsTime

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

func (*StreamingLocatorProperties) SetStartTimeAsTime

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

type StreamingLocatorsCreateOperationResponse

type StreamingLocatorsCreateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *StreamingLocator
}

type StreamingLocatorsDeleteOperationResponse

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

type StreamingLocatorsGetOperationResponse

type StreamingLocatorsGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *StreamingLocator
}

type StreamingLocatorsListCompleteResult

type StreamingLocatorsListCompleteResult struct {
	Items []StreamingLocator
}

type StreamingLocatorsListContentKeysOperationResponse

type StreamingLocatorsListContentKeysOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ListContentKeysResponse
}

type StreamingLocatorsListOperationOptions

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

func DefaultStreamingLocatorsListOperationOptions

func DefaultStreamingLocatorsListOperationOptions() StreamingLocatorsListOperationOptions

func (StreamingLocatorsListOperationOptions) ToHeaders

func (StreamingLocatorsListOperationOptions) ToOData

func (StreamingLocatorsListOperationOptions) ToQuery

type StreamingLocatorsListOperationResponse

type StreamingLocatorsListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]StreamingLocator
}

type StreamingLocatorsListPathsOperationResponse

type StreamingLocatorsListPathsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ListPathsResponse
}

type StreamingPath

type StreamingPath struct {
	EncryptionScheme  EncryptionScheme                 `json:"encryptionScheme"`
	Paths             *[]string                        `json:"paths,omitempty"`
	StreamingProtocol StreamingPolicyStreamingProtocol `json:"streamingProtocol"`
}

type StreamingPoliciesAndStreamingLocatorsClient

type StreamingPoliciesAndStreamingLocatorsClient struct {
	Client *resourcemanager.Client
}

func NewStreamingPoliciesAndStreamingLocatorsClientWithBaseURI

func NewStreamingPoliciesAndStreamingLocatorsClientWithBaseURI(api environments.Api) (*StreamingPoliciesAndStreamingLocatorsClient, error)

func (StreamingPoliciesAndStreamingLocatorsClient) StreamingLocatorsCreate

StreamingLocatorsCreate ...

func (StreamingPoliciesAndStreamingLocatorsClient) StreamingLocatorsDelete

StreamingLocatorsDelete ...

func (StreamingPoliciesAndStreamingLocatorsClient) StreamingLocatorsGet

StreamingLocatorsGet ...

func (StreamingPoliciesAndStreamingLocatorsClient) StreamingLocatorsList

StreamingLocatorsList ...

func (StreamingPoliciesAndStreamingLocatorsClient) StreamingLocatorsListComplete

StreamingLocatorsListComplete retrieves all the results into a single object

func (StreamingPoliciesAndStreamingLocatorsClient) StreamingLocatorsListCompleteMatchingPredicate

StreamingLocatorsListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (StreamingPoliciesAndStreamingLocatorsClient) StreamingLocatorsListContentKeys

StreamingLocatorsListContentKeys ...

func (StreamingPoliciesAndStreamingLocatorsClient) StreamingLocatorsListPaths

StreamingLocatorsListPaths ...

func (StreamingPoliciesAndStreamingLocatorsClient) StreamingPoliciesCreate

StreamingPoliciesCreate ...

func (StreamingPoliciesAndStreamingLocatorsClient) StreamingPoliciesDelete

StreamingPoliciesDelete ...

func (StreamingPoliciesAndStreamingLocatorsClient) StreamingPoliciesGet

StreamingPoliciesGet ...

func (StreamingPoliciesAndStreamingLocatorsClient) StreamingPoliciesList

StreamingPoliciesList ...

func (StreamingPoliciesAndStreamingLocatorsClient) StreamingPoliciesListComplete

StreamingPoliciesListComplete retrieves all the results into a single object

func (StreamingPoliciesAndStreamingLocatorsClient) StreamingPoliciesListCompleteMatchingPredicate

StreamingPoliciesListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type StreamingPoliciesCreateOperationResponse

type StreamingPoliciesCreateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *StreamingPolicy
}

type StreamingPoliciesDeleteOperationResponse

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

type StreamingPoliciesGetOperationResponse

type StreamingPoliciesGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *StreamingPolicy
}

type StreamingPoliciesListCompleteResult

type StreamingPoliciesListCompleteResult struct {
	Items []StreamingPolicy
}

type StreamingPoliciesListOperationOptions

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

func DefaultStreamingPoliciesListOperationOptions

func DefaultStreamingPoliciesListOperationOptions() StreamingPoliciesListOperationOptions

func (StreamingPoliciesListOperationOptions) ToHeaders

func (StreamingPoliciesListOperationOptions) ToOData

func (StreamingPoliciesListOperationOptions) ToQuery

type StreamingPoliciesListOperationResponse

type StreamingPoliciesListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]StreamingPolicy
}

type StreamingPolicy

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

type StreamingPolicyContentKey

type StreamingPolicyContentKey struct {
	Label      *string           `json:"label,omitempty"`
	PolicyName *string           `json:"policyName,omitempty"`
	Tracks     *[]TrackSelection `json:"tracks,omitempty"`
}

type StreamingPolicyContentKeys

type StreamingPolicyContentKeys struct {
	DefaultKey         *DefaultKey                  `json:"defaultKey,omitempty"`
	KeyToTrackMappings *[]StreamingPolicyContentKey `json:"keyToTrackMappings,omitempty"`
}

type StreamingPolicyFairPlayConfiguration

type StreamingPolicyFairPlayConfiguration struct {
	AllowPersistentLicense              bool    `json:"allowPersistentLicense"`
	CustomLicenseAcquisitionUrlTemplate *string `json:"customLicenseAcquisitionUrlTemplate,omitempty"`
}

type StreamingPolicyId

type StreamingPolicyId struct {
	SubscriptionId      string
	ResourceGroupName   string
	MediaServiceName    string
	StreamingPolicyName string
}

StreamingPolicyId is a struct representing the Resource ID for a Streaming Policy

func NewStreamingPolicyID

func NewStreamingPolicyID(subscriptionId string, resourceGroupName string, mediaServiceName string, streamingPolicyName string) StreamingPolicyId

NewStreamingPolicyID returns a new StreamingPolicyId struct

func ParseStreamingPolicyID

func ParseStreamingPolicyID(input string) (*StreamingPolicyId, error)

ParseStreamingPolicyID parses 'input' into a StreamingPolicyId

func ParseStreamingPolicyIDInsensitively

func ParseStreamingPolicyIDInsensitively(input string) (*StreamingPolicyId, error)

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

func (StreamingPolicyId) ID

func (id StreamingPolicyId) ID() string

ID returns the formatted Streaming Policy ID

func (StreamingPolicyId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Streaming Policy ID

func (StreamingPolicyId) String

func (id StreamingPolicyId) String() string

String returns a human-readable description of this Streaming Policy ID

type StreamingPolicyOperationPredicate

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

func (StreamingPolicyOperationPredicate) Matches

type StreamingPolicyPlayReadyConfiguration

type StreamingPolicyPlayReadyConfiguration struct {
	CustomLicenseAcquisitionUrlTemplate *string `json:"customLicenseAcquisitionUrlTemplate,omitempty"`
	PlayReadyCustomAttributes           *string `json:"playReadyCustomAttributes,omitempty"`
}

type StreamingPolicyProperties

type StreamingPolicyProperties struct {
	CommonEncryptionCbcs        *CommonEncryptionCbcs `json:"commonEncryptionCbcs,omitempty"`
	CommonEncryptionCenc        *CommonEncryptionCenc `json:"commonEncryptionCenc,omitempty"`
	Created                     *string               `json:"created,omitempty"`
	DefaultContentKeyPolicyName *string               `json:"defaultContentKeyPolicyName,omitempty"`
	EnvelopeEncryption          *EnvelopeEncryption   `json:"envelopeEncryption,omitempty"`
	NoEncryption                *NoEncryption         `json:"noEncryption,omitempty"`
}

func (*StreamingPolicyProperties) GetCreatedAsTime

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

func (*StreamingPolicyProperties) SetCreatedAsTime

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

type StreamingPolicyStreamingProtocol

type StreamingPolicyStreamingProtocol string
const (
	StreamingPolicyStreamingProtocolDash            StreamingPolicyStreamingProtocol = "Dash"
	StreamingPolicyStreamingProtocolDownload        StreamingPolicyStreamingProtocol = "Download"
	StreamingPolicyStreamingProtocolHls             StreamingPolicyStreamingProtocol = "Hls"
	StreamingPolicyStreamingProtocolSmoothStreaming StreamingPolicyStreamingProtocol = "SmoothStreaming"
)

func (*StreamingPolicyStreamingProtocol) UnmarshalJSON

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

type StreamingPolicyWidevineConfiguration

type StreamingPolicyWidevineConfiguration struct {
	CustomLicenseAcquisitionUrlTemplate *string `json:"customLicenseAcquisitionUrlTemplate,omitempty"`
}

type TrackPropertyCompareOperation

type TrackPropertyCompareOperation string
const (
	TrackPropertyCompareOperationEqual   TrackPropertyCompareOperation = "Equal"
	TrackPropertyCompareOperationUnknown TrackPropertyCompareOperation = "Unknown"
)

func (*TrackPropertyCompareOperation) UnmarshalJSON

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

type TrackPropertyCondition

type TrackPropertyCondition struct {
	Operation TrackPropertyCompareOperation `json:"operation"`
	Property  TrackPropertyType             `json:"property"`
	Value     *string                       `json:"value,omitempty"`
}

type TrackPropertyType

type TrackPropertyType string
const (
	TrackPropertyTypeFourCC  TrackPropertyType = "FourCC"
	TrackPropertyTypeUnknown TrackPropertyType = "Unknown"
)

func (*TrackPropertyType) UnmarshalJSON

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

type TrackSelection

type TrackSelection struct {
	TrackSelections *[]TrackPropertyCondition `json:"trackSelections,omitempty"`
}

Jump to

Keyboard shortcuts

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