contentkeypolicies

package
v0.20240923.1151247 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: MPL-2.0 Imports: 14 Imported by: 0

README

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

The contentkeypolicies SDK allows for interaction with Azure Resource Manager 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/contentkeypolicies"

Client Initialization

client := contentkeypolicies.NewContentKeyPoliciesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ContentKeyPoliciesClient.CreateOrUpdate

ctx := context.TODO()
id := contentkeypolicies.NewContentKeyPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "contentKeyPolicyName")

payload := contentkeypolicies.ContentKeyPolicy{
	// ...
}


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

Example Usage: ContentKeyPoliciesClient.Delete

ctx := context.TODO()
id := contentkeypolicies.NewContentKeyPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "contentKeyPolicyName")

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

Example Usage: ContentKeyPoliciesClient.Get

ctx := context.TODO()
id := contentkeypolicies.NewContentKeyPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "contentKeyPolicyName")

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

Example Usage: ContentKeyPoliciesClient.GetPolicyPropertiesWithSecrets

ctx := context.TODO()
id := contentkeypolicies.NewContentKeyPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "contentKeyPolicyName")

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

Example Usage: ContentKeyPoliciesClient.List

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

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

Example Usage: ContentKeyPoliciesClient.Update

ctx := context.TODO()
id := contentkeypolicies.NewContentKeyPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "contentKeyPolicyName")

payload := contentkeypolicies.ContentKeyPolicy{
	// ...
}


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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForContentKeyPolicyFairPlayRentalAndLeaseKeyType

func PossibleValuesForContentKeyPolicyFairPlayRentalAndLeaseKeyType() []string

func PossibleValuesForContentKeyPolicyPlayReadyContentType

func PossibleValuesForContentKeyPolicyPlayReadyContentType() []string

func PossibleValuesForContentKeyPolicyPlayReadyLicenseType

func PossibleValuesForContentKeyPolicyPlayReadyLicenseType() []string

func PossibleValuesForContentKeyPolicyPlayReadyUnknownOutputPassingOption

func PossibleValuesForContentKeyPolicyPlayReadyUnknownOutputPassingOption() []string

func PossibleValuesForContentKeyPolicyRestrictionTokenType

func PossibleValuesForContentKeyPolicyRestrictionTokenType() []string

func PossibleValuesForSecurityLevel

func PossibleValuesForSecurityLevel() []string

func ValidateContentKeyPolicyID

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

ValidateContentKeyPolicyID checks that 'input' can be parsed as a Content Key Policy 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

Types

type BaseContentKeyPolicyConfigurationImpl added in v0.20240920.1135249

type BaseContentKeyPolicyConfigurationImpl struct {
	OdataType string `json:"@odata.type"`
}

func (BaseContentKeyPolicyConfigurationImpl) ContentKeyPolicyConfiguration added in v0.20240920.1135249

type BaseContentKeyPolicyPlayReadyContentKeyLocationImpl added in v0.20240920.1135249

type BaseContentKeyPolicyPlayReadyContentKeyLocationImpl struct {
	OdataType string `json:"@odata.type"`
}

func (BaseContentKeyPolicyPlayReadyContentKeyLocationImpl) ContentKeyPolicyPlayReadyContentKeyLocation added in v0.20240920.1135249

type BaseContentKeyPolicyRestrictionImpl added in v0.20240920.1135249

type BaseContentKeyPolicyRestrictionImpl struct {
	OdataType string `json:"@odata.type"`
}

func (BaseContentKeyPolicyRestrictionImpl) ContentKeyPolicyRestriction added in v0.20240920.1135249

type BaseContentKeyPolicyRestrictionTokenKeyImpl added in v0.20240920.1135249

type BaseContentKeyPolicyRestrictionTokenKeyImpl struct {
	OdataType string `json:"@odata.type"`
}

func (BaseContentKeyPolicyRestrictionTokenKeyImpl) ContentKeyPolicyRestrictionTokenKey added in v0.20240920.1135249

type ContentKeyPoliciesClient

