-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_keyfactor_api_models_orchestrators_agent_response.go
694 lines (590 loc) · 25 KB
/
model_keyfactor_api_models_orchestrators_agent_response.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
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
/*
Copyright 2023 Keyfactor
Licensed under the Apache License, Version 2.0 (the License); you may
not use this file except in compliance with the License. You may obtain a
copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless
required by applicable law or agreed to in writing, software distributed
under the License is distributed on an AS IS BASIS, WITHOUT WARRANTIES
OR CONDITIONS OF ANY KIND, either express or implied. See the License for
the specific language governing permissions and limitations under the
License.
Keyfactor-v1
This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance.
API version: v1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package command
import (
"encoding/json"
"time"
)
// checks if the KeyfactorApiModelsOrchestratorsAgentResponse type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &KeyfactorApiModelsOrchestratorsAgentResponse{}
// KeyfactorApiModelsOrchestratorsAgentResponse struct for KeyfactorApiModelsOrchestratorsAgentResponse
type KeyfactorApiModelsOrchestratorsAgentResponse struct {
// A string indicating the GUID of the orchestrator.
AgentId *string `json:"AgentId,omitempty"`
// A string indicating the client machine on which the orchestrator is installed.
ClientMachine *string `json:"ClientMachine,omitempty"`
// A string indicating the Active Directory user or service account the orchestrator is using to connect to Keyfactor Command.
Username *string `json:"Username,omitempty"`
// An integer indicating the platform for the orchestrator. - 0 = Unknown - 1 = Keyfactor Windows Orchestrator - 2 = Keyfactor Java Agent - 3 = Keyfactor Mac Auto-Enrollment Agent - 4 = Keyfactor Android Agent - 5 = Keyfactor Native Agent - 6 = Keyfactor Bash Orchestrator - 7 = Keyfactor Universal Orchestrator
AgentPlatform *int32 `json:"AgentPlatform,omitempty"`
// A string indicating the version of the orchestrator.
Version *string `json:"Version,omitempty"`
// An integer indicating the orchestrator status: - 1 = New - 2 = Approved - 3 = Disapproved
Status *int32 `json:"Status,omitempty"`
// The time, in UTC, at which the orchestrator last contacted Keyfactor Command.
LastSeen *time.Time `json:"LastSeen,omitempty"`
// An array of strings indicating the capabilities reported by the orchestrator. These may be built-in or custom capabilities.
Capabilities []string `json:"Capabilities,omitempty"`
// A string indicating the name of the blueprint associated with the orchestrator.
Blueprint *string `json:"Blueprint,omitempty"`
// A string indicating the thumbprint of the certificate that Keyfactor Command is expecting the orchestrator to use for client certificate authentication.
Thumbprint *string `json:"Thumbprint,omitempty"`
// A string indicating the thumbprint of the certificate previously used by the orchestrator for client certificate authentication before a certificate renewal operation took place (rotating the current thumbprint into the legacy thumbprint). The legacy thumbprint is cleared once the orchestrator successfully registers with the new thumbprint.
LegacyThumbprint *string `json:"LegacyThumbprint,omitempty"`
// An integer indicating the value of the orchestrator certificate reenrollment request or require status. Possible values: - 0 = None—Unset the value so that the orchestrator will not request a new client authentication certificate (based on this value). - 1 = Requested—The orchestrator will request a new client authentication certificate when it next registers for a session. Orchestrator activity will be allowed to continue as usual. - 2 = Required—The orchestrator will request a new client authentication certificate when it next registers for a session. A new session will not be granted and orchestrator activity will not be allowed to continue until the orchestrator acquires a new certificate.
AuthCertificateReenrollment *string `json:"AuthCertificateReenrollment,omitempty"`
// A string indicating the thumbprint of the certificate that the orchestrator most recently used for client certificate authentication. In most cases, this will match the Thumbprint.
LastThumbprintUsed *string `json:"LastThumbprintUsed,omitempty"`
// An integer indicating the last error code, if any, reported from the orchestrator when trying to register a session. This code is cleared on successful session registration.
LastErrorCode *int64 `json:"LastErrorCode,omitempty"`
// A string indicating the last error message, if any, reported from the orchestrator when trying to register a session. This message is cleared on successful session registration.
LastErrorMessage *string `json:"LastErrorMessage,omitempty"`
AdditionalProperties map[string]interface{}
}
type _KeyfactorApiModelsOrchestratorsAgentResponse KeyfactorApiModelsOrchestratorsAgentResponse
// NewKeyfactorApiModelsOrchestratorsAgentResponse instantiates a new KeyfactorApiModelsOrchestratorsAgentResponse 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 NewKeyfactorApiModelsOrchestratorsAgentResponse() *KeyfactorApiModelsOrchestratorsAgentResponse {
this := KeyfactorApiModelsOrchestratorsAgentResponse{}
return &this
}
// NewKeyfactorApiModelsOrchestratorsAgentResponseWithDefaults instantiates a new KeyfactorApiModelsOrchestratorsAgentResponse 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 NewKeyfactorApiModelsOrchestratorsAgentResponseWithDefaults() *KeyfactorApiModelsOrchestratorsAgentResponse {
this := KeyfactorApiModelsOrchestratorsAgentResponse{}
return &this
}
// GetAgentId returns the AgentId field value if set, zero value otherwise.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetAgentId() string {
if o == nil || isNil(o.AgentId) {
var ret string
return ret
}
return *o.AgentId
}
// GetAgentIdOk returns a tuple with the AgentId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetAgentIdOk() (*string, bool) {
if o == nil || isNil(o.AgentId) {
return nil, false
}
return o.AgentId, true
}
// HasAgentId returns a boolean if a field has been set.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasAgentId() bool {
if o != nil && !isNil(o.AgentId) {
return true
}
return false
}
// SetAgentId gets a reference to the given string and assigns it to the AgentId field.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetAgentId(v string) {
o.AgentId = &v
}
// GetClientMachine returns the ClientMachine field value if set, zero value otherwise.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetClientMachine() string {
if o == nil || isNil(o.ClientMachine) {
var ret string
return ret
}
return *o.ClientMachine
}
// GetClientMachineOk returns a tuple with the ClientMachine field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetClientMachineOk() (*string, bool) {
if o == nil || isNil(o.ClientMachine) {
return nil, false
}
return o.ClientMachine, true
}
// HasClientMachine returns a boolean if a field has been set.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasClientMachine() bool {
if o != nil && !isNil(o.ClientMachine) {
return true
}
return false
}
// SetClientMachine gets a reference to the given string and assigns it to the ClientMachine field.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetClientMachine(v string) {
o.ClientMachine = &v
}
// GetUsername returns the Username field value if set, zero value otherwise.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetUsername() string {
if o == nil || isNil(o.Username) {
var ret string
return ret
}
return *o.Username
}
// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetUsernameOk() (*string, bool) {
if o == nil || isNil(o.Username) {
return nil, false
}
return o.Username, true
}
// HasUsername returns a boolean if a field has been set.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasUsername() bool {
if o != nil && !isNil(o.Username) {
return true
}
return false
}
// SetUsername gets a reference to the given string and assigns it to the Username field.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetUsername(v string) {
o.Username = &v
}
// GetAgentPlatform returns the AgentPlatform field value if set, zero value otherwise.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetAgentPlatform() int32 {
if o == nil || isNil(o.AgentPlatform) {
var ret int32
return ret
}
return *o.AgentPlatform
}
// GetAgentPlatformOk returns a tuple with the AgentPlatform field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetAgentPlatformOk() (*int32, bool) {
if o == nil || isNil(o.AgentPlatform) {
return nil, false
}
return o.AgentPlatform, true
}
// HasAgentPlatform returns a boolean if a field has been set.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasAgentPlatform() bool {
if o != nil && !isNil(o.AgentPlatform) {
return true
}
return false
}
// SetAgentPlatform gets a reference to the given int32 and assigns it to the AgentPlatform field.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetAgentPlatform(v int32) {
o.AgentPlatform = &v
}
// GetVersion returns the Version field value if set, zero value otherwise.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetVersion() string {
if o == nil || isNil(o.Version) {
var ret string
return ret
}
return *o.Version
}
// GetVersionOk returns a tuple with the Version field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetVersionOk() (*string, bool) {
if o == nil || isNil(o.Version) {
return nil, false
}
return o.Version, true
}
// HasVersion returns a boolean if a field has been set.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasVersion() bool {
if o != nil && !isNil(o.Version) {
return true
}
return false
}
// SetVersion gets a reference to the given string and assigns it to the Version field.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetVersion(v string) {
o.Version = &v
}
// GetStatus returns the Status field value if set, zero value otherwise.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetStatus() int32 {
if o == nil || isNil(o.Status) {
var ret int32
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 *KeyfactorApiModelsOrchestratorsAgentResponse) GetStatusOk() (*int32, 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 *KeyfactorApiModelsOrchestratorsAgentResponse) HasStatus() bool {
if o != nil && !isNil(o.Status) {
return true
}
return false
}
// SetStatus gets a reference to the given int32 and assigns it to the Status field.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetStatus(v int32) {
o.Status = &v
}
// GetLastSeen returns the LastSeen field value if set, zero value otherwise.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetLastSeen() time.Time {
if o == nil || isNil(o.LastSeen) {
var ret time.Time
return ret
}
return *o.LastSeen
}
// GetLastSeenOk returns a tuple with the LastSeen field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetLastSeenOk() (*time.Time, bool) {
if o == nil || isNil(o.LastSeen) {
return nil, false
}
return o.LastSeen, true
}
// HasLastSeen returns a boolean if a field has been set.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasLastSeen() bool {
if o != nil && !isNil(o.LastSeen) {
return true
}
return false
}
// SetLastSeen gets a reference to the given time.Time and assigns it to the LastSeen field.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetLastSeen(v time.Time) {
o.LastSeen = &v
}
// GetCapabilities returns the Capabilities field value if set, zero value otherwise.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetCapabilities() []string {
if o == nil || isNil(o.Capabilities) {
var ret []string
return ret
}
return o.Capabilities
}
// GetCapabilitiesOk returns a tuple with the Capabilities field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetCapabilitiesOk() ([]string, bool) {
if o == nil || isNil(o.Capabilities) {
return nil, false
}
return o.Capabilities, true
}
// HasCapabilities returns a boolean if a field has been set.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasCapabilities() bool {
if o != nil && !isNil(o.Capabilities) {
return true
}
return false
}
// SetCapabilities gets a reference to the given []string and assigns it to the Capabilities field.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetCapabilities(v []string) {
o.Capabilities = v
}
// GetBlueprint returns the Blueprint field value if set, zero value otherwise.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetBlueprint() string {
if o == nil || isNil(o.Blueprint) {
var ret string
return ret
}
return *o.Blueprint
}
// GetBlueprintOk returns a tuple with the Blueprint field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetBlueprintOk() (*string, bool) {
if o == nil || isNil(o.Blueprint) {
return nil, false
}
return o.Blueprint, true
}
// HasBlueprint returns a boolean if a field has been set.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasBlueprint() bool {
if o != nil && !isNil(o.Blueprint) {
return true
}
return false
}
// SetBlueprint gets a reference to the given string and assigns it to the Blueprint field.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetBlueprint(v string) {
o.Blueprint = &v
}
// GetThumbprint returns the Thumbprint field value if set, zero value otherwise.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetThumbprint() string {
if o == nil || isNil(o.Thumbprint) {
var ret string
return ret
}
return *o.Thumbprint
}
// GetThumbprintOk returns a tuple with the Thumbprint field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetThumbprintOk() (*string, bool) {
if o == nil || isNil(o.Thumbprint) {
return nil, false
}
return o.Thumbprint, true
}
// HasThumbprint returns a boolean if a field has been set.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasThumbprint() bool {
if o != nil && !isNil(o.Thumbprint) {
return true
}
return false
}
// SetThumbprint gets a reference to the given string and assigns it to the Thumbprint field.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetThumbprint(v string) {
o.Thumbprint = &v
}
// GetLegacyThumbprint returns the LegacyThumbprint field value if set, zero value otherwise.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetLegacyThumbprint() string {
if o == nil || isNil(o.LegacyThumbprint) {
var ret string
return ret
}
return *o.LegacyThumbprint
}
// GetLegacyThumbprintOk returns a tuple with the LegacyThumbprint field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetLegacyThumbprintOk() (*string, bool) {
if o == nil || isNil(o.LegacyThumbprint) {
return nil, false
}
return o.LegacyThumbprint, true
}
// HasLegacyThumbprint returns a boolean if a field has been set.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasLegacyThumbprint() bool {
if o != nil && !isNil(o.LegacyThumbprint) {
return true
}
return false
}
// SetLegacyThumbprint gets a reference to the given string and assigns it to the LegacyThumbprint field.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetLegacyThumbprint(v string) {
o.LegacyThumbprint = &v
}
// GetAuthCertificateReenrollment returns the AuthCertificateReenrollment field value if set, zero value otherwise.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetAuthCertificateReenrollment() string {
if o == nil || isNil(o.AuthCertificateReenrollment) {
var ret string
return ret
}
return *o.AuthCertificateReenrollment
}
// GetAuthCertificateReenrollmentOk returns a tuple with the AuthCertificateReenrollment field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetAuthCertificateReenrollmentOk() (*string, bool) {
if o == nil || isNil(o.AuthCertificateReenrollment) {
return nil, false
}
return o.AuthCertificateReenrollment, true
}
// HasAuthCertificateReenrollment returns a boolean if a field has been set.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasAuthCertificateReenrollment() bool {
if o != nil && !isNil(o.AuthCertificateReenrollment) {
return true
}
return false
}
// SetAuthCertificateReenrollment gets a reference to the given string and assigns it to the AuthCertificateReenrollment field.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetAuthCertificateReenrollment(v string) {
o.AuthCertificateReenrollment = &v
}
// GetLastThumbprintUsed returns the LastThumbprintUsed field value if set, zero value otherwise.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetLastThumbprintUsed() string {
if o == nil || isNil(o.LastThumbprintUsed) {
var ret string
return ret
}
return *o.LastThumbprintUsed
}
// GetLastThumbprintUsedOk returns a tuple with the LastThumbprintUsed field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetLastThumbprintUsedOk() (*string, bool) {
if o == nil || isNil(o.LastThumbprintUsed) {
return nil, false
}
return o.LastThumbprintUsed, true
}
// HasLastThumbprintUsed returns a boolean if a field has been set.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasLastThumbprintUsed() bool {
if o != nil && !isNil(o.LastThumbprintUsed) {
return true
}
return false
}
// SetLastThumbprintUsed gets a reference to the given string and assigns it to the LastThumbprintUsed field.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetLastThumbprintUsed(v string) {
o.LastThumbprintUsed = &v
}
// GetLastErrorCode returns the LastErrorCode field value if set, zero value otherwise.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetLastErrorCode() int64 {
if o == nil || isNil(o.LastErrorCode) {
var ret int64
return ret
}
return *o.LastErrorCode
}
// GetLastErrorCodeOk returns a tuple with the LastErrorCode field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetLastErrorCodeOk() (*int64, bool) {
if o == nil || isNil(o.LastErrorCode) {
return nil, false
}
return o.LastErrorCode, true
}
// HasLastErrorCode returns a boolean if a field has been set.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasLastErrorCode() bool {
if o != nil && !isNil(o.LastErrorCode) {
return true
}
return false
}
// SetLastErrorCode gets a reference to the given int64 and assigns it to the LastErrorCode field.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetLastErrorCode(v int64) {
o.LastErrorCode = &v
}
// GetLastErrorMessage returns the LastErrorMessage field value if set, zero value otherwise.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetLastErrorMessage() string {
if o == nil || isNil(o.LastErrorMessage) {
var ret string
return ret
}
return *o.LastErrorMessage
}
// GetLastErrorMessageOk returns a tuple with the LastErrorMessage field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) GetLastErrorMessageOk() (*string, bool) {
if o == nil || isNil(o.LastErrorMessage) {
return nil, false
}
return o.LastErrorMessage, true
}
// HasLastErrorMessage returns a boolean if a field has been set.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) HasLastErrorMessage() bool {
if o != nil && !isNil(o.LastErrorMessage) {
return true
}
return false
}
// SetLastErrorMessage gets a reference to the given string and assigns it to the LastErrorMessage field.
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) SetLastErrorMessage(v string) {
o.LastErrorMessage = &v
}
func (o KeyfactorApiModelsOrchestratorsAgentResponse) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o KeyfactorApiModelsOrchestratorsAgentResponse) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !isNil(o.AgentId) {
toSerialize["AgentId"] = o.AgentId
}
if !isNil(o.ClientMachine) {
toSerialize["ClientMachine"] = o.ClientMachine
}
if !isNil(o.Username) {
toSerialize["Username"] = o.Username
}
if !isNil(o.AgentPlatform) {
toSerialize["AgentPlatform"] = o.AgentPlatform
}
if !isNil(o.Version) {
toSerialize["Version"] = o.Version
}
if !isNil(o.Status) {
toSerialize["Status"] = o.Status
}
if !isNil(o.LastSeen) {
toSerialize["LastSeen"] = o.LastSeen
}
if !isNil(o.Capabilities) {
toSerialize["Capabilities"] = o.Capabilities
}
if !isNil(o.Blueprint) {
toSerialize["Blueprint"] = o.Blueprint
}
if !isNil(o.Thumbprint) {
toSerialize["Thumbprint"] = o.Thumbprint
}
if !isNil(o.LegacyThumbprint) {
toSerialize["LegacyThumbprint"] = o.LegacyThumbprint
}
if !isNil(o.AuthCertificateReenrollment) {
toSerialize["AuthCertificateReenrollment"] = o.AuthCertificateReenrollment
}
if !isNil(o.LastThumbprintUsed) {
toSerialize["LastThumbprintUsed"] = o.LastThumbprintUsed
}
if !isNil(o.LastErrorCode) {
toSerialize["LastErrorCode"] = o.LastErrorCode
}
if !isNil(o.LastErrorMessage) {
toSerialize["LastErrorMessage"] = o.LastErrorMessage
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return toSerialize, nil
}
func (o *KeyfactorApiModelsOrchestratorsAgentResponse) UnmarshalJSON(bytes []byte) (err error) {
varKeyfactorApiModelsOrchestratorsAgentResponse := _KeyfactorApiModelsOrchestratorsAgentResponse{}
if err = json.Unmarshal(bytes, &varKeyfactorApiModelsOrchestratorsAgentResponse); err == nil {
*o = KeyfactorApiModelsOrchestratorsAgentResponse(varKeyfactorApiModelsOrchestratorsAgentResponse)
}
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
delete(additionalProperties, "AgentId")
delete(additionalProperties, "ClientMachine")
delete(additionalProperties, "Username")
delete(additionalProperties, "AgentPlatform")
delete(additionalProperties, "Version")
delete(additionalProperties, "Status")
delete(additionalProperties, "LastSeen")
delete(additionalProperties, "Capabilities")
delete(additionalProperties, "Blueprint")
delete(additionalProperties, "Thumbprint")
delete(additionalProperties, "LegacyThumbprint")
delete(additionalProperties, "AuthCertificateReenrollment")
delete(additionalProperties, "LastThumbprintUsed")
delete(additionalProperties, "LastErrorCode")
delete(additionalProperties, "LastErrorMessage")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullableKeyfactorApiModelsOrchestratorsAgentResponse struct {
value *KeyfactorApiModelsOrchestratorsAgentResponse
isSet bool
}
func (v NullableKeyfactorApiModelsOrchestratorsAgentResponse) Get() *KeyfactorApiModelsOrchestratorsAgentResponse {
return v.value
}
func (v *NullableKeyfactorApiModelsOrchestratorsAgentResponse) Set(val *KeyfactorApiModelsOrchestratorsAgentResponse) {
v.value = val
v.isSet = true
}
func (v NullableKeyfactorApiModelsOrchestratorsAgentResponse) IsSet() bool {
return v.isSet
}
func (v *NullableKeyfactorApiModelsOrchestratorsAgentResponse) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableKeyfactorApiModelsOrchestratorsAgentResponse(val *KeyfactorApiModelsOrchestratorsAgentResponse) *NullableKeyfactorApiModelsOrchestratorsAgentResponse {
return &NullableKeyfactorApiModelsOrchestratorsAgentResponse{value: val, isSet: true}
}
func (v NullableKeyfactorApiModelsOrchestratorsAgentResponse) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableKeyfactorApiModelsOrchestratorsAgentResponse) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}