-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_models_certificate_retrieval_response.go
1935 lines (1665 loc) · 64.4 KB
/
model_models_certificate_retrieval_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
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
/*
Copyright 2022 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
thespecific 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 keyfactor
import (
"encoding/json"
"time"
)
// checks if the ModelsCertificateRetrievalResponse type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ModelsCertificateRetrievalResponse{}
// ModelsCertificateRetrievalResponse struct for ModelsCertificateRetrievalResponse
type ModelsCertificateRetrievalResponse struct {
Id *int32 `json:"Id,omitempty"`
Thumbprint *string `json:"Thumbprint,omitempty"`
SerialNumber *string `json:"SerialNumber,omitempty"`
IssuedDN NullableString `json:"IssuedDN,omitempty"`
IssuedCN NullableString `json:"IssuedCN,omitempty"`
ImportDate *time.Time `json:"ImportDate,omitempty"`
NotBefore *time.Time `json:"NotBefore,omitempty"`
NotAfter *time.Time `json:"NotAfter,omitempty"`
IssuerDN NullableString `json:"IssuerDN,omitempty"`
PrincipalId NullableInt32 `json:"PrincipalId,omitempty"`
TemplateId *int32 `json:"TemplateId,omitempty"`
CertState *int32 `json:"CertState,omitempty"`
KeySizeInBits *int32 `json:"KeySizeInBits,omitempty"`
KeyType *int32 `json:"KeyType,omitempty"`
RequesterId *int32 `json:"RequesterId,omitempty"`
IssuedOU NullableString `json:"IssuedOU,omitempty"`
IssuedEmail NullableString `json:"IssuedEmail,omitempty"`
KeyUsage *int32 `json:"KeyUsage,omitempty"`
SigningAlgorithm *string `json:"SigningAlgorithm,omitempty"`
CertStateString *string `json:"CertStateString,omitempty"`
KeyTypeString *string `json:"KeyTypeString,omitempty"`
RevocationEffDate NullableTime `json:"RevocationEffDate,omitempty"`
RevocationReason NullableInt32 `json:"RevocationReason,omitempty"`
RevocationComment NullableString `json:"RevocationComment,omitempty"`
CertificateAuthorityId *int32 `json:"CertificateAuthorityId,omitempty"`
CertificateAuthorityName *string `json:"CertificateAuthorityName,omitempty"`
// Full template display name.
TemplateName *string `json:"TemplateName,omitempty"`
ArchivedKey *bool `json:"ArchivedKey,omitempty"`
HasPrivateKey *bool `json:"HasPrivateKey,omitempty"`
PrincipalName NullableString `json:"PrincipalName,omitempty"`
CertRequestId *int32 `json:"CertRequestId,omitempty"`
RequesterName *string `json:"RequesterName,omitempty"`
ContentBytes *string `json:"ContentBytes,omitempty"`
ExtendedKeyUsages []ModelsCertificateRetrievalResponseExtendedKeyUsageModel `json:"ExtendedKeyUsages,omitempty"`
SubjectAltNameElements []ModelsCertificateRetrievalResponseSubjectAlternativeNameModel `json:"SubjectAltNameElements,omitempty"`
CRLDistributionPoints []ModelsCertificateRetrievalResponseCRLDistributionPointModel `json:"CRLDistributionPoints,omitempty"`
LocationsCount []ModelsCertificateRetrievalResponseLocationCountModel `json:"LocationsCount,omitempty"`
SSLLocations []ModelsCertificateRetrievalResponseCertificateStoreLocationDetailModel `json:"SSLLocations,omitempty"`
Locations []ModelsCertificateRetrievalResponseCertificateStoreInventoryItemModel `json:"Locations,omitempty"`
Metadata *map[string]string `json:"Metadata,omitempty"`
CertificateKeyId *int32 `json:"CertificateKeyId,omitempty"`
CARowIndex *int64 `json:"CARowIndex,omitempty"`
CARecordId *string `json:"CARecordId,omitempty"`
DetailedKeyUsage *ModelsCertificateRetrievalResponseDetailedKeyUsageModel `json:"DetailedKeyUsage,omitempty"`
KeyRecoverable *bool `json:"KeyRecoverable,omitempty"`
Curve NullableString `json:"Curve,omitempty"`
AdditionalProperties map[string]interface{}
}
type _ModelsCertificateRetrievalResponse ModelsCertificateRetrievalResponse
// NewModelsCertificateRetrievalResponse instantiates a new ModelsCertificateRetrievalResponse 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 NewModelsCertificateRetrievalResponse() *ModelsCertificateRetrievalResponse {
this := ModelsCertificateRetrievalResponse{}
return &this
}
// NewModelsCertificateRetrievalResponseWithDefaults instantiates a new ModelsCertificateRetrievalResponse 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 NewModelsCertificateRetrievalResponseWithDefaults() *ModelsCertificateRetrievalResponse {
this := ModelsCertificateRetrievalResponse{}
return &this
}
// GetId returns the Id field value if set, zero value otherwise.
func (o *ModelsCertificateRetrievalResponse) GetId() int32 {
if o == nil || isNil(o.Id) {
var ret int32
return ret
}
return *o.Id
}
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ModelsCertificateRetrievalResponse) GetIdOk() (*int32, bool) {
if o == nil || isNil(o.Id) {
return nil, false
}
return o.Id, true
}
// HasId returns a boolean if a field has been set.
func (o *ModelsCertificateRetrievalResponse) HasId() bool {
if o != nil && !isNil(o.Id) {
return true
}
return false
}
// SetId gets a reference to the given int32 and assigns it to the Id field.
func (o *ModelsCertificateRetrievalResponse) SetId(v int32) {
o.Id = &v
}
// GetThumbprint returns the Thumbprint field value if set, zero value otherwise.
func (o *ModelsCertificateRetrievalResponse) 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 *ModelsCertificateRetrievalResponse) 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 *ModelsCertificateRetrievalResponse) 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 *ModelsCertificateRetrievalResponse) SetThumbprint(v string) {
o.Thumbprint = &v
}
// GetSerialNumber returns the SerialNumber field value if set, zero value otherwise.
func (o *ModelsCertificateRetrievalResponse) GetSerialNumber() string {
if o == nil || isNil(o.SerialNumber) {
var ret string
return ret
}
return *o.SerialNumber
}
// GetSerialNumberOk returns a tuple with the SerialNumber field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ModelsCertificateRetrievalResponse) GetSerialNumberOk() (*string, bool) {
if o == nil || isNil(o.SerialNumber) {
return nil, false
}
return o.SerialNumber, true
}
// HasSerialNumber returns a boolean if a field has been set.
func (o *ModelsCertificateRetrievalResponse) HasSerialNumber() bool {
if o != nil && !isNil(o.SerialNumber) {
return true
}
return false
}
// SetSerialNumber gets a reference to the given string and assigns it to the SerialNumber field.
func (o *ModelsCertificateRetrievalResponse) SetSerialNumber(v string) {
o.SerialNumber = &v
}
// GetIssuedDN returns the IssuedDN field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ModelsCertificateRetrievalResponse) GetIssuedDN() string {
if o == nil || isNil(o.IssuedDN.Get()) {
var ret string
return ret
}
return *o.IssuedDN.Get()
}
// GetIssuedDNOk returns a tuple with the IssuedDN 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 *ModelsCertificateRetrievalResponse) GetIssuedDNOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.IssuedDN.Get(), o.IssuedDN.IsSet()
}
// HasIssuedDN returns a boolean if a field has been set.
func (o *ModelsCertificateRetrievalResponse) HasIssuedDN() bool {
if o != nil && o.IssuedDN.IsSet() {
return true
}
return false
}
// SetIssuedDN gets a reference to the given NullableString and assigns it to the IssuedDN field.
func (o *ModelsCertificateRetrievalResponse) SetIssuedDN(v string) {
o.IssuedDN.Set(&v)
}
// SetIssuedDNNil sets the value for IssuedDN to be an explicit nil
func (o *ModelsCertificateRetrievalResponse) SetIssuedDNNil() {
o.IssuedDN.Set(nil)
}
// UnsetIssuedDN ensures that no value is present for IssuedDN, not even an explicit nil
func (o *ModelsCertificateRetrievalResponse) UnsetIssuedDN() {
o.IssuedDN.Unset()
}
// GetIssuedCN returns the IssuedCN field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ModelsCertificateRetrievalResponse) GetIssuedCN() string {
if o == nil || isNil(o.IssuedCN.Get()) {
var ret string
return ret
}
return *o.IssuedCN.Get()
}
// GetIssuedCNOk returns a tuple with the IssuedCN 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 *ModelsCertificateRetrievalResponse) GetIssuedCNOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.IssuedCN.Get(), o.IssuedCN.IsSet()
}
// HasIssuedCN returns a boolean if a field has been set.
func (o *ModelsCertificateRetrievalResponse) HasIssuedCN() bool {
if o != nil && o.IssuedCN.IsSet() {
return true
}
return false
}
// SetIssuedCN gets a reference to the given NullableString and assigns it to the IssuedCN field.
func (o *ModelsCertificateRetrievalResponse) SetIssuedCN(v string) {
o.IssuedCN.Set(&v)
}
// SetIssuedCNNil sets the value for IssuedCN to be an explicit nil
func (o *ModelsCertificateRetrievalResponse) SetIssuedCNNil() {
o.IssuedCN.Set(nil)
}
// UnsetIssuedCN ensures that no value is present for IssuedCN, not even an explicit nil
func (o *ModelsCertificateRetrievalResponse) UnsetIssuedCN() {
o.IssuedCN.Unset()
}
// GetImportDate returns the ImportDate field value if set, zero value otherwise.
func (o *ModelsCertificateRetrievalResponse) GetImportDate() time.Time {
if o == nil || isNil(o.ImportDate) {
var ret time.Time
return ret
}
return *o.ImportDate
}
// GetImportDateOk returns a tuple with the ImportDate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ModelsCertificateRetrievalResponse) GetImportDateOk() (*time.Time, bool) {
if o == nil || isNil(o.ImportDate) {
return nil, false
}
return o.ImportDate, true
}
// HasImportDate returns a boolean if a field has been set.
func (o *ModelsCertificateRetrievalResponse) HasImportDate() bool {
if o != nil && !isNil(o.ImportDate) {
return true
}
return false
}
// SetImportDate gets a reference to the given time.Time and assigns it to the ImportDate field.
func (o *ModelsCertificateRetrievalResponse) SetImportDate(v time.Time) {
o.ImportDate = &v
}
// GetNotBefore returns the NotBefore field value if set, zero value otherwise.
func (o *ModelsCertificateRetrievalResponse) GetNotBefore() time.Time {
if o == nil || isNil(o.NotBefore) {
var ret time.Time
return ret
}
return *o.NotBefore
}
// GetNotBeforeOk returns a tuple with the NotBefore field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ModelsCertificateRetrievalResponse) GetNotBeforeOk() (*time.Time, bool) {
if o == nil || isNil(o.NotBefore) {
return nil, false
}
return o.NotBefore, true
}
// HasNotBefore returns a boolean if a field has been set.
func (o *ModelsCertificateRetrievalResponse) HasNotBefore() bool {
if o != nil && !isNil(o.NotBefore) {
return true
}
return false
}
// SetNotBefore gets a reference to the given time.Time and assigns it to the NotBefore field.
func (o *ModelsCertificateRetrievalResponse) SetNotBefore(v time.Time) {
o.NotBefore = &v
}
// GetNotAfter returns the NotAfter field value if set, zero value otherwise.
func (o *ModelsCertificateRetrievalResponse) GetNotAfter() time.Time {
if o == nil || isNil(o.NotAfter) {
var ret time.Time
return ret
}
return *o.NotAfter
}
// GetNotAfterOk returns a tuple with the NotAfter field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ModelsCertificateRetrievalResponse) GetNotAfterOk() (*time.Time, bool) {
if o == nil || isNil(o.NotAfter) {
return nil, false
}
return o.NotAfter, true
}
// HasNotAfter returns a boolean if a field has been set.
func (o *ModelsCertificateRetrievalResponse) HasNotAfter() bool {
if o != nil && !isNil(o.NotAfter) {
return true
}
return false
}
// SetNotAfter gets a reference to the given time.Time and assigns it to the NotAfter field.
func (o *ModelsCertificateRetrievalResponse) SetNotAfter(v time.Time) {
o.NotAfter = &v
}
// GetIssuerDN returns the IssuerDN field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ModelsCertificateRetrievalResponse) GetIssuerDN() string {
if o == nil || isNil(o.IssuerDN.Get()) {
var ret string
return ret
}
return *o.IssuerDN.Get()
}
// GetIssuerDNOk returns a tuple with the IssuerDN 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 *ModelsCertificateRetrievalResponse) GetIssuerDNOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.IssuerDN.Get(), o.IssuerDN.IsSet()
}
// HasIssuerDN returns a boolean if a field has been set.
func (o *ModelsCertificateRetrievalResponse) HasIssuerDN() bool {
if o != nil && o.IssuerDN.IsSet() {
return true
}
return false
}
// SetIssuerDN gets a reference to the given NullableString and assigns it to the IssuerDN field.
func (o *ModelsCertificateRetrievalResponse) SetIssuerDN(v string) {
o.IssuerDN.Set(&v)
}
// SetIssuerDNNil sets the value for IssuerDN to be an explicit nil
func (o *ModelsCertificateRetrievalResponse) SetIssuerDNNil() {
o.IssuerDN.Set(nil)
}
// UnsetIssuerDN ensures that no value is present for IssuerDN, not even an explicit nil
func (o *ModelsCertificateRetrievalResponse) UnsetIssuerDN() {
o.IssuerDN.Unset()
}
// GetPrincipalId returns the PrincipalId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ModelsCertificateRetrievalResponse) GetPrincipalId() int32 {
if o == nil || isNil(o.PrincipalId.Get()) {
var ret int32
return ret
}
return *o.PrincipalId.Get()
}
// GetPrincipalIdOk returns a tuple with the PrincipalId 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 *ModelsCertificateRetrievalResponse) GetPrincipalIdOk() (*int32, bool) {
if o == nil {
return nil, false
}
return o.PrincipalId.Get(), o.PrincipalId.IsSet()
}
// HasPrincipalId returns a boolean if a field has been set.
func (o *ModelsCertificateRetrievalResponse) HasPrincipalId() bool {
if o != nil && o.PrincipalId.IsSet() {
return true
}
return false
}
// SetPrincipalId gets a reference to the given NullableInt32 and assigns it to the PrincipalId field.
func (o *ModelsCertificateRetrievalResponse) SetPrincipalId(v int32) {
o.PrincipalId.Set(&v)
}
// SetPrincipalIdNil sets the value for PrincipalId to be an explicit nil
func (o *ModelsCertificateRetrievalResponse) SetPrincipalIdNil() {
o.PrincipalId.Set(nil)
}
// UnsetPrincipalId ensures that no value is present for PrincipalId, not even an explicit nil
func (o *ModelsCertificateRetrievalResponse) UnsetPrincipalId() {
o.PrincipalId.Unset()
}
// GetTemplateId returns the TemplateId field value if set, zero value otherwise.
func (o *ModelsCertificateRetrievalResponse) GetTemplateId() int32 {
if o == nil || isNil(o.TemplateId) {
var ret int32
return ret
}
return *o.TemplateId
}
// GetTemplateIdOk returns a tuple with the TemplateId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ModelsCertificateRetrievalResponse) GetTemplateIdOk() (*int32, bool) {
if o == nil || isNil(o.TemplateId) {
return nil, false
}
return o.TemplateId, true
}
// HasTemplateId returns a boolean if a field has been set.
func (o *ModelsCertificateRetrievalResponse) HasTemplateId() bool {
if o != nil && !isNil(o.TemplateId) {
return true
}
return false
}
// SetTemplateId gets a reference to the given int32 and assigns it to the TemplateId field.
func (o *ModelsCertificateRetrievalResponse) SetTemplateId(v int32) {
o.TemplateId = &v
}
// GetCertState returns the CertState field value if set, zero value otherwise.
func (o *ModelsCertificateRetrievalResponse) GetCertState() int32 {
if o == nil || isNil(o.CertState) {
var ret int32
return ret
}
return *o.CertState
}
// GetCertStateOk returns a tuple with the CertState field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ModelsCertificateRetrievalResponse) GetCertStateOk() (*int32, bool) {
if o == nil || isNil(o.CertState) {
return nil, false
}
return o.CertState, true
}
// HasCertState returns a boolean if a field has been set.
func (o *ModelsCertificateRetrievalResponse) HasCertState() bool {
if o != nil && !isNil(o.CertState) {
return true
}
return false
}
// SetCertState gets a reference to the given int32 and assigns it to the CertState field.
func (o *ModelsCertificateRetrievalResponse) SetCertState(v int32) {
o.CertState = &v
}
// GetKeySizeInBits returns the KeySizeInBits field value if set, zero value otherwise.
func (o *ModelsCertificateRetrievalResponse) GetKeySizeInBits() int32 {
if o == nil || isNil(o.KeySizeInBits) {
var ret int32
return ret
}
return *o.KeySizeInBits
}
// GetKeySizeInBitsOk returns a tuple with the KeySizeInBits field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ModelsCertificateRetrievalResponse) GetKeySizeInBitsOk() (*int32, bool) {
if o == nil || isNil(o.KeySizeInBits) {
return nil, false
}
return o.KeySizeInBits, true
}
// HasKeySizeInBits returns a boolean if a field has been set.
func (o *ModelsCertificateRetrievalResponse) HasKeySizeInBits() bool {
if o != nil && !isNil(o.KeySizeInBits) {
return true
}
return false
}
// SetKeySizeInBits gets a reference to the given int32 and assigns it to the KeySizeInBits field.
func (o *ModelsCertificateRetrievalResponse) SetKeySizeInBits(v int32) {
o.KeySizeInBits = &v
}
// GetKeyType returns the KeyType field value if set, zero value otherwise.
func (o *ModelsCertificateRetrievalResponse) GetKeyType() int32 {
if o == nil || isNil(o.KeyType) {
var ret int32
return ret
}
return *o.KeyType
}
// GetKeyTypeOk returns a tuple with the KeyType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ModelsCertificateRetrievalResponse) GetKeyTypeOk() (*int32, bool) {
if o == nil || isNil(o.KeyType) {
return nil, false
}
return o.KeyType, true
}
// HasKeyType returns a boolean if a field has been set.
func (o *ModelsCertificateRetrievalResponse) HasKeyType() bool {
if o != nil && !isNil(o.KeyType) {
return true
}
return false
}
// SetKeyType gets a reference to the given int32 and assigns it to the KeyType field.
func (o *ModelsCertificateRetrievalResponse) SetKeyType(v int32) {
o.KeyType = &v
}
// GetRequesterId returns the RequesterId field value if set, zero value otherwise.
func (o *ModelsCertificateRetrievalResponse) GetRequesterId() int32 {
if o == nil || isNil(o.RequesterId) {
var ret int32
return ret
}
return *o.RequesterId
}
// GetRequesterIdOk returns a tuple with the RequesterId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ModelsCertificateRetrievalResponse) GetRequesterIdOk() (*int32, bool) {
if o == nil || isNil(o.RequesterId) {
return nil, false
}
return o.RequesterId, true
}
// HasRequesterId returns a boolean if a field has been set.
func (o *ModelsCertificateRetrievalResponse) HasRequesterId() bool {
if o != nil && !isNil(o.RequesterId) {
return true
}
return false
}
// SetRequesterId gets a reference to the given int32 and assigns it to the RequesterId field.
func (o *ModelsCertificateRetrievalResponse) SetRequesterId(v int32) {
o.RequesterId = &v
}
// GetIssuedOU returns the IssuedOU field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ModelsCertificateRetrievalResponse) GetIssuedOU() string {
if o == nil || isNil(o.IssuedOU.Get()) {
var ret string
return ret
}
return *o.IssuedOU.Get()
}
// GetIssuedOUOk returns a tuple with the IssuedOU 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 *ModelsCertificateRetrievalResponse) GetIssuedOUOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.IssuedOU.Get(), o.IssuedOU.IsSet()
}
// HasIssuedOU returns a boolean if a field has been set.
func (o *ModelsCertificateRetrievalResponse) HasIssuedOU() bool {
if o != nil && o.IssuedOU.IsSet() {
return true
}
return false
}
// SetIssuedOU gets a reference to the given NullableString and assigns it to the IssuedOU field.
func (o *ModelsCertificateRetrievalResponse) SetIssuedOU(v string) {
o.IssuedOU.Set(&v)
}
// SetIssuedOUNil sets the value for IssuedOU to be an explicit nil
func (o *ModelsCertificateRetrievalResponse) SetIssuedOUNil() {
o.IssuedOU.Set(nil)
}
// UnsetIssuedOU ensures that no value is present for IssuedOU, not even an explicit nil
func (o *ModelsCertificateRetrievalResponse) UnsetIssuedOU() {
o.IssuedOU.Unset()
}
// GetIssuedEmail returns the IssuedEmail field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ModelsCertificateRetrievalResponse) GetIssuedEmail() string {
if o == nil || isNil(o.IssuedEmail.Get()) {
var ret string
return ret
}
return *o.IssuedEmail.Get()
}
// GetIssuedEmailOk returns a tuple with the IssuedEmail 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 *ModelsCertificateRetrievalResponse) GetIssuedEmailOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.IssuedEmail.Get(), o.IssuedEmail.IsSet()
}
// HasIssuedEmail returns a boolean if a field has been set.
func (o *ModelsCertificateRetrievalResponse) HasIssuedEmail() bool {
if o != nil && o.IssuedEmail.IsSet() {
return true
}
return false
}
// SetIssuedEmail gets a reference to the given NullableString and assigns it to the IssuedEmail field.
func (o *ModelsCertificateRetrievalResponse) SetIssuedEmail(v string) {
o.IssuedEmail.Set(&v)
}
// SetIssuedEmailNil sets the value for IssuedEmail to be an explicit nil
func (o *ModelsCertificateRetrievalResponse) SetIssuedEmailNil() {
o.IssuedEmail.Set(nil)
}
// UnsetIssuedEmail ensures that no value is present for IssuedEmail, not even an explicit nil
func (o *ModelsCertificateRetrievalResponse) UnsetIssuedEmail() {
o.IssuedEmail.Unset()
}
// GetKeyUsage returns the KeyUsage field value if set, zero value otherwise.
func (o *ModelsCertificateRetrievalResponse) GetKeyUsage() int32 {
if o == nil || isNil(o.KeyUsage) {
var ret int32
return ret
}
return *o.KeyUsage
}
// GetKeyUsageOk returns a tuple with the KeyUsage field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ModelsCertificateRetrievalResponse) GetKeyUsageOk() (*int32, bool) {
if o == nil || isNil(o.KeyUsage) {
return nil, false
}
return o.KeyUsage, true
}
// HasKeyUsage returns a boolean if a field has been set.
func (o *ModelsCertificateRetrievalResponse) HasKeyUsage() bool {
if o != nil && !isNil(o.KeyUsage) {
return true
}
return false
}
// SetKeyUsage gets a reference to the given int32 and assigns it to the KeyUsage field.
func (o *ModelsCertificateRetrievalResponse) SetKeyUsage(v int32) {
o.KeyUsage = &v
}
// GetSigningAlgorithm returns the SigningAlgorithm field value if set, zero value otherwise.
func (o *ModelsCertificateRetrievalResponse) GetSigningAlgorithm() string {
if o == nil || isNil(o.SigningAlgorithm) {
var ret string
return ret
}
return *o.SigningAlgorithm
}
// GetSigningAlgorithmOk returns a tuple with the SigningAlgorithm field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ModelsCertificateRetrievalResponse) GetSigningAlgorithmOk() (*string, bool) {
if o == nil || isNil(o.SigningAlgorithm) {
return nil, false
}
return o.SigningAlgorithm, true
}
// HasSigningAlgorithm returns a boolean if a field has been set.
func (o *ModelsCertificateRetrievalResponse) HasSigningAlgorithm() bool {
if o != nil && !isNil(o.SigningAlgorithm) {
return true
}
return false
}
// SetSigningAlgorithm gets a reference to the given string and assigns it to the SigningAlgorithm field.
func (o *ModelsCertificateRetrievalResponse) SetSigningAlgorithm(v string) {
o.SigningAlgorithm = &v
}
// GetCertStateString returns the CertStateString field value if set, zero value otherwise.
func (o *ModelsCertificateRetrievalResponse) GetCertStateString() string {
if o == nil || isNil(o.CertStateString) {
var ret string
return ret
}
return *o.CertStateString
}
// GetCertStateStringOk returns a tuple with the CertStateString field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ModelsCertificateRetrievalResponse) GetCertStateStringOk() (*string, bool) {
if o == nil || isNil(o.CertStateString) {
return nil, false
}
return o.CertStateString, true
}
// HasCertStateString returns a boolean if a field has been set.
func (o *ModelsCertificateRetrievalResponse) HasCertStateString() bool {
if o != nil && !isNil(o.CertStateString) {
return true
}
return false
}
// SetCertStateString gets a reference to the given string and assigns it to the CertStateString field.
func (o *ModelsCertificateRetrievalResponse) SetCertStateString(v string) {
o.CertStateString = &v
}
// GetKeyTypeString returns the KeyTypeString field value if set, zero value otherwise.
func (o *ModelsCertificateRetrievalResponse) GetKeyTypeString() string {
if o == nil || isNil(o.KeyTypeString) {
var ret string
return ret
}
return *o.KeyTypeString
}
// GetKeyTypeStringOk returns a tuple with the KeyTypeString field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ModelsCertificateRetrievalResponse) GetKeyTypeStringOk() (*string, bool) {
if o == nil || isNil(o.KeyTypeString) {
return nil, false
}
return o.KeyTypeString, true
}
// HasKeyTypeString returns a boolean if a field has been set.
func (o *ModelsCertificateRetrievalResponse) HasKeyTypeString() bool {
if o != nil && !isNil(o.KeyTypeString) {
return true
}
return false
}
// SetKeyTypeString gets a reference to the given string and assigns it to the KeyTypeString field.
func (o *ModelsCertificateRetrievalResponse) SetKeyTypeString(v string) {
o.KeyTypeString = &v
}
// GetRevocationEffDate returns the RevocationEffDate field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ModelsCertificateRetrievalResponse) GetRevocationEffDate() time.Time {
if o == nil || isNil(o.RevocationEffDate.Get()) {
var ret time.Time
return ret
}
return *o.RevocationEffDate.Get()
}
// GetRevocationEffDateOk returns a tuple with the RevocationEffDate 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 *ModelsCertificateRetrievalResponse) GetRevocationEffDateOk() (*time.Time, bool) {
if o == nil {
return nil, false
}
return o.RevocationEffDate.Get(), o.RevocationEffDate.IsSet()
}
// HasRevocationEffDate returns a boolean if a field has been set.
func (o *ModelsCertificateRetrievalResponse) HasRevocationEffDate() bool {
if o != nil && o.RevocationEffDate.IsSet() {
return true
}
return false
}
// SetRevocationEffDate gets a reference to the given NullableTime and assigns it to the RevocationEffDate field.
func (o *ModelsCertificateRetrievalResponse) SetRevocationEffDate(v time.Time) {
o.RevocationEffDate.Set(&v)
}
// SetRevocationEffDateNil sets the value for RevocationEffDate to be an explicit nil
func (o *ModelsCertificateRetrievalResponse) SetRevocationEffDateNil() {
o.RevocationEffDate.Set(nil)
}
// UnsetRevocationEffDate ensures that no value is present for RevocationEffDate, not even an explicit nil
func (o *ModelsCertificateRetrievalResponse) UnsetRevocationEffDate() {
o.RevocationEffDate.Unset()
}
// GetRevocationReason returns the RevocationReason field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ModelsCertificateRetrievalResponse) GetRevocationReason() int32 {
if o == nil || isNil(o.RevocationReason.Get()) {
var ret int32
return ret
}
return *o.RevocationReason.Get()
}
// GetRevocationReasonOk returns a tuple with the RevocationReason 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 *ModelsCertificateRetrievalResponse) GetRevocationReasonOk() (*int32, bool) {
if o == nil {
return nil, false
}
return o.RevocationReason.Get(), o.RevocationReason.IsSet()
}
// HasRevocationReason returns a boolean if a field has been set.
func (o *ModelsCertificateRetrievalResponse) HasRevocationReason() bool {
if o != nil && o.RevocationReason.IsSet() {
return true
}
return false
}
// SetRevocationReason gets a reference to the given NullableInt32 and assigns it to the RevocationReason field.
func (o *ModelsCertificateRetrievalResponse) SetRevocationReason(v int32) {
o.RevocationReason.Set(&v)
}
// SetRevocationReasonNil sets the value for RevocationReason to be an explicit nil
func (o *ModelsCertificateRetrievalResponse) SetRevocationReasonNil() {
o.RevocationReason.Set(nil)
}
// UnsetRevocationReason ensures that no value is present for RevocationReason, not even an explicit nil
func (o *ModelsCertificateRetrievalResponse) UnsetRevocationReason() {
o.RevocationReason.Unset()
}
// GetRevocationComment returns the RevocationComment field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ModelsCertificateRetrievalResponse) GetRevocationComment() string {
if o == nil || isNil(o.RevocationComment.Get()) {
var ret string
return ret
}
return *o.RevocationComment.Get()
}
// GetRevocationCommentOk returns a tuple with the RevocationComment 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 *ModelsCertificateRetrievalResponse) GetRevocationCommentOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.RevocationComment.Get(), o.RevocationComment.IsSet()
}
// HasRevocationComment returns a boolean if a field has been set.
func (o *ModelsCertificateRetrievalResponse) HasRevocationComment() bool {
if o != nil && o.RevocationComment.IsSet() {
return true
}
return false
}
// SetRevocationComment gets a reference to the given NullableString and assigns it to the RevocationComment field.
func (o *ModelsCertificateRetrievalResponse) SetRevocationComment(v string) {
o.RevocationComment.Set(&v)
}
// SetRevocationCommentNil sets the value for RevocationComment to be an explicit nil
func (o *ModelsCertificateRetrievalResponse) SetRevocationCommentNil() {
o.RevocationComment.Set(nil)
}
// UnsetRevocationComment ensures that no value is present for RevocationComment, not even an explicit nil
func (o *ModelsCertificateRetrievalResponse) UnsetRevocationComment() {
o.RevocationComment.Unset()
}
// GetCertificateAuthorityId returns the CertificateAuthorityId field value if set, zero value otherwise.
func (o *ModelsCertificateRetrievalResponse) GetCertificateAuthorityId() int32 {
if o == nil || isNil(o.CertificateAuthorityId) {
var ret int32
return ret
}
return *o.CertificateAuthorityId
}
// GetCertificateAuthorityIdOk returns a tuple with the CertificateAuthorityId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ModelsCertificateRetrievalResponse) GetCertificateAuthorityIdOk() (*int32, bool) {
if o == nil || isNil(o.CertificateAuthorityId) {
return nil, false
}
return o.CertificateAuthorityId, true
}
// HasCertificateAuthorityId returns a boolean if a field has been set.
func (o *ModelsCertificateRetrievalResponse) HasCertificateAuthorityId() bool {
if o != nil && !isNil(o.CertificateAuthorityId) {
return true
}
return false
}
// SetCertificateAuthorityId gets a reference to the given int32 and assigns it to the CertificateAuthorityId field.
func (o *ModelsCertificateRetrievalResponse) SetCertificateAuthorityId(v int32) {
o.CertificateAuthorityId = &v
}
// GetCertificateAuthorityName returns the CertificateAuthorityName field value if set, zero value otherwise.
func (o *ModelsCertificateRetrievalResponse) GetCertificateAuthorityName() string {
if o == nil || isNil(o.CertificateAuthorityName) {
var ret string
return ret
}
return *o.CertificateAuthorityName
}
// GetCertificateAuthorityNameOk returns a tuple with the CertificateAuthorityName field value if set, nil otherwise