-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathmodel_clone_zone_payload.go
More file actions
327 lines (269 loc) · 14.5 KB
/
model_clone_zone_payload.go
File metadata and controls
327 lines (269 loc) · 14.5 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
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
/*
STACKIT DNS API
This api provides dns
API version: 1.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
package dns
import (
"encoding/json"
)
// checks if the CloneZonePayload type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &CloneZonePayload{}
/*
types and functions for adjustRecords
*/
// isBoolean
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CloneZonePayloadgetAdjustRecordsAttributeType = *bool
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CloneZonePayloadgetAdjustRecordsArgType = bool
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CloneZonePayloadgetAdjustRecordsRetType = bool
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getCloneZonePayloadgetAdjustRecordsAttributeTypeOk(arg CloneZonePayloadgetAdjustRecordsAttributeType) (ret CloneZonePayloadgetAdjustRecordsRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setCloneZonePayloadgetAdjustRecordsAttributeType(arg *CloneZonePayloadgetAdjustRecordsAttributeType, val CloneZonePayloadgetAdjustRecordsRetType) {
*arg = &val
}
/*
types and functions for description
*/
// isNotNullableString
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CloneZonePayloadGetDescriptionAttributeType = *string
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getCloneZonePayloadGetDescriptionAttributeTypeOk(arg CloneZonePayloadGetDescriptionAttributeType) (ret CloneZonePayloadGetDescriptionRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setCloneZonePayloadGetDescriptionAttributeType(arg *CloneZonePayloadGetDescriptionAttributeType, val CloneZonePayloadGetDescriptionRetType) {
*arg = &val
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CloneZonePayloadGetDescriptionArgType = string
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CloneZonePayloadGetDescriptionRetType = string
/*
types and functions for dnsName
*/
// isNotNullableString
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CloneZonePayloadGetDnsNameAttributeType = *string
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getCloneZonePayloadGetDnsNameAttributeTypeOk(arg CloneZonePayloadGetDnsNameAttributeType) (ret CloneZonePayloadGetDnsNameRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setCloneZonePayloadGetDnsNameAttributeType(arg *CloneZonePayloadGetDnsNameAttributeType, val CloneZonePayloadGetDnsNameRetType) {
*arg = &val
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CloneZonePayloadGetDnsNameArgType = string
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CloneZonePayloadGetDnsNameRetType = string
/*
types and functions for name
*/
// isNotNullableString
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CloneZonePayloadGetNameAttributeType = *string
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func getCloneZonePayloadGetNameAttributeTypeOk(arg CloneZonePayloadGetNameAttributeType) (ret CloneZonePayloadGetNameRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func setCloneZonePayloadGetNameAttributeType(arg *CloneZonePayloadGetNameAttributeType, val CloneZonePayloadGetNameRetType) {
*arg = &val
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CloneZonePayloadGetNameArgType = string
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CloneZonePayloadGetNameRetType = string
// CloneZonePayload metadata to clone a zone.
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type CloneZonePayload struct {
// Adjust record set content and replace the dns name of the original zone with the new dns name of the cloned zone
AdjustRecords CloneZonePayloadgetAdjustRecordsAttributeType `json:"adjustRecords,omitempty"`
// New Description for the cloned zone. Leave empty to use the same description as the original zone
Description CloneZonePayloadGetDescriptionAttributeType `json:"description,omitempty"`
// DnsName is the dns name of the zone to clone
// REQUIRED
DnsName CloneZonePayloadGetDnsNameAttributeType `json:"dnsName" required:"true"`
// New Name for the cloned zone. Leave empty to use the same name as the original zone
Name CloneZonePayloadGetNameAttributeType `json:"name,omitempty"`
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type _CloneZonePayload CloneZonePayload
// NewCloneZonePayload instantiates a new CloneZonePayload 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
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewCloneZonePayload(dnsName CloneZonePayloadGetDnsNameArgType) *CloneZonePayload {
this := CloneZonePayload{}
setCloneZonePayloadGetDnsNameAttributeType(&this.DnsName, dnsName)
return &this
}
// NewCloneZonePayloadWithDefaults instantiates a new CloneZonePayload 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
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewCloneZonePayloadWithDefaults() *CloneZonePayload {
this := CloneZonePayload{}
return &this
}
// GetAdjustRecords returns the AdjustRecords field value if set, zero value otherwise.
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CloneZonePayload) GetAdjustRecords() (res CloneZonePayloadgetAdjustRecordsRetType) {
res, _ = o.GetAdjustRecordsOk()
return
}
// GetAdjustRecordsOk returns a tuple with the AdjustRecords field value if set, nil otherwise
// and a boolean to check if the value has been set.
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CloneZonePayload) GetAdjustRecordsOk() (ret CloneZonePayloadgetAdjustRecordsRetType, ok bool) {
return getCloneZonePayloadgetAdjustRecordsAttributeTypeOk(o.AdjustRecords)
}
// HasAdjustRecords returns a boolean if a field has been set.
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CloneZonePayload) HasAdjustRecords() bool {
_, ok := o.GetAdjustRecordsOk()
return ok
}
// SetAdjustRecords gets a reference to the given bool and assigns it to the AdjustRecords field.
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CloneZonePayload) SetAdjustRecords(v CloneZonePayloadgetAdjustRecordsRetType) {
setCloneZonePayloadgetAdjustRecordsAttributeType(&o.AdjustRecords, v)
}
// GetDescription returns the Description field value if set, zero value otherwise.
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CloneZonePayload) GetDescription() (res CloneZonePayloadGetDescriptionRetType) {
res, _ = o.GetDescriptionOk()
return
}
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
// and a boolean to check if the value has been set.
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CloneZonePayload) GetDescriptionOk() (ret CloneZonePayloadGetDescriptionRetType, ok bool) {
return getCloneZonePayloadGetDescriptionAttributeTypeOk(o.Description)
}
// HasDescription returns a boolean if a field has been set.
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CloneZonePayload) HasDescription() bool {
_, ok := o.GetDescriptionOk()
return ok
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CloneZonePayload) SetDescription(v CloneZonePayloadGetDescriptionRetType) {
setCloneZonePayloadGetDescriptionAttributeType(&o.Description, v)
}
// GetDnsName returns the DnsName field value
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CloneZonePayload) GetDnsName() (ret CloneZonePayloadGetDnsNameRetType) {
ret, _ = o.GetDnsNameOk()
return ret
}
// GetDnsNameOk returns a tuple with the DnsName field value
// and a boolean to check if the value has been set.
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CloneZonePayload) GetDnsNameOk() (ret CloneZonePayloadGetDnsNameRetType, ok bool) {
return getCloneZonePayloadGetDnsNameAttributeTypeOk(o.DnsName)
}
// SetDnsName sets field value
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CloneZonePayload) SetDnsName(v CloneZonePayloadGetDnsNameRetType) {
setCloneZonePayloadGetDnsNameAttributeType(&o.DnsName, v)
}
// GetName returns the Name field value if set, zero value otherwise.
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CloneZonePayload) GetName() (res CloneZonePayloadGetNameRetType) {
res, _ = o.GetNameOk()
return
}
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CloneZonePayload) GetNameOk() (ret CloneZonePayloadGetNameRetType, ok bool) {
return getCloneZonePayloadGetNameAttributeTypeOk(o.Name)
}
// HasName returns a boolean if a field has been set.
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CloneZonePayload) HasName() bool {
_, ok := o.GetNameOk()
return ok
}
// SetName gets a reference to the given string and assigns it to the Name field.
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o *CloneZonePayload) SetName(v CloneZonePayloadGetNameRetType) {
setCloneZonePayloadGetNameAttributeType(&o.Name, v)
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (o CloneZonePayload) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getCloneZonePayloadgetAdjustRecordsAttributeTypeOk(o.AdjustRecords); ok {
toSerialize["AdjustRecords"] = val
}
if val, ok := getCloneZonePayloadGetDescriptionAttributeTypeOk(o.Description); ok {
toSerialize["Description"] = val
}
if val, ok := getCloneZonePayloadGetDnsNameAttributeTypeOk(o.DnsName); ok {
toSerialize["DnsName"] = val
}
if val, ok := getCloneZonePayloadGetNameAttributeTypeOk(o.Name); ok {
toSerialize["Name"] = val
}
return toSerialize, nil
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
type NullableCloneZonePayload struct {
value *CloneZonePayload
isSet bool
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableCloneZonePayload) Get() *CloneZonePayload {
return v.value
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableCloneZonePayload) Set(val *CloneZonePayload) {
v.value = val
v.isSet = true
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableCloneZonePayload) IsSet() bool {
return v.isSet
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableCloneZonePayload) Unset() {
v.value = nil
v.isSet = false
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func NewNullableCloneZonePayload(val *CloneZonePayload) *NullableCloneZonePayload {
return &NullableCloneZonePayload{value: val, isSet: true}
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v NullableCloneZonePayload) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead
func (v *NullableCloneZonePayload) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}