-
Notifications
You must be signed in to change notification settings - Fork 4
/
model_normalized_project_revision_third_party_provider.go
1073 lines (917 loc) · 36.2 KB
/
model_normalized_project_revision_third_party_provider.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
/*
Ory APIs
Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
API version: v1.11.7
Contact: support@ory.sh
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package client
import (
"encoding/json"
"time"
)
// checks if the NormalizedProjectRevisionThirdPartyProvider type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &NormalizedProjectRevisionThirdPartyProvider{}
// NormalizedProjectRevisionThirdPartyProvider struct for NormalizedProjectRevisionThirdPartyProvider
type NormalizedProjectRevisionThirdPartyProvider struct {
AdditionalIdTokenAudiences []string `json:"additional_id_token_audiences,omitempty"`
ApplePrivateKey NullableString `json:"apple_private_key,omitempty"`
// Apple Private Key Identifier Sign In with Apple Private Key Identifier needed for generating a JWT token for client secret
ApplePrivateKeyId *string `json:"apple_private_key_id,omitempty"`
// Apple Developer Team ID Apple Developer Team ID needed for generating a JWT token for client secret
AppleTeamId *string `json:"apple_team_id,omitempty"`
// AuthURL is the authorize url, typically something like: https://example.org/oauth2/auth Should only be used when the OAuth2 / OpenID Connect server is not supporting OpenID Connect Discovery and when `provider` is set to `generic`.
AuthUrl *string `json:"auth_url,omitempty"`
// Tenant is the Azure AD Tenant to use for authentication, and must be set when `provider` is set to `microsoft`. Can be either `common`, `organizations`, `consumers` for a multitenant application or a specific tenant like `8eaef023-2b34-4da1-9baa-8bc8c9d6a490` or `contoso.onmicrosoft.com`.
AzureTenant *string `json:"azure_tenant,omitempty"`
ClaimsSource NullableString `json:"claims_source,omitempty"`
// ClientID is the application's Client ID.
ClientId *string `json:"client_id,omitempty"`
ClientSecret NullableString `json:"client_secret,omitempty"`
// The Project's Revision Creation Date
CreatedAt *time.Time `json:"created_at,omitempty"`
Id *string `json:"id,omitempty"`
// IssuerURL is the OpenID Connect Server URL. You can leave this empty if `provider` is not set to `generic`. If set, neither `auth_url` nor `token_url` are required.
IssuerUrl *string `json:"issuer_url,omitempty"`
// Label represents an optional label which can be used in the UI generation.
Label *string `json:"label,omitempty"`
// Mapper specifies the JSONNet code snippet which uses the OpenID Connect Provider's data (e.g. GitHub or Google profile information) to hydrate the identity's data.
MapperUrl *string `json:"mapper_url,omitempty"`
OrganizationId NullableString `json:"organization_id,omitempty"`
// The Revision's ID this schema belongs to
ProjectRevisionId *string `json:"project_revision_id,omitempty"`
// Provider is either \"generic\" for a generic OAuth 2.0 / OpenID Connect Provider or one of: generic google github gitlab microsoft discord slack facebook vk yandex apple
Provider *string `json:"provider,omitempty"`
// ID is the provider's ID
ProviderId *string `json:"provider_id,omitempty"`
RequestedClaims map[string]interface{} `json:"requested_claims,omitempty"`
Scope []string `json:"scope,omitempty"`
// State indicates the state of the provider Only providers with state `enabled` will be used for authentication enabled ThirdPartyProviderStateEnabled disabled ThirdPartyProviderStateDisabled
State *string `json:"state,omitempty"`
SubjectSource NullableString `json:"subject_source,omitempty"`
// TokenURL is the token url, typically something like: https://example.org/oauth2/token Should only be used when the OAuth2 / OpenID Connect server is not supporting OpenID Connect Discovery and when `provider` is set to `generic`.
TokenUrl *string `json:"token_url,omitempty"`
// Last Time Project's Revision was Updated
UpdatedAt *time.Time `json:"updated_at,omitempty"`
AdditionalProperties map[string]interface{}
}
type _NormalizedProjectRevisionThirdPartyProvider NormalizedProjectRevisionThirdPartyProvider
// NewNormalizedProjectRevisionThirdPartyProvider instantiates a new NormalizedProjectRevisionThirdPartyProvider 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 NewNormalizedProjectRevisionThirdPartyProvider() *NormalizedProjectRevisionThirdPartyProvider {
this := NormalizedProjectRevisionThirdPartyProvider{}
return &this
}
// NewNormalizedProjectRevisionThirdPartyProviderWithDefaults instantiates a new NormalizedProjectRevisionThirdPartyProvider 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 NewNormalizedProjectRevisionThirdPartyProviderWithDefaults() *NormalizedProjectRevisionThirdPartyProvider {
this := NormalizedProjectRevisionThirdPartyProvider{}
return &this
}
// GetAdditionalIdTokenAudiences returns the AdditionalIdTokenAudiences field value if set, zero value otherwise.
func (o *NormalizedProjectRevisionThirdPartyProvider) GetAdditionalIdTokenAudiences() []string {
if o == nil || IsNil(o.AdditionalIdTokenAudiences) {
var ret []string
return ret
}
return o.AdditionalIdTokenAudiences
}
// GetAdditionalIdTokenAudiencesOk returns a tuple with the AdditionalIdTokenAudiences field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NormalizedProjectRevisionThirdPartyProvider) GetAdditionalIdTokenAudiencesOk() ([]string, bool) {
if o == nil || IsNil(o.AdditionalIdTokenAudiences) {
return nil, false
}
return o.AdditionalIdTokenAudiences, true
}
// HasAdditionalIdTokenAudiences returns a boolean if a field has been set.
func (o *NormalizedProjectRevisionThirdPartyProvider) HasAdditionalIdTokenAudiences() bool {
if o != nil && !IsNil(o.AdditionalIdTokenAudiences) {
return true
}
return false
}
// SetAdditionalIdTokenAudiences gets a reference to the given []string and assigns it to the AdditionalIdTokenAudiences field.
func (o *NormalizedProjectRevisionThirdPartyProvider) SetAdditionalIdTokenAudiences(v []string) {
o.AdditionalIdTokenAudiences = v
}
// GetApplePrivateKey returns the ApplePrivateKey field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *NormalizedProjectRevisionThirdPartyProvider) GetApplePrivateKey() string {
if o == nil || IsNil(o.ApplePrivateKey.Get()) {
var ret string
return ret
}
return *o.ApplePrivateKey.Get()
}
// GetApplePrivateKeyOk returns a tuple with the ApplePrivateKey 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 *NormalizedProjectRevisionThirdPartyProvider) GetApplePrivateKeyOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ApplePrivateKey.Get(), o.ApplePrivateKey.IsSet()
}
// HasApplePrivateKey returns a boolean if a field has been set.
func (o *NormalizedProjectRevisionThirdPartyProvider) HasApplePrivateKey() bool {
if o != nil && o.ApplePrivateKey.IsSet() {
return true
}
return false
}
// SetApplePrivateKey gets a reference to the given NullableString and assigns it to the ApplePrivateKey field.
func (o *NormalizedProjectRevisionThirdPartyProvider) SetApplePrivateKey(v string) {
o.ApplePrivateKey.Set(&v)
}
// SetApplePrivateKeyNil sets the value for ApplePrivateKey to be an explicit nil
func (o *NormalizedProjectRevisionThirdPartyProvider) SetApplePrivateKeyNil() {
o.ApplePrivateKey.Set(nil)
}
// UnsetApplePrivateKey ensures that no value is present for ApplePrivateKey, not even an explicit nil
func (o *NormalizedProjectRevisionThirdPartyProvider) UnsetApplePrivateKey() {
o.ApplePrivateKey.Unset()
}
// GetApplePrivateKeyId returns the ApplePrivateKeyId field value if set, zero value otherwise.
func (o *NormalizedProjectRevisionThirdPartyProvider) GetApplePrivateKeyId() string {
if o == nil || IsNil(o.ApplePrivateKeyId) {
var ret string
return ret
}
return *o.ApplePrivateKeyId
}
// GetApplePrivateKeyIdOk returns a tuple with the ApplePrivateKeyId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NormalizedProjectRevisionThirdPartyProvider) GetApplePrivateKeyIdOk() (*string, bool) {
if o == nil || IsNil(o.ApplePrivateKeyId) {
return nil, false
}
return o.ApplePrivateKeyId, true
}
// HasApplePrivateKeyId returns a boolean if a field has been set.
func (o *NormalizedProjectRevisionThirdPartyProvider) HasApplePrivateKeyId() bool {
if o != nil && !IsNil(o.ApplePrivateKeyId) {
return true
}
return false
}
// SetApplePrivateKeyId gets a reference to the given string and assigns it to the ApplePrivateKeyId field.
func (o *NormalizedProjectRevisionThirdPartyProvider) SetApplePrivateKeyId(v string) {
o.ApplePrivateKeyId = &v
}
// GetAppleTeamId returns the AppleTeamId field value if set, zero value otherwise.
func (o *NormalizedProjectRevisionThirdPartyProvider) GetAppleTeamId() string {
if o == nil || IsNil(o.AppleTeamId) {
var ret string
return ret
}
return *o.AppleTeamId
}
// GetAppleTeamIdOk returns a tuple with the AppleTeamId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NormalizedProjectRevisionThirdPartyProvider) GetAppleTeamIdOk() (*string, bool) {
if o == nil || IsNil(o.AppleTeamId) {
return nil, false
}
return o.AppleTeamId, true
}
// HasAppleTeamId returns a boolean if a field has been set.
func (o *NormalizedProjectRevisionThirdPartyProvider) HasAppleTeamId() bool {
if o != nil && !IsNil(o.AppleTeamId) {
return true
}
return false
}
// SetAppleTeamId gets a reference to the given string and assigns it to the AppleTeamId field.
func (o *NormalizedProjectRevisionThirdPartyProvider) SetAppleTeamId(v string) {
o.AppleTeamId = &v
}
// GetAuthUrl returns the AuthUrl field value if set, zero value otherwise.
func (o *NormalizedProjectRevisionThirdPartyProvider) GetAuthUrl() string {
if o == nil || IsNil(o.AuthUrl) {
var ret string
return ret
}
return *o.AuthUrl
}
// GetAuthUrlOk returns a tuple with the AuthUrl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NormalizedProjectRevisionThirdPartyProvider) GetAuthUrlOk() (*string, bool) {
if o == nil || IsNil(o.AuthUrl) {
return nil, false
}
return o.AuthUrl, true
}
// HasAuthUrl returns a boolean if a field has been set.
func (o *NormalizedProjectRevisionThirdPartyProvider) HasAuthUrl() bool {
if o != nil && !IsNil(o.AuthUrl) {
return true
}
return false
}
// SetAuthUrl gets a reference to the given string and assigns it to the AuthUrl field.
func (o *NormalizedProjectRevisionThirdPartyProvider) SetAuthUrl(v string) {
o.AuthUrl = &v
}
// GetAzureTenant returns the AzureTenant field value if set, zero value otherwise.
func (o *NormalizedProjectRevisionThirdPartyProvider) GetAzureTenant() string {
if o == nil || IsNil(o.AzureTenant) {
var ret string
return ret
}
return *o.AzureTenant
}
// GetAzureTenantOk returns a tuple with the AzureTenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NormalizedProjectRevisionThirdPartyProvider) GetAzureTenantOk() (*string, bool) {
if o == nil || IsNil(o.AzureTenant) {
return nil, false
}
return o.AzureTenant, true
}
// HasAzureTenant returns a boolean if a field has been set.
func (o *NormalizedProjectRevisionThirdPartyProvider) HasAzureTenant() bool {
if o != nil && !IsNil(o.AzureTenant) {
return true
}
return false
}
// SetAzureTenant gets a reference to the given string and assigns it to the AzureTenant field.
func (o *NormalizedProjectRevisionThirdPartyProvider) SetAzureTenant(v string) {
o.AzureTenant = &v
}
// GetClaimsSource returns the ClaimsSource field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *NormalizedProjectRevisionThirdPartyProvider) GetClaimsSource() string {
if o == nil || IsNil(o.ClaimsSource.Get()) {
var ret string
return ret
}
return *o.ClaimsSource.Get()
}
// GetClaimsSourceOk returns a tuple with the ClaimsSource 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 *NormalizedProjectRevisionThirdPartyProvider) GetClaimsSourceOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ClaimsSource.Get(), o.ClaimsSource.IsSet()
}
// HasClaimsSource returns a boolean if a field has been set.
func (o *NormalizedProjectRevisionThirdPartyProvider) HasClaimsSource() bool {
if o != nil && o.ClaimsSource.IsSet() {
return true
}
return false
}
// SetClaimsSource gets a reference to the given NullableString and assigns it to the ClaimsSource field.
func (o *NormalizedProjectRevisionThirdPartyProvider) SetClaimsSource(v string) {
o.ClaimsSource.Set(&v)
}
// SetClaimsSourceNil sets the value for ClaimsSource to be an explicit nil
func (o *NormalizedProjectRevisionThirdPartyProvider) SetClaimsSourceNil() {
o.ClaimsSource.Set(nil)
}
// UnsetClaimsSource ensures that no value is present for ClaimsSource, not even an explicit nil
func (o *NormalizedProjectRevisionThirdPartyProvider) UnsetClaimsSource() {
o.ClaimsSource.Unset()
}
// GetClientId returns the ClientId field value if set, zero value otherwise.
func (o *NormalizedProjectRevisionThirdPartyProvider) GetClientId() string {
if o == nil || IsNil(o.ClientId) {
var ret string
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 *NormalizedProjectRevisionThirdPartyProvider) GetClientIdOk() (*string, 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 *NormalizedProjectRevisionThirdPartyProvider) HasClientId() bool {
if o != nil && !IsNil(o.ClientId) {
return true
}
return false
}
// SetClientId gets a reference to the given string and assigns it to the ClientId field.
func (o *NormalizedProjectRevisionThirdPartyProvider) SetClientId(v string) {
o.ClientId = &v
}
// GetClientSecret returns the ClientSecret field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *NormalizedProjectRevisionThirdPartyProvider) GetClientSecret() string {
if o == nil || IsNil(o.ClientSecret.Get()) {
var ret string
return ret
}
return *o.ClientSecret.Get()
}
// GetClientSecretOk returns a tuple with the ClientSecret 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 *NormalizedProjectRevisionThirdPartyProvider) GetClientSecretOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ClientSecret.Get(), o.ClientSecret.IsSet()
}
// HasClientSecret returns a boolean if a field has been set.
func (o *NormalizedProjectRevisionThirdPartyProvider) HasClientSecret() bool {
if o != nil && o.ClientSecret.IsSet() {
return true
}
return false
}
// SetClientSecret gets a reference to the given NullableString and assigns it to the ClientSecret field.
func (o *NormalizedProjectRevisionThirdPartyProvider) SetClientSecret(v string) {
o.ClientSecret.Set(&v)
}
// SetClientSecretNil sets the value for ClientSecret to be an explicit nil
func (o *NormalizedProjectRevisionThirdPartyProvider) SetClientSecretNil() {
o.ClientSecret.Set(nil)
}
// UnsetClientSecret ensures that no value is present for ClientSecret, not even an explicit nil
func (o *NormalizedProjectRevisionThirdPartyProvider) UnsetClientSecret() {
o.ClientSecret.Unset()
}
// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *NormalizedProjectRevisionThirdPartyProvider) GetCreatedAt() time.Time {
if o == nil || IsNil(o.CreatedAt) {
var ret time.Time
return ret
}
return *o.CreatedAt
}
// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NormalizedProjectRevisionThirdPartyProvider) GetCreatedAtOk() (*time.Time, bool) {
if o == nil || IsNil(o.CreatedAt) {
return nil, false
}
return o.CreatedAt, true
}
// HasCreatedAt returns a boolean if a field has been set.
func (o *NormalizedProjectRevisionThirdPartyProvider) HasCreatedAt() bool {
if o != nil && !IsNil(o.CreatedAt) {
return true
}
return false
}
// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.
func (o *NormalizedProjectRevisionThirdPartyProvider) SetCreatedAt(v time.Time) {
o.CreatedAt = &v
}
// GetId returns the Id field value if set, zero value otherwise.
func (o *NormalizedProjectRevisionThirdPartyProvider) GetId() string {
if o == nil || IsNil(o.Id) {
var ret string
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 *NormalizedProjectRevisionThirdPartyProvider) GetIdOk() (*string, 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 *NormalizedProjectRevisionThirdPartyProvider) HasId() bool {
if o != nil && !IsNil(o.Id) {
return true
}
return false
}
// SetId gets a reference to the given string and assigns it to the Id field.
func (o *NormalizedProjectRevisionThirdPartyProvider) SetId(v string) {
o.Id = &v
}
// GetIssuerUrl returns the IssuerUrl field value if set, zero value otherwise.
func (o *NormalizedProjectRevisionThirdPartyProvider) GetIssuerUrl() string {
if o == nil || IsNil(o.IssuerUrl) {
var ret string
return ret
}
return *o.IssuerUrl
}
// GetIssuerUrlOk returns a tuple with the IssuerUrl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NormalizedProjectRevisionThirdPartyProvider) GetIssuerUrlOk() (*string, bool) {
if o == nil || IsNil(o.IssuerUrl) {
return nil, false
}
return o.IssuerUrl, true
}
// HasIssuerUrl returns a boolean if a field has been set.
func (o *NormalizedProjectRevisionThirdPartyProvider) HasIssuerUrl() bool {
if o != nil && !IsNil(o.IssuerUrl) {
return true
}
return false
}
// SetIssuerUrl gets a reference to the given string and assigns it to the IssuerUrl field.
func (o *NormalizedProjectRevisionThirdPartyProvider) SetIssuerUrl(v string) {
o.IssuerUrl = &v
}
// GetLabel returns the Label field value if set, zero value otherwise.
func (o *NormalizedProjectRevisionThirdPartyProvider) GetLabel() string {
if o == nil || IsNil(o.Label) {
var ret string
return ret
}
return *o.Label
}
// GetLabelOk returns a tuple with the Label field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NormalizedProjectRevisionThirdPartyProvider) GetLabelOk() (*string, bool) {
if o == nil || IsNil(o.Label) {
return nil, false
}
return o.Label, true
}
// HasLabel returns a boolean if a field has been set.
func (o *NormalizedProjectRevisionThirdPartyProvider) HasLabel() bool {
if o != nil && !IsNil(o.Label) {
return true
}
return false
}
// SetLabel gets a reference to the given string and assigns it to the Label field.
func (o *NormalizedProjectRevisionThirdPartyProvider) SetLabel(v string) {
o.Label = &v
}
// GetMapperUrl returns the MapperUrl field value if set, zero value otherwise.
func (o *NormalizedProjectRevisionThirdPartyProvider) GetMapperUrl() string {
if o == nil || IsNil(o.MapperUrl) {
var ret string
return ret
}
return *o.MapperUrl
}
// GetMapperUrlOk returns a tuple with the MapperUrl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NormalizedProjectRevisionThirdPartyProvider) GetMapperUrlOk() (*string, bool) {
if o == nil || IsNil(o.MapperUrl) {
return nil, false
}
return o.MapperUrl, true
}
// HasMapperUrl returns a boolean if a field has been set.
func (o *NormalizedProjectRevisionThirdPartyProvider) HasMapperUrl() bool {
if o != nil && !IsNil(o.MapperUrl) {
return true
}
return false
}
// SetMapperUrl gets a reference to the given string and assigns it to the MapperUrl field.
func (o *NormalizedProjectRevisionThirdPartyProvider) SetMapperUrl(v string) {
o.MapperUrl = &v
}
// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *NormalizedProjectRevisionThirdPartyProvider) GetOrganizationId() string {
if o == nil || IsNil(o.OrganizationId.Get()) {
var ret string
return ret
}
return *o.OrganizationId.Get()
}
// GetOrganizationIdOk returns a tuple with the OrganizationId 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 *NormalizedProjectRevisionThirdPartyProvider) GetOrganizationIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.OrganizationId.Get(), o.OrganizationId.IsSet()
}
// HasOrganizationId returns a boolean if a field has been set.
func (o *NormalizedProjectRevisionThirdPartyProvider) HasOrganizationId() bool {
if o != nil && o.OrganizationId.IsSet() {
return true
}
return false
}
// SetOrganizationId gets a reference to the given NullableString and assigns it to the OrganizationId field.
func (o *NormalizedProjectRevisionThirdPartyProvider) SetOrganizationId(v string) {
o.OrganizationId.Set(&v)
}
// SetOrganizationIdNil sets the value for OrganizationId to be an explicit nil
func (o *NormalizedProjectRevisionThirdPartyProvider) SetOrganizationIdNil() {
o.OrganizationId.Set(nil)
}
// UnsetOrganizationId ensures that no value is present for OrganizationId, not even an explicit nil
func (o *NormalizedProjectRevisionThirdPartyProvider) UnsetOrganizationId() {
o.OrganizationId.Unset()
}
// GetProjectRevisionId returns the ProjectRevisionId field value if set, zero value otherwise.
func (o *NormalizedProjectRevisionThirdPartyProvider) GetProjectRevisionId() string {
if o == nil || IsNil(o.ProjectRevisionId) {
var ret string
return ret
}
return *o.ProjectRevisionId
}
// GetProjectRevisionIdOk returns a tuple with the ProjectRevisionId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NormalizedProjectRevisionThirdPartyProvider) GetProjectRevisionIdOk() (*string, bool) {
if o == nil || IsNil(o.ProjectRevisionId) {
return nil, false
}
return o.ProjectRevisionId, true
}
// HasProjectRevisionId returns a boolean if a field has been set.
func (o *NormalizedProjectRevisionThirdPartyProvider) HasProjectRevisionId() bool {
if o != nil && !IsNil(o.ProjectRevisionId) {
return true
}
return false
}
// SetProjectRevisionId gets a reference to the given string and assigns it to the ProjectRevisionId field.
func (o *NormalizedProjectRevisionThirdPartyProvider) SetProjectRevisionId(v string) {
o.ProjectRevisionId = &v
}
// GetProvider returns the Provider field value if set, zero value otherwise.
func (o *NormalizedProjectRevisionThirdPartyProvider) GetProvider() string {
if o == nil || IsNil(o.Provider) {
var ret string
return ret
}
return *o.Provider
}
// GetProviderOk returns a tuple with the Provider field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NormalizedProjectRevisionThirdPartyProvider) GetProviderOk() (*string, bool) {
if o == nil || IsNil(o.Provider) {
return nil, false
}
return o.Provider, true
}
// HasProvider returns a boolean if a field has been set.
func (o *NormalizedProjectRevisionThirdPartyProvider) HasProvider() bool {
if o != nil && !IsNil(o.Provider) {
return true
}
return false
}
// SetProvider gets a reference to the given string and assigns it to the Provider field.
func (o *NormalizedProjectRevisionThirdPartyProvider) SetProvider(v string) {
o.Provider = &v
}
// GetProviderId returns the ProviderId field value if set, zero value otherwise.
func (o *NormalizedProjectRevisionThirdPartyProvider) GetProviderId() string {
if o == nil || IsNil(o.ProviderId) {
var ret string
return ret
}
return *o.ProviderId
}
// GetProviderIdOk returns a tuple with the ProviderId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NormalizedProjectRevisionThirdPartyProvider) GetProviderIdOk() (*string, bool) {
if o == nil || IsNil(o.ProviderId) {
return nil, false
}
return o.ProviderId, true
}
// HasProviderId returns a boolean if a field has been set.
func (o *NormalizedProjectRevisionThirdPartyProvider) HasProviderId() bool {
if o != nil && !IsNil(o.ProviderId) {
return true
}
return false
}
// SetProviderId gets a reference to the given string and assigns it to the ProviderId field.
func (o *NormalizedProjectRevisionThirdPartyProvider) SetProviderId(v string) {
o.ProviderId = &v
}
// GetRequestedClaims returns the RequestedClaims field value if set, zero value otherwise.
func (o *NormalizedProjectRevisionThirdPartyProvider) GetRequestedClaims() map[string]interface{} {
if o == nil || IsNil(o.RequestedClaims) {
var ret map[string]interface{}
return ret
}
return o.RequestedClaims
}
// GetRequestedClaimsOk returns a tuple with the RequestedClaims field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NormalizedProjectRevisionThirdPartyProvider) GetRequestedClaimsOk() (map[string]interface{}, bool) {
if o == nil || IsNil(o.RequestedClaims) {
return map[string]interface{}{}, false
}
return o.RequestedClaims, true
}
// HasRequestedClaims returns a boolean if a field has been set.
func (o *NormalizedProjectRevisionThirdPartyProvider) HasRequestedClaims() bool {
if o != nil && !IsNil(o.RequestedClaims) {
return true
}
return false
}
// SetRequestedClaims gets a reference to the given map[string]interface{} and assigns it to the RequestedClaims field.
func (o *NormalizedProjectRevisionThirdPartyProvider) SetRequestedClaims(v map[string]interface{}) {
o.RequestedClaims = v
}
// GetScope returns the Scope field value if set, zero value otherwise.
func (o *NormalizedProjectRevisionThirdPartyProvider) GetScope() []string {
if o == nil || IsNil(o.Scope) {
var ret []string
return ret
}
return o.Scope
}
// GetScopeOk returns a tuple with the Scope field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NormalizedProjectRevisionThirdPartyProvider) GetScopeOk() ([]string, bool) {
if o == nil || IsNil(o.Scope) {
return nil, false
}
return o.Scope, true
}
// HasScope returns a boolean if a field has been set.
func (o *NormalizedProjectRevisionThirdPartyProvider) HasScope() bool {
if o != nil && !IsNil(o.Scope) {
return true
}
return false
}
// SetScope gets a reference to the given []string and assigns it to the Scope field.
func (o *NormalizedProjectRevisionThirdPartyProvider) SetScope(v []string) {
o.Scope = v
}
// GetState returns the State field value if set, zero value otherwise.
func (o *NormalizedProjectRevisionThirdPartyProvider) GetState() string {
if o == nil || IsNil(o.State) {
var ret string
return ret
}
return *o.State
}
// GetStateOk returns a tuple with the State field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NormalizedProjectRevisionThirdPartyProvider) GetStateOk() (*string, bool) {
if o == nil || IsNil(o.State) {
return nil, false
}
return o.State, true
}
// HasState returns a boolean if a field has been set.
func (o *NormalizedProjectRevisionThirdPartyProvider) HasState() bool {
if o != nil && !IsNil(o.State) {
return true
}
return false
}
// SetState gets a reference to the given string and assigns it to the State field.
func (o *NormalizedProjectRevisionThirdPartyProvider) SetState(v string) {
o.State = &v
}
// GetSubjectSource returns the SubjectSource field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *NormalizedProjectRevisionThirdPartyProvider) GetSubjectSource() string {
if o == nil || IsNil(o.SubjectSource.Get()) {
var ret string
return ret
}
return *o.SubjectSource.Get()
}
// GetSubjectSourceOk returns a tuple with the SubjectSource 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 *NormalizedProjectRevisionThirdPartyProvider) GetSubjectSourceOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.SubjectSource.Get(), o.SubjectSource.IsSet()
}
// HasSubjectSource returns a boolean if a field has been set.
func (o *NormalizedProjectRevisionThirdPartyProvider) HasSubjectSource() bool {
if o != nil && o.SubjectSource.IsSet() {
return true
}
return false
}
// SetSubjectSource gets a reference to the given NullableString and assigns it to the SubjectSource field.
func (o *NormalizedProjectRevisionThirdPartyProvider) SetSubjectSource(v string) {
o.SubjectSource.Set(&v)
}
// SetSubjectSourceNil sets the value for SubjectSource to be an explicit nil
func (o *NormalizedProjectRevisionThirdPartyProvider) SetSubjectSourceNil() {
o.SubjectSource.Set(nil)
}
// UnsetSubjectSource ensures that no value is present for SubjectSource, not even an explicit nil
func (o *NormalizedProjectRevisionThirdPartyProvider) UnsetSubjectSource() {
o.SubjectSource.Unset()
}
// GetTokenUrl returns the TokenUrl field value if set, zero value otherwise.
func (o *NormalizedProjectRevisionThirdPartyProvider) GetTokenUrl() string {
if o == nil || IsNil(o.TokenUrl) {
var ret string
return ret
}
return *o.TokenUrl
}
// GetTokenUrlOk returns a tuple with the TokenUrl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NormalizedProjectRevisionThirdPartyProvider) GetTokenUrlOk() (*string, bool) {
if o == nil || IsNil(o.TokenUrl) {
return nil, false
}
return o.TokenUrl, true
}
// HasTokenUrl returns a boolean if a field has been set.
func (o *NormalizedProjectRevisionThirdPartyProvider) HasTokenUrl() bool {
if o != nil && !IsNil(o.TokenUrl) {
return true
}
return false
}
// SetTokenUrl gets a reference to the given string and assigns it to the TokenUrl field.
func (o *NormalizedProjectRevisionThirdPartyProvider) SetTokenUrl(v string) {
o.TokenUrl = &v
}
// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.
func (o *NormalizedProjectRevisionThirdPartyProvider) GetUpdatedAt() time.Time {
if o == nil || IsNil(o.UpdatedAt) {
var ret time.Time
return ret
}
return *o.UpdatedAt
}
// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *NormalizedProjectRevisionThirdPartyProvider) GetUpdatedAtOk() (*time.Time, bool) {
if o == nil || IsNil(o.UpdatedAt) {
return nil, false
}
return o.UpdatedAt, true
}
// HasUpdatedAt returns a boolean if a field has been set.
func (o *NormalizedProjectRevisionThirdPartyProvider) HasUpdatedAt() bool {
if o != nil && !IsNil(o.UpdatedAt) {
return true
}
return false
}
// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field.
func (o *NormalizedProjectRevisionThirdPartyProvider) SetUpdatedAt(v time.Time) {
o.UpdatedAt = &v
}
func (o NormalizedProjectRevisionThirdPartyProvider) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o NormalizedProjectRevisionThirdPartyProvider) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.AdditionalIdTokenAudiences) {
toSerialize["additional_id_token_audiences"] = o.AdditionalIdTokenAudiences
}
if o.ApplePrivateKey.IsSet() {
toSerialize["apple_private_key"] = o.ApplePrivateKey.Get()
}
if !IsNil(o.ApplePrivateKeyId) {
toSerialize["apple_private_key_id"] = o.ApplePrivateKeyId
}
if !IsNil(o.AppleTeamId) {
toSerialize["apple_team_id"] = o.AppleTeamId
}
if !IsNil(o.AuthUrl) {
toSerialize["auth_url"] = o.AuthUrl
}
if !IsNil(o.AzureTenant) {
toSerialize["azure_tenant"] = o.AzureTenant
}
if o.ClaimsSource.IsSet() {
toSerialize["claims_source"] = o.ClaimsSource.Get()
}
if !IsNil(o.ClientId) {
toSerialize["client_id"] = o.ClientId
}
if o.ClientSecret.IsSet() {
toSerialize["client_secret"] = o.ClientSecret.Get()
}
if !IsNil(o.CreatedAt) {
toSerialize["created_at"] = o.CreatedAt
}
if !IsNil(o.Id) {
toSerialize["id"] = o.Id
}
if !IsNil(o.IssuerUrl) {
toSerialize["issuer_url"] = o.IssuerUrl
}
if !IsNil(o.Label) {
toSerialize["label"] = o.Label
}
if !IsNil(o.MapperUrl) {
toSerialize["mapper_url"] = o.MapperUrl
}
if o.OrganizationId.IsSet() {
toSerialize["organization_id"] = o.OrganizationId.Get()
}
if !IsNil(o.ProjectRevisionId) {
toSerialize["project_revision_id"] = o.ProjectRevisionId
}
if !IsNil(o.Provider) {
toSerialize["provider"] = o.Provider
}
if !IsNil(o.ProviderId) {
toSerialize["provider_id"] = o.ProviderId
}
if !IsNil(o.RequestedClaims) {
toSerialize["requested_claims"] = o.RequestedClaims
}
if !IsNil(o.Scope) {
toSerialize["scope"] = o.Scope
}
if !IsNil(o.State) {
toSerialize["state"] = o.State
}
if o.SubjectSource.IsSet() {
toSerialize["subject_source"] = o.SubjectSource.Get()
}
if !IsNil(o.TokenUrl) {
toSerialize["token_url"] = o.TokenUrl
}
if !IsNil(o.UpdatedAt) {
toSerialize["updated_at"] = o.UpdatedAt
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return toSerialize, nil
}
func (o *NormalizedProjectRevisionThirdPartyProvider) UnmarshalJSON(data []byte) (err error) {
varNormalizedProjectRevisionThirdPartyProvider := _NormalizedProjectRevisionThirdPartyProvider{}
err = json.Unmarshal(data, &varNormalizedProjectRevisionThirdPartyProvider)
if err != nil {
return err
}