-
Notifications
You must be signed in to change notification settings - Fork 82
/
dr_plan_group_type.go
67 lines (57 loc) · 2.6 KB
/
dr_plan_group_type.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
// 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"
)
// DrPlanGroupTypeEnum Enum with underlying type: string
type DrPlanGroupTypeEnum string
// Set of constants representing the allowable values for DrPlanGroupTypeEnum
const (
DrPlanGroupTypeUserDefined DrPlanGroupTypeEnum = "USER_DEFINED"
DrPlanGroupTypeBuiltIn DrPlanGroupTypeEnum = "BUILT_IN"
DrPlanGroupTypeBuiltInPrecheck DrPlanGroupTypeEnum = "BUILT_IN_PRECHECK"
DrPlanGroupTypeUserDefinedPause DrPlanGroupTypeEnum = "USER_DEFINED_PAUSE"
)
var mappingDrPlanGroupTypeEnum = map[string]DrPlanGroupTypeEnum{
"USER_DEFINED": DrPlanGroupTypeUserDefined,
"BUILT_IN": DrPlanGroupTypeBuiltIn,
"BUILT_IN_PRECHECK": DrPlanGroupTypeBuiltInPrecheck,
"USER_DEFINED_PAUSE": DrPlanGroupTypeUserDefinedPause,
}
var mappingDrPlanGroupTypeEnumLowerCase = map[string]DrPlanGroupTypeEnum{
"user_defined": DrPlanGroupTypeUserDefined,
"built_in": DrPlanGroupTypeBuiltIn,
"built_in_precheck": DrPlanGroupTypeBuiltInPrecheck,
"user_defined_pause": DrPlanGroupTypeUserDefinedPause,
}
// GetDrPlanGroupTypeEnumValues Enumerates the set of values for DrPlanGroupTypeEnum
func GetDrPlanGroupTypeEnumValues() []DrPlanGroupTypeEnum {
values := make([]DrPlanGroupTypeEnum, 0)
for _, v := range mappingDrPlanGroupTypeEnum {
values = append(values, v)
}
return values
}
// GetDrPlanGroupTypeEnumStringValues Enumerates the set of values in String for DrPlanGroupTypeEnum
func GetDrPlanGroupTypeEnumStringValues() []string {
return []string{
"USER_DEFINED",
"BUILT_IN",
"BUILT_IN_PRECHECK",
"USER_DEFINED_PAUSE",
}
}
// GetMappingDrPlanGroupTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingDrPlanGroupTypeEnum(val string) (DrPlanGroupTypeEnum, bool) {
enum, ok := mappingDrPlanGroupTypeEnumLowerCase[strings.ToLower(val)]
return enum, ok
}