-
Notifications
You must be signed in to change notification settings - Fork 59
/
zz_interconnectattachment_types.go
executable file
·325 lines (265 loc) · 16.3 KB
/
zz_interconnectattachment_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
/*
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 InterconnectAttachmentObservation struct {
// Whether the VLAN attachment is enabled or disabled. When using
// PARTNER type this will Pre-Activate the interconnect attachment
AdminEnabled *bool `json:"adminEnabled,omitempty" tf:"admin_enabled,omitempty"`
// Provisioned bandwidth capacity for the interconnect attachment.
// For attachments of type DEDICATED, the user can set the bandwidth.
// For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth.
// Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED,
// Defaults to BPS_10G
// Possible values are: BPS_50M, BPS_100M, BPS_200M, BPS_300M, BPS_400M, BPS_500M, BPS_1G, BPS_2G, BPS_5G, BPS_10G, BPS_20G, BPS_50G.
Bandwidth *string `json:"bandwidth,omitempty" tf:"bandwidth,omitempty"`
// Up to 16 candidate prefixes that can be used to restrict the allocation
// of cloudRouterIpAddress and customerRouterIpAddress for this attachment.
// All prefixes must be within link-local address space (169.254.0.0/16)
// and must be /29 or shorter (/28, /27, etc). Google will attempt to select
// an unused /29 from the supplied candidate prefix(es). The request will
// fail if all possible /29s are in use on Google's edge. If not supplied,
// Google will randomly select an unused /29 from all of link-local space.
CandidateSubnets []*string `json:"candidateSubnets,omitempty" tf:"candidate_subnets,omitempty"`
// IPv4 address + prefix length to be configured on Cloud Router
// Interface for this interconnect attachment.
CloudRouterIPAddress *string `json:"cloudRouterIpAddress,omitempty" tf:"cloud_router_ip_address,omitempty"`
// Creation timestamp in RFC3339 text format.
CreationTimestamp *string `json:"creationTimestamp,omitempty" tf:"creation_timestamp,omitempty"`
// IPv4 address + prefix length to be configured on the customer
// router subinterface for this interconnect attachment.
CustomerRouterIPAddress *string `json:"customerRouterIpAddress,omitempty" tf:"customer_router_ip_address,omitempty"`
// An optional description of this resource.
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// Desired availability domain for the attachment. Only available for type
// PARTNER, at creation time. For improved reliability, customers should
// configure a pair of attachments with one per availability domain. The
// selected availability domain will be provided to the Partner via the
// pairing key so that the provisioned circuit will lie in the specified
// domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY.
EdgeAvailabilityDomain *string `json:"edgeAvailabilityDomain,omitempty" tf:"edge_availability_domain,omitempty"`
// Indicates the user-supplied encryption option of this interconnect
// attachment. Can only be specified at attachment creation for PARTNER or
// DEDICATED attachments.
Encryption *string `json:"encryption,omitempty" tf:"encryption,omitempty"`
// Google reference ID, to be used when raising support tickets with
// Google or otherwise to debug backend connectivity issues.
GoogleReferenceID *string `json:"googleReferenceId,omitempty" tf:"google_reference_id,omitempty"`
// an identifier for the resource with format projects/{{project}}/regions/{{region}}/interconnectAttachments/{{name}}
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// URL of the underlying Interconnect object that this attachment's
// traffic will traverse through. Required if type is DEDICATED, must not
// be set if type is PARTNER.
Interconnect *string `json:"interconnect,omitempty" tf:"interconnect,omitempty"`
// URL of addresses that have been reserved for the interconnect attachment,
// Used only for interconnect attachment that has the encryption option as
// IPSEC.
// The addresses must be RFC 1918 IP address ranges. When creating HA VPN
// gateway over the interconnect attachment, if the attachment is configured
// to use an RFC 1918 IP address, then the VPN gateway's IP address will be
// allocated from the IP address range specified here.
// For example, if the HA VPN gateway's interface 0 is paired to this
// interconnect attachment, then an RFC 1918 IP address for the VPN gateway
// interface 0 will be allocated from the IP address specified for this
// interconnect attachment.
// If this field is not specified for interconnect attachment that has
// encryption option as IPSEC, later on when creating HA VPN gateway on this
// interconnect attachment, the HA VPN gateway's IP address will be
// allocated from regional external IP address pool.
IpsecInternalAddresses []*string `json:"ipsecInternalAddresses,omitempty" tf:"ipsec_internal_addresses,omitempty"`
// Maximum Transmission Unit (MTU), in bytes, of packets passing through
// this interconnect attachment. Currently, only 1440 and 1500 are allowed. If not specified, the value will default to 1440.
Mtu *string `json:"mtu,omitempty" tf:"mtu,omitempty"`
// [Output only for type PARTNER. Not present for DEDICATED]. The opaque
// identifier of an PARTNER attachment used to initiate provisioning with
// a selected partner. Of the form "XXXXX/region/domain"
PairingKey *string `json:"pairingKey,omitempty" tf:"pairing_key,omitempty"`
// [Output only for type PARTNER. Not present for DEDICATED]. Optional
// BGP ASN for the router that should be supplied by a layer 3 Partner if
// they configured BGP on behalf of the customer.
PartnerAsn *string `json:"partnerAsn,omitempty" tf:"partner_asn,omitempty"`
// Information specific to an InterconnectAttachment. This property
// is populated if the interconnect that this is attached to is of type DEDICATED.
// Structure is documented below.
PrivateInterconnectInfo []PrivateInterconnectInfoObservation `json:"privateInterconnectInfo,omitempty" tf:"private_interconnect_info,omitempty"`
// The ID of the project in which the resource belongs.
// If it is not provided, the provider project is used.
Project *string `json:"project,omitempty" tf:"project,omitempty"`
// Region where the regional interconnect attachment resides.
Region *string `json:"region,omitempty" tf:"region,omitempty"`
// URL of the cloud router to be used for dynamic routing. This router must be in
// the same region as this InterconnectAttachment. The InterconnectAttachment will
// automatically connect the Interconnect to the network & region within which the
// Cloud Router is configured.
Router *string `json:"router,omitempty" tf:"router,omitempty"`
// The URI of the created resource.
SelfLink *string `json:"selfLink,omitempty" tf:"self_link,omitempty"`
// [Output Only] The current state of this attachment's functionality.
State *string `json:"state,omitempty" tf:"state,omitempty"`
// The type of InterconnectAttachment you wish to create. Defaults to
// DEDICATED.
// Possible values are: DEDICATED, PARTNER, PARTNER_PROVIDER.
Type *string `json:"type,omitempty" tf:"type,omitempty"`
// The IEEE 802.1Q VLAN tag for this attachment, in the range 2-4094. When
// using PARTNER type this will be managed upstream.
VlanTag8021Q *float64 `json:"vlanTag8021Q,omitempty" tf:"vlan_tag8021q,omitempty"`
}
type InterconnectAttachmentParameters struct {
// Whether the VLAN attachment is enabled or disabled. When using
// PARTNER type this will Pre-Activate the interconnect attachment
// +kubebuilder:validation:Optional
AdminEnabled *bool `json:"adminEnabled,omitempty" tf:"admin_enabled,omitempty"`
// Provisioned bandwidth capacity for the interconnect attachment.
// For attachments of type DEDICATED, the user can set the bandwidth.
// For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth.
// Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED,
// Defaults to BPS_10G
// Possible values are: BPS_50M, BPS_100M, BPS_200M, BPS_300M, BPS_400M, BPS_500M, BPS_1G, BPS_2G, BPS_5G, BPS_10G, BPS_20G, BPS_50G.
// +kubebuilder:validation:Optional
Bandwidth *string `json:"bandwidth,omitempty" tf:"bandwidth,omitempty"`
// Up to 16 candidate prefixes that can be used to restrict the allocation
// of cloudRouterIpAddress and customerRouterIpAddress for this attachment.
// All prefixes must be within link-local address space (169.254.0.0/16)
// and must be /29 or shorter (/28, /27, etc). Google will attempt to select
// an unused /29 from the supplied candidate prefix(es). The request will
// fail if all possible /29s are in use on Google's edge. If not supplied,
// Google will randomly select an unused /29 from all of link-local space.
// +kubebuilder:validation:Optional
CandidateSubnets []*string `json:"candidateSubnets,omitempty" tf:"candidate_subnets,omitempty"`
// An optional description of this resource.
// +kubebuilder:validation:Optional
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// Desired availability domain for the attachment. Only available for type
// PARTNER, at creation time. For improved reliability, customers should
// configure a pair of attachments with one per availability domain. The
// selected availability domain will be provided to the Partner via the
// pairing key so that the provisioned circuit will lie in the specified
// domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY.
// +kubebuilder:validation:Optional
EdgeAvailabilityDomain *string `json:"edgeAvailabilityDomain,omitempty" tf:"edge_availability_domain,omitempty"`
// Indicates the user-supplied encryption option of this interconnect
// attachment. Can only be specified at attachment creation for PARTNER or
// DEDICATED attachments.
// +kubebuilder:validation:Optional
Encryption *string `json:"encryption,omitempty" tf:"encryption,omitempty"`
// URL of the underlying Interconnect object that this attachment's
// traffic will traverse through. Required if type is DEDICATED, must not
// be set if type is PARTNER.
// +kubebuilder:validation:Optional
Interconnect *string `json:"interconnect,omitempty" tf:"interconnect,omitempty"`
// URL of addresses that have been reserved for the interconnect attachment,
// Used only for interconnect attachment that has the encryption option as
// IPSEC.
// The addresses must be RFC 1918 IP address ranges. When creating HA VPN
// gateway over the interconnect attachment, if the attachment is configured
// to use an RFC 1918 IP address, then the VPN gateway's IP address will be
// allocated from the IP address range specified here.
// For example, if the HA VPN gateway's interface 0 is paired to this
// interconnect attachment, then an RFC 1918 IP address for the VPN gateway
// interface 0 will be allocated from the IP address specified for this
// interconnect attachment.
// If this field is not specified for interconnect attachment that has
// encryption option as IPSEC, later on when creating HA VPN gateway on this
// interconnect attachment, the HA VPN gateway's IP address will be
// allocated from regional external IP address pool.
// +kubebuilder:validation:Optional
IpsecInternalAddresses []*string `json:"ipsecInternalAddresses,omitempty" tf:"ipsec_internal_addresses,omitempty"`
// Maximum Transmission Unit (MTU), in bytes, of packets passing through
// this interconnect attachment. Currently, only 1440 and 1500 are allowed. If not specified, the value will default to 1440.
// +kubebuilder:validation:Optional
Mtu *string `json:"mtu,omitempty" tf:"mtu,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"`
// Region where the regional interconnect attachment resides.
// +kubebuilder:validation:Required
Region *string `json:"region" tf:"region,omitempty"`
// URL of the cloud router to be used for dynamic routing. This router must be in
// the same region as this InterconnectAttachment. The InterconnectAttachment will
// automatically connect the Interconnect to the network & region within which the
// Cloud Router is configured.
// +crossplane:generate:reference:type=Router
// +crossplane:generate:reference:extractor=github.com/upbound/provider-gcp/config/common.SelfLinkExtractor()
// +kubebuilder:validation:Optional
Router *string `json:"router,omitempty" tf:"router,omitempty"`
// Reference to a Router to populate router.
// +kubebuilder:validation:Optional
RouterRef *v1.Reference `json:"routerRef,omitempty" tf:"-"`
// Selector for a Router to populate router.
// +kubebuilder:validation:Optional
RouterSelector *v1.Selector `json:"routerSelector,omitempty" tf:"-"`
// The type of InterconnectAttachment you wish to create. Defaults to
// DEDICATED.
// Possible values are: DEDICATED, PARTNER, PARTNER_PROVIDER.
// +kubebuilder:validation:Optional
Type *string `json:"type,omitempty" tf:"type,omitempty"`
// The IEEE 802.1Q VLAN tag for this attachment, in the range 2-4094. When
// using PARTNER type this will be managed upstream.
// +kubebuilder:validation:Optional
VlanTag8021Q *float64 `json:"vlanTag8021Q,omitempty" tf:"vlan_tag8021q,omitempty"`
}
type PrivateInterconnectInfoObservation struct {
// (Output)
// 802.1q encapsulation tag to be used for traffic between
// Google and the customer, going to and from this network and region.
Tag8021Q *float64 `json:"tag8021q,omitempty" tf:"tag8021q,omitempty"`
}
type PrivateInterconnectInfoParameters struct {
}
// InterconnectAttachmentSpec defines the desired state of InterconnectAttachment
type InterconnectAttachmentSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider InterconnectAttachmentParameters `json:"forProvider"`
}
// InterconnectAttachmentStatus defines the observed state of InterconnectAttachment.
type InterconnectAttachmentStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider InterconnectAttachmentObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// InterconnectAttachment is the Schema for the InterconnectAttachments API. Represents an InterconnectAttachment (VLAN attachment) resource.
// +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 InterconnectAttachment struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec InterconnectAttachmentSpec `json:"spec"`
Status InterconnectAttachmentStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// InterconnectAttachmentList contains a list of InterconnectAttachments
type InterconnectAttachmentList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []InterconnectAttachment `json:"items"`
}
// Repository type metadata.
var (
InterconnectAttachment_Kind = "InterconnectAttachment"
InterconnectAttachment_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: InterconnectAttachment_Kind}.String()
InterconnectAttachment_KindAPIVersion = InterconnectAttachment_Kind + "." + CRDGroupVersion.String()
InterconnectAttachment_GroupVersionKind = CRDGroupVersion.WithKind(InterconnectAttachment_Kind)
)
func init() {
SchemeBuilder.Register(&InterconnectAttachment{}, &InterconnectAttachmentList{})
}