generated from crossplane/upjet-provider-template
/
zz_server_types.go
executable file
·125 lines (94 loc) · 5.25 KB
/
zz_server_types.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
/*
Copyright 2022 Upbound Inc.
*/
// Code generated by upjet. DO NOT EDIT.
package v1alpha1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
v1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
)
type ServerObservation struct {
// Currently Okta only supports a single value here
Audiences []*string `json:"audiences,omitempty" tf:"audiences,omitempty"`
// The timestamp when the authorization server started to use the `kid` for signing tokens.
CredentialsLastRotated *string `json:"credentialsLastRotated,omitempty" tf:"credentials_last_rotated,omitempty"`
// The timestamp when the authorization server changes the key for signing tokens. Only returned when `credentials_rotation_mode` is `AUTO`.
CredentialsNextRotation *string `json:"credentialsNextRotation,omitempty" tf:"credentials_next_rotation,omitempty"`
// Credential rotation mode, in many cases you cannot set this to MANUAL, the API will ignore the value and you will get a perpetual diff. This should rarely be used.
CredentialsRotationMode *string `json:"credentialsRotationMode,omitempty" tf:"credentials_rotation_mode,omitempty"`
// The description of the authorization server.
Description *string `json:"description,omitempty" tf:"description,omitempty"`
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// allows you to use a custom issuer URL
Issuer *string `json:"issuer,omitempty" tf:"issuer,omitempty"`
// *Early Access Property*. Indicates which value is specified in the issuer of the tokens that a Custom Authorization Server returns: the original Okta org domain URL or a custom domain URL
IssuerMode *string `json:"issuerMode,omitempty" tf:"issuer_mode,omitempty"`
// The ID of the JSON Web Key used for signing tokens issued by the authorization server.
Kid *string `json:"kid,omitempty" tf:"kid,omitempty"`
// The name of the authorization server.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
Status *string `json:"status,omitempty" tf:"status,omitempty"`
}
type ServerParameters struct {
// Currently Okta only supports a single value here
// +kubebuilder:validation:Optional
Audiences []*string `json:"audiences,omitempty" tf:"audiences,omitempty"`
// Credential rotation mode, in many cases you cannot set this to MANUAL, the API will ignore the value and you will get a perpetual diff. This should rarely be used.
// +kubebuilder:validation:Optional
CredentialsRotationMode *string `json:"credentialsRotationMode,omitempty" tf:"credentials_rotation_mode,omitempty"`
// The description of the authorization server.
// +kubebuilder:validation:Optional
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// *Early Access Property*. Indicates which value is specified in the issuer of the tokens that a Custom Authorization Server returns: the original Okta org domain URL or a custom domain URL
// +kubebuilder:validation:Optional
IssuerMode *string `json:"issuerMode,omitempty" tf:"issuer_mode,omitempty"`
// The name of the authorization server.
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// +kubebuilder:validation:Optional
Status *string `json:"status,omitempty" tf:"status,omitempty"`
}
// ServerSpec defines the desired state of Server
type ServerSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider ServerParameters `json:"forProvider"`
}
// ServerStatus defines the observed state of Server.
type ServerStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider ServerObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// Server is the Schema for the Servers API. <no value>
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status"
// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name"
// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"
// +kubebuilder:subresource:status
// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,okta}
type Server struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.audiences)",message="audiences is a required parameter"
// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.name)",message="name is a required parameter"
Spec ServerSpec `json:"spec"`
Status ServerStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// ServerList contains a list of Servers
type ServerList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Server `json:"items"`
}
// Repository type metadata.
var (
Server_Kind = "Server"
Server_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Server_Kind}.String()
Server_KindAPIVersion = Server_Kind + "." + CRDGroupVersion.String()
Server_GroupVersionKind = CRDGroupVersion.WithKind(Server_Kind)
)
func init() {
SchemeBuilder.Register(&Server{}, &ServerList{})
}