1package eventgrid 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// AppAction enumerates the values for app action. 10type AppAction string 11 12const ( 13 // ChangedAppSettings There was an operation to change app setting on the web app. 14 ChangedAppSettings AppAction = "ChangedAppSettings" 15 // Completed The job has completed. 16 Completed AppAction = "Completed" 17 // Failed The job has failed to complete. 18 Failed AppAction = "Failed" 19 // Restarted Web app was restarted. 20 Restarted AppAction = "Restarted" 21 // Started The job has started. 22 Started AppAction = "Started" 23 // Stopped Web app was stopped. 24 Stopped AppAction = "Stopped" 25) 26 27// PossibleAppActionValues returns an array of possible values for the AppAction const type. 28func PossibleAppActionValues() []AppAction { 29 return []AppAction{ChangedAppSettings, Completed, Failed, Restarted, Started, Stopped} 30} 31 32// AppServicePlanAction enumerates the values for app service plan action. 33type AppServicePlanAction string 34 35const ( 36 // Updated App Service plan is being updated. 37 Updated AppServicePlanAction = "Updated" 38) 39 40// PossibleAppServicePlanActionValues returns an array of possible values for the AppServicePlanAction const type. 41func PossibleAppServicePlanActionValues() []AppServicePlanAction { 42 return []AppServicePlanAction{Updated} 43} 44 45// AsyncStatus enumerates the values for async status. 46type AsyncStatus string 47 48const ( 49 // AsyncStatusCompleted Async operation has completed. 50 AsyncStatusCompleted AsyncStatus = "Completed" 51 // AsyncStatusFailed Async operation failed to complete. 52 AsyncStatusFailed AsyncStatus = "Failed" 53 // AsyncStatusStarted Async operation has started. 54 AsyncStatusStarted AsyncStatus = "Started" 55) 56 57// PossibleAsyncStatusValues returns an array of possible values for the AsyncStatus const type. 58func PossibleAsyncStatusValues() []AsyncStatus { 59 return []AsyncStatus{AsyncStatusCompleted, AsyncStatusFailed, AsyncStatusStarted} 60} 61 62// MediaJobErrorCategory enumerates the values for media job error category. 63type MediaJobErrorCategory string 64 65const ( 66 // Configuration The error is configuration related. 67 Configuration MediaJobErrorCategory = "Configuration" 68 // Content The error is related to data in the input files. 69 Content MediaJobErrorCategory = "Content" 70 // Download The error is download related. 71 Download MediaJobErrorCategory = "Download" 72 // Service The error is service related. 73 Service MediaJobErrorCategory = "Service" 74 // Upload The error is upload related. 75 Upload MediaJobErrorCategory = "Upload" 76) 77 78// PossibleMediaJobErrorCategoryValues returns an array of possible values for the MediaJobErrorCategory const type. 79func PossibleMediaJobErrorCategoryValues() []MediaJobErrorCategory { 80 return []MediaJobErrorCategory{Configuration, Content, Download, Service, Upload} 81} 82 83// MediaJobErrorCode enumerates the values for media job error code. 84type MediaJobErrorCode string 85 86const ( 87 // ConfigurationUnsupported There was a problem with the combination of input files and the configuration 88 // settings applied, fix the configuration settings and retry with the same input, or change input to match 89 // the configuration. 90 ConfigurationUnsupported MediaJobErrorCode = "ConfigurationUnsupported" 91 // ContentMalformed There was a problem with the input content (for example: zero byte files, or 92 // corrupt/non-decodable files), check the input files. 93 ContentMalformed MediaJobErrorCode = "ContentMalformed" 94 // ContentUnsupported There was a problem with the format of the input (not valid media file, or an 95 // unsupported file/codec), check the validity of the input files. 96 ContentUnsupported MediaJobErrorCode = "ContentUnsupported" 97 // DownloadNotAccessible While trying to download the input files, the files were not accessible, please 98 // check the availability of the source. 99 DownloadNotAccessible MediaJobErrorCode = "DownloadNotAccessible" 100 // DownloadTransientError While trying to download the input files, there was an issue during transfer 101 // (storage service, network errors), see details and check your source. 102 DownloadTransientError MediaJobErrorCode = "DownloadTransientError" 103 // ServiceError Fatal service error, please contact support. 104 ServiceError MediaJobErrorCode = "ServiceError" 105 // ServiceTransientError Transient error, please retry, if retry is unsuccessful, please contact support. 106 ServiceTransientError MediaJobErrorCode = "ServiceTransientError" 107 // UploadNotAccessible While trying to upload the output files, the destination was not reachable, please 108 // check the availability of the destination. 109 UploadNotAccessible MediaJobErrorCode = "UploadNotAccessible" 110 // UploadTransientError While trying to upload the output files, there was an issue during transfer 111 // (storage service, network errors), see details and check your destination. 112 UploadTransientError MediaJobErrorCode = "UploadTransientError" 113) 114 115// PossibleMediaJobErrorCodeValues returns an array of possible values for the MediaJobErrorCode const type. 116func PossibleMediaJobErrorCodeValues() []MediaJobErrorCode { 117 return []MediaJobErrorCode{ConfigurationUnsupported, ContentMalformed, ContentUnsupported, DownloadNotAccessible, DownloadTransientError, ServiceError, ServiceTransientError, UploadNotAccessible, UploadTransientError} 118} 119 120// MediaJobRetry enumerates the values for media job retry. 121type MediaJobRetry string 122 123const ( 124 // DoNotRetry Issue needs to be investigated and then the job resubmitted with corrections or retried once 125 // the underlying issue has been corrected. 126 DoNotRetry MediaJobRetry = "DoNotRetry" 127 // MayRetry Issue may be resolved after waiting for a period of time and resubmitting the same Job. 128 MayRetry MediaJobRetry = "MayRetry" 129) 130 131// PossibleMediaJobRetryValues returns an array of possible values for the MediaJobRetry const type. 132func PossibleMediaJobRetryValues() []MediaJobRetry { 133 return []MediaJobRetry{DoNotRetry, MayRetry} 134} 135 136// MediaJobState enumerates the values for media job state. 137type MediaJobState string 138 139const ( 140 // Canceled The job was canceled. This is a final state for the job. 141 Canceled MediaJobState = "Canceled" 142 // Canceling The job is in the process of being canceled. This is a transient state for the job. 143 Canceling MediaJobState = "Canceling" 144 // Error The job has encountered an error. This is a final state for the job. 145 Error MediaJobState = "Error" 146 // Finished The job is finished. This is a final state for the job. 147 Finished MediaJobState = "Finished" 148 // Processing The job is processing. This is a transient state for the job. 149 Processing MediaJobState = "Processing" 150 // Queued The job is in a queued state, waiting for resources to become available. This is a transient 151 // state. 152 Queued MediaJobState = "Queued" 153 // Scheduled The job is being scheduled to run on an available resource. This is a transient state, between 154 // queued and processing states. 155 Scheduled MediaJobState = "Scheduled" 156) 157 158// PossibleMediaJobStateValues returns an array of possible values for the MediaJobState const type. 159func PossibleMediaJobStateValues() []MediaJobState { 160 return []MediaJobState{Canceled, Canceling, Error, Finished, Processing, Queued, Scheduled} 161} 162 163// OdataType enumerates the values for odata type. 164type OdataType string 165 166const ( 167 // OdataTypeMediaJobOutput ... 168 OdataTypeMediaJobOutput OdataType = "MediaJobOutput" 169 // OdataTypeMicrosoftMediaJobOutputAsset ... 170 OdataTypeMicrosoftMediaJobOutputAsset OdataType = "#Microsoft.Media.JobOutputAsset" 171) 172 173// PossibleOdataTypeValues returns an array of possible values for the OdataType const type. 174func PossibleOdataTypeValues() []OdataType { 175 return []OdataType{OdataTypeMediaJobOutput, OdataTypeMicrosoftMediaJobOutputAsset} 176} 177 178// StampKind enumerates the values for stamp kind. 179type StampKind string 180 181const ( 182 // AseV1 App Service Plan is running on an App Service Environment V1. 183 AseV1 StampKind = "AseV1" 184 // AseV2 App Service Plan is running on an App Service Environment V2. 185 AseV2 StampKind = "AseV2" 186 // Public App Service Plan is running on a public stamp. 187 Public StampKind = "Public" 188) 189 190// PossibleStampKindValues returns an array of possible values for the StampKind const type. 191func PossibleStampKindValues() []StampKind { 192 return []StampKind{AseV1, AseV2, Public} 193} 194