-
Notifications
You must be signed in to change notification settings - Fork 82
/
access_request_lifecycle_states.go
138 lines (128 loc) · 7.18 KB
/
access_request_lifecycle_states.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
// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved.
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
// Code generated. DO NOT EDIT.
// OperatorAccessControl API
//
// Operator Access Control enables you to control the time duration and the actions an Oracle operator can perform on your Exadata Cloud@Customer infrastructure.
// Using logging service, you can view a near real-time audit report of all actions performed by an Oracle operator.
// Use the table of contents and search tool to explore the OperatorAccessControl API.
//
package operatoraccesscontrol
import (
"strings"
)
// AccessRequestLifecycleStatesEnum Enum with underlying type: string
type AccessRequestLifecycleStatesEnum string
// Set of constants representing the allowable values for AccessRequestLifecycleStatesEnum
const (
AccessRequestLifecycleStatesCreated AccessRequestLifecycleStatesEnum = "CREATED"
AccessRequestLifecycleStatesApprovalwaiting AccessRequestLifecycleStatesEnum = "APPROVALWAITING"
AccessRequestLifecycleStatesPreapproved AccessRequestLifecycleStatesEnum = "PREAPPROVED"
AccessRequestLifecycleStatesApproved AccessRequestLifecycleStatesEnum = "APPROVED"
AccessRequestLifecycleStatesRejected AccessRequestLifecycleStatesEnum = "REJECTED"
AccessRequestLifecycleStatesDeployed AccessRequestLifecycleStatesEnum = "DEPLOYED"
AccessRequestLifecycleStatesDeployfailed AccessRequestLifecycleStatesEnum = "DEPLOYFAILED"
AccessRequestLifecycleStatesUndeployed AccessRequestLifecycleStatesEnum = "UNDEPLOYED"
AccessRequestLifecycleStatesUndeployfailed AccessRequestLifecycleStatesEnum = "UNDEPLOYFAILED"
AccessRequestLifecycleStatesClosefailed AccessRequestLifecycleStatesEnum = "CLOSEFAILED"
AccessRequestLifecycleStatesRevokefailed AccessRequestLifecycleStatesEnum = "REVOKEFAILED"
AccessRequestLifecycleStatesExpiryfailed AccessRequestLifecycleStatesEnum = "EXPIRYFAILED"
AccessRequestLifecycleStatesRevoking AccessRequestLifecycleStatesEnum = "REVOKING"
AccessRequestLifecycleStatesRevoked AccessRequestLifecycleStatesEnum = "REVOKED"
AccessRequestLifecycleStatesExtending AccessRequestLifecycleStatesEnum = "EXTENDING"
AccessRequestLifecycleStatesExtended AccessRequestLifecycleStatesEnum = "EXTENDED"
AccessRequestLifecycleStatesExtensionrejected AccessRequestLifecycleStatesEnum = "EXTENSIONREJECTED"
AccessRequestLifecycleStatesCompleting AccessRequestLifecycleStatesEnum = "COMPLETING"
AccessRequestLifecycleStatesCompleted AccessRequestLifecycleStatesEnum = "COMPLETED"
AccessRequestLifecycleStatesExpired AccessRequestLifecycleStatesEnum = "EXPIRED"
AccessRequestLifecycleStatesApprovedforfuture AccessRequestLifecycleStatesEnum = "APPROVEDFORFUTURE"
AccessRequestLifecycleStatesInreview AccessRequestLifecycleStatesEnum = "INREVIEW"
)
var mappingAccessRequestLifecycleStatesEnum = map[string]AccessRequestLifecycleStatesEnum{
"CREATED": AccessRequestLifecycleStatesCreated,
"APPROVALWAITING": AccessRequestLifecycleStatesApprovalwaiting,
"PREAPPROVED": AccessRequestLifecycleStatesPreapproved,
"APPROVED": AccessRequestLifecycleStatesApproved,
"REJECTED": AccessRequestLifecycleStatesRejected,
"DEPLOYED": AccessRequestLifecycleStatesDeployed,
"DEPLOYFAILED": AccessRequestLifecycleStatesDeployfailed,
"UNDEPLOYED": AccessRequestLifecycleStatesUndeployed,
"UNDEPLOYFAILED": AccessRequestLifecycleStatesUndeployfailed,
"CLOSEFAILED": AccessRequestLifecycleStatesClosefailed,
"REVOKEFAILED": AccessRequestLifecycleStatesRevokefailed,
"EXPIRYFAILED": AccessRequestLifecycleStatesExpiryfailed,
"REVOKING": AccessRequestLifecycleStatesRevoking,
"REVOKED": AccessRequestLifecycleStatesRevoked,
"EXTENDING": AccessRequestLifecycleStatesExtending,
"EXTENDED": AccessRequestLifecycleStatesExtended,
"EXTENSIONREJECTED": AccessRequestLifecycleStatesExtensionrejected,
"COMPLETING": AccessRequestLifecycleStatesCompleting,
"COMPLETED": AccessRequestLifecycleStatesCompleted,
"EXPIRED": AccessRequestLifecycleStatesExpired,
"APPROVEDFORFUTURE": AccessRequestLifecycleStatesApprovedforfuture,
"INREVIEW": AccessRequestLifecycleStatesInreview,
}
var mappingAccessRequestLifecycleStatesEnumLowerCase = map[string]AccessRequestLifecycleStatesEnum{
"created": AccessRequestLifecycleStatesCreated,
"approvalwaiting": AccessRequestLifecycleStatesApprovalwaiting,
"preapproved": AccessRequestLifecycleStatesPreapproved,
"approved": AccessRequestLifecycleStatesApproved,
"rejected": AccessRequestLifecycleStatesRejected,
"deployed": AccessRequestLifecycleStatesDeployed,
"deployfailed": AccessRequestLifecycleStatesDeployfailed,
"undeployed": AccessRequestLifecycleStatesUndeployed,
"undeployfailed": AccessRequestLifecycleStatesUndeployfailed,
"closefailed": AccessRequestLifecycleStatesClosefailed,
"revokefailed": AccessRequestLifecycleStatesRevokefailed,
"expiryfailed": AccessRequestLifecycleStatesExpiryfailed,
"revoking": AccessRequestLifecycleStatesRevoking,
"revoked": AccessRequestLifecycleStatesRevoked,
"extending": AccessRequestLifecycleStatesExtending,
"extended": AccessRequestLifecycleStatesExtended,
"extensionrejected": AccessRequestLifecycleStatesExtensionrejected,
"completing": AccessRequestLifecycleStatesCompleting,
"completed": AccessRequestLifecycleStatesCompleted,
"expired": AccessRequestLifecycleStatesExpired,
"approvedforfuture": AccessRequestLifecycleStatesApprovedforfuture,
"inreview": AccessRequestLifecycleStatesInreview,
}
// GetAccessRequestLifecycleStatesEnumValues Enumerates the set of values for AccessRequestLifecycleStatesEnum
func GetAccessRequestLifecycleStatesEnumValues() []AccessRequestLifecycleStatesEnum {
values := make([]AccessRequestLifecycleStatesEnum, 0)
for _, v := range mappingAccessRequestLifecycleStatesEnum {
values = append(values, v)
}
return values
}
// GetAccessRequestLifecycleStatesEnumStringValues Enumerates the set of values in String for AccessRequestLifecycleStatesEnum
func GetAccessRequestLifecycleStatesEnumStringValues() []string {
return []string{
"CREATED",
"APPROVALWAITING",
"PREAPPROVED",
"APPROVED",
"REJECTED",
"DEPLOYED",
"DEPLOYFAILED",
"UNDEPLOYED",
"UNDEPLOYFAILED",
"CLOSEFAILED",
"REVOKEFAILED",
"EXPIRYFAILED",
"REVOKING",
"REVOKED",
"EXTENDING",
"EXTENDED",
"EXTENSIONREJECTED",
"COMPLETING",
"COMPLETED",
"EXPIRED",
"APPROVEDFORFUTURE",
"INREVIEW",
}
}
// GetMappingAccessRequestLifecycleStatesEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingAccessRequestLifecycleStatesEnum(val string) (AccessRequestLifecycleStatesEnum, bool) {
enum, ok := mappingAccessRequestLifecycleStatesEnumLowerCase[strings.ToLower(val)]
return enum, ok
}