generated from crossplane/upjet-provider-template
/
zz_pool_types.go
executable file
·172 lines (136 loc) · 6.32 KB
/
zz_pool_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
/*
Copyright 2022 Upbound Inc.
*/
// 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 PersistenceObservation struct {
}
type PersistenceParameters struct {
// The name of the cookie if persistence mode is set
// appropriately. Required if type = APP_COOKIE.
// +kubebuilder:validation:Optional
CookieName *string `json:"cookieName,omitempty" tf:"cookie_name,omitempty"`
// Specifies the sticky session timeout duration in minutes. This parameter is
// invalid when type is set to APP_COOKIE. The value range varies depending on the protocol of the backend server group:
// +kubebuilder:validation:Optional
Timeout *float64 `json:"timeout,omitempty" tf:"timeout,omitempty"`
// The type of persistence mode. The current specification
// supports SOURCE_IP, HTTP_COOKIE, and APP_COOKIE.
// +kubebuilder:validation:Required
Type *string `json:"type" tf:"type,omitempty"`
}
type PoolObservation struct {
// The unique ID for the pool.
ID *string `json:"id,omitempty" tf:"id,omitempty"`
}
type PoolParameters struct {
// The administrative state of the pool.
// A valid value is true (UP) or false (DOWN).
// +kubebuilder:validation:Optional
AdminStateUp *bool `json:"adminStateUp,omitempty" tf:"admin_state_up,omitempty"`
// Human-readable description for the pool.
// +kubebuilder:validation:Optional
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// The load balancing algorithm to
// distribute traffic to the pool's members. Must be one of
// ROUND_ROBIN, LEAST_CONNECTIONS, or SOURCE_IP.
// +kubebuilder:validation:Required
LBMethod *string `json:"lbMethod" tf:"lb_method,omitempty"`
// The Listener on which the members of the pool
// will be associated with. Changing this creates a new pool.
// Note: One of LoadbalancerID or ListenerID must be provided.
// +crossplane:generate:reference:type=Listener
// +kubebuilder:validation:Optional
ListenerID *string `json:"listenerId,omitempty" tf:"listener_id,omitempty"`
// Reference to a Listener to populate listenerId.
// +kubebuilder:validation:Optional
ListenerIDRef *v1.Reference `json:"listenerIdRef,omitempty" tf:"-"`
// Selector for a Listener to populate listenerId.
// +kubebuilder:validation:Optional
ListenerIDSelector *v1.Selector `json:"listenerIdSelector,omitempty" tf:"-"`
// The load balancer on which to provision this
// pool. Changing this creates a new pool.
// Note: One of LoadbalancerID or ListenerID must be provided.
// +crossplane:generate:reference:type=LoadBalancer
// +kubebuilder:validation:Optional
LoadbalancerID *string `json:"loadbalancerId,omitempty" tf:"loadbalancer_id,omitempty"`
// Reference to a LoadBalancer to populate loadbalancerId.
// +kubebuilder:validation:Optional
LoadbalancerIDRef *v1.Reference `json:"loadbalancerIdRef,omitempty" tf:"-"`
// Selector for a LoadBalancer to populate loadbalancerId.
// +kubebuilder:validation:Optional
LoadbalancerIDSelector *v1.Selector `json:"loadbalancerIdSelector,omitempty" tf:"-"`
// Human-readable name for the pool.
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Omit this field to prevent session persistence. Indicates
// whether connections in the same session will be processed by the same Pool
// member or not. Changing this creates a new pool.
// +kubebuilder:validation:Optional
Persistence []PersistenceParameters `json:"persistence,omitempty" tf:"persistence,omitempty"`
// can either be TCP, UDP or HTTP.
// +kubebuilder:validation:Required
Protocol *string `json:"protocol" tf:"protocol,omitempty"`
// The region in which to obtain the V2 Networking client.
// A Networking client is needed to create an . If omitted, the
// region argument of the provider is used. Changing this creates a new
// pool.
// +kubebuilder:validation:Optional
Region *string `json:"region,omitempty" tf:"region,omitempty"`
// The unique ID for the pool.
// +crossplane:generate:reference:type=github.com/FrangipaneTeam/provider-flexibleengine/apis/iam/v1beta1.Project
// +kubebuilder:validation:Optional
TenantID *string `json:"tenantId,omitempty" tf:"tenant_id,omitempty"`
// Reference to a Project in iam to populate tenantId.
// +kubebuilder:validation:Optional
TenantIDRef *v1.Reference `json:"tenantIdRef,omitempty" tf:"-"`
// Selector for a Project in iam to populate tenantId.
// +kubebuilder:validation:Optional
TenantIDSelector *v1.Selector `json:"tenantIdSelector,omitempty" tf:"-"`
}
// PoolSpec defines the desired state of Pool
type PoolSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider PoolParameters `json:"forProvider"`
}
// PoolStatus defines the observed state of Pool.
type PoolStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider PoolObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// Pool is the Schema for the Pools API. ""page_title: "flexibleengine_lb_pool_v2"
// +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,flexibleengine}
type Pool struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec PoolSpec `json:"spec"`
Status PoolStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// PoolList contains a list of Pools
type PoolList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Pool `json:"items"`
}
// Repository type metadata.
var (
Pool_Kind = "Pool"
Pool_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Pool_Kind}.String()
Pool_KindAPIVersion = Pool_Kind + "." + CRDGroupVersion.String()
Pool_GroupVersionKind = CRDGroupVersion.WithKind(Pool_Kind)
)
func init() {
SchemeBuilder.Register(&Pool{}, &PoolList{})
}