-
Notifications
You must be signed in to change notification settings - Fork 2
/
model_migrations_config_part.go
404 lines (342 loc) · 13.5 KB
/
model_migrations_config_part.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
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
/*
* Akeyless API
*
* The purpose of this application is to provide access to Akeyless API.
*
* API version: 2.0
* Contact: support@akeyless.io
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package akeyless
import (
"encoding/json"
)
// MigrationsConfigPart struct for MigrationsConfigPart
type MigrationsConfigPart struct {
ActiveDirectoryMigrations *[]ActiveDirectoryMigration `json:"active_directory_migrations,omitempty"`
AwsSecretsMigrations *[]AWSSecretsMigration `json:"aws_secrets_migrations,omitempty"`
AzureKvMigrations *[]AzureKeyVaultMigration `json:"azure_kv_migrations,omitempty"`
GcpSecretsMigrations *[]GCPSecretsMigration `json:"gcp_secrets_migrations,omitempty"`
HashiMigrations *[]HashiMigration `json:"hashi_migrations,omitempty"`
K8sMigrations *[]K8SMigration `json:"k8s_migrations,omitempty"`
MockMigrations *[]MockMigration `json:"mock_migrations,omitempty"`
OnePasswordMigrations *[]OnePasswordMigration `json:"one_password_migrations,omitempty"`
ServerInventoryMigrations *[]ServerInventoryMigration `json:"server_inventory_migrations,omitempty"`
}
// NewMigrationsConfigPart instantiates a new MigrationsConfigPart 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 NewMigrationsConfigPart() *MigrationsConfigPart {
this := MigrationsConfigPart{}
return &this
}
// NewMigrationsConfigPartWithDefaults instantiates a new MigrationsConfigPart 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 NewMigrationsConfigPartWithDefaults() *MigrationsConfigPart {
this := MigrationsConfigPart{}
return &this
}
// GetActiveDirectoryMigrations returns the ActiveDirectoryMigrations field value if set, zero value otherwise.
func (o *MigrationsConfigPart) GetActiveDirectoryMigrations() []ActiveDirectoryMigration {
if o == nil || o.ActiveDirectoryMigrations == nil {
var ret []ActiveDirectoryMigration
return ret
}
return *o.ActiveDirectoryMigrations
}
// GetActiveDirectoryMigrationsOk returns a tuple with the ActiveDirectoryMigrations field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MigrationsConfigPart) GetActiveDirectoryMigrationsOk() (*[]ActiveDirectoryMigration, bool) {
if o == nil || o.ActiveDirectoryMigrations == nil {
return nil, false
}
return o.ActiveDirectoryMigrations, true
}
// HasActiveDirectoryMigrations returns a boolean if a field has been set.
func (o *MigrationsConfigPart) HasActiveDirectoryMigrations() bool {
if o != nil && o.ActiveDirectoryMigrations != nil {
return true
}
return false
}
// SetActiveDirectoryMigrations gets a reference to the given []ActiveDirectoryMigration and assigns it to the ActiveDirectoryMigrations field.
func (o *MigrationsConfigPart) SetActiveDirectoryMigrations(v []ActiveDirectoryMigration) {
o.ActiveDirectoryMigrations = &v
}
// GetAwsSecretsMigrations returns the AwsSecretsMigrations field value if set, zero value otherwise.
func (o *MigrationsConfigPart) GetAwsSecretsMigrations() []AWSSecretsMigration {
if o == nil || o.AwsSecretsMigrations == nil {
var ret []AWSSecretsMigration
return ret
}
return *o.AwsSecretsMigrations
}
// GetAwsSecretsMigrationsOk returns a tuple with the AwsSecretsMigrations field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MigrationsConfigPart) GetAwsSecretsMigrationsOk() (*[]AWSSecretsMigration, bool) {
if o == nil || o.AwsSecretsMigrations == nil {
return nil, false
}
return o.AwsSecretsMigrations, true
}
// HasAwsSecretsMigrations returns a boolean if a field has been set.
func (o *MigrationsConfigPart) HasAwsSecretsMigrations() bool {
if o != nil && o.AwsSecretsMigrations != nil {
return true
}
return false
}
// SetAwsSecretsMigrations gets a reference to the given []AWSSecretsMigration and assigns it to the AwsSecretsMigrations field.
func (o *MigrationsConfigPart) SetAwsSecretsMigrations(v []AWSSecretsMigration) {
o.AwsSecretsMigrations = &v
}
// GetAzureKvMigrations returns the AzureKvMigrations field value if set, zero value otherwise.
func (o *MigrationsConfigPart) GetAzureKvMigrations() []AzureKeyVaultMigration {
if o == nil || o.AzureKvMigrations == nil {
var ret []AzureKeyVaultMigration
return ret
}
return *o.AzureKvMigrations
}
// GetAzureKvMigrationsOk returns a tuple with the AzureKvMigrations field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MigrationsConfigPart) GetAzureKvMigrationsOk() (*[]AzureKeyVaultMigration, bool) {
if o == nil || o.AzureKvMigrations == nil {
return nil, false
}
return o.AzureKvMigrations, true
}
// HasAzureKvMigrations returns a boolean if a field has been set.
func (o *MigrationsConfigPart) HasAzureKvMigrations() bool {
if o != nil && o.AzureKvMigrations != nil {
return true
}
return false
}
// SetAzureKvMigrations gets a reference to the given []AzureKeyVaultMigration and assigns it to the AzureKvMigrations field.
func (o *MigrationsConfigPart) SetAzureKvMigrations(v []AzureKeyVaultMigration) {
o.AzureKvMigrations = &v
}
// GetGcpSecretsMigrations returns the GcpSecretsMigrations field value if set, zero value otherwise.
func (o *MigrationsConfigPart) GetGcpSecretsMigrations() []GCPSecretsMigration {
if o == nil || o.GcpSecretsMigrations == nil {
var ret []GCPSecretsMigration
return ret
}
return *o.GcpSecretsMigrations
}
// GetGcpSecretsMigrationsOk returns a tuple with the GcpSecretsMigrations field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MigrationsConfigPart) GetGcpSecretsMigrationsOk() (*[]GCPSecretsMigration, bool) {
if o == nil || o.GcpSecretsMigrations == nil {
return nil, false
}
return o.GcpSecretsMigrations, true
}
// HasGcpSecretsMigrations returns a boolean if a field has been set.
func (o *MigrationsConfigPart) HasGcpSecretsMigrations() bool {
if o != nil && o.GcpSecretsMigrations != nil {
return true
}
return false
}
// SetGcpSecretsMigrations gets a reference to the given []GCPSecretsMigration and assigns it to the GcpSecretsMigrations field.
func (o *MigrationsConfigPart) SetGcpSecretsMigrations(v []GCPSecretsMigration) {
o.GcpSecretsMigrations = &v
}
// GetHashiMigrations returns the HashiMigrations field value if set, zero value otherwise.
func (o *MigrationsConfigPart) GetHashiMigrations() []HashiMigration {
if o == nil || o.HashiMigrations == nil {
var ret []HashiMigration
return ret
}
return *o.HashiMigrations
}
// GetHashiMigrationsOk returns a tuple with the HashiMigrations field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MigrationsConfigPart) GetHashiMigrationsOk() (*[]HashiMigration, bool) {
if o == nil || o.HashiMigrations == nil {
return nil, false
}
return o.HashiMigrations, true
}
// HasHashiMigrations returns a boolean if a field has been set.
func (o *MigrationsConfigPart) HasHashiMigrations() bool {
if o != nil && o.HashiMigrations != nil {
return true
}
return false
}
// SetHashiMigrations gets a reference to the given []HashiMigration and assigns it to the HashiMigrations field.
func (o *MigrationsConfigPart) SetHashiMigrations(v []HashiMigration) {
o.HashiMigrations = &v
}
// GetK8sMigrations returns the K8sMigrations field value if set, zero value otherwise.
func (o *MigrationsConfigPart) GetK8sMigrations() []K8SMigration {
if o == nil || o.K8sMigrations == nil {
var ret []K8SMigration
return ret
}
return *o.K8sMigrations
}
// GetK8sMigrationsOk returns a tuple with the K8sMigrations field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MigrationsConfigPart) GetK8sMigrationsOk() (*[]K8SMigration, bool) {
if o == nil || o.K8sMigrations == nil {
return nil, false
}
return o.K8sMigrations, true
}
// HasK8sMigrations returns a boolean if a field has been set.
func (o *MigrationsConfigPart) HasK8sMigrations() bool {
if o != nil && o.K8sMigrations != nil {
return true
}
return false
}
// SetK8sMigrations gets a reference to the given []K8SMigration and assigns it to the K8sMigrations field.
func (o *MigrationsConfigPart) SetK8sMigrations(v []K8SMigration) {
o.K8sMigrations = &v
}
// GetMockMigrations returns the MockMigrations field value if set, zero value otherwise.
func (o *MigrationsConfigPart) GetMockMigrations() []MockMigration {
if o == nil || o.MockMigrations == nil {
var ret []MockMigration
return ret
}
return *o.MockMigrations
}
// GetMockMigrationsOk returns a tuple with the MockMigrations field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MigrationsConfigPart) GetMockMigrationsOk() (*[]MockMigration, bool) {
if o == nil || o.MockMigrations == nil {
return nil, false
}
return o.MockMigrations, true
}
// HasMockMigrations returns a boolean if a field has been set.
func (o *MigrationsConfigPart) HasMockMigrations() bool {
if o != nil && o.MockMigrations != nil {
return true
}
return false
}
// SetMockMigrations gets a reference to the given []MockMigration and assigns it to the MockMigrations field.
func (o *MigrationsConfigPart) SetMockMigrations(v []MockMigration) {
o.MockMigrations = &v
}
// GetOnePasswordMigrations returns the OnePasswordMigrations field value if set, zero value otherwise.
func (o *MigrationsConfigPart) GetOnePasswordMigrations() []OnePasswordMigration {
if o == nil || o.OnePasswordMigrations == nil {
var ret []OnePasswordMigration
return ret
}
return *o.OnePasswordMigrations
}
// GetOnePasswordMigrationsOk returns a tuple with the OnePasswordMigrations field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MigrationsConfigPart) GetOnePasswordMigrationsOk() (*[]OnePasswordMigration, bool) {
if o == nil || o.OnePasswordMigrations == nil {
return nil, false
}
return o.OnePasswordMigrations, true
}
// HasOnePasswordMigrations returns a boolean if a field has been set.
func (o *MigrationsConfigPart) HasOnePasswordMigrations() bool {
if o != nil && o.OnePasswordMigrations != nil {
return true
}
return false
}
// SetOnePasswordMigrations gets a reference to the given []OnePasswordMigration and assigns it to the OnePasswordMigrations field.
func (o *MigrationsConfigPart) SetOnePasswordMigrations(v []OnePasswordMigration) {
o.OnePasswordMigrations = &v
}
// GetServerInventoryMigrations returns the ServerInventoryMigrations field value if set, zero value otherwise.
func (o *MigrationsConfigPart) GetServerInventoryMigrations() []ServerInventoryMigration {
if o == nil || o.ServerInventoryMigrations == nil {
var ret []ServerInventoryMigration
return ret
}
return *o.ServerInventoryMigrations
}
// GetServerInventoryMigrationsOk returns a tuple with the ServerInventoryMigrations field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MigrationsConfigPart) GetServerInventoryMigrationsOk() (*[]ServerInventoryMigration, bool) {
if o == nil || o.ServerInventoryMigrations == nil {
return nil, false
}
return o.ServerInventoryMigrations, true
}
// HasServerInventoryMigrations returns a boolean if a field has been set.
func (o *MigrationsConfigPart) HasServerInventoryMigrations() bool {
if o != nil && o.ServerInventoryMigrations != nil {
return true
}
return false
}
// SetServerInventoryMigrations gets a reference to the given []ServerInventoryMigration and assigns it to the ServerInventoryMigrations field.
func (o *MigrationsConfigPart) SetServerInventoryMigrations(v []ServerInventoryMigration) {
o.ServerInventoryMigrations = &v
}
func (o MigrationsConfigPart) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.ActiveDirectoryMigrations != nil {
toSerialize["active_directory_migrations"] = o.ActiveDirectoryMigrations
}
if o.AwsSecretsMigrations != nil {
toSerialize["aws_secrets_migrations"] = o.AwsSecretsMigrations
}
if o.AzureKvMigrations != nil {
toSerialize["azure_kv_migrations"] = o.AzureKvMigrations
}
if o.GcpSecretsMigrations != nil {
toSerialize["gcp_secrets_migrations"] = o.GcpSecretsMigrations
}
if o.HashiMigrations != nil {
toSerialize["hashi_migrations"] = o.HashiMigrations
}
if o.K8sMigrations != nil {
toSerialize["k8s_migrations"] = o.K8sMigrations
}
if o.MockMigrations != nil {
toSerialize["mock_migrations"] = o.MockMigrations
}
if o.OnePasswordMigrations != nil {
toSerialize["one_password_migrations"] = o.OnePasswordMigrations
}
if o.ServerInventoryMigrations != nil {
toSerialize["server_inventory_migrations"] = o.ServerInventoryMigrations
}
return json.Marshal(toSerialize)
}
type NullableMigrationsConfigPart struct {
value *MigrationsConfigPart
isSet bool
}
func (v NullableMigrationsConfigPart) Get() *MigrationsConfigPart {
return v.value
}
func (v *NullableMigrationsConfigPart) Set(val *MigrationsConfigPart) {
v.value = val
v.isSet = true
}
func (v NullableMigrationsConfigPart) IsSet() bool {
return v.isSet
}
func (v *NullableMigrationsConfigPart) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableMigrationsConfigPart(val *MigrationsConfigPart) *NullableMigrationsConfigPart {
return &NullableMigrationsConfigPart{value: val, isSet: true}
}
func (v NullableMigrationsConfigPart) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableMigrationsConfigPart) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}