-
Notifications
You must be signed in to change notification settings - Fork 3
/
model_certification_signed_off_certification.go
648 lines (546 loc) · 19.2 KB
/
model_certification_signed_off_certification.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
/*
IdentityNow Beta API
Use these APIs to interact with the IdentityNow 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 beta
import (
"encoding/json"
"time"
)
// checks if the CertificationSignedOffCertification type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &CertificationSignedOffCertification{}
// CertificationSignedOffCertification The certification campaign that was signed off on.
type CertificationSignedOffCertification struct {
// Unique ID of the certification.
Id string `json:"id"`
// The name of the certification.
Name string `json:"name"`
// The date and time the certification was created.
Created time.Time `json:"created"`
// The date and time the certification was last modified.
Modified NullableTime `json:"modified,omitempty"`
CampaignRef CampaignReference `json:"campaignRef"`
Phase CertificationPhase `json:"phase"`
// The due date of the certification.
Due time.Time `json:"due"`
// The date the reviewer signed off on the certification.
Signed time.Time `json:"signed"`
Reviewer Reviewer `json:"reviewer"`
Reassignment *Reassignment `json:"reassignment,omitempty"`
// Indicates it the certification has any errors.
HasErrors bool `json:"hasErrors"`
// A message indicating what the error is.
ErrorMessage NullableString `json:"errorMessage,omitempty"`
// Indicates if all certification decisions have been made.
Completed bool `json:"completed"`
// The number of approve/revoke/acknowledge decisions that have been made by the reviewer.
DecisionsMade int32 `json:"decisionsMade"`
// The total number of approve/revoke/acknowledge decisions for the certification.
DecisionsTotal int32 `json:"decisionsTotal"`
// The number of entities (identities, access profiles, roles, etc.) for which all decisions have been made and are complete.
EntitiesCompleted int32 `json:"entitiesCompleted"`
// The total number of entities (identities, access profiles, roles, etc.) in the certification, both complete and incomplete.
EntitiesTotal int32 `json:"entitiesTotal"`
AdditionalProperties map[string]interface{}
}
type _CertificationSignedOffCertification CertificationSignedOffCertification
// NewCertificationSignedOffCertification instantiates a new CertificationSignedOffCertification 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 NewCertificationSignedOffCertification(id string, name string, created time.Time, campaignRef CampaignReference, phase CertificationPhase, due time.Time, signed time.Time, reviewer Reviewer, hasErrors bool, completed bool, decisionsMade int32, decisionsTotal int32, entitiesCompleted int32, entitiesTotal int32) *CertificationSignedOffCertification {
this := CertificationSignedOffCertification{}
this.CampaignRef = campaignRef
this.Phase = phase
this.Due = due
this.Signed = signed
this.Reviewer = reviewer
this.HasErrors = hasErrors
this.Completed = completed
this.DecisionsMade = decisionsMade
this.DecisionsTotal = decisionsTotal
this.EntitiesCompleted = entitiesCompleted
this.EntitiesTotal = entitiesTotal
return &this
}
// NewCertificationSignedOffCertificationWithDefaults instantiates a new CertificationSignedOffCertification 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 NewCertificationSignedOffCertificationWithDefaults() *CertificationSignedOffCertification {
this := CertificationSignedOffCertification{}
return &this
}
// GetId returns the Id field value
func (o *CertificationSignedOffCertification) 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 *CertificationSignedOffCertification) GetIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Id, true
}
// SetId sets field value
func (o *CertificationSignedOffCertification) SetId(v string) {
o.Id = v
}
// GetName returns the Name field value
func (o *CertificationSignedOffCertification) GetName() string {
if o == nil {
var ret string
return ret
}
return o.Name
}
// GetNameOk returns a tuple with the Name field value
// and a boolean to check if the value has been set.
func (o *CertificationSignedOffCertification) GetNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Name, true
}
// SetName sets field value
func (o *CertificationSignedOffCertification) SetName(v string) {
o.Name = v
}
// GetCreated returns the Created field value
func (o *CertificationSignedOffCertification) GetCreated() time.Time {
if o == nil {
var ret time.Time
return ret
}
return o.Created
}
// GetCreatedOk returns a tuple with the Created field value
// and a boolean to check if the value has been set.
func (o *CertificationSignedOffCertification) GetCreatedOk() (*time.Time, bool) {
if o == nil {
return nil, false
}
return &o.Created, true
}
// SetCreated sets field value
func (o *CertificationSignedOffCertification) SetCreated(v time.Time) {
o.Created = v
}
// GetModified returns the Modified field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CertificationSignedOffCertification) GetModified() time.Time {
if o == nil || isNil(o.Modified.Get()) {
var ret time.Time
return ret
}
return *o.Modified.Get()
}
// GetModifiedOk returns a tuple with the Modified 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 *CertificationSignedOffCertification) GetModifiedOk() (*time.Time, bool) {
if o == nil {
return nil, false
}
return o.Modified.Get(), o.Modified.IsSet()
}
// HasModified returns a boolean if a field has been set.
func (o *CertificationSignedOffCertification) HasModified() bool {
if o != nil && o.Modified.IsSet() {
return true
}
return false
}
// SetModified gets a reference to the given NullableTime and assigns it to the Modified field.
func (o *CertificationSignedOffCertification) SetModified(v time.Time) {
o.Modified.Set(&v)
}
// SetModifiedNil sets the value for Modified to be an explicit nil
func (o *CertificationSignedOffCertification) SetModifiedNil() {
o.Modified.Set(nil)
}
// UnsetModified ensures that no value is present for Modified, not even an explicit nil
func (o *CertificationSignedOffCertification) UnsetModified() {
o.Modified.Unset()
}
// GetCampaignRef returns the CampaignRef field value
func (o *CertificationSignedOffCertification) GetCampaignRef() CampaignReference {
if o == nil {
var ret CampaignReference
return ret
}
return o.CampaignRef
}
// GetCampaignRefOk returns a tuple with the CampaignRef field value
// and a boolean to check if the value has been set.
func (o *CertificationSignedOffCertification) GetCampaignRefOk() (*CampaignReference, bool) {
if o == nil {
return nil, false
}
return &o.CampaignRef, true
}
// SetCampaignRef sets field value
func (o *CertificationSignedOffCertification) SetCampaignRef(v CampaignReference) {
o.CampaignRef = v
}
// GetPhase returns the Phase field value
func (o *CertificationSignedOffCertification) GetPhase() CertificationPhase {
if o == nil {
var ret CertificationPhase
return ret
}
return o.Phase
}
// GetPhaseOk returns a tuple with the Phase field value
// and a boolean to check if the value has been set.
func (o *CertificationSignedOffCertification) GetPhaseOk() (*CertificationPhase, bool) {
if o == nil {
return nil, false
}
return &o.Phase, true
}
// SetPhase sets field value
func (o *CertificationSignedOffCertification) SetPhase(v CertificationPhase) {
o.Phase = v
}
// GetDue returns the Due field value
func (o *CertificationSignedOffCertification) GetDue() time.Time {
if o == nil {
var ret time.Time
return ret
}
return o.Due
}
// GetDueOk returns a tuple with the Due field value
// and a boolean to check if the value has been set.
func (o *CertificationSignedOffCertification) GetDueOk() (*time.Time, bool) {
if o == nil {
return nil, false
}
return &o.Due, true
}
// SetDue sets field value
func (o *CertificationSignedOffCertification) SetDue(v time.Time) {
o.Due = v
}
// GetSigned returns the Signed field value
func (o *CertificationSignedOffCertification) GetSigned() time.Time {
if o == nil {
var ret time.Time
return ret
}
return o.Signed
}
// GetSignedOk returns a tuple with the Signed field value
// and a boolean to check if the value has been set.
func (o *CertificationSignedOffCertification) GetSignedOk() (*time.Time, bool) {
if o == nil {
return nil, false
}
return &o.Signed, true
}
// SetSigned sets field value
func (o *CertificationSignedOffCertification) SetSigned(v time.Time) {
o.Signed = v
}
// GetReviewer returns the Reviewer field value
func (o *CertificationSignedOffCertification) GetReviewer() Reviewer {
if o == nil {
var ret Reviewer
return ret
}
return o.Reviewer
}
// GetReviewerOk returns a tuple with the Reviewer field value
// and a boolean to check if the value has been set.
func (o *CertificationSignedOffCertification) GetReviewerOk() (*Reviewer, bool) {
if o == nil {
return nil, false
}
return &o.Reviewer, true
}
// SetReviewer sets field value
func (o *CertificationSignedOffCertification) SetReviewer(v Reviewer) {
o.Reviewer = v
}
// GetReassignment returns the Reassignment field value if set, zero value otherwise.
func (o *CertificationSignedOffCertification) GetReassignment() Reassignment {
if o == nil || isNil(o.Reassignment) {
var ret Reassignment
return ret
}
return *o.Reassignment
}
// GetReassignmentOk returns a tuple with the Reassignment field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CertificationSignedOffCertification) GetReassignmentOk() (*Reassignment, bool) {
if o == nil || isNil(o.Reassignment) {
return nil, false
}
return o.Reassignment, true
}
// HasReassignment returns a boolean if a field has been set.
func (o *CertificationSignedOffCertification) HasReassignment() bool {
if o != nil && !isNil(o.Reassignment) {
return true
}
return false
}
// SetReassignment gets a reference to the given Reassignment and assigns it to the Reassignment field.
func (o *CertificationSignedOffCertification) SetReassignment(v Reassignment) {
o.Reassignment = &v
}
// GetHasErrors returns the HasErrors field value
func (o *CertificationSignedOffCertification) GetHasErrors() bool {
if o == nil {
var ret bool
return ret
}
return o.HasErrors
}
// GetHasErrorsOk returns a tuple with the HasErrors field value
// and a boolean to check if the value has been set.
func (o *CertificationSignedOffCertification) GetHasErrorsOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.HasErrors, true
}
// SetHasErrors sets field value
func (o *CertificationSignedOffCertification) SetHasErrors(v bool) {
o.HasErrors = v
}
// GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CertificationSignedOffCertification) GetErrorMessage() string {
if o == nil || isNil(o.ErrorMessage.Get()) {
var ret string
return ret
}
return *o.ErrorMessage.Get()
}
// GetErrorMessageOk returns a tuple with the ErrorMessage field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *CertificationSignedOffCertification) GetErrorMessageOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ErrorMessage.Get(), o.ErrorMessage.IsSet()
}
// HasErrorMessage returns a boolean if a field has been set.
func (o *CertificationSignedOffCertification) HasErrorMessage() bool {
if o != nil && o.ErrorMessage.IsSet() {
return true
}
return false
}
// SetErrorMessage gets a reference to the given NullableString and assigns it to the ErrorMessage field.
func (o *CertificationSignedOffCertification) SetErrorMessage(v string) {
o.ErrorMessage.Set(&v)
}
// SetErrorMessageNil sets the value for ErrorMessage to be an explicit nil
func (o *CertificationSignedOffCertification) SetErrorMessageNil() {
o.ErrorMessage.Set(nil)
}
// UnsetErrorMessage ensures that no value is present for ErrorMessage, not even an explicit nil
func (o *CertificationSignedOffCertification) UnsetErrorMessage() {
o.ErrorMessage.Unset()
}
// GetCompleted returns the Completed field value
func (o *CertificationSignedOffCertification) GetCompleted() bool {
if o == nil {
var ret bool
return ret
}
return o.Completed
}
// GetCompletedOk returns a tuple with the Completed field value
// and a boolean to check if the value has been set.
func (o *CertificationSignedOffCertification) GetCompletedOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.Completed, true
}
// SetCompleted sets field value
func (o *CertificationSignedOffCertification) SetCompleted(v bool) {
o.Completed = v
}
// GetDecisionsMade returns the DecisionsMade field value
func (o *CertificationSignedOffCertification) GetDecisionsMade() int32 {
if o == nil {
var ret int32
return ret
}
return o.DecisionsMade
}
// GetDecisionsMadeOk returns a tuple with the DecisionsMade field value
// and a boolean to check if the value has been set.
func (o *CertificationSignedOffCertification) GetDecisionsMadeOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.DecisionsMade, true
}
// SetDecisionsMade sets field value
func (o *CertificationSignedOffCertification) SetDecisionsMade(v int32) {
o.DecisionsMade = v
}
// GetDecisionsTotal returns the DecisionsTotal field value
func (o *CertificationSignedOffCertification) GetDecisionsTotal() int32 {
if o == nil {
var ret int32
return ret
}
return o.DecisionsTotal
}
// GetDecisionsTotalOk returns a tuple with the DecisionsTotal field value
// and a boolean to check if the value has been set.
func (o *CertificationSignedOffCertification) GetDecisionsTotalOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.DecisionsTotal, true
}
// SetDecisionsTotal sets field value
func (o *CertificationSignedOffCertification) SetDecisionsTotal(v int32) {
o.DecisionsTotal = v
}
// GetEntitiesCompleted returns the EntitiesCompleted field value
func (o *CertificationSignedOffCertification) GetEntitiesCompleted() int32 {
if o == nil {
var ret int32
return ret
}
return o.EntitiesCompleted
}
// GetEntitiesCompletedOk returns a tuple with the EntitiesCompleted field value
// and a boolean to check if the value has been set.
func (o *CertificationSignedOffCertification) GetEntitiesCompletedOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.EntitiesCompleted, true
}
// SetEntitiesCompleted sets field value
func (o *CertificationSignedOffCertification) SetEntitiesCompleted(v int32) {
o.EntitiesCompleted = v
}
// GetEntitiesTotal returns the EntitiesTotal field value
func (o *CertificationSignedOffCertification) GetEntitiesTotal() int32 {
if o == nil {
var ret int32
return ret
}
return o.EntitiesTotal
}
// GetEntitiesTotalOk returns a tuple with the EntitiesTotal field value
// and a boolean to check if the value has been set.
func (o *CertificationSignedOffCertification) GetEntitiesTotalOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.EntitiesTotal, true
}
// SetEntitiesTotal sets field value
func (o *CertificationSignedOffCertification) SetEntitiesTotal(v int32) {
o.EntitiesTotal = v
}
func (o CertificationSignedOffCertification) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o CertificationSignedOffCertification) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["id"] = o.Id
toSerialize["name"] = o.Name
toSerialize["created"] = o.Created
if o.Modified.IsSet() {
toSerialize["modified"] = o.Modified.Get()
}
toSerialize["campaignRef"] = o.CampaignRef
toSerialize["phase"] = o.Phase
toSerialize["due"] = o.Due
toSerialize["signed"] = o.Signed
toSerialize["reviewer"] = o.Reviewer
if !isNil(o.Reassignment) {
toSerialize["reassignment"] = o.Reassignment
}
toSerialize["hasErrors"] = o.HasErrors
if o.ErrorMessage.IsSet() {
toSerialize["errorMessage"] = o.ErrorMessage.Get()
}
toSerialize["completed"] = o.Completed
toSerialize["decisionsMade"] = o.DecisionsMade
toSerialize["decisionsTotal"] = o.DecisionsTotal
toSerialize["entitiesCompleted"] = o.EntitiesCompleted
toSerialize["entitiesTotal"] = o.EntitiesTotal
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return toSerialize, nil
}
func (o *CertificationSignedOffCertification) UnmarshalJSON(bytes []byte) (err error) {
varCertificationSignedOffCertification := _CertificationSignedOffCertification{}
if err = json.Unmarshal(bytes, &varCertificationSignedOffCertification); err == nil {
*o = CertificationSignedOffCertification(varCertificationSignedOffCertification)
}
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "name")
delete(additionalProperties, "created")
delete(additionalProperties, "modified")
delete(additionalProperties, "campaignRef")
delete(additionalProperties, "phase")
delete(additionalProperties, "due")
delete(additionalProperties, "signed")
delete(additionalProperties, "reviewer")
delete(additionalProperties, "reassignment")
delete(additionalProperties, "hasErrors")
delete(additionalProperties, "errorMessage")
delete(additionalProperties, "completed")
delete(additionalProperties, "decisionsMade")
delete(additionalProperties, "decisionsTotal")
delete(additionalProperties, "entitiesCompleted")
delete(additionalProperties, "entitiesTotal")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullableCertificationSignedOffCertification struct {
value *CertificationSignedOffCertification
isSet bool
}
func (v NullableCertificationSignedOffCertification) Get() *CertificationSignedOffCertification {
return v.value
}
func (v *NullableCertificationSignedOffCertification) Set(val *CertificationSignedOffCertification) {
v.value = val
v.isSet = true
}
func (v NullableCertificationSignedOffCertification) IsSet() bool {
return v.isSet
}
func (v *NullableCertificationSignedOffCertification) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableCertificationSignedOffCertification(val *CertificationSignedOffCertification) *NullableCertificationSignedOffCertification {
return &NullableCertificationSignedOffCertification{value: val, isSet: true}
}
func (v NullableCertificationSignedOffCertification) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableCertificationSignedOffCertification) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}