type ContentKeyPoliciesClient struct {
	Client *resourcemanager.Client
}

func NewContentKeyPoliciesClientWithBaseURI

func NewContentKeyPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*ContentKeyPoliciesClient, error)

func (ContentKeyPoliciesClient) CreateOrUpdate

CreateOrUpdate ...

func (ContentKeyPoliciesClient) Delete

Delete ...

func (ContentKeyPoliciesClient) Get

Get ...

func (ContentKeyPoliciesClient) GetPolicyPropertiesWithSecrets

GetPolicyPropertiesWithSecrets ...

func (ContentKeyPoliciesClient) List

List ...

func (ContentKeyPoliciesClient) ListComplete

ListComplete retrieves all the results into a single object

func (ContentKeyPoliciesClient) ListCompleteMatchingPredicate

func (c ContentKeyPoliciesClient) ListCompleteMatchingPredicate(ctx context.Context, id MediaServiceId, options ListOperationOptions, predicate ContentKeyPolicyOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ContentKeyPoliciesClient) Update

Update ...

type ContentKeyPolicy

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

type ContentKeyPolicyClearKeyConfiguration

type ContentKeyPolicyClearKeyConfiguration struct {
	OdataType string `json:"@odata.type"`
}

func (ContentKeyPolicyClearKeyConfiguration) ContentKeyPolicyConfiguration added in v0.20240920.1135249

func (ContentKeyPolicyClearKeyConfiguration) MarshalJSON

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

type ContentKeyPolicyConfiguration

type ContentKeyPolicyConfiguration interface {
	ContentKeyPolicyConfiguration() BaseContentKeyPolicyConfigurationImpl
}

func UnmarshalContentKeyPolicyConfigurationImplementation added in v0.20240920.1135249

func UnmarshalContentKeyPolicyConfigurationImplementation(input []byte) (ContentKeyPolicyConfiguration, error)

type ContentKeyPolicyFairPlayConfiguration

type ContentKeyPolicyFairPlayConfiguration struct {
	Ask                        string                                              `json:"ask"`
	FairPlayPfx                string                                              `json:"fairPlayPfx"`
	FairPlayPfxPassword        string                                              `json:"fairPlayPfxPassword"`
	OfflineRentalConfiguration *ContentKeyPolicyFairPlayOfflineRentalConfiguration `json:"offlineRentalConfiguration,omitempty"`
	RentalAndLeaseKeyType      ContentKeyPolicyFairPlayRentalAndLeaseKeyType       `json:"rentalAndLeaseKeyType"`
	RentalDuration             int64                                               `json:"rentalDuration"`

	OdataType string `json:"@odata.type"`
}

func (ContentKeyPolicyFairPlayConfiguration) ContentKeyPolicyConfiguration added in v0.20240920.1135249

func (ContentKeyPolicyFairPlayConfiguration) MarshalJSON

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

type ContentKeyPolicyFairPlayOfflineRentalConfiguration

type ContentKeyPolicyFairPlayOfflineRentalConfiguration struct {
	PlaybackDurationSeconds int64 `json:"playbackDurationSeconds"`
	StorageDurationSeconds  int64 `json:"storageDurationSeconds"`
}

type ContentKeyPolicyFairPlayRentalAndLeaseKeyType

type ContentKeyPolicyFairPlayRentalAndLeaseKeyType string
const (
	ContentKeyPolicyFairPlayRentalAndLeaseKeyTypeDualExpiry          ContentKeyPolicyFairPlayRentalAndLeaseKeyType = "DualExpiry"
	ContentKeyPolicyFairPlayRentalAndLeaseKeyTypePersistentLimited   ContentKeyPolicyFairPlayRentalAndLeaseKeyType = "PersistentLimited"
	ContentKeyPolicyFairPlayRentalAndLeaseKeyTypePersistentUnlimited ContentKeyPolicyFairPlayRentalAndLeaseKeyType = "PersistentUnlimited"
	ContentKeyPolicyFairPlayRentalAndLeaseKeyTypeUndefined           ContentKeyPolicyFairPlayRentalAndLeaseKeyType = "Undefined"
	ContentKeyPolicyFairPlayRentalAndLeaseKeyTypeUnknown             ContentKeyPolicyFairPlayRentalAndLeaseKeyType = "Unknown"
)

