-
Notifications
You must be signed in to change notification settings - Fork 80
/
vault_summary.go
124 lines (101 loc) · 6.01 KB
/
vault_summary.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
// Copyright (c) 2016, 2018, 2020, 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.
// Key Management Service API
//
// API for managing and performing operations with keys and vaults.
//
package keymanagement
import (
"github.com/oracle/oci-go-sdk/common"
)
// VaultSummary The representation of VaultSummary
type VaultSummary struct {
// The OCID of the compartment that contains a particular vault.
CompartmentId *string `mandatory:"true" json:"compartmentId"`
// The service endpoint to perform cryptographic operations against. Cryptographic operations include
// Encrypt (https://docs.cloud.oracle.com/api/#/en/key/release/EncryptedData/Encrypt), Decrypt (https://docs.cloud.oracle.com/api/#/en/key/release/DecryptedData/Decrypt),
// and GenerateDataEncryptionKey (https://docs.cloud.oracle.com/api/#/en/key/release/GeneratedKey/GenerateDataEncryptionKey) operations.
CryptoEndpoint *string `mandatory:"true" json:"cryptoEndpoint"`
// A user-friendly name for a vault. It does not have to be unique, and it is changeable.
// Avoid entering confidential information.
DisplayName *string `mandatory:"true" json:"displayName"`
// The OCID of a vault.
Id *string `mandatory:"true" json:"id"`
// A vault's current lifecycle state.
// Example: `ACTIVE`
LifecycleState VaultSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"`
// The service endpoint to perform management operations against. Management operations include "Create," "Update," "List," "Get," and "Delete" operations.
ManagementEndpoint *string `mandatory:"true" json:"managementEndpoint"`
// The date and time a vault was created, expressed in RFC 3339 (https://tools.ietf.org/html/rfc3339) timestamp format.
// Example: `2018-04-03T21:10:29.600Z`
TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"`
// The type of vault. Each type of vault stores keys with different
// degrees of isolation and has different options and pricing.
VaultType VaultSummaryVaultTypeEnum `mandatory:"true" json:"vaultType"`
// Defined tags for this resource. Each key is predefined and scoped to a namespace.
// For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
// Example: `{"Operations": {"CostCenter": "42"}}`
DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
// For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm).
// Example: `{"Department": "Finance"}`
FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
}
func (m VaultSummary) String() string {
return common.PointerString(m)
}
// VaultSummaryLifecycleStateEnum Enum with underlying type: string
type VaultSummaryLifecycleStateEnum string
// Set of constants representing the allowable values for VaultSummaryLifecycleStateEnum
const (
VaultSummaryLifecycleStateCreating VaultSummaryLifecycleStateEnum = "CREATING"
VaultSummaryLifecycleStateActive VaultSummaryLifecycleStateEnum = "ACTIVE"
VaultSummaryLifecycleStateDeleting VaultSummaryLifecycleStateEnum = "DELETING"
VaultSummaryLifecycleStateDeleted VaultSummaryLifecycleStateEnum = "DELETED"
VaultSummaryLifecycleStatePendingDeletion VaultSummaryLifecycleStateEnum = "PENDING_DELETION"
VaultSummaryLifecycleStateSchedulingDeletion VaultSummaryLifecycleStateEnum = "SCHEDULING_DELETION"
VaultSummaryLifecycleStateCancellingDeletion VaultSummaryLifecycleStateEnum = "CANCELLING_DELETION"
VaultSummaryLifecycleStateUpdating VaultSummaryLifecycleStateEnum = "UPDATING"
VaultSummaryLifecycleStateBackupInProgress VaultSummaryLifecycleStateEnum = "BACKUP_IN_PROGRESS"
VaultSummaryLifecycleStateRestoring VaultSummaryLifecycleStateEnum = "RESTORING"
)
var mappingVaultSummaryLifecycleState = map[string]VaultSummaryLifecycleStateEnum{
"CREATING": VaultSummaryLifecycleStateCreating,
"ACTIVE": VaultSummaryLifecycleStateActive,
"DELETING": VaultSummaryLifecycleStateDeleting,
"DELETED": VaultSummaryLifecycleStateDeleted,
"PENDING_DELETION": VaultSummaryLifecycleStatePendingDeletion,
"SCHEDULING_DELETION": VaultSummaryLifecycleStateSchedulingDeletion,
"CANCELLING_DELETION": VaultSummaryLifecycleStateCancellingDeletion,
"UPDATING": VaultSummaryLifecycleStateUpdating,
"BACKUP_IN_PROGRESS": VaultSummaryLifecycleStateBackupInProgress,
"RESTORING": VaultSummaryLifecycleStateRestoring,
}
// GetVaultSummaryLifecycleStateEnumValues Enumerates the set of values for VaultSummaryLifecycleStateEnum
func GetVaultSummaryLifecycleStateEnumValues() []VaultSummaryLifecycleStateEnum {
values := make([]VaultSummaryLifecycleStateEnum, 0)
for _, v := range mappingVaultSummaryLifecycleState {
values = append(values, v)
}
return values
}
// VaultSummaryVaultTypeEnum Enum with underlying type: string
type VaultSummaryVaultTypeEnum string
// Set of constants representing the allowable values for VaultSummaryVaultTypeEnum
const (
VaultSummaryVaultTypeVirtualPrivate VaultSummaryVaultTypeEnum = "VIRTUAL_PRIVATE"
VaultSummaryVaultTypeDefault VaultSummaryVaultTypeEnum = "DEFAULT"
)
var mappingVaultSummaryVaultType = map[string]VaultSummaryVaultTypeEnum{
"VIRTUAL_PRIVATE": VaultSummaryVaultTypeVirtualPrivate,
"DEFAULT": VaultSummaryVaultTypeDefault,
}
// GetVaultSummaryVaultTypeEnumValues Enumerates the set of values for VaultSummaryVaultTypeEnum
func GetVaultSummaryVaultTypeEnumValues() []VaultSummaryVaultTypeEnum {
values := make([]VaultSummaryVaultTypeEnum, 0)
for _, v := range mappingVaultSummaryVaultType {
values = append(values, v)
}
return values
}