Skip to content

Commit f6d517b

Browse files
authored
feat(audit_trail): add key manager to resource api (scaleway#2415)
1 parent 1eed2f2 commit f6d517b

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

api/audit_trail/v1alpha1/audit_trail_sdk.go

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ const (
8686
ResourceTypeKubePool = ResourceType("kube_pool")
8787
ResourceTypeKubeNode = ResourceType("kube_node")
8888
ResourceTypeKubeACL = ResourceType("kube_acl")
89+
ResourceTypeKeymKey = ResourceType("keym_key")
8990
)
9091

9192
func (enum ResourceType) String() string {
@@ -105,6 +106,7 @@ func (enum ResourceType) Values() []ResourceType {
105106
"kube_pool",
106107
"kube_node",
107108
"kube_acl",
109+
"keym_key",
108110
}
109111
}
110112

@@ -123,6 +125,10 @@ func (enum *ResourceType) UnmarshalJSON(data []byte) error {
123125
return nil
124126
}
125127

128+
// KeyManagerKeyInfo: key manager key info.
129+
type KeyManagerKeyInfo struct {
130+
}
131+
126132
// KubernetesACLInfo: kubernetes acl info.
127133
type KubernetesACLInfo struct {
128134
}
@@ -175,23 +181,26 @@ type Resource struct {
175181

176182
Name *string `json:"name"`
177183

178-
// Precisely one of SecmSecretInfo, SecmSecretVersionInfo, KubeClusterInfo, KubePoolInfo, KubeNodeInfo, KubeACLInfo must be set.
184+
// Precisely one of SecmSecretInfo, SecmSecretVersionInfo, KubeClusterInfo, KubePoolInfo, KubeNodeInfo, KubeACLInfo, KeymKeyInfo must be set.
179185
SecmSecretInfo *SecretManagerSecretInfo `json:"secm_secret_info,omitempty"`
180186

181-
// Precisely one of SecmSecretInfo, SecmSecretVersionInfo, KubeClusterInfo, KubePoolInfo, KubeNodeInfo, KubeACLInfo must be set.
187+
// Precisely one of SecmSecretInfo, SecmSecretVersionInfo, KubeClusterInfo, KubePoolInfo, KubeNodeInfo, KubeACLInfo, KeymKeyInfo must be set.
182188
SecmSecretVersionInfo *SecretManagerSecretVersionInfo `json:"secm_secret_version_info,omitempty"`
183189

184-
// Precisely one of SecmSecretInfo, SecmSecretVersionInfo, KubeClusterInfo, KubePoolInfo, KubeNodeInfo, KubeACLInfo must be set.
190+
// Precisely one of SecmSecretInfo, SecmSecretVersionInfo, KubeClusterInfo, KubePoolInfo, KubeNodeInfo, KubeACLInfo, KeymKeyInfo must be set.
185191
KubeClusterInfo *KubernetesClusterInfo `json:"kube_cluster_info,omitempty"`
186192

187-
// Precisely one of SecmSecretInfo, SecmSecretVersionInfo, KubeClusterInfo, KubePoolInfo, KubeNodeInfo, KubeACLInfo must be set.
193+
// Precisely one of SecmSecretInfo, SecmSecretVersionInfo, KubeClusterInfo, KubePoolInfo, KubeNodeInfo, KubeACLInfo, KeymKeyInfo must be set.
188194
KubePoolInfo *KubernetesPoolInfo `json:"kube_pool_info,omitempty"`
189195

190-
// Precisely one of SecmSecretInfo, SecmSecretVersionInfo, KubeClusterInfo, KubePoolInfo, KubeNodeInfo, KubeACLInfo must be set.
196+
// Precisely one of SecmSecretInfo, SecmSecretVersionInfo, KubeClusterInfo, KubePoolInfo, KubeNodeInfo, KubeACLInfo, KeymKeyInfo must be set.
191197
KubeNodeInfo *KubernetesNodeInfo `json:"kube_node_info,omitempty"`
192198

193-
// Precisely one of SecmSecretInfo, SecmSecretVersionInfo, KubeClusterInfo, KubePoolInfo, KubeNodeInfo, KubeACLInfo must be set.
199+
// Precisely one of SecmSecretInfo, SecmSecretVersionInfo, KubeClusterInfo, KubePoolInfo, KubeNodeInfo, KubeACLInfo, KeymKeyInfo must be set.
194200
KubeACLInfo *KubernetesACLInfo `json:"kube_acl_info,omitempty"`
201+
202+
// Precisely one of SecmSecretInfo, SecmSecretVersionInfo, KubeClusterInfo, KubePoolInfo, KubeNodeInfo, KubeACLInfo, KeymKeyInfo must be set.
203+
KeymKeyInfo *KeyManagerKeyInfo `json:"keym_key_info,omitempty"`
195204
}
196205

197206
// ProductService: product service.

0 commit comments

Comments
 (0)