/
constants.go
322 lines (277 loc) · 11.4 KB
/
constants.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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
//go:build go1.18
// +build go1.18
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
package armapicenter
const (
moduleName = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apicenter/armapicenter"
moduleVersion = "v1.0.0"
)
// APIKind - The kind of the API
type APIKind string
const (
// APIKindGraphql - A Graph query language Api
APIKindGraphql APIKind = "graphql"
// APIKindGrpc - A gRPC Api
APIKindGrpc APIKind = "grpc"
// APIKindRest - A Representational State Transfer Api
APIKindRest APIKind = "rest"
// APIKindSoap - A SOAP Api
APIKindSoap APIKind = "soap"
// APIKindWebhook - Web Hook
APIKindWebhook APIKind = "webhook"
// APIKindWebsocket - Web Socket
APIKindWebsocket APIKind = "websocket"
)
// PossibleAPIKindValues returns the possible values for the APIKind const type.
func PossibleAPIKindValues() []APIKind {
return []APIKind{
APIKindGraphql,
APIKindGrpc,
APIKindRest,
APIKindSoap,
APIKindWebhook,
APIKindWebsocket,
}
}
// APISpecExportResultFormat - Result format for exported Api spec
type APISpecExportResultFormat string
const (
// APISpecExportResultFormatInline - The inlined content of a specification document.
APISpecExportResultFormatInline APISpecExportResultFormat = "inline"
// APISpecExportResultFormatLink - The link to the result of the export operation. The URL is valid for 5 minutes.
APISpecExportResultFormatLink APISpecExportResultFormat = "link"
)
// PossibleAPISpecExportResultFormatValues returns the possible values for the APISpecExportResultFormat const type.
func PossibleAPISpecExportResultFormatValues() []APISpecExportResultFormat {
return []APISpecExportResultFormat{
APISpecExportResultFormatInline,
APISpecExportResultFormatLink,
}
}
// APISpecImportSourceFormat - Source format for imported Api spec
type APISpecImportSourceFormat string
const (
// APISpecImportSourceFormatInline - The inlined content of a specification document.
APISpecImportSourceFormatInline APISpecImportSourceFormat = "inline"
// APISpecImportSourceFormatLink - The link to a specification document hosted on a publicly accessible internet
// address.
APISpecImportSourceFormatLink APISpecImportSourceFormat = "link"
)
// PossibleAPISpecImportSourceFormatValues returns the possible values for the APISpecImportSourceFormat const type.
func PossibleAPISpecImportSourceFormatValues() []APISpecImportSourceFormat {
return []APISpecImportSourceFormat{
APISpecImportSourceFormatInline,
APISpecImportSourceFormatLink,
}
}
// ActionType - Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
type ActionType string
const (
ActionTypeInternal ActionType = "Internal"
)
// PossibleActionTypeValues returns the possible values for the ActionType const type.
func PossibleActionTypeValues() []ActionType {
return []ActionType{
ActionTypeInternal,
}
}
// CreatedByType - The type of identity that created the resource.
type CreatedByType string
const (
CreatedByTypeApplication CreatedByType = "Application"
CreatedByTypeKey CreatedByType = "Key"
CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity"
CreatedByTypeUser CreatedByType = "User"
)
// PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
func PossibleCreatedByTypeValues() []CreatedByType {
return []CreatedByType{
CreatedByTypeApplication,
CreatedByTypeKey,
CreatedByTypeManagedIdentity,
CreatedByTypeUser,
}
}
// DeploymentState - State of the Deployment
type DeploymentState string
const (
// DeploymentStateActive - Active State
DeploymentStateActive DeploymentState = "active"
// DeploymentStateInactive - Inactive State
DeploymentStateInactive DeploymentState = "inactive"
)
// PossibleDeploymentStateValues returns the possible values for the DeploymentState const type.
func PossibleDeploymentStateValues() []DeploymentState {
return []DeploymentState{
DeploymentStateActive,
DeploymentStateInactive,
}
}
// EnvironmentKind - The kind of environment
type EnvironmentKind string
const (
// EnvironmentKindDevelopment - Development environment
EnvironmentKindDevelopment EnvironmentKind = "development"
// EnvironmentKindProduction - Production environment
EnvironmentKindProduction EnvironmentKind = "production"
// EnvironmentKindStaging - Staging environment
EnvironmentKindStaging EnvironmentKind = "staging"
// EnvironmentKindTesting - Testing environment
EnvironmentKindTesting EnvironmentKind = "testing"
)
// PossibleEnvironmentKindValues returns the possible values for the EnvironmentKind const type.
func PossibleEnvironmentKindValues() []EnvironmentKind {
return []EnvironmentKind{
EnvironmentKindDevelopment,
EnvironmentKindProduction,
EnvironmentKindStaging,
EnvironmentKindTesting,
}
}
// EnvironmentServerType - The type of environment server
type EnvironmentServerType string
const (
// EnvironmentServerTypeAWSAPIGateway - AWS Api Gateway server
EnvironmentServerTypeAWSAPIGateway EnvironmentServerType = "AWS API Gateway"
// EnvironmentServerTypeApigeeAPIManagement - Apigee server
EnvironmentServerTypeApigeeAPIManagement EnvironmentServerType = "Apigee API Management"
// EnvironmentServerTypeAzureAPIManagement - Api Management Server
EnvironmentServerTypeAzureAPIManagement EnvironmentServerType = "Azure API Management"
// EnvironmentServerTypeAzureComputeService - Compute server
EnvironmentServerTypeAzureComputeService EnvironmentServerType = "Azure compute service"
// EnvironmentServerTypeKongAPIGateway - Kong API Gateway server
EnvironmentServerTypeKongAPIGateway EnvironmentServerType = "Kong API Gateway"
// EnvironmentServerTypeKubernetes - Kubernetes server
EnvironmentServerTypeKubernetes EnvironmentServerType = "Kubernetes"
// EnvironmentServerTypeMuleSoftAPIManagement - Mulesoft Api Management server
EnvironmentServerTypeMuleSoftAPIManagement EnvironmentServerType = "MuleSoft API Management"
)
// PossibleEnvironmentServerTypeValues returns the possible values for the EnvironmentServerType const type.
func PossibleEnvironmentServerTypeValues() []EnvironmentServerType {
return []EnvironmentServerType{
EnvironmentServerTypeAWSAPIGateway,
EnvironmentServerTypeApigeeAPIManagement,
EnvironmentServerTypeAzureAPIManagement,
EnvironmentServerTypeAzureComputeService,
EnvironmentServerTypeKongAPIGateway,
EnvironmentServerTypeKubernetes,
EnvironmentServerTypeMuleSoftAPIManagement,
}
}
// LifecycleStage - The stage of the Api development lifecycle
type LifecycleStage string
const (
// LifecycleStageDeprecated - deprecated stage
LifecycleStageDeprecated LifecycleStage = "deprecated"
// LifecycleStageDesign - design stage
LifecycleStageDesign LifecycleStage = "design"
// LifecycleStageDevelopment - development stage
LifecycleStageDevelopment LifecycleStage = "development"
// LifecycleStagePreview - In preview
LifecycleStagePreview LifecycleStage = "preview"
// LifecycleStageProduction - In production
LifecycleStageProduction LifecycleStage = "production"
// LifecycleStageRetired - Retired stage
LifecycleStageRetired LifecycleStage = "retired"
// LifecycleStageTesting - testing stage
LifecycleStageTesting LifecycleStage = "testing"
)
// PossibleLifecycleStageValues returns the possible values for the LifecycleStage const type.
func PossibleLifecycleStageValues() []LifecycleStage {
return []LifecycleStage{
LifecycleStageDeprecated,
LifecycleStageDesign,
LifecycleStageDevelopment,
LifecycleStagePreview,
LifecycleStageProduction,
LifecycleStageRetired,
LifecycleStageTesting,
}
}
// ManagedServiceIdentityType - Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
type ManagedServiceIdentityType string
const (
ManagedServiceIdentityTypeNone ManagedServiceIdentityType = "None"
ManagedServiceIdentityTypeSystemAssigned ManagedServiceIdentityType = "SystemAssigned"
ManagedServiceIdentityTypeSystemAssignedUserAssigned ManagedServiceIdentityType = "SystemAssigned,UserAssigned"
ManagedServiceIdentityTypeUserAssigned ManagedServiceIdentityType = "UserAssigned"
)
// PossibleManagedServiceIdentityTypeValues returns the possible values for the ManagedServiceIdentityType const type.
func PossibleManagedServiceIdentityTypeValues() []ManagedServiceIdentityType {
return []ManagedServiceIdentityType{
ManagedServiceIdentityTypeNone,
ManagedServiceIdentityTypeSystemAssigned,
ManagedServiceIdentityTypeSystemAssignedUserAssigned,
ManagedServiceIdentityTypeUserAssigned,
}
}
// MetadataAssignmentEntity - Assignment entity for Metadata
type MetadataAssignmentEntity string
const (
// MetadataAssignmentEntityAPI - Assigned to API
MetadataAssignmentEntityAPI MetadataAssignmentEntity = "api"
// MetadataAssignmentEntityDeployment - Assigned to Deployment
MetadataAssignmentEntityDeployment MetadataAssignmentEntity = "deployment"
// MetadataAssignmentEntityEnvironment - Assigned to Environment
MetadataAssignmentEntityEnvironment MetadataAssignmentEntity = "environment"
)
// PossibleMetadataAssignmentEntityValues returns the possible values for the MetadataAssignmentEntity const type.
func PossibleMetadataAssignmentEntityValues() []MetadataAssignmentEntity {
return []MetadataAssignmentEntity{
MetadataAssignmentEntityAPI,
MetadataAssignmentEntityDeployment,
MetadataAssignmentEntityEnvironment,
}
}
// MetadataSchemaExportFormat - The format for schema export
type MetadataSchemaExportFormat string
const (
// MetadataSchemaExportFormatInline - The inlined content of a schema document.
MetadataSchemaExportFormatInline MetadataSchemaExportFormat = "inline"
// MetadataSchemaExportFormatLink - The link to a schema document. The URL is valid for 5 minutes.
MetadataSchemaExportFormatLink MetadataSchemaExportFormat = "link"
)
// PossibleMetadataSchemaExportFormatValues returns the possible values for the MetadataSchemaExportFormat const type.
func PossibleMetadataSchemaExportFormatValues() []MetadataSchemaExportFormat {
return []MetadataSchemaExportFormat{
MetadataSchemaExportFormatInline,
MetadataSchemaExportFormatLink,
}
}
// Origin - The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default
// value is "user,system"
type Origin string
const (
OriginSystem Origin = "system"
OriginUser Origin = "user"
OriginUserSystem Origin = "user,system"
)
// PossibleOriginValues returns the possible values for the Origin const type.
func PossibleOriginValues() []Origin {
return []Origin{
OriginSystem,
OriginUser,
OriginUserSystem,
}
}
// ProvisioningState - The provisioning state of the resource
type ProvisioningState string
const (
// ProvisioningStateCanceled - Resource creation was canceled.
ProvisioningStateCanceled ProvisioningState = "Canceled"
// ProvisioningStateFailed - Resource creation failed.
ProvisioningStateFailed ProvisioningState = "Failed"
// ProvisioningStateSucceeded - Resource has been created.
ProvisioningStateSucceeded ProvisioningState = "Succeeded"
)
// PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.
func PossibleProvisioningStateValues() []ProvisioningState {
return []ProvisioningState{
ProvisioningStateCanceled,
ProvisioningStateFailed,
ProvisioningStateSucceeded,
}
}