generated from crossplane-contrib/provider-jet-template
/
zz_index_types.go
executable file
·245 lines (183 loc) · 8.41 KB
/
zz_index_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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
/*
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 FullTextObservation struct {
}
type FullTextParameters struct {
// Case sensitivity.
// +kubebuilder:validation:Required
CaseSensitive *bool `json:"caseSensitive" tf:"case_sensitive,omitempty"`
// Whether Chinese characters are contained.
// +kubebuilder:validation:Required
ContainZH *bool `json:"containZH" tf:"contain_z_h,omitempty"`
// Full-Text index delimiter. Each character in the string represents a delimiter.
// +kubebuilder:validation:Required
Tokenizer *string `json:"tokenizer" tf:"tokenizer,omitempty"`
}
type IndexObservation struct {
ID *string `json:"id,omitempty" tf:"id,omitempty"`
}
type IndexParameters struct {
// Internal field marker of full-text index. Default value: false. Valid value: false: excluding internal fields; true: including internal fields.
// +kubebuilder:validation:Optional
IncludeInternalFields *bool `json:"includeInternalFields,omitempty" tf:"include_internal_fields,omitempty"`
// Metadata flag. Default value: 0. Valid value: 0: full-text index (including the metadata field with key-value index enabled); 1: full-text index (including all metadata fields); 2: full-text index (excluding metadata fields)..
// +kubebuilder:validation:Optional
MetadataFlag *float64 `json:"metadataFlag,omitempty" tf:"metadata_flag,omitempty"`
// Index rule.
// +kubebuilder:validation:Optional
Rule []RuleParameters `json:"rule,omitempty" tf:"rule,omitempty"`
// Whether to take effect. Default value: true.
// +kubebuilder:validation:Optional
Status *bool `json:"status,omitempty" tf:"status,omitempty"`
// Log topic ID.
// +crossplane:generate:reference:type=Topic
// +kubebuilder:validation:Optional
TopicID *string `json:"topicId,omitempty" tf:"topic_id,omitempty"`
// +kubebuilder:validation:Optional
TopicIDRef *v1.Reference `json:"topicIdRef,omitempty" tf:"-"`
// +kubebuilder:validation:Optional
TopicIDSelector *v1.Selector `json:"topicIdSelector,omitempty" tf:"-"`
}
type KeyValueObservation struct {
}
type KeyValueParameters struct {
// Case sensitivity.
// +kubebuilder:validation:Required
CaseSensitive *bool `json:"caseSensitive" tf:"case_sensitive,omitempty"`
// Key-Value pair information of the index to be created. Up to 100 key-value pairs can be configured.
// +kubebuilder:validation:Optional
KeyValues []KeyValuesParameters `json:"keyValues,omitempty" tf:"key_values,omitempty"`
}
type KeyValuesObservation struct {
}
type KeyValuesParameters struct {
// When a key value or metafield index needs to be configured for a field, the metafield Key does not need to be prefixed with __TAG__. and is consistent with the one when logs are uploaded. __TAG__. will be prefixed automatically for display in the console..
// +kubebuilder:validation:Required
Key *string `json:"key" tf:"key,omitempty"`
// Field index description information.
// +kubebuilder:validation:Optional
Value []ValueParameters `json:"value,omitempty" tf:"value,omitempty"`
}
type KeyValuesValueObservation struct {
}
type KeyValuesValueParameters struct {
// Whether Chinese characters are contained.
// +kubebuilder:validation:Optional
ContainZH *bool `json:"containZH,omitempty" tf:"contain_z_h,omitempty"`
// Whether the analysis feature is enabled for the field.
// +kubebuilder:validation:Optional
SQLFlag *bool `json:"sqlFlag,omitempty" tf:"sql_flag,omitempty"`
// Field delimiter, which is meaningful only if the field type is text. Each character in the entered string represents a delimiter.
// +kubebuilder:validation:Optional
Tokenizer *string `json:"tokenizer,omitempty" tf:"tokenizer,omitempty"`
// Field type. Valid values: long, text, double.
// +kubebuilder:validation:Required
Type *string `json:"type" tf:"type,omitempty"`
}
type RuleObservation struct {
}
type RuleParameters struct {
// Full-Text index configuration.
// +kubebuilder:validation:Optional
FullText []FullTextParameters `json:"fullText,omitempty" tf:"full_text,omitempty"`
// Key-Value index configuration.
// +kubebuilder:validation:Optional
KeyValue []KeyValueParameters `json:"keyValue,omitempty" tf:"key_value,omitempty"`
// Metafield index configuration.
// +kubebuilder:validation:Optional
Tag []TagParameters `json:"tag,omitempty" tf:"tag,omitempty"`
}
type TagKeyValuesObservation struct {
}
type TagKeyValuesParameters struct {
// When a key value or metafield index needs to be configured for a field, the metafield Key does not need to be prefixed with __TAG__. and is consistent with the one when logs are uploaded. __TAG__. will be prefixed automatically for display in the console..
// +kubebuilder:validation:Required
Key *string `json:"key" tf:"key,omitempty"`
// Field index description information.
// +kubebuilder:validation:Optional
Value []KeyValuesValueParameters `json:"value,omitempty" tf:"value,omitempty"`
}
type TagObservation struct {
}
type TagParameters struct {
// Case sensitivity.
// +kubebuilder:validation:Required
CaseSensitive *bool `json:"caseSensitive" tf:"case_sensitive,omitempty"`
// Key-Value pair information of the index to be created. Up to 100 key-value pairs can be configured.
// +kubebuilder:validation:Optional
KeyValues []TagKeyValuesParameters `json:"keyValues,omitempty" tf:"key_values,omitempty"`
}
type ValueObservation struct {
}
type ValueParameters struct {
// Whether Chinese characters are contained.
// +kubebuilder:validation:Optional
ContainZH *bool `json:"containZH,omitempty" tf:"contain_z_h,omitempty"`
// Whether the analysis feature is enabled for the field.
// +kubebuilder:validation:Optional
SQLFlag *bool `json:"sqlFlag,omitempty" tf:"sql_flag,omitempty"`
// Field delimiter, which is meaningful only if the field type is text. Each character in the entered string represents a delimiter.
// +kubebuilder:validation:Optional
Tokenizer *string `json:"tokenizer,omitempty" tf:"tokenizer,omitempty"`
// Field type. Valid values: long, text, double.
// +kubebuilder:validation:Required
Type *string `json:"type" tf:"type,omitempty"`
}
// IndexSpec defines the desired state of Index
type IndexSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider IndexParameters `json:"forProvider"`
}
// IndexStatus defines the observed state of Index.
type IndexStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider IndexObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// Index is the Schema for the Indexs 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,tencentcloudjet}
type Index struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec IndexSpec `json:"spec"`
Status IndexStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// IndexList contains a list of Indexs
type IndexList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Index `json:"items"`
}
// Repository type metadata.
var (
Index_Kind = "Index"
Index_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Index_Kind}.String()
Index_KindAPIVersion = Index_Kind + "." + CRDGroupVersion.String()
Index_GroupVersionKind = CRDGroupVersion.WithKind(Index_Kind)
)
func init() {
SchemeBuilder.Register(&Index{}, &IndexList{})
}