-
Notifications
You must be signed in to change notification settings - Fork 1
/
model_machine_test_response_model.go
397 lines (336 loc) · 12.3 KB
/
model_machine_test_response_model.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
/*
Citrix Virtual Apps and Desktops Rest API for Developer Portal
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
API version: devportal-onprem-ga
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package citrixorchestration
import (
"encoding/json"
)
// checks if the MachineTestResponseModel type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &MachineTestResponseModel{}
// MachineTestResponseModel struct for MachineTestResponseModel
type MachineTestResponseModel struct {
Machine *RefResponseModel `json:"Machine,omitempty"`
Status *CloudHealthCheckStatus `json:"Status,omitempty"`
// CommandResponse.
CommandResponse NullableString `json:"CommandResponse,omitempty"`
// ErrorMessage.
ErrorMessage NullableString `json:"ErrorMessage,omitempty"`
// CommandName.
CommandName NullableString `json:"CommandName,omitempty"`
// CategoryName.
CategoryName NullableString `json:"CategoryName,omitempty"`
// The owner of the test
CreatedBy NullableString `json:"CreatedBy,omitempty"`
}
// NewMachineTestResponseModel instantiates a new MachineTestResponseModel 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 NewMachineTestResponseModel() *MachineTestResponseModel {
this := MachineTestResponseModel{}
return &this
}
// NewMachineTestResponseModelWithDefaults instantiates a new MachineTestResponseModel 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 NewMachineTestResponseModelWithDefaults() *MachineTestResponseModel {
this := MachineTestResponseModel{}
return &this
}
// GetMachine returns the Machine field value if set, zero value otherwise.
func (o *MachineTestResponseModel) GetMachine() RefResponseModel {
if o == nil || IsNil(o.Machine) {
var ret RefResponseModel
return ret
}
return *o.Machine
}
// GetMachineOk returns a tuple with the Machine field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MachineTestResponseModel) GetMachineOk() (*RefResponseModel, bool) {
if o == nil || IsNil(o.Machine) {
return nil, false
}
return o.Machine, true
}
// HasMachine returns a boolean if a field has been set.
func (o *MachineTestResponseModel) HasMachine() bool {
if o != nil && !IsNil(o.Machine) {
return true
}
return false
}
// SetMachine gets a reference to the given RefResponseModel and assigns it to the Machine field.
func (o *MachineTestResponseModel) SetMachine(v RefResponseModel) {
o.Machine = &v
}
// GetStatus returns the Status field value if set, zero value otherwise.
func (o *MachineTestResponseModel) GetStatus() CloudHealthCheckStatus {
if o == nil || IsNil(o.Status) {
var ret CloudHealthCheckStatus
return ret
}
return *o.Status
}
// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MachineTestResponseModel) GetStatusOk() (*CloudHealthCheckStatus, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
return o.Status, true
}
// HasStatus returns a boolean if a field has been set.
func (o *MachineTestResponseModel) HasStatus() bool {
if o != nil && !IsNil(o.Status) {
return true
}
return false
}
// SetStatus gets a reference to the given CloudHealthCheckStatus and assigns it to the Status field.
func (o *MachineTestResponseModel) SetStatus(v CloudHealthCheckStatus) {
o.Status = &v
}
// GetCommandResponse returns the CommandResponse field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *MachineTestResponseModel) GetCommandResponse() string {
if o == nil || IsNil(o.CommandResponse.Get()) {
var ret string
return ret
}
return *o.CommandResponse.Get()
}
// GetCommandResponseOk returns a tuple with the CommandResponse field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *MachineTestResponseModel) GetCommandResponseOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.CommandResponse.Get(), o.CommandResponse.IsSet()
}
// HasCommandResponse returns a boolean if a field has been set.
func (o *MachineTestResponseModel) HasCommandResponse() bool {
if o != nil && o.CommandResponse.IsSet() {
return true
}
return false
}
// SetCommandResponse gets a reference to the given NullableString and assigns it to the CommandResponse field.
func (o *MachineTestResponseModel) SetCommandResponse(v string) {
o.CommandResponse.Set(&v)
}
// SetCommandResponseNil sets the value for CommandResponse to be an explicit nil
func (o *MachineTestResponseModel) SetCommandResponseNil() {
o.CommandResponse.Set(nil)
}
// UnsetCommandResponse ensures that no value is present for CommandResponse, not even an explicit nil
func (o *MachineTestResponseModel) UnsetCommandResponse() {
o.CommandResponse.Unset()
}
// GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *MachineTestResponseModel) GetErrorMessage() string {
if o == nil || IsNil(o.ErrorMessage.Get()) {
var ret string
return ret
}
return *o.ErrorMessage.Get()
}
// GetErrorMessageOk returns a tuple with the ErrorMessage field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *MachineTestResponseModel) GetErrorMessageOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ErrorMessage.Get(), o.ErrorMessage.IsSet()
}
// HasErrorMessage returns a boolean if a field has been set.
func (o *MachineTestResponseModel) HasErrorMessage() bool {
if o != nil && o.ErrorMessage.IsSet() {
return true
}
return false
}
// SetErrorMessage gets a reference to the given NullableString and assigns it to the ErrorMessage field.
func (o *MachineTestResponseModel) SetErrorMessage(v string) {
o.ErrorMessage.Set(&v)
}
// SetErrorMessageNil sets the value for ErrorMessage to be an explicit nil
func (o *MachineTestResponseModel) SetErrorMessageNil() {
o.ErrorMessage.Set(nil)
}
// UnsetErrorMessage ensures that no value is present for ErrorMessage, not even an explicit nil
func (o *MachineTestResponseModel) UnsetErrorMessage() {
o.ErrorMessage.Unset()
}
// GetCommandName returns the CommandName field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *MachineTestResponseModel) GetCommandName() string {
if o == nil || IsNil(o.CommandName.Get()) {
var ret string
return ret
}
return *o.CommandName.Get()
}
// GetCommandNameOk returns a tuple with the CommandName field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *MachineTestResponseModel) GetCommandNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.CommandName.Get(), o.CommandName.IsSet()
}
// HasCommandName returns a boolean if a field has been set.
func (o *MachineTestResponseModel) HasCommandName() bool {
if o != nil && o.CommandName.IsSet() {
return true
}
return false
}
// SetCommandName gets a reference to the given NullableString and assigns it to the CommandName field.
func (o *MachineTestResponseModel) SetCommandName(v string) {
o.CommandName.Set(&v)
}
// SetCommandNameNil sets the value for CommandName to be an explicit nil
func (o *MachineTestResponseModel) SetCommandNameNil() {
o.CommandName.Set(nil)
}
// UnsetCommandName ensures that no value is present for CommandName, not even an explicit nil
func (o *MachineTestResponseModel) UnsetCommandName() {
o.CommandName.Unset()
}
// GetCategoryName returns the CategoryName field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *MachineTestResponseModel) GetCategoryName() string {
if o == nil || IsNil(o.CategoryName.Get()) {
var ret string
return ret
}
return *o.CategoryName.Get()
}
// GetCategoryNameOk returns a tuple with the CategoryName field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *MachineTestResponseModel) GetCategoryNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.CategoryName.Get(), o.CategoryName.IsSet()
}
// HasCategoryName returns a boolean if a field has been set.
func (o *MachineTestResponseModel) HasCategoryName() bool {
if o != nil && o.CategoryName.IsSet() {
return true
}
return false
}
// SetCategoryName gets a reference to the given NullableString and assigns it to the CategoryName field.
func (o *MachineTestResponseModel) SetCategoryName(v string) {
o.CategoryName.Set(&v)
}
// SetCategoryNameNil sets the value for CategoryName to be an explicit nil
func (o *MachineTestResponseModel) SetCategoryNameNil() {
o.CategoryName.Set(nil)
}
// UnsetCategoryName ensures that no value is present for CategoryName, not even an explicit nil
func (o *MachineTestResponseModel) UnsetCategoryName() {
o.CategoryName.Unset()
}
// GetCreatedBy returns the CreatedBy field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *MachineTestResponseModel) GetCreatedBy() string {
if o == nil || IsNil(o.CreatedBy.Get()) {
var ret string
return ret
}
return *o.CreatedBy.Get()
}
// GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *MachineTestResponseModel) GetCreatedByOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.CreatedBy.Get(), o.CreatedBy.IsSet()
}
// HasCreatedBy returns a boolean if a field has been set.
func (o *MachineTestResponseModel) HasCreatedBy() bool {
if o != nil && o.CreatedBy.IsSet() {
return true
}
return false
}
// SetCreatedBy gets a reference to the given NullableString and assigns it to the CreatedBy field.
func (o *MachineTestResponseModel) SetCreatedBy(v string) {
o.CreatedBy.Set(&v)
}
// SetCreatedByNil sets the value for CreatedBy to be an explicit nil
func (o *MachineTestResponseModel) SetCreatedByNil() {
o.CreatedBy.Set(nil)
}
// UnsetCreatedBy ensures that no value is present for CreatedBy, not even an explicit nil
func (o *MachineTestResponseModel) UnsetCreatedBy() {
o.CreatedBy.Unset()
}
func (o MachineTestResponseModel) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o MachineTestResponseModel) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Machine) {
toSerialize["Machine"] = o.Machine
}
if !IsNil(o.Status) {
toSerialize["Status"] = o.Status
}
if o.CommandResponse.IsSet() {
toSerialize["CommandResponse"] = o.CommandResponse.Get()
}
if o.ErrorMessage.IsSet() {
toSerialize["ErrorMessage"] = o.ErrorMessage.Get()
}
if o.CommandName.IsSet() {
toSerialize["CommandName"] = o.CommandName.Get()
}
if o.CategoryName.IsSet() {
toSerialize["CategoryName"] = o.CategoryName.Get()
}
if o.CreatedBy.IsSet() {
toSerialize["CreatedBy"] = o.CreatedBy.Get()
}
return toSerialize, nil
}
type NullableMachineTestResponseModel struct {
value *MachineTestResponseModel
isSet bool
}
func (v NullableMachineTestResponseModel) Get() *MachineTestResponseModel {
return v.value
}
func (v *NullableMachineTestResponseModel) Set(val *MachineTestResponseModel) {
v.value = val
v.isSet = true
}
func (v NullableMachineTestResponseModel) IsSet() bool {
return v.isSet
}
func (v *NullableMachineTestResponseModel) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableMachineTestResponseModel(val *MachineTestResponseModel) *NullableMachineTestResponseModel {
return &NullableMachineTestResponseModel{value: val, isSet: true}
}
func (v NullableMachineTestResponseModel) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableMachineTestResponseModel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}