func (*ContentKeyPolicyFairPlayRentalAndLeaseKeyType) UnmarshalJSON

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

type ContentKeyPolicyId

type ContentKeyPolicyId struct {
	SubscriptionId       string
	ResourceGroupName    string
	MediaServiceName     string
	ContentKeyPolicyName string
}

ContentKeyPolicyId is a struct representing the Resource ID for a Content Key Policy

func NewContentKeyPolicyID

func NewContentKeyPolicyID(subscriptionId string, resourceGroupName string, mediaServiceName string, contentKeyPolicyName string) ContentKeyPolicyId

NewContentKeyPolicyID returns a new ContentKeyPolicyId struct

func ParseContentKeyPolicyID

func ParseContentKeyPolicyID(input string) (*ContentKeyPolicyId, error)

ParseContentKeyPolicyID parses 'input' into a ContentKeyPolicyId

func ParseContentKeyPolicyIDInsensitively

func ParseContentKeyPolicyIDInsensitively(input string) (*ContentKeyPolicyId, error)

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

func (*ContentKeyPolicyId) FromParseResult

func (id *ContentKeyPolicyId) FromParseResult(input resourceids.ParseResult) error

func (ContentKeyPolicyId) ID

func (id ContentKeyPolicyId) ID() string

ID returns the formatted Content Key Policy ID

