-
Notifications
You must be signed in to change notification settings - Fork 82
/
dr_plan_execution_lifecycle_state.go
99 lines (89 loc) · 4.58 KB
/
dr_plan_execution_lifecycle_state.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
// Copyright (c) 2016, 2018, 2024, 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.
// Full Stack Disaster Recovery API
//
// Use the Full Stack Disaster Recovery (DR) API to manage disaster recovery for business applications.
// Full Stack DR is an OCI disaster recovery orchestration and management service that provides comprehensive disaster
// recovery capabilities for all layers of an application stack, including infrastructure, middleware, database,
// and application.
//
package disasterrecovery
import (
"strings"
)
// DrPlanExecutionLifecycleStateEnum Enum with underlying type: string
type DrPlanExecutionLifecycleStateEnum string
// Set of constants representing the allowable values for DrPlanExecutionLifecycleStateEnum
const (
DrPlanExecutionLifecycleStateAccepted DrPlanExecutionLifecycleStateEnum = "ACCEPTED"
DrPlanExecutionLifecycleStateInProgress DrPlanExecutionLifecycleStateEnum = "IN_PROGRESS"
DrPlanExecutionLifecycleStateWaiting DrPlanExecutionLifecycleStateEnum = "WAITING"
DrPlanExecutionLifecycleStateCanceling DrPlanExecutionLifecycleStateEnum = "CANCELING"
DrPlanExecutionLifecycleStateCanceled DrPlanExecutionLifecycleStateEnum = "CANCELED"
DrPlanExecutionLifecycleStateSucceeded DrPlanExecutionLifecycleStateEnum = "SUCCEEDED"
DrPlanExecutionLifecycleStateFailed DrPlanExecutionLifecycleStateEnum = "FAILED"
DrPlanExecutionLifecycleStateDeleting DrPlanExecutionLifecycleStateEnum = "DELETING"
DrPlanExecutionLifecycleStateDeleted DrPlanExecutionLifecycleStateEnum = "DELETED"
DrPlanExecutionLifecycleStatePausing DrPlanExecutionLifecycleStateEnum = "PAUSING"
DrPlanExecutionLifecycleStatePaused DrPlanExecutionLifecycleStateEnum = "PAUSED"
DrPlanExecutionLifecycleStateResuming DrPlanExecutionLifecycleStateEnum = "RESUMING"
)
var mappingDrPlanExecutionLifecycleStateEnum = map[string]DrPlanExecutionLifecycleStateEnum{
"ACCEPTED": DrPlanExecutionLifecycleStateAccepted,
"IN_PROGRESS": DrPlanExecutionLifecycleStateInProgress,
"WAITING": DrPlanExecutionLifecycleStateWaiting,
"CANCELING": DrPlanExecutionLifecycleStateCanceling,
"CANCELED": DrPlanExecutionLifecycleStateCanceled,
"SUCCEEDED": DrPlanExecutionLifecycleStateSucceeded,
"FAILED": DrPlanExecutionLifecycleStateFailed,
"DELETING": DrPlanExecutionLifecycleStateDeleting,
"DELETED": DrPlanExecutionLifecycleStateDeleted,
"PAUSING": DrPlanExecutionLifecycleStatePausing,
"PAUSED": DrPlanExecutionLifecycleStatePaused,
"RESUMING": DrPlanExecutionLifecycleStateResuming,
}
var mappingDrPlanExecutionLifecycleStateEnumLowerCase = map[string]DrPlanExecutionLifecycleStateEnum{
"accepted": DrPlanExecutionLifecycleStateAccepted,
"in_progress": DrPlanExecutionLifecycleStateInProgress,
"waiting": DrPlanExecutionLifecycleStateWaiting,
"canceling": DrPlanExecutionLifecycleStateCanceling,
"canceled": DrPlanExecutionLifecycleStateCanceled,
"succeeded": DrPlanExecutionLifecycleStateSucceeded,
"failed": DrPlanExecutionLifecycleStateFailed,
"deleting": DrPlanExecutionLifecycleStateDeleting,
"deleted": DrPlanExecutionLifecycleStateDeleted,
"pausing": DrPlanExecutionLifecycleStatePausing,
"paused": DrPlanExecutionLifecycleStatePaused,
"resuming": DrPlanExecutionLifecycleStateResuming,
}
// GetDrPlanExecutionLifecycleStateEnumValues Enumerates the set of values for DrPlanExecutionLifecycleStateEnum
func GetDrPlanExecutionLifecycleStateEnumValues() []DrPlanExecutionLifecycleStateEnum {
values := make([]DrPlanExecutionLifecycleStateEnum, 0)
for _, v := range mappingDrPlanExecutionLifecycleStateEnum {
values = append(values, v)
}
return values
}
// GetDrPlanExecutionLifecycleStateEnumStringValues Enumerates the set of values in String for DrPlanExecutionLifecycleStateEnum
func GetDrPlanExecutionLifecycleStateEnumStringValues() []string {
return []string{
"ACCEPTED",
"IN_PROGRESS",
"WAITING",
"CANCELING",
"CANCELED",
"SUCCEEDED",
"FAILED",
"DELETING",
"DELETED",
"PAUSING",
"PAUSED",
"RESUMING",
}
}
// GetMappingDrPlanExecutionLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingDrPlanExecutionLifecycleStateEnum(val string) (DrPlanExecutionLifecycleStateEnum, bool) {
enum, ok := mappingDrPlanExecutionLifecycleStateEnumLowerCase[strings.ToLower(val)]
return enum, ok
}