/
phase_two_config_details.go
129 lines (106 loc) · 6.52 KB
/
phase_two_config_details.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
// Copyright (c) 2016, 2018, 2021, 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.
// Core Services API
//
// Use the Core Services API to manage resources such as virtual cloud networks (VCNs),
// compute instances, and block storage volumes. For more information, see the console
// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm),
// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and
// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services.
//
package core
import (
"github.com/oracle/oci-go-sdk/v53/common"
)
// PhaseTwoConfigDetails Phase 2 Configuration Details
type PhaseTwoConfigDetails struct {
// Indicates whether custom phase two configuration is enabled.
IsCustomPhaseTwoConfig *bool `mandatory:"false" json:"isCustomPhaseTwoConfig"`
// Phase two authentication algorithm supported during tunnel negotiation.
AuthenticationAlgorithm PhaseTwoConfigDetailsAuthenticationAlgorithmEnum `mandatory:"false" json:"authenticationAlgorithm,omitempty"`
// Phase two encryption algorithm supported during tunnel negotiation.
EncryptionAlgorithm PhaseTwoConfigDetailsEncryptionAlgorithmEnum `mandatory:"false" json:"encryptionAlgorithm,omitempty"`
// Lifetime in seconds for IPSec phase two.
LifetimeInSeconds *int `mandatory:"false" json:"lifetimeInSeconds"`
// Indicates whether perfect forward secrecy (PFS) is enabled.
IsPfsEnabled *bool `mandatory:"false" json:"isPfsEnabled"`
// Diffie-Hellman group used for PFS.
PfsDhGroup PhaseTwoConfigDetailsPfsDhGroupEnum `mandatory:"false" json:"pfsDhGroup,omitempty"`
}
func (m PhaseTwoConfigDetails) String() string {
return common.PointerString(m)
}
// PhaseTwoConfigDetailsAuthenticationAlgorithmEnum Enum with underlying type: string
type PhaseTwoConfigDetailsAuthenticationAlgorithmEnum string
// Set of constants representing the allowable values for PhaseTwoConfigDetailsAuthenticationAlgorithmEnum
const (
PhaseTwoConfigDetailsAuthenticationAlgorithmSha2256128 PhaseTwoConfigDetailsAuthenticationAlgorithmEnum = "HMAC_SHA2_256_128"
PhaseTwoConfigDetailsAuthenticationAlgorithmSha1128 PhaseTwoConfigDetailsAuthenticationAlgorithmEnum = "HMAC_SHA1_128"
)
var mappingPhaseTwoConfigDetailsAuthenticationAlgorithm = map[string]PhaseTwoConfigDetailsAuthenticationAlgorithmEnum{
"HMAC_SHA2_256_128": PhaseTwoConfigDetailsAuthenticationAlgorithmSha2256128,
"HMAC_SHA1_128": PhaseTwoConfigDetailsAuthenticationAlgorithmSha1128,
}
// GetPhaseTwoConfigDetailsAuthenticationAlgorithmEnumValues Enumerates the set of values for PhaseTwoConfigDetailsAuthenticationAlgorithmEnum
func GetPhaseTwoConfigDetailsAuthenticationAlgorithmEnumValues() []PhaseTwoConfigDetailsAuthenticationAlgorithmEnum {
values := make([]PhaseTwoConfigDetailsAuthenticationAlgorithmEnum, 0)
for _, v := range mappingPhaseTwoConfigDetailsAuthenticationAlgorithm {
values = append(values, v)
}
return values
}
// PhaseTwoConfigDetailsEncryptionAlgorithmEnum Enum with underlying type: string
type PhaseTwoConfigDetailsEncryptionAlgorithmEnum string
// Set of constants representing the allowable values for PhaseTwoConfigDetailsEncryptionAlgorithmEnum
const (
PhaseTwoConfigDetailsEncryptionAlgorithm256Gcm PhaseTwoConfigDetailsEncryptionAlgorithmEnum = "AES_256_GCM"
PhaseTwoConfigDetailsEncryptionAlgorithm192Gcm PhaseTwoConfigDetailsEncryptionAlgorithmEnum = "AES_192_GCM"
PhaseTwoConfigDetailsEncryptionAlgorithm128Gcm PhaseTwoConfigDetailsEncryptionAlgorithmEnum = "AES_128_GCM"
PhaseTwoConfigDetailsEncryptionAlgorithm256Cbc PhaseTwoConfigDetailsEncryptionAlgorithmEnum = "AES_256_CBC"
PhaseTwoConfigDetailsEncryptionAlgorithm192Cbc PhaseTwoConfigDetailsEncryptionAlgorithmEnum = "AES_192_CBC"
PhaseTwoConfigDetailsEncryptionAlgorithm128Cbc PhaseTwoConfigDetailsEncryptionAlgorithmEnum = "AES_128_CBC"
)
var mappingPhaseTwoConfigDetailsEncryptionAlgorithm = map[string]PhaseTwoConfigDetailsEncryptionAlgorithmEnum{
"AES_256_GCM": PhaseTwoConfigDetailsEncryptionAlgorithm256Gcm,
"AES_192_GCM": PhaseTwoConfigDetailsEncryptionAlgorithm192Gcm,
"AES_128_GCM": PhaseTwoConfigDetailsEncryptionAlgorithm128Gcm,
"AES_256_CBC": PhaseTwoConfigDetailsEncryptionAlgorithm256Cbc,
"AES_192_CBC": PhaseTwoConfigDetailsEncryptionAlgorithm192Cbc,
"AES_128_CBC": PhaseTwoConfigDetailsEncryptionAlgorithm128Cbc,
}
// GetPhaseTwoConfigDetailsEncryptionAlgorithmEnumValues Enumerates the set of values for PhaseTwoConfigDetailsEncryptionAlgorithmEnum
func GetPhaseTwoConfigDetailsEncryptionAlgorithmEnumValues() []PhaseTwoConfigDetailsEncryptionAlgorithmEnum {
values := make([]PhaseTwoConfigDetailsEncryptionAlgorithmEnum, 0)
for _, v := range mappingPhaseTwoConfigDetailsEncryptionAlgorithm {
values = append(values, v)
}
return values
}
// PhaseTwoConfigDetailsPfsDhGroupEnum Enum with underlying type: string
type PhaseTwoConfigDetailsPfsDhGroupEnum string
// Set of constants representing the allowable values for PhaseTwoConfigDetailsPfsDhGroupEnum
const (
PhaseTwoConfigDetailsPfsDhGroupGroup2 PhaseTwoConfigDetailsPfsDhGroupEnum = "GROUP2"
PhaseTwoConfigDetailsPfsDhGroupGroup5 PhaseTwoConfigDetailsPfsDhGroupEnum = "GROUP5"
PhaseTwoConfigDetailsPfsDhGroupGroup14 PhaseTwoConfigDetailsPfsDhGroupEnum = "GROUP14"
PhaseTwoConfigDetailsPfsDhGroupGroup19 PhaseTwoConfigDetailsPfsDhGroupEnum = "GROUP19"
PhaseTwoConfigDetailsPfsDhGroupGroup20 PhaseTwoConfigDetailsPfsDhGroupEnum = "GROUP20"
PhaseTwoConfigDetailsPfsDhGroupGroup24 PhaseTwoConfigDetailsPfsDhGroupEnum = "GROUP24"
)
var mappingPhaseTwoConfigDetailsPfsDhGroup = map[string]PhaseTwoConfigDetailsPfsDhGroupEnum{
"GROUP2": PhaseTwoConfigDetailsPfsDhGroupGroup2,
"GROUP5": PhaseTwoConfigDetailsPfsDhGroupGroup5,
"GROUP14": PhaseTwoConfigDetailsPfsDhGroupGroup14,
"GROUP19": PhaseTwoConfigDetailsPfsDhGroupGroup19,
"GROUP20": PhaseTwoConfigDetailsPfsDhGroupGroup20,
"GROUP24": PhaseTwoConfigDetailsPfsDhGroupGroup24,
}
// GetPhaseTwoConfigDetailsPfsDhGroupEnumValues Enumerates the set of values for PhaseTwoConfigDetailsPfsDhGroupEnum
func GetPhaseTwoConfigDetailsPfsDhGroupEnumValues() []PhaseTwoConfigDetailsPfsDhGroupEnum {
values := make([]PhaseTwoConfigDetailsPfsDhGroupEnum, 0)
for _, v := range mappingPhaseTwoConfigDetailsPfsDhGroup {
values = append(values, v)
}
return values
}