-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmodel_managed_cluster.go
1138 lines (973 loc) · 32.4 KB
/
model_managed_cluster.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
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
Identity Security Cloud Beta API
Use these APIs to interact with the Identity Security Cloud platform to achieve repeatable, automated processes with greater scalability. These APIs are in beta and are subject to change. We encourage you to join the SailPoint Developer Community forum at https://developer.sailpoint.com/discuss to connect with other developers using our APIs.
API version: 3.1.0-beta
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package api_beta
import (
"encoding/json"
"fmt"
)
// checks if the ManagedCluster type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ManagedCluster{}
// ManagedCluster Managed Cluster
type ManagedCluster struct {
// ManagedCluster ID
Id string `json:"id"`
// ManagedCluster name
Name *string `json:"name,omitempty"`
// ManagedCluster pod
Pod *string `json:"pod,omitempty"`
// ManagedCluster org
Org *string `json:"org,omitempty"`
Type *ManagedClusterTypes `json:"type,omitempty"`
// ManagedProcess configuration map
Configuration *map[string]string `json:"configuration,omitempty"`
KeyPair *ManagedClusterKeyPair `json:"keyPair,omitempty"`
Attributes *ManagedClusterAttributes `json:"attributes,omitempty"`
// ManagedCluster description
Description *string `json:"description,omitempty"`
Redis *ManagedClusterRedis `json:"redis,omitempty"`
ClientType NullableManagedClientType `json:"clientType"`
// CCG version used by the ManagedCluster
CcgVersion string `json:"ccgVersion"`
// boolean flag indiacting whether or not the cluster configuration is pinned
PinnedConfig *bool `json:"pinnedConfig,omitempty"`
LogConfiguration NullableClientLogConfiguration `json:"logConfiguration,omitempty"`
// Whether or not the cluster is operational or not
Operational *bool `json:"operational,omitempty"`
// Cluster status
Status *string `json:"status,omitempty"`
// Public key certificate
PublicKeyCertificate NullableString `json:"publicKeyCertificate,omitempty"`
// Public key thumbprint
PublicKeyThumbprint NullableString `json:"publicKeyThumbprint,omitempty"`
// Public key
PublicKey NullableString `json:"publicKey,omitempty"`
// Key describing any immediate cluster alerts
AlertKey *string `json:"alertKey,omitempty"`
// List of clients in a cluster
ClientIds []string `json:"clientIds,omitempty"`
// Number of services bound to a cluster
ServiceCount *int32 `json:"serviceCount,omitempty"`
// CC ID only used in calling CC, will be removed without notice when Migration to CEGS is finished
CcId *string `json:"ccId,omitempty"`
// The date/time this cluster was created
CreatedAt NullableTime `json:"createdAt,omitempty"`
// The date/time this cluster was last updated
UpdatedAt NullableTime `json:"updatedAt,omitempty"`
AdditionalProperties map[string]interface{}
}
type _ManagedCluster ManagedCluster
// NewManagedCluster instantiates a new ManagedCluster 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 NewManagedCluster(id string, clientType NullableManagedClientType, ccgVersion string) *ManagedCluster {
this := ManagedCluster{}
this.Id = id
this.ClientType = clientType
this.CcgVersion = ccgVersion
var pinnedConfig bool = false
this.PinnedConfig = &pinnedConfig
var operational bool = false
this.Operational = &operational
var serviceCount int32 = 0
this.ServiceCount = &serviceCount
var ccId string = "0"
this.CcId = &ccId
return &this
}
// NewManagedClusterWithDefaults instantiates a new ManagedCluster 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 NewManagedClusterWithDefaults() *ManagedCluster {
this := ManagedCluster{}
var pinnedConfig bool = false
this.PinnedConfig = &pinnedConfig
var operational bool = false
this.Operational = &operational
var serviceCount int32 = 0
this.ServiceCount = &serviceCount
var ccId string = "0"
this.CcId = &ccId
return &this
}
// GetId returns the Id field value
func (o *ManagedCluster) GetId() string {
if o == nil {
var ret string
return ret
}
return o.Id
}
// GetIdOk returns a tuple with the Id field value
// and a boolean to check if the value has been set.
func (o *ManagedCluster) GetIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Id, true
}
// SetId sets field value
func (o *ManagedCluster) SetId(v string) {
o.Id = v
}
// GetName returns the Name field value if set, zero value otherwise.
func (o *ManagedCluster) GetName() string {
if o == nil || IsNil(o.Name) {
var ret string
return ret
}
return *o.Name
}
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedCluster) GetNameOk() (*string, bool) {
if o == nil || IsNil(o.Name) {
return nil, false
}
return o.Name, true
}
// HasName returns a boolean if a field has been set.
func (o *ManagedCluster) HasName() bool {
if o != nil && !IsNil(o.Name) {
return true
}
return false
}
// SetName gets a reference to the given string and assigns it to the Name field.
func (o *ManagedCluster) SetName(v string) {
o.Name = &v
}
// GetPod returns the Pod field value if set, zero value otherwise.
func (o *ManagedCluster) GetPod() string {
if o == nil || IsNil(o.Pod) {
var ret string
return ret
}
return *o.Pod
}
// GetPodOk returns a tuple with the Pod field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedCluster) GetPodOk() (*string, bool) {
if o == nil || IsNil(o.Pod) {
return nil, false
}
return o.Pod, true
}
// HasPod returns a boolean if a field has been set.
func (o *ManagedCluster) HasPod() bool {
if o != nil && !IsNil(o.Pod) {
return true
}
return false
}
// SetPod gets a reference to the given string and assigns it to the Pod field.
func (o *ManagedCluster) SetPod(v string) {
o.Pod = &v
}
// GetOrg returns the Org field value if set, zero value otherwise.
func (o *ManagedCluster) GetOrg() string {
if o == nil || IsNil(o.Org) {
var ret string
return ret
}
return *o.Org
}
// GetOrgOk returns a tuple with the Org field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedCluster) GetOrgOk() (*string, bool) {
if o == nil || IsNil(o.Org) {
return nil, false
}
return o.Org, true
}
// HasOrg returns a boolean if a field has been set.
func (o *ManagedCluster) HasOrg() bool {
if o != nil && !IsNil(o.Org) {
return true
}
return false
}
// SetOrg gets a reference to the given string and assigns it to the Org field.
func (o *ManagedCluster) SetOrg(v string) {
o.Org = &v
}
// GetType returns the Type field value if set, zero value otherwise.
func (o *ManagedCluster) GetType() ManagedClusterTypes {
if o == nil || IsNil(o.Type) {
var ret ManagedClusterTypes
return ret
}
return *o.Type
}
// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedCluster) GetTypeOk() (*ManagedClusterTypes, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
return o.Type, true
}
// HasType returns a boolean if a field has been set.
func (o *ManagedCluster) HasType() bool {
if o != nil && !IsNil(o.Type) {
return true
}
return false
}
// SetType gets a reference to the given ManagedClusterTypes and assigns it to the Type field.
func (o *ManagedCluster) SetType(v ManagedClusterTypes) {
o.Type = &v
}
// GetConfiguration returns the Configuration field value if set, zero value otherwise.
func (o *ManagedCluster) GetConfiguration() map[string]string {
if o == nil || IsNil(o.Configuration) {
var ret map[string]string
return ret
}
return *o.Configuration
}
// GetConfigurationOk returns a tuple with the Configuration field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedCluster) GetConfigurationOk() (*map[string]string, bool) {
if o == nil || IsNil(o.Configuration) {
return nil, false
}
return o.Configuration, true
}
// HasConfiguration returns a boolean if a field has been set.
func (o *ManagedCluster) HasConfiguration() bool {
if o != nil && !IsNil(o.Configuration) {
return true
}
return false
}
// SetConfiguration gets a reference to the given map[string]string and assigns it to the Configuration field.
func (o *ManagedCluster) SetConfiguration(v map[string]string) {
o.Configuration = &v
}
// GetKeyPair returns the KeyPair field value if set, zero value otherwise.
func (o *ManagedCluster) GetKeyPair() ManagedClusterKeyPair {
if o == nil || IsNil(o.KeyPair) {
var ret ManagedClusterKeyPair
return ret
}
return *o.KeyPair
}
// GetKeyPairOk returns a tuple with the KeyPair field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedCluster) GetKeyPairOk() (*ManagedClusterKeyPair, bool) {
if o == nil || IsNil(o.KeyPair) {
return nil, false
}
return o.KeyPair, true
}
// HasKeyPair returns a boolean if a field has been set.
func (o *ManagedCluster) HasKeyPair() bool {
if o != nil && !IsNil(o.KeyPair) {
return true
}
return false
}
// SetKeyPair gets a reference to the given ManagedClusterKeyPair and assigns it to the KeyPair field.
func (o *ManagedCluster) SetKeyPair(v ManagedClusterKeyPair) {
o.KeyPair = &v
}
// GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *ManagedCluster) GetAttributes() ManagedClusterAttributes {
if o == nil || IsNil(o.Attributes) {
var ret ManagedClusterAttributes
return ret
}
return *o.Attributes
}
// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedCluster) GetAttributesOk() (*ManagedClusterAttributes, bool) {
if o == nil || IsNil(o.Attributes) {
return nil, false
}
return o.Attributes, true
}
// HasAttributes returns a boolean if a field has been set.
func (o *ManagedCluster) HasAttributes() bool {
if o != nil && !IsNil(o.Attributes) {
return true
}
return false
}
// SetAttributes gets a reference to the given ManagedClusterAttributes and assigns it to the Attributes field.
func (o *ManagedCluster) SetAttributes(v ManagedClusterAttributes) {
o.Attributes = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *ManagedCluster) GetDescription() string {
if o == nil || IsNil(o.Description) {
var ret string
return ret
}
return *o.Description
}
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedCluster) GetDescriptionOk() (*string, bool) {
if o == nil || IsNil(o.Description) {
return nil, false
}
return o.Description, true
}
// HasDescription returns a boolean if a field has been set.
func (o *ManagedCluster) HasDescription() bool {
if o != nil && !IsNil(o.Description) {
return true
}
return false
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *ManagedCluster) SetDescription(v string) {
o.Description = &v
}
// GetRedis returns the Redis field value if set, zero value otherwise.
func (o *ManagedCluster) GetRedis() ManagedClusterRedis {
if o == nil || IsNil(o.Redis) {
var ret ManagedClusterRedis
return ret
}
return *o.Redis
}
// GetRedisOk returns a tuple with the Redis field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedCluster) GetRedisOk() (*ManagedClusterRedis, bool) {
if o == nil || IsNil(o.Redis) {
return nil, false
}
return o.Redis, true
}
// HasRedis returns a boolean if a field has been set.
func (o *ManagedCluster) HasRedis() bool {
if o != nil && !IsNil(o.Redis) {
return true
}
return false
}
// SetRedis gets a reference to the given ManagedClusterRedis and assigns it to the Redis field.
func (o *ManagedCluster) SetRedis(v ManagedClusterRedis) {
o.Redis = &v
}
// GetClientType returns the ClientType field value
// If the value is explicit nil, the zero value for ManagedClientType will be returned
func (o *ManagedCluster) GetClientType() ManagedClientType {
if o == nil || o.ClientType.Get() == nil {
var ret ManagedClientType
return ret
}
return *o.ClientType.Get()
}
// GetClientTypeOk returns a tuple with the ClientType field value
// 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 *ManagedCluster) GetClientTypeOk() (*ManagedClientType, bool) {
if o == nil {
return nil, false
}
return o.ClientType.Get(), o.ClientType.IsSet()
}
// SetClientType sets field value
func (o *ManagedCluster) SetClientType(v ManagedClientType) {
o.ClientType.Set(&v)
}
// GetCcgVersion returns the CcgVersion field value
func (o *ManagedCluster) GetCcgVersion() string {
if o == nil {
var ret string
return ret
}
return o.CcgVersion
}
// GetCcgVersionOk returns a tuple with the CcgVersion field value
// and a boolean to check if the value has been set.
func (o *ManagedCluster) GetCcgVersionOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.CcgVersion, true
}
// SetCcgVersion sets field value
func (o *ManagedCluster) SetCcgVersion(v string) {
o.CcgVersion = v
}
// GetPinnedConfig returns the PinnedConfig field value if set, zero value otherwise.
func (o *ManagedCluster) GetPinnedConfig() bool {
if o == nil || IsNil(o.PinnedConfig) {
var ret bool
return ret
}
return *o.PinnedConfig
}
// GetPinnedConfigOk returns a tuple with the PinnedConfig field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedCluster) GetPinnedConfigOk() (*bool, bool) {
if o == nil || IsNil(o.PinnedConfig) {
return nil, false
}
return o.PinnedConfig, true
}
// HasPinnedConfig returns a boolean if a field has been set.
func (o *ManagedCluster) HasPinnedConfig() bool {
if o != nil && !IsNil(o.PinnedConfig) {
return true
}
return false
}
// SetPinnedConfig gets a reference to the given bool and assigns it to the PinnedConfig field.
func (o *ManagedCluster) SetPinnedConfig(v bool) {
o.PinnedConfig = &v
}
// GetLogConfiguration returns the LogConfiguration field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ManagedCluster) GetLogConfiguration() ClientLogConfiguration {
if o == nil || IsNil(o.LogConfiguration.Get()) {
var ret ClientLogConfiguration
return ret
}
return *o.LogConfiguration.Get()
}
// GetLogConfigurationOk returns a tuple with the LogConfiguration 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 *ManagedCluster) GetLogConfigurationOk() (*ClientLogConfiguration, bool) {
if o == nil {
return nil, false
}
return o.LogConfiguration.Get(), o.LogConfiguration.IsSet()
}
// HasLogConfiguration returns a boolean if a field has been set.
func (o *ManagedCluster) HasLogConfiguration() bool {
if o != nil && o.LogConfiguration.IsSet() {
return true
}
return false
}
// SetLogConfiguration gets a reference to the given NullableClientLogConfiguration and assigns it to the LogConfiguration field.
func (o *ManagedCluster) SetLogConfiguration(v ClientLogConfiguration) {
o.LogConfiguration.Set(&v)
}
// SetLogConfigurationNil sets the value for LogConfiguration to be an explicit nil
func (o *ManagedCluster) SetLogConfigurationNil() {
o.LogConfiguration.Set(nil)
}
// UnsetLogConfiguration ensures that no value is present for LogConfiguration, not even an explicit nil
func (o *ManagedCluster) UnsetLogConfiguration() {
o.LogConfiguration.Unset()
}
// GetOperational returns the Operational field value if set, zero value otherwise.
func (o *ManagedCluster) GetOperational() bool {
if o == nil || IsNil(o.Operational) {
var ret bool
return ret
}
return *o.Operational
}
// GetOperationalOk returns a tuple with the Operational field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedCluster) GetOperationalOk() (*bool, bool) {
if o == nil || IsNil(o.Operational) {
return nil, false
}
return o.Operational, true
}
// HasOperational returns a boolean if a field has been set.
func (o *ManagedCluster) HasOperational() bool {
if o != nil && !IsNil(o.Operational) {
return true
}
return false
}
// SetOperational gets a reference to the given bool and assigns it to the Operational field.
func (o *ManagedCluster) SetOperational(v bool) {
o.Operational = &v
}
// GetStatus returns the Status field value if set, zero value otherwise.
func (o *ManagedCluster) GetStatus() string {
if o == nil || IsNil(o.Status) {
var ret string
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 *ManagedCluster) GetStatusOk() (*string, 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 *ManagedCluster) HasStatus() bool {
if o != nil && !IsNil(o.Status) {
return true
}
return false
}
// SetStatus gets a reference to the given string and assigns it to the Status field.
func (o *ManagedCluster) SetStatus(v string) {
o.Status = &v
}
// GetPublicKeyCertificate returns the PublicKeyCertificate field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ManagedCluster) GetPublicKeyCertificate() string {
if o == nil || IsNil(o.PublicKeyCertificate.Get()) {
var ret string
return ret
}
return *o.PublicKeyCertificate.Get()
}
// GetPublicKeyCertificateOk returns a tuple with the PublicKeyCertificate 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 *ManagedCluster) GetPublicKeyCertificateOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.PublicKeyCertificate.Get(), o.PublicKeyCertificate.IsSet()
}
// HasPublicKeyCertificate returns a boolean if a field has been set.
func (o *ManagedCluster) HasPublicKeyCertificate() bool {
if o != nil && o.PublicKeyCertificate.IsSet() {
return true
}
return false
}
// SetPublicKeyCertificate gets a reference to the given NullableString and assigns it to the PublicKeyCertificate field.
func (o *ManagedCluster) SetPublicKeyCertificate(v string) {
o.PublicKeyCertificate.Set(&v)
}
// SetPublicKeyCertificateNil sets the value for PublicKeyCertificate to be an explicit nil
func (o *ManagedCluster) SetPublicKeyCertificateNil() {
o.PublicKeyCertificate.Set(nil)
}
// UnsetPublicKeyCertificate ensures that no value is present for PublicKeyCertificate, not even an explicit nil
func (o *ManagedCluster) UnsetPublicKeyCertificate() {
o.PublicKeyCertificate.Unset()
}
// GetPublicKeyThumbprint returns the PublicKeyThumbprint field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ManagedCluster) GetPublicKeyThumbprint() string {
if o == nil || IsNil(o.PublicKeyThumbprint.Get()) {
var ret string
return ret
}
return *o.PublicKeyThumbprint.Get()
}
// GetPublicKeyThumbprintOk returns a tuple with the PublicKeyThumbprint 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 *ManagedCluster) GetPublicKeyThumbprintOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.PublicKeyThumbprint.Get(), o.PublicKeyThumbprint.IsSet()
}
// HasPublicKeyThumbprint returns a boolean if a field has been set.
func (o *ManagedCluster) HasPublicKeyThumbprint() bool {
if o != nil && o.PublicKeyThumbprint.IsSet() {
return true
}
return false
}
// SetPublicKeyThumbprint gets a reference to the given NullableString and assigns it to the PublicKeyThumbprint field.
func (o *ManagedCluster) SetPublicKeyThumbprint(v string) {
o.PublicKeyThumbprint.Set(&v)
}
// SetPublicKeyThumbprintNil sets the value for PublicKeyThumbprint to be an explicit nil
func (o *ManagedCluster) SetPublicKeyThumbprintNil() {
o.PublicKeyThumbprint.Set(nil)
}
// UnsetPublicKeyThumbprint ensures that no value is present for PublicKeyThumbprint, not even an explicit nil
func (o *ManagedCluster) UnsetPublicKeyThumbprint() {
o.PublicKeyThumbprint.Unset()
}
// GetPublicKey returns the PublicKey field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ManagedCluster) GetPublicKey() string {
if o == nil || IsNil(o.PublicKey.Get()) {
var ret string
return ret
}
return *o.PublicKey.Get()
}
// GetPublicKeyOk returns a tuple with the PublicKey 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 *ManagedCluster) GetPublicKeyOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.PublicKey.Get(), o.PublicKey.IsSet()
}
// HasPublicKey returns a boolean if a field has been set.
func (o *ManagedCluster) HasPublicKey() bool {
if o != nil && o.PublicKey.IsSet() {
return true
}
return false
}
// SetPublicKey gets a reference to the given NullableString and assigns it to the PublicKey field.
func (o *ManagedCluster) SetPublicKey(v string) {
o.PublicKey.Set(&v)
}
// SetPublicKeyNil sets the value for PublicKey to be an explicit nil
func (o *ManagedCluster) SetPublicKeyNil() {
o.PublicKey.Set(nil)
}
// UnsetPublicKey ensures that no value is present for PublicKey, not even an explicit nil
func (o *ManagedCluster) UnsetPublicKey() {
o.PublicKey.Unset()
}
// GetAlertKey returns the AlertKey field value if set, zero value otherwise.
func (o *ManagedCluster) GetAlertKey() string {
if o == nil || IsNil(o.AlertKey) {
var ret string
return ret
}
return *o.AlertKey
}
// GetAlertKeyOk returns a tuple with the AlertKey field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedCluster) GetAlertKeyOk() (*string, bool) {
if o == nil || IsNil(o.AlertKey) {
return nil, false
}
return o.AlertKey, true
}
// HasAlertKey returns a boolean if a field has been set.
func (o *ManagedCluster) HasAlertKey() bool {
if o != nil && !IsNil(o.AlertKey) {
return true
}
return false
}
// SetAlertKey gets a reference to the given string and assigns it to the AlertKey field.
func (o *ManagedCluster) SetAlertKey(v string) {
o.AlertKey = &v
}
// GetClientIds returns the ClientIds field value if set, zero value otherwise.
func (o *ManagedCluster) GetClientIds() []string {
if o == nil || IsNil(o.ClientIds) {
var ret []string
return ret
}
return o.ClientIds
}
// GetClientIdsOk returns a tuple with the ClientIds field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedCluster) GetClientIdsOk() ([]string, bool) {
if o == nil || IsNil(o.ClientIds) {
return nil, false
}
return o.ClientIds, true
}
// HasClientIds returns a boolean if a field has been set.
func (o *ManagedCluster) HasClientIds() bool {
if o != nil && !IsNil(o.ClientIds) {
return true
}
return false
}
// SetClientIds gets a reference to the given []string and assigns it to the ClientIds field.
func (o *ManagedCluster) SetClientIds(v []string) {
o.ClientIds = v
}
// GetServiceCount returns the ServiceCount field value if set, zero value otherwise.
func (o *ManagedCluster) GetServiceCount() int32 {
if o == nil || IsNil(o.ServiceCount) {
var ret int32
return ret
}
return *o.ServiceCount
}
// GetServiceCountOk returns a tuple with the ServiceCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedCluster) GetServiceCountOk() (*int32, bool) {
if o == nil || IsNil(o.ServiceCount) {
return nil, false
}
return o.ServiceCount, true
}
// HasServiceCount returns a boolean if a field has been set.
func (o *ManagedCluster) HasServiceCount() bool {
if o != nil && !IsNil(o.ServiceCount) {
return true
}
return false
}
// SetServiceCount gets a reference to the given int32 and assigns it to the ServiceCount field.
func (o *ManagedCluster) SetServiceCount(v int32) {
o.ServiceCount = &v
}
// GetCcId returns the CcId field value if set, zero value otherwise.
func (o *ManagedCluster) GetCcId() string {
if o == nil || IsNil(o.CcId) {
var ret string
return ret
}
return *o.CcId
}
// GetCcIdOk returns a tuple with the CcId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ManagedCluster) GetCcIdOk() (*string, bool) {
if o == nil || IsNil(o.CcId) {
return nil, false
}
return o.CcId, true
}
// HasCcId returns a boolean if a field has been set.
func (o *ManagedCluster) HasCcId() bool {
if o != nil && !IsNil(o.CcId) {
return true
}
return false
}
// SetCcId gets a reference to the given string and assigns it to the CcId field.
func (o *ManagedCluster) SetCcId(v string) {
o.CcId = &v
}
// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ManagedCluster) GetCreatedAt() SailPointTime {
if o == nil || IsNil(o.CreatedAt.Get()) {
var ret SailPointTime
return ret
}
return *o.CreatedAt.Get()
}
// GetCreatedAtOk returns a tuple with the CreatedAt 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 *ManagedCluster) GetCreatedAtOk() (*SailPointTime, bool) {
if o == nil {
return nil, false
}
return o.CreatedAt.Get(), o.CreatedAt.IsSet()
}
// HasCreatedAt returns a boolean if a field has been set.
func (o *ManagedCluster) HasCreatedAt() bool {
if o != nil && o.CreatedAt.IsSet() {
return true
}
return false
}
// SetCreatedAt gets a reference to the given NullableTime and assigns it to the CreatedAt field.
func (o *ManagedCluster) SetCreatedAt(v SailPointTime) {
o.CreatedAt.Set(&v)
}
// SetCreatedAtNil sets the value for CreatedAt to be an explicit nil
func (o *ManagedCluster) SetCreatedAtNil() {
o.CreatedAt.Set(nil)
}
// UnsetCreatedAt ensures that no value is present for CreatedAt, not even an explicit nil
func (o *ManagedCluster) UnsetCreatedAt() {
o.CreatedAt.Unset()
}
// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ManagedCluster) GetUpdatedAt() SailPointTime {
if o == nil || IsNil(o.UpdatedAt.Get()) {
var ret SailPointTime
return ret
}
return *o.UpdatedAt.Get()
}
// GetUpdatedAtOk returns a tuple with the UpdatedAt 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 *ManagedCluster) GetUpdatedAtOk() (*SailPointTime, bool) {
if o == nil {
return nil, false
}
return o.UpdatedAt.Get(), o.UpdatedAt.IsSet()
}
// HasUpdatedAt returns a boolean if a field has been set.
func (o *ManagedCluster) HasUpdatedAt() bool {
if o != nil && o.UpdatedAt.IsSet() {
return true
}
return false
}
// SetUpdatedAt gets a reference to the given NullableTime and assigns it to the UpdatedAt field.
func (o *ManagedCluster) SetUpdatedAt(v SailPointTime) {
o.UpdatedAt.Set(&v)
}
// SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil
func (o *ManagedCluster) SetUpdatedAtNil() {
o.UpdatedAt.Set(nil)
}
// UnsetUpdatedAt ensures that no value is present for UpdatedAt, not even an explicit nil
func (o *ManagedCluster) UnsetUpdatedAt() {
o.UpdatedAt.Unset()
}
func (o ManagedCluster) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ManagedCluster) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["id"] = o.Id
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
}
if !IsNil(o.Pod) {
toSerialize["pod"] = o.Pod
}
if !IsNil(o.Org) {
toSerialize["org"] = o.Org
}
if !IsNil(o.Type) {
toSerialize["type"] = o.Type
}
if !IsNil(o.Configuration) {
toSerialize["configuration"] = o.Configuration
}
if !IsNil(o.KeyPair) {
toSerialize["keyPair"] = o.KeyPair
}
if !IsNil(o.Attributes) {
toSerialize["attributes"] = o.Attributes
}
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
}
if !IsNil(o.Redis) {
toSerialize["redis"] = o.Redis
}
toSerialize["clientType"] = o.ClientType.Get()
toSerialize["ccgVersion"] = o.CcgVersion
if !IsNil(o.PinnedConfig) {
toSerialize["pinnedConfig"] = o.PinnedConfig
}
if o.LogConfiguration.IsSet() {
toSerialize["logConfiguration"] = o.LogConfiguration.Get()
}
if !IsNil(o.Operational) {
toSerialize["operational"] = o.Operational
}
if !IsNil(o.Status) {
toSerialize["status"] = o.Status
}
if o.PublicKeyCertificate.IsSet() {
toSerialize["publicKeyCertificate"] = o.PublicKeyCertificate.Get()