forked from crossplane-contrib/provider-jet-template
/
zz_profile_types.go
executable file
·193 lines (143 loc) · 6.29 KB
/
zz_profile_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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
/*
Copyright 2021 The Crossplane Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// Code generated by terrajet. 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 AllowedHostObservation struct {
ID *string `json:"id,omitempty" tf:"id,omitempty"`
}
type AllowedHostParameters struct {
// IPv4 address of the host
// +kubebuilder:validation:Required
Address *string `json:"address" tf:"address,omitempty"`
// Description of the host.
// +kubebuilder:validation:Required
Description *string `json:"description" tf:"description,omitempty"`
// Number of bits in the network mask.
// +kubebuilder:validation:Required
MaskBits *float64 `json:"maskBits" tf:"mask_bits,omitempty"`
}
type DNSServerObservation struct {
ID *string `json:"id,omitempty" tf:"id,omitempty"`
}
type DNSServerParameters struct {
// Address of the DNS server.
// +kubebuilder:validation:Required
Address *string `json:"address" tf:"address,omitempty"`
}
type NtpServerObservation struct {
ID *string `json:"id,omitempty" tf:"id,omitempty"`
}
type NtpServerParameters struct {
// Address of the NTP server.
// +kubebuilder:validation:Required
Address *string `json:"address" tf:"address,omitempty"`
}
type ProfileObservation struct {
AllowedHost []AllowedHostObservation `json:"allowedHost,omitempty" tf:"allowed_host,omitempty"`
CreatedBy *string `json:"createdBy,omitempty" tf:"created_by,omitempty"`
DNSServer []DNSServerObservation `json:"dnsServer,omitempty" tf:"dns_server,omitempty"`
ID *string `json:"id,omitempty" tf:"id,omitempty"`
LastModified *string `json:"lastModified,omitempty" tf:"last_modified,omitempty"`
LastModifiedBy *string `json:"lastModifiedBy,omitempty" tf:"last_modified_by,omitempty"`
NtpServer []NtpServerObservation `json:"ntpServer,omitempty" tf:"ntp_server,omitempty"`
OrganizationName *string `json:"organizationName,omitempty" tf:"organization_name,omitempty"`
SSHUser []SSHUserObservation `json:"sshUser,omitempty" tf:"ssh_user,omitempty"`
}
type ProfileParameters struct {
// List of allowed hosts.
// +kubebuilder:validation:Optional
AllowedHost []AllowedHostParameters `json:"allowedHost,omitempty" tf:"allowed_host,omitempty"`
// List of DNS servers.
// +kubebuilder:validation:Optional
DNSServer []DNSServerParameters `json:"dnsServer,omitempty" tf:"dns_server,omitempty"`
// HTTP proxy of the access profile.
// +kubebuilder:validation:Optional
HTTPProxy *string `json:"httpProxy,omitempty" tf:"http_proxy,omitempty"`
// Indicates whether to lock the access profile. Defaults to `false`.
// +kubebuilder:validation:Optional
Lock *bool `json:"lock,omitempty" tf:"lock,omitempty"`
// The name of the access profile.
// +kubebuilder:validation:Required
Name *string `json:"name" tf:"name,omitempty"`
// List of NTP servers.
// +kubebuilder:validation:Optional
NtpServer []NtpServerParameters `json:"ntpServer,omitempty" tf:"ntp_server,omitempty"`
// The ID of the organization which owns the access profile.
// +crossplane:generate:reference:type=github.com/nivraph/provider-jet-taikun/apis/organization/v1alpha1.Organization
// +kubebuilder:validation:Optional
OrganizationID *string `json:"organizationId,omitempty" tf:"organization_id,omitempty"`
// +kubebuilder:validation:Optional
OrganizationIDRef *v1.Reference `json:"organizationIdRef,omitempty" tf:"-"`
// +kubebuilder:validation:Optional
OrganizationIDSelector *v1.Selector `json:"organizationIdSelector,omitempty" tf:"-"`
// List of SSH users.
// +kubebuilder:validation:Optional
SSHUser []SSHUserParameters `json:"sshUser,omitempty" tf:"ssh_user,omitempty"`
}
type SSHUserObservation struct {
ID *string `json:"id,omitempty" tf:"id,omitempty"`
}
type SSHUserParameters struct {
// Name of the SSH user.
// +kubebuilder:validation:Required
Name *string `json:"name" tf:"name,omitempty"`
// Public key of the SSH user.
// +kubebuilder:validation:Required
PublicKey *string `json:"publicKey" tf:"public_key,omitempty"`
}
// ProfileSpec defines the desired state of Profile
type ProfileSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider ProfileParameters `json:"forProvider"`
}
// ProfileStatus defines the observed state of Profile.
type ProfileStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider ProfileObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// Profile is the Schema for the Profiles API
// +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,taikunjet}
type Profile struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ProfileSpec `json:"spec"`
Status ProfileStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// ProfileList contains a list of Profiles
type ProfileList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Profile `json:"items"`
}
// Repository type metadata.
var (
Profile_Kind = "Profile"
Profile_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Profile_Kind}.String()
Profile_KindAPIVersion = Profile_Kind + "." + CRDGroupVersion.String()
Profile_GroupVersionKind = CRDGroupVersion.WithKind(Profile_Kind)
)
func init() {
SchemeBuilder.Register(&Profile{}, &ProfileList{})
}