-
Notifications
You must be signed in to change notification settings - Fork 623
/
api_enums.go
229 lines (180 loc) · 6.51 KB
/
api_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
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package mediapackage
type AdMarkers string
// Enum values for AdMarkers
const (
AdMarkersNone AdMarkers = "NONE"
AdMarkersScte35Enhanced AdMarkers = "SCTE35_ENHANCED"
AdMarkersPassthrough AdMarkers = "PASSTHROUGH"
)
func (enum AdMarkers) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum AdMarkers) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
// This setting allows the delivery restriction flags on SCTE-35 segmentation
// descriptors todetermine whether a message signals an ad. Choosing "NONE"
// means no SCTE-35 messages becomeads. Choosing "RESTRICTED" means SCTE-35
// messages of the types specified in AdTriggers thatcontain delivery restrictions
// will be treated as ads. Choosing "UNRESTRICTED" means SCTE-35messages of
// the types specified in AdTriggers that do not contain delivery restrictions
// willbe treated as ads. Choosing "BOTH" means all SCTE-35 messages of the
// types specified inAdTriggers will be treated as ads. Note that Splice Insert
// messages do not have these flagsand are always treated as ads if specified
// in AdTriggers.
type AdsOnDeliveryRestrictions string
// Enum values for AdsOnDeliveryRestrictions
const (
AdsOnDeliveryRestrictionsNone AdsOnDeliveryRestrictions = "NONE"
AdsOnDeliveryRestrictionsRestricted AdsOnDeliveryRestrictions = "RESTRICTED"
AdsOnDeliveryRestrictionsUnrestricted AdsOnDeliveryRestrictions = "UNRESTRICTED"
AdsOnDeliveryRestrictionsBoth AdsOnDeliveryRestrictions = "BOTH"
)
func (enum AdsOnDeliveryRestrictions) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum AdsOnDeliveryRestrictions) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type EncryptionMethod string
// Enum values for EncryptionMethod
const (
EncryptionMethodAes128 EncryptionMethod = "AES_128"
EncryptionMethodSampleAes EncryptionMethod = "SAMPLE_AES"
)
func (enum EncryptionMethod) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum EncryptionMethod) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type ManifestLayout string
// Enum values for ManifestLayout
const (
ManifestLayoutFull ManifestLayout = "FULL"
ManifestLayoutCompact ManifestLayout = "COMPACT"
)
func (enum ManifestLayout) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum ManifestLayout) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type Origination string
// Enum values for Origination
const (
OriginationAllow Origination = "ALLOW"
OriginationDeny Origination = "DENY"
)
func (enum Origination) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum Origination) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type PlaylistType string
// Enum values for PlaylistType
const (
PlaylistTypeNone PlaylistType = "NONE"
PlaylistTypeEvent PlaylistType = "EVENT"
PlaylistTypeVod PlaylistType = "VOD"
)
func (enum PlaylistType) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum PlaylistType) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type Profile string
// Enum values for Profile
const (
ProfileNone Profile = "NONE"
ProfileHbbtv15 Profile = "HBBTV_1_5"
)
func (enum Profile) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum Profile) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type SegmentTemplateFormat string
// Enum values for SegmentTemplateFormat
const (
SegmentTemplateFormatNumberWithTimeline SegmentTemplateFormat = "NUMBER_WITH_TIMELINE"
SegmentTemplateFormatTimeWithTimeline SegmentTemplateFormat = "TIME_WITH_TIMELINE"
SegmentTemplateFormatNumberWithDuration SegmentTemplateFormat = "NUMBER_WITH_DURATION"
)
func (enum SegmentTemplateFormat) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum SegmentTemplateFormat) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type Status string
// Enum values for Status
const (
StatusInProgress Status = "IN_PROGRESS"
StatusSucceeded Status = "SUCCEEDED"
StatusFailed Status = "FAILED"
)
func (enum Status) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum Status) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type StreamOrder string
// Enum values for StreamOrder
const (
StreamOrderOriginal StreamOrder = "ORIGINAL"
StreamOrderVideoBitrateAscending StreamOrder = "VIDEO_BITRATE_ASCENDING"
StreamOrderVideoBitrateDescending StreamOrder = "VIDEO_BITRATE_DESCENDING"
)
func (enum StreamOrder) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum StreamOrder) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type __AdTriggersElement string
// Enum values for __AdTriggersElement
const (
__AdTriggersElementSpliceInsert __AdTriggersElement = "SPLICE_INSERT"
__AdTriggersElementBreak __AdTriggersElement = "BREAK"
__AdTriggersElementProviderAdvertisement __AdTriggersElement = "PROVIDER_ADVERTISEMENT"
__AdTriggersElementDistributorAdvertisement __AdTriggersElement = "DISTRIBUTOR_ADVERTISEMENT"
__AdTriggersElementProviderPlacementOpportunity __AdTriggersElement = "PROVIDER_PLACEMENT_OPPORTUNITY"
__AdTriggersElementDistributorPlacementOpportunity __AdTriggersElement = "DISTRIBUTOR_PLACEMENT_OPPORTUNITY"
__AdTriggersElementProviderOverlayPlacementOpportunity __AdTriggersElement = "PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY"
__AdTriggersElementDistributorOverlayPlacementOpportunity __AdTriggersElement = "DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY"
)
func (enum __AdTriggersElement) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum __AdTriggersElement) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type __PeriodTriggersElement string
// Enum values for __PeriodTriggersElement
const (
__PeriodTriggersElementAds __PeriodTriggersElement = "ADS"
)
func (enum __PeriodTriggersElement) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum __PeriodTriggersElement) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}