1package media 2 3// Copyright (c) Microsoft and contributors. All rights reserved. 4// 5// Licensed under the Apache License, Version 2.0 (the "License"); 6// you may not use this file except in compliance with the License. 7// You may obtain a copy of the License at 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// 14// See the License for the specific language governing permissions and 15// limitations under the License. 16// 17// Code generated by Microsoft (R) AutoRest Code Generator. 18// Changes may cause incorrect behavior and will be lost if the code is regenerated. 19 20// AacAudioProfile enumerates the values for aac audio profile. 21type AacAudioProfile string 22 23const ( 24 // AacLc Specifies that the output audio is to be encoded into AAC Low Complexity profile (AAC-LC). 25 AacLc AacAudioProfile = "AacLc" 26 // HeAacV1 Specifies that the output audio is to be encoded into HE-AAC v1 profile. 27 HeAacV1 AacAudioProfile = "HeAacV1" 28 // HeAacV2 Specifies that the output audio is to be encoded into HE-AAC v2 profile. 29 HeAacV2 AacAudioProfile = "HeAacV2" 30) 31 32// PossibleAacAudioProfileValues returns an array of possible values for the AacAudioProfile const type. 33func PossibleAacAudioProfileValues() []AacAudioProfile { 34 return []AacAudioProfile{AacLc, HeAacV1, HeAacV2} 35} 36 37// AssetContainerPermission enumerates the values for asset container permission. 38type AssetContainerPermission string 39 40const ( 41 // Read The SAS URL will allow read access to the container. 42 Read AssetContainerPermission = "Read" 43 // ReadWrite The SAS URL will allow read and write access to the container. 44 ReadWrite AssetContainerPermission = "ReadWrite" 45 // ReadWriteDelete The SAS URL will allow read, write and delete access to the container. 46 ReadWriteDelete AssetContainerPermission = "ReadWriteDelete" 47) 48 49// PossibleAssetContainerPermissionValues returns an array of possible values for the AssetContainerPermission const type. 50func PossibleAssetContainerPermissionValues() []AssetContainerPermission { 51 return []AssetContainerPermission{Read, ReadWrite, ReadWriteDelete} 52} 53 54// AssetStorageEncryptionFormat enumerates the values for asset storage encryption format. 55type AssetStorageEncryptionFormat string 56 57const ( 58 // MediaStorageClientEncryption The Asset is encrypted with Media Services client-side encryption. 59 MediaStorageClientEncryption AssetStorageEncryptionFormat = "MediaStorageClientEncryption" 60 // None The Asset does not use client-side storage encryption (this is the only allowed value for new 61 // Assets). 62 None AssetStorageEncryptionFormat = "None" 63) 64 65// PossibleAssetStorageEncryptionFormatValues returns an array of possible values for the AssetStorageEncryptionFormat const type. 66func PossibleAssetStorageEncryptionFormatValues() []AssetStorageEncryptionFormat { 67 return []AssetStorageEncryptionFormat{MediaStorageClientEncryption, None} 68} 69 70// ContentKeyPolicyFairPlayRentalAndLeaseKeyType enumerates the values for content key policy fair play rental 71// and lease key type. 72type ContentKeyPolicyFairPlayRentalAndLeaseKeyType string 73 74const ( 75 // PersistentLimited Content key can be persisted and the valid duration is limited by the Rental Duration 76 // value 77 PersistentLimited ContentKeyPolicyFairPlayRentalAndLeaseKeyType = "PersistentLimited" 78 // PersistentUnlimited Content key can be persisted with an unlimited duration 79 PersistentUnlimited ContentKeyPolicyFairPlayRentalAndLeaseKeyType = "PersistentUnlimited" 80 // Undefined Key duration is not specified. 81 Undefined ContentKeyPolicyFairPlayRentalAndLeaseKeyType = "Undefined" 82 // Unknown Represents a ContentKeyPolicyFairPlayRentalAndLeaseKeyType that is unavailable in current API 83 // version. 84 Unknown ContentKeyPolicyFairPlayRentalAndLeaseKeyType = "Unknown" 85) 86 87// PossibleContentKeyPolicyFairPlayRentalAndLeaseKeyTypeValues returns an array of possible values for the ContentKeyPolicyFairPlayRentalAndLeaseKeyType const type. 88func PossibleContentKeyPolicyFairPlayRentalAndLeaseKeyTypeValues() []ContentKeyPolicyFairPlayRentalAndLeaseKeyType { 89 return []ContentKeyPolicyFairPlayRentalAndLeaseKeyType{PersistentLimited, PersistentUnlimited, Undefined, Unknown} 90} 91 92// ContentKeyPolicyPlayReadyContentType enumerates the values for content key policy play ready content type. 93type ContentKeyPolicyPlayReadyContentType string 94 95const ( 96 // ContentKeyPolicyPlayReadyContentTypeUltraVioletDownload Ultraviolet download content type. 97 ContentKeyPolicyPlayReadyContentTypeUltraVioletDownload ContentKeyPolicyPlayReadyContentType = "UltraVioletDownload" 98 // ContentKeyPolicyPlayReadyContentTypeUltraVioletStreaming Ultraviolet streaming content type. 99 ContentKeyPolicyPlayReadyContentTypeUltraVioletStreaming ContentKeyPolicyPlayReadyContentType = "UltraVioletStreaming" 100 // ContentKeyPolicyPlayReadyContentTypeUnknown Represents a ContentKeyPolicyPlayReadyContentType that is 101 // unavailable in current API version. 102 ContentKeyPolicyPlayReadyContentTypeUnknown ContentKeyPolicyPlayReadyContentType = "Unknown" 103 // ContentKeyPolicyPlayReadyContentTypeUnspecified Unspecified content type. 104 ContentKeyPolicyPlayReadyContentTypeUnspecified ContentKeyPolicyPlayReadyContentType = "Unspecified" 105) 106 107// PossibleContentKeyPolicyPlayReadyContentTypeValues returns an array of possible values for the ContentKeyPolicyPlayReadyContentType const type. 108func PossibleContentKeyPolicyPlayReadyContentTypeValues() []ContentKeyPolicyPlayReadyContentType { 109 return []ContentKeyPolicyPlayReadyContentType{ContentKeyPolicyPlayReadyContentTypeUltraVioletDownload, ContentKeyPolicyPlayReadyContentTypeUltraVioletStreaming, ContentKeyPolicyPlayReadyContentTypeUnknown, ContentKeyPolicyPlayReadyContentTypeUnspecified} 110} 111 112// ContentKeyPolicyPlayReadyLicenseType enumerates the values for content key policy play ready license type. 113type ContentKeyPolicyPlayReadyLicenseType string 114 115const ( 116 // ContentKeyPolicyPlayReadyLicenseTypeNonPersistent Non persistent license. 117 ContentKeyPolicyPlayReadyLicenseTypeNonPersistent ContentKeyPolicyPlayReadyLicenseType = "NonPersistent" 118 // ContentKeyPolicyPlayReadyLicenseTypePersistent Persistent license. Allows offline playback. 119 ContentKeyPolicyPlayReadyLicenseTypePersistent ContentKeyPolicyPlayReadyLicenseType = "Persistent" 120 // ContentKeyPolicyPlayReadyLicenseTypeUnknown Represents a ContentKeyPolicyPlayReadyLicenseType that is 121 // unavailable in current API version. 122 ContentKeyPolicyPlayReadyLicenseTypeUnknown ContentKeyPolicyPlayReadyLicenseType = "Unknown" 123) 124 125// PossibleContentKeyPolicyPlayReadyLicenseTypeValues returns an array of possible values for the ContentKeyPolicyPlayReadyLicenseType const type. 126func PossibleContentKeyPolicyPlayReadyLicenseTypeValues() []ContentKeyPolicyPlayReadyLicenseType { 127 return []ContentKeyPolicyPlayReadyLicenseType{ContentKeyPolicyPlayReadyLicenseTypeNonPersistent, ContentKeyPolicyPlayReadyLicenseTypePersistent, ContentKeyPolicyPlayReadyLicenseTypeUnknown} 128} 129 130// ContentKeyPolicyPlayReadyUnknownOutputPassingOption enumerates the values for content key policy play ready 131// unknown output passing option. 132type ContentKeyPolicyPlayReadyUnknownOutputPassingOption string 133 134const ( 135 // ContentKeyPolicyPlayReadyUnknownOutputPassingOptionAllowed Passing the video portion of protected 136 // content to an Unknown Output is allowed. 137 ContentKeyPolicyPlayReadyUnknownOutputPassingOptionAllowed ContentKeyPolicyPlayReadyUnknownOutputPassingOption = "Allowed" 138 // ContentKeyPolicyPlayReadyUnknownOutputPassingOptionAllowedWithVideoConstriction Passing the video 139 // portion of protected content to an Unknown Output is allowed but with constrained resolution. 140 ContentKeyPolicyPlayReadyUnknownOutputPassingOptionAllowedWithVideoConstriction ContentKeyPolicyPlayReadyUnknownOutputPassingOption = "AllowedWithVideoConstriction" 141 // ContentKeyPolicyPlayReadyUnknownOutputPassingOptionNotAllowed Passing the video portion of protected 142 // content to an Unknown Output is not allowed. 143 ContentKeyPolicyPlayReadyUnknownOutputPassingOptionNotAllowed ContentKeyPolicyPlayReadyUnknownOutputPassingOption = "NotAllowed" 144 // ContentKeyPolicyPlayReadyUnknownOutputPassingOptionUnknown Represents a 145 // ContentKeyPolicyPlayReadyUnknownOutputPassingOption that is unavailable in current API version. 146 ContentKeyPolicyPlayReadyUnknownOutputPassingOptionUnknown ContentKeyPolicyPlayReadyUnknownOutputPassingOption = "Unknown" 147) 148 149// PossibleContentKeyPolicyPlayReadyUnknownOutputPassingOptionValues returns an array of possible values for the ContentKeyPolicyPlayReadyUnknownOutputPassingOption const type. 150func PossibleContentKeyPolicyPlayReadyUnknownOutputPassingOptionValues() []ContentKeyPolicyPlayReadyUnknownOutputPassingOption { 151 return []ContentKeyPolicyPlayReadyUnknownOutputPassingOption{ContentKeyPolicyPlayReadyUnknownOutputPassingOptionAllowed, ContentKeyPolicyPlayReadyUnknownOutputPassingOptionAllowedWithVideoConstriction, ContentKeyPolicyPlayReadyUnknownOutputPassingOptionNotAllowed, ContentKeyPolicyPlayReadyUnknownOutputPassingOptionUnknown} 152} 153 154// ContentKeyPolicyRestrictionTokenType enumerates the values for content key policy restriction token type. 155type ContentKeyPolicyRestrictionTokenType string 156 157const ( 158 // ContentKeyPolicyRestrictionTokenTypeJwt JSON Web Token. 159 ContentKeyPolicyRestrictionTokenTypeJwt ContentKeyPolicyRestrictionTokenType = "Jwt" 160 // ContentKeyPolicyRestrictionTokenTypeSwt Simple Web Token. 161 ContentKeyPolicyRestrictionTokenTypeSwt ContentKeyPolicyRestrictionTokenType = "Swt" 162 // ContentKeyPolicyRestrictionTokenTypeUnknown Represents a ContentKeyPolicyRestrictionTokenType that is 163 // unavailable in current API version. 164 ContentKeyPolicyRestrictionTokenTypeUnknown ContentKeyPolicyRestrictionTokenType = "Unknown" 165) 166 167// PossibleContentKeyPolicyRestrictionTokenTypeValues returns an array of possible values for the ContentKeyPolicyRestrictionTokenType const type. 168func PossibleContentKeyPolicyRestrictionTokenTypeValues() []ContentKeyPolicyRestrictionTokenType { 169 return []ContentKeyPolicyRestrictionTokenType{ContentKeyPolicyRestrictionTokenTypeJwt, ContentKeyPolicyRestrictionTokenTypeSwt, ContentKeyPolicyRestrictionTokenTypeUnknown} 170} 171 172// DeinterlaceMode enumerates the values for deinterlace mode. 173type DeinterlaceMode string 174 175const ( 176 // AutoPixelAdaptive Apply automatic pixel adaptive de-interlacing on each frame in the input video. 177 AutoPixelAdaptive DeinterlaceMode = "AutoPixelAdaptive" 178 // Off Disables de-interlacing of the source video. 179 Off DeinterlaceMode = "Off" 180) 181 182// PossibleDeinterlaceModeValues returns an array of possible values for the DeinterlaceMode const type. 183func PossibleDeinterlaceModeValues() []DeinterlaceMode { 184 return []DeinterlaceMode{AutoPixelAdaptive, Off} 185} 186 187// DeinterlaceParity enumerates the values for deinterlace parity. 188type DeinterlaceParity string 189 190const ( 191 // Auto Automatically detect the order of fields 192 Auto DeinterlaceParity = "Auto" 193 // BottomFieldFirst Apply bottom field first processing of input video. 194 BottomFieldFirst DeinterlaceParity = "BottomFieldFirst" 195 // TopFieldFirst Apply top field first processing of input video. 196 TopFieldFirst DeinterlaceParity = "TopFieldFirst" 197) 198 199// PossibleDeinterlaceParityValues returns an array of possible values for the DeinterlaceParity const type. 200func PossibleDeinterlaceParityValues() []DeinterlaceParity { 201 return []DeinterlaceParity{Auto, BottomFieldFirst, TopFieldFirst} 202} 203 204// EncoderNamedPreset enumerates the values for encoder named preset. 205type EncoderNamedPreset string 206 207const ( 208 // AACGoodQualityAudio Produces a single MP4 file containing only stereo audio encoded at 192 kbps. 209 AACGoodQualityAudio EncoderNamedPreset = "AACGoodQualityAudio" 210 // AdaptiveStreaming Produces a set of GOP aligned MP4 files with H.264 video and stereo AAC audio. 211 // Auto-generates a bitrate ladder based on the input resolution and bitrate. The auto-generated preset 212 // will never exceed the input resolution and bitrate. For example, if the input is 720p at 3 Mbps, output 213 // will remain 720p at best, and will start at rates lower than 3 Mbps. The output will have video and 214 // audio in separate MP4 files, which is optimal for adaptive streaming. 215 AdaptiveStreaming EncoderNamedPreset = "AdaptiveStreaming" 216 // H264MultipleBitrate1080p Produces a set of 8 GOP-aligned MP4 files, ranging from 6000 kbps to 400 kbps, 217 // and stereo AAC audio. Resolution starts at 1080p and goes down to 360p. 218 H264MultipleBitrate1080p EncoderNamedPreset = "H264MultipleBitrate1080p" 219 // H264MultipleBitrate720p Produces a set of 6 GOP-aligned MP4 files, ranging from 3400 kbps to 400 kbps, 220 // and stereo AAC audio. Resolution starts at 720p and goes down to 360p. 221 H264MultipleBitrate720p EncoderNamedPreset = "H264MultipleBitrate720p" 222 // H264MultipleBitrateSD Produces a set of 5 GOP-aligned MP4 files, ranging from 1600kbps to 400 kbps, and 223 // stereo AAC audio. Resolution starts at 480p and goes down to 360p. 224 H264MultipleBitrateSD EncoderNamedPreset = "H264MultipleBitrateSD" 225) 226 227// PossibleEncoderNamedPresetValues returns an array of possible values for the EncoderNamedPreset const type. 228func PossibleEncoderNamedPresetValues() []EncoderNamedPreset { 229 return []EncoderNamedPreset{AACGoodQualityAudio, AdaptiveStreaming, H264MultipleBitrate1080p, H264MultipleBitrate720p, H264MultipleBitrateSD} 230} 231 232// EncryptionScheme enumerates the values for encryption scheme. 233type EncryptionScheme string 234 235const ( 236 // EncryptionSchemeCommonEncryptionCbcs CommonEncryptionCbcs scheme 237 EncryptionSchemeCommonEncryptionCbcs EncryptionScheme = "CommonEncryptionCbcs" 238 // EncryptionSchemeCommonEncryptionCenc CommonEncryptionCenc scheme 239 EncryptionSchemeCommonEncryptionCenc EncryptionScheme = "CommonEncryptionCenc" 240 // EncryptionSchemeEnvelopeEncryption EnvelopeEncryption scheme 241 EncryptionSchemeEnvelopeEncryption EncryptionScheme = "EnvelopeEncryption" 242 // EncryptionSchemeNoEncryption NoEncryption scheme 243 EncryptionSchemeNoEncryption EncryptionScheme = "NoEncryption" 244) 245 246// PossibleEncryptionSchemeValues returns an array of possible values for the EncryptionScheme const type. 247func PossibleEncryptionSchemeValues() []EncryptionScheme { 248 return []EncryptionScheme{EncryptionSchemeCommonEncryptionCbcs, EncryptionSchemeCommonEncryptionCenc, EncryptionSchemeEnvelopeEncryption, EncryptionSchemeNoEncryption} 249} 250 251// EntropyMode enumerates the values for entropy mode. 252type EntropyMode string 253 254const ( 255 // Cabac Context Adaptive Binary Arithmetic Coder (CABAC) entropy encoding. 256 Cabac EntropyMode = "Cabac" 257 // Cavlc Context Adaptive Variable Length Coder (CAVLC) entropy encoding. 258 Cavlc EntropyMode = "Cavlc" 259) 260 261// PossibleEntropyModeValues returns an array of possible values for the EntropyMode const type. 262func PossibleEntropyModeValues() []EntropyMode { 263 return []EntropyMode{Cabac, Cavlc} 264} 265 266// H264Complexity enumerates the values for h264 complexity. 267type H264Complexity string 268 269const ( 270 // Balanced Tells the encoder to use settings that achieve a balance between speed and quality. 271 Balanced H264Complexity = "Balanced" 272 // Quality Tells the encoder to use settings that are optimized to produce higher quality output at the 273 // expense of slower overall encode time. 274 Quality H264Complexity = "Quality" 275 // Speed Tells the encoder to use settings that are optimized for faster encoding. Quality is sacrificed to 276 // decrease encoding time. 277 Speed H264Complexity = "Speed" 278) 279 280// PossibleH264ComplexityValues returns an array of possible values for the H264Complexity const type. 281func PossibleH264ComplexityValues() []H264Complexity { 282 return []H264Complexity{Balanced, Quality, Speed} 283} 284 285// H264VideoProfile enumerates the values for h264 video profile. 286type H264VideoProfile string 287 288const ( 289 // H264VideoProfileAuto Tells the encoder to automatically determine the appropriate H.264 profile. 290 H264VideoProfileAuto H264VideoProfile = "Auto" 291 // H264VideoProfileBaseline Baseline profile 292 H264VideoProfileBaseline H264VideoProfile = "Baseline" 293 // H264VideoProfileHigh High profile. 294 H264VideoProfileHigh H264VideoProfile = "High" 295 // H264VideoProfileHigh422 High 4:2:2 profile. 296 H264VideoProfileHigh422 H264VideoProfile = "High422" 297 // H264VideoProfileHigh444 High 4:4:4 predictive profile. 298 H264VideoProfileHigh444 H264VideoProfile = "High444" 299 // H264VideoProfileMain Main profile 300 H264VideoProfileMain H264VideoProfile = "Main" 301) 302 303// PossibleH264VideoProfileValues returns an array of possible values for the H264VideoProfile const type. 304func PossibleH264VideoProfileValues() []H264VideoProfile { 305 return []H264VideoProfile{H264VideoProfileAuto, H264VideoProfileBaseline, H264VideoProfileHigh, H264VideoProfileHigh422, H264VideoProfileHigh444, H264VideoProfileMain} 306} 307 308// JobErrorCategory enumerates the values for job error category. 309type JobErrorCategory string 310 311const ( 312 // JobErrorCategoryConfiguration The error is configuration related. 313 JobErrorCategoryConfiguration JobErrorCategory = "Configuration" 314 // JobErrorCategoryContent The error is related to data in the input files. 315 JobErrorCategoryContent JobErrorCategory = "Content" 316 // JobErrorCategoryDownload The error is download related. 317 JobErrorCategoryDownload JobErrorCategory = "Download" 318 // JobErrorCategoryService The error is service related. 319 JobErrorCategoryService JobErrorCategory = "Service" 320 // JobErrorCategoryUpload The error is upload related. 321 JobErrorCategoryUpload JobErrorCategory = "Upload" 322) 323 324// PossibleJobErrorCategoryValues returns an array of possible values for the JobErrorCategory const type. 325func PossibleJobErrorCategoryValues() []JobErrorCategory { 326 return []JobErrorCategory{JobErrorCategoryConfiguration, JobErrorCategoryContent, JobErrorCategoryDownload, JobErrorCategoryService, JobErrorCategoryUpload} 327} 328 329// JobErrorCode enumerates the values for job error code. 330type JobErrorCode string 331 332const ( 333 // ConfigurationUnsupported There was a problem with the combination of input files and the configuration 334 // settings applied, fix the configuration settings and retry with the same input, or change input to match 335 // the configuration. 336 ConfigurationUnsupported JobErrorCode = "ConfigurationUnsupported" 337 // ContentMalformed There was a problem with the input content (for example: zero byte files, or 338 // corrupt/non-decodable files), check the input files. 339 ContentMalformed JobErrorCode = "ContentMalformed" 340 // ContentUnsupported There was a problem with the format of the input (not valid media file, or an 341 // unsupported file/codec), check the validity of the input files. 342 ContentUnsupported JobErrorCode = "ContentUnsupported" 343 // DownloadNotAccessible While trying to download the input files, the files were not accessible, please 344 // check the availability of the source. 345 DownloadNotAccessible JobErrorCode = "DownloadNotAccessible" 346 // DownloadTransientError While trying to download the input files, there was an issue during transfer 347 // (storage service, network errors), see details and check your source. 348 DownloadTransientError JobErrorCode = "DownloadTransientError" 349 // ServiceError Fatal service error, please contact support. 350 ServiceError JobErrorCode = "ServiceError" 351 // ServiceTransientError Transient error, please retry, if retry is unsuccessful, please contact support. 352 ServiceTransientError JobErrorCode = "ServiceTransientError" 353 // UploadNotAccessible While trying to upload the output files, the destination was not reachable, please 354 // check the availability of the destination. 355 UploadNotAccessible JobErrorCode = "UploadNotAccessible" 356 // UploadTransientError While trying to upload the output files, there was an issue during transfer 357 // (storage service, network errors), see details and check your destination. 358 UploadTransientError JobErrorCode = "UploadTransientError" 359) 360 361// PossibleJobErrorCodeValues returns an array of possible values for the JobErrorCode const type. 362func PossibleJobErrorCodeValues() []JobErrorCode { 363 return []JobErrorCode{ConfigurationUnsupported, ContentMalformed, ContentUnsupported, DownloadNotAccessible, DownloadTransientError, ServiceError, ServiceTransientError, UploadNotAccessible, UploadTransientError} 364} 365 366// JobRetry enumerates the values for job retry. 367type JobRetry string 368 369const ( 370 // DoNotRetry Issue needs to be investigated and then the job resubmitted with corrections or retried once 371 // the underlying issue has been corrected. 372 DoNotRetry JobRetry = "DoNotRetry" 373 // MayRetry Issue may be resolved after waiting for a period of time and resubmitting the same Job. 374 MayRetry JobRetry = "MayRetry" 375) 376 377// PossibleJobRetryValues returns an array of possible values for the JobRetry const type. 378func PossibleJobRetryValues() []JobRetry { 379 return []JobRetry{DoNotRetry, MayRetry} 380} 381 382// JobState enumerates the values for job state. 383type JobState string 384 385const ( 386 // Canceled The job was canceled. This is a final state for the job. 387 Canceled JobState = "Canceled" 388 // Canceling The job is in the process of being canceled. This is a transient state for the job. 389 Canceling JobState = "Canceling" 390 // Error The job has encountered an error. This is a final state for the job. 391 Error JobState = "Error" 392 // Finished The job is finished. This is a final state for the job. 393 Finished JobState = "Finished" 394 // Processing The job is processing. This is a transient state for the job. 395 Processing JobState = "Processing" 396 // Queued The job is in a queued state, waiting for resources to become available. This is a transient 397 // state. 398 Queued JobState = "Queued" 399 // Scheduled The job is being scheduled to run on an available resource. This is a transient state, between 400 // queued and processing states. 401 Scheduled JobState = "Scheduled" 402) 403 404// PossibleJobStateValues returns an array of possible values for the JobState const type. 405func PossibleJobStateValues() []JobState { 406 return []JobState{Canceled, Canceling, Error, Finished, Processing, Queued, Scheduled} 407} 408 409// LiveEventEncodingType enumerates the values for live event encoding type. 410type LiveEventEncodingType string 411 412const ( 413 // LiveEventEncodingTypeBasic ... 414 LiveEventEncodingTypeBasic LiveEventEncodingType = "Basic" 415 // LiveEventEncodingTypeNone ... 416 LiveEventEncodingTypeNone LiveEventEncodingType = "None" 417) 418 419// PossibleLiveEventEncodingTypeValues returns an array of possible values for the LiveEventEncodingType const type. 420func PossibleLiveEventEncodingTypeValues() []LiveEventEncodingType { 421 return []LiveEventEncodingType{LiveEventEncodingTypeBasic, LiveEventEncodingTypeNone} 422} 423 424// LiveEventInputProtocol enumerates the values for live event input protocol. 425type LiveEventInputProtocol string 426 427const ( 428 // FragmentedMP4 ... 429 FragmentedMP4 LiveEventInputProtocol = "FragmentedMP4" 430 // RTMP ... 431 RTMP LiveEventInputProtocol = "RTMP" 432) 433 434// PossibleLiveEventInputProtocolValues returns an array of possible values for the LiveEventInputProtocol const type. 435func PossibleLiveEventInputProtocolValues() []LiveEventInputProtocol { 436 return []LiveEventInputProtocol{FragmentedMP4, RTMP} 437} 438 439// LiveEventResourceState enumerates the values for live event resource state. 440type LiveEventResourceState string 441 442const ( 443 // Deleting ... 444 Deleting LiveEventResourceState = "Deleting" 445 // Running ... 446 Running LiveEventResourceState = "Running" 447 // Starting ... 448 Starting LiveEventResourceState = "Starting" 449 // Stopped ... 450 Stopped LiveEventResourceState = "Stopped" 451 // Stopping ... 452 Stopping LiveEventResourceState = "Stopping" 453) 454 455// PossibleLiveEventResourceStateValues returns an array of possible values for the LiveEventResourceState const type. 456func PossibleLiveEventResourceStateValues() []LiveEventResourceState { 457 return []LiveEventResourceState{Deleting, Running, Starting, Stopped, Stopping} 458} 459 460// LiveOutputResourceState enumerates the values for live output resource state. 461type LiveOutputResourceState string 462 463const ( 464 // LiveOutputResourceStateCreating ... 465 LiveOutputResourceStateCreating LiveOutputResourceState = "Creating" 466 // LiveOutputResourceStateDeleting ... 467 LiveOutputResourceStateDeleting LiveOutputResourceState = "Deleting" 468 // LiveOutputResourceStateRunning ... 469 LiveOutputResourceStateRunning LiveOutputResourceState = "Running" 470) 471 472// PossibleLiveOutputResourceStateValues returns an array of possible values for the LiveOutputResourceState const type. 473func PossibleLiveOutputResourceStateValues() []LiveOutputResourceState { 474 return []LiveOutputResourceState{LiveOutputResourceStateCreating, LiveOutputResourceStateDeleting, LiveOutputResourceStateRunning} 475} 476 477// OdataType enumerates the values for odata type. 478type OdataType string 479 480const ( 481 // OdataTypeContentKeyPolicyPlayReadyContentKeyLocation ... 482 OdataTypeContentKeyPolicyPlayReadyContentKeyLocation OdataType = "ContentKeyPolicyPlayReadyContentKeyLocation" 483 // OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader ... 484 OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader OdataType = "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" 485 // OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier ... 486 OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier OdataType = "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier" 487) 488 489// PossibleOdataTypeValues returns an array of possible values for the OdataType const type. 490func PossibleOdataTypeValues() []OdataType { 491 return []OdataType{OdataTypeContentKeyPolicyPlayReadyContentKeyLocation, OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader, OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier} 492} 493 494// OdataTypeBasicCodec enumerates the values for odata type basic codec. 495type OdataTypeBasicCodec string 496 497const ( 498 // OdataTypeCodec ... 499 OdataTypeCodec OdataTypeBasicCodec = "Codec" 500 // OdataTypeMicrosoftMediaAacAudio ... 501 OdataTypeMicrosoftMediaAacAudio OdataTypeBasicCodec = "#Microsoft.Media.AacAudio" 502 // OdataTypeMicrosoftMediaAudio ... 503 OdataTypeMicrosoftMediaAudio OdataTypeBasicCodec = "#Microsoft.Media.Audio" 504 // OdataTypeMicrosoftMediaCopyAudio ... 505 OdataTypeMicrosoftMediaCopyAudio OdataTypeBasicCodec = "#Microsoft.Media.CopyAudio" 506 // OdataTypeMicrosoftMediaCopyVideo ... 507 OdataTypeMicrosoftMediaCopyVideo OdataTypeBasicCodec = "#Microsoft.Media.CopyVideo" 508 // OdataTypeMicrosoftMediaH264Video ... 509 OdataTypeMicrosoftMediaH264Video OdataTypeBasicCodec = "#Microsoft.Media.H264Video" 510 // OdataTypeMicrosoftMediaImage ... 511 OdataTypeMicrosoftMediaImage OdataTypeBasicCodec = "#Microsoft.Media.Image" 512 // OdataTypeMicrosoftMediaJpgImage ... 513 OdataTypeMicrosoftMediaJpgImage OdataTypeBasicCodec = "#Microsoft.Media.JpgImage" 514 // OdataTypeMicrosoftMediaPngImage ... 515 OdataTypeMicrosoftMediaPngImage OdataTypeBasicCodec = "#Microsoft.Media.PngImage" 516 // OdataTypeMicrosoftMediaVideo ... 517 OdataTypeMicrosoftMediaVideo OdataTypeBasicCodec = "#Microsoft.Media.Video" 518) 519 520// PossibleOdataTypeBasicCodecValues returns an array of possible values for the OdataTypeBasicCodec const type. 521func PossibleOdataTypeBasicCodecValues() []OdataTypeBasicCodec { 522 return []OdataTypeBasicCodec{OdataTypeCodec, OdataTypeMicrosoftMediaAacAudio, OdataTypeMicrosoftMediaAudio, OdataTypeMicrosoftMediaCopyAudio, OdataTypeMicrosoftMediaCopyVideo, OdataTypeMicrosoftMediaH264Video, OdataTypeMicrosoftMediaImage, OdataTypeMicrosoftMediaJpgImage, OdataTypeMicrosoftMediaPngImage, OdataTypeMicrosoftMediaVideo} 523} 524 525// OdataTypeBasicContentKeyPolicyConfiguration enumerates the values for odata type basic content key policy 526// configuration. 527type OdataTypeBasicContentKeyPolicyConfiguration string 528 529const ( 530 // OdataTypeContentKeyPolicyConfiguration ... 531 OdataTypeContentKeyPolicyConfiguration OdataTypeBasicContentKeyPolicyConfiguration = "ContentKeyPolicyConfiguration" 532 // OdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration ... 533 OdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration OdataTypeBasicContentKeyPolicyConfiguration = "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" 534 // OdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration ... 535 OdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration OdataTypeBasicContentKeyPolicyConfiguration = "#Microsoft.Media.ContentKeyPolicyFairPlayConfiguration" 536 // OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration ... 537 OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration OdataTypeBasicContentKeyPolicyConfiguration = "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration" 538 // OdataTypeMicrosoftMediaContentKeyPolicyUnknownConfiguration ... 539 OdataTypeMicrosoftMediaContentKeyPolicyUnknownConfiguration OdataTypeBasicContentKeyPolicyConfiguration = "#Microsoft.Media.ContentKeyPolicyUnknownConfiguration" 540 // OdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration ... 541 OdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration OdataTypeBasicContentKeyPolicyConfiguration = "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration" 542) 543 544// PossibleOdataTypeBasicContentKeyPolicyConfigurationValues returns an array of possible values for the OdataTypeBasicContentKeyPolicyConfiguration const type. 545func PossibleOdataTypeBasicContentKeyPolicyConfigurationValues() []OdataTypeBasicContentKeyPolicyConfiguration { 546 return []OdataTypeBasicContentKeyPolicyConfiguration{OdataTypeContentKeyPolicyConfiguration, OdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration, OdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration, OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration, OdataTypeMicrosoftMediaContentKeyPolicyUnknownConfiguration, OdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration} 547} 548 549// OdataTypeBasicContentKeyPolicyRestriction enumerates the values for odata type basic content key policy 550// restriction. 551type OdataTypeBasicContentKeyPolicyRestriction string 552 553const ( 554 // OdataTypeContentKeyPolicyRestriction ... 555 OdataTypeContentKeyPolicyRestriction OdataTypeBasicContentKeyPolicyRestriction = "ContentKeyPolicyRestriction" 556 // OdataTypeMicrosoftMediaContentKeyPolicyOpenRestriction ... 557 OdataTypeMicrosoftMediaContentKeyPolicyOpenRestriction OdataTypeBasicContentKeyPolicyRestriction = "#Microsoft.Media.ContentKeyPolicyOpenRestriction" 558 // OdataTypeMicrosoftMediaContentKeyPolicyTokenRestriction ... 559 OdataTypeMicrosoftMediaContentKeyPolicyTokenRestriction OdataTypeBasicContentKeyPolicyRestriction = "#Microsoft.Media.ContentKeyPolicyTokenRestriction" 560 // OdataTypeMicrosoftMediaContentKeyPolicyUnknownRestriction ... 561 OdataTypeMicrosoftMediaContentKeyPolicyUnknownRestriction OdataTypeBasicContentKeyPolicyRestriction = "#Microsoft.Media.ContentKeyPolicyUnknownRestriction" 562) 563 564// PossibleOdataTypeBasicContentKeyPolicyRestrictionValues returns an array of possible values for the OdataTypeBasicContentKeyPolicyRestriction const type. 565func PossibleOdataTypeBasicContentKeyPolicyRestrictionValues() []OdataTypeBasicContentKeyPolicyRestriction { 566 return []OdataTypeBasicContentKeyPolicyRestriction{OdataTypeContentKeyPolicyRestriction, OdataTypeMicrosoftMediaContentKeyPolicyOpenRestriction, OdataTypeMicrosoftMediaContentKeyPolicyTokenRestriction, OdataTypeMicrosoftMediaContentKeyPolicyUnknownRestriction} 567} 568 569// OdataTypeBasicContentKeyPolicyRestrictionTokenKey enumerates the values for odata type basic content key 570// policy restriction token key. 571type OdataTypeBasicContentKeyPolicyRestrictionTokenKey string 572 573const ( 574 // OdataTypeContentKeyPolicyRestrictionTokenKey ... 575 OdataTypeContentKeyPolicyRestrictionTokenKey OdataTypeBasicContentKeyPolicyRestrictionTokenKey = "ContentKeyPolicyRestrictionTokenKey" 576 // OdataTypeMicrosoftMediaContentKeyPolicyRsaTokenKey ... 577 OdataTypeMicrosoftMediaContentKeyPolicyRsaTokenKey OdataTypeBasicContentKeyPolicyRestrictionTokenKey = "#Microsoft.Media.ContentKeyPolicyRsaTokenKey" 578 // OdataTypeMicrosoftMediaContentKeyPolicySymmetricTokenKey ... 579 OdataTypeMicrosoftMediaContentKeyPolicySymmetricTokenKey OdataTypeBasicContentKeyPolicyRestrictionTokenKey = "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey" 580 // OdataTypeMicrosoftMediaContentKeyPolicyX509CertificateTokenKey ... 581 OdataTypeMicrosoftMediaContentKeyPolicyX509CertificateTokenKey OdataTypeBasicContentKeyPolicyRestrictionTokenKey = "#Microsoft.Media.ContentKeyPolicyX509CertificateTokenKey" 582) 583 584// PossibleOdataTypeBasicContentKeyPolicyRestrictionTokenKeyValues returns an array of possible values for the OdataTypeBasicContentKeyPolicyRestrictionTokenKey const type. 585func PossibleOdataTypeBasicContentKeyPolicyRestrictionTokenKeyValues() []OdataTypeBasicContentKeyPolicyRestrictionTokenKey { 586 return []OdataTypeBasicContentKeyPolicyRestrictionTokenKey{OdataTypeContentKeyPolicyRestrictionTokenKey, OdataTypeMicrosoftMediaContentKeyPolicyRsaTokenKey, OdataTypeMicrosoftMediaContentKeyPolicySymmetricTokenKey, OdataTypeMicrosoftMediaContentKeyPolicyX509CertificateTokenKey} 587} 588 589// OdataTypeBasicFormat enumerates the values for odata type basic format. 590type OdataTypeBasicFormat string 591 592const ( 593 // OdataTypeFormat ... 594 OdataTypeFormat OdataTypeBasicFormat = "Format" 595 // OdataTypeMicrosoftMediaImageFormat ... 596 OdataTypeMicrosoftMediaImageFormat OdataTypeBasicFormat = "#Microsoft.Media.ImageFormat" 597 // OdataTypeMicrosoftMediaJpgFormat ... 598 OdataTypeMicrosoftMediaJpgFormat OdataTypeBasicFormat = "#Microsoft.Media.JpgFormat" 599 // OdataTypeMicrosoftMediaMp4Format ... 600 OdataTypeMicrosoftMediaMp4Format OdataTypeBasicFormat = "#Microsoft.Media.Mp4Format" 601 // OdataTypeMicrosoftMediaMultiBitrateFormat ... 602 OdataTypeMicrosoftMediaMultiBitrateFormat OdataTypeBasicFormat = "#Microsoft.Media.MultiBitrateFormat" 603 // OdataTypeMicrosoftMediaPngFormat ... 604 OdataTypeMicrosoftMediaPngFormat OdataTypeBasicFormat = "#Microsoft.Media.PngFormat" 605 // OdataTypeMicrosoftMediaTransportStreamFormat ... 606 OdataTypeMicrosoftMediaTransportStreamFormat OdataTypeBasicFormat = "#Microsoft.Media.TransportStreamFormat" 607) 608 609// PossibleOdataTypeBasicFormatValues returns an array of possible values for the OdataTypeBasicFormat const type. 610func PossibleOdataTypeBasicFormatValues() []OdataTypeBasicFormat { 611 return []OdataTypeBasicFormat{OdataTypeFormat, OdataTypeMicrosoftMediaImageFormat, OdataTypeMicrosoftMediaJpgFormat, OdataTypeMicrosoftMediaMp4Format, OdataTypeMicrosoftMediaMultiBitrateFormat, OdataTypeMicrosoftMediaPngFormat, OdataTypeMicrosoftMediaTransportStreamFormat} 612} 613 614// OdataTypeBasicJobInput enumerates the values for odata type basic job input. 615type OdataTypeBasicJobInput string 616 617const ( 618 // OdataTypeJobInput ... 619 OdataTypeJobInput OdataTypeBasicJobInput = "JobInput" 620 // OdataTypeMicrosoftMediaJobInputAsset ... 621 OdataTypeMicrosoftMediaJobInputAsset OdataTypeBasicJobInput = "#Microsoft.Media.JobInputAsset" 622 // OdataTypeMicrosoftMediaJobInputClip ... 623 OdataTypeMicrosoftMediaJobInputClip OdataTypeBasicJobInput = "#Microsoft.Media.JobInputClip" 624 // OdataTypeMicrosoftMediaJobInputHTTP ... 625 OdataTypeMicrosoftMediaJobInputHTTP OdataTypeBasicJobInput = "#Microsoft.Media.JobInputHttp" 626 // OdataTypeMicrosoftMediaJobInputs ... 627 OdataTypeMicrosoftMediaJobInputs OdataTypeBasicJobInput = "#Microsoft.Media.JobInputs" 628) 629 630// PossibleOdataTypeBasicJobInputValues returns an array of possible values for the OdataTypeBasicJobInput const type. 631func PossibleOdataTypeBasicJobInputValues() []OdataTypeBasicJobInput { 632 return []OdataTypeBasicJobInput{OdataTypeJobInput, OdataTypeMicrosoftMediaJobInputAsset, OdataTypeMicrosoftMediaJobInputClip, OdataTypeMicrosoftMediaJobInputHTTP, OdataTypeMicrosoftMediaJobInputs} 633} 634 635// OdataTypeBasicJobOutput enumerates the values for odata type basic job output. 636type OdataTypeBasicJobOutput string 637 638const ( 639 // OdataTypeJobOutput ... 640 OdataTypeJobOutput OdataTypeBasicJobOutput = "JobOutput" 641 // OdataTypeMicrosoftMediaJobOutputAsset ... 642 OdataTypeMicrosoftMediaJobOutputAsset OdataTypeBasicJobOutput = "#Microsoft.Media.JobOutputAsset" 643) 644 645// PossibleOdataTypeBasicJobOutputValues returns an array of possible values for the OdataTypeBasicJobOutput const type. 646func PossibleOdataTypeBasicJobOutputValues() []OdataTypeBasicJobOutput { 647 return []OdataTypeBasicJobOutput{OdataTypeJobOutput, OdataTypeMicrosoftMediaJobOutputAsset} 648} 649 650// OdataTypeBasicLayer enumerates the values for odata type basic layer. 651type OdataTypeBasicLayer string 652 653const ( 654 // OdataTypeLayer ... 655 OdataTypeLayer OdataTypeBasicLayer = "Layer" 656 // OdataTypeMicrosoftMediaH264Layer ... 657 OdataTypeMicrosoftMediaH264Layer OdataTypeBasicLayer = "#Microsoft.Media.H264Layer" 658 // OdataTypeMicrosoftMediaJpgLayer ... 659 OdataTypeMicrosoftMediaJpgLayer OdataTypeBasicLayer = "#Microsoft.Media.JpgLayer" 660 // OdataTypeMicrosoftMediaPngLayer ... 661 OdataTypeMicrosoftMediaPngLayer OdataTypeBasicLayer = "#Microsoft.Media.PngLayer" 662 // OdataTypeMicrosoftMediaVideoLayer ... 663 OdataTypeMicrosoftMediaVideoLayer OdataTypeBasicLayer = "#Microsoft.Media.VideoLayer" 664) 665 666// PossibleOdataTypeBasicLayerValues returns an array of possible values for the OdataTypeBasicLayer const type. 667func PossibleOdataTypeBasicLayerValues() []OdataTypeBasicLayer { 668 return []OdataTypeBasicLayer{OdataTypeLayer, OdataTypeMicrosoftMediaH264Layer, OdataTypeMicrosoftMediaJpgLayer, OdataTypeMicrosoftMediaPngLayer, OdataTypeMicrosoftMediaVideoLayer} 669} 670 671// OdataTypeBasicOverlay enumerates the values for odata type basic overlay. 672type OdataTypeBasicOverlay string 673 674const ( 675 // OdataTypeMicrosoftMediaAudioOverlay ... 676 OdataTypeMicrosoftMediaAudioOverlay OdataTypeBasicOverlay = "#Microsoft.Media.AudioOverlay" 677 // OdataTypeMicrosoftMediaVideoOverlay ... 678 OdataTypeMicrosoftMediaVideoOverlay OdataTypeBasicOverlay = "#Microsoft.Media.VideoOverlay" 679 // OdataTypeOverlay ... 680 OdataTypeOverlay OdataTypeBasicOverlay = "Overlay" 681) 682 683// PossibleOdataTypeBasicOverlayValues returns an array of possible values for the OdataTypeBasicOverlay const type. 684func PossibleOdataTypeBasicOverlayValues() []OdataTypeBasicOverlay { 685 return []OdataTypeBasicOverlay{OdataTypeMicrosoftMediaAudioOverlay, OdataTypeMicrosoftMediaVideoOverlay, OdataTypeOverlay} 686} 687 688// OdataTypeBasicPreset enumerates the values for odata type basic preset. 689type OdataTypeBasicPreset string 690 691const ( 692 // OdataTypeMicrosoftMediaAudioAnalyzerPreset ... 693 OdataTypeMicrosoftMediaAudioAnalyzerPreset OdataTypeBasicPreset = "#Microsoft.Media.AudioAnalyzerPreset" 694 // OdataTypeMicrosoftMediaBuiltInStandardEncoderPreset ... 695 OdataTypeMicrosoftMediaBuiltInStandardEncoderPreset OdataTypeBasicPreset = "#Microsoft.Media.BuiltInStandardEncoderPreset" 696 // OdataTypeMicrosoftMediaStandardEncoderPreset ... 697 OdataTypeMicrosoftMediaStandardEncoderPreset OdataTypeBasicPreset = "#Microsoft.Media.StandardEncoderPreset" 698 // OdataTypeMicrosoftMediaVideoAnalyzerPreset ... 699 OdataTypeMicrosoftMediaVideoAnalyzerPreset OdataTypeBasicPreset = "#Microsoft.Media.VideoAnalyzerPreset" 700 // OdataTypePreset ... 701 OdataTypePreset OdataTypeBasicPreset = "Preset" 702) 703 704// PossibleOdataTypeBasicPresetValues returns an array of possible values for the OdataTypeBasicPreset const type. 705func PossibleOdataTypeBasicPresetValues() []OdataTypeBasicPreset { 706 return []OdataTypeBasicPreset{OdataTypeMicrosoftMediaAudioAnalyzerPreset, OdataTypeMicrosoftMediaBuiltInStandardEncoderPreset, OdataTypeMicrosoftMediaStandardEncoderPreset, OdataTypeMicrosoftMediaVideoAnalyzerPreset, OdataTypePreset} 707} 708 709// OnErrorType enumerates the values for on error type. 710type OnErrorType string 711 712const ( 713 // ContinueJob Tells the service that if this TransformOutput fails, then allow any other TransformOutput 714 // to continue. 715 ContinueJob OnErrorType = "ContinueJob" 716 // StopProcessingJob Tells the service that if this TransformOutput fails, then any other incomplete 717 // TransformOutputs can be stopped. 718 StopProcessingJob OnErrorType = "StopProcessingJob" 719) 720 721// PossibleOnErrorTypeValues returns an array of possible values for the OnErrorType const type. 722func PossibleOnErrorTypeValues() []OnErrorType { 723 return []OnErrorType{ContinueJob, StopProcessingJob} 724} 725 726// Priority enumerates the values for priority. 727type Priority string 728 729const ( 730 // High Used for TransformOutputs that should take precedence over others. 731 High Priority = "High" 732 // Low Used for TransformOutputs that can be generated after Normal and High priority TransformOutputs. 733 Low Priority = "Low" 734 // Normal Used for TransformOutputs that can be generated at Normal priority. 735 Normal Priority = "Normal" 736) 737 738// PossiblePriorityValues returns an array of possible values for the Priority const type. 739func PossiblePriorityValues() []Priority { 740 return []Priority{High, Low, Normal} 741} 742 743// Rotation enumerates the values for rotation. 744type Rotation string 745 746const ( 747 // RotationAuto Automatically detect and rotate as needed. 748 RotationAuto Rotation = "Auto" 749 // RotationNone Do not rotate the video. If the output format supports it, any metadata about rotation is 750 // kept intact. 751 RotationNone Rotation = "None" 752 // RotationRotate0 Do not rotate the video but remove any metadata about the rotation. 753 RotationRotate0 Rotation = "Rotate0" 754 // RotationRotate180 Rotate 180 degrees clockwise. 755 RotationRotate180 Rotation = "Rotate180" 756 // RotationRotate270 Rotate 270 degrees clockwise. 757 RotationRotate270 Rotation = "Rotate270" 758 // RotationRotate90 Rotate 90 degrees clockwise. 759 RotationRotate90 Rotation = "Rotate90" 760) 761 762// PossibleRotationValues returns an array of possible values for the Rotation const type. 763func PossibleRotationValues() []Rotation { 764 return []Rotation{RotationAuto, RotationNone, RotationRotate0, RotationRotate180, RotationRotate270, RotationRotate90} 765} 766 767// StorageAccountType enumerates the values for storage account type. 768type StorageAccountType string 769 770const ( 771 // Primary The primary storage account for the Media Services account. 772 Primary StorageAccountType = "Primary" 773 // Secondary A secondary storage account for the Media Services account. 774 Secondary StorageAccountType = "Secondary" 775) 776 777// PossibleStorageAccountTypeValues returns an array of possible values for the StorageAccountType const type. 778func PossibleStorageAccountTypeValues() []StorageAccountType { 779 return []StorageAccountType{Primary, Secondary} 780} 781 782// StreamingEndpointResourceState enumerates the values for streaming endpoint resource state. 783type StreamingEndpointResourceState string 784 785const ( 786 // StreamingEndpointResourceStateDeleting ... 787 StreamingEndpointResourceStateDeleting StreamingEndpointResourceState = "Deleting" 788 // StreamingEndpointResourceStateRunning ... 789 StreamingEndpointResourceStateRunning StreamingEndpointResourceState = "Running" 790 // StreamingEndpointResourceStateScaling ... 791 StreamingEndpointResourceStateScaling StreamingEndpointResourceState = "Scaling" 792 // StreamingEndpointResourceStateStarting ... 793 StreamingEndpointResourceStateStarting StreamingEndpointResourceState = "Starting" 794 // StreamingEndpointResourceStateStopped ... 795 StreamingEndpointResourceStateStopped StreamingEndpointResourceState = "Stopped" 796 // StreamingEndpointResourceStateStopping ... 797 StreamingEndpointResourceStateStopping StreamingEndpointResourceState = "Stopping" 798) 799 800// PossibleStreamingEndpointResourceStateValues returns an array of possible values for the StreamingEndpointResourceState const type. 801func PossibleStreamingEndpointResourceStateValues() []StreamingEndpointResourceState { 802 return []StreamingEndpointResourceState{StreamingEndpointResourceStateDeleting, StreamingEndpointResourceStateRunning, StreamingEndpointResourceStateScaling, StreamingEndpointResourceStateStarting, StreamingEndpointResourceStateStopped, StreamingEndpointResourceStateStopping} 803} 804 805// StreamingLocatorContentKeyType enumerates the values for streaming locator content key type. 806type StreamingLocatorContentKeyType string 807 808const ( 809 // StreamingLocatorContentKeyTypeCommonEncryptionCbcs Common Encryption using CBCS 810 StreamingLocatorContentKeyTypeCommonEncryptionCbcs StreamingLocatorContentKeyType = "CommonEncryptionCbcs" 811 // StreamingLocatorContentKeyTypeCommonEncryptionCenc Common Encryption using CENC 812 StreamingLocatorContentKeyTypeCommonEncryptionCenc StreamingLocatorContentKeyType = "CommonEncryptionCenc" 813 // StreamingLocatorContentKeyTypeEnvelopeEncryption Envelope Encryption 814 StreamingLocatorContentKeyTypeEnvelopeEncryption StreamingLocatorContentKeyType = "EnvelopeEncryption" 815) 816 817// PossibleStreamingLocatorContentKeyTypeValues returns an array of possible values for the StreamingLocatorContentKeyType const type. 818func PossibleStreamingLocatorContentKeyTypeValues() []StreamingLocatorContentKeyType { 819 return []StreamingLocatorContentKeyType{StreamingLocatorContentKeyTypeCommonEncryptionCbcs, StreamingLocatorContentKeyTypeCommonEncryptionCenc, StreamingLocatorContentKeyTypeEnvelopeEncryption} 820} 821 822// StreamingPolicyStreamingProtocol enumerates the values for streaming policy streaming protocol. 823type StreamingPolicyStreamingProtocol string 824 825const ( 826 // StreamingPolicyStreamingProtocolDash DASH protocol 827 StreamingPolicyStreamingProtocolDash StreamingPolicyStreamingProtocol = "Dash" 828 // StreamingPolicyStreamingProtocolDownload Download protocol 829 StreamingPolicyStreamingProtocolDownload StreamingPolicyStreamingProtocol = "Download" 830 // StreamingPolicyStreamingProtocolHls HLS protocol 831 StreamingPolicyStreamingProtocolHls StreamingPolicyStreamingProtocol = "Hls" 832 // StreamingPolicyStreamingProtocolSmoothStreaming SmoothStreaming protocol 833 StreamingPolicyStreamingProtocolSmoothStreaming StreamingPolicyStreamingProtocol = "SmoothStreaming" 834) 835 836// PossibleStreamingPolicyStreamingProtocolValues returns an array of possible values for the StreamingPolicyStreamingProtocol const type. 837func PossibleStreamingPolicyStreamingProtocolValues() []StreamingPolicyStreamingProtocol { 838 return []StreamingPolicyStreamingProtocol{StreamingPolicyStreamingProtocolDash, StreamingPolicyStreamingProtocolDownload, StreamingPolicyStreamingProtocolHls, StreamingPolicyStreamingProtocolSmoothStreaming} 839} 840 841// StreamOptionsFlag enumerates the values for stream options flag. 842type StreamOptionsFlag string 843 844const ( 845 // Default ... 846 Default StreamOptionsFlag = "Default" 847 // LowLatency ... 848 LowLatency StreamOptionsFlag = "LowLatency" 849) 850 851// PossibleStreamOptionsFlagValues returns an array of possible values for the StreamOptionsFlag const type. 852func PossibleStreamOptionsFlagValues() []StreamOptionsFlag { 853 return []StreamOptionsFlag{Default, LowLatency} 854} 855 856// StretchMode enumerates the values for stretch mode. 857type StretchMode string 858 859const ( 860 // StretchModeAutoFit Pad the output (with either letterbox or pillar box) to honor the output resolution, 861 // while ensuring that the active video region in the output has the same aspect ratio as the input. For 862 // example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the output will be 863 // at 1280x1280, which contains an inner rectangle of 1280x720 at aspect ratio of 16:9, and pillar box 864 // regions 280 pixels wide at the left and right. 865 StretchModeAutoFit StretchMode = "AutoFit" 866 // StretchModeAutoSize Override the output resolution, and change it to match the display aspect ratio of 867 // the input, without padding. For example, if the input is 1920x1080 and the encoding preset asks for 868 // 1280x1280, then the value in the preset is overridden, and the output will be at 1280x720, which 869 // maintains the input aspect ratio of 16:9. 870 StretchModeAutoSize StretchMode = "AutoSize" 871 // StretchModeNone Strictly respect the output resolution without considering the pixel aspect ratio or 872 // display aspect ratio of the input video. 873 StretchModeNone StretchMode = "None" 874) 875 876// PossibleStretchModeValues returns an array of possible values for the StretchMode const type. 877func PossibleStretchModeValues() []StretchMode { 878 return []StretchMode{StretchModeAutoFit, StretchModeAutoSize, StretchModeNone} 879} 880 881// TrackPropertyCompareOperation enumerates the values for track property compare operation. 882type TrackPropertyCompareOperation string 883 884const ( 885 // TrackPropertyCompareOperationEqual Equal operation 886 TrackPropertyCompareOperationEqual TrackPropertyCompareOperation = "Equal" 887 // TrackPropertyCompareOperationUnknown Unknown track property compare operation 888 TrackPropertyCompareOperationUnknown TrackPropertyCompareOperation = "Unknown" 889) 890 891// PossibleTrackPropertyCompareOperationValues returns an array of possible values for the TrackPropertyCompareOperation const type. 892func PossibleTrackPropertyCompareOperationValues() []TrackPropertyCompareOperation { 893 return []TrackPropertyCompareOperation{TrackPropertyCompareOperationEqual, TrackPropertyCompareOperationUnknown} 894} 895 896// TrackPropertyType enumerates the values for track property type. 897type TrackPropertyType string 898 899const ( 900 // TrackPropertyTypeFourCC Track FourCC 901 TrackPropertyTypeFourCC TrackPropertyType = "FourCC" 902 // TrackPropertyTypeUnknown Unknown track property 903 TrackPropertyTypeUnknown TrackPropertyType = "Unknown" 904) 905 906// PossibleTrackPropertyTypeValues returns an array of possible values for the TrackPropertyType const type. 907func PossibleTrackPropertyTypeValues() []TrackPropertyType { 908 return []TrackPropertyType{TrackPropertyTypeFourCC, TrackPropertyTypeUnknown} 909} 910