-
Notifications
You must be signed in to change notification settings - Fork 1
/
model_device_verification_response.go
901 lines (770 loc) · 29.1 KB
/
model_device_verification_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
/*
Authlete API
Authlete API Document.
API version: 2.3.12
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package authlete
import (
"encoding/json"
)
// checks if the DeviceVerificationResponse type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &DeviceVerificationResponse{}
// DeviceVerificationResponse struct for DeviceVerificationResponse
type DeviceVerificationResponse struct {
// The code which represents the result of the API call.
ResultCode *string `json:"resultCode,omitempty"`
// A short message which explains the result of the API call.
ResultMessage *string `json:"resultMessage,omitempty"`
// The next action that the authorization server implementation should take.
Action *string `json:"action,omitempty"`
// The client ID of the client application to which the user code has been issued.
ClientId *int64 `json:"clientId,omitempty"`
// The client ID alias of the client application to which the user code has been issued.
ClientIdAlias *string `json:"clientIdAlias,omitempty"`
// `true` if the value of the `client_id` request parameter included in the device authorization request is the client ID alias. `false` if the value is the original numeric client ID.
ClientIdAliasUsed *bool `json:"clientIdAliasUsed,omitempty"`
// The name of the client application to which the user code has been issued.
ClientName *string `json:"clientName,omitempty"`
// The scopes requested by the device authorization request. Note that `description` property and `descriptions` property of each scope object in the array contained in this property is always null even if descriptions of the scopes are registered.
Scopes []Scope `json:"scopes,omitempty"`
// The names of the claims which were requested indirectly via some special scopes. See [5.4. Requesting Claims using Scope Values](https://openid.net/specs/openid-connect-core-1_0.html#ScopeClaims) in OpenID Connect Core 1.0 for details. This property is always `null` if the `scope` request parameter of the device authorization request does not include the `openid` scope even if special scopes (such as `profile`) are included in the request (unless the openid scope is included in the default set of scopes which is used when the `scope` request parameter is omitted).
ClaimNames []string `json:"claimNames,omitempty"`
// The list of ACR values requested by the device authorization request.
Acrs []string `json:"acrs,omitempty"`
// The resources specified by the `resource` request parameters or by the `resource` property in the request object. If both are given, the values in the request object should be set. See \"Resource Indicators for OAuth 2.0\" for details.
Resources []string `json:"resources,omitempty"`
AuthorizationDetails *AuthzDetails `json:"authorizationDetails,omitempty"`
// The attributes of this service that the client application belongs to.
ServiceAttributes []Pair `json:"serviceAttributes,omitempty"`
// The attributes of the client.
ClientAttributes []Pair `json:"clientAttributes,omitempty"`
// The dynamic scopes which the client application requested by the scope request parameter.
DynamicScopes []DynamicScope `json:"dynamicScopes,omitempty"`
// Get the date in milliseconds since the Unix epoch (1970-01-01) at which the user code will expire.
ExpiresAt *int64 `json:"expiresAt,omitempty"`
GmAction *GrantManagementAction `json:"gmAction,omitempty"`
// the value of the `grant_id` request parameter of the device authorization request. The `grant_id` request parameter is defined in [Grant Management for OAuth 2.0](https://openid.net/specs/fapi-grant-management.html) , which is supported by Authlete 2.3 and newer versions.
GrantId *string `json:"grantId,omitempty"`
Grant *Grant `json:"grant,omitempty"`
// The subject identifying the user who has given the grant identified by the `grant_id` request parameter of the device authorization request. Authlete 2.3 and newer versions support <a href= \"https://openid.net/specs/fapi-grant-management.html\">Grant Management for OAuth 2.0</a>. An authorization request may contain a `grant_id` request parameter which is defined in the specification. If the value of the request parameter is valid, {@link #getGrantSubject()} will return the subject of the user who has given the grant to the client application. Authorization server implementations may use the value returned from {@link #getGrantSubject()} in order to determine the user to authenticate. The user your system will authenticate during the authorization process (or has already authenticated) may be different from the user of the grant. The first implementer's draft of \"Grant Management for OAuth 2.0\" does not mention anything about the case, so the behavior in the case is left to implementations. Authlete will not perform the grant management action when the `subject` passed to Authlete does not match the user of the grant.
GrantSubject *string `json:"grantSubject,omitempty"`
// The entity ID of the client.
ClientEntityId *string `json:"clientEntityId,omitempty"`
// Flag which indicates whether the entity ID of the client was used when the request for the access token was made.
ClientEntityIdUsed *bool `json:"clientEntityIdUsed,omitempty"`
}
// NewDeviceVerificationResponse instantiates a new DeviceVerificationResponse 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 NewDeviceVerificationResponse() *DeviceVerificationResponse {
this := DeviceVerificationResponse{}
return &this
}
// NewDeviceVerificationResponseWithDefaults instantiates a new DeviceVerificationResponse 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 NewDeviceVerificationResponseWithDefaults() *DeviceVerificationResponse {
this := DeviceVerificationResponse{}
return &this
}
// GetResultCode returns the ResultCode field value if set, zero value otherwise.
func (o *DeviceVerificationResponse) GetResultCode() string {
if o == nil || isNil(o.ResultCode) {
var ret string
return ret
}
return *o.ResultCode
}
// GetResultCodeOk returns a tuple with the ResultCode field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DeviceVerificationResponse) GetResultCodeOk() (*string, bool) {
if o == nil || isNil(o.ResultCode) {
return nil, false
}
return o.ResultCode, true
}
// HasResultCode returns a boolean if a field has been set.
func (o *DeviceVerificationResponse) HasResultCode() bool {
if o != nil && !isNil(o.ResultCode) {
return true
}
return false
}
// SetResultCode gets a reference to the given string and assigns it to the ResultCode field.
func (o *DeviceVerificationResponse) SetResultCode(v string) {
o.ResultCode = &v
}
// GetResultMessage returns the ResultMessage field value if set, zero value otherwise.
func (o *DeviceVerificationResponse) GetResultMessage() string {
if o == nil || isNil(o.ResultMessage) {
var ret string
return ret
}
return *o.ResultMessage
}
// GetResultMessageOk returns a tuple with the ResultMessage field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DeviceVerificationResponse) GetResultMessageOk() (*string, bool) {
if o == nil || isNil(o.ResultMessage) {
return nil, false
}
return o.ResultMessage, true
}
// HasResultMessage returns a boolean if a field has been set.
func (o *DeviceVerificationResponse) HasResultMessage() bool {
if o != nil && !isNil(o.ResultMessage) {
return true
}
return false
}
// SetResultMessage gets a reference to the given string and assigns it to the ResultMessage field.
func (o *DeviceVerificationResponse) SetResultMessage(v string) {
o.ResultMessage = &v
}
// GetAction returns the Action field value if set, zero value otherwise.
func (o *DeviceVerificationResponse) GetAction() string {
if o == nil || isNil(o.Action) {
var ret string
return ret
}
return *o.Action
}
// GetActionOk returns a tuple with the Action field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DeviceVerificationResponse) GetActionOk() (*string, bool) {
if o == nil || isNil(o.Action) {
return nil, false
}
return o.Action, true
}
// HasAction returns a boolean if a field has been set.
func (o *DeviceVerificationResponse) HasAction() bool {
if o != nil && !isNil(o.Action) {
return true
}
return false
}
// SetAction gets a reference to the given string and assigns it to the Action field.
func (o *DeviceVerificationResponse) SetAction(v string) {
o.Action = &v
}
// GetClientId returns the ClientId field value if set, zero value otherwise.
func (o *DeviceVerificationResponse) GetClientId() int64 {
if o == nil || isNil(o.ClientId) {
var ret int64
return ret
}
return *o.ClientId
}
// GetClientIdOk returns a tuple with the ClientId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DeviceVerificationResponse) GetClientIdOk() (*int64, bool) {
if o == nil || isNil(o.ClientId) {
return nil, false
}
return o.ClientId, true
}
// HasClientId returns a boolean if a field has been set.
func (o *DeviceVerificationResponse) HasClientId() bool {
if o != nil && !isNil(o.ClientId) {
return true
}
return false
}
// SetClientId gets a reference to the given int64 and assigns it to the ClientId field.
func (o *DeviceVerificationResponse) SetClientId(v int64) {
o.ClientId = &v
}
// GetClientIdAlias returns the ClientIdAlias field value if set, zero value otherwise.
func (o *DeviceVerificationResponse) GetClientIdAlias() string {
if o == nil || isNil(o.ClientIdAlias) {
var ret string
return ret
}
return *o.ClientIdAlias
}
// GetClientIdAliasOk returns a tuple with the ClientIdAlias field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DeviceVerificationResponse) GetClientIdAliasOk() (*string, bool) {
if o == nil || isNil(o.ClientIdAlias) {
return nil, false
}
return o.ClientIdAlias, true
}
// HasClientIdAlias returns a boolean if a field has been set.
func (o *DeviceVerificationResponse) HasClientIdAlias() bool {
if o != nil && !isNil(o.ClientIdAlias) {
return true
}
return false
}
// SetClientIdAlias gets a reference to the given string and assigns it to the ClientIdAlias field.
func (o *DeviceVerificationResponse) SetClientIdAlias(v string) {
o.ClientIdAlias = &v
}
// GetClientIdAliasUsed returns the ClientIdAliasUsed field value if set, zero value otherwise.
func (o *DeviceVerificationResponse) GetClientIdAliasUsed() bool {
if o == nil || isNil(o.ClientIdAliasUsed) {
var ret bool
return ret
}
return *o.ClientIdAliasUsed
}
// GetClientIdAliasUsedOk returns a tuple with the ClientIdAliasUsed field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DeviceVerificationResponse) GetClientIdAliasUsedOk() (*bool, bool) {
if o == nil || isNil(o.ClientIdAliasUsed) {
return nil, false
}
return o.ClientIdAliasUsed, true
}
// HasClientIdAliasUsed returns a boolean if a field has been set.
func (o *DeviceVerificationResponse) HasClientIdAliasUsed() bool {
if o != nil && !isNil(o.ClientIdAliasUsed) {
return true
}
return false
}
// SetClientIdAliasUsed gets a reference to the given bool and assigns it to the ClientIdAliasUsed field.
func (o *DeviceVerificationResponse) SetClientIdAliasUsed(v bool) {
o.ClientIdAliasUsed = &v
}
// GetClientName returns the ClientName field value if set, zero value otherwise.
func (o *DeviceVerificationResponse) GetClientName() string {
if o == nil || isNil(o.ClientName) {
var ret string
return ret
}
return *o.ClientName
}
// GetClientNameOk returns a tuple with the ClientName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DeviceVerificationResponse) GetClientNameOk() (*string, bool) {
if o == nil || isNil(o.ClientName) {
return nil, false
}
return o.ClientName, true
}
// HasClientName returns a boolean if a field has been set.
func (o *DeviceVerificationResponse) HasClientName() bool {
if o != nil && !isNil(o.ClientName) {
return true
}
return false
}
// SetClientName gets a reference to the given string and assigns it to the ClientName field.
func (o *DeviceVerificationResponse) SetClientName(v string) {
o.ClientName = &v
}
// GetScopes returns the Scopes field value if set, zero value otherwise.
func (o *DeviceVerificationResponse) GetScopes() []Scope {
if o == nil || isNil(o.Scopes) {
var ret []Scope
return ret
}
return o.Scopes
}
// GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DeviceVerificationResponse) GetScopesOk() ([]Scope, bool) {
if o == nil || isNil(o.Scopes) {
return nil, false
}
return o.Scopes, true
}
// HasScopes returns a boolean if a field has been set.
func (o *DeviceVerificationResponse) HasScopes() bool {
if o != nil && !isNil(o.Scopes) {
return true
}
return false
}
// SetScopes gets a reference to the given []Scope and assigns it to the Scopes field.
func (o *DeviceVerificationResponse) SetScopes(v []Scope) {
o.Scopes = v
}
// GetClaimNames returns the ClaimNames field value if set, zero value otherwise.
func (o *DeviceVerificationResponse) GetClaimNames() []string {
if o == nil || isNil(o.ClaimNames) {
var ret []string
return ret
}
return o.ClaimNames
}
// GetClaimNamesOk returns a tuple with the ClaimNames field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DeviceVerificationResponse) GetClaimNamesOk() ([]string, bool) {
if o == nil || isNil(o.ClaimNames) {
return nil, false
}
return o.ClaimNames, true
}
// HasClaimNames returns a boolean if a field has been set.
func (o *DeviceVerificationResponse) HasClaimNames() bool {
if o != nil && !isNil(o.ClaimNames) {
return true
}
return false
}
// SetClaimNames gets a reference to the given []string and assigns it to the ClaimNames field.
func (o *DeviceVerificationResponse) SetClaimNames(v []string) {
o.ClaimNames = v
}
// GetAcrs returns the Acrs field value if set, zero value otherwise.
func (o *DeviceVerificationResponse) GetAcrs() []string {
if o == nil || isNil(o.Acrs) {
var ret []string
return ret
}
return o.Acrs
}
// GetAcrsOk returns a tuple with the Acrs field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DeviceVerificationResponse) GetAcrsOk() ([]string, bool) {
if o == nil || isNil(o.Acrs) {
return nil, false
}
return o.Acrs, true
}
// HasAcrs returns a boolean if a field has been set.
func (o *DeviceVerificationResponse) HasAcrs() bool {
if o != nil && !isNil(o.Acrs) {
return true
}
return false
}
// SetAcrs gets a reference to the given []string and assigns it to the Acrs field.
func (o *DeviceVerificationResponse) SetAcrs(v []string) {
o.Acrs = v
}
// GetResources returns the Resources field value if set, zero value otherwise.
func (o *DeviceVerificationResponse) GetResources() []string {
if o == nil || isNil(o.Resources) {
var ret []string
return ret
}
return o.Resources
}
// GetResourcesOk returns a tuple with the Resources field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DeviceVerificationResponse) GetResourcesOk() ([]string, bool) {
if o == nil || isNil(o.Resources) {
return nil, false
}
return o.Resources, true
}
// HasResources returns a boolean if a field has been set.
func (o *DeviceVerificationResponse) HasResources() bool {
if o != nil && !isNil(o.Resources) {
return true
}
return false
}
// SetResources gets a reference to the given []string and assigns it to the Resources field.
func (o *DeviceVerificationResponse) SetResources(v []string) {
o.Resources = v
}
// GetAuthorizationDetails returns the AuthorizationDetails field value if set, zero value otherwise.
func (o *DeviceVerificationResponse) GetAuthorizationDetails() AuthzDetails {
if o == nil || isNil(o.AuthorizationDetails) {
var ret AuthzDetails
return ret
}
return *o.AuthorizationDetails
}
// GetAuthorizationDetailsOk returns a tuple with the AuthorizationDetails field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DeviceVerificationResponse) GetAuthorizationDetailsOk() (*AuthzDetails, bool) {
if o == nil || isNil(o.AuthorizationDetails) {
return nil, false
}
return o.AuthorizationDetails, true
}
// HasAuthorizationDetails returns a boolean if a field has been set.
func (o *DeviceVerificationResponse) HasAuthorizationDetails() bool {
if o != nil && !isNil(o.AuthorizationDetails) {
return true
}
return false
}
// SetAuthorizationDetails gets a reference to the given AuthzDetails and assigns it to the AuthorizationDetails field.
func (o *DeviceVerificationResponse) SetAuthorizationDetails(v AuthzDetails) {
o.AuthorizationDetails = &v
}
// GetServiceAttributes returns the ServiceAttributes field value if set, zero value otherwise.
func (o *DeviceVerificationResponse) GetServiceAttributes() []Pair {
if o == nil || isNil(o.ServiceAttributes) {
var ret []Pair
return ret
}
return o.ServiceAttributes
}
// GetServiceAttributesOk returns a tuple with the ServiceAttributes field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DeviceVerificationResponse) GetServiceAttributesOk() ([]Pair, bool) {
if o == nil || isNil(o.ServiceAttributes) {
return nil, false
}
return o.ServiceAttributes, true
}
// HasServiceAttributes returns a boolean if a field has been set.
func (o *DeviceVerificationResponse) HasServiceAttributes() bool {
if o != nil && !isNil(o.ServiceAttributes) {
return true
}
return false
}
// SetServiceAttributes gets a reference to the given []Pair and assigns it to the ServiceAttributes field.
func (o *DeviceVerificationResponse) SetServiceAttributes(v []Pair) {
o.ServiceAttributes = v
}
// GetClientAttributes returns the ClientAttributes field value if set, zero value otherwise.
func (o *DeviceVerificationResponse) GetClientAttributes() []Pair {
if o == nil || isNil(o.ClientAttributes) {
var ret []Pair
return ret
}
return o.ClientAttributes
}
// GetClientAttributesOk returns a tuple with the ClientAttributes field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DeviceVerificationResponse) GetClientAttributesOk() ([]Pair, bool) {
if o == nil || isNil(o.ClientAttributes) {
return nil, false
}
return o.ClientAttributes, true
}
// HasClientAttributes returns a boolean if a field has been set.
func (o *DeviceVerificationResponse) HasClientAttributes() bool {
if o != nil && !isNil(o.ClientAttributes) {
return true
}
return false
}
// SetClientAttributes gets a reference to the given []Pair and assigns it to the ClientAttributes field.
func (o *DeviceVerificationResponse) SetClientAttributes(v []Pair) {
o.ClientAttributes = v
}
// GetDynamicScopes returns the DynamicScopes field value if set, zero value otherwise.
func (o *DeviceVerificationResponse) GetDynamicScopes() []DynamicScope {
if o == nil || isNil(o.DynamicScopes) {
var ret []DynamicScope
return ret
}
return o.DynamicScopes
}
// GetDynamicScopesOk returns a tuple with the DynamicScopes field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DeviceVerificationResponse) GetDynamicScopesOk() ([]DynamicScope, bool) {
if o == nil || isNil(o.DynamicScopes) {
return nil, false
}
return o.DynamicScopes, true
}
// HasDynamicScopes returns a boolean if a field has been set.
func (o *DeviceVerificationResponse) HasDynamicScopes() bool {
if o != nil && !isNil(o.DynamicScopes) {
return true
}
return false
}
// SetDynamicScopes gets a reference to the given []DynamicScope and assigns it to the DynamicScopes field.
func (o *DeviceVerificationResponse) SetDynamicScopes(v []DynamicScope) {
o.DynamicScopes = v
}
// GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise.
func (o *DeviceVerificationResponse) GetExpiresAt() int64 {
if o == nil || isNil(o.ExpiresAt) {
var ret int64
return ret
}
return *o.ExpiresAt
}
// GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DeviceVerificationResponse) GetExpiresAtOk() (*int64, bool) {
if o == nil || isNil(o.ExpiresAt) {
return nil, false
}
return o.ExpiresAt, true
}
// HasExpiresAt returns a boolean if a field has been set.
func (o *DeviceVerificationResponse) HasExpiresAt() bool {
if o != nil && !isNil(o.ExpiresAt) {
return true
}
return false
}
// SetExpiresAt gets a reference to the given int64 and assigns it to the ExpiresAt field.
func (o *DeviceVerificationResponse) SetExpiresAt(v int64) {
o.ExpiresAt = &v
}
// GetGmAction returns the GmAction field value if set, zero value otherwise.
func (o *DeviceVerificationResponse) GetGmAction() GrantManagementAction {
if o == nil || isNil(o.GmAction) {
var ret GrantManagementAction
return ret
}
return *o.GmAction
}
// GetGmActionOk returns a tuple with the GmAction field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DeviceVerificationResponse) GetGmActionOk() (*GrantManagementAction, bool) {
if o == nil || isNil(o.GmAction) {
return nil, false
}
return o.GmAction, true
}
// HasGmAction returns a boolean if a field has been set.
func (o *DeviceVerificationResponse) HasGmAction() bool {
if o != nil && !isNil(o.GmAction) {
return true
}
return false
}
// SetGmAction gets a reference to the given GrantManagementAction and assigns it to the GmAction field.
func (o *DeviceVerificationResponse) SetGmAction(v GrantManagementAction) {
o.GmAction = &v
}
// GetGrantId returns the GrantId field value if set, zero value otherwise.
func (o *DeviceVerificationResponse) GetGrantId() string {
if o == nil || isNil(o.GrantId) {
var ret string
return ret
}
return *o.GrantId
}
// GetGrantIdOk returns a tuple with the GrantId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DeviceVerificationResponse) GetGrantIdOk() (*string, bool) {
if o == nil || isNil(o.GrantId) {
return nil, false
}
return o.GrantId, true
}
// HasGrantId returns a boolean if a field has been set.
func (o *DeviceVerificationResponse) HasGrantId() bool {
if o != nil && !isNil(o.GrantId) {
return true
}
return false
}
// SetGrantId gets a reference to the given string and assigns it to the GrantId field.
func (o *DeviceVerificationResponse) SetGrantId(v string) {
o.GrantId = &v
}
// GetGrant returns the Grant field value if set, zero value otherwise.
func (o *DeviceVerificationResponse) GetGrant() Grant {
if o == nil || isNil(o.Grant) {
var ret Grant
return ret
}
return *o.Grant
}
// GetGrantOk returns a tuple with the Grant field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DeviceVerificationResponse) GetGrantOk() (*Grant, bool) {
if o == nil || isNil(o.Grant) {
return nil, false
}
return o.Grant, true
}
// HasGrant returns a boolean if a field has been set.
func (o *DeviceVerificationResponse) HasGrant() bool {
if o != nil && !isNil(o.Grant) {
return true
}
return false
}
// SetGrant gets a reference to the given Grant and assigns it to the Grant field.
func (o *DeviceVerificationResponse) SetGrant(v Grant) {
o.Grant = &v
}
// GetGrantSubject returns the GrantSubject field value if set, zero value otherwise.
func (o *DeviceVerificationResponse) GetGrantSubject() string {
if o == nil || isNil(o.GrantSubject) {
var ret string
return ret
}
return *o.GrantSubject
}
// GetGrantSubjectOk returns a tuple with the GrantSubject field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DeviceVerificationResponse) GetGrantSubjectOk() (*string, bool) {
if o == nil || isNil(o.GrantSubject) {
return nil, false
}
return o.GrantSubject, true
}
// HasGrantSubject returns a boolean if a field has been set.
func (o *DeviceVerificationResponse) HasGrantSubject() bool {
if o != nil && !isNil(o.GrantSubject) {
return true
}
return false
}
// SetGrantSubject gets a reference to the given string and assigns it to the GrantSubject field.
func (o *DeviceVerificationResponse) SetGrantSubject(v string) {
o.GrantSubject = &v
}
// GetClientEntityId returns the ClientEntityId field value if set, zero value otherwise.
func (o *DeviceVerificationResponse) GetClientEntityId() string {
if o == nil || isNil(o.ClientEntityId) {
var ret string
return ret
}
return *o.ClientEntityId
}
// GetClientEntityIdOk returns a tuple with the ClientEntityId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DeviceVerificationResponse) GetClientEntityIdOk() (*string, bool) {
if o == nil || isNil(o.ClientEntityId) {
return nil, false
}
return o.ClientEntityId, true
}
// HasClientEntityId returns a boolean if a field has been set.
func (o *DeviceVerificationResponse) HasClientEntityId() bool {
if o != nil && !isNil(o.ClientEntityId) {
return true
}
return false
}
// SetClientEntityId gets a reference to the given string and assigns it to the ClientEntityId field.
func (o *DeviceVerificationResponse) SetClientEntityId(v string) {
o.ClientEntityId = &v
}
// GetClientEntityIdUsed returns the ClientEntityIdUsed field value if set, zero value otherwise.
func (o *DeviceVerificationResponse) GetClientEntityIdUsed() bool {
if o == nil || isNil(o.ClientEntityIdUsed) {
var ret bool
return ret
}
return *o.ClientEntityIdUsed
}
// GetClientEntityIdUsedOk returns a tuple with the ClientEntityIdUsed field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DeviceVerificationResponse) GetClientEntityIdUsedOk() (*bool, bool) {
if o == nil || isNil(o.ClientEntityIdUsed) {
return nil, false
}
return o.ClientEntityIdUsed, true
}
// HasClientEntityIdUsed returns a boolean if a field has been set.
func (o *DeviceVerificationResponse) HasClientEntityIdUsed() bool {
if o != nil && !isNil(o.ClientEntityIdUsed) {
return true
}
return false
}
// SetClientEntityIdUsed gets a reference to the given bool and assigns it to the ClientEntityIdUsed field.
func (o *DeviceVerificationResponse) SetClientEntityIdUsed(v bool) {
o.ClientEntityIdUsed = &v
}
func (o DeviceVerificationResponse) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o DeviceVerificationResponse) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !isNil(o.ResultCode) {
toSerialize["resultCode"] = o.ResultCode
}
if !isNil(o.ResultMessage) {
toSerialize["resultMessage"] = o.ResultMessage
}
if !isNil(o.Action) {
toSerialize["action"] = o.Action
}
if !isNil(o.ClientId) {
toSerialize["clientId"] = o.ClientId
}
if !isNil(o.ClientIdAlias) {
toSerialize["clientIdAlias"] = o.ClientIdAlias
}
if !isNil(o.ClientIdAliasUsed) {
toSerialize["clientIdAliasUsed"] = o.ClientIdAliasUsed
}
if !isNil(o.ClientName) {
toSerialize["clientName"] = o.ClientName
}
if !isNil(o.Scopes) {
toSerialize["scopes"] = o.Scopes
}
if !isNil(o.ClaimNames) {
toSerialize["claimNames"] = o.ClaimNames
}
if !isNil(o.Acrs) {
toSerialize["acrs"] = o.Acrs
}
if !isNil(o.Resources) {
toSerialize["resources"] = o.Resources
}
if !isNil(o.AuthorizationDetails) {
toSerialize["authorizationDetails"] = o.AuthorizationDetails
}
if !isNil(o.ServiceAttributes) {
toSerialize["serviceAttributes"] = o.ServiceAttributes
}
if !isNil(o.ClientAttributes) {
toSerialize["clientAttributes"] = o.ClientAttributes
}
if !isNil(o.DynamicScopes) {
toSerialize["dynamicScopes"] = o.DynamicScopes
}
if !isNil(o.ExpiresAt) {
toSerialize["expiresAt"] = o.ExpiresAt
}
if !isNil(o.GmAction) {
toSerialize["gmAction"] = o.GmAction
}
if !isNil(o.GrantId) {
toSerialize["grantId"] = o.GrantId
}
if !isNil(o.Grant) {
toSerialize["grant"] = o.Grant
}
if !isNil(o.GrantSubject) {
toSerialize["grantSubject"] = o.GrantSubject
}
if !isNil(o.ClientEntityId) {
toSerialize["clientEntityId"] = o.ClientEntityId
}
if !isNil(o.ClientEntityIdUsed) {
toSerialize["clientEntityIdUsed"] = o.ClientEntityIdUsed
}
return toSerialize, nil
}
type NullableDeviceVerificationResponse struct {
value *DeviceVerificationResponse
isSet bool
}
func (v NullableDeviceVerificationResponse) Get() *DeviceVerificationResponse {
return v.value
}
func (v *NullableDeviceVerificationResponse) Set(val *DeviceVerificationResponse) {
v.value = val
v.isSet = true
}
func (v NullableDeviceVerificationResponse) IsSet() bool {
return v.isSet
}
func (v *NullableDeviceVerificationResponse) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableDeviceVerificationResponse(val *DeviceVerificationResponse) *NullableDeviceVerificationResponse {
return &NullableDeviceVerificationResponse{value: val, isSet: true}
}
func (v NullableDeviceVerificationResponse) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableDeviceVerificationResponse) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}