-
Notifications
You must be signed in to change notification settings - Fork 64
/
zz_managedzone_types.go
executable file
·345 lines (269 loc) · 13.6 KB
/
zz_managedzone_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
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
/*
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 upjet. DO NOT EDIT.
package v1beta1
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 CloudLoggingConfigObservation struct {
}
type CloudLoggingConfigParameters struct {
// If set, enable query logging for this ManagedZone. False by default, making logging opt-in.
// +kubebuilder:validation:Required
EnableLogging *bool `json:"enableLogging" tf:"enable_logging,omitempty"`
}
type DNSSECConfigObservation struct {
}
type DNSSECConfigParameters struct {
// Specifies parameters that will be used for generating initial DnsKeys
// for this ManagedZone. If you provide a spec for keySigning or zoneSigning,
// you must also provide one for the other.
// default_key_specs can only be updated when the state is off.
// Structure is documented below.
// +kubebuilder:validation:Optional
DefaultKeySpecs []DefaultKeySpecsParameters `json:"defaultKeySpecs,omitempty" tf:"default_key_specs,omitempty"`
// Identifies what kind of resource this is
// +kubebuilder:validation:Optional
Kind *string `json:"kind,omitempty" tf:"kind,omitempty"`
// Specifies the mechanism used to provide authenticated denial-of-existence responses.
// non_existence can only be updated when the state is off.
// Possible values are nsec and nsec3.
// +kubebuilder:validation:Optional
NonExistence *string `json:"nonExistence,omitempty" tf:"non_existence,omitempty"`
// Specifies whether DNSSEC is enabled, and what mode it is in
// Possible values are off, on, and transfer.
// +kubebuilder:validation:Optional
State *string `json:"state,omitempty" tf:"state,omitempty"`
}
type DefaultKeySpecsObservation struct {
}
type DefaultKeySpecsParameters struct {
// String mnemonic specifying the DNSSEC algorithm of this key
// Possible values are ecdsap256sha256, ecdsap384sha384, rsasha1, rsasha256, and rsasha512.
// +kubebuilder:validation:Optional
Algorithm *string `json:"algorithm,omitempty" tf:"algorithm,omitempty"`
// Length of the keys in bits
// +kubebuilder:validation:Optional
KeyLength *float64 `json:"keyLength,omitempty" tf:"key_length,omitempty"`
// Specifies whether this is a key signing key (KSK) or a zone
// signing key (ZSK). Key signing keys have the Secure Entry
// Point flag set and, when active, will only be used to sign
// resource record sets of type DNSKEY. Zone signing keys do
// not have the Secure Entry Point flag set and will be used
// to sign all other types of resource record sets.
// Possible values are keySigning and zoneSigning.
// +kubebuilder:validation:Optional
KeyType *string `json:"keyType,omitempty" tf:"key_type,omitempty"`
// Identifies what kind of resource this is
// +kubebuilder:validation:Optional
Kind *string `json:"kind,omitempty" tf:"kind,omitempty"`
}
type ForwardingConfigObservation struct {
}
type ForwardingConfigParameters struct {
// List of target name servers to forward to. Cloud DNS will
// select the best available name server if more than
// one target is given.
// Structure is documented below.
// +kubebuilder:validation:Required
TargetNameServers []TargetNameServersParameters `json:"targetNameServers" tf:"target_name_servers,omitempty"`
}
type GkeClustersObservation struct {
}
type GkeClustersParameters struct {
// The resource name of the cluster to bind this ManagedZone to.
// This should be specified in the format like
// projects/*/locations/*/clusters/*
// +crossplane:generate:reference:type=github.com/upbound/provider-gcp/apis/container/v1beta1.Cluster
// +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractResourceID()
// +kubebuilder:validation:Optional
GkeClusterName *string `json:"gkeClusterName,omitempty" tf:"gke_cluster_name,omitempty"`
// Reference to a Cluster in container to populate gkeClusterName.
// +kubebuilder:validation:Optional
GkeClusterNameRef *v1.Reference `json:"gkeClusterNameRef,omitempty" tf:"-"`
// Selector for a Cluster in container to populate gkeClusterName.
// +kubebuilder:validation:Optional
GkeClusterNameSelector *v1.Selector `json:"gkeClusterNameSelector,omitempty" tf:"-"`
}
type ManagedZoneObservation struct {
// The time that this resource was created on the server.
// This is in RFC3339 text format.
CreationTime *string `json:"creationTime,omitempty" tf:"creation_time,omitempty"`
// an identifier for the resource with format projects/{{project}}/managedZones/{{name}}
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// Unique identifier for the resource; defined by the server.
ManagedZoneID *float64 `json:"managedZoneId,omitempty" tf:"managed_zone_id,omitempty"`
// Delegate your managed_zone to these virtual name servers;
// defined by the server
NameServers []*string `json:"nameServers,omitempty" tf:"name_servers,omitempty"`
}
type ManagedZoneParameters struct {
// Cloud logging configuration
// Structure is documented below.
// +kubebuilder:validation:Optional
CloudLoggingConfig []CloudLoggingConfigParameters `json:"cloudLoggingConfig,omitempty" tf:"cloud_logging_config,omitempty"`
// The DNS name of this managed zone, for instance "example.com.".
// +kubebuilder:validation:Required
DNSName *string `json:"dnsName" tf:"dns_name,omitempty"`
// DNSSEC configuration
// Structure is documented below.
// +kubebuilder:validation:Optional
DNSSECConfig []DNSSECConfigParameters `json:"dnssecConfig,omitempty" tf:"dnssec_config,omitempty"`
// A textual description field.
// +kubebuilder:validation:Optional
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// Set this true to delete all records in the zone.
// +kubebuilder:validation:Optional
ForceDestroy *bool `json:"forceDestroy,omitempty" tf:"force_destroy,omitempty"`
// The presence for this field indicates that outbound forwarding is enabled
// for this zone. The value of this field contains the set of destinations
// to forward to.
// Structure is documented below.
// +kubebuilder:validation:Optional
ForwardingConfig []ForwardingConfigParameters `json:"forwardingConfig,omitempty" tf:"forwarding_config,omitempty"`
// A set of key/value label pairs to assign to this ManagedZone.
// +kubebuilder:validation:Optional
Labels map[string]*string `json:"labels,omitempty" tf:"labels,omitempty"`
// The presence of this field indicates that DNS Peering is enabled for this
// zone. The value of this field contains the network to peer with.
// Structure is documented below.
// +kubebuilder:validation:Optional
PeeringConfig []PeeringConfigParameters `json:"peeringConfig,omitempty" tf:"peering_config,omitempty"`
// For privately visible zones, the set of Virtual Private Cloud
// resources that the zone is visible from.
// Structure is documented below.
// +kubebuilder:validation:Optional
PrivateVisibilityConfig []PrivateVisibilityConfigParameters `json:"privateVisibilityConfig,omitempty" tf:"private_visibility_config,omitempty"`
// The ID of the project in which the resource belongs.
// If it is not provided, the provider project is used.
// +kubebuilder:validation:Optional
Project *string `json:"project,omitempty" tf:"project,omitempty"`
// The zone's visibility: public zones are exposed to the Internet,
// while private zones are visible only to Virtual Private Cloud resources.
// Default value is public.
// Possible values are private and public.
// +kubebuilder:validation:Optional
Visibility *string `json:"visibility,omitempty" tf:"visibility,omitempty"`
}
type NetworksObservation struct {
}
type NetworksParameters struct {
// The id or fully qualified URL of the VPC network to forward queries to.
// This should be formatted like projects/{project}/global/networks/{network} or
// https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
// +crossplane:generate:reference:type=github.com/upbound/provider-gcp/apis/compute/v1beta1.Network
// +crossplane:generate:reference:extractor=github.com/upbound/provider-gcp/config/common.SelfLinkExtractor()
// +kubebuilder:validation:Optional
NetworkURL *string `json:"networkUrl,omitempty" tf:"network_url,omitempty"`
// Reference to a Network in compute to populate networkUrl.
// +kubebuilder:validation:Optional
NetworkURLRef *v1.Reference `json:"networkUrlRef,omitempty" tf:"-"`
// Selector for a Network in compute to populate networkUrl.
// +kubebuilder:validation:Optional
NetworkURLSelector *v1.Selector `json:"networkUrlSelector,omitempty" tf:"-"`
}
type PeeringConfigObservation struct {
}
type PeeringConfigParameters struct {
// The network with which to peer.
// Structure is documented below.
// +kubebuilder:validation:Required
TargetNetwork []TargetNetworkParameters `json:"targetNetwork" tf:"target_network,omitempty"`
}
type PrivateVisibilityConfigObservation struct {
}
type PrivateVisibilityConfigParameters struct {
// The list of Google Kubernetes Engine clusters that can see this zone.
// Structure is documented below.
// +kubebuilder:validation:Optional
GkeClusters []GkeClustersParameters `json:"gkeClusters,omitempty" tf:"gke_clusters,omitempty"`
// The list of VPC networks that can see this zone.12 SDK in a future release, you
// may experience issues with this resource while updating. If you encounter this issue, remove all networks
// blocks in an update and then apply another update adding all of them back simultaneously.
// Structure is documented below.
// +kubebuilder:validation:Required
Networks []NetworksParameters `json:"networks" tf:"networks,omitempty"`
}
type TargetNameServersObservation struct {
}
type TargetNameServersParameters struct {
// Forwarding path for this TargetNameServer. If unset or default Cloud DNS will make forwarding
// decision based on address ranges, i.e. RFC1918 addresses go to the VPC, Non-RFC1918 addresses go
// to the Internet. When set to private, Cloud DNS will always send queries through VPC for this target
// Possible values are default and private.
// +kubebuilder:validation:Optional
ForwardingPath *string `json:"forwardingPath,omitempty" tf:"forwarding_path,omitempty"`
// IPv4 address of a target name server.
// +kubebuilder:validation:Required
IPv4Address *string `json:"ipv4Address" tf:"ipv4_address,omitempty"`
}
type TargetNetworkObservation struct {
}
type TargetNetworkParameters struct {
// The id or fully qualified URL of the VPC network to forward queries to.
// This should be formatted like projects/{project}/global/networks/{network} or
// https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
// +crossplane:generate:reference:type=github.com/upbound/provider-gcp/apis/compute/v1beta1.Network
// +crossplane:generate:reference:extractor=github.com/upbound/provider-gcp/config/common.SelfLinkExtractor()
// +kubebuilder:validation:Optional
NetworkURL *string `json:"networkUrl,omitempty" tf:"network_url,omitempty"`
// Reference to a Network in compute to populate networkUrl.
// +kubebuilder:validation:Optional
NetworkURLRef *v1.Reference `json:"networkUrlRef,omitempty" tf:"-"`
// Selector for a Network in compute to populate networkUrl.
// +kubebuilder:validation:Optional
NetworkURLSelector *v1.Selector `json:"networkUrlSelector,omitempty" tf:"-"`
}
// ManagedZoneSpec defines the desired state of ManagedZone
type ManagedZoneSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider ManagedZoneParameters `json:"forProvider"`
}
// ManagedZoneStatus defines the observed state of ManagedZone.
type ManagedZoneStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider ManagedZoneObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// ManagedZone is the Schema for the ManagedZones API. A zone is a subtree of the DNS namespace under one administrative responsibility.
// +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,gcp}
type ManagedZone struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ManagedZoneSpec `json:"spec"`
Status ManagedZoneStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// ManagedZoneList contains a list of ManagedZones
type ManagedZoneList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ManagedZone `json:"items"`
}
// Repository type metadata.
var (
ManagedZone_Kind = "ManagedZone"
ManagedZone_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: ManagedZone_Kind}.String()
ManagedZone_KindAPIVersion = ManagedZone_Kind + "." + CRDGroupVersion.String()
ManagedZone_GroupVersionKind = CRDGroupVersion.WithKind(ManagedZone_Kind)
)
func init() {
SchemeBuilder.Register(&ManagedZone{}, &ManagedZoneList{})
}