func (ContentKeyPolicyId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Content Key Policy ID

func (ContentKeyPolicyId) String

func (id ContentKeyPolicyId) String() string

String returns a human-readable description of this Content Key Policy ID

type ContentKeyPolicyOpenRestriction

type ContentKeyPolicyOpenRestriction struct {
	OdataType string `json:"@odata.type"`
}

func (ContentKeyPolicyOpenRestriction) ContentKeyPolicyRestriction added in v0.20240920.1135249

func (ContentKeyPolicyOpenRestriction) MarshalJSON

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

type ContentKeyPolicyOperationPredicate

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

func (ContentKeyPolicyOperationPredicate) Matches

type ContentKeyPolicyOption

type ContentKeyPolicyOption struct {
	Configuration  ContentKeyPolicyConfiguration `json:"configuration"`
	Name           *string                       `json:"name,omitempty"`
	PolicyOptionId *string                       `json:"policyOptionId,omitempty"`
	Restriction    ContentKeyPolicyRestriction   `json:"restriction"`
}

func (*ContentKeyPolicyOption) UnmarshalJSON

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

type ContentKeyPolicyPlayReadyConfiguration

type ContentKeyPolicyPlayReadyConfiguration struct {
	Licenses           []ContentKeyPolicyPlayReadyLicense `json:"licenses"`
	ResponseCustomData *string                            `json:"responseCustomData,omitempty"`

	OdataType string `json:"@odata.type"`
}

func (ContentKeyPolicyPlayReadyConfiguration) ContentKeyPolicyConfiguration added in v0.20240920.1135249

func (ContentKeyPolicyPlayReadyConfiguration) MarshalJSON

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

type ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader

type ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader struct {
	OdataType string `json:"@odata.type"`
}

func (ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader) ContentKeyPolicyPlayReadyContentKeyLocation added in v0.20240920.1135249

func (ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader) MarshalJSON

type ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier

type ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier struct {
	KeyId string `json:"keyId"`

	OdataType string `json:"@odata.type"`
}

func (ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier) ContentKeyPolicyPlayReadyContentKeyLocation added in v0.20240920.1135249

func (ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier) MarshalJSON

type ContentKeyPolicyPlayReadyContentKeyLocation

type ContentKeyPolicyPlayReadyContentKeyLocation interface {
	ContentKeyPolicyPlayReadyContentKeyLocation() BaseContentKeyPolicyPlayReadyContentKeyLocationImpl
}

func UnmarshalContentKeyPolicyPlayReadyContentKeyLocationImplementation added in v0.20240920.1135249

func UnmarshalContentKeyPolicyPlayReadyContentKeyLocationImplementation(input []byte) (ContentKeyPolicyPlayReadyContentKeyLocation, error)

type ContentKeyPolicyPlayReadyContentType

type ContentKeyPolicyPlayReadyContentType string
const (
	ContentKeyPolicyPlayReadyContentTypeUltraVioletDownload  ContentKeyPolicyPlayReadyContentType = "UltraVioletDownload"
	ContentKeyPolicyPlayReadyContentTypeUltraVioletStreaming ContentKeyPolicyPlayReadyContentType = "UltraVioletStreaming"
	ContentKeyPolicyPlayReadyContentTypeUnknown              ContentKeyPolicyPlayReadyContentType = "Unknown"
	ContentKeyPolicyPlayReadyContentTypeUnspecified          ContentKeyPolicyPlayReadyContentType = "Unspecified"
)

func (*ContentKeyPolicyPlayReadyContentType) UnmarshalJSON

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

type ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction

type ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction struct {
	BestEffort        bool  `json:"bestEffort"`
	ConfigurationData int64 `json:"configurationData"`
}

type ContentKeyPolicyPlayReadyLicense

type ContentKeyPolicyPlayReadyLicense struct {
	AllowTestDevices       bool                                        `json:"allowTestDevices"`
	BeginDate              *string                                     `json:"beginDate,omitempty"`
	ContentKeyLocation     ContentKeyPolicyPlayReadyContentKeyLocation `json:"contentKeyLocation"`
	ContentType            ContentKeyPolicyPlayReadyContentType        `json:"contentType"`
	ExpirationDate         *string                                     `json:"expirationDate,omitempty"`
	GracePeriod            *string                                     `json:"gracePeriod,omitempty"`
	LicenseType            ContentKeyPolicyPlayReadyLicenseType        `json:"licenseType"`
	PlayRight              *ContentKeyPolicyPlayReadyPlayRight         `json:"playRight,omitempty"`
	RelativeBeginDate      *string                                     `json:"relativeBeginDate,omitempty"`
	RelativeExpirationDate *string                                     `json:"relativeExpirationDate,omitempty"`
	SecurityLevel          *SecurityLevel                              `json:"securityLevel,omitempty"`
}

func (*ContentKeyPolicyPlayReadyLicense) GetBeginDateAsTime

func (o *ContentKeyPolicyPlayReadyLicense) GetBeginDateAsTime() (*time.Time, error)

func (*ContentKeyPolicyPlayReadyLicense) GetExpirationDateAsTime

func (o *ContentKeyPolicyPlayReadyLicense) GetExpirationDateAsTime() (*time.Time, error)

func (*ContentKeyPolicyPlayReadyLicense) SetBeginDateAsTime

func (o *ContentKeyPolicyPlayReadyLicense) SetBeginDateAsTime(input time.Time)

func (*ContentKeyPolicyPlayReadyLicense) SetExpirationDateAsTime

func (o *ContentKeyPolicyPlayReadyLicense) SetExpirationDateAsTime(input time.Time)

func (*ContentKeyPolicyPlayReadyLicense) UnmarshalJSON

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

type ContentKeyPolicyPlayReadyLicenseType

type ContentKeyPolicyPlayReadyLicenseType string
const (
	ContentKeyPolicyPlayReadyLicenseTypeNonPersistent ContentKeyPolicyPlayReadyLicenseType = "NonPersistent"
	ContentKeyPolicyPlayReadyLicenseTypePersistent    ContentKeyPolicyPlayReadyLicenseType = "Persistent"
	ContentKeyPolicyPlayReadyLicenseTypeUnknown       ContentKeyPolicyPlayReadyLicenseType = "Unknown"
)

func (*ContentKeyPolicyPlayReadyLicenseType) UnmarshalJSON

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

type ContentKeyPolicyPlayReadyPlayRight

type ContentKeyPolicyPlayReadyPlayRight struct {
	AgcAndColorStripeRestriction                       *int64                                                        `json:"agcAndColorStripeRestriction,omitempty"`
	AllowPassingVideoContentToUnknownOutput            ContentKeyPolicyPlayReadyUnknownOutputPassingOption           `json:"allowPassingVideoContentToUnknownOutput"`
	AnalogVideoOpl                                     *int64                                                        `json:"analogVideoOpl,omitempty"`
	CompressedDigitalAudioOpl                          *int64                                                        `json:"compressedDigitalAudioOpl,omitempty"`
	CompressedDigitalVideoOpl                          *int64                                                        `json:"compressedDigitalVideoOpl,omitempty"`
	DigitalVideoOnlyContentRestriction                 bool                                                          `json:"digitalVideoOnlyContentRestriction"`
	ExplicitAnalogTelevisionOutputRestriction          *ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction `json:"explicitAnalogTelevisionOutputRestriction,omitempty"`
	FirstPlayExpiration                                *string                                                       `json:"firstPlayExpiration,omitempty"`
	ImageConstraintForAnalogComponentVideoRestriction  bool                                                          `json:"imageConstraintForAnalogComponentVideoRestriction"`
	ImageConstraintForAnalogComputerMonitorRestriction bool                                                          `json:"imageConstraintForAnalogComputerMonitorRestriction"`
	ScmsRestriction                                    *int64                                                        `json:"scmsRestriction,omitempty"`
	UncompressedDigitalAudioOpl                        *int64                                                        `json:"uncompressedDigitalAudioOpl,omitempty"`
	UncompressedDigitalVideoOpl                        *int64                                                        `json:"uncompressedDigitalVideoOpl,omitempty"`
}

type ContentKeyPolicyPlayReadyUnknownOutputPassingOption

type ContentKeyPolicyPlayReadyUnknownOutputPassingOption string
const (
	ContentKeyPolicyPlayReadyUnknownOutputPassingOptionAllowed                      ContentKeyPolicyPlayReadyUnknownOutputPassingOption = "Allowed"
	ContentKeyPolicyPlayReadyUnknownOutputPassingOptionAllowedWithVideoConstriction ContentKeyPolicyPlayReadyUnknownOutputPassingOption = "AllowedWithVideoConstriction"
	ContentKeyPolicyPlayReadyUnknownOutputPassingOptionNotAllowed                   ContentKeyPolicyPlayReadyUnknownOutputPassingOption = "NotAllowed"
	ContentKeyPolicyPlayReadyUnknownOutputPassingOptionUnknown                      ContentKeyPolicyPlayReadyUnknownOutputPassingOption = "Unknown"
)

func (*ContentKeyPolicyPlayReadyUnknownOutputPassingOption) UnmarshalJSON

type ContentKeyPolicyProperties

type ContentKeyPolicyProperties struct {
	Created      *string                  `json:"created,omitempty"`
	Description  *string                  `json:"description,omitempty"`
	LastModified *string                  `json:"lastModified,omitempty"`
	Options      []ContentKeyPolicyOption `json:"options"`
	PolicyId     *string                  `json:"policyId,omitempty"`
}

func (*ContentKeyPolicyProperties) GetCreatedAsTime

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

func (*ContentKeyPolicyProperties) GetLastModifiedAsTime

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

func (*ContentKeyPolicyProperties) SetCreatedAsTime

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

func (*ContentKeyPolicyProperties) SetLastModifiedAsTime

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

type ContentKeyPolicyRestriction

type ContentKeyPolicyRestriction interface {
	ContentKeyPolicyRestriction() BaseContentKeyPolicyRestrictionImpl
}

func UnmarshalContentKeyPolicyRestrictionImplementation added in v0.20240920.1135249

func UnmarshalContentKeyPolicyRestrictionImplementation(input []byte) (ContentKeyPolicyRestriction, error)

type ContentKeyPolicyRestrictionTokenKey

type ContentKeyPolicyRestrictionTokenKey interface {
	ContentKeyPolicyRestrictionTokenKey() BaseContentKeyPolicyRestrictionTokenKeyImpl
}

func UnmarshalContentKeyPolicyRestrictionTokenKeyImplementation added in v0.20240920.1135249

func UnmarshalContentKeyPolicyRestrictionTokenKeyImplementation(input []byte) (ContentKeyPolicyRestrictionTokenKey, error)

type ContentKeyPolicyRestrictionTokenType

type ContentKeyPolicyRestrictionTokenType string
const (
	ContentKeyPolicyRestrictionTokenTypeJwt     ContentKeyPolicyRestrictionTokenType = "Jwt"
	ContentKeyPolicyRestrictionTokenTypeSwt     ContentKeyPolicyRestrictionTokenType = "Swt"
	ContentKeyPolicyRestrictionTokenTypeUnknown ContentKeyPolicyRestrictionTokenType = "Unknown"
)

func (*ContentKeyPolicyRestrictionTokenType) UnmarshalJSON

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

type ContentKeyPolicyRsaTokenKey

type ContentKeyPolicyRsaTokenKey struct {
	Exponent string `json:"exponent"`
	Modulus  string `json:"modulus"`

	OdataType string `json:"@odata.type"`
}

func (ContentKeyPolicyRsaTokenKey) ContentKeyPolicyRestrictionTokenKey added in v0.20240920.1135249

func (s ContentKeyPolicyRsaTokenKey) ContentKeyPolicyRestrictionTokenKey() BaseContentKeyPolicyRestrictionTokenKeyImpl

func (ContentKeyPolicyRsaTokenKey) MarshalJSON

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

type ContentKeyPolicySymmetricTokenKey

type ContentKeyPolicySymmetricTokenKey struct {
	KeyValue string `json:"keyValue"`

	OdataType string `json:"@odata.type"`
}

func (ContentKeyPolicySymmetricTokenKey) ContentKeyPolicyRestrictionTokenKey added in v0.20240920.1135249

func (ContentKeyPolicySymmetricTokenKey) MarshalJSON

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

type ContentKeyPolicyTokenClaim

type ContentKeyPolicyTokenClaim struct {
	ClaimType  *string `json:"claimType,omitempty"`
	ClaimValue *string `json:"claimValue,omitempty"`
}

type ContentKeyPolicyTokenRestriction

type ContentKeyPolicyTokenRestriction struct {
	AlternateVerificationKeys      *[]ContentKeyPolicyRestrictionTokenKey `json:"alternateVerificationKeys,omitempty"`
	Audience                       string                                 `json:"audience"`
	Issuer                         string                                 `json:"issuer"`
	OpenIdConnectDiscoveryDocument *string                                `json:"openIdConnectDiscoveryDocument,omitempty"`
	PrimaryVerificationKey         ContentKeyPolicyRestrictionTokenKey    `json:"primaryVerificationKey"`
	RequiredClaims                 *[]ContentKeyPolicyTokenClaim          `json:"requiredClaims,omitempty"`
	RestrictionTokenType           ContentKeyPolicyRestrictionTokenType   `json:"restrictionTokenType"`

	OdataType string `json:"@odata.type"`
}

func (ContentKeyPolicyTokenRestriction) ContentKeyPolicyRestriction added in v0.20240920.1135249

func (ContentKeyPolicyTokenRestriction) MarshalJSON

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

func (*ContentKeyPolicyTokenRestriction) UnmarshalJSON

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

type ContentKeyPolicyUnknownConfiguration

type ContentKeyPolicyUnknownConfiguration struct {
	OdataType string `json:"@odata.type"`
}

func (ContentKeyPolicyUnknownConfiguration) ContentKeyPolicyConfiguration added in v0.20240920.1135249

func (ContentKeyPolicyUnknownConfiguration) MarshalJSON

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

type ContentKeyPolicyUnknownRestriction

type ContentKeyPolicyUnknownRestriction struct {
	OdataType string `json:"@odata.type"`
}

func (ContentKeyPolicyUnknownRestriction) ContentKeyPolicyRestriction added in v0.20240920.1135249

func (ContentKeyPolicyUnknownRestriction) MarshalJSON

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

type ContentKeyPolicyWidevineConfiguration

type ContentKeyPolicyWidevineConfiguration struct {
	WidevineTemplate string `json:"widevineTemplate"`

	OdataType string `json:"@odata.type"`
}

func (ContentKeyPolicyWidevineConfiguration) ContentKeyPolicyConfiguration added in v0.20240920.1135249

func (ContentKeyPolicyWidevineConfiguration) MarshalJSON

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

type ContentKeyPolicyX509CertificateTokenKey

type ContentKeyPolicyX509CertificateTokenKey struct {
	RawBody string `json:"rawBody"`

	OdataType string `json:"@odata.type"`
}

func (ContentKeyPolicyX509CertificateTokenKey) ContentKeyPolicyRestrictionTokenKey added in v0.20240920.1135249

func (ContentKeyPolicyX509CertificateTokenKey) MarshalJSON

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

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ContentKeyPolicy
}

