-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathmodel_load_balancer_options.go
More file actions
270 lines (220 loc) · 10.8 KB
/
model_load_balancer_options.go
File metadata and controls
270 lines (220 loc) · 10.8 KB
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
/*
STACKIT Application Load Balancer API
This API offers an interface to provision and manage Application Load Balancers in your STACKIT project.This solution offers modern L7 load balancing. Current features include TLS, path and prefix based routing aswell as routing based on headers, query parameters and keeping connections persistent with cookies and web sockets. For each Application Load Balancer provided, two VMs are deployed in your STACKIT project and are subject to fees.
API version: 2.0.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package alb
import (
"encoding/json"
)
// checks if the LoadBalancerOptions type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &LoadBalancerOptions{}
/*
types and functions for accessControl
*/
// isModel
type LoadBalancerOptionsGetAccessControlAttributeType = *LoadbalancerOptionAccessControl
type LoadBalancerOptionsGetAccessControlArgType = LoadbalancerOptionAccessControl
type LoadBalancerOptionsGetAccessControlRetType = LoadbalancerOptionAccessControl
func getLoadBalancerOptionsGetAccessControlAttributeTypeOk(arg LoadBalancerOptionsGetAccessControlAttributeType) (ret LoadBalancerOptionsGetAccessControlRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setLoadBalancerOptionsGetAccessControlAttributeType(arg *LoadBalancerOptionsGetAccessControlAttributeType, val LoadBalancerOptionsGetAccessControlRetType) {
*arg = &val
}
/*
types and functions for ephemeralAddress
*/
// isBoolean
type LoadBalancerOptionsgetEphemeralAddressAttributeType = *bool
type LoadBalancerOptionsgetEphemeralAddressArgType = bool
type LoadBalancerOptionsgetEphemeralAddressRetType = bool
func getLoadBalancerOptionsgetEphemeralAddressAttributeTypeOk(arg LoadBalancerOptionsgetEphemeralAddressAttributeType) (ret LoadBalancerOptionsgetEphemeralAddressRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setLoadBalancerOptionsgetEphemeralAddressAttributeType(arg *LoadBalancerOptionsgetEphemeralAddressAttributeType, val LoadBalancerOptionsgetEphemeralAddressRetType) {
*arg = &val
}
/*
types and functions for observability
*/
// isModel
type LoadBalancerOptionsGetObservabilityAttributeType = *LoadbalancerOptionObservability
type LoadBalancerOptionsGetObservabilityArgType = LoadbalancerOptionObservability
type LoadBalancerOptionsGetObservabilityRetType = LoadbalancerOptionObservability
func getLoadBalancerOptionsGetObservabilityAttributeTypeOk(arg LoadBalancerOptionsGetObservabilityAttributeType) (ret LoadBalancerOptionsGetObservabilityRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setLoadBalancerOptionsGetObservabilityAttributeType(arg *LoadBalancerOptionsGetObservabilityAttributeType, val LoadBalancerOptionsGetObservabilityRetType) {
*arg = &val
}
/*
types and functions for privateNetworkOnly
*/
// isBoolean
type LoadBalancerOptionsgetPrivateNetworkOnlyAttributeType = *bool
type LoadBalancerOptionsgetPrivateNetworkOnlyArgType = bool
type LoadBalancerOptionsgetPrivateNetworkOnlyRetType = bool
func getLoadBalancerOptionsgetPrivateNetworkOnlyAttributeTypeOk(arg LoadBalancerOptionsgetPrivateNetworkOnlyAttributeType) (ret LoadBalancerOptionsgetPrivateNetworkOnlyRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setLoadBalancerOptionsgetPrivateNetworkOnlyAttributeType(arg *LoadBalancerOptionsgetPrivateNetworkOnlyAttributeType, val LoadBalancerOptionsgetPrivateNetworkOnlyRetType) {
*arg = &val
}
// LoadBalancerOptions Defines any optional functionality you want to have enabled on your Application Load Balancer.
type LoadBalancerOptions struct {
AccessControl LoadBalancerOptionsGetAccessControlAttributeType `json:"accessControl,omitempty"`
// This option automates the handling of the external IP address for an Application Load Balancer. If set to true a new IP address will be automatically created. It will also be automatically deleted when the Load Balancer is deleted.
EphemeralAddress LoadBalancerOptionsgetEphemeralAddressAttributeType `json:"ephemeralAddress,omitempty"`
Observability LoadBalancerOptionsGetObservabilityAttributeType `json:"observability,omitempty"`
// Application Load Balancer is accessible only via a private network ip address. Not changeable after creation.
PrivateNetworkOnly LoadBalancerOptionsgetPrivateNetworkOnlyAttributeType `json:"privateNetworkOnly,omitempty"`
}
// NewLoadBalancerOptions instantiates a new LoadBalancerOptions object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewLoadBalancerOptions() *LoadBalancerOptions {
this := LoadBalancerOptions{}
return &this
}
// NewLoadBalancerOptionsWithDefaults instantiates a new LoadBalancerOptions object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewLoadBalancerOptionsWithDefaults() *LoadBalancerOptions {
this := LoadBalancerOptions{}
return &this
}
// GetAccessControl returns the AccessControl field value if set, zero value otherwise.
func (o *LoadBalancerOptions) GetAccessControl() (res LoadBalancerOptionsGetAccessControlRetType) {
res, _ = o.GetAccessControlOk()
return
}
// GetAccessControlOk returns a tuple with the AccessControl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LoadBalancerOptions) GetAccessControlOk() (ret LoadBalancerOptionsGetAccessControlRetType, ok bool) {
return getLoadBalancerOptionsGetAccessControlAttributeTypeOk(o.AccessControl)
}
// HasAccessControl returns a boolean if a field has been set.
func (o *LoadBalancerOptions) HasAccessControl() bool {
_, ok := o.GetAccessControlOk()
return ok
}
// SetAccessControl gets a reference to the given LoadbalancerOptionAccessControl and assigns it to the AccessControl field.
func (o *LoadBalancerOptions) SetAccessControl(v LoadBalancerOptionsGetAccessControlRetType) {
setLoadBalancerOptionsGetAccessControlAttributeType(&o.AccessControl, v)
}
// GetEphemeralAddress returns the EphemeralAddress field value if set, zero value otherwise.
func (o *LoadBalancerOptions) GetEphemeralAddress() (res LoadBalancerOptionsgetEphemeralAddressRetType) {
res, _ = o.GetEphemeralAddressOk()
return
}
// GetEphemeralAddressOk returns a tuple with the EphemeralAddress field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LoadBalancerOptions) GetEphemeralAddressOk() (ret LoadBalancerOptionsgetEphemeralAddressRetType, ok bool) {
return getLoadBalancerOptionsgetEphemeralAddressAttributeTypeOk(o.EphemeralAddress)
}
// HasEphemeralAddress returns a boolean if a field has been set.
func (o *LoadBalancerOptions) HasEphemeralAddress() bool {
_, ok := o.GetEphemeralAddressOk()
return ok
}
// SetEphemeralAddress gets a reference to the given bool and assigns it to the EphemeralAddress field.
func (o *LoadBalancerOptions) SetEphemeralAddress(v LoadBalancerOptionsgetEphemeralAddressRetType) {
setLoadBalancerOptionsgetEphemeralAddressAttributeType(&o.EphemeralAddress, v)
}
// GetObservability returns the Observability field value if set, zero value otherwise.
func (o *LoadBalancerOptions) GetObservability() (res LoadBalancerOptionsGetObservabilityRetType) {
res, _ = o.GetObservabilityOk()
return
}
// GetObservabilityOk returns a tuple with the Observability field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LoadBalancerOptions) GetObservabilityOk() (ret LoadBalancerOptionsGetObservabilityRetType, ok bool) {
return getLoadBalancerOptionsGetObservabilityAttributeTypeOk(o.Observability)
}
// HasObservability returns a boolean if a field has been set.
func (o *LoadBalancerOptions) HasObservability() bool {
_, ok := o.GetObservabilityOk()
return ok
}
// SetObservability gets a reference to the given LoadbalancerOptionObservability and assigns it to the Observability field.
func (o *LoadBalancerOptions) SetObservability(v LoadBalancerOptionsGetObservabilityRetType) {
setLoadBalancerOptionsGetObservabilityAttributeType(&o.Observability, v)
}
// GetPrivateNetworkOnly returns the PrivateNetworkOnly field value if set, zero value otherwise.
func (o *LoadBalancerOptions) GetPrivateNetworkOnly() (res LoadBalancerOptionsgetPrivateNetworkOnlyRetType) {
res, _ = o.GetPrivateNetworkOnlyOk()
return
}
// GetPrivateNetworkOnlyOk returns a tuple with the PrivateNetworkOnly field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LoadBalancerOptions) GetPrivateNetworkOnlyOk() (ret LoadBalancerOptionsgetPrivateNetworkOnlyRetType, ok bool) {
return getLoadBalancerOptionsgetPrivateNetworkOnlyAttributeTypeOk(o.PrivateNetworkOnly)
}
// HasPrivateNetworkOnly returns a boolean if a field has been set.
func (o *LoadBalancerOptions) HasPrivateNetworkOnly() bool {
_, ok := o.GetPrivateNetworkOnlyOk()
return ok
}
// SetPrivateNetworkOnly gets a reference to the given bool and assigns it to the PrivateNetworkOnly field.
func (o *LoadBalancerOptions) SetPrivateNetworkOnly(v LoadBalancerOptionsgetPrivateNetworkOnlyRetType) {
setLoadBalancerOptionsgetPrivateNetworkOnlyAttributeType(&o.PrivateNetworkOnly, v)
}
func (o LoadBalancerOptions) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getLoadBalancerOptionsGetAccessControlAttributeTypeOk(o.AccessControl); ok {
toSerialize["AccessControl"] = val
}
if val, ok := getLoadBalancerOptionsgetEphemeralAddressAttributeTypeOk(o.EphemeralAddress); ok {
toSerialize["EphemeralAddress"] = val
}
if val, ok := getLoadBalancerOptionsGetObservabilityAttributeTypeOk(o.Observability); ok {
toSerialize["Observability"] = val
}
if val, ok := getLoadBalancerOptionsgetPrivateNetworkOnlyAttributeTypeOk(o.PrivateNetworkOnly); ok {
toSerialize["PrivateNetworkOnly"] = val
}
return toSerialize, nil
}
type NullableLoadBalancerOptions struct {
value *LoadBalancerOptions
isSet bool
}
func (v NullableLoadBalancerOptions) Get() *LoadBalancerOptions {
return v.value
}
func (v *NullableLoadBalancerOptions) Set(val *LoadBalancerOptions) {
v.value = val
v.isSet = true
}
func (v NullableLoadBalancerOptions) IsSet() bool {
return v.isSet
}
func (v *NullableLoadBalancerOptions) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableLoadBalancerOptions(val *LoadBalancerOptions) *NullableLoadBalancerOptions {
return &NullableLoadBalancerOptions{value: val, isSet: true}
}
func (v NullableLoadBalancerOptions) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableLoadBalancerOptions) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}