/
models.go
4423 lines (3471 loc) · 169 KB
/
models.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//go:build go1.18
// +build go1.18
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
package armmediaservices
import "time"
// AacAudio - Describes Advanced Audio Codec (AAC) audio encoding settings.
type AacAudio struct {
// REQUIRED; The discriminator for derived types.
ODataType *string
// The bitrate, in bits per second, of the output encoded audio.
Bitrate *int32
// The number of channels in the audio.
Channels *int32
// An optional label for the codec. The label can be used to control muxing behavior.
Label *string
// The encoding profile to be used when encoding audio with AAC.
Profile *AacAudioProfile
// The sampling rate to use for encoding in hertz.
SamplingRate *int32
}
// GetAudio implements the AudioClassification interface for type AacAudio.
func (a *AacAudio) GetAudio() *Audio {
return &Audio{
Bitrate: a.Bitrate,
Channels: a.Channels,
Label: a.Label,
ODataType: a.ODataType,
SamplingRate: a.SamplingRate,
}
}
// GetCodec implements the CodecClassification interface for type AacAudio.
func (a *AacAudio) GetCodec() *Codec {
return &Codec{
Label: a.Label,
ODataType: a.ODataType,
}
}
// AbsoluteClipTime - Specifies the clip time as an absolute time position in the media file. The absolute time can point
// to a different position depending on whether the media file starts from a timestamp of zero or not.
type AbsoluteClipTime struct {
// REQUIRED; The discriminator for derived types.
ODataType *string
// REQUIRED; The time position on the timeline of the input media. It is usually specified as an ISO8601 period. e.g PT30S
// for 30 seconds.
Time *string
}
// GetClipTime implements the ClipTimeClassification interface for type AbsoluteClipTime.
func (a *AbsoluteClipTime) GetClipTime() *ClipTime {
return &ClipTime{
ODataType: a.ODataType,
}
}
type AccessControl struct {
// The behavior for IP access control in Key Delivery.
DefaultAction *DefaultAction
// The IP allow list for access control in Key Delivery. If the default action is set to 'Allow', the IP allow list must be
// empty.
IPAllowList []*string
}
type AccountEncryption struct {
// REQUIRED; The type of key used to encrypt the Account Key.
Type *AccountEncryptionKeyType
// The Key Vault identity.
Identity *ResourceIdentity
// The properties of the key used to encrypt the account.
KeyVaultProperties *KeyVaultProperties
// READ-ONLY; The current status of the Key Vault mapping.
Status *string
}
// AccountFilter - An Account Filter.
type AccountFilter struct {
// The Media Filter properties.
Properties *MediaFilterProperties
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; The system metadata relating to this resource.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
// AccountFilterCollection - A collection of AccountFilter items.
type AccountFilterCollection struct {
// A link to the next page of the collection (when the collection contains too many results to return in one response).
ODataNextLink *string
// A collection of AccountFilter items.
Value []*AccountFilter
}
// AkamaiAccessControl - Akamai access control
type AkamaiAccessControl struct {
// authentication key list
AkamaiSignatureHeaderAuthenticationKeyList []*AkamaiSignatureHeaderAuthenticationKey
}
// AkamaiSignatureHeaderAuthenticationKey - Akamai Signature Header authentication key.
type AkamaiSignatureHeaderAuthenticationKey struct {
// authentication key
Base64Key *string
// The expiration time of the authentication key.
Expiration *time.Time
// identifier of the key
Identifier *string
}
// ArmStreamingEndpointCapacity - The streaming endpoint sku capacity.
type ArmStreamingEndpointCapacity struct {
// The streaming endpoint default capacity.
Default *int32
// The streaming endpoint maximum capacity.
Maximum *int32
// The streaming endpoint minimum capacity.
Minimum *int32
// READ-ONLY
ScaleType *string
}
// ArmStreamingEndpointCurrentSKU - The streaming endpoint current sku.
type ArmStreamingEndpointCurrentSKU struct {
// The streaming endpoint sku capacity.
Capacity *int32
// READ-ONLY; The streaming endpoint sku name.
Name *string
}
// ArmStreamingEndpointSKU - The streaming endpoint sku.
type ArmStreamingEndpointSKU struct {
// READ-ONLY; The streaming endpoint sku name.
Name *string
}
type ArmStreamingEndpointSKUInfo struct {
// The streaming endpoint sku capacity.
Capacity *ArmStreamingEndpointCapacity
ResourceType *string
// The streaming endpoint sku.
SKU *ArmStreamingEndpointSKU
}
// Asset - An Asset.
type Asset struct {
// The resource properties.
Properties *AssetProperties
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; The system metadata relating to this resource.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
// AssetCollection - A collection of Asset items.
type AssetCollection struct {
// A link to the next page of the collection (when the collection contains too many results to return in one response).
ODataNextLink *string
// A collection of Asset items.
Value []*Asset
}
// AssetContainerSas - The Asset Storage container SAS URLs.
type AssetContainerSas struct {
// The list of Asset container SAS URLs.
AssetContainerSasUrls []*string
}
// AssetFileEncryptionMetadata - The Asset File Storage encryption metadata.
type AssetFileEncryptionMetadata struct {
// REQUIRED; The Asset File Id.
AssetFileID *string
// The Asset File name.
AssetFileName *string
// The Asset File initialization vector.
InitializationVector *string
}
// AssetFilter - An Asset Filter.
type AssetFilter struct {
// The Media Filter properties.
Properties *MediaFilterProperties
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; The system metadata relating to this resource.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
// AssetFilterCollection - A collection of AssetFilter items.
type AssetFilterCollection struct {
// A link to the next page of the collection (when the collection contains too many results to return in one response).
ODataNextLink *string
// A collection of AssetFilter items.
Value []*AssetFilter
}
// AssetProperties - The Asset properties.
type AssetProperties struct {
// The alternate ID of the Asset.
AlternateID *string
// The name of the asset blob container.
Container *string
// The Asset description.
Description *string
// The name of the storage account.
StorageAccountName *string
// READ-ONLY; The Asset ID.
AssetID *string
// READ-ONLY; The creation date of the Asset.
Created *time.Time
// READ-ONLY; The last modified date of the Asset.
LastModified *time.Time
// READ-ONLY; The Asset encryption format. One of None or MediaStorageEncryption.
StorageEncryptionFormat *AssetStorageEncryptionFormat
}
// AssetStreamingLocator - Properties of the Streaming Locator.
type AssetStreamingLocator struct {
// READ-ONLY; Asset Name.
AssetName *string
// READ-ONLY; The creation time of the Streaming Locator.
Created *time.Time
// READ-ONLY; Name of the default ContentKeyPolicy used by this Streaming Locator.
DefaultContentKeyPolicyName *string
// READ-ONLY; The end time of the Streaming Locator.
EndTime *time.Time
// READ-ONLY; Streaming Locator name.
Name *string
// READ-ONLY; The start time of the Streaming Locator.
StartTime *time.Time
// READ-ONLY; StreamingLocatorId of the Streaming Locator.
StreamingLocatorID *string
// READ-ONLY; Name of the Streaming Policy used by this Streaming Locator.
StreamingPolicyName *string
}
// AssetTrack - An Asset Track resource.
type AssetTrack struct {
// The resource properties.
Properties *AssetTrackProperties
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
// AssetTrackCollection - A collection of AssetTrack items.
type AssetTrackCollection struct {
// A collection of AssetTrack items.
Value []*AssetTrack
}
// AssetTrackOperationStatus - Status of asset track operation.
type AssetTrackOperationStatus struct {
// REQUIRED; Operation identifier.
Name *string
// REQUIRED; Operation status.
Status *string
// Operation end time.
EndTime *time.Time
// The error detail.
Error *ErrorDetail
// Operation resource ID.
ID *string
// Operation start time.
StartTime *time.Time
}
// AssetTrackProperties - Properties of a video, audio or text track in the asset.
type AssetTrackProperties struct {
// Detailed information about a track in the asset.
Track TrackBaseClassification
// READ-ONLY; Provisioning state of the asset track.
ProvisioningState *ProvisioningState
}
// AsyncOperationResult - The status of an async operation.
type AsyncOperationResult struct {
// The error object
Error *ErrorDetail
// Operation Id of the async operation.
Name *string
// Operation status of the async operation.
Status *AsyncOperationStatus
}
// Audio - Defines the common properties for all audio codecs.
type Audio struct {
// REQUIRED; The discriminator for derived types.
ODataType *string
// The bitrate, in bits per second, of the output encoded audio.
Bitrate *int32
// The number of channels in the audio.
Channels *int32
// An optional label for the codec. The label can be used to control muxing behavior.
Label *string
// The sampling rate to use for encoding in hertz.
SamplingRate *int32
}
// GetAudio implements the AudioClassification interface for type Audio.
func (a *Audio) GetAudio() *Audio { return a }
// GetCodec implements the CodecClassification interface for type Audio.
func (a *Audio) GetCodec() *Codec {
return &Codec{
Label: a.Label,
ODataType: a.ODataType,
}
}
// AudioAnalyzerPreset - The Audio Analyzer preset applies a pre-defined set of AI-based analysis operations, including speech
// transcription. Currently, the preset supports processing of content with a single audio track.
type AudioAnalyzerPreset struct {
// REQUIRED; The discriminator for derived types.
ODataType *string
// The language for the audio payload in the input using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). If you
// know the language of your content, it is recommended that you specify it. The
// language must be specified explicitly for AudioAnalysisMode::Basic, since automatic language detection is not included
// in basic mode. If the language isn't specified or set to null, automatic language
// detection will choose the first language detected and process with the selected language for the duration of the file.
// It does not currently support dynamically switching between languages after the
// first language is detected. The automatic detection works best with audio recordings with clearly discernable speech. If
// automatic detection fails to find the language, transcription would fallback to
// 'en-US'." The list of supported languages is available here: https://go.microsoft.com/fwlink/?linkid=2109463
AudioLanguage *string
// Dictionary containing key value pairs for parameters not exposed in the preset itself
ExperimentalOptions map[string]*string
// Determines the set of audio analysis operations to be performed. If unspecified, the Standard AudioAnalysisMode would be
// chosen.
Mode *AudioAnalysisMode
}
// GetAudioAnalyzerPreset implements the AudioAnalyzerPresetClassification interface for type AudioAnalyzerPreset.
func (a *AudioAnalyzerPreset) GetAudioAnalyzerPreset() *AudioAnalyzerPreset { return a }
// GetPreset implements the PresetClassification interface for type AudioAnalyzerPreset.
func (a *AudioAnalyzerPreset) GetPreset() *Preset {
return &Preset{
ODataType: a.ODataType,
}
}
// AudioOverlay - Describes the properties of an audio overlay.
type AudioOverlay struct {
// REQUIRED; The label of the job input which is to be used as an overlay. The Input must specify exactly one file. You can
// specify an image file in JPG, PNG, GIF or BMP format, or an audio file (such as a WAV,
// MP3, WMA or M4A file), or a video file. See https://aka.ms/mesformats for the complete list of supported audio and video
// file formats.
InputLabel *string
// REQUIRED; The discriminator for derived types.
ODataType *string
// The gain level of audio in the overlay. The value should be in the range [0, 1.0]. The default is 1.0.
AudioGainLevel *float64
// The end position, with reference to the input video, at which the overlay ends. The value should be in ISO 8601 format.
// For example, PT30S to end the overlay at 30 seconds into the input video. If not
// specified or the value is greater than the input video duration, the overlay will be applied until the end of the input
// video if the overlay media duration is greater than the input video duration,
// else the overlay will last as long as the overlay media duration.
End *string
// The duration over which the overlay fades in onto the input video. The value should be in ISO 8601 duration format. If
// not specified the default behavior is to have no fade in (same as PT0S).
FadeInDuration *string
// The duration over which the overlay fades out of the input video. The value should be in ISO 8601 duration format. If not
// specified the default behavior is to have no fade out (same as PT0S).
FadeOutDuration *string
// The start position, with reference to the input video, at which the overlay starts. The value should be in ISO 8601 format.
// For example, PT05S to start the overlay at 5 seconds into the input video.
// If not specified the overlay starts from the beginning of the input video.
Start *string
}
// GetOverlay implements the OverlayClassification interface for type AudioOverlay.
func (a *AudioOverlay) GetOverlay() *Overlay {
return &Overlay{
AudioGainLevel: a.AudioGainLevel,
End: a.End,
FadeInDuration: a.FadeInDuration,
FadeOutDuration: a.FadeOutDuration,
InputLabel: a.InputLabel,
ODataType: a.ODataType,
Start: a.Start,
}
}
// AudioTrack - Represents an audio track in the asset.
type AudioTrack struct {
// REQUIRED; The discriminator for derived types.
ODataType *string
// The DASH specific setting for the audio track.
DashSettings *DashSettings
// The display name of the audio track on a video player. In HLS, this maps to the NAME attribute of EXT-X-MEDIA.
DisplayName *string
// The file name to the source file. This file is located in the storage container of the asset.
FileName *string
// The HLS specific setting for the audio track.
HlsSettings *HlsSettings
// The RFC5646 language code for the audio track.
LanguageCode *string
// The MPEG-4 audio track ID for the audio track.
Mpeg4TrackID *int32
// READ-ONLY; The stream bit rate for the audio track.
BitRate *int32
}
// GetTrackBase implements the TrackBaseClassification interface for type AudioTrack.
func (a *AudioTrack) GetTrackBase() *TrackBase {
return &TrackBase{
ODataType: a.ODataType,
}
}
// AudioTrackDescriptor - A TrackSelection to select audio tracks.
type AudioTrackDescriptor struct {
// REQUIRED; The discriminator for derived types.
ODataType *string
// Optional designation for single channel audio tracks. Can be used to combine the tracks into stereo or multi-channel audio
// tracks.
ChannelMapping *ChannelMapping
}
// GetAudioTrackDescriptor implements the AudioTrackDescriptorClassification interface for type AudioTrackDescriptor.
func (a *AudioTrackDescriptor) GetAudioTrackDescriptor() *AudioTrackDescriptor { return a }
// GetTrackDescriptor implements the TrackDescriptorClassification interface for type AudioTrackDescriptor.
func (a *AudioTrackDescriptor) GetTrackDescriptor() *TrackDescriptor {
return &TrackDescriptor{
ODataType: a.ODataType,
}
}
// BuiltInStandardEncoderPreset - Describes a built-in preset for encoding the input video with the Standard Encoder.
type BuiltInStandardEncoderPreset struct {
// REQUIRED; The discriminator for derived types.
ODataType *string
// REQUIRED; The built-in preset to be used for encoding videos.
PresetName *EncoderNamedPreset
// Optional configuration settings for encoder. Configurations is only supported for ContentAwareEncoding and H265ContentAwareEncoding
// BuiltInStandardEncoderPreset.
Configurations *PresetConfigurations
}
// GetPreset implements the PresetClassification interface for type BuiltInStandardEncoderPreset.
func (b *BuiltInStandardEncoderPreset) GetPreset() *Preset {
return &Preset{
ODataType: b.ODataType,
}
}
// CbcsDrmConfiguration - Class to specify DRM configurations of CommonEncryptionCbcs scheme in Streaming Policy
type CbcsDrmConfiguration struct {
// FairPlay configurations
FairPlay *StreamingPolicyFairPlayConfiguration
// PlayReady configurations
PlayReady *StreamingPolicyPlayReadyConfiguration
// Widevine configurations
Widevine *StreamingPolicyWidevineConfiguration
}
// CencDrmConfiguration - Class to specify DRM configurations of CommonEncryptionCenc scheme in Streaming Policy
type CencDrmConfiguration struct {
// PlayReady configurations
PlayReady *StreamingPolicyPlayReadyConfiguration
// Widevine configurations
Widevine *StreamingPolicyWidevineConfiguration
}
// CheckNameAvailabilityInput - The input to the check name availability request.
type CheckNameAvailabilityInput struct {
// The account name.
Name *string
// The account type. For a Media Services account, this should be 'MediaServices'.
Type *string
}
// ClearKeyEncryptionConfiguration - Class to specify ClearKey configuration of common encryption schemes in Streaming Policy
type ClearKeyEncryptionConfiguration struct {
// Template for the URL of the custom service delivering content keys to end user players. Not required when using Azure Media
// Services for issuing licenses. The template supports replaceable tokens that
// the service will update at runtime with the value specific to the request. The currently supported token value is {AlternativeMediaId},
// which is replaced with the value of
// StreamingLocatorId.AlternativeMediaId.
CustomKeysAcquisitionURLTemplate *string
}
// ClipTime - Base class for specifying a clip time. Use sub classes of this class to specify the time position in the media.
type ClipTime struct {
// REQUIRED; The discriminator for derived types.
ODataType *string
}
// GetClipTime implements the ClipTimeClassification interface for type ClipTime.
func (c *ClipTime) GetClipTime() *ClipTime { return c }
// Codec - Describes the basic properties of all codecs.
type Codec struct {
// REQUIRED; The discriminator for derived types.
ODataType *string
// An optional label for the codec. The label can be used to control muxing behavior.
Label *string
}
// GetCodec implements the CodecClassification interface for type Codec.
func (c *Codec) GetCodec() *Codec { return c }
// CommonEncryptionCbcs - Class for CommonEncryptionCbcs encryption scheme
type CommonEncryptionCbcs struct {
// Optional configuration supporting ClearKey in CommonEncryptionCbcs encryption scheme.
ClearKeyEncryptionConfiguration *ClearKeyEncryptionConfiguration
// Representing which tracks should not be encrypted
ClearTracks []*TrackSelection
// Representing default content key for each encryption scheme and separate content keys for specific tracks
ContentKeys *StreamingPolicyContentKeys
// Configuration of DRMs for current encryption scheme
Drm *CbcsDrmConfiguration
// Representing supported protocols
EnabledProtocols *EnabledProtocols
}
// CommonEncryptionCenc - Class for envelope encryption scheme
type CommonEncryptionCenc struct {
// Optional configuration supporting ClearKey in CommonEncryptionCenc encryption scheme.
ClearKeyEncryptionConfiguration *ClearKeyEncryptionConfiguration
// Representing which tracks should not be encrypted
ClearTracks []*TrackSelection
// Representing default content key for each encryption scheme and separate content keys for specific tracks
ContentKeys *StreamingPolicyContentKeys
// Configuration of DRMs for CommonEncryptionCenc encryption scheme
Drm *CencDrmConfiguration
// Representing supported protocols
EnabledProtocols *EnabledProtocols
}
// ContentKeyPolicy - A Content Key Policy resource.
type ContentKeyPolicy struct {
// The properties of the Content Key Policy.
Properties *ContentKeyPolicyProperties
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; The system metadata relating to this resource.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
// ContentKeyPolicyClearKeyConfiguration - Represents a configuration for non-DRM keys.
type ContentKeyPolicyClearKeyConfiguration struct {
// REQUIRED; The discriminator for derived types.
ODataType *string
}
// GetContentKeyPolicyConfiguration implements the ContentKeyPolicyConfigurationClassification interface for type ContentKeyPolicyClearKeyConfiguration.
func (c *ContentKeyPolicyClearKeyConfiguration) GetContentKeyPolicyConfiguration() *ContentKeyPolicyConfiguration {
return &ContentKeyPolicyConfiguration{
ODataType: c.ODataType,
}
}
// ContentKeyPolicyCollection - A collection of ContentKeyPolicy items.
type ContentKeyPolicyCollection struct {
// A link to the next page of the collection (when the collection contains too many results to return in one response).
ODataNextLink *string
// A collection of ContentKeyPolicy items.
Value []*ContentKeyPolicy
}
// ContentKeyPolicyConfiguration - Base class for Content Key Policy configuration. A derived class must be used to create
// a configuration.
type ContentKeyPolicyConfiguration struct {
// REQUIRED; The discriminator for derived types.
ODataType *string
}
// GetContentKeyPolicyConfiguration implements the ContentKeyPolicyConfigurationClassification interface for type ContentKeyPolicyConfiguration.
func (c *ContentKeyPolicyConfiguration) GetContentKeyPolicyConfiguration() *ContentKeyPolicyConfiguration {
return c
}
// ContentKeyPolicyFairPlayConfiguration - Specifies a configuration for FairPlay licenses.
type ContentKeyPolicyFairPlayConfiguration struct {
// REQUIRED; The key that must be used as FairPlay Application Secret key. This needs to be base64 encoded.
Ask []byte
// REQUIRED; The Base64 representation of FairPlay certificate in PKCS 12 (pfx) format (including private key).
FairPlayPfx *string
// REQUIRED; The password encrypting FairPlay certificate in PKCS 12 (pfx) format.
FairPlayPfxPassword *string
// REQUIRED; The discriminator for derived types.
ODataType *string
// REQUIRED; The rental and lease key type.
RentalAndLeaseKeyType *ContentKeyPolicyFairPlayRentalAndLeaseKeyType
// REQUIRED; The rental duration. Must be greater than or equal to 0.
RentalDuration *int64
// Offline rental policy
OfflineRentalConfiguration *ContentKeyPolicyFairPlayOfflineRentalConfiguration
}
// GetContentKeyPolicyConfiguration implements the ContentKeyPolicyConfigurationClassification interface for type ContentKeyPolicyFairPlayConfiguration.
func (c *ContentKeyPolicyFairPlayConfiguration) GetContentKeyPolicyConfiguration() *ContentKeyPolicyConfiguration {
return &ContentKeyPolicyConfiguration{
ODataType: c.ODataType,
}
}
type ContentKeyPolicyFairPlayOfflineRentalConfiguration struct {
// REQUIRED; Playback duration
PlaybackDurationSeconds *int64
// REQUIRED; Storage duration
StorageDurationSeconds *int64
}
// ContentKeyPolicyOpenRestriction - Represents an open restriction. License or key will be delivered on every request.
type ContentKeyPolicyOpenRestriction struct {
// REQUIRED; The discriminator for derived types.
ODataType *string
}
// GetContentKeyPolicyRestriction implements the ContentKeyPolicyRestrictionClassification interface for type ContentKeyPolicyOpenRestriction.
func (c *ContentKeyPolicyOpenRestriction) GetContentKeyPolicyRestriction() *ContentKeyPolicyRestriction {
return &ContentKeyPolicyRestriction{
ODataType: c.ODataType,
}
}
// ContentKeyPolicyOption - Represents a policy option.
type ContentKeyPolicyOption struct {
// REQUIRED; The key delivery configuration.
Configuration ContentKeyPolicyConfigurationClassification
// REQUIRED; The requirements that must be met to deliver keys with this configuration
Restriction ContentKeyPolicyRestrictionClassification
// The Policy Option description.
Name *string
// READ-ONLY; The legacy Policy Option ID.
PolicyOptionID *string
}
// ContentKeyPolicyPlayReadyConfiguration - Specifies a configuration for PlayReady licenses.
type ContentKeyPolicyPlayReadyConfiguration struct {
// REQUIRED; The PlayReady licenses.
Licenses []*ContentKeyPolicyPlayReadyLicense
// REQUIRED; The discriminator for derived types.
ODataType *string
// The custom response data.
ResponseCustomData *string
}
// GetContentKeyPolicyConfiguration implements the ContentKeyPolicyConfigurationClassification interface for type ContentKeyPolicyPlayReadyConfiguration.
func (c *ContentKeyPolicyPlayReadyConfiguration) GetContentKeyPolicyConfiguration() *ContentKeyPolicyConfiguration {
return &ContentKeyPolicyConfiguration{
ODataType: c.ODataType,
}
}
// ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader - Specifies that the content key ID is in the PlayReady header.
type ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader struct {
// REQUIRED; The discriminator for derived types.
ODataType *string
}
// GetContentKeyPolicyPlayReadyContentKeyLocation implements the ContentKeyPolicyPlayReadyContentKeyLocationClassification
// interface for type ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader.
func (c *ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader) GetContentKeyPolicyPlayReadyContentKeyLocation() *ContentKeyPolicyPlayReadyContentKeyLocation {
return &ContentKeyPolicyPlayReadyContentKeyLocation{
ODataType: c.ODataType,
}
}
// ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier - Specifies that the content key ID is specified in the
// PlayReady configuration.
type ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier struct {
// REQUIRED; The content key ID.
KeyID *string
// REQUIRED; The discriminator for derived types.
ODataType *string
}
// GetContentKeyPolicyPlayReadyContentKeyLocation implements the ContentKeyPolicyPlayReadyContentKeyLocationClassification
// interface for type ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier.
func (c *ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier) GetContentKeyPolicyPlayReadyContentKeyLocation() *ContentKeyPolicyPlayReadyContentKeyLocation {
return &ContentKeyPolicyPlayReadyContentKeyLocation{
ODataType: c.ODataType,
}
}
// ContentKeyPolicyPlayReadyContentKeyLocation - Base class for content key ID location. A derived class must be used to represent
// the location.
type ContentKeyPolicyPlayReadyContentKeyLocation struct {
// REQUIRED; The discriminator for derived types.
ODataType *string
}
// GetContentKeyPolicyPlayReadyContentKeyLocation implements the ContentKeyPolicyPlayReadyContentKeyLocationClassification
// interface for type ContentKeyPolicyPlayReadyContentKeyLocation.
func (c *ContentKeyPolicyPlayReadyContentKeyLocation) GetContentKeyPolicyPlayReadyContentKeyLocation() *ContentKeyPolicyPlayReadyContentKeyLocation {
return c
}
// ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction - Configures the Explicit Analog Television Output Restriction
// control bits. For further details see the PlayReady Compliance Rules.
type ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction struct {
// REQUIRED; Indicates whether this restriction is enforced on a Best Effort basis.
BestEffort *bool
// REQUIRED; Configures the restriction control bits. Must be between 0 and 3 inclusive.
ConfigurationData *int32
}
// ContentKeyPolicyPlayReadyLicense - The PlayReady license
type ContentKeyPolicyPlayReadyLicense struct {
// REQUIRED; A flag indicating whether test devices can use the license.
AllowTestDevices *bool
// REQUIRED; The content key location.
ContentKeyLocation ContentKeyPolicyPlayReadyContentKeyLocationClassification
// REQUIRED; The PlayReady content type.
ContentType *ContentKeyPolicyPlayReadyContentType
// REQUIRED; The license type.
LicenseType *ContentKeyPolicyPlayReadyLicenseType
// The begin date of license
BeginDate *time.Time
// The expiration date of license.
ExpirationDate *time.Time
// The grace period of license.
GracePeriod *string
// The license PlayRight
PlayRight *ContentKeyPolicyPlayReadyPlayRight
// The relative begin date of license.
RelativeBeginDate *string
// The relative expiration date of license.
RelativeExpirationDate *string
// The security level.
SecurityLevel *SecurityLevel
}
// ContentKeyPolicyPlayReadyPlayRight - Configures the Play Right in the PlayReady license.
type ContentKeyPolicyPlayReadyPlayRight struct {
// REQUIRED; Configures Unknown output handling settings of the license.
AllowPassingVideoContentToUnknownOutput *ContentKeyPolicyPlayReadyUnknownOutputPassingOption
// REQUIRED; Enables the Image Constraint For Analog Component Video Restriction in the license.
DigitalVideoOnlyContentRestriction *bool
// REQUIRED; Enables the Image Constraint For Analog Component Video Restriction in the license.
ImageConstraintForAnalogComponentVideoRestriction *bool
// REQUIRED; Enables the Image Constraint For Analog Component Video Restriction in the license.
ImageConstraintForAnalogComputerMonitorRestriction *bool
// Configures Automatic Gain Control (AGC) and Color Stripe in the license. Must be between 0 and 3 inclusive.
AgcAndColorStripeRestriction *int32
// Specifies the output protection level for compressed digital audio.
AnalogVideoOpl *int32
// Specifies the output protection level for compressed digital audio.
CompressedDigitalAudioOpl *int32
// Specifies the output protection level for compressed digital video.
CompressedDigitalVideoOpl *int32
// Configures the Explicit Analog Television Output Restriction in the license. Configuration data must be between 0 and 3
// inclusive.
ExplicitAnalogTelevisionOutputRestriction *ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction
// The amount of time that the license is valid after the license is first used to play content.
FirstPlayExpiration *string
// Configures the Serial Copy Management System (SCMS) in the license. Must be between 0 and 3 inclusive.
ScmsRestriction *int32
// Specifies the output protection level for uncompressed digital audio.
UncompressedDigitalAudioOpl *int32
// Specifies the output protection level for uncompressed digital video.
UncompressedDigitalVideoOpl *int32
}
// ContentKeyPolicyProperties - The properties of the Content Key Policy.
type ContentKeyPolicyProperties struct {
// REQUIRED; The Key Policy options.
Options []*ContentKeyPolicyOption
// A description for the Policy.
Description *string
// READ-ONLY; The creation date of the Policy
Created *time.Time
// READ-ONLY; The last modified date of the Policy
LastModified *time.Time
// READ-ONLY; The legacy Policy ID.
PolicyID *string
}
// ContentKeyPolicyRestriction - Base class for Content Key Policy restrictions. A derived class must be used to create a
// restriction.
type ContentKeyPolicyRestriction struct {
// REQUIRED; The discriminator for derived types.
ODataType *string
}
// GetContentKeyPolicyRestriction implements the ContentKeyPolicyRestrictionClassification interface for type ContentKeyPolicyRestriction.
func (c *ContentKeyPolicyRestriction) GetContentKeyPolicyRestriction() *ContentKeyPolicyRestriction {
return c
}
// ContentKeyPolicyRestrictionTokenKey - Base class for Content Key Policy key for token validation. A derived class must
// be used to create a token key.
type ContentKeyPolicyRestrictionTokenKey struct {
// REQUIRED; The discriminator for derived types.
ODataType *string
}
// GetContentKeyPolicyRestrictionTokenKey implements the ContentKeyPolicyRestrictionTokenKeyClassification interface for type
// ContentKeyPolicyRestrictionTokenKey.
func (c *ContentKeyPolicyRestrictionTokenKey) GetContentKeyPolicyRestrictionTokenKey() *ContentKeyPolicyRestrictionTokenKey {
return c
}
// ContentKeyPolicyRsaTokenKey - Specifies a RSA key for token validation
type ContentKeyPolicyRsaTokenKey struct {
// REQUIRED; The RSA Parameter exponent
Exponent []byte
// REQUIRED; The RSA Parameter modulus
Modulus []byte
// REQUIRED; The discriminator for derived types.
ODataType *string
}
// GetContentKeyPolicyRestrictionTokenKey implements the ContentKeyPolicyRestrictionTokenKeyClassification interface for type
// ContentKeyPolicyRsaTokenKey.
func (c *ContentKeyPolicyRsaTokenKey) GetContentKeyPolicyRestrictionTokenKey() *ContentKeyPolicyRestrictionTokenKey {
return &ContentKeyPolicyRestrictionTokenKey{
ODataType: c.ODataType,
}
}
// ContentKeyPolicySymmetricTokenKey - Specifies a symmetric key for token validation.
type ContentKeyPolicySymmetricTokenKey struct {
// REQUIRED; The key value of the key
KeyValue []byte
// REQUIRED; The discriminator for derived types.
ODataType *string
}
// GetContentKeyPolicyRestrictionTokenKey implements the ContentKeyPolicyRestrictionTokenKeyClassification interface for type
// ContentKeyPolicySymmetricTokenKey.
func (c *ContentKeyPolicySymmetricTokenKey) GetContentKeyPolicyRestrictionTokenKey() *ContentKeyPolicyRestrictionTokenKey {
return &ContentKeyPolicyRestrictionTokenKey{
ODataType: c.ODataType,
}
}