/
model_start_release.go
413 lines (349 loc) · 12.1 KB
/
model_start_release.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
403
404
405
406
407
408
409
410
411
412
413
/*
Digital.ai Release API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
API version: v1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
import (
"encoding/json"
"time"
)
// checks if the StartRelease type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &StartRelease{}
// StartRelease struct for StartRelease
type StartRelease struct {
ReleaseTitle *string `json:"releaseTitle,omitempty"`
FolderId *string `json:"folderId,omitempty"`
Variables map[string]map[string]interface{} `json:"variables,omitempty"`
ReleaseVariables *map[string]string `json:"releaseVariables,omitempty"`
ReleasePasswordVariables *map[string]string `json:"releasePasswordVariables,omitempty"`
ScheduledStartDate *time.Time `json:"scheduledStartDate,omitempty"`
AutoStart *bool `json:"autoStart,omitempty"`
StartedFromTaskId *string `json:"startedFromTaskId,omitempty"`
ReleaseOwner *string `json:"releaseOwner,omitempty"`
}
// NewStartRelease instantiates a new StartRelease 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 NewStartRelease() *StartRelease {
this := StartRelease{}
return &this
}
// NewStartReleaseWithDefaults instantiates a new StartRelease 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 NewStartReleaseWithDefaults() *StartRelease {
this := StartRelease{}
return &this
}
// GetReleaseTitle returns the ReleaseTitle field value if set, zero value otherwise.
func (o *StartRelease) GetReleaseTitle() string {
if o == nil || IsNil(o.ReleaseTitle) {
var ret string
return ret
}
return *o.ReleaseTitle
}
// GetReleaseTitleOk returns a tuple with the ReleaseTitle field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *StartRelease) GetReleaseTitleOk() (*string, bool) {
if o == nil || IsNil(o.ReleaseTitle) {
return nil, false
}
return o.ReleaseTitle, true
}
// HasReleaseTitle returns a boolean if a field has been set.
func (o *StartRelease) HasReleaseTitle() bool {
if o != nil && !IsNil(o.ReleaseTitle) {
return true
}
return false
}
// SetReleaseTitle gets a reference to the given string and assigns it to the ReleaseTitle field.
func (o *StartRelease) SetReleaseTitle(v string) {
o.ReleaseTitle = &v
}
// GetFolderId returns the FolderId field value if set, zero value otherwise.
func (o *StartRelease) GetFolderId() string {
if o == nil || IsNil(o.FolderId) {
var ret string
return ret
}
return *o.FolderId
}
// GetFolderIdOk returns a tuple with the FolderId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *StartRelease) GetFolderIdOk() (*string, bool) {
if o == nil || IsNil(o.FolderId) {
return nil, false
}
return o.FolderId, true
}
// HasFolderId returns a boolean if a field has been set.
func (o *StartRelease) HasFolderId() bool {
if o != nil && !IsNil(o.FolderId) {
return true
}
return false
}
// SetFolderId gets a reference to the given string and assigns it to the FolderId field.
func (o *StartRelease) SetFolderId(v string) {
o.FolderId = &v
}
// GetVariables returns the Variables field value if set, zero value otherwise.
func (o *StartRelease) GetVariables() map[string]map[string]interface{} {
if o == nil || IsNil(o.Variables) {
var ret map[string]map[string]interface{}
return ret
}
return o.Variables
}
// GetVariablesOk returns a tuple with the Variables field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *StartRelease) GetVariablesOk() (map[string]map[string]interface{}, bool) {
if o == nil || IsNil(o.Variables) {
return map[string]map[string]interface{}{}, false
}
return o.Variables, true
}
// HasVariables returns a boolean if a field has been set.
func (o *StartRelease) HasVariables() bool {
if o != nil && !IsNil(o.Variables) {
return true
}
return false
}
// SetVariables gets a reference to the given map[string]map[string]interface{} and assigns it to the Variables field.
func (o *StartRelease) SetVariables(v map[string]map[string]interface{}) {
o.Variables = v
}
// GetReleaseVariables returns the ReleaseVariables field value if set, zero value otherwise.
func (o *StartRelease) GetReleaseVariables() map[string]string {
if o == nil || IsNil(o.ReleaseVariables) {
var ret map[string]string
return ret
}
return *o.ReleaseVariables
}
// GetReleaseVariablesOk returns a tuple with the ReleaseVariables field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *StartRelease) GetReleaseVariablesOk() (*map[string]string, bool) {
if o == nil || IsNil(o.ReleaseVariables) {
return nil, false
}
return o.ReleaseVariables, true
}
// HasReleaseVariables returns a boolean if a field has been set.
func (o *StartRelease) HasReleaseVariables() bool {
if o != nil && !IsNil(o.ReleaseVariables) {
return true
}
return false
}
// SetReleaseVariables gets a reference to the given map[string]string and assigns it to the ReleaseVariables field.
func (o *StartRelease) SetReleaseVariables(v map[string]string) {
o.ReleaseVariables = &v
}
// GetReleasePasswordVariables returns the ReleasePasswordVariables field value if set, zero value otherwise.
func (o *StartRelease) GetReleasePasswordVariables() map[string]string {
if o == nil || IsNil(o.ReleasePasswordVariables) {
var ret map[string]string
return ret
}
return *o.ReleasePasswordVariables
}
// GetReleasePasswordVariablesOk returns a tuple with the ReleasePasswordVariables field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *StartRelease) GetReleasePasswordVariablesOk() (*map[string]string, bool) {
if o == nil || IsNil(o.ReleasePasswordVariables) {
return nil, false
}
return o.ReleasePasswordVariables, true
}
// HasReleasePasswordVariables returns a boolean if a field has been set.
func (o *StartRelease) HasReleasePasswordVariables() bool {
if o != nil && !IsNil(o.ReleasePasswordVariables) {
return true
}
return false
}
// SetReleasePasswordVariables gets a reference to the given map[string]string and assigns it to the ReleasePasswordVariables field.
func (o *StartRelease) SetReleasePasswordVariables(v map[string]string) {
o.ReleasePasswordVariables = &v
}
// GetScheduledStartDate returns the ScheduledStartDate field value if set, zero value otherwise.
func (o *StartRelease) GetScheduledStartDate() time.Time {
if o == nil || IsNil(o.ScheduledStartDate) {
var ret time.Time
return ret
}
return *o.ScheduledStartDate
}
// GetScheduledStartDateOk returns a tuple with the ScheduledStartDate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *StartRelease) GetScheduledStartDateOk() (*time.Time, bool) {
if o == nil || IsNil(o.ScheduledStartDate) {
return nil, false
}
return o.ScheduledStartDate, true
}
// HasScheduledStartDate returns a boolean if a field has been set.
func (o *StartRelease) HasScheduledStartDate() bool {
if o != nil && !IsNil(o.ScheduledStartDate) {
return true
}
return false
}
// SetScheduledStartDate gets a reference to the given time.Time and assigns it to the ScheduledStartDate field.
func (o *StartRelease) SetScheduledStartDate(v time.Time) {
o.ScheduledStartDate = &v
}
// GetAutoStart returns the AutoStart field value if set, zero value otherwise.
func (o *StartRelease) GetAutoStart() bool {
if o == nil || IsNil(o.AutoStart) {
var ret bool
return ret
}
return *o.AutoStart
}
// GetAutoStartOk returns a tuple with the AutoStart field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *StartRelease) GetAutoStartOk() (*bool, bool) {
if o == nil || IsNil(o.AutoStart) {
return nil, false
}
return o.AutoStart, true
}
// HasAutoStart returns a boolean if a field has been set.
func (o *StartRelease) HasAutoStart() bool {
if o != nil && !IsNil(o.AutoStart) {
return true
}
return false
}
// SetAutoStart gets a reference to the given bool and assigns it to the AutoStart field.
func (o *StartRelease) SetAutoStart(v bool) {
o.AutoStart = &v
}
// GetStartedFromTaskId returns the StartedFromTaskId field value if set, zero value otherwise.
func (o *StartRelease) GetStartedFromTaskId() string {
if o == nil || IsNil(o.StartedFromTaskId) {
var ret string
return ret
}
return *o.StartedFromTaskId
}
// GetStartedFromTaskIdOk returns a tuple with the StartedFromTaskId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *StartRelease) GetStartedFromTaskIdOk() (*string, bool) {
if o == nil || IsNil(o.StartedFromTaskId) {
return nil, false
}
return o.StartedFromTaskId, true
}
// HasStartedFromTaskId returns a boolean if a field has been set.
func (o *StartRelease) HasStartedFromTaskId() bool {
if o != nil && !IsNil(o.StartedFromTaskId) {
return true
}
return false
}
// SetStartedFromTaskId gets a reference to the given string and assigns it to the StartedFromTaskId field.
func (o *StartRelease) SetStartedFromTaskId(v string) {
o.StartedFromTaskId = &v
}
// GetReleaseOwner returns the ReleaseOwner field value if set, zero value otherwise.
func (o *StartRelease) GetReleaseOwner() string {
if o == nil || IsNil(o.ReleaseOwner) {
var ret string
return ret
}
return *o.ReleaseOwner
}
// GetReleaseOwnerOk returns a tuple with the ReleaseOwner field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *StartRelease) GetReleaseOwnerOk() (*string, bool) {
if o == nil || IsNil(o.ReleaseOwner) {
return nil, false
}
return o.ReleaseOwner, true
}
// HasReleaseOwner returns a boolean if a field has been set.
func (o *StartRelease) HasReleaseOwner() bool {
if o != nil && !IsNil(o.ReleaseOwner) {
return true
}
return false
}
// SetReleaseOwner gets a reference to the given string and assigns it to the ReleaseOwner field.
func (o *StartRelease) SetReleaseOwner(v string) {
o.ReleaseOwner = &v
}
func (o StartRelease) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o StartRelease) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.ReleaseTitle) {
toSerialize["releaseTitle"] = o.ReleaseTitle
}
if !IsNil(o.FolderId) {
toSerialize["folderId"] = o.FolderId
}
if !IsNil(o.Variables) {
toSerialize["variables"] = o.Variables
}
if !IsNil(o.ReleaseVariables) {
toSerialize["releaseVariables"] = o.ReleaseVariables
}
if !IsNil(o.ReleasePasswordVariables) {
toSerialize["releasePasswordVariables"] = o.ReleasePasswordVariables
}
if !IsNil(o.ScheduledStartDate) {
toSerialize["scheduledStartDate"] = o.ScheduledStartDate
}
if !IsNil(o.AutoStart) {
toSerialize["autoStart"] = o.AutoStart
}
if !IsNil(o.StartedFromTaskId) {
toSerialize["startedFromTaskId"] = o.StartedFromTaskId
}
if !IsNil(o.ReleaseOwner) {
toSerialize["releaseOwner"] = o.ReleaseOwner
}
return toSerialize, nil
}
type NullableStartRelease struct {
value *StartRelease
isSet bool
}
func (v NullableStartRelease) Get() *StartRelease {
return v.value
}
func (v *NullableStartRelease) Set(val *StartRelease) {
v.value = val
v.isSet = true
}
func (v NullableStartRelease) IsSet() bool {
return v.isSet
}
func (v *NullableStartRelease) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableStartRelease(val *StartRelease) *NullableStartRelease {
return &NullableStartRelease{value: val, isSet: true}
}
func (v NullableStartRelease) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableStartRelease) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}