1package media 2 3// Copyright (c) Microsoft Corporation. All rights reserved. 4// Licensed under the MIT License. See License.txt in the project root for license information. 5// 6// Code generated by Microsoft (R) AutoRest Code Generator. 7// Changes may cause incorrect behavior and will be lost if the code is regenerated. 8 9// AacAudioProfile enumerates the values for aac audio profile. 10type AacAudioProfile string 11 12const ( 13 // AacAudioProfileAacLc Specifies that the output audio is to be encoded into AAC Low Complexity profile 14 // (AAC-LC). 15 AacAudioProfileAacLc AacAudioProfile = "AacLc" 16 // AacAudioProfileHeAacV1 Specifies that the output audio is to be encoded into HE-AAC v1 profile. 17 AacAudioProfileHeAacV1 AacAudioProfile = "HeAacV1" 18 // AacAudioProfileHeAacV2 Specifies that the output audio is to be encoded into HE-AAC v2 profile. 19 AacAudioProfileHeAacV2 AacAudioProfile = "HeAacV2" 20) 21 22// PossibleAacAudioProfileValues returns an array of possible values for the AacAudioProfile const type. 23func PossibleAacAudioProfileValues() []AacAudioProfile { 24 return []AacAudioProfile{AacAudioProfileAacLc, AacAudioProfileHeAacV1, AacAudioProfileHeAacV2} 25} 26 27// AccountEncryptionKeyType enumerates the values for account encryption key type. 28type AccountEncryptionKeyType string 29 30const ( 31 // AccountEncryptionKeyTypeCustomerKey The Account Key is encrypted with a Customer Key. 32 AccountEncryptionKeyTypeCustomerKey AccountEncryptionKeyType = "CustomerKey" 33 // AccountEncryptionKeyTypeSystemKey The Account Key is encrypted with a System Key. 34 AccountEncryptionKeyTypeSystemKey AccountEncryptionKeyType = "SystemKey" 35) 36 37// PossibleAccountEncryptionKeyTypeValues returns an array of possible values for the AccountEncryptionKeyType const type. 38func PossibleAccountEncryptionKeyTypeValues() []AccountEncryptionKeyType { 39 return []AccountEncryptionKeyType{AccountEncryptionKeyTypeCustomerKey, AccountEncryptionKeyTypeSystemKey} 40} 41 42// ActionType enumerates the values for action type. 43type ActionType string 44 45const ( 46 // ActionTypeInternal An internal action. 47 ActionTypeInternal ActionType = "Internal" 48) 49 50// PossibleActionTypeValues returns an array of possible values for the ActionType const type. 51func PossibleActionTypeValues() []ActionType { 52 return []ActionType{ActionTypeInternal} 53} 54 55// AnalysisResolution enumerates the values for analysis resolution. 56type AnalysisResolution string 57 58const ( 59 // AnalysisResolutionSourceResolution ... 60 AnalysisResolutionSourceResolution AnalysisResolution = "SourceResolution" 61 // AnalysisResolutionStandardDefinition ... 62 AnalysisResolutionStandardDefinition AnalysisResolution = "StandardDefinition" 63) 64 65// PossibleAnalysisResolutionValues returns an array of possible values for the AnalysisResolution const type. 66func PossibleAnalysisResolutionValues() []AnalysisResolution { 67 return []AnalysisResolution{AnalysisResolutionSourceResolution, AnalysisResolutionStandardDefinition} 68} 69 70// AssetContainerPermission enumerates the values for asset container permission. 71type AssetContainerPermission string 72 73const ( 74 // AssetContainerPermissionRead The SAS URL will allow read access to the container. 75 AssetContainerPermissionRead AssetContainerPermission = "Read" 76 // AssetContainerPermissionReadWrite The SAS URL will allow read and write access to the container. 77 AssetContainerPermissionReadWrite AssetContainerPermission = "ReadWrite" 78 // AssetContainerPermissionReadWriteDelete The SAS URL will allow read, write and delete access to the 79 // container. 80 AssetContainerPermissionReadWriteDelete AssetContainerPermission = "ReadWriteDelete" 81) 82 83// PossibleAssetContainerPermissionValues returns an array of possible values for the AssetContainerPermission const type. 84func PossibleAssetContainerPermissionValues() []AssetContainerPermission { 85 return []AssetContainerPermission{AssetContainerPermissionRead, AssetContainerPermissionReadWrite, AssetContainerPermissionReadWriteDelete} 86} 87 88// AssetStorageEncryptionFormat enumerates the values for asset storage encryption format. 89type AssetStorageEncryptionFormat string 90 91const ( 92 // AssetStorageEncryptionFormatMediaStorageClientEncryption The Asset is encrypted with Media Services 93 // client-side encryption. 94 AssetStorageEncryptionFormatMediaStorageClientEncryption AssetStorageEncryptionFormat = "MediaStorageClientEncryption" 95 // AssetStorageEncryptionFormatNone The Asset does not use client-side storage encryption (this is the only 96 // allowed value for new Assets). 97 AssetStorageEncryptionFormatNone AssetStorageEncryptionFormat = "None" 98) 99 100// PossibleAssetStorageEncryptionFormatValues returns an array of possible values for the AssetStorageEncryptionFormat const type. 101func PossibleAssetStorageEncryptionFormatValues() []AssetStorageEncryptionFormat { 102 return []AssetStorageEncryptionFormat{AssetStorageEncryptionFormatMediaStorageClientEncryption, AssetStorageEncryptionFormatNone} 103} 104 105// AttributeFilter enumerates the values for attribute filter. 106type AttributeFilter string 107 108const ( 109 // AttributeFilterAll All tracks will be included. 110 AttributeFilterAll AttributeFilter = "All" 111 // AttributeFilterBottom The first track will be included when the attribute is sorted in ascending order. 112 // Generally used to select the smallest bitrate. 113 AttributeFilterBottom AttributeFilter = "Bottom" 114 // AttributeFilterTop The first track will be included when the attribute is sorted in descending order. 115 // Generally used to select the largest bitrate. 116 AttributeFilterTop AttributeFilter = "Top" 117 // AttributeFilterValueEquals Any tracks that have an attribute equal to the value given will be included. 118 AttributeFilterValueEquals AttributeFilter = "ValueEquals" 119) 120 121// PossibleAttributeFilterValues returns an array of possible values for the AttributeFilter const type. 122func PossibleAttributeFilterValues() []AttributeFilter { 123 return []AttributeFilter{AttributeFilterAll, AttributeFilterBottom, AttributeFilterTop, AttributeFilterValueEquals} 124} 125 126// AudioAnalysisMode enumerates the values for audio analysis mode. 127type AudioAnalysisMode string 128 129const ( 130 // AudioAnalysisModeBasic This mode performs speech-to-text transcription and generation of a VTT 131 // subtitle/caption file. The output of this mode includes an Insights JSON file including only the 132 // keywords, transcription,and timing information. Automatic language detection and speaker diarization are 133 // not included in this mode. 134 AudioAnalysisModeBasic AudioAnalysisMode = "Basic" 135 // AudioAnalysisModeStandard Performs all operations included in the Basic mode, additionally performing 136 // language detection and speaker diarization. 137 AudioAnalysisModeStandard AudioAnalysisMode = "Standard" 138) 139 140// PossibleAudioAnalysisModeValues returns an array of possible values for the AudioAnalysisMode const type. 141func PossibleAudioAnalysisModeValues() []AudioAnalysisMode { 142 return []AudioAnalysisMode{AudioAnalysisModeBasic, AudioAnalysisModeStandard} 143} 144 145// BlurType enumerates the values for blur type. 146type BlurType string 147 148const ( 149 // BlurTypeBlack Black: Black out filter 150 BlurTypeBlack BlurType = "Black" 151 // BlurTypeBox Box: debug filter, bounding box only 152 BlurTypeBox BlurType = "Box" 153 // BlurTypeHigh High: Confuse blur filter 154 BlurTypeHigh BlurType = "High" 155 // BlurTypeLow Low: box-car blur filter 156 BlurTypeLow BlurType = "Low" 157 // BlurTypeMed Med: Gaussian blur filter 158 BlurTypeMed BlurType = "Med" 159) 160 161// PossibleBlurTypeValues returns an array of possible values for the BlurType const type. 162func PossibleBlurTypeValues() []BlurType { 163 return []BlurType{BlurTypeBlack, BlurTypeBox, BlurTypeHigh, BlurTypeLow, BlurTypeMed} 164} 165 166// ChannelMapping enumerates the values for channel mapping. 167type ChannelMapping string 168 169const ( 170 // ChannelMappingBackLeft The Back Left Channel. Sometimes referred to as the Left Surround Channel. 171 ChannelMappingBackLeft ChannelMapping = "BackLeft" 172 // ChannelMappingBackRight The Back Right Channel. Sometimes referred to as the Right Surround Channel. 173 ChannelMappingBackRight ChannelMapping = "BackRight" 174 // ChannelMappingCenter The Center Channel. 175 ChannelMappingCenter ChannelMapping = "Center" 176 // ChannelMappingFrontLeft The Front Left Channel. 177 ChannelMappingFrontLeft ChannelMapping = "FrontLeft" 178 // ChannelMappingFrontRight The Front Right Channel. 179 ChannelMappingFrontRight ChannelMapping = "FrontRight" 180 // ChannelMappingLowFrequencyEffects Low Frequency Effects Channel. Sometimes referred to as the 181 // Subwoofer. 182 ChannelMappingLowFrequencyEffects ChannelMapping = "LowFrequencyEffects" 183 // ChannelMappingStereoLeft The Left Stereo channel. Sometimes referred to as Down Mix Left. 184 ChannelMappingStereoLeft ChannelMapping = "StereoLeft" 185 // ChannelMappingStereoRight The Right Stereo channel. Sometimes referred to as Down Mix Right. 186 ChannelMappingStereoRight ChannelMapping = "StereoRight" 187) 188 189// PossibleChannelMappingValues returns an array of possible values for the ChannelMapping const type. 190func PossibleChannelMappingValues() []ChannelMapping { 191 return []ChannelMapping{ChannelMappingBackLeft, ChannelMappingBackRight, ChannelMappingCenter, ChannelMappingFrontLeft, ChannelMappingFrontRight, ChannelMappingLowFrequencyEffects, ChannelMappingStereoLeft, ChannelMappingStereoRight} 192} 193 194// ContentKeyPolicyFairPlayRentalAndLeaseKeyType enumerates the values for content key policy fair play rental 195// and lease key type. 196type ContentKeyPolicyFairPlayRentalAndLeaseKeyType string 197 198const ( 199 // ContentKeyPolicyFairPlayRentalAndLeaseKeyTypeDualExpiry Dual expiry for offline rental. 200 ContentKeyPolicyFairPlayRentalAndLeaseKeyTypeDualExpiry ContentKeyPolicyFairPlayRentalAndLeaseKeyType = "DualExpiry" 201 // ContentKeyPolicyFairPlayRentalAndLeaseKeyTypePersistentLimited Content key can be persisted and the 202 // valid duration is limited by the Rental Duration value 203 ContentKeyPolicyFairPlayRentalAndLeaseKeyTypePersistentLimited ContentKeyPolicyFairPlayRentalAndLeaseKeyType = "PersistentLimited" 204 // ContentKeyPolicyFairPlayRentalAndLeaseKeyTypePersistentUnlimited Content key can be persisted with an 205 // unlimited duration 206 ContentKeyPolicyFairPlayRentalAndLeaseKeyTypePersistentUnlimited ContentKeyPolicyFairPlayRentalAndLeaseKeyType = "PersistentUnlimited" 207 // ContentKeyPolicyFairPlayRentalAndLeaseKeyTypeUndefined Key duration is not specified. 208 ContentKeyPolicyFairPlayRentalAndLeaseKeyTypeUndefined ContentKeyPolicyFairPlayRentalAndLeaseKeyType = "Undefined" 209 // ContentKeyPolicyFairPlayRentalAndLeaseKeyTypeUnknown Represents a 210 // ContentKeyPolicyFairPlayRentalAndLeaseKeyType that is unavailable in current API version. 211 ContentKeyPolicyFairPlayRentalAndLeaseKeyTypeUnknown ContentKeyPolicyFairPlayRentalAndLeaseKeyType = "Unknown" 212) 213 214// PossibleContentKeyPolicyFairPlayRentalAndLeaseKeyTypeValues returns an array of possible values for the ContentKeyPolicyFairPlayRentalAndLeaseKeyType const type. 215func PossibleContentKeyPolicyFairPlayRentalAndLeaseKeyTypeValues() []ContentKeyPolicyFairPlayRentalAndLeaseKeyType { 216 return []ContentKeyPolicyFairPlayRentalAndLeaseKeyType{ContentKeyPolicyFairPlayRentalAndLeaseKeyTypeDualExpiry, ContentKeyPolicyFairPlayRentalAndLeaseKeyTypePersistentLimited, ContentKeyPolicyFairPlayRentalAndLeaseKeyTypePersistentUnlimited, ContentKeyPolicyFairPlayRentalAndLeaseKeyTypeUndefined, ContentKeyPolicyFairPlayRentalAndLeaseKeyTypeUnknown} 217} 218 219// ContentKeyPolicyPlayReadyContentType enumerates the values for content key policy play ready content type. 220type ContentKeyPolicyPlayReadyContentType string 221 222const ( 223 // ContentKeyPolicyPlayReadyContentTypeUltraVioletDownload Ultraviolet download content type. 224 ContentKeyPolicyPlayReadyContentTypeUltraVioletDownload ContentKeyPolicyPlayReadyContentType = "UltraVioletDownload" 225 // ContentKeyPolicyPlayReadyContentTypeUltraVioletStreaming Ultraviolet streaming content type. 226 ContentKeyPolicyPlayReadyContentTypeUltraVioletStreaming ContentKeyPolicyPlayReadyContentType = "UltraVioletStreaming" 227 // ContentKeyPolicyPlayReadyContentTypeUnknown Represents a ContentKeyPolicyPlayReadyContentType that is 228 // unavailable in current API version. 229 ContentKeyPolicyPlayReadyContentTypeUnknown ContentKeyPolicyPlayReadyContentType = "Unknown" 230 // ContentKeyPolicyPlayReadyContentTypeUnspecified Unspecified content type. 231 ContentKeyPolicyPlayReadyContentTypeUnspecified ContentKeyPolicyPlayReadyContentType = "Unspecified" 232) 233 234// PossibleContentKeyPolicyPlayReadyContentTypeValues returns an array of possible values for the ContentKeyPolicyPlayReadyContentType const type. 235func PossibleContentKeyPolicyPlayReadyContentTypeValues() []ContentKeyPolicyPlayReadyContentType { 236 return []ContentKeyPolicyPlayReadyContentType{ContentKeyPolicyPlayReadyContentTypeUltraVioletDownload, ContentKeyPolicyPlayReadyContentTypeUltraVioletStreaming, ContentKeyPolicyPlayReadyContentTypeUnknown, ContentKeyPolicyPlayReadyContentTypeUnspecified} 237} 238 239// ContentKeyPolicyPlayReadyLicenseType enumerates the values for content key policy play ready license type. 240type ContentKeyPolicyPlayReadyLicenseType string 241 242const ( 243 // ContentKeyPolicyPlayReadyLicenseTypeNonPersistent Non persistent license. 244 ContentKeyPolicyPlayReadyLicenseTypeNonPersistent ContentKeyPolicyPlayReadyLicenseType = "NonPersistent" 245 // ContentKeyPolicyPlayReadyLicenseTypePersistent Persistent license. Allows offline playback. 246 ContentKeyPolicyPlayReadyLicenseTypePersistent ContentKeyPolicyPlayReadyLicenseType = "Persistent" 247 // ContentKeyPolicyPlayReadyLicenseTypeUnknown Represents a ContentKeyPolicyPlayReadyLicenseType that is 248 // unavailable in current API version. 249 ContentKeyPolicyPlayReadyLicenseTypeUnknown ContentKeyPolicyPlayReadyLicenseType = "Unknown" 250) 251 252// PossibleContentKeyPolicyPlayReadyLicenseTypeValues returns an array of possible values for the ContentKeyPolicyPlayReadyLicenseType const type. 253func PossibleContentKeyPolicyPlayReadyLicenseTypeValues() []ContentKeyPolicyPlayReadyLicenseType { 254 return []ContentKeyPolicyPlayReadyLicenseType{ContentKeyPolicyPlayReadyLicenseTypeNonPersistent, ContentKeyPolicyPlayReadyLicenseTypePersistent, ContentKeyPolicyPlayReadyLicenseTypeUnknown} 255} 256 257// ContentKeyPolicyPlayReadyUnknownOutputPassingOption enumerates the values for content key policy play ready 258// unknown output passing option. 259type ContentKeyPolicyPlayReadyUnknownOutputPassingOption string 260 261const ( 262 // ContentKeyPolicyPlayReadyUnknownOutputPassingOptionAllowed Passing the video portion of protected 263 // content to an Unknown Output is allowed. 264 ContentKeyPolicyPlayReadyUnknownOutputPassingOptionAllowed ContentKeyPolicyPlayReadyUnknownOutputPassingOption = "Allowed" 265 // ContentKeyPolicyPlayReadyUnknownOutputPassingOptionAllowedWithVideoConstriction Passing the video 266 // portion of protected content to an Unknown Output is allowed but with constrained resolution. 267 ContentKeyPolicyPlayReadyUnknownOutputPassingOptionAllowedWithVideoConstriction ContentKeyPolicyPlayReadyUnknownOutputPassingOption = "AllowedWithVideoConstriction" 268 // ContentKeyPolicyPlayReadyUnknownOutputPassingOptionNotAllowed Passing the video portion of protected 269 // content to an Unknown Output is not allowed. 270 ContentKeyPolicyPlayReadyUnknownOutputPassingOptionNotAllowed ContentKeyPolicyPlayReadyUnknownOutputPassingOption = "NotAllowed" 271 // ContentKeyPolicyPlayReadyUnknownOutputPassingOptionUnknown Represents a 272 // ContentKeyPolicyPlayReadyUnknownOutputPassingOption that is unavailable in current API version. 273 ContentKeyPolicyPlayReadyUnknownOutputPassingOptionUnknown ContentKeyPolicyPlayReadyUnknownOutputPassingOption = "Unknown" 274) 275 276// PossibleContentKeyPolicyPlayReadyUnknownOutputPassingOptionValues returns an array of possible values for the ContentKeyPolicyPlayReadyUnknownOutputPassingOption const type. 277func PossibleContentKeyPolicyPlayReadyUnknownOutputPassingOptionValues() []ContentKeyPolicyPlayReadyUnknownOutputPassingOption { 278 return []ContentKeyPolicyPlayReadyUnknownOutputPassingOption{ContentKeyPolicyPlayReadyUnknownOutputPassingOptionAllowed, ContentKeyPolicyPlayReadyUnknownOutputPassingOptionAllowedWithVideoConstriction, ContentKeyPolicyPlayReadyUnknownOutputPassingOptionNotAllowed, ContentKeyPolicyPlayReadyUnknownOutputPassingOptionUnknown} 279} 280 281// ContentKeyPolicyRestrictionTokenType enumerates the values for content key policy restriction token type. 282type ContentKeyPolicyRestrictionTokenType string 283 284const ( 285 // ContentKeyPolicyRestrictionTokenTypeJwt JSON Web Token. 286 ContentKeyPolicyRestrictionTokenTypeJwt ContentKeyPolicyRestrictionTokenType = "Jwt" 287 // ContentKeyPolicyRestrictionTokenTypeSwt Simple Web Token. 288 ContentKeyPolicyRestrictionTokenTypeSwt ContentKeyPolicyRestrictionTokenType = "Swt" 289 // ContentKeyPolicyRestrictionTokenTypeUnknown Represents a ContentKeyPolicyRestrictionTokenType that is 290 // unavailable in current API version. 291 ContentKeyPolicyRestrictionTokenTypeUnknown ContentKeyPolicyRestrictionTokenType = "Unknown" 292) 293 294// PossibleContentKeyPolicyRestrictionTokenTypeValues returns an array of possible values for the ContentKeyPolicyRestrictionTokenType const type. 295func PossibleContentKeyPolicyRestrictionTokenTypeValues() []ContentKeyPolicyRestrictionTokenType { 296 return []ContentKeyPolicyRestrictionTokenType{ContentKeyPolicyRestrictionTokenTypeJwt, ContentKeyPolicyRestrictionTokenTypeSwt, ContentKeyPolicyRestrictionTokenTypeUnknown} 297} 298 299// CreatedByType enumerates the values for created by type. 300type CreatedByType string 301 302const ( 303 // CreatedByTypeApplication ... 304 CreatedByTypeApplication CreatedByType = "Application" 305 // CreatedByTypeKey ... 306 CreatedByTypeKey CreatedByType = "Key" 307 // CreatedByTypeManagedIdentity ... 308 CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" 309 // CreatedByTypeUser ... 310 CreatedByTypeUser CreatedByType = "User" 311) 312 313// PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type. 314func PossibleCreatedByTypeValues() []CreatedByType { 315 return []CreatedByType{CreatedByTypeApplication, CreatedByTypeKey, CreatedByTypeManagedIdentity, CreatedByTypeUser} 316} 317 318// DefaultAction enumerates the values for default action. 319type DefaultAction string 320 321const ( 322 // DefaultActionAllow All public IP addresses are allowed. 323 DefaultActionAllow DefaultAction = "Allow" 324 // DefaultActionDeny Public IP addresses are blocked. 325 DefaultActionDeny DefaultAction = "Deny" 326) 327 328// PossibleDefaultActionValues returns an array of possible values for the DefaultAction const type. 329func PossibleDefaultActionValues() []DefaultAction { 330 return []DefaultAction{DefaultActionAllow, DefaultActionDeny} 331} 332 333// DeinterlaceMode enumerates the values for deinterlace mode. 334type DeinterlaceMode string 335 336const ( 337 // DeinterlaceModeAutoPixelAdaptive Apply automatic pixel adaptive de-interlacing on each frame in the 338 // input video. 339 DeinterlaceModeAutoPixelAdaptive DeinterlaceMode = "AutoPixelAdaptive" 340 // DeinterlaceModeOff Disables de-interlacing of the source video. 341 DeinterlaceModeOff DeinterlaceMode = "Off" 342) 343 344// PossibleDeinterlaceModeValues returns an array of possible values for the DeinterlaceMode const type. 345func PossibleDeinterlaceModeValues() []DeinterlaceMode { 346 return []DeinterlaceMode{DeinterlaceModeAutoPixelAdaptive, DeinterlaceModeOff} 347} 348 349// DeinterlaceParity enumerates the values for deinterlace parity. 350type DeinterlaceParity string 351 352const ( 353 // DeinterlaceParityAuto Automatically detect the order of fields 354 DeinterlaceParityAuto DeinterlaceParity = "Auto" 355 // DeinterlaceParityBottomFieldFirst Apply bottom field first processing of input video. 356 DeinterlaceParityBottomFieldFirst DeinterlaceParity = "BottomFieldFirst" 357 // DeinterlaceParityTopFieldFirst Apply top field first processing of input video. 358 DeinterlaceParityTopFieldFirst DeinterlaceParity = "TopFieldFirst" 359) 360 361// PossibleDeinterlaceParityValues returns an array of possible values for the DeinterlaceParity const type. 362func PossibleDeinterlaceParityValues() []DeinterlaceParity { 363 return []DeinterlaceParity{DeinterlaceParityAuto, DeinterlaceParityBottomFieldFirst, DeinterlaceParityTopFieldFirst} 364} 365 366// EncoderNamedPreset enumerates the values for encoder named preset. 367type EncoderNamedPreset string 368 369const ( 370 // EncoderNamedPresetAACGoodQualityAudio Produces a single MP4 file containing only stereo audio encoded at 371 // 192 kbps. 372 EncoderNamedPresetAACGoodQualityAudio EncoderNamedPreset = "AACGoodQualityAudio" 373 // EncoderNamedPresetAdaptiveStreaming Produces a set of GOP aligned MP4 files with H.264 video and stereo 374 // AAC audio. Auto-generates a bitrate ladder based on the input resolution, bitrate and frame rate. The 375 // auto-generated preset will never exceed the input resolution. For example, if the input is 720p, output 376 // will remain 720p at best. 377 EncoderNamedPresetAdaptiveStreaming EncoderNamedPreset = "AdaptiveStreaming" 378 // EncoderNamedPresetContentAwareEncoding Produces a set of GOP-aligned MP4s by using content-aware 379 // encoding. Given any input content, the service performs an initial lightweight analysis of the input 380 // content, and uses the results to determine the optimal number of layers, appropriate bitrate and 381 // resolution settings for delivery by adaptive streaming. This preset is particularly effective for low 382 // and medium complexity videos, where the output files will be at lower bitrates but at a quality that 383 // still delivers a good experience to viewers. The output will contain MP4 files with video and audio 384 // interleaved. 385 EncoderNamedPresetContentAwareEncoding EncoderNamedPreset = "ContentAwareEncoding" 386 // EncoderNamedPresetContentAwareEncodingExperimental Exposes an experimental preset for content-aware 387 // encoding. Given any input content, the service attempts to automatically determine the optimal number of 388 // layers, appropriate bitrate and resolution settings for delivery by adaptive streaming. The underlying 389 // algorithms will continue to evolve over time. The output will contain MP4 files with video and audio 390 // interleaved. 391 EncoderNamedPresetContentAwareEncodingExperimental EncoderNamedPreset = "ContentAwareEncodingExperimental" 392 // EncoderNamedPresetCopyAllBitrateNonInterleaved Copy all video and audio streams from the input asset as 393 // non-interleaved video and audio output files. This preset can be used to clip an existing asset or 394 // convert a group of key frame (GOP) aligned MP4 files as an asset that can be streamed. 395 EncoderNamedPresetCopyAllBitrateNonInterleaved EncoderNamedPreset = "CopyAllBitrateNonInterleaved" 396 // EncoderNamedPresetH264MultipleBitrate1080p Produces a set of 8 GOP-aligned MP4 files, ranging from 6000 397 // kbps to 400 kbps, and stereo AAC audio. Resolution starts at 1080p and goes down to 180p. 398 EncoderNamedPresetH264MultipleBitrate1080p EncoderNamedPreset = "H264MultipleBitrate1080p" 399 // EncoderNamedPresetH264MultipleBitrate720p Produces a set of 6 GOP-aligned MP4 files, ranging from 3400 400 // kbps to 400 kbps, and stereo AAC audio. Resolution starts at 720p and goes down to 180p. 401 EncoderNamedPresetH264MultipleBitrate720p EncoderNamedPreset = "H264MultipleBitrate720p" 402 // EncoderNamedPresetH264MultipleBitrateSD Produces a set of 5 GOP-aligned MP4 files, ranging from 1900kbps 403 // to 400 kbps, and stereo AAC audio. Resolution starts at 480p and goes down to 240p. 404 EncoderNamedPresetH264MultipleBitrateSD EncoderNamedPreset = "H264MultipleBitrateSD" 405 // EncoderNamedPresetH264SingleBitrate1080p Produces an MP4 file where the video is encoded with H.264 406 // codec at 6750 kbps and a picture height of 1080 pixels, and the stereo audio is encoded with AAC-LC 407 // codec at 128 kbps. 408 EncoderNamedPresetH264SingleBitrate1080p EncoderNamedPreset = "H264SingleBitrate1080p" 409 // EncoderNamedPresetH264SingleBitrate720p Produces an MP4 file where the video is encoded with H.264 codec 410 // at 4500 kbps and a picture height of 720 pixels, and the stereo audio is encoded with AAC-LC codec at 411 // 128 kbps. 412 EncoderNamedPresetH264SingleBitrate720p EncoderNamedPreset = "H264SingleBitrate720p" 413 // EncoderNamedPresetH264SingleBitrateSD Produces an MP4 file where the video is encoded with H.264 codec 414 // at 2200 kbps and a picture height of 480 pixels, and the stereo audio is encoded with AAC-LC codec at 415 // 128 kbps. 416 EncoderNamedPresetH264SingleBitrateSD EncoderNamedPreset = "H264SingleBitrateSD" 417 // EncoderNamedPresetH265AdaptiveStreaming Produces a set of GOP aligned MP4 files with H.265 video and 418 // stereo AAC audio. Auto-generates a bitrate ladder based on the input resolution, bitrate and frame rate. 419 // The auto-generated preset will never exceed the input resolution. For example, if the input is 720p, 420 // output will remain 720p at best. 421 EncoderNamedPresetH265AdaptiveStreaming EncoderNamedPreset = "H265AdaptiveStreaming" 422 // EncoderNamedPresetH265ContentAwareEncoding Produces a set of GOP-aligned MP4s by using content-aware 423 // encoding. Given any input content, the service performs an initial lightweight analysis of the input 424 // content, and uses the results to determine the optimal number of layers, appropriate bitrate and 425 // resolution settings for delivery by adaptive streaming. This preset is particularly effective for low 426 // and medium complexity videos, where the output files will be at lower bitrates but at a quality that 427 // still delivers a good experience to viewers. The output will contain MP4 files with video and audio 428 // interleaved. 429 EncoderNamedPresetH265ContentAwareEncoding EncoderNamedPreset = "H265ContentAwareEncoding" 430 // EncoderNamedPresetH265SingleBitrate1080p Produces an MP4 file where the video is encoded with H.265 431 // codec at 3500 kbps and a picture height of 1080 pixels, and the stereo audio is encoded with AAC-LC 432 // codec at 128 kbps. 433 EncoderNamedPresetH265SingleBitrate1080p EncoderNamedPreset = "H265SingleBitrate1080p" 434 // EncoderNamedPresetH265SingleBitrate4K Produces an MP4 file where the video is encoded with H.265 codec 435 // at 9500 kbps and a picture height of 2160 pixels, and the stereo audio is encoded with AAC-LC codec at 436 // 128 kbps. 437 EncoderNamedPresetH265SingleBitrate4K EncoderNamedPreset = "H265SingleBitrate4K" 438 // EncoderNamedPresetH265SingleBitrate720p Produces an MP4 file where the video is encoded with H.265 codec 439 // at 1800 kbps and a picture height of 720 pixels, and the stereo audio is encoded with AAC-LC codec at 440 // 128 kbps. 441 EncoderNamedPresetH265SingleBitrate720p EncoderNamedPreset = "H265SingleBitrate720p" 442) 443 444// PossibleEncoderNamedPresetValues returns an array of possible values for the EncoderNamedPreset const type. 445func PossibleEncoderNamedPresetValues() []EncoderNamedPreset { 446 return []EncoderNamedPreset{EncoderNamedPresetAACGoodQualityAudio, EncoderNamedPresetAdaptiveStreaming, EncoderNamedPresetContentAwareEncoding, EncoderNamedPresetContentAwareEncodingExperimental, EncoderNamedPresetCopyAllBitrateNonInterleaved, EncoderNamedPresetH264MultipleBitrate1080p, EncoderNamedPresetH264MultipleBitrate720p, EncoderNamedPresetH264MultipleBitrateSD, EncoderNamedPresetH264SingleBitrate1080p, EncoderNamedPresetH264SingleBitrate720p, EncoderNamedPresetH264SingleBitrateSD, EncoderNamedPresetH265AdaptiveStreaming, EncoderNamedPresetH265ContentAwareEncoding, EncoderNamedPresetH265SingleBitrate1080p, EncoderNamedPresetH265SingleBitrate4K, EncoderNamedPresetH265SingleBitrate720p} 447} 448 449// EncryptionScheme enumerates the values for encryption scheme. 450type EncryptionScheme string 451 452const ( 453 // EncryptionSchemeCommonEncryptionCbcs CommonEncryptionCbcs scheme 454 EncryptionSchemeCommonEncryptionCbcs EncryptionScheme = "CommonEncryptionCbcs" 455 // EncryptionSchemeCommonEncryptionCenc CommonEncryptionCenc scheme 456 EncryptionSchemeCommonEncryptionCenc EncryptionScheme = "CommonEncryptionCenc" 457 // EncryptionSchemeEnvelopeEncryption EnvelopeEncryption scheme 458 EncryptionSchemeEnvelopeEncryption EncryptionScheme = "EnvelopeEncryption" 459 // EncryptionSchemeNoEncryption NoEncryption scheme 460 EncryptionSchemeNoEncryption EncryptionScheme = "NoEncryption" 461) 462 463// PossibleEncryptionSchemeValues returns an array of possible values for the EncryptionScheme const type. 464func PossibleEncryptionSchemeValues() []EncryptionScheme { 465 return []EncryptionScheme{EncryptionSchemeCommonEncryptionCbcs, EncryptionSchemeCommonEncryptionCenc, EncryptionSchemeEnvelopeEncryption, EncryptionSchemeNoEncryption} 466} 467 468// EntropyMode enumerates the values for entropy mode. 469type EntropyMode string 470 471const ( 472 // EntropyModeCabac Context Adaptive Binary Arithmetic Coder (CABAC) entropy encoding. 473 EntropyModeCabac EntropyMode = "Cabac" 474 // EntropyModeCavlc Context Adaptive Variable Length Coder (CAVLC) entropy encoding. 475 EntropyModeCavlc EntropyMode = "Cavlc" 476) 477 478// PossibleEntropyModeValues returns an array of possible values for the EntropyMode const type. 479func PossibleEntropyModeValues() []EntropyMode { 480 return []EntropyMode{EntropyModeCabac, EntropyModeCavlc} 481} 482 483// FaceRedactorMode enumerates the values for face redactor mode. 484type FaceRedactorMode string 485 486const ( 487 // FaceRedactorModeAnalyze Analyze mode detects faces and outputs a metadata file with the results. Allows 488 // editing of the metadata file before faces are blurred with Redact mode. 489 FaceRedactorModeAnalyze FaceRedactorMode = "Analyze" 490 // FaceRedactorModeCombined Combined mode does the Analyze and Redact steps in one pass when editing the 491 // analyzed faces is not desired. 492 FaceRedactorModeCombined FaceRedactorMode = "Combined" 493 // FaceRedactorModeRedact Redact mode consumes the metadata file from Analyze mode and redacts the faces 494 // found. 495 FaceRedactorModeRedact FaceRedactorMode = "Redact" 496) 497 498// PossibleFaceRedactorModeValues returns an array of possible values for the FaceRedactorMode const type. 499func PossibleFaceRedactorModeValues() []FaceRedactorMode { 500 return []FaceRedactorMode{FaceRedactorModeAnalyze, FaceRedactorModeCombined, FaceRedactorModeRedact} 501} 502 503// FilterTrackPropertyCompareOperation enumerates the values for filter track property compare operation. 504type FilterTrackPropertyCompareOperation string 505 506const ( 507 // FilterTrackPropertyCompareOperationEqual The equal operation. 508 FilterTrackPropertyCompareOperationEqual FilterTrackPropertyCompareOperation = "Equal" 509 // FilterTrackPropertyCompareOperationNotEqual The not equal operation. 510 FilterTrackPropertyCompareOperationNotEqual FilterTrackPropertyCompareOperation = "NotEqual" 511) 512 513// PossibleFilterTrackPropertyCompareOperationValues returns an array of possible values for the FilterTrackPropertyCompareOperation const type. 514func PossibleFilterTrackPropertyCompareOperationValues() []FilterTrackPropertyCompareOperation { 515 return []FilterTrackPropertyCompareOperation{FilterTrackPropertyCompareOperationEqual, FilterTrackPropertyCompareOperationNotEqual} 516} 517 518// FilterTrackPropertyType enumerates the values for filter track property type. 519type FilterTrackPropertyType string 520 521const ( 522 // FilterTrackPropertyTypeBitrate The bitrate. 523 FilterTrackPropertyTypeBitrate FilterTrackPropertyType = "Bitrate" 524 // FilterTrackPropertyTypeFourCC The fourCC. 525 FilterTrackPropertyTypeFourCC FilterTrackPropertyType = "FourCC" 526 // FilterTrackPropertyTypeLanguage The language. 527 FilterTrackPropertyTypeLanguage FilterTrackPropertyType = "Language" 528 // FilterTrackPropertyTypeName The name. 529 FilterTrackPropertyTypeName FilterTrackPropertyType = "Name" 530 // FilterTrackPropertyTypeType The type. 531 FilterTrackPropertyTypeType FilterTrackPropertyType = "Type" 532 // FilterTrackPropertyTypeUnknown The unknown track property type. 533 FilterTrackPropertyTypeUnknown FilterTrackPropertyType = "Unknown" 534) 535 536// PossibleFilterTrackPropertyTypeValues returns an array of possible values for the FilterTrackPropertyType const type. 537func PossibleFilterTrackPropertyTypeValues() []FilterTrackPropertyType { 538 return []FilterTrackPropertyType{FilterTrackPropertyTypeBitrate, FilterTrackPropertyTypeFourCC, FilterTrackPropertyTypeLanguage, FilterTrackPropertyTypeName, FilterTrackPropertyTypeType, FilterTrackPropertyTypeUnknown} 539} 540 541// H264Complexity enumerates the values for h264 complexity. 542type H264Complexity string 543 544const ( 545 // H264ComplexityBalanced Tells the encoder to use settings that achieve a balance between speed and 546 // quality. 547 H264ComplexityBalanced H264Complexity = "Balanced" 548 // H264ComplexityQuality Tells the encoder to use settings that are optimized to produce higher quality 549 // output at the expense of slower overall encode time. 550 H264ComplexityQuality H264Complexity = "Quality" 551 // H264ComplexitySpeed Tells the encoder to use settings that are optimized for faster encoding. Quality is 552 // sacrificed to decrease encoding time. 553 H264ComplexitySpeed H264Complexity = "Speed" 554) 555 556// PossibleH264ComplexityValues returns an array of possible values for the H264Complexity const type. 557func PossibleH264ComplexityValues() []H264Complexity { 558 return []H264Complexity{H264ComplexityBalanced, H264ComplexityQuality, H264ComplexitySpeed} 559} 560 561// H264VideoProfile enumerates the values for h264 video profile. 562type H264VideoProfile string 563 564const ( 565 // H264VideoProfileAuto Tells the encoder to automatically determine the appropriate H.264 profile. 566 H264VideoProfileAuto H264VideoProfile = "Auto" 567 // H264VideoProfileBaseline Baseline profile 568 H264VideoProfileBaseline H264VideoProfile = "Baseline" 569 // H264VideoProfileHigh High profile. 570 H264VideoProfileHigh H264VideoProfile = "High" 571 // H264VideoProfileHigh422 High 4:2:2 profile. 572 H264VideoProfileHigh422 H264VideoProfile = "High422" 573 // H264VideoProfileHigh444 High 4:4:4 predictive profile. 574 H264VideoProfileHigh444 H264VideoProfile = "High444" 575 // H264VideoProfileMain Main profile 576 H264VideoProfileMain H264VideoProfile = "Main" 577) 578 579// PossibleH264VideoProfileValues returns an array of possible values for the H264VideoProfile const type. 580func PossibleH264VideoProfileValues() []H264VideoProfile { 581 return []H264VideoProfile{H264VideoProfileAuto, H264VideoProfileBaseline, H264VideoProfileHigh, H264VideoProfileHigh422, H264VideoProfileHigh444, H264VideoProfileMain} 582} 583 584// H265Complexity enumerates the values for h265 complexity. 585type H265Complexity string 586 587const ( 588 // H265ComplexityBalanced Tells the encoder to use settings that achieve a balance between speed and 589 // quality. 590 H265ComplexityBalanced H265Complexity = "Balanced" 591 // H265ComplexityQuality Tells the encoder to use settings that are optimized to produce higher quality 592 // output at the expense of slower overall encode time. 593 H265ComplexityQuality H265Complexity = "Quality" 594 // H265ComplexitySpeed Tells the encoder to use settings that are optimized for faster encoding. Quality is 595 // sacrificed to decrease encoding time. 596 H265ComplexitySpeed H265Complexity = "Speed" 597) 598 599// PossibleH265ComplexityValues returns an array of possible values for the H265Complexity const type. 600func PossibleH265ComplexityValues() []H265Complexity { 601 return []H265Complexity{H265ComplexityBalanced, H265ComplexityQuality, H265ComplexitySpeed} 602} 603 604// H265VideoProfile enumerates the values for h265 video profile. 605type H265VideoProfile string 606 607const ( 608 // H265VideoProfileAuto Tells the encoder to automatically determine the appropriate H.265 profile. 609 H265VideoProfileAuto H265VideoProfile = "Auto" 610 // H265VideoProfileMain Main profile 611 // (https://x265.readthedocs.io/en/default/cli.html?highlight=profile#profile-level-tier) 612 H265VideoProfileMain H265VideoProfile = "Main" 613) 614 615// PossibleH265VideoProfileValues returns an array of possible values for the H265VideoProfile const type. 616func PossibleH265VideoProfileValues() []H265VideoProfile { 617 return []H265VideoProfile{H265VideoProfileAuto, H265VideoProfileMain} 618} 619 620// InsightsType enumerates the values for insights type. 621type InsightsType string 622 623const ( 624 // InsightsTypeAllInsights Generate both audio and video insights. Fails if either audio or video Insights 625 // fail. 626 InsightsTypeAllInsights InsightsType = "AllInsights" 627 // InsightsTypeAudioInsightsOnly Generate audio only insights. Ignore video even if present. Fails if no 628 // audio is present. 629 InsightsTypeAudioInsightsOnly InsightsType = "AudioInsightsOnly" 630 // InsightsTypeVideoInsightsOnly Generate video only insights. Ignore audio if present. Fails if no video 631 // is present. 632 InsightsTypeVideoInsightsOnly InsightsType = "VideoInsightsOnly" 633) 634 635// PossibleInsightsTypeValues returns an array of possible values for the InsightsType const type. 636func PossibleInsightsTypeValues() []InsightsType { 637 return []InsightsType{InsightsTypeAllInsights, InsightsTypeAudioInsightsOnly, InsightsTypeVideoInsightsOnly} 638} 639 640// JobErrorCategory enumerates the values for job error category. 641type JobErrorCategory string 642 643const ( 644 // JobErrorCategoryConfiguration The error is configuration related. 645 JobErrorCategoryConfiguration JobErrorCategory = "Configuration" 646 // JobErrorCategoryContent The error is related to data in the input files. 647 JobErrorCategoryContent JobErrorCategory = "Content" 648 // JobErrorCategoryDownload The error is download related. 649 JobErrorCategoryDownload JobErrorCategory = "Download" 650 // JobErrorCategoryService The error is service related. 651 JobErrorCategoryService JobErrorCategory = "Service" 652 // JobErrorCategoryUpload The error is upload related. 653 JobErrorCategoryUpload JobErrorCategory = "Upload" 654) 655 656// PossibleJobErrorCategoryValues returns an array of possible values for the JobErrorCategory const type. 657func PossibleJobErrorCategoryValues() []JobErrorCategory { 658 return []JobErrorCategory{JobErrorCategoryConfiguration, JobErrorCategoryContent, JobErrorCategoryDownload, JobErrorCategoryService, JobErrorCategoryUpload} 659} 660 661// JobErrorCode enumerates the values for job error code. 662type JobErrorCode string 663 664const ( 665 // JobErrorCodeConfigurationUnsupported There was a problem with the combination of input files and the 666 // configuration settings applied, fix the configuration settings and retry with the same input, or change 667 // input to match the configuration. 668 JobErrorCodeConfigurationUnsupported JobErrorCode = "ConfigurationUnsupported" 669 // JobErrorCodeContentMalformed There was a problem with the input content (for example: zero byte files, 670 // or corrupt/non-decodable files), check the input files. 671 JobErrorCodeContentMalformed JobErrorCode = "ContentMalformed" 672 // JobErrorCodeContentUnsupported There was a problem with the format of the input (not valid media file, 673 // or an unsupported file/codec), check the validity of the input files. 674 JobErrorCodeContentUnsupported JobErrorCode = "ContentUnsupported" 675 // JobErrorCodeDownloadNotAccessible While trying to download the input files, the files were not 676 // accessible, please check the availability of the source. 677 JobErrorCodeDownloadNotAccessible JobErrorCode = "DownloadNotAccessible" 678 // JobErrorCodeDownloadTransientError While trying to download the input files, there was an issue during 679 // transfer (storage service, network errors), see details and check your source. 680 JobErrorCodeDownloadTransientError JobErrorCode = "DownloadTransientError" 681 // JobErrorCodeServiceError Fatal service error, please contact support. 682 JobErrorCodeServiceError JobErrorCode = "ServiceError" 683 // JobErrorCodeServiceTransientError Transient error, please retry, if retry is unsuccessful, please 684 // contact support. 685 JobErrorCodeServiceTransientError JobErrorCode = "ServiceTransientError" 686 // JobErrorCodeUploadNotAccessible While trying to upload the output files, the destination was not 687 // reachable, please check the availability of the destination. 688 JobErrorCodeUploadNotAccessible JobErrorCode = "UploadNotAccessible" 689 // JobErrorCodeUploadTransientError While trying to upload the output files, there was an issue during 690 // transfer (storage service, network errors), see details and check your destination. 691 JobErrorCodeUploadTransientError JobErrorCode = "UploadTransientError" 692) 693 694// PossibleJobErrorCodeValues returns an array of possible values for the JobErrorCode const type. 695func PossibleJobErrorCodeValues() []JobErrorCode { 696 return []JobErrorCode{JobErrorCodeConfigurationUnsupported, JobErrorCodeContentMalformed, JobErrorCodeContentUnsupported, JobErrorCodeDownloadNotAccessible, JobErrorCodeDownloadTransientError, JobErrorCodeServiceError, JobErrorCodeServiceTransientError, JobErrorCodeUploadNotAccessible, JobErrorCodeUploadTransientError} 697} 698 699// JobRetry enumerates the values for job retry. 700type JobRetry string 701 702const ( 703 // JobRetryDoNotRetry Issue needs to be investigated and then the job resubmitted with corrections or 704 // retried once the underlying issue has been corrected. 705 JobRetryDoNotRetry JobRetry = "DoNotRetry" 706 // JobRetryMayRetry Issue may be resolved after waiting for a period of time and resubmitting the same Job. 707 JobRetryMayRetry JobRetry = "MayRetry" 708) 709 710// PossibleJobRetryValues returns an array of possible values for the JobRetry const type. 711func PossibleJobRetryValues() []JobRetry { 712 return []JobRetry{JobRetryDoNotRetry, JobRetryMayRetry} 713} 714 715// JobState enumerates the values for job state. 716type JobState string 717 718const ( 719 // JobStateCanceled The job was canceled. This is a final state for the job. 720 JobStateCanceled JobState = "Canceled" 721 // JobStateCanceling The job is in the process of being canceled. This is a transient state for the job. 722 JobStateCanceling JobState = "Canceling" 723 // JobStateError The job has encountered an error. This is a final state for the job. 724 JobStateError JobState = "Error" 725 // JobStateFinished The job is finished. This is a final state for the job. 726 JobStateFinished JobState = "Finished" 727 // JobStateProcessing The job is processing. This is a transient state for the job. 728 JobStateProcessing JobState = "Processing" 729 // JobStateQueued The job is in a queued state, waiting for resources to become available. This is a 730 // transient state. 731 JobStateQueued JobState = "Queued" 732 // JobStateScheduled The job is being scheduled to run on an available resource. This is a transient state, 733 // between queued and processing states. 734 JobStateScheduled JobState = "Scheduled" 735) 736 737// PossibleJobStateValues returns an array of possible values for the JobState const type. 738func PossibleJobStateValues() []JobState { 739 return []JobState{JobStateCanceled, JobStateCanceling, JobStateError, JobStateFinished, JobStateProcessing, JobStateQueued, JobStateScheduled} 740} 741 742// LiveEventEncodingType enumerates the values for live event encoding type. 743type LiveEventEncodingType string 744 745const ( 746 // LiveEventEncodingTypeNone A contribution live encoder sends a multiple bitrate stream. The ingested 747 // stream passes through the live event without any further processing. It is also called the pass-through 748 // mode. 749 LiveEventEncodingTypeNone LiveEventEncodingType = "None" 750 // LiveEventEncodingTypePremium1080p A contribution live encoder sends a single bitrate stream to the live 751 // event and Media Services creates multiple bitrate streams. The output cannot exceed 1080p in resolution. 752 LiveEventEncodingTypePremium1080p LiveEventEncodingType = "Premium1080p" 753 // LiveEventEncodingTypeStandard A contribution live encoder sends a single bitrate stream to the live 754 // event and Media Services creates multiple bitrate streams. The output cannot exceed 720p in resolution. 755 LiveEventEncodingTypeStandard LiveEventEncodingType = "Standard" 756) 757 758// PossibleLiveEventEncodingTypeValues returns an array of possible values for the LiveEventEncodingType const type. 759func PossibleLiveEventEncodingTypeValues() []LiveEventEncodingType { 760 return []LiveEventEncodingType{LiveEventEncodingTypeNone, LiveEventEncodingTypePremium1080p, LiveEventEncodingTypeStandard} 761} 762 763// LiveEventInputProtocol enumerates the values for live event input protocol. 764type LiveEventInputProtocol string 765 766const ( 767 // LiveEventInputProtocolFragmentedMP4 Smooth Streaming input will be sent by the contribution encoder to 768 // the live event. 769 LiveEventInputProtocolFragmentedMP4 LiveEventInputProtocol = "FragmentedMP4" 770 // LiveEventInputProtocolRTMP RTMP input will be sent by the contribution encoder to the live event. 771 LiveEventInputProtocolRTMP LiveEventInputProtocol = "RTMP" 772) 773 774// PossibleLiveEventInputProtocolValues returns an array of possible values for the LiveEventInputProtocol const type. 775func PossibleLiveEventInputProtocolValues() []LiveEventInputProtocol { 776 return []LiveEventInputProtocol{LiveEventInputProtocolFragmentedMP4, LiveEventInputProtocolRTMP} 777} 778 779// LiveEventResourceState enumerates the values for live event resource state. 780type LiveEventResourceState string 781 782const ( 783 // LiveEventResourceStateAllocating Allocate action was called on the live event and resources are being 784 // provisioned for this live event. Once allocation completes successfully, the live event will transition 785 // to StandBy state. 786 LiveEventResourceStateAllocating LiveEventResourceState = "Allocating" 787 // LiveEventResourceStateDeleting The live event is being deleted. No billing occurs in this transient 788 // state. Updates or streaming are not allowed during this state. 789 LiveEventResourceStateDeleting LiveEventResourceState = "Deleting" 790 // LiveEventResourceStateRunning The live event resources have been allocated, ingest and preview URLs have 791 // been generated, and it is capable of receiving live streams. At this point, billing is active. You must 792 // explicitly call Stop on the live event resource to halt further billing. 793 LiveEventResourceStateRunning LiveEventResourceState = "Running" 794 // LiveEventResourceStateStandBy Live event resources have been provisioned and is ready to start. Billing 795 // occurs in this state. Most properties can still be updated, however ingest or streaming is not allowed 796 // during this state. 797 LiveEventResourceStateStandBy LiveEventResourceState = "StandBy" 798 // LiveEventResourceStateStarting The live event is being started and resources are being allocated. No 799 // billing occurs in this state. Updates or streaming are not allowed during this state. If an error 800 // occurs, the live event returns to the Stopped state. 801 LiveEventResourceStateStarting LiveEventResourceState = "Starting" 802 // LiveEventResourceStateStopped This is the initial state of the live event after creation (unless 803 // autostart was set to true.) No billing occurs in this state. In this state, the live event properties 804 // can be updated but streaming is not allowed. 805 LiveEventResourceStateStopped LiveEventResourceState = "Stopped" 806 // LiveEventResourceStateStopping The live event is being stopped and resources are being de-provisioned. 807 // No billing occurs in this transient state. Updates or streaming are not allowed during this state. 808 LiveEventResourceStateStopping LiveEventResourceState = "Stopping" 809) 810 811// PossibleLiveEventResourceStateValues returns an array of possible values for the LiveEventResourceState const type. 812func PossibleLiveEventResourceStateValues() []LiveEventResourceState { 813 return []LiveEventResourceState{LiveEventResourceStateAllocating, LiveEventResourceStateDeleting, LiveEventResourceStateRunning, LiveEventResourceStateStandBy, LiveEventResourceStateStarting, LiveEventResourceStateStopped, LiveEventResourceStateStopping} 814} 815 816// LiveOutputResourceState enumerates the values for live output resource state. 817type LiveOutputResourceState string 818 819const ( 820 // LiveOutputResourceStateCreating Live output is being created. No content is archived in the asset until 821 // the live output is in running state. 822 LiveOutputResourceStateCreating LiveOutputResourceState = "Creating" 823 // LiveOutputResourceStateDeleting Live output is being deleted. The live asset is being converted from 824 // live to on-demand asset. Any streaming URLs created on the live output asset continue to work. 825 LiveOutputResourceStateDeleting LiveOutputResourceState = "Deleting" 826 // LiveOutputResourceStateRunning Live output is running and archiving live streaming content to the asset 827 // if there is valid input from a contribution encoder. 828 LiveOutputResourceStateRunning LiveOutputResourceState = "Running" 829) 830 831// PossibleLiveOutputResourceStateValues returns an array of possible values for the LiveOutputResourceState const type. 832func PossibleLiveOutputResourceStateValues() []LiveOutputResourceState { 833 return []LiveOutputResourceState{LiveOutputResourceStateCreating, LiveOutputResourceStateDeleting, LiveOutputResourceStateRunning} 834} 835 836// ManagedIdentityType enumerates the values for managed identity type. 837type ManagedIdentityType string 838 839const ( 840 // ManagedIdentityTypeNone No managed identity. 841 ManagedIdentityTypeNone ManagedIdentityType = "None" 842 // ManagedIdentityTypeSystemAssigned A system-assigned managed identity. 843 ManagedIdentityTypeSystemAssigned ManagedIdentityType = "SystemAssigned" 844) 845 846// PossibleManagedIdentityTypeValues returns an array of possible values for the ManagedIdentityType const type. 847func PossibleManagedIdentityTypeValues() []ManagedIdentityType { 848 return []ManagedIdentityType{ManagedIdentityTypeNone, ManagedIdentityTypeSystemAssigned} 849} 850 851// MetricAggregationType enumerates the values for metric aggregation type. 852type MetricAggregationType string 853 854const ( 855 // MetricAggregationTypeAverage The average. 856 MetricAggregationTypeAverage MetricAggregationType = "Average" 857 // MetricAggregationTypeCount The count of a number of items, usually requests. 858 MetricAggregationTypeCount MetricAggregationType = "Count" 859 // MetricAggregationTypeTotal The sum. 860 MetricAggregationTypeTotal MetricAggregationType = "Total" 861) 862 863// PossibleMetricAggregationTypeValues returns an array of possible values for the MetricAggregationType const type. 864func PossibleMetricAggregationTypeValues() []MetricAggregationType { 865 return []MetricAggregationType{MetricAggregationTypeAverage, MetricAggregationTypeCount, MetricAggregationTypeTotal} 866} 867 868// MetricUnit enumerates the values for metric unit. 869type MetricUnit string 870 871const ( 872 // MetricUnitBytes The number of bytes. 873 MetricUnitBytes MetricUnit = "Bytes" 874 // MetricUnitCount The count. 875 MetricUnitCount MetricUnit = "Count" 876 // MetricUnitMilliseconds The number of milliseconds. 877 MetricUnitMilliseconds MetricUnit = "Milliseconds" 878) 879 880// PossibleMetricUnitValues returns an array of possible values for the MetricUnit const type. 881func PossibleMetricUnitValues() []MetricUnit { 882 return []MetricUnit{MetricUnitBytes, MetricUnitCount, MetricUnitMilliseconds} 883} 884 885// OdataType enumerates the values for odata type. 886type OdataType string 887 888const ( 889 // OdataTypeContentKeyPolicyPlayReadyContentKeyLocation ... 890 OdataTypeContentKeyPolicyPlayReadyContentKeyLocation OdataType = "ContentKeyPolicyPlayReadyContentKeyLocation" 891 // OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader ... 892 OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader OdataType = "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" 893 // OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier ... 894 OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier OdataType = "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier" 895) 896 897// PossibleOdataTypeValues returns an array of possible values for the OdataType const type. 898func PossibleOdataTypeValues() []OdataType { 899 return []OdataType{OdataTypeContentKeyPolicyPlayReadyContentKeyLocation, OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader, OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier} 900} 901 902// OdataTypeBasicClipTime enumerates the values for odata type basic clip time. 903type OdataTypeBasicClipTime string 904 905const ( 906 // OdataTypeBasicClipTimeOdataTypeClipTime ... 907 OdataTypeBasicClipTimeOdataTypeClipTime OdataTypeBasicClipTime = "ClipTime" 908 // OdataTypeBasicClipTimeOdataTypeMicrosoftMediaAbsoluteClipTime ... 909 OdataTypeBasicClipTimeOdataTypeMicrosoftMediaAbsoluteClipTime OdataTypeBasicClipTime = "#Microsoft.Media.AbsoluteClipTime" 910 // OdataTypeBasicClipTimeOdataTypeMicrosoftMediaUtcClipTime ... 911 OdataTypeBasicClipTimeOdataTypeMicrosoftMediaUtcClipTime OdataTypeBasicClipTime = "#Microsoft.Media.UtcClipTime" 912) 913 914// PossibleOdataTypeBasicClipTimeValues returns an array of possible values for the OdataTypeBasicClipTime const type. 915func PossibleOdataTypeBasicClipTimeValues() []OdataTypeBasicClipTime { 916 return []OdataTypeBasicClipTime{OdataTypeBasicClipTimeOdataTypeClipTime, OdataTypeBasicClipTimeOdataTypeMicrosoftMediaAbsoluteClipTime, OdataTypeBasicClipTimeOdataTypeMicrosoftMediaUtcClipTime} 917} 918 919// OdataTypeBasicCodec enumerates the values for odata type basic codec. 920type OdataTypeBasicCodec string 921 922const ( 923 // OdataTypeBasicCodecOdataTypeCodec ... 924 OdataTypeBasicCodecOdataTypeCodec OdataTypeBasicCodec = "Codec" 925 // OdataTypeBasicCodecOdataTypeMicrosoftMediaAacAudio ... 926 OdataTypeBasicCodecOdataTypeMicrosoftMediaAacAudio OdataTypeBasicCodec = "#Microsoft.Media.AacAudio" 927 // OdataTypeBasicCodecOdataTypeMicrosoftMediaAudio ... 928 OdataTypeBasicCodecOdataTypeMicrosoftMediaAudio OdataTypeBasicCodec = "#Microsoft.Media.Audio" 929 // OdataTypeBasicCodecOdataTypeMicrosoftMediaCopyAudio ... 930 OdataTypeBasicCodecOdataTypeMicrosoftMediaCopyAudio OdataTypeBasicCodec = "#Microsoft.Media.CopyAudio" 931 // OdataTypeBasicCodecOdataTypeMicrosoftMediaCopyVideo ... 932 OdataTypeBasicCodecOdataTypeMicrosoftMediaCopyVideo OdataTypeBasicCodec = "#Microsoft.Media.CopyVideo" 933 // OdataTypeBasicCodecOdataTypeMicrosoftMediaH264Video ... 934 OdataTypeBasicCodecOdataTypeMicrosoftMediaH264Video OdataTypeBasicCodec = "#Microsoft.Media.H264Video" 935 // OdataTypeBasicCodecOdataTypeMicrosoftMediaH265Video ... 936 OdataTypeBasicCodecOdataTypeMicrosoftMediaH265Video OdataTypeBasicCodec = "#Microsoft.Media.H265Video" 937 // OdataTypeBasicCodecOdataTypeMicrosoftMediaImage ... 938 OdataTypeBasicCodecOdataTypeMicrosoftMediaImage OdataTypeBasicCodec = "#Microsoft.Media.Image" 939 // OdataTypeBasicCodecOdataTypeMicrosoftMediaJpgImage ... 940 OdataTypeBasicCodecOdataTypeMicrosoftMediaJpgImage OdataTypeBasicCodec = "#Microsoft.Media.JpgImage" 941 // OdataTypeBasicCodecOdataTypeMicrosoftMediaPngImage ... 942 OdataTypeBasicCodecOdataTypeMicrosoftMediaPngImage OdataTypeBasicCodec = "#Microsoft.Media.PngImage" 943 // OdataTypeBasicCodecOdataTypeMicrosoftMediaVideo ... 944 OdataTypeBasicCodecOdataTypeMicrosoftMediaVideo OdataTypeBasicCodec = "#Microsoft.Media.Video" 945) 946 947// PossibleOdataTypeBasicCodecValues returns an array of possible values for the OdataTypeBasicCodec const type. 948func PossibleOdataTypeBasicCodecValues() []OdataTypeBasicCodec { 949 return []OdataTypeBasicCodec{OdataTypeBasicCodecOdataTypeCodec, OdataTypeBasicCodecOdataTypeMicrosoftMediaAacAudio, OdataTypeBasicCodecOdataTypeMicrosoftMediaAudio, OdataTypeBasicCodecOdataTypeMicrosoftMediaCopyAudio, OdataTypeBasicCodecOdataTypeMicrosoftMediaCopyVideo, OdataTypeBasicCodecOdataTypeMicrosoftMediaH264Video, OdataTypeBasicCodecOdataTypeMicrosoftMediaH265Video, OdataTypeBasicCodecOdataTypeMicrosoftMediaImage, OdataTypeBasicCodecOdataTypeMicrosoftMediaJpgImage, OdataTypeBasicCodecOdataTypeMicrosoftMediaPngImage, OdataTypeBasicCodecOdataTypeMicrosoftMediaVideo} 950} 951 952// OdataTypeBasicContentKeyPolicyConfiguration enumerates the values for odata type basic content key policy 953// configuration. 954type OdataTypeBasicContentKeyPolicyConfiguration string 955 956const ( 957 // OdataTypeBasicContentKeyPolicyConfigurationOdataTypeContentKeyPolicyConfiguration ... 958 OdataTypeBasicContentKeyPolicyConfigurationOdataTypeContentKeyPolicyConfiguration OdataTypeBasicContentKeyPolicyConfiguration = "ContentKeyPolicyConfiguration" 959 // OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration ... 960 OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration OdataTypeBasicContentKeyPolicyConfiguration = "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" 961 // OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration ... 962 OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration OdataTypeBasicContentKeyPolicyConfiguration = "#Microsoft.Media.ContentKeyPolicyFairPlayConfiguration" 963 // OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration ... 964 OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration OdataTypeBasicContentKeyPolicyConfiguration = "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration" 965 // OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyUnknownConfiguration ... 966 OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyUnknownConfiguration OdataTypeBasicContentKeyPolicyConfiguration = "#Microsoft.Media.ContentKeyPolicyUnknownConfiguration" 967 // OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration ... 968 OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration OdataTypeBasicContentKeyPolicyConfiguration = "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration" 969) 970 971// PossibleOdataTypeBasicContentKeyPolicyConfigurationValues returns an array of possible values for the OdataTypeBasicContentKeyPolicyConfiguration const type. 972func PossibleOdataTypeBasicContentKeyPolicyConfigurationValues() []OdataTypeBasicContentKeyPolicyConfiguration { 973 return []OdataTypeBasicContentKeyPolicyConfiguration{OdataTypeBasicContentKeyPolicyConfigurationOdataTypeContentKeyPolicyConfiguration, OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration, OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration, OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration, OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyUnknownConfiguration, OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration} 974} 975 976// OdataTypeBasicContentKeyPolicyRestriction enumerates the values for odata type basic content key policy 977// restriction. 978type OdataTypeBasicContentKeyPolicyRestriction string 979 980const ( 981 // OdataTypeBasicContentKeyPolicyRestrictionOdataTypeContentKeyPolicyRestriction ... 982 OdataTypeBasicContentKeyPolicyRestrictionOdataTypeContentKeyPolicyRestriction OdataTypeBasicContentKeyPolicyRestriction = "ContentKeyPolicyRestriction" 983 // OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyOpenRestriction ... 984 OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyOpenRestriction OdataTypeBasicContentKeyPolicyRestriction = "#Microsoft.Media.ContentKeyPolicyOpenRestriction" 985 // OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyTokenRestriction ... 986 OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyTokenRestriction OdataTypeBasicContentKeyPolicyRestriction = "#Microsoft.Media.ContentKeyPolicyTokenRestriction" 987 // OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyUnknownRestriction ... 988 OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyUnknownRestriction OdataTypeBasicContentKeyPolicyRestriction = "#Microsoft.Media.ContentKeyPolicyUnknownRestriction" 989) 990 991// PossibleOdataTypeBasicContentKeyPolicyRestrictionValues returns an array of possible values for the OdataTypeBasicContentKeyPolicyRestriction const type. 992func PossibleOdataTypeBasicContentKeyPolicyRestrictionValues() []OdataTypeBasicContentKeyPolicyRestriction { 993 return []OdataTypeBasicContentKeyPolicyRestriction{OdataTypeBasicContentKeyPolicyRestrictionOdataTypeContentKeyPolicyRestriction, OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyOpenRestriction, OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyTokenRestriction, OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyUnknownRestriction} 994} 995 996// OdataTypeBasicContentKeyPolicyRestrictionTokenKey enumerates the values for odata type basic content key 997// policy restriction token key. 998type OdataTypeBasicContentKeyPolicyRestrictionTokenKey string 999 1000const ( 1001 // OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeContentKeyPolicyRestrictionTokenKey ... 1002 OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeContentKeyPolicyRestrictionTokenKey OdataTypeBasicContentKeyPolicyRestrictionTokenKey = "ContentKeyPolicyRestrictionTokenKey" 1003 // OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicyRsaTokenKey ... 1004 OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicyRsaTokenKey OdataTypeBasicContentKeyPolicyRestrictionTokenKey = "#Microsoft.Media.ContentKeyPolicyRsaTokenKey" 1005 // OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicySymmetricTokenKey ... 1006 OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicySymmetricTokenKey OdataTypeBasicContentKeyPolicyRestrictionTokenKey = "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey" 1007 // OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicyX509CertificateTokenKey ... 1008 OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicyX509CertificateTokenKey OdataTypeBasicContentKeyPolicyRestrictionTokenKey = "#Microsoft.Media.ContentKeyPolicyX509CertificateTokenKey" 1009) 1010 1011// PossibleOdataTypeBasicContentKeyPolicyRestrictionTokenKeyValues returns an array of possible values for the OdataTypeBasicContentKeyPolicyRestrictionTokenKey const type. 1012func PossibleOdataTypeBasicContentKeyPolicyRestrictionTokenKeyValues() []OdataTypeBasicContentKeyPolicyRestrictionTokenKey { 1013 return []OdataTypeBasicContentKeyPolicyRestrictionTokenKey{OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeContentKeyPolicyRestrictionTokenKey, OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicyRsaTokenKey, OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicySymmetricTokenKey, OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicyX509CertificateTokenKey} 1014} 1015 1016// OdataTypeBasicFormat enumerates the values for odata type basic format. 1017type OdataTypeBasicFormat string 1018 1019const ( 1020 // OdataTypeBasicFormatOdataTypeFormat ... 1021 OdataTypeBasicFormatOdataTypeFormat OdataTypeBasicFormat = "Format" 1022 // OdataTypeBasicFormatOdataTypeMicrosoftMediaImageFormat ... 1023 OdataTypeBasicFormatOdataTypeMicrosoftMediaImageFormat OdataTypeBasicFormat = "#Microsoft.Media.ImageFormat" 1024 // OdataTypeBasicFormatOdataTypeMicrosoftMediaJpgFormat ... 1025 OdataTypeBasicFormatOdataTypeMicrosoftMediaJpgFormat OdataTypeBasicFormat = "#Microsoft.Media.JpgFormat" 1026 // OdataTypeBasicFormatOdataTypeMicrosoftMediaMp4Format ... 1027 OdataTypeBasicFormatOdataTypeMicrosoftMediaMp4Format OdataTypeBasicFormat = "#Microsoft.Media.Mp4Format" 1028 // OdataTypeBasicFormatOdataTypeMicrosoftMediaMultiBitrateFormat ... 1029 OdataTypeBasicFormatOdataTypeMicrosoftMediaMultiBitrateFormat OdataTypeBasicFormat = "#Microsoft.Media.MultiBitrateFormat" 1030 // OdataTypeBasicFormatOdataTypeMicrosoftMediaPngFormat ... 1031 OdataTypeBasicFormatOdataTypeMicrosoftMediaPngFormat OdataTypeBasicFormat = "#Microsoft.Media.PngFormat" 1032 // OdataTypeBasicFormatOdataTypeMicrosoftMediaTransportStreamFormat ... 1033 OdataTypeBasicFormatOdataTypeMicrosoftMediaTransportStreamFormat OdataTypeBasicFormat = "#Microsoft.Media.TransportStreamFormat" 1034) 1035 1036// PossibleOdataTypeBasicFormatValues returns an array of possible values for the OdataTypeBasicFormat const type. 1037func PossibleOdataTypeBasicFormatValues() []OdataTypeBasicFormat { 1038 return []OdataTypeBasicFormat{OdataTypeBasicFormatOdataTypeFormat, OdataTypeBasicFormatOdataTypeMicrosoftMediaImageFormat, OdataTypeBasicFormatOdataTypeMicrosoftMediaJpgFormat, OdataTypeBasicFormatOdataTypeMicrosoftMediaMp4Format, OdataTypeBasicFormatOdataTypeMicrosoftMediaMultiBitrateFormat, OdataTypeBasicFormatOdataTypeMicrosoftMediaPngFormat, OdataTypeBasicFormatOdataTypeMicrosoftMediaTransportStreamFormat} 1039} 1040 1041// OdataTypeBasicInputDefinition enumerates the values for odata type basic input definition. 1042type OdataTypeBasicInputDefinition string 1043 1044const ( 1045 // OdataTypeBasicInputDefinitionOdataTypeInputDefinition ... 1046 OdataTypeBasicInputDefinitionOdataTypeInputDefinition OdataTypeBasicInputDefinition = "InputDefinition" 1047 // OdataTypeBasicInputDefinitionOdataTypeMicrosoftMediaFromAllInputFile ... 1048 OdataTypeBasicInputDefinitionOdataTypeMicrosoftMediaFromAllInputFile OdataTypeBasicInputDefinition = "#Microsoft.Media.FromAllInputFile" 1049 // OdataTypeBasicInputDefinitionOdataTypeMicrosoftMediaFromEachInputFile ... 1050 OdataTypeBasicInputDefinitionOdataTypeMicrosoftMediaFromEachInputFile OdataTypeBasicInputDefinition = "#Microsoft.Media.FromEachInputFile" 1051 // OdataTypeBasicInputDefinitionOdataTypeMicrosoftMediaInputFile ... 1052 OdataTypeBasicInputDefinitionOdataTypeMicrosoftMediaInputFile OdataTypeBasicInputDefinition = "#Microsoft.Media.InputFile" 1053) 1054 1055// PossibleOdataTypeBasicInputDefinitionValues returns an array of possible values for the OdataTypeBasicInputDefinition const type. 1056func PossibleOdataTypeBasicInputDefinitionValues() []OdataTypeBasicInputDefinition { 1057 return []OdataTypeBasicInputDefinition{OdataTypeBasicInputDefinitionOdataTypeInputDefinition, OdataTypeBasicInputDefinitionOdataTypeMicrosoftMediaFromAllInputFile, OdataTypeBasicInputDefinitionOdataTypeMicrosoftMediaFromEachInputFile, OdataTypeBasicInputDefinitionOdataTypeMicrosoftMediaInputFile} 1058} 1059 1060// OdataTypeBasicJobInput enumerates the values for odata type basic job input. 1061type OdataTypeBasicJobInput string 1062 1063const ( 1064 // OdataTypeBasicJobInputOdataTypeJobInput ... 1065 OdataTypeBasicJobInputOdataTypeJobInput OdataTypeBasicJobInput = "JobInput" 1066 // OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputAsset ... 1067 OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputAsset OdataTypeBasicJobInput = "#Microsoft.Media.JobInputAsset" 1068 // OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputClip ... 1069 OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputClip OdataTypeBasicJobInput = "#Microsoft.Media.JobInputClip" 1070 // OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputHTTP ... 1071 OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputHTTP OdataTypeBasicJobInput = "#Microsoft.Media.JobInputHttp" 1072 // OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputs ... 1073 OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputs OdataTypeBasicJobInput = "#Microsoft.Media.JobInputs" 1074 // OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputSequence ... 1075 OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputSequence OdataTypeBasicJobInput = "#Microsoft.Media.JobInputSequence" 1076) 1077 1078// PossibleOdataTypeBasicJobInputValues returns an array of possible values for the OdataTypeBasicJobInput const type. 1079func PossibleOdataTypeBasicJobInputValues() []OdataTypeBasicJobInput { 1080 return []OdataTypeBasicJobInput{OdataTypeBasicJobInputOdataTypeJobInput, OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputAsset, OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputClip, OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputHTTP, OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputs, OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputSequence} 1081} 1082 1083// OdataTypeBasicJobOutput enumerates the values for odata type basic job output. 1084type OdataTypeBasicJobOutput string 1085 1086const ( 1087 // OdataTypeBasicJobOutputOdataTypeJobOutput ... 1088 OdataTypeBasicJobOutputOdataTypeJobOutput OdataTypeBasicJobOutput = "JobOutput" 1089 // OdataTypeBasicJobOutputOdataTypeMicrosoftMediaJobOutputAsset ... 1090 OdataTypeBasicJobOutputOdataTypeMicrosoftMediaJobOutputAsset OdataTypeBasicJobOutput = "#Microsoft.Media.JobOutputAsset" 1091) 1092 1093// PossibleOdataTypeBasicJobOutputValues returns an array of possible values for the OdataTypeBasicJobOutput const type. 1094func PossibleOdataTypeBasicJobOutputValues() []OdataTypeBasicJobOutput { 1095 return []OdataTypeBasicJobOutput{OdataTypeBasicJobOutputOdataTypeJobOutput, OdataTypeBasicJobOutputOdataTypeMicrosoftMediaJobOutputAsset} 1096} 1097 1098// OdataTypeBasicLayer enumerates the values for odata type basic layer. 1099type OdataTypeBasicLayer string 1100 1101const ( 1102 // OdataTypeBasicLayerOdataTypeLayer ... 1103 OdataTypeBasicLayerOdataTypeLayer OdataTypeBasicLayer = "Layer" 1104 // OdataTypeBasicLayerOdataTypeMicrosoftMediaH264Layer ... 1105 OdataTypeBasicLayerOdataTypeMicrosoftMediaH264Layer OdataTypeBasicLayer = "#Microsoft.Media.H264Layer" 1106 // OdataTypeBasicLayerOdataTypeMicrosoftMediaH265Layer ... 1107 OdataTypeBasicLayerOdataTypeMicrosoftMediaH265Layer OdataTypeBasicLayer = "#Microsoft.Media.H265Layer" 1108 // OdataTypeBasicLayerOdataTypeMicrosoftMediaH265VideoLayer ... 1109 OdataTypeBasicLayerOdataTypeMicrosoftMediaH265VideoLayer OdataTypeBasicLayer = "#Microsoft.Media.H265VideoLayer" 1110 // OdataTypeBasicLayerOdataTypeMicrosoftMediaJpgLayer ... 1111 OdataTypeBasicLayerOdataTypeMicrosoftMediaJpgLayer OdataTypeBasicLayer = "#Microsoft.Media.JpgLayer" 1112 // OdataTypeBasicLayerOdataTypeMicrosoftMediaPngLayer ... 1113 OdataTypeBasicLayerOdataTypeMicrosoftMediaPngLayer OdataTypeBasicLayer = "#Microsoft.Media.PngLayer" 1114 // OdataTypeBasicLayerOdataTypeMicrosoftMediaVideoLayer ... 1115 OdataTypeBasicLayerOdataTypeMicrosoftMediaVideoLayer OdataTypeBasicLayer = "#Microsoft.Media.VideoLayer" 1116) 1117 1118// PossibleOdataTypeBasicLayerValues returns an array of possible values for the OdataTypeBasicLayer const type. 1119func PossibleOdataTypeBasicLayerValues() []OdataTypeBasicLayer { 1120 return []OdataTypeBasicLayer{OdataTypeBasicLayerOdataTypeLayer, OdataTypeBasicLayerOdataTypeMicrosoftMediaH264Layer, OdataTypeBasicLayerOdataTypeMicrosoftMediaH265Layer, OdataTypeBasicLayerOdataTypeMicrosoftMediaH265VideoLayer, OdataTypeBasicLayerOdataTypeMicrosoftMediaJpgLayer, OdataTypeBasicLayerOdataTypeMicrosoftMediaPngLayer, OdataTypeBasicLayerOdataTypeMicrosoftMediaVideoLayer} 1121} 1122 1123// OdataTypeBasicOverlay enumerates the values for odata type basic overlay. 1124type OdataTypeBasicOverlay string 1125 1126const ( 1127 // OdataTypeBasicOverlayOdataTypeMicrosoftMediaAudioOverlay ... 1128 OdataTypeBasicOverlayOdataTypeMicrosoftMediaAudioOverlay OdataTypeBasicOverlay = "#Microsoft.Media.AudioOverlay" 1129 // OdataTypeBasicOverlayOdataTypeMicrosoftMediaVideoOverlay ... 1130 OdataTypeBasicOverlayOdataTypeMicrosoftMediaVideoOverlay OdataTypeBasicOverlay = "#Microsoft.Media.VideoOverlay" 1131 // OdataTypeBasicOverlayOdataTypeOverlay ... 1132 OdataTypeBasicOverlayOdataTypeOverlay OdataTypeBasicOverlay = "Overlay" 1133) 1134 1135// PossibleOdataTypeBasicOverlayValues returns an array of possible values for the OdataTypeBasicOverlay const type. 1136func PossibleOdataTypeBasicOverlayValues() []OdataTypeBasicOverlay { 1137 return []OdataTypeBasicOverlay{OdataTypeBasicOverlayOdataTypeMicrosoftMediaAudioOverlay, OdataTypeBasicOverlayOdataTypeMicrosoftMediaVideoOverlay, OdataTypeBasicOverlayOdataTypeOverlay} 1138} 1139 1140// OdataTypeBasicPreset enumerates the values for odata type basic preset. 1141type OdataTypeBasicPreset string 1142 1143const ( 1144 // OdataTypeBasicPresetOdataTypeMicrosoftMediaAudioAnalyzerPreset ... 1145 OdataTypeBasicPresetOdataTypeMicrosoftMediaAudioAnalyzerPreset OdataTypeBasicPreset = "#Microsoft.Media.AudioAnalyzerPreset" 1146 // OdataTypeBasicPresetOdataTypeMicrosoftMediaBuiltInStandardEncoderPreset ... 1147 OdataTypeBasicPresetOdataTypeMicrosoftMediaBuiltInStandardEncoderPreset OdataTypeBasicPreset = "#Microsoft.Media.BuiltInStandardEncoderPreset" 1148 // OdataTypeBasicPresetOdataTypeMicrosoftMediaFaceDetectorPreset ... 1149 OdataTypeBasicPresetOdataTypeMicrosoftMediaFaceDetectorPreset OdataTypeBasicPreset = "#Microsoft.Media.FaceDetectorPreset" 1150 // OdataTypeBasicPresetOdataTypeMicrosoftMediaStandardEncoderPreset ... 1151 OdataTypeBasicPresetOdataTypeMicrosoftMediaStandardEncoderPreset OdataTypeBasicPreset = "#Microsoft.Media.StandardEncoderPreset" 1152 // OdataTypeBasicPresetOdataTypeMicrosoftMediaVideoAnalyzerPreset ... 1153 OdataTypeBasicPresetOdataTypeMicrosoftMediaVideoAnalyzerPreset OdataTypeBasicPreset = "#Microsoft.Media.VideoAnalyzerPreset" 1154 // OdataTypeBasicPresetOdataTypePreset ... 1155 OdataTypeBasicPresetOdataTypePreset OdataTypeBasicPreset = "Preset" 1156) 1157 1158// PossibleOdataTypeBasicPresetValues returns an array of possible values for the OdataTypeBasicPreset const type. 1159func PossibleOdataTypeBasicPresetValues() []OdataTypeBasicPreset { 1160 return []OdataTypeBasicPreset{OdataTypeBasicPresetOdataTypeMicrosoftMediaAudioAnalyzerPreset, OdataTypeBasicPresetOdataTypeMicrosoftMediaBuiltInStandardEncoderPreset, OdataTypeBasicPresetOdataTypeMicrosoftMediaFaceDetectorPreset, OdataTypeBasicPresetOdataTypeMicrosoftMediaStandardEncoderPreset, OdataTypeBasicPresetOdataTypeMicrosoftMediaVideoAnalyzerPreset, OdataTypeBasicPresetOdataTypePreset} 1161} 1162 1163// OdataTypeBasicTrackDescriptor enumerates the values for odata type basic track descriptor. 1164type OdataTypeBasicTrackDescriptor string 1165 1166const ( 1167 // OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaAudioTrackDescriptor ... 1168 OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaAudioTrackDescriptor OdataTypeBasicTrackDescriptor = "#Microsoft.Media.AudioTrackDescriptor" 1169 // OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectAudioTrackByAttribute ... 1170 OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectAudioTrackByAttribute OdataTypeBasicTrackDescriptor = "#Microsoft.Media.SelectAudioTrackByAttribute" 1171 // OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectAudioTrackByID ... 1172 OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectAudioTrackByID OdataTypeBasicTrackDescriptor = "#Microsoft.Media.SelectAudioTrackById" 1173 // OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectVideoTrackByAttribute ... 1174 OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectVideoTrackByAttribute OdataTypeBasicTrackDescriptor = "#Microsoft.Media.SelectVideoTrackByAttribute" 1175 // OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectVideoTrackByID ... 1176 OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectVideoTrackByID OdataTypeBasicTrackDescriptor = "#Microsoft.Media.SelectVideoTrackById" 1177 // OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaVideoTrackDescriptor ... 1178 OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaVideoTrackDescriptor OdataTypeBasicTrackDescriptor = "#Microsoft.Media.VideoTrackDescriptor" 1179 // OdataTypeBasicTrackDescriptorOdataTypeTrackDescriptor ... 1180 OdataTypeBasicTrackDescriptorOdataTypeTrackDescriptor OdataTypeBasicTrackDescriptor = "TrackDescriptor" 1181) 1182 1183// PossibleOdataTypeBasicTrackDescriptorValues returns an array of possible values for the OdataTypeBasicTrackDescriptor const type. 1184func PossibleOdataTypeBasicTrackDescriptorValues() []OdataTypeBasicTrackDescriptor { 1185 return []OdataTypeBasicTrackDescriptor{OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaAudioTrackDescriptor, OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectAudioTrackByAttribute, OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectAudioTrackByID, OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectVideoTrackByAttribute, OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectVideoTrackByID, OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaVideoTrackDescriptor, OdataTypeBasicTrackDescriptorOdataTypeTrackDescriptor} 1186} 1187 1188// OnErrorType enumerates the values for on error type. 1189type OnErrorType string 1190 1191const ( 1192 // OnErrorTypeContinueJob Tells the service that if this TransformOutput fails, then allow any other 1193 // TransformOutput to continue. 1194 OnErrorTypeContinueJob OnErrorType = "ContinueJob" 1195 // OnErrorTypeStopProcessingJob Tells the service that if this TransformOutput fails, then any other 1196 // incomplete TransformOutputs can be stopped. 1197 OnErrorTypeStopProcessingJob OnErrorType = "StopProcessingJob" 1198) 1199 1200// PossibleOnErrorTypeValues returns an array of possible values for the OnErrorType const type. 1201func PossibleOnErrorTypeValues() []OnErrorType { 1202 return []OnErrorType{OnErrorTypeContinueJob, OnErrorTypeStopProcessingJob} 1203} 1204 1205// Priority enumerates the values for priority. 1206type Priority string 1207 1208const ( 1209 // PriorityHigh Used for TransformOutputs that should take precedence over others. 1210 PriorityHigh Priority = "High" 1211 // PriorityLow Used for TransformOutputs that can be generated after Normal and High priority 1212 // TransformOutputs. 1213 PriorityLow Priority = "Low" 1214 // PriorityNormal Used for TransformOutputs that can be generated at Normal priority. 1215 PriorityNormal Priority = "Normal" 1216) 1217 1218// PossiblePriorityValues returns an array of possible values for the Priority const type. 1219func PossiblePriorityValues() []Priority { 1220 return []Priority{PriorityHigh, PriorityLow, PriorityNormal} 1221} 1222 1223// PrivateEndpointConnectionProvisioningState enumerates the values for private endpoint connection 1224// provisioning state. 1225type PrivateEndpointConnectionProvisioningState string 1226 1227const ( 1228 // PrivateEndpointConnectionProvisioningStateCreating ... 1229 PrivateEndpointConnectionProvisioningStateCreating PrivateEndpointConnectionProvisioningState = "Creating" 1230 // PrivateEndpointConnectionProvisioningStateDeleting ... 1231 PrivateEndpointConnectionProvisioningStateDeleting PrivateEndpointConnectionProvisioningState = "Deleting" 1232 // PrivateEndpointConnectionProvisioningStateFailed ... 1233 PrivateEndpointConnectionProvisioningStateFailed PrivateEndpointConnectionProvisioningState = "Failed" 1234 // PrivateEndpointConnectionProvisioningStateSucceeded ... 1235 PrivateEndpointConnectionProvisioningStateSucceeded PrivateEndpointConnectionProvisioningState = "Succeeded" 1236) 1237 1238// PossiblePrivateEndpointConnectionProvisioningStateValues returns an array of possible values for the PrivateEndpointConnectionProvisioningState const type. 1239func PossiblePrivateEndpointConnectionProvisioningStateValues() []PrivateEndpointConnectionProvisioningState { 1240 return []PrivateEndpointConnectionProvisioningState{PrivateEndpointConnectionProvisioningStateCreating, PrivateEndpointConnectionProvisioningStateDeleting, PrivateEndpointConnectionProvisioningStateFailed, PrivateEndpointConnectionProvisioningStateSucceeded} 1241} 1242 1243// PrivateEndpointServiceConnectionStatus enumerates the values for private endpoint service connection status. 1244type PrivateEndpointServiceConnectionStatus string 1245 1246const ( 1247 // PrivateEndpointServiceConnectionStatusApproved ... 1248 PrivateEndpointServiceConnectionStatusApproved PrivateEndpointServiceConnectionStatus = "Approved" 1249 // PrivateEndpointServiceConnectionStatusPending ... 1250 PrivateEndpointServiceConnectionStatusPending PrivateEndpointServiceConnectionStatus = "Pending" 1251 // PrivateEndpointServiceConnectionStatusRejected ... 1252 PrivateEndpointServiceConnectionStatusRejected PrivateEndpointServiceConnectionStatus = "Rejected" 1253) 1254 1255// PossiblePrivateEndpointServiceConnectionStatusValues returns an array of possible values for the PrivateEndpointServiceConnectionStatus const type. 1256func PossiblePrivateEndpointServiceConnectionStatusValues() []PrivateEndpointServiceConnectionStatus { 1257 return []PrivateEndpointServiceConnectionStatus{PrivateEndpointServiceConnectionStatusApproved, PrivateEndpointServiceConnectionStatusPending, PrivateEndpointServiceConnectionStatusRejected} 1258} 1259 1260// Rotation enumerates the values for rotation. 1261type Rotation string 1262 1263const ( 1264 // RotationAuto Automatically detect and rotate as needed. 1265 RotationAuto Rotation = "Auto" 1266 // RotationNone Do not rotate the video. If the output format supports it, any metadata about rotation is 1267 // kept intact. 1268 RotationNone Rotation = "None" 1269 // RotationRotate0 Do not rotate the video but remove any metadata about the rotation. 1270 RotationRotate0 Rotation = "Rotate0" 1271 // RotationRotate180 Rotate 180 degrees clockwise. 1272 RotationRotate180 Rotation = "Rotate180" 1273 // RotationRotate270 Rotate 270 degrees clockwise. 1274 RotationRotate270 Rotation = "Rotate270" 1275 // RotationRotate90 Rotate 90 degrees clockwise. 1276 RotationRotate90 Rotation = "Rotate90" 1277) 1278 1279// PossibleRotationValues returns an array of possible values for the Rotation const type. 1280func PossibleRotationValues() []Rotation { 1281 return []Rotation{RotationAuto, RotationNone, RotationRotate0, RotationRotate180, RotationRotate270, RotationRotate90} 1282} 1283 1284// StorageAccountType enumerates the values for storage account type. 1285type StorageAccountType string 1286 1287const ( 1288 // StorageAccountTypePrimary The primary storage account for the Media Services account. 1289 StorageAccountTypePrimary StorageAccountType = "Primary" 1290 // StorageAccountTypeSecondary A secondary storage account for the Media Services account. 1291 StorageAccountTypeSecondary StorageAccountType = "Secondary" 1292) 1293 1294// PossibleStorageAccountTypeValues returns an array of possible values for the StorageAccountType const type. 1295func PossibleStorageAccountTypeValues() []StorageAccountType { 1296 return []StorageAccountType{StorageAccountTypePrimary, StorageAccountTypeSecondary} 1297} 1298 1299// StorageAuthentication enumerates the values for storage authentication. 1300type StorageAuthentication string 1301 1302const ( 1303 // StorageAuthenticationManagedIdentity Managed Identity authentication. 1304 StorageAuthenticationManagedIdentity StorageAuthentication = "ManagedIdentity" 1305 // StorageAuthenticationSystem System authentication. 1306 StorageAuthenticationSystem StorageAuthentication = "System" 1307) 1308 1309// PossibleStorageAuthenticationValues returns an array of possible values for the StorageAuthentication const type. 1310func PossibleStorageAuthenticationValues() []StorageAuthentication { 1311 return []StorageAuthentication{StorageAuthenticationManagedIdentity, StorageAuthenticationSystem} 1312} 1313 1314// StreamingEndpointResourceState enumerates the values for streaming endpoint resource state. 1315type StreamingEndpointResourceState string 1316 1317const ( 1318 // StreamingEndpointResourceStateDeleting The streaming endpoint is being deleted. 1319 StreamingEndpointResourceStateDeleting StreamingEndpointResourceState = "Deleting" 1320 // StreamingEndpointResourceStateRunning The streaming endpoint is running. It is able to stream content to 1321 // clients 1322 StreamingEndpointResourceStateRunning StreamingEndpointResourceState = "Running" 1323 // StreamingEndpointResourceStateScaling The streaming endpoint is increasing or decreasing scale units. 1324 StreamingEndpointResourceStateScaling StreamingEndpointResourceState = "Scaling" 1325 // StreamingEndpointResourceStateStarting The streaming endpoint is transitioning to the running state. 1326 StreamingEndpointResourceStateStarting StreamingEndpointResourceState = "Starting" 1327 // StreamingEndpointResourceStateStopped The initial state of a streaming endpoint after creation. Content 1328 // is not ready to be streamed from this endpoint. 1329 StreamingEndpointResourceStateStopped StreamingEndpointResourceState = "Stopped" 1330 // StreamingEndpointResourceStateStopping The streaming endpoint is transitioning to the stopped state. 1331 StreamingEndpointResourceStateStopping StreamingEndpointResourceState = "Stopping" 1332) 1333 1334// PossibleStreamingEndpointResourceStateValues returns an array of possible values for the StreamingEndpointResourceState const type. 1335func PossibleStreamingEndpointResourceStateValues() []StreamingEndpointResourceState { 1336 return []StreamingEndpointResourceState{StreamingEndpointResourceStateDeleting, StreamingEndpointResourceStateRunning, StreamingEndpointResourceStateScaling, StreamingEndpointResourceStateStarting, StreamingEndpointResourceStateStopped, StreamingEndpointResourceStateStopping} 1337} 1338 1339// StreamingLocatorContentKeyType enumerates the values for streaming locator content key type. 1340type StreamingLocatorContentKeyType string 1341 1342const ( 1343 // StreamingLocatorContentKeyTypeCommonEncryptionCbcs Common Encryption using CBCS 1344 StreamingLocatorContentKeyTypeCommonEncryptionCbcs StreamingLocatorContentKeyType = "CommonEncryptionCbcs" 1345 // StreamingLocatorContentKeyTypeCommonEncryptionCenc Common Encryption using CENC 1346 StreamingLocatorContentKeyTypeCommonEncryptionCenc StreamingLocatorContentKeyType = "CommonEncryptionCenc" 1347 // StreamingLocatorContentKeyTypeEnvelopeEncryption Envelope Encryption 1348 StreamingLocatorContentKeyTypeEnvelopeEncryption StreamingLocatorContentKeyType = "EnvelopeEncryption" 1349) 1350 1351// PossibleStreamingLocatorContentKeyTypeValues returns an array of possible values for the StreamingLocatorContentKeyType const type. 1352func PossibleStreamingLocatorContentKeyTypeValues() []StreamingLocatorContentKeyType { 1353 return []StreamingLocatorContentKeyType{StreamingLocatorContentKeyTypeCommonEncryptionCbcs, StreamingLocatorContentKeyTypeCommonEncryptionCenc, StreamingLocatorContentKeyTypeEnvelopeEncryption} 1354} 1355 1356// StreamingPolicyStreamingProtocol enumerates the values for streaming policy streaming protocol. 1357type StreamingPolicyStreamingProtocol string 1358 1359const ( 1360 // StreamingPolicyStreamingProtocolDash DASH protocol 1361 StreamingPolicyStreamingProtocolDash StreamingPolicyStreamingProtocol = "Dash" 1362 // StreamingPolicyStreamingProtocolDownload Download protocol 1363 StreamingPolicyStreamingProtocolDownload StreamingPolicyStreamingProtocol = "Download" 1364 // StreamingPolicyStreamingProtocolHls HLS protocol 1365 StreamingPolicyStreamingProtocolHls StreamingPolicyStreamingProtocol = "Hls" 1366 // StreamingPolicyStreamingProtocolSmoothStreaming SmoothStreaming protocol 1367 StreamingPolicyStreamingProtocolSmoothStreaming StreamingPolicyStreamingProtocol = "SmoothStreaming" 1368) 1369 1370// PossibleStreamingPolicyStreamingProtocolValues returns an array of possible values for the StreamingPolicyStreamingProtocol const type. 1371func PossibleStreamingPolicyStreamingProtocolValues() []StreamingPolicyStreamingProtocol { 1372 return []StreamingPolicyStreamingProtocol{StreamingPolicyStreamingProtocolDash, StreamingPolicyStreamingProtocolDownload, StreamingPolicyStreamingProtocolHls, StreamingPolicyStreamingProtocolSmoothStreaming} 1373} 1374 1375// StreamOptionsFlag enumerates the values for stream options flag. 1376type StreamOptionsFlag string 1377 1378const ( 1379 // StreamOptionsFlagDefault Live streaming with no special latency optimizations. 1380 StreamOptionsFlagDefault StreamOptionsFlag = "Default" 1381 // StreamOptionsFlagLowLatency The live event provides lower end to end latency by reducing its internal 1382 // buffers. This could result in more client buffering during playback if network bandwidth is low. 1383 StreamOptionsFlagLowLatency StreamOptionsFlag = "LowLatency" 1384) 1385 1386// PossibleStreamOptionsFlagValues returns an array of possible values for the StreamOptionsFlag const type. 1387func PossibleStreamOptionsFlagValues() []StreamOptionsFlag { 1388 return []StreamOptionsFlag{StreamOptionsFlagDefault, StreamOptionsFlagLowLatency} 1389} 1390 1391// StretchMode enumerates the values for stretch mode. 1392type StretchMode string 1393 1394const ( 1395 // StretchModeAutoFit Pad the output (with either letterbox or pillar box) to honor the output resolution, 1396 // while ensuring that the active video region in the output has the same aspect ratio as the input. For 1397 // example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the output will be 1398 // at 1280x1280, which contains an inner rectangle of 1280x720 at aspect ratio of 16:9, and pillar box 1399 // regions 280 pixels wide at the left and right. 1400 StretchModeAutoFit StretchMode = "AutoFit" 1401 // StretchModeAutoSize Override the output resolution, and change it to match the display aspect ratio of 1402 // the input, without padding. For example, if the input is 1920x1080 and the encoding preset asks for 1403 // 1280x1280, then the value in the preset is overridden, and the output will be at 1280x720, which 1404 // maintains the input aspect ratio of 16:9. 1405 StretchModeAutoSize StretchMode = "AutoSize" 1406 // StretchModeNone Strictly respect the output resolution without considering the pixel aspect ratio or 1407 // display aspect ratio of the input video. 1408 StretchModeNone StretchMode = "None" 1409) 1410 1411// PossibleStretchModeValues returns an array of possible values for the StretchMode const type. 1412func PossibleStretchModeValues() []StretchMode { 1413 return []StretchMode{StretchModeAutoFit, StretchModeAutoSize, StretchModeNone} 1414} 1415 1416// TrackAttribute enumerates the values for track attribute. 1417type TrackAttribute string 1418 1419const ( 1420 // TrackAttributeBitrate The bitrate of the track. 1421 TrackAttributeBitrate TrackAttribute = "Bitrate" 1422 // TrackAttributeLanguage The language of the track. 1423 TrackAttributeLanguage TrackAttribute = "Language" 1424) 1425 1426// PossibleTrackAttributeValues returns an array of possible values for the TrackAttribute const type. 1427func PossibleTrackAttributeValues() []TrackAttribute { 1428 return []TrackAttribute{TrackAttributeBitrate, TrackAttributeLanguage} 1429} 1430 1431// TrackPropertyCompareOperation enumerates the values for track property compare operation. 1432type TrackPropertyCompareOperation string 1433 1434const ( 1435 // TrackPropertyCompareOperationEqual Equal operation 1436 TrackPropertyCompareOperationEqual TrackPropertyCompareOperation = "Equal" 1437 // TrackPropertyCompareOperationUnknown Unknown track property compare operation 1438 TrackPropertyCompareOperationUnknown TrackPropertyCompareOperation = "Unknown" 1439) 1440 1441// PossibleTrackPropertyCompareOperationValues returns an array of possible values for the TrackPropertyCompareOperation const type. 1442func PossibleTrackPropertyCompareOperationValues() []TrackPropertyCompareOperation { 1443 return []TrackPropertyCompareOperation{TrackPropertyCompareOperationEqual, TrackPropertyCompareOperationUnknown} 1444} 1445 1446// TrackPropertyType enumerates the values for track property type. 1447type TrackPropertyType string 1448 1449const ( 1450 // TrackPropertyTypeFourCC Track FourCC 1451 TrackPropertyTypeFourCC TrackPropertyType = "FourCC" 1452 // TrackPropertyTypeUnknown Unknown track property 1453 TrackPropertyTypeUnknown TrackPropertyType = "Unknown" 1454) 1455 1456// PossibleTrackPropertyTypeValues returns an array of possible values for the TrackPropertyType const type. 1457func PossibleTrackPropertyTypeValues() []TrackPropertyType { 1458 return []TrackPropertyType{TrackPropertyTypeFourCC, TrackPropertyTypeUnknown} 1459} 1460 1461// VideoSyncMode enumerates the values for video sync mode. 1462type VideoSyncMode string 1463 1464const ( 1465 // VideoSyncModeAuto This is the default method. Chooses between Cfr and Vfr depending on muxer 1466 // capabilities. For output format MP4, the default mode is Cfr. 1467 VideoSyncModeAuto VideoSyncMode = "Auto" 1468 // VideoSyncModeCfr Input frames will be repeated and/or dropped as needed to achieve exactly the requested 1469 // constant frame rate. Recommended when the output frame rate is explicitly set at a specified value 1470 VideoSyncModeCfr VideoSyncMode = "Cfr" 1471 // VideoSyncModePassthrough The presentation timestamps on frames are passed through from the input file to 1472 // the output file writer. Recommended when the input source has variable frame rate, and are attempting to 1473 // produce multiple layers for adaptive streaming in the output which have aligned GOP boundaries. Note: if 1474 // two or more frames in the input have duplicate timestamps, then the output will also have the same 1475 // behavior 1476 VideoSyncModePassthrough VideoSyncMode = "Passthrough" 1477 // VideoSyncModeVfr Similar to the Passthrough mode, but if the input has frames that have duplicate 1478 // timestamps, then only one frame is passed through to the output, and others are dropped. Recommended 1479 // when the number of output frames is expected to be equal to the number of input frames. For example, the 1480 // output is used to calculate a quality metric like PSNR against the input 1481 VideoSyncModeVfr VideoSyncMode = "Vfr" 1482) 1483 1484// PossibleVideoSyncModeValues returns an array of possible values for the VideoSyncMode const type. 1485func PossibleVideoSyncModeValues() []VideoSyncMode { 1486 return []VideoSyncMode{VideoSyncModeAuto, VideoSyncModeCfr, VideoSyncModePassthrough, VideoSyncModeVfr} 1487} 1488