type DeleteOperationResponse

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

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ContentKeyPolicy
}

type GetPolicyPropertiesWithSecretsOperationResponse

type GetPolicyPropertiesWithSecretsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ContentKeyPolicyProperties
}

type ListCompleteResult

type ListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []ContentKeyPolicy
}

type ListCustomPager added in v0.20240628.1153531

type ListCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}
func (p *ListCustomPager) NextPageLink() *odata.Link

type ListOperationOptions

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

func DefaultListOperationOptions

func DefaultListOperationOptions() ListOperationOptions

func (ListOperationOptions) ToHeaders

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

func (ListOperationOptions) ToOData

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

func (ListOperationOptions) ToQuery

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ContentKeyPolicy
}

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) FromParseResult

func (id *MediaServiceId) FromParseResult(input resourceids.ParseResult) error

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 RawContentKeyPolicyConfigurationImpl

type RawContentKeyPolicyConfigurationImpl struct {
	Type   string
	Values map[string]interface{}
	// contains filtered or unexported fields
}

RawContentKeyPolicyConfigurationImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).

func (RawContentKeyPolicyConfigurationImpl) ContentKeyPolicyConfiguration added in v0.20240920.1135249

type RawContentKeyPolicyPlayReadyContentKeyLocationImpl

type RawContentKeyPolicyPlayReadyContentKeyLocationImpl struct {
	Type   string
	Values map[string]interface{}
	// contains filtered or unexported fields
}

RawContentKeyPolicyPlayReadyContentKeyLocationImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).

func (RawContentKeyPolicyPlayReadyContentKeyLocationImpl) ContentKeyPolicyPlayReadyContentKeyLocation added in v0.20240920.1135249

type RawContentKeyPolicyRestrictionImpl

type RawContentKeyPolicyRestrictionImpl struct {
	Type   string
	Values map[string]interface{}
	// contains filtered or unexported fields
}

RawContentKeyPolicyRestrictionImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).

func (RawContentKeyPolicyRestrictionImpl) ContentKeyPolicyRestriction added in v0.20240920.1135249

type RawContentKeyPolicyRestrictionTokenKeyImpl

type RawContentKeyPolicyRestrictionTokenKeyImpl struct {
	Type   string
	Values map[string]interface{}
	// contains filtered or unexported fields
}

RawContentKeyPolicyRestrictionTokenKeyImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).

func (RawContentKeyPolicyRestrictionTokenKeyImpl) ContentKeyPolicyRestrictionTokenKey added in v0.20240920.1135249

type SecurityLevel

type SecurityLevel string
const (
	SecurityLevelSLOneFiveZero   SecurityLevel = "SL150"
	SecurityLevelSLThreeThousand SecurityLevel = "SL3000"
	SecurityLevelSLTwoThousand   SecurityLevel = "SL2000"
	SecurityLevelUnknown         SecurityLevel = "Unknown"
)

func (*SecurityLevel) UnmarshalJSON

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

type UpdateOperationResponse

type UpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ContentKeyPolicy
}

Jump to

Keyboard shortcuts

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