/
constants.go
110 lines (92 loc) · 3.29 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
//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.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
// DO NOT EDIT.
package armdevhub
const (
moduleName = "armdevhub"
moduleVersion = "v0.1.0"
)
// 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,
}
}
// ManifestType - Determines the type of manifests within the repository.
type ManifestType string
const (
// ManifestTypeHelm - Repositories using helm
ManifestTypeHelm ManifestType = "helm"
// ManifestTypeKube - Repositories using kubernetes manifests
ManifestTypeKube ManifestType = "kube"
)
// PossibleManifestTypeValues returns the possible values for the ManifestType const type.
func PossibleManifestTypeValues() []ManifestType {
return []ManifestType{
ManifestTypeHelm,
ManifestTypeKube,
}
}
// 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,
}
}
// PullRequestStatus - The status of the Pull Request submitted against the users repository.
type PullRequestStatus string
const (
// PullRequestStatusMerged - Pull Request merged into repository.
PullRequestStatusMerged PullRequestStatus = "merged"
// PullRequestStatusRemoved - Workflow no longer found within repository.
PullRequestStatusRemoved PullRequestStatus = "removed"
// PullRequestStatusSubmitted - Pull Request submitted to repository.
PullRequestStatusSubmitted PullRequestStatus = "submitted"
// PullRequestStatusUnknown - Pull Request state unknown.
PullRequestStatusUnknown PullRequestStatus = "unknown"
)
// PossiblePullRequestStatusValues returns the possible values for the PullRequestStatus const type.
func PossiblePullRequestStatusValues() []PullRequestStatus {
return []PullRequestStatus{
PullRequestStatusMerged,
PullRequestStatusRemoved,
PullRequestStatusSubmitted,
PullRequestStatusUnknown,
}
}