forked from Azure/azure-sdk-for-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
enums.go
204 lines (176 loc) · 8.73 KB
/
enums.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
package eventgrid
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
// AppAction enumerates the values for app action.
type AppAction string
const (
// ChangedAppSettings There was an operation to change app setting on the web app.
ChangedAppSettings AppAction = "ChangedAppSettings"
// Completed The job has completed.
Completed AppAction = "Completed"
// Failed The job has failed to complete.
Failed AppAction = "Failed"
// Restarted Web app was restarted.
Restarted AppAction = "Restarted"
// Started The job has started.
Started AppAction = "Started"
// Stopped Web app was stopped.
Stopped AppAction = "Stopped"
)
// PossibleAppActionValues returns an array of possible values for the AppAction const type.
func PossibleAppActionValues() []AppAction {
return []AppAction{ChangedAppSettings, Completed, Failed, Restarted, Started, Stopped}
}
// AppServicePlanAction enumerates the values for app service plan action.
type AppServicePlanAction string
const (
// Updated App Service plan is being updated.
Updated AppServicePlanAction = "Updated"
)
// PossibleAppServicePlanActionValues returns an array of possible values for the AppServicePlanAction const type.
func PossibleAppServicePlanActionValues() []AppServicePlanAction {
return []AppServicePlanAction{Updated}
}
// AsyncStatus enumerates the values for async status.
type AsyncStatus string
const (
// AsyncStatusCompleted Async operation has completed.
AsyncStatusCompleted AsyncStatus = "Completed"
// AsyncStatusFailed Async operation failed to complete.
AsyncStatusFailed AsyncStatus = "Failed"
// AsyncStatusStarted Async operation has started.
AsyncStatusStarted AsyncStatus = "Started"
)
// PossibleAsyncStatusValues returns an array of possible values for the AsyncStatus const type.
func PossibleAsyncStatusValues() []AsyncStatus {
return []AsyncStatus{AsyncStatusCompleted, AsyncStatusFailed, AsyncStatusStarted}
}
// MediaJobErrorCategory enumerates the values for media job error category.
type MediaJobErrorCategory string
const (
// Configuration The error is configuration related.
Configuration MediaJobErrorCategory = "Configuration"
// Content The error is related to data in the input files.
Content MediaJobErrorCategory = "Content"
// Download The error is download related.
Download MediaJobErrorCategory = "Download"
// Service The error is service related.
Service MediaJobErrorCategory = "Service"
// Upload The error is upload related.
Upload MediaJobErrorCategory = "Upload"
)
// PossibleMediaJobErrorCategoryValues returns an array of possible values for the MediaJobErrorCategory const type.
func PossibleMediaJobErrorCategoryValues() []MediaJobErrorCategory {
return []MediaJobErrorCategory{Configuration, Content, Download, Service, Upload}
}
// MediaJobErrorCode enumerates the values for media job error code.
type MediaJobErrorCode string
const (
// ConfigurationUnsupported There was a problem with the combination of input files and the configuration
// settings applied, fix the configuration settings and retry with the same input, or change input to match
// the configuration.
ConfigurationUnsupported MediaJobErrorCode = "ConfigurationUnsupported"
// ContentMalformed There was a problem with the input content (for example: zero byte files, or
// corrupt/non-decodable files), check the input files.
ContentMalformed MediaJobErrorCode = "ContentMalformed"
// ContentUnsupported There was a problem with the format of the input (not valid media file, or an
// unsupported file/codec), check the validity of the input files.
ContentUnsupported MediaJobErrorCode = "ContentUnsupported"
// DownloadNotAccessible While trying to download the input files, the files were not accessible, please
// check the availability of the source.
DownloadNotAccessible MediaJobErrorCode = "DownloadNotAccessible"
// DownloadTransientError While trying to download the input files, there was an issue during transfer
// (storage service, network errors), see details and check your source.
DownloadTransientError MediaJobErrorCode = "DownloadTransientError"
// ServiceError Fatal service error, please contact support.
ServiceError MediaJobErrorCode = "ServiceError"
// ServiceTransientError Transient error, please retry, if retry is unsuccessful, please contact support.
ServiceTransientError MediaJobErrorCode = "ServiceTransientError"
// UploadNotAccessible While trying to upload the output files, the destination was not reachable, please
// check the availability of the destination.
UploadNotAccessible MediaJobErrorCode = "UploadNotAccessible"
// UploadTransientError While trying to upload the output files, there was an issue during transfer
// (storage service, network errors), see details and check your destination.
UploadTransientError MediaJobErrorCode = "UploadTransientError"
)
// PossibleMediaJobErrorCodeValues returns an array of possible values for the MediaJobErrorCode const type.
func PossibleMediaJobErrorCodeValues() []MediaJobErrorCode {
return []MediaJobErrorCode{ConfigurationUnsupported, ContentMalformed, ContentUnsupported, DownloadNotAccessible, DownloadTransientError, ServiceError, ServiceTransientError, UploadNotAccessible, UploadTransientError}
}
// MediaJobRetry enumerates the values for media job retry.
type MediaJobRetry string
const (
// DoNotRetry Issue needs to be investigated and then the job resubmitted with corrections or retried once
// the underlying issue has been corrected.
DoNotRetry MediaJobRetry = "DoNotRetry"
// MayRetry Issue may be resolved after waiting for a period of time and resubmitting the same Job.
MayRetry MediaJobRetry = "MayRetry"
)
// PossibleMediaJobRetryValues returns an array of possible values for the MediaJobRetry const type.
func PossibleMediaJobRetryValues() []MediaJobRetry {
return []MediaJobRetry{DoNotRetry, MayRetry}
}
// MediaJobState enumerates the values for media job state.
type MediaJobState string
const (
// Canceled The job was canceled. This is a final state for the job.
Canceled MediaJobState = "Canceled"
// Canceling The job is in the process of being canceled. This is a transient state for the job.
Canceling MediaJobState = "Canceling"
// Error The job has encountered an error. This is a final state for the job.
Error MediaJobState = "Error"
// Finished The job is finished. This is a final state for the job.
Finished MediaJobState = "Finished"
// Processing The job is processing. This is a transient state for the job.
Processing MediaJobState = "Processing"
// Queued The job is in a queued state, waiting for resources to become available. This is a transient
// state.
Queued MediaJobState = "Queued"
// Scheduled The job is being scheduled to run on an available resource. This is a transient state, between
// queued and processing states.
Scheduled MediaJobState = "Scheduled"
)
// PossibleMediaJobStateValues returns an array of possible values for the MediaJobState const type.
func PossibleMediaJobStateValues() []MediaJobState {
return []MediaJobState{Canceled, Canceling, Error, Finished, Processing, Queued, Scheduled}
}
// OdataType enumerates the values for odata type.
type OdataType string
const (
// OdataTypeMediaJobOutput ...
OdataTypeMediaJobOutput OdataType = "MediaJobOutput"
// OdataTypeMicrosoftMediaJobOutputAsset ...
OdataTypeMicrosoftMediaJobOutputAsset OdataType = "#Microsoft.Media.JobOutputAsset"
)
// PossibleOdataTypeValues returns an array of possible values for the OdataType const type.
func PossibleOdataTypeValues() []OdataType {
return []OdataType{OdataTypeMediaJobOutput, OdataTypeMicrosoftMediaJobOutputAsset}
}
// StampKind enumerates the values for stamp kind.
type StampKind string
const (
// AseV1 App Service Plan is running on an App Service Environment V1.
AseV1 StampKind = "AseV1"
// AseV2 App Service Plan is running on an App Service Environment V2.
AseV2 StampKind = "AseV2"
// Public App Service Plan is running on a public stamp.
Public StampKind = "Public"
)
// PossibleStampKindValues returns an array of possible values for the StampKind const type.
func PossibleStampKindValues() []StampKind {
return []StampKind{AseV1, AseV2, Public}
}