forked from Azure/azure-sdk-for-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenums.go
130 lines (111 loc) · 3.91 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
package translatortext
// 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.
// Code enumerates the values for code.
type Code string
const (
// InternalServerError ...
InternalServerError Code = "InternalServerError"
// InvalidArgument ...
InvalidArgument Code = "InvalidArgument"
// InvalidRequest ...
InvalidRequest Code = "InvalidRequest"
// RequestRateTooHigh ...
RequestRateTooHigh Code = "RequestRateTooHigh"
// ResourceNotFound ...
ResourceNotFound Code = "ResourceNotFound"
// ServiceUnavailable ...
ServiceUnavailable Code = "ServiceUnavailable"
// Unauthorized ...
Unauthorized Code = "Unauthorized"
)
// PossibleCodeValues returns an array of possible values for the Code const type.
func PossibleCodeValues() []Code {
return []Code{InternalServerError, InvalidArgument, InvalidRequest, RequestRateTooHigh, ResourceNotFound, ServiceUnavailable, Unauthorized}
}
// Status enumerates the values for status.
type Status string
const (
// Cancelled ...
Cancelled Status = "Cancelled"
// Cancelling ...
Cancelling Status = "Cancelling"
// Failed ...
Failed Status = "Failed"
// NotStarted ...
NotStarted Status = "NotStarted"
// Running ...
Running Status = "Running"
// Succeeded ...
Succeeded Status = "Succeeded"
)
// PossibleStatusValues returns an array of possible values for the Status const type.
func PossibleStatusValues() []Status {
return []Status{Cancelled, Cancelling, Failed, NotStarted, Running, Succeeded}
}
// Status1 enumerates the values for status 1.
type Status1 string
const (
// Status1Cancelled ...
Status1Cancelled Status1 = "Cancelled"
// Status1Cancelling ...
Status1Cancelling Status1 = "Cancelling"
// Status1Failed ...
Status1Failed Status1 = "Failed"
// Status1NotStarted ...
Status1NotStarted Status1 = "NotStarted"
// Status1Running ...
Status1Running Status1 = "Running"
// Status1Succeeded ...
Status1Succeeded Status1 = "Succeeded"
)
// PossibleStatus1Values returns an array of possible values for the Status1 const type.
func PossibleStatus1Values() []Status1 {
return []Status1{Status1Cancelled, Status1Cancelling, Status1Failed, Status1NotStarted, Status1Running, Status1Succeeded}
}
// StorageSource enumerates the values for storage source.
type StorageSource string
const (
// AzureBlob ...
AzureBlob StorageSource = "AzureBlob"
)
// PossibleStorageSourceValues returns an array of possible values for the StorageSource const type.
func PossibleStorageSourceValues() []StorageSource {
return []StorageSource{AzureBlob}
}
// StorageSource1 enumerates the values for storage source 1.
type StorageSource1 string
const (
// StorageSource1AzureBlob ...
StorageSource1AzureBlob StorageSource1 = "AzureBlob"
)
// PossibleStorageSource1Values returns an array of possible values for the StorageSource1 const type.
func PossibleStorageSource1Values() []StorageSource1 {
return []StorageSource1{StorageSource1AzureBlob}
}
// StorageType enumerates the values for storage type.
type StorageType string
const (
// File ...
File StorageType = "File"
// Folder ...
Folder StorageType = "Folder"
)
// PossibleStorageTypeValues returns an array of possible values for the StorageType const type.
func PossibleStorageTypeValues() []StorageType {
return []StorageType{File, Folder}
}