forked from shintovincent/azure-sdk-for-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
enums.go
909 lines (773 loc) · 48 KB
/
enums.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
package media
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
// AacAudioProfile enumerates the values for aac audio profile.
type AacAudioProfile string
const (
// AacLc Specifies that the output audio is to be encoded into AAC Low Complexity profile (AAC-LC).
AacLc AacAudioProfile = "AacLc"
// HeAacV1 Specifies that the output audio is to be encoded into HE-AAC v1 profile.
HeAacV1 AacAudioProfile = "HeAacV1"
// HeAacV2 Specifies that the output audio is to be encoded into HE-AAC v2 profile.
HeAacV2 AacAudioProfile = "HeAacV2"
)
// PossibleAacAudioProfileValues returns an array of possible values for the AacAudioProfile const type.
func PossibleAacAudioProfileValues() []AacAudioProfile {
return []AacAudioProfile{AacLc, HeAacV1, HeAacV2}
}
// AssetContainerPermission enumerates the values for asset container permission.
type AssetContainerPermission string
const (
// Read The SAS URL will allow read access to the container.
Read AssetContainerPermission = "Read"
// ReadWrite The SAS URL will allow read and write access to the container.
ReadWrite AssetContainerPermission = "ReadWrite"
// ReadWriteDelete The SAS URL will allow read, write and delete access to the container.
ReadWriteDelete AssetContainerPermission = "ReadWriteDelete"
)
// PossibleAssetContainerPermissionValues returns an array of possible values for the AssetContainerPermission const type.
func PossibleAssetContainerPermissionValues() []AssetContainerPermission {
return []AssetContainerPermission{Read, ReadWrite, ReadWriteDelete}
}
// AssetStorageEncryptionFormat enumerates the values for asset storage encryption format.
type AssetStorageEncryptionFormat string
const (
// MediaStorageClientEncryption The Asset is encrypted with Media Services client-side encryption.
MediaStorageClientEncryption AssetStorageEncryptionFormat = "MediaStorageClientEncryption"
// None The Asset does not use client-side storage encryption (this is the only allowed value for new
// Assets).
None AssetStorageEncryptionFormat = "None"
)
// PossibleAssetStorageEncryptionFormatValues returns an array of possible values for the AssetStorageEncryptionFormat const type.
func PossibleAssetStorageEncryptionFormatValues() []AssetStorageEncryptionFormat {
return []AssetStorageEncryptionFormat{MediaStorageClientEncryption, None}
}
// ContentKeyPolicyFairPlayRentalAndLeaseKeyType enumerates the values for content key policy fair play rental
// and lease key type.
type ContentKeyPolicyFairPlayRentalAndLeaseKeyType string
const (
// PersistentLimited Content key can be persisted and the valid duration is limited by the Rental Duration
// value
PersistentLimited ContentKeyPolicyFairPlayRentalAndLeaseKeyType = "PersistentLimited"
// PersistentUnlimited Content key can be persisted with an unlimited duration
PersistentUnlimited ContentKeyPolicyFairPlayRentalAndLeaseKeyType = "PersistentUnlimited"
// Undefined Key duration is not specified.
Undefined ContentKeyPolicyFairPlayRentalAndLeaseKeyType = "Undefined"
// Unknown Represents a ContentKeyPolicyFairPlayRentalAndLeaseKeyType that is unavailable in current API
// version.
Unknown ContentKeyPolicyFairPlayRentalAndLeaseKeyType = "Unknown"
)
// PossibleContentKeyPolicyFairPlayRentalAndLeaseKeyTypeValues returns an array of possible values for the ContentKeyPolicyFairPlayRentalAndLeaseKeyType const type.
func PossibleContentKeyPolicyFairPlayRentalAndLeaseKeyTypeValues() []ContentKeyPolicyFairPlayRentalAndLeaseKeyType {
return []ContentKeyPolicyFairPlayRentalAndLeaseKeyType{PersistentLimited, PersistentUnlimited, Undefined, Unknown}
}
// ContentKeyPolicyPlayReadyContentType enumerates the values for content key policy play ready content type.
type ContentKeyPolicyPlayReadyContentType string
const (
// ContentKeyPolicyPlayReadyContentTypeUltraVioletDownload Ultraviolet download content type.
ContentKeyPolicyPlayReadyContentTypeUltraVioletDownload ContentKeyPolicyPlayReadyContentType = "UltraVioletDownload"
// ContentKeyPolicyPlayReadyContentTypeUltraVioletStreaming Ultraviolet streaming content type.
ContentKeyPolicyPlayReadyContentTypeUltraVioletStreaming ContentKeyPolicyPlayReadyContentType = "UltraVioletStreaming"
// ContentKeyPolicyPlayReadyContentTypeUnknown Represents a ContentKeyPolicyPlayReadyContentType that is
// unavailable in current API version.
ContentKeyPolicyPlayReadyContentTypeUnknown ContentKeyPolicyPlayReadyContentType = "Unknown"
// ContentKeyPolicyPlayReadyContentTypeUnspecified Unspecified content type.
ContentKeyPolicyPlayReadyContentTypeUnspecified ContentKeyPolicyPlayReadyContentType = "Unspecified"
)
// PossibleContentKeyPolicyPlayReadyContentTypeValues returns an array of possible values for the ContentKeyPolicyPlayReadyContentType const type.
func PossibleContentKeyPolicyPlayReadyContentTypeValues() []ContentKeyPolicyPlayReadyContentType {
return []ContentKeyPolicyPlayReadyContentType{ContentKeyPolicyPlayReadyContentTypeUltraVioletDownload, ContentKeyPolicyPlayReadyContentTypeUltraVioletStreaming, ContentKeyPolicyPlayReadyContentTypeUnknown, ContentKeyPolicyPlayReadyContentTypeUnspecified}
}
// ContentKeyPolicyPlayReadyLicenseType enumerates the values for content key policy play ready license type.
type ContentKeyPolicyPlayReadyLicenseType string
const (
// ContentKeyPolicyPlayReadyLicenseTypeNonPersistent Non persistent license.
ContentKeyPolicyPlayReadyLicenseTypeNonPersistent ContentKeyPolicyPlayReadyLicenseType = "NonPersistent"
// ContentKeyPolicyPlayReadyLicenseTypePersistent Persistent license. Allows offline playback.
ContentKeyPolicyPlayReadyLicenseTypePersistent ContentKeyPolicyPlayReadyLicenseType = "Persistent"
// ContentKeyPolicyPlayReadyLicenseTypeUnknown Represents a ContentKeyPolicyPlayReadyLicenseType that is
// unavailable in current API version.
ContentKeyPolicyPlayReadyLicenseTypeUnknown ContentKeyPolicyPlayReadyLicenseType = "Unknown"
)
// PossibleContentKeyPolicyPlayReadyLicenseTypeValues returns an array of possible values for the ContentKeyPolicyPlayReadyLicenseType const type.
func PossibleContentKeyPolicyPlayReadyLicenseTypeValues() []ContentKeyPolicyPlayReadyLicenseType {
return []ContentKeyPolicyPlayReadyLicenseType{ContentKeyPolicyPlayReadyLicenseTypeNonPersistent, ContentKeyPolicyPlayReadyLicenseTypePersistent, ContentKeyPolicyPlayReadyLicenseTypeUnknown}
}
// ContentKeyPolicyPlayReadyUnknownOutputPassingOption enumerates the values for content key policy play ready
// unknown output passing option.
type ContentKeyPolicyPlayReadyUnknownOutputPassingOption string
const (
// ContentKeyPolicyPlayReadyUnknownOutputPassingOptionAllowed Passing the video portion of protected
// content to an Unknown Output is allowed.
ContentKeyPolicyPlayReadyUnknownOutputPassingOptionAllowed ContentKeyPolicyPlayReadyUnknownOutputPassingOption = "Allowed"
// ContentKeyPolicyPlayReadyUnknownOutputPassingOptionAllowedWithVideoConstriction Passing the video
// portion of protected content to an Unknown Output is allowed but with constrained resolution.
ContentKeyPolicyPlayReadyUnknownOutputPassingOptionAllowedWithVideoConstriction ContentKeyPolicyPlayReadyUnknownOutputPassingOption = "AllowedWithVideoConstriction"
// ContentKeyPolicyPlayReadyUnknownOutputPassingOptionNotAllowed Passing the video portion of protected
// content to an Unknown Output is not allowed.
ContentKeyPolicyPlayReadyUnknownOutputPassingOptionNotAllowed ContentKeyPolicyPlayReadyUnknownOutputPassingOption = "NotAllowed"
// ContentKeyPolicyPlayReadyUnknownOutputPassingOptionUnknown Represents a
// ContentKeyPolicyPlayReadyUnknownOutputPassingOption that is unavailable in current API version.
ContentKeyPolicyPlayReadyUnknownOutputPassingOptionUnknown ContentKeyPolicyPlayReadyUnknownOutputPassingOption = "Unknown"
)
// PossibleContentKeyPolicyPlayReadyUnknownOutputPassingOptionValues returns an array of possible values for the ContentKeyPolicyPlayReadyUnknownOutputPassingOption const type.
func PossibleContentKeyPolicyPlayReadyUnknownOutputPassingOptionValues() []ContentKeyPolicyPlayReadyUnknownOutputPassingOption {
return []ContentKeyPolicyPlayReadyUnknownOutputPassingOption{ContentKeyPolicyPlayReadyUnknownOutputPassingOptionAllowed, ContentKeyPolicyPlayReadyUnknownOutputPassingOptionAllowedWithVideoConstriction, ContentKeyPolicyPlayReadyUnknownOutputPassingOptionNotAllowed, ContentKeyPolicyPlayReadyUnknownOutputPassingOptionUnknown}
}
// ContentKeyPolicyRestrictionTokenType enumerates the values for content key policy restriction token type.
type ContentKeyPolicyRestrictionTokenType string
const (
// ContentKeyPolicyRestrictionTokenTypeJwt JSON Web Token.
ContentKeyPolicyRestrictionTokenTypeJwt ContentKeyPolicyRestrictionTokenType = "Jwt"
// ContentKeyPolicyRestrictionTokenTypeSwt Simple Web Token.
ContentKeyPolicyRestrictionTokenTypeSwt ContentKeyPolicyRestrictionTokenType = "Swt"
// ContentKeyPolicyRestrictionTokenTypeUnknown Represents a ContentKeyPolicyRestrictionTokenType that is
// unavailable in current API version.
ContentKeyPolicyRestrictionTokenTypeUnknown ContentKeyPolicyRestrictionTokenType = "Unknown"
)
// PossibleContentKeyPolicyRestrictionTokenTypeValues returns an array of possible values for the ContentKeyPolicyRestrictionTokenType const type.
func PossibleContentKeyPolicyRestrictionTokenTypeValues() []ContentKeyPolicyRestrictionTokenType {
return []ContentKeyPolicyRestrictionTokenType{ContentKeyPolicyRestrictionTokenTypeJwt, ContentKeyPolicyRestrictionTokenTypeSwt, ContentKeyPolicyRestrictionTokenTypeUnknown}
}
// DeinterlaceMode enumerates the values for deinterlace mode.
type DeinterlaceMode string
const (
// AutoPixelAdaptive Apply automatic pixel adaptive de-interlacing on each frame in the input video.
AutoPixelAdaptive DeinterlaceMode = "AutoPixelAdaptive"
// Off Disables de-interlacing of the source video.
Off DeinterlaceMode = "Off"
)
// PossibleDeinterlaceModeValues returns an array of possible values for the DeinterlaceMode const type.
func PossibleDeinterlaceModeValues() []DeinterlaceMode {
return []DeinterlaceMode{AutoPixelAdaptive, Off}
}
// DeinterlaceParity enumerates the values for deinterlace parity.
type DeinterlaceParity string
const (
// Auto Automatically detect the order of fields
Auto DeinterlaceParity = "Auto"
// BottomFieldFirst Apply bottom field first processing of input video.
BottomFieldFirst DeinterlaceParity = "BottomFieldFirst"
// TopFieldFirst Apply top field first processing of input video.
TopFieldFirst DeinterlaceParity = "TopFieldFirst"
)
// PossibleDeinterlaceParityValues returns an array of possible values for the DeinterlaceParity const type.
func PossibleDeinterlaceParityValues() []DeinterlaceParity {
return []DeinterlaceParity{Auto, BottomFieldFirst, TopFieldFirst}
}
// EncoderNamedPreset enumerates the values for encoder named preset.
type EncoderNamedPreset string
const (
// AACGoodQualityAudio Produces a single MP4 file containing only stereo audio encoded at 192 kbps.
AACGoodQualityAudio EncoderNamedPreset = "AACGoodQualityAudio"
// AdaptiveStreaming Produces a set of GOP aligned MP4 files with H.264 video and stereo AAC audio.
// Auto-generates a bitrate ladder based on the input resolution and bitrate. The auto-generated preset
// will never exceed the input resolution and bitrate. For example, if the input is 720p at 3 Mbps, output
// will remain 720p at best, and will start at rates lower than 3 Mbps. The output will have video and
// audio in separate MP4 files, which is optimal for adaptive streaming.
AdaptiveStreaming EncoderNamedPreset = "AdaptiveStreaming"
// H264MultipleBitrate1080p Produces a set of 8 GOP-aligned MP4 files, ranging from 6000 kbps to 400 kbps,
// and stereo AAC audio. Resolution starts at 1080p and goes down to 360p.
H264MultipleBitrate1080p EncoderNamedPreset = "H264MultipleBitrate1080p"
// H264MultipleBitrate720p Produces a set of 6 GOP-aligned MP4 files, ranging from 3400 kbps to 400 kbps,
// and stereo AAC audio. Resolution starts at 720p and goes down to 360p.
H264MultipleBitrate720p EncoderNamedPreset = "H264MultipleBitrate720p"
// H264MultipleBitrateSD Produces a set of 5 GOP-aligned MP4 files, ranging from 1600kbps to 400 kbps, and
// stereo AAC audio. Resolution starts at 480p and goes down to 360p.
H264MultipleBitrateSD EncoderNamedPreset = "H264MultipleBitrateSD"
)
// PossibleEncoderNamedPresetValues returns an array of possible values for the EncoderNamedPreset const type.
func PossibleEncoderNamedPresetValues() []EncoderNamedPreset {
return []EncoderNamedPreset{AACGoodQualityAudio, AdaptiveStreaming, H264MultipleBitrate1080p, H264MultipleBitrate720p, H264MultipleBitrateSD}
}
// EncryptionScheme enumerates the values for encryption scheme.
type EncryptionScheme string
const (
// EncryptionSchemeCommonEncryptionCbcs CommonEncryptionCbcs scheme
EncryptionSchemeCommonEncryptionCbcs EncryptionScheme = "CommonEncryptionCbcs"
// EncryptionSchemeCommonEncryptionCenc CommonEncryptionCenc scheme
EncryptionSchemeCommonEncryptionCenc EncryptionScheme = "CommonEncryptionCenc"
// EncryptionSchemeEnvelopeEncryption EnvelopeEncryption scheme
EncryptionSchemeEnvelopeEncryption EncryptionScheme = "EnvelopeEncryption"
// EncryptionSchemeNoEncryption NoEncryption scheme
EncryptionSchemeNoEncryption EncryptionScheme = "NoEncryption"
)
// PossibleEncryptionSchemeValues returns an array of possible values for the EncryptionScheme const type.
func PossibleEncryptionSchemeValues() []EncryptionScheme {
return []EncryptionScheme{EncryptionSchemeCommonEncryptionCbcs, EncryptionSchemeCommonEncryptionCenc, EncryptionSchemeEnvelopeEncryption, EncryptionSchemeNoEncryption}
}
// EntropyMode enumerates the values for entropy mode.
type EntropyMode string
const (
// Cabac Context Adaptive Binary Arithmetic Coder (CABAC) entropy encoding.
Cabac EntropyMode = "Cabac"
// Cavlc Context Adaptive Variable Length Coder (CAVLC) entropy encoding.
Cavlc EntropyMode = "Cavlc"
)
// PossibleEntropyModeValues returns an array of possible values for the EntropyMode const type.
func PossibleEntropyModeValues() []EntropyMode {
return []EntropyMode{Cabac, Cavlc}
}
// H264Complexity enumerates the values for h264 complexity.
type H264Complexity string
const (
// Balanced Tells the encoder to use settings that achieve a balance between speed and quality.
Balanced H264Complexity = "Balanced"
// Quality Tells the encoder to use settings that are optimized to produce higher quality output at the
// expense of slower overall encode time.
Quality H264Complexity = "Quality"
// Speed Tells the encoder to use settings that are optimized for faster encoding. Quality is sacrificed to
// decrease encoding time.
Speed H264Complexity = "Speed"
)
// PossibleH264ComplexityValues returns an array of possible values for the H264Complexity const type.
func PossibleH264ComplexityValues() []H264Complexity {
return []H264Complexity{Balanced, Quality, Speed}
}
// H264VideoProfile enumerates the values for h264 video profile.
type H264VideoProfile string
const (
// H264VideoProfileAuto Tells the encoder to automatically determine the appropriate H.264 profile.
H264VideoProfileAuto H264VideoProfile = "Auto"
// H264VideoProfileBaseline Baseline profile
H264VideoProfileBaseline H264VideoProfile = "Baseline"
// H264VideoProfileHigh High profile.
H264VideoProfileHigh H264VideoProfile = "High"
// H264VideoProfileHigh422 High 4:2:2 profile.
H264VideoProfileHigh422 H264VideoProfile = "High422"
// H264VideoProfileHigh444 High 4:4:4 predictive profile.
H264VideoProfileHigh444 H264VideoProfile = "High444"
// H264VideoProfileMain Main profile
H264VideoProfileMain H264VideoProfile = "Main"
)
// PossibleH264VideoProfileValues returns an array of possible values for the H264VideoProfile const type.
func PossibleH264VideoProfileValues() []H264VideoProfile {
return []H264VideoProfile{H264VideoProfileAuto, H264VideoProfileBaseline, H264VideoProfileHigh, H264VideoProfileHigh422, H264VideoProfileHigh444, H264VideoProfileMain}
}
// JobErrorCategory enumerates the values for job error category.
type JobErrorCategory string
const (
// JobErrorCategoryConfiguration The error is configuration related.
JobErrorCategoryConfiguration JobErrorCategory = "Configuration"
// JobErrorCategoryContent The error is related to data in the input files.
JobErrorCategoryContent JobErrorCategory = "Content"
// JobErrorCategoryDownload The error is download related.
JobErrorCategoryDownload JobErrorCategory = "Download"
// JobErrorCategoryService The error is service related.
JobErrorCategoryService JobErrorCategory = "Service"
// JobErrorCategoryUpload The error is upload related.
JobErrorCategoryUpload JobErrorCategory = "Upload"
)
// PossibleJobErrorCategoryValues returns an array of possible values for the JobErrorCategory const type.
func PossibleJobErrorCategoryValues() []JobErrorCategory {
return []JobErrorCategory{JobErrorCategoryConfiguration, JobErrorCategoryContent, JobErrorCategoryDownload, JobErrorCategoryService, JobErrorCategoryUpload}
}
// JobErrorCode enumerates the values for job error code.
type JobErrorCode string
const (
// ConfigurationUnsupported There was a problem with the combination of input files and the configuration
// settings applied, fix the configuration settings and retry with the same input, or change input to match
// the configuration.
ConfigurationUnsupported JobErrorCode = "ConfigurationUnsupported"
// ContentMalformed There was a problem with the input content (for example: zero byte files, or
// corrupt/non-decodable files), check the input files.
ContentMalformed JobErrorCode = "ContentMalformed"
// ContentUnsupported There was a problem with the format of the input (not valid media file, or an
// unsupported file/codec), check the validity of the input files.
ContentUnsupported JobErrorCode = "ContentUnsupported"
// DownloadNotAccessible While trying to download the input files, the files were not accessible, please
// check the availability of the source.
DownloadNotAccessible JobErrorCode = "DownloadNotAccessible"
// DownloadTransientError While trying to download the input files, there was an issue during transfer
// (storage service, network errors), see details and check your source.
DownloadTransientError JobErrorCode = "DownloadTransientError"
// ServiceError Fatal service error, please contact support.
ServiceError JobErrorCode = "ServiceError"
// ServiceTransientError Transient error, please retry, if retry is unsuccessful, please contact support.
ServiceTransientError JobErrorCode = "ServiceTransientError"
// UploadNotAccessible While trying to upload the output files, the destination was not reachable, please
// check the availability of the destination.
UploadNotAccessible JobErrorCode = "UploadNotAccessible"
// UploadTransientError While trying to upload the output files, there was an issue during transfer
// (storage service, network errors), see details and check your destination.
UploadTransientError JobErrorCode = "UploadTransientError"
)
// PossibleJobErrorCodeValues returns an array of possible values for the JobErrorCode const type.
func PossibleJobErrorCodeValues() []JobErrorCode {
return []JobErrorCode{ConfigurationUnsupported, ContentMalformed, ContentUnsupported, DownloadNotAccessible, DownloadTransientError, ServiceError, ServiceTransientError, UploadNotAccessible, UploadTransientError}
}
// JobRetry enumerates the values for job retry.
type JobRetry string
const (
// DoNotRetry Issue needs to be investigated and then the job resubmitted with corrections or retried once
// the underlying issue has been corrected.
DoNotRetry JobRetry = "DoNotRetry"
// MayRetry Issue may be resolved after waiting for a period of time and resubmitting the same Job.
MayRetry JobRetry = "MayRetry"
)
// PossibleJobRetryValues returns an array of possible values for the JobRetry const type.
func PossibleJobRetryValues() []JobRetry {
return []JobRetry{DoNotRetry, MayRetry}
}
// JobState enumerates the values for job state.
type JobState string
const (
// Canceled The job was canceled. This is a final state for the job.
Canceled JobState = "Canceled"
// Canceling The job is in the process of being canceled. This is a transient state for the job.
Canceling JobState = "Canceling"
// Error The job has encountered an error. This is a final state for the job.
Error JobState = "Error"
// Finished The job is finished. This is a final state for the job.
Finished JobState = "Finished"
// Processing The job is processing. This is a transient state for the job.
Processing JobState = "Processing"
// Queued The job is in a queued state, waiting for resources to become available. This is a transient
// state.
Queued JobState = "Queued"
// Scheduled The job is being scheduled to run on an available resource. This is a transient state, between
// queued and processing states.
Scheduled JobState = "Scheduled"
)
// PossibleJobStateValues returns an array of possible values for the JobState const type.
func PossibleJobStateValues() []JobState {
return []JobState{Canceled, Canceling, Error, Finished, Processing, Queued, Scheduled}
}
// LiveEventEncodingType enumerates the values for live event encoding type.
type LiveEventEncodingType string
const (
// LiveEventEncodingTypeBasic ...
LiveEventEncodingTypeBasic LiveEventEncodingType = "Basic"
// LiveEventEncodingTypeNone ...
LiveEventEncodingTypeNone LiveEventEncodingType = "None"
)
// PossibleLiveEventEncodingTypeValues returns an array of possible values for the LiveEventEncodingType const type.
func PossibleLiveEventEncodingTypeValues() []LiveEventEncodingType {
return []LiveEventEncodingType{LiveEventEncodingTypeBasic, LiveEventEncodingTypeNone}
}
// LiveEventInputProtocol enumerates the values for live event input protocol.
type LiveEventInputProtocol string
const (
// FragmentedMP4 ...
FragmentedMP4 LiveEventInputProtocol = "FragmentedMP4"
// RTMP ...
RTMP LiveEventInputProtocol = "RTMP"
)
// PossibleLiveEventInputProtocolValues returns an array of possible values for the LiveEventInputProtocol const type.
func PossibleLiveEventInputProtocolValues() []LiveEventInputProtocol {
return []LiveEventInputProtocol{FragmentedMP4, RTMP}
}
// LiveEventResourceState enumerates the values for live event resource state.
type LiveEventResourceState string
const (
// Deleting ...
Deleting LiveEventResourceState = "Deleting"
// Running ...
Running LiveEventResourceState = "Running"
// Starting ...
Starting LiveEventResourceState = "Starting"
// Stopped ...
Stopped LiveEventResourceState = "Stopped"
// Stopping ...
Stopping LiveEventResourceState = "Stopping"
)
// PossibleLiveEventResourceStateValues returns an array of possible values for the LiveEventResourceState const type.
func PossibleLiveEventResourceStateValues() []LiveEventResourceState {
return []LiveEventResourceState{Deleting, Running, Starting, Stopped, Stopping}
}
// LiveOutputResourceState enumerates the values for live output resource state.
type LiveOutputResourceState string
const (
// LiveOutputResourceStateCreating ...
LiveOutputResourceStateCreating LiveOutputResourceState = "Creating"
// LiveOutputResourceStateDeleting ...
LiveOutputResourceStateDeleting LiveOutputResourceState = "Deleting"
// LiveOutputResourceStateRunning ...
LiveOutputResourceStateRunning LiveOutputResourceState = "Running"
)
// PossibleLiveOutputResourceStateValues returns an array of possible values for the LiveOutputResourceState const type.
func PossibleLiveOutputResourceStateValues() []LiveOutputResourceState {
return []LiveOutputResourceState{LiveOutputResourceStateCreating, LiveOutputResourceStateDeleting, LiveOutputResourceStateRunning}
}
// OdataType enumerates the values for odata type.
type OdataType string
const (
// OdataTypeContentKeyPolicyPlayReadyContentKeyLocation ...
OdataTypeContentKeyPolicyPlayReadyContentKeyLocation OdataType = "ContentKeyPolicyPlayReadyContentKeyLocation"
// OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader ...
OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader OdataType = "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader"
// OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier ...
OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier OdataType = "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier"
)
// PossibleOdataTypeValues returns an array of possible values for the OdataType const type.
func PossibleOdataTypeValues() []OdataType {
return []OdataType{OdataTypeContentKeyPolicyPlayReadyContentKeyLocation, OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader, OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier}
}
// OdataTypeBasicCodec enumerates the values for odata type basic codec.
type OdataTypeBasicCodec string
const (
// OdataTypeCodec ...
OdataTypeCodec OdataTypeBasicCodec = "Codec"
// OdataTypeMicrosoftMediaAacAudio ...
OdataTypeMicrosoftMediaAacAudio OdataTypeBasicCodec = "#Microsoft.Media.AacAudio"
// OdataTypeMicrosoftMediaAudio ...
OdataTypeMicrosoftMediaAudio OdataTypeBasicCodec = "#Microsoft.Media.Audio"
// OdataTypeMicrosoftMediaCopyAudio ...
OdataTypeMicrosoftMediaCopyAudio OdataTypeBasicCodec = "#Microsoft.Media.CopyAudio"
// OdataTypeMicrosoftMediaCopyVideo ...
OdataTypeMicrosoftMediaCopyVideo OdataTypeBasicCodec = "#Microsoft.Media.CopyVideo"
// OdataTypeMicrosoftMediaH264Video ...
OdataTypeMicrosoftMediaH264Video OdataTypeBasicCodec = "#Microsoft.Media.H264Video"
// OdataTypeMicrosoftMediaImage ...
OdataTypeMicrosoftMediaImage OdataTypeBasicCodec = "#Microsoft.Media.Image"
// OdataTypeMicrosoftMediaJpgImage ...
OdataTypeMicrosoftMediaJpgImage OdataTypeBasicCodec = "#Microsoft.Media.JpgImage"
// OdataTypeMicrosoftMediaPngImage ...
OdataTypeMicrosoftMediaPngImage OdataTypeBasicCodec = "#Microsoft.Media.PngImage"
// OdataTypeMicrosoftMediaVideo ...
OdataTypeMicrosoftMediaVideo OdataTypeBasicCodec = "#Microsoft.Media.Video"
)
// PossibleOdataTypeBasicCodecValues returns an array of possible values for the OdataTypeBasicCodec const type.
func PossibleOdataTypeBasicCodecValues() []OdataTypeBasicCodec {
return []OdataTypeBasicCodec{OdataTypeCodec, OdataTypeMicrosoftMediaAacAudio, OdataTypeMicrosoftMediaAudio, OdataTypeMicrosoftMediaCopyAudio, OdataTypeMicrosoftMediaCopyVideo, OdataTypeMicrosoftMediaH264Video, OdataTypeMicrosoftMediaImage, OdataTypeMicrosoftMediaJpgImage, OdataTypeMicrosoftMediaPngImage, OdataTypeMicrosoftMediaVideo}
}
// OdataTypeBasicContentKeyPolicyConfiguration enumerates the values for odata type basic content key policy
// configuration.
type OdataTypeBasicContentKeyPolicyConfiguration string
const (
// OdataTypeContentKeyPolicyConfiguration ...
OdataTypeContentKeyPolicyConfiguration OdataTypeBasicContentKeyPolicyConfiguration = "ContentKeyPolicyConfiguration"
// OdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration ...
OdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration OdataTypeBasicContentKeyPolicyConfiguration = "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration"
// OdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration ...
OdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration OdataTypeBasicContentKeyPolicyConfiguration = "#Microsoft.Media.ContentKeyPolicyFairPlayConfiguration"
// OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration ...
OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration OdataTypeBasicContentKeyPolicyConfiguration = "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration"
// OdataTypeMicrosoftMediaContentKeyPolicyUnknownConfiguration ...
OdataTypeMicrosoftMediaContentKeyPolicyUnknownConfiguration OdataTypeBasicContentKeyPolicyConfiguration = "#Microsoft.Media.ContentKeyPolicyUnknownConfiguration"
// OdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration ...
OdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration OdataTypeBasicContentKeyPolicyConfiguration = "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration"
)
// PossibleOdataTypeBasicContentKeyPolicyConfigurationValues returns an array of possible values for the OdataTypeBasicContentKeyPolicyConfiguration const type.
func PossibleOdataTypeBasicContentKeyPolicyConfigurationValues() []OdataTypeBasicContentKeyPolicyConfiguration {
return []OdataTypeBasicContentKeyPolicyConfiguration{OdataTypeContentKeyPolicyConfiguration, OdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration, OdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration, OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration, OdataTypeMicrosoftMediaContentKeyPolicyUnknownConfiguration, OdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration}
}
// OdataTypeBasicContentKeyPolicyRestriction enumerates the values for odata type basic content key policy
// restriction.
type OdataTypeBasicContentKeyPolicyRestriction string
const (
// OdataTypeContentKeyPolicyRestriction ...
OdataTypeContentKeyPolicyRestriction OdataTypeBasicContentKeyPolicyRestriction = "ContentKeyPolicyRestriction"
// OdataTypeMicrosoftMediaContentKeyPolicyOpenRestriction ...
OdataTypeMicrosoftMediaContentKeyPolicyOpenRestriction OdataTypeBasicContentKeyPolicyRestriction = "#Microsoft.Media.ContentKeyPolicyOpenRestriction"
// OdataTypeMicrosoftMediaContentKeyPolicyTokenRestriction ...
OdataTypeMicrosoftMediaContentKeyPolicyTokenRestriction OdataTypeBasicContentKeyPolicyRestriction = "#Microsoft.Media.ContentKeyPolicyTokenRestriction"
// OdataTypeMicrosoftMediaContentKeyPolicyUnknownRestriction ...
OdataTypeMicrosoftMediaContentKeyPolicyUnknownRestriction OdataTypeBasicContentKeyPolicyRestriction = "#Microsoft.Media.ContentKeyPolicyUnknownRestriction"
)
// PossibleOdataTypeBasicContentKeyPolicyRestrictionValues returns an array of possible values for the OdataTypeBasicContentKeyPolicyRestriction const type.
func PossibleOdataTypeBasicContentKeyPolicyRestrictionValues() []OdataTypeBasicContentKeyPolicyRestriction {
return []OdataTypeBasicContentKeyPolicyRestriction{OdataTypeContentKeyPolicyRestriction, OdataTypeMicrosoftMediaContentKeyPolicyOpenRestriction, OdataTypeMicrosoftMediaContentKeyPolicyTokenRestriction, OdataTypeMicrosoftMediaContentKeyPolicyUnknownRestriction}
}
// OdataTypeBasicContentKeyPolicyRestrictionTokenKey enumerates the values for odata type basic content key
// policy restriction token key.
type OdataTypeBasicContentKeyPolicyRestrictionTokenKey string
const (
// OdataTypeContentKeyPolicyRestrictionTokenKey ...
OdataTypeContentKeyPolicyRestrictionTokenKey OdataTypeBasicContentKeyPolicyRestrictionTokenKey = "ContentKeyPolicyRestrictionTokenKey"
// OdataTypeMicrosoftMediaContentKeyPolicyRsaTokenKey ...
OdataTypeMicrosoftMediaContentKeyPolicyRsaTokenKey OdataTypeBasicContentKeyPolicyRestrictionTokenKey = "#Microsoft.Media.ContentKeyPolicyRsaTokenKey"
// OdataTypeMicrosoftMediaContentKeyPolicySymmetricTokenKey ...
OdataTypeMicrosoftMediaContentKeyPolicySymmetricTokenKey OdataTypeBasicContentKeyPolicyRestrictionTokenKey = "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey"
// OdataTypeMicrosoftMediaContentKeyPolicyX509CertificateTokenKey ...
OdataTypeMicrosoftMediaContentKeyPolicyX509CertificateTokenKey OdataTypeBasicContentKeyPolicyRestrictionTokenKey = "#Microsoft.Media.ContentKeyPolicyX509CertificateTokenKey"
)
// PossibleOdataTypeBasicContentKeyPolicyRestrictionTokenKeyValues returns an array of possible values for the OdataTypeBasicContentKeyPolicyRestrictionTokenKey const type.
func PossibleOdataTypeBasicContentKeyPolicyRestrictionTokenKeyValues() []OdataTypeBasicContentKeyPolicyRestrictionTokenKey {
return []OdataTypeBasicContentKeyPolicyRestrictionTokenKey{OdataTypeContentKeyPolicyRestrictionTokenKey, OdataTypeMicrosoftMediaContentKeyPolicyRsaTokenKey, OdataTypeMicrosoftMediaContentKeyPolicySymmetricTokenKey, OdataTypeMicrosoftMediaContentKeyPolicyX509CertificateTokenKey}
}
// OdataTypeBasicFormat enumerates the values for odata type basic format.
type OdataTypeBasicFormat string
const (
// OdataTypeFormat ...
OdataTypeFormat OdataTypeBasicFormat = "Format"
// OdataTypeMicrosoftMediaImageFormat ...
OdataTypeMicrosoftMediaImageFormat OdataTypeBasicFormat = "#Microsoft.Media.ImageFormat"
// OdataTypeMicrosoftMediaJpgFormat ...
OdataTypeMicrosoftMediaJpgFormat OdataTypeBasicFormat = "#Microsoft.Media.JpgFormat"
// OdataTypeMicrosoftMediaMp4Format ...
OdataTypeMicrosoftMediaMp4Format OdataTypeBasicFormat = "#Microsoft.Media.Mp4Format"
// OdataTypeMicrosoftMediaMultiBitrateFormat ...
OdataTypeMicrosoftMediaMultiBitrateFormat OdataTypeBasicFormat = "#Microsoft.Media.MultiBitrateFormat"
// OdataTypeMicrosoftMediaPngFormat ...
OdataTypeMicrosoftMediaPngFormat OdataTypeBasicFormat = "#Microsoft.Media.PngFormat"
// OdataTypeMicrosoftMediaTransportStreamFormat ...
OdataTypeMicrosoftMediaTransportStreamFormat OdataTypeBasicFormat = "#Microsoft.Media.TransportStreamFormat"
)
// PossibleOdataTypeBasicFormatValues returns an array of possible values for the OdataTypeBasicFormat const type.
func PossibleOdataTypeBasicFormatValues() []OdataTypeBasicFormat {
return []OdataTypeBasicFormat{OdataTypeFormat, OdataTypeMicrosoftMediaImageFormat, OdataTypeMicrosoftMediaJpgFormat, OdataTypeMicrosoftMediaMp4Format, OdataTypeMicrosoftMediaMultiBitrateFormat, OdataTypeMicrosoftMediaPngFormat, OdataTypeMicrosoftMediaTransportStreamFormat}
}
// OdataTypeBasicJobInput enumerates the values for odata type basic job input.
type OdataTypeBasicJobInput string
const (
// OdataTypeJobInput ...
OdataTypeJobInput OdataTypeBasicJobInput = "JobInput"
// OdataTypeMicrosoftMediaJobInputAsset ...
OdataTypeMicrosoftMediaJobInputAsset OdataTypeBasicJobInput = "#Microsoft.Media.JobInputAsset"
// OdataTypeMicrosoftMediaJobInputClip ...
OdataTypeMicrosoftMediaJobInputClip OdataTypeBasicJobInput = "#Microsoft.Media.JobInputClip"
// OdataTypeMicrosoftMediaJobInputHTTP ...
OdataTypeMicrosoftMediaJobInputHTTP OdataTypeBasicJobInput = "#Microsoft.Media.JobInputHttp"
// OdataTypeMicrosoftMediaJobInputs ...
OdataTypeMicrosoftMediaJobInputs OdataTypeBasicJobInput = "#Microsoft.Media.JobInputs"
)
// PossibleOdataTypeBasicJobInputValues returns an array of possible values for the OdataTypeBasicJobInput const type.
func PossibleOdataTypeBasicJobInputValues() []OdataTypeBasicJobInput {
return []OdataTypeBasicJobInput{OdataTypeJobInput, OdataTypeMicrosoftMediaJobInputAsset, OdataTypeMicrosoftMediaJobInputClip, OdataTypeMicrosoftMediaJobInputHTTP, OdataTypeMicrosoftMediaJobInputs}
}
// OdataTypeBasicJobOutput enumerates the values for odata type basic job output.
type OdataTypeBasicJobOutput string
const (
// OdataTypeJobOutput ...
OdataTypeJobOutput OdataTypeBasicJobOutput = "JobOutput"
// OdataTypeMicrosoftMediaJobOutputAsset ...
OdataTypeMicrosoftMediaJobOutputAsset OdataTypeBasicJobOutput = "#Microsoft.Media.JobOutputAsset"
)
// PossibleOdataTypeBasicJobOutputValues returns an array of possible values for the OdataTypeBasicJobOutput const type.
func PossibleOdataTypeBasicJobOutputValues() []OdataTypeBasicJobOutput {
return []OdataTypeBasicJobOutput{OdataTypeJobOutput, OdataTypeMicrosoftMediaJobOutputAsset}
}
// OdataTypeBasicLayer enumerates the values for odata type basic layer.
type OdataTypeBasicLayer string
const (
// OdataTypeLayer ...
OdataTypeLayer OdataTypeBasicLayer = "Layer"
// OdataTypeMicrosoftMediaH264Layer ...
OdataTypeMicrosoftMediaH264Layer OdataTypeBasicLayer = "#Microsoft.Media.H264Layer"
// OdataTypeMicrosoftMediaJpgLayer ...
OdataTypeMicrosoftMediaJpgLayer OdataTypeBasicLayer = "#Microsoft.Media.JpgLayer"
// OdataTypeMicrosoftMediaPngLayer ...
OdataTypeMicrosoftMediaPngLayer OdataTypeBasicLayer = "#Microsoft.Media.PngLayer"
// OdataTypeMicrosoftMediaVideoLayer ...
OdataTypeMicrosoftMediaVideoLayer OdataTypeBasicLayer = "#Microsoft.Media.VideoLayer"
)
// PossibleOdataTypeBasicLayerValues returns an array of possible values for the OdataTypeBasicLayer const type.
func PossibleOdataTypeBasicLayerValues() []OdataTypeBasicLayer {
return []OdataTypeBasicLayer{OdataTypeLayer, OdataTypeMicrosoftMediaH264Layer, OdataTypeMicrosoftMediaJpgLayer, OdataTypeMicrosoftMediaPngLayer, OdataTypeMicrosoftMediaVideoLayer}
}
// OdataTypeBasicOverlay enumerates the values for odata type basic overlay.
type OdataTypeBasicOverlay string
const (
// OdataTypeMicrosoftMediaAudioOverlay ...
OdataTypeMicrosoftMediaAudioOverlay OdataTypeBasicOverlay = "#Microsoft.Media.AudioOverlay"
// OdataTypeMicrosoftMediaVideoOverlay ...
OdataTypeMicrosoftMediaVideoOverlay OdataTypeBasicOverlay = "#Microsoft.Media.VideoOverlay"
// OdataTypeOverlay ...
OdataTypeOverlay OdataTypeBasicOverlay = "Overlay"
)
// PossibleOdataTypeBasicOverlayValues returns an array of possible values for the OdataTypeBasicOverlay const type.
func PossibleOdataTypeBasicOverlayValues() []OdataTypeBasicOverlay {
return []OdataTypeBasicOverlay{OdataTypeMicrosoftMediaAudioOverlay, OdataTypeMicrosoftMediaVideoOverlay, OdataTypeOverlay}
}
// OdataTypeBasicPreset enumerates the values for odata type basic preset.
type OdataTypeBasicPreset string
const (
// OdataTypeMicrosoftMediaAudioAnalyzerPreset ...
OdataTypeMicrosoftMediaAudioAnalyzerPreset OdataTypeBasicPreset = "#Microsoft.Media.AudioAnalyzerPreset"
// OdataTypeMicrosoftMediaBuiltInStandardEncoderPreset ...
OdataTypeMicrosoftMediaBuiltInStandardEncoderPreset OdataTypeBasicPreset = "#Microsoft.Media.BuiltInStandardEncoderPreset"
// OdataTypeMicrosoftMediaStandardEncoderPreset ...
OdataTypeMicrosoftMediaStandardEncoderPreset OdataTypeBasicPreset = "#Microsoft.Media.StandardEncoderPreset"
// OdataTypeMicrosoftMediaVideoAnalyzerPreset ...
OdataTypeMicrosoftMediaVideoAnalyzerPreset OdataTypeBasicPreset = "#Microsoft.Media.VideoAnalyzerPreset"
// OdataTypePreset ...
OdataTypePreset OdataTypeBasicPreset = "Preset"
)
// PossibleOdataTypeBasicPresetValues returns an array of possible values for the OdataTypeBasicPreset const type.
func PossibleOdataTypeBasicPresetValues() []OdataTypeBasicPreset {
return []OdataTypeBasicPreset{OdataTypeMicrosoftMediaAudioAnalyzerPreset, OdataTypeMicrosoftMediaBuiltInStandardEncoderPreset, OdataTypeMicrosoftMediaStandardEncoderPreset, OdataTypeMicrosoftMediaVideoAnalyzerPreset, OdataTypePreset}
}
// OnErrorType enumerates the values for on error type.
type OnErrorType string
const (
// ContinueJob Tells the service that if this TransformOutput fails, then allow any other TransformOutput
// to continue.
ContinueJob OnErrorType = "ContinueJob"
// StopProcessingJob Tells the service that if this TransformOutput fails, then any other incomplete
// TransformOutputs can be stopped.
StopProcessingJob OnErrorType = "StopProcessingJob"
)
// PossibleOnErrorTypeValues returns an array of possible values for the OnErrorType const type.
func PossibleOnErrorTypeValues() []OnErrorType {
return []OnErrorType{ContinueJob, StopProcessingJob}
}
// Priority enumerates the values for priority.
type Priority string
const (
// High Used for TransformOutputs that should take precedence over others.
High Priority = "High"
// Low Used for TransformOutputs that can be generated after Normal and High priority TransformOutputs.
Low Priority = "Low"
// Normal Used for TransformOutputs that can be generated at Normal priority.
Normal Priority = "Normal"
)
// PossiblePriorityValues returns an array of possible values for the Priority const type.
func PossiblePriorityValues() []Priority {
return []Priority{High, Low, Normal}
}
// Rotation enumerates the values for rotation.
type Rotation string
const (
// RotationAuto Automatically detect and rotate as needed.
RotationAuto Rotation = "Auto"
// RotationNone Do not rotate the video. If the output format supports it, any metadata about rotation is
// kept intact.
RotationNone Rotation = "None"
// RotationRotate0 Do not rotate the video but remove any metadata about the rotation.
RotationRotate0 Rotation = "Rotate0"
// RotationRotate180 Rotate 180 degrees clockwise.
RotationRotate180 Rotation = "Rotate180"
// RotationRotate270 Rotate 270 degrees clockwise.
RotationRotate270 Rotation = "Rotate270"
// RotationRotate90 Rotate 90 degrees clockwise.
RotationRotate90 Rotation = "Rotate90"
)
// PossibleRotationValues returns an array of possible values for the Rotation const type.
func PossibleRotationValues() []Rotation {
return []Rotation{RotationAuto, RotationNone, RotationRotate0, RotationRotate180, RotationRotate270, RotationRotate90}
}
// StorageAccountType enumerates the values for storage account type.
type StorageAccountType string
const (
// Primary The primary storage account for the Media Services account.
Primary StorageAccountType = "Primary"
// Secondary A secondary storage account for the Media Services account.
Secondary StorageAccountType = "Secondary"
)
// PossibleStorageAccountTypeValues returns an array of possible values for the StorageAccountType const type.
func PossibleStorageAccountTypeValues() []StorageAccountType {
return []StorageAccountType{Primary, Secondary}
}
// StreamingEndpointResourceState enumerates the values for streaming endpoint resource state.
type StreamingEndpointResourceState string
const (
// StreamingEndpointResourceStateDeleting ...
StreamingEndpointResourceStateDeleting StreamingEndpointResourceState = "Deleting"
// StreamingEndpointResourceStateRunning ...
StreamingEndpointResourceStateRunning StreamingEndpointResourceState = "Running"
// StreamingEndpointResourceStateScaling ...
StreamingEndpointResourceStateScaling StreamingEndpointResourceState = "Scaling"
// StreamingEndpointResourceStateStarting ...
StreamingEndpointResourceStateStarting StreamingEndpointResourceState = "Starting"
// StreamingEndpointResourceStateStopped ...
StreamingEndpointResourceStateStopped StreamingEndpointResourceState = "Stopped"
// StreamingEndpointResourceStateStopping ...
StreamingEndpointResourceStateStopping StreamingEndpointResourceState = "Stopping"
)
// PossibleStreamingEndpointResourceStateValues returns an array of possible values for the StreamingEndpointResourceState const type.
func PossibleStreamingEndpointResourceStateValues() []StreamingEndpointResourceState {
return []StreamingEndpointResourceState{StreamingEndpointResourceStateDeleting, StreamingEndpointResourceStateRunning, StreamingEndpointResourceStateScaling, StreamingEndpointResourceStateStarting, StreamingEndpointResourceStateStopped, StreamingEndpointResourceStateStopping}
}
// StreamingLocatorContentKeyType enumerates the values for streaming locator content key type.
type StreamingLocatorContentKeyType string
const (
// StreamingLocatorContentKeyTypeCommonEncryptionCbcs Common Encryption using CBCS
StreamingLocatorContentKeyTypeCommonEncryptionCbcs StreamingLocatorContentKeyType = "CommonEncryptionCbcs"
// StreamingLocatorContentKeyTypeCommonEncryptionCenc Common Encryption using CENC
StreamingLocatorContentKeyTypeCommonEncryptionCenc StreamingLocatorContentKeyType = "CommonEncryptionCenc"
// StreamingLocatorContentKeyTypeEnvelopeEncryption Envelope Encryption
StreamingLocatorContentKeyTypeEnvelopeEncryption StreamingLocatorContentKeyType = "EnvelopeEncryption"
)
// PossibleStreamingLocatorContentKeyTypeValues returns an array of possible values for the StreamingLocatorContentKeyType const type.
func PossibleStreamingLocatorContentKeyTypeValues() []StreamingLocatorContentKeyType {
return []StreamingLocatorContentKeyType{StreamingLocatorContentKeyTypeCommonEncryptionCbcs, StreamingLocatorContentKeyTypeCommonEncryptionCenc, StreamingLocatorContentKeyTypeEnvelopeEncryption}
}
// StreamingPolicyStreamingProtocol enumerates the values for streaming policy streaming protocol.
type StreamingPolicyStreamingProtocol string
const (
// StreamingPolicyStreamingProtocolDash DASH protocol
StreamingPolicyStreamingProtocolDash StreamingPolicyStreamingProtocol = "Dash"
// StreamingPolicyStreamingProtocolDownload Download protocol
StreamingPolicyStreamingProtocolDownload StreamingPolicyStreamingProtocol = "Download"
// StreamingPolicyStreamingProtocolHls HLS protocol
StreamingPolicyStreamingProtocolHls StreamingPolicyStreamingProtocol = "Hls"
// StreamingPolicyStreamingProtocolSmoothStreaming SmoothStreaming protocol
StreamingPolicyStreamingProtocolSmoothStreaming StreamingPolicyStreamingProtocol = "SmoothStreaming"
)
// PossibleStreamingPolicyStreamingProtocolValues returns an array of possible values for the StreamingPolicyStreamingProtocol const type.
func PossibleStreamingPolicyStreamingProtocolValues() []StreamingPolicyStreamingProtocol {
return []StreamingPolicyStreamingProtocol{StreamingPolicyStreamingProtocolDash, StreamingPolicyStreamingProtocolDownload, StreamingPolicyStreamingProtocolHls, StreamingPolicyStreamingProtocolSmoothStreaming}
}
// StreamOptionsFlag enumerates the values for stream options flag.
type StreamOptionsFlag string
const (
// Default ...
Default StreamOptionsFlag = "Default"
// LowLatency ...
LowLatency StreamOptionsFlag = "LowLatency"
)
// PossibleStreamOptionsFlagValues returns an array of possible values for the StreamOptionsFlag const type.
func PossibleStreamOptionsFlagValues() []StreamOptionsFlag {
return []StreamOptionsFlag{Default, LowLatency}
}
// StretchMode enumerates the values for stretch mode.
type StretchMode string
const (
// StretchModeAutoFit Pad the output (with either letterbox or pillar box) to honor the output resolution,
// while ensuring that the active video region in the output has the same aspect ratio as the input. For
// example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the output will be
// at 1280x1280, which contains an inner rectangle of 1280x720 at aspect ratio of 16:9, and pillar box
// regions 280 pixels wide at the left and right.
StretchModeAutoFit StretchMode = "AutoFit"
// StretchModeAutoSize Override the output resolution, and change it to match the display aspect ratio of
// the input, without padding. For example, if the input is 1920x1080 and the encoding preset asks for
// 1280x1280, then the value in the preset is overridden, and the output will be at 1280x720, which
// maintains the input aspect ratio of 16:9.
StretchModeAutoSize StretchMode = "AutoSize"
// StretchModeNone Strictly respect the output resolution without considering the pixel aspect ratio or
// display aspect ratio of the input video.
StretchModeNone StretchMode = "None"
)
// PossibleStretchModeValues returns an array of possible values for the StretchMode const type.
func PossibleStretchModeValues() []StretchMode {
return []StretchMode{StretchModeAutoFit, StretchModeAutoSize, StretchModeNone}
}
// TrackPropertyCompareOperation enumerates the values for track property compare operation.
type TrackPropertyCompareOperation string
const (
// TrackPropertyCompareOperationEqual Equal operation
TrackPropertyCompareOperationEqual TrackPropertyCompareOperation = "Equal"
// TrackPropertyCompareOperationUnknown Unknown track property compare operation
TrackPropertyCompareOperationUnknown TrackPropertyCompareOperation = "Unknown"
)
// PossibleTrackPropertyCompareOperationValues returns an array of possible values for the TrackPropertyCompareOperation const type.
func PossibleTrackPropertyCompareOperationValues() []TrackPropertyCompareOperation {
return []TrackPropertyCompareOperation{TrackPropertyCompareOperationEqual, TrackPropertyCompareOperationUnknown}
}
// TrackPropertyType enumerates the values for track property type.
type TrackPropertyType string
const (
// TrackPropertyTypeFourCC Track FourCC
TrackPropertyTypeFourCC TrackPropertyType = "FourCC"
// TrackPropertyTypeUnknown Unknown track property
TrackPropertyTypeUnknown TrackPropertyType = "Unknown"
)
// PossibleTrackPropertyTypeValues returns an array of possible values for the TrackPropertyType const type.
func PossibleTrackPropertyTypeValues() []TrackPropertyType {
return []TrackPropertyType{TrackPropertyTypeFourCC, TrackPropertyTypeUnknown}
}