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 package identitytoolkit
57
58 import (
59 "bytes"
60 "context"
61 "encoding/json"
62 "errors"
63 "fmt"
64 "io"
65 "net/http"
66 "net/url"
67 "strconv"
68 "strings"
69
70 googleapi "google.golang.org/api/googleapi"
71 internal "google.golang.org/api/internal"
72 gensupport "google.golang.org/api/internal/gensupport"
73 option "google.golang.org/api/option"
74 internaloption "google.golang.org/api/option/internaloption"
75 htransport "google.golang.org/api/transport/http"
76 )
77
78
79
80 var _ = bytes.NewBuffer
81 var _ = strconv.Itoa
82 var _ = fmt.Sprintf
83 var _ = json.NewDecoder
84 var _ = io.Copy
85 var _ = url.Parse
86 var _ = gensupport.MarshalJSON
87 var _ = googleapi.Version
88 var _ = errors.New
89 var _ = strings.Replace
90 var _ = context.Canceled
91 var _ = internaloption.WithDefaultEndpoint
92 var _ = internal.Version
93
94 const apiId = "identitytoolkit:v2"
95 const apiName = "identitytoolkit"
96 const apiVersion = "v2"
97 const basePath = "https://identitytoolkit.googleapis.com/"
98 const basePathTemplate = "https://identitytoolkit.UNIVERSE_DOMAIN/"
99 const mtlsBasePath = "https://identitytoolkit.mtls.googleapis.com/"
100
101
102 const (
103
104
105 CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
106
107
108 FirebaseScope = "https://www.googleapis.com/auth/firebase"
109 )
110
111
112 func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
113 scopesOption := internaloption.WithDefaultScopes(
114 "https://www.googleapis.com/auth/cloud-platform",
115 "https://www.googleapis.com/auth/firebase",
116 )
117
118 opts = append([]option.ClientOption{scopesOption}, opts...)
119 opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
120 opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
121 opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
122 opts = append(opts, internaloption.EnableNewAuthLibrary())
123 client, endpoint, err := htransport.NewClient(ctx, opts...)
124 if err != nil {
125 return nil, err
126 }
127 s, err := New(client)
128 if err != nil {
129 return nil, err
130 }
131 if endpoint != "" {
132 s.BasePath = endpoint
133 }
134 return s, nil
135 }
136
137
138
139
140
141
142 func New(client *http.Client) (*Service, error) {
143 if client == nil {
144 return nil, errors.New("client is nil")
145 }
146 s := &Service{client: client, BasePath: basePath}
147 s.Accounts = NewAccountsService(s)
148 s.DefaultSupportedIdps = NewDefaultSupportedIdpsService(s)
149 s.Projects = NewProjectsService(s)
150 s.V2 = NewV2Service(s)
151 return s, nil
152 }
153
154 type Service struct {
155 client *http.Client
156 BasePath string
157 UserAgent string
158
159 Accounts *AccountsService
160
161 DefaultSupportedIdps *DefaultSupportedIdpsService
162
163 Projects *ProjectsService
164
165 V2 *V2Service
166 }
167
168 func (s *Service) userAgent() string {
169 if s.UserAgent == "" {
170 return googleapi.UserAgent
171 }
172 return googleapi.UserAgent + " " + s.UserAgent
173 }
174
175 func NewAccountsService(s *Service) *AccountsService {
176 rs := &AccountsService{s: s}
177 rs.MfaEnrollment = NewAccountsMfaEnrollmentService(s)
178 rs.MfaSignIn = NewAccountsMfaSignInService(s)
179 return rs
180 }
181
182 type AccountsService struct {
183 s *Service
184
185 MfaEnrollment *AccountsMfaEnrollmentService
186
187 MfaSignIn *AccountsMfaSignInService
188 }
189
190 func NewAccountsMfaEnrollmentService(s *Service) *AccountsMfaEnrollmentService {
191 rs := &AccountsMfaEnrollmentService{s: s}
192 return rs
193 }
194
195 type AccountsMfaEnrollmentService struct {
196 s *Service
197 }
198
199 func NewAccountsMfaSignInService(s *Service) *AccountsMfaSignInService {
200 rs := &AccountsMfaSignInService{s: s}
201 return rs
202 }
203
204 type AccountsMfaSignInService struct {
205 s *Service
206 }
207
208 func NewDefaultSupportedIdpsService(s *Service) *DefaultSupportedIdpsService {
209 rs := &DefaultSupportedIdpsService{s: s}
210 return rs
211 }
212
213 type DefaultSupportedIdpsService struct {
214 s *Service
215 }
216
217 func NewProjectsService(s *Service) *ProjectsService {
218 rs := &ProjectsService{s: s}
219 rs.DefaultSupportedIdpConfigs = NewProjectsDefaultSupportedIdpConfigsService(s)
220 rs.IdentityPlatform = NewProjectsIdentityPlatformService(s)
221 rs.InboundSamlConfigs = NewProjectsInboundSamlConfigsService(s)
222 rs.OauthIdpConfigs = NewProjectsOauthIdpConfigsService(s)
223 rs.Tenants = NewProjectsTenantsService(s)
224 return rs
225 }
226
227 type ProjectsService struct {
228 s *Service
229
230 DefaultSupportedIdpConfigs *ProjectsDefaultSupportedIdpConfigsService
231
232 IdentityPlatform *ProjectsIdentityPlatformService
233
234 InboundSamlConfigs *ProjectsInboundSamlConfigsService
235
236 OauthIdpConfigs *ProjectsOauthIdpConfigsService
237
238 Tenants *ProjectsTenantsService
239 }
240
241 func NewProjectsDefaultSupportedIdpConfigsService(s *Service) *ProjectsDefaultSupportedIdpConfigsService {
242 rs := &ProjectsDefaultSupportedIdpConfigsService{s: s}
243 return rs
244 }
245
246 type ProjectsDefaultSupportedIdpConfigsService struct {
247 s *Service
248 }
249
250 func NewProjectsIdentityPlatformService(s *Service) *ProjectsIdentityPlatformService {
251 rs := &ProjectsIdentityPlatformService{s: s}
252 return rs
253 }
254
255 type ProjectsIdentityPlatformService struct {
256 s *Service
257 }
258
259 func NewProjectsInboundSamlConfigsService(s *Service) *ProjectsInboundSamlConfigsService {
260 rs := &ProjectsInboundSamlConfigsService{s: s}
261 return rs
262 }
263
264 type ProjectsInboundSamlConfigsService struct {
265 s *Service
266 }
267
268 func NewProjectsOauthIdpConfigsService(s *Service) *ProjectsOauthIdpConfigsService {
269 rs := &ProjectsOauthIdpConfigsService{s: s}
270 return rs
271 }
272
273 type ProjectsOauthIdpConfigsService struct {
274 s *Service
275 }
276
277 func NewProjectsTenantsService(s *Service) *ProjectsTenantsService {
278 rs := &ProjectsTenantsService{s: s}
279 rs.DefaultSupportedIdpConfigs = NewProjectsTenantsDefaultSupportedIdpConfigsService(s)
280 rs.InboundSamlConfigs = NewProjectsTenantsInboundSamlConfigsService(s)
281 rs.OauthIdpConfigs = NewProjectsTenantsOauthIdpConfigsService(s)
282 return rs
283 }
284
285 type ProjectsTenantsService struct {
286 s *Service
287
288 DefaultSupportedIdpConfigs *ProjectsTenantsDefaultSupportedIdpConfigsService
289
290 InboundSamlConfigs *ProjectsTenantsInboundSamlConfigsService
291
292 OauthIdpConfigs *ProjectsTenantsOauthIdpConfigsService
293 }
294
295 func NewProjectsTenantsDefaultSupportedIdpConfigsService(s *Service) *ProjectsTenantsDefaultSupportedIdpConfigsService {
296 rs := &ProjectsTenantsDefaultSupportedIdpConfigsService{s: s}
297 return rs
298 }
299
300 type ProjectsTenantsDefaultSupportedIdpConfigsService struct {
301 s *Service
302 }
303
304 func NewProjectsTenantsInboundSamlConfigsService(s *Service) *ProjectsTenantsInboundSamlConfigsService {
305 rs := &ProjectsTenantsInboundSamlConfigsService{s: s}
306 return rs
307 }
308
309 type ProjectsTenantsInboundSamlConfigsService struct {
310 s *Service
311 }
312
313 func NewProjectsTenantsOauthIdpConfigsService(s *Service) *ProjectsTenantsOauthIdpConfigsService {
314 rs := &ProjectsTenantsOauthIdpConfigsService{s: s}
315 return rs
316 }
317
318 type ProjectsTenantsOauthIdpConfigsService struct {
319 s *Service
320 }
321
322 func NewV2Service(s *Service) *V2Service {
323 rs := &V2Service{s: s}
324 return rs
325 }
326
327 type V2Service struct {
328 s *Service
329 }
330
331
332
333
334 type GoogleCloudIdentitytoolkitAdminV2AllowByDefault struct {
335
336
337
338 DisallowedRegions []string `json:"disallowedRegions,omitempty"`
339
340
341
342
343
344 ForceSendFields []string `json:"-"`
345
346
347
348
349 NullFields []string `json:"-"`
350 }
351
352 func (s *GoogleCloudIdentitytoolkitAdminV2AllowByDefault) MarshalJSON() ([]byte, error) {
353 type NoMethod GoogleCloudIdentitytoolkitAdminV2AllowByDefault
354 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
355 }
356
357
358
359 type GoogleCloudIdentitytoolkitAdminV2AllowlistOnly struct {
360
361
362
363 AllowedRegions []string `json:"allowedRegions,omitempty"`
364
365
366
367
368
369 ForceSendFields []string `json:"-"`
370
371
372
373
374 NullFields []string `json:"-"`
375 }
376
377 func (s *GoogleCloudIdentitytoolkitAdminV2AllowlistOnly) MarshalJSON() ([]byte, error) {
378 type NoMethod GoogleCloudIdentitytoolkitAdminV2AllowlistOnly
379 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
380 }
381
382
383
384 type GoogleCloudIdentitytoolkitAdminV2Anonymous struct {
385
386 Enabled bool `json:"enabled,omitempty"`
387
388
389
390
391
392 ForceSendFields []string `json:"-"`
393
394
395
396
397 NullFields []string `json:"-"`
398 }
399
400 func (s *GoogleCloudIdentitytoolkitAdminV2Anonymous) MarshalJSON() ([]byte, error) {
401 type NoMethod GoogleCloudIdentitytoolkitAdminV2Anonymous
402 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
403 }
404
405
406
407 type GoogleCloudIdentitytoolkitAdminV2AppleSignInConfig struct {
408
409 BundleIds []string `json:"bundleIds,omitempty"`
410 CodeFlowConfig *GoogleCloudIdentitytoolkitAdminV2CodeFlowConfig `json:"codeFlowConfig,omitempty"`
411
412
413
414
415
416 ForceSendFields []string `json:"-"`
417
418
419
420
421 NullFields []string `json:"-"`
422 }
423
424 func (s *GoogleCloudIdentitytoolkitAdminV2AppleSignInConfig) MarshalJSON() ([]byte, error) {
425 type NoMethod GoogleCloudIdentitytoolkitAdminV2AppleSignInConfig
426 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
427 }
428
429
430
431 type GoogleCloudIdentitytoolkitAdminV2BlockingFunctionsConfig struct {
432
433
434 ForwardInboundCredentials *GoogleCloudIdentitytoolkitAdminV2ForwardInboundCredentials `json:"forwardInboundCredentials,omitempty"`
435
436
437 Triggers map[string]GoogleCloudIdentitytoolkitAdminV2Trigger `json:"triggers,omitempty"`
438
439
440
441
442
443 ForceSendFields []string `json:"-"`
444
445
446
447
448 NullFields []string `json:"-"`
449 }
450
451 func (s *GoogleCloudIdentitytoolkitAdminV2BlockingFunctionsConfig) MarshalJSON() ([]byte, error) {
452 type NoMethod GoogleCloudIdentitytoolkitAdminV2BlockingFunctionsConfig
453 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
454 }
455
456
457
458 type GoogleCloudIdentitytoolkitAdminV2ClientConfig struct {
459
460
461 ApiKey string `json:"apiKey,omitempty"`
462
463 FirebaseSubdomain string `json:"firebaseSubdomain,omitempty"`
464
465
466 Permissions *GoogleCloudIdentitytoolkitAdminV2Permissions `json:"permissions,omitempty"`
467
468
469
470
471
472 ForceSendFields []string `json:"-"`
473
474
475
476
477 NullFields []string `json:"-"`
478 }
479
480 func (s *GoogleCloudIdentitytoolkitAdminV2ClientConfig) MarshalJSON() ([]byte, error) {
481 type NoMethod GoogleCloudIdentitytoolkitAdminV2ClientConfig
482 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
483 }
484
485
486
487 type GoogleCloudIdentitytoolkitAdminV2ClientPermissionConfig struct {
488
489
490 Permissions *GoogleCloudIdentitytoolkitAdminV2ClientPermissions `json:"permissions,omitempty"`
491
492
493
494
495
496 ForceSendFields []string `json:"-"`
497
498
499
500
501 NullFields []string `json:"-"`
502 }
503
504 func (s *GoogleCloudIdentitytoolkitAdminV2ClientPermissionConfig) MarshalJSON() ([]byte, error) {
505 type NoMethod GoogleCloudIdentitytoolkitAdminV2ClientPermissionConfig
506 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
507 }
508
509
510
511 type GoogleCloudIdentitytoolkitAdminV2ClientPermissions struct {
512
513
514 DisabledUserDeletion bool `json:"disabledUserDeletion,omitempty"`
515
516
517 DisabledUserSignup bool `json:"disabledUserSignup,omitempty"`
518
519
520
521
522
523 ForceSendFields []string `json:"-"`
524
525
526
527
528 NullFields []string `json:"-"`
529 }
530
531 func (s *GoogleCloudIdentitytoolkitAdminV2ClientPermissions) MarshalJSON() ([]byte, error) {
532 type NoMethod GoogleCloudIdentitytoolkitAdminV2ClientPermissions
533 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
534 }
535
536
537
538 type GoogleCloudIdentitytoolkitAdminV2CodeFlowConfig struct {
539
540 KeyId string `json:"keyId,omitempty"`
541
542 PrivateKey string `json:"privateKey,omitempty"`
543
544 TeamId string `json:"teamId,omitempty"`
545
546
547
548
549
550 ForceSendFields []string `json:"-"`
551
552
553
554
555 NullFields []string `json:"-"`
556 }
557
558 func (s *GoogleCloudIdentitytoolkitAdminV2CodeFlowConfig) MarshalJSON() ([]byte, error) {
559 type NoMethod GoogleCloudIdentitytoolkitAdminV2CodeFlowConfig
560 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
561 }
562
563
564
565 type GoogleCloudIdentitytoolkitAdminV2Config struct {
566
567 AuthorizedDomains []string `json:"authorizedDomains,omitempty"`
568
569
570 AutodeleteAnonymousUsers bool `json:"autodeleteAnonymousUsers,omitempty"`
571
572 BlockingFunctions *GoogleCloudIdentitytoolkitAdminV2BlockingFunctionsConfig `json:"blockingFunctions,omitempty"`
573
574
575 Client *GoogleCloudIdentitytoolkitAdminV2ClientConfig `json:"client,omitempty"`
576
577
578 EmailPrivacyConfig *GoogleCloudIdentitytoolkitAdminV2EmailPrivacyConfig `json:"emailPrivacyConfig,omitempty"`
579
580
581 Mfa *GoogleCloudIdentitytoolkitAdminV2MultiFactorAuthConfig `json:"mfa,omitempty"`
582
583 Monitoring *GoogleCloudIdentitytoolkitAdminV2MonitoringConfig `json:"monitoring,omitempty"`
584
585 MultiTenant *GoogleCloudIdentitytoolkitAdminV2MultiTenantConfig `json:"multiTenant,omitempty"`
586
587
588 Name string `json:"name,omitempty"`
589
590 Notification *GoogleCloudIdentitytoolkitAdminV2NotificationConfig `json:"notification,omitempty"`
591
592 PasswordPolicyConfig *GoogleCloudIdentitytoolkitAdminV2PasswordPolicyConfig `json:"passwordPolicyConfig,omitempty"`
593
594 Quota *GoogleCloudIdentitytoolkitAdminV2QuotaConfig `json:"quota,omitempty"`
595
596 RecaptchaConfig *GoogleCloudIdentitytoolkitAdminV2RecaptchaConfig `json:"recaptchaConfig,omitempty"`
597
598 SignIn *GoogleCloudIdentitytoolkitAdminV2SignInConfig `json:"signIn,omitempty"`
599
600
601 SmsRegionConfig *GoogleCloudIdentitytoolkitAdminV2SmsRegionConfig `json:"smsRegionConfig,omitempty"`
602
603
604
605
606
607
608 Subtype string `json:"subtype,omitempty"`
609
610
611 googleapi.ServerResponse `json:"-"`
612
613
614
615
616
617 ForceSendFields []string `json:"-"`
618
619
620
621
622 NullFields []string `json:"-"`
623 }
624
625 func (s *GoogleCloudIdentitytoolkitAdminV2Config) MarshalJSON() ([]byte, error) {
626 type NoMethod GoogleCloudIdentitytoolkitAdminV2Config
627 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
628 }
629
630
631
632 type GoogleCloudIdentitytoolkitAdminV2CustomStrengthOptions struct {
633
634
635 ContainsLowercaseCharacter bool `json:"containsLowercaseCharacter,omitempty"`
636
637
638 ContainsNonAlphanumericCharacter bool `json:"containsNonAlphanumericCharacter,omitempty"`
639
640 ContainsNumericCharacter bool `json:"containsNumericCharacter,omitempty"`
641
642
643 ContainsUppercaseCharacter bool `json:"containsUppercaseCharacter,omitempty"`
644
645 MaxPasswordLength int64 `json:"maxPasswordLength,omitempty"`
646
647 MinPasswordLength int64 `json:"minPasswordLength,omitempty"`
648
649
650
651
652
653 ForceSendFields []string `json:"-"`
654
655
656
657
658 NullFields []string `json:"-"`
659 }
660
661 func (s *GoogleCloudIdentitytoolkitAdminV2CustomStrengthOptions) MarshalJSON() ([]byte, error) {
662 type NoMethod GoogleCloudIdentitytoolkitAdminV2CustomStrengthOptions
663 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
664 }
665
666
667
668 type GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdp struct {
669
670 Description string `json:"description,omitempty"`
671
672 IdpId string `json:"idpId,omitempty"`
673
674
675
676
677
678 ForceSendFields []string `json:"-"`
679
680
681
682
683 NullFields []string `json:"-"`
684 }
685
686 func (s *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdp) MarshalJSON() ([]byte, error) {
687 type NoMethod GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdp
688 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
689 }
690
691
692
693
694 type GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig struct {
695
696 AppleSignInConfig *GoogleCloudIdentitytoolkitAdminV2AppleSignInConfig `json:"appleSignInConfig,omitempty"`
697
698 ClientId string `json:"clientId,omitempty"`
699
700 ClientSecret string `json:"clientSecret,omitempty"`
701
702 Enabled bool `json:"enabled,omitempty"`
703
704
705 Name string `json:"name,omitempty"`
706
707
708 googleapi.ServerResponse `json:"-"`
709
710
711
712
713
714 ForceSendFields []string `json:"-"`
715
716
717
718
719 NullFields []string `json:"-"`
720 }
721
722 func (s *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig) MarshalJSON() ([]byte, error) {
723 type NoMethod GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig
724 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
725 }
726
727
728
729
730 type GoogleCloudIdentitytoolkitAdminV2DnsInfo struct {
731
732 CustomDomain string `json:"customDomain,omitempty"`
733
734
735
736
737
738
739
740
741
742
743 CustomDomainState string `json:"customDomainState,omitempty"`
744
745
746 DomainVerificationRequestTime string `json:"domainVerificationRequestTime,omitempty"`
747
748 PendingCustomDomain string `json:"pendingCustomDomain,omitempty"`
749
750 UseCustomDomain bool `json:"useCustomDomain,omitempty"`
751
752
753
754
755
756 ForceSendFields []string `json:"-"`
757
758
759
760
761 NullFields []string `json:"-"`
762 }
763
764 func (s *GoogleCloudIdentitytoolkitAdminV2DnsInfo) MarshalJSON() ([]byte, error) {
765 type NoMethod GoogleCloudIdentitytoolkitAdminV2DnsInfo
766 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
767 }
768
769
770
771 type GoogleCloudIdentitytoolkitAdminV2Email struct {
772
773 Enabled bool `json:"enabled,omitempty"`
774
775
776
777 PasswordRequired bool `json:"passwordRequired,omitempty"`
778
779
780
781
782
783 ForceSendFields []string `json:"-"`
784
785
786
787
788 NullFields []string `json:"-"`
789 }
790
791 func (s *GoogleCloudIdentitytoolkitAdminV2Email) MarshalJSON() ([]byte, error) {
792 type NoMethod GoogleCloudIdentitytoolkitAdminV2Email
793 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
794 }
795
796
797
798
799
800 type GoogleCloudIdentitytoolkitAdminV2EmailPrivacyConfig struct {
801
802
803
804
805
806
807
808
809 EnableImprovedEmailPrivacy bool `json:"enableImprovedEmailPrivacy,omitempty"`
810
811
812
813
814
815 ForceSendFields []string `json:"-"`
816
817
818
819
820 NullFields []string `json:"-"`
821 }
822
823 func (s *GoogleCloudIdentitytoolkitAdminV2EmailPrivacyConfig) MarshalJSON() ([]byte, error) {
824 type NoMethod GoogleCloudIdentitytoolkitAdminV2EmailPrivacyConfig
825 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
826 }
827
828
829
830
831
832
833
834
835 type GoogleCloudIdentitytoolkitAdminV2EmailTemplate struct {
836
837 Body string `json:"body,omitempty"`
838
839
840
841
842
843
844 BodyFormat string `json:"bodyFormat,omitempty"`
845
846
847 Customized bool `json:"customized,omitempty"`
848
849 ReplyTo string `json:"replyTo,omitempty"`
850
851 SenderDisplayName string `json:"senderDisplayName,omitempty"`
852
853 SenderLocalPart string `json:"senderLocalPart,omitempty"`
854
855 Subject string `json:"subject,omitempty"`
856
857
858
859
860
861 ForceSendFields []string `json:"-"`
862
863
864
865
866 NullFields []string `json:"-"`
867 }
868
869 func (s *GoogleCloudIdentitytoolkitAdminV2EmailTemplate) MarshalJSON() ([]byte, error) {
870 type NoMethod GoogleCloudIdentitytoolkitAdminV2EmailTemplate
871 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
872 }
873
874
875
876 type GoogleCloudIdentitytoolkitAdminV2ForwardInboundCredentials struct {
877
878
879 AccessToken bool `json:"accessToken,omitempty"`
880
881 IdToken bool `json:"idToken,omitempty"`
882
883
884 RefreshToken bool `json:"refreshToken,omitempty"`
885
886
887
888
889
890 ForceSendFields []string `json:"-"`
891
892
893
894
895 NullFields []string `json:"-"`
896 }
897
898 func (s *GoogleCloudIdentitytoolkitAdminV2ForwardInboundCredentials) MarshalJSON() ([]byte, error) {
899 type NoMethod GoogleCloudIdentitytoolkitAdminV2ForwardInboundCredentials
900 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
901 }
902
903
904
905
906 type GoogleCloudIdentitytoolkitAdminV2HashConfig struct {
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925 Algorithm string `json:"algorithm,omitempty"`
926
927
928
929 MemoryCost int64 `json:"memoryCost,omitempty"`
930
931
932 Rounds int64 `json:"rounds,omitempty"`
933
934
935 SaltSeparator string `json:"saltSeparator,omitempty"`
936
937 SignerKey string `json:"signerKey,omitempty"`
938
939
940
941
942
943 ForceSendFields []string `json:"-"`
944
945
946
947
948 NullFields []string `json:"-"`
949 }
950
951 func (s *GoogleCloudIdentitytoolkitAdminV2HashConfig) MarshalJSON() ([]byte, error) {
952 type NoMethod GoogleCloudIdentitytoolkitAdminV2HashConfig
953 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
954 }
955
956
957
958 type GoogleCloudIdentitytoolkitAdminV2IdpCertificate struct {
959
960 X509Certificate string `json:"x509Certificate,omitempty"`
961
962
963
964
965
966 ForceSendFields []string `json:"-"`
967
968
969
970
971 NullFields []string `json:"-"`
972 }
973
974 func (s *GoogleCloudIdentitytoolkitAdminV2IdpCertificate) MarshalJSON() ([]byte, error) {
975 type NoMethod GoogleCloudIdentitytoolkitAdminV2IdpCertificate
976 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
977 }
978
979
980
981 type GoogleCloudIdentitytoolkitAdminV2IdpConfig struct {
982
983
984 IdpCertificates []*GoogleCloudIdentitytoolkitAdminV2IdpCertificate `json:"idpCertificates,omitempty"`
985
986 IdpEntityId string `json:"idpEntityId,omitempty"`
987
988 SignRequest bool `json:"signRequest,omitempty"`
989
990 SsoUrl string `json:"ssoUrl,omitempty"`
991
992
993
994
995
996 ForceSendFields []string `json:"-"`
997
998
999
1000
1001 NullFields []string `json:"-"`
1002 }
1003
1004 func (s *GoogleCloudIdentitytoolkitAdminV2IdpConfig) MarshalJSON() ([]byte, error) {
1005 type NoMethod GoogleCloudIdentitytoolkitAdminV2IdpConfig
1006 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1007 }
1008
1009
1010
1011 type GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig struct {
1012
1013 DisplayName string `json:"displayName,omitempty"`
1014
1015 Enabled bool `json:"enabled,omitempty"`
1016
1017
1018 IdpConfig *GoogleCloudIdentitytoolkitAdminV2IdpConfig `json:"idpConfig,omitempty"`
1019
1020
1021
1022 Name string `json:"name,omitempty"`
1023
1024
1025
1026 SpConfig *GoogleCloudIdentitytoolkitAdminV2SpConfig `json:"spConfig,omitempty"`
1027
1028
1029 googleapi.ServerResponse `json:"-"`
1030
1031
1032
1033
1034
1035 ForceSendFields []string `json:"-"`
1036
1037
1038
1039
1040 NullFields []string `json:"-"`
1041 }
1042
1043 func (s *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig) MarshalJSON() ([]byte, error) {
1044 type NoMethod GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig
1045 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1046 }
1047
1048
1049
1050 type GoogleCloudIdentitytoolkitAdminV2Inheritance struct {
1051
1052
1053
1054
1055 EmailSendingConfig bool `json:"emailSendingConfig,omitempty"`
1056
1057
1058
1059
1060
1061 ForceSendFields []string `json:"-"`
1062
1063
1064
1065
1066 NullFields []string `json:"-"`
1067 }
1068
1069 func (s *GoogleCloudIdentitytoolkitAdminV2Inheritance) MarshalJSON() ([]byte, error) {
1070 type NoMethod GoogleCloudIdentitytoolkitAdminV2Inheritance
1071 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1072 }
1073
1074
1075
1076 type GoogleCloudIdentitytoolkitAdminV2InitializeIdentityPlatformRequest struct {
1077 }
1078
1079
1080
1081 type GoogleCloudIdentitytoolkitAdminV2InitializeIdentityPlatformResponse struct {
1082
1083 googleapi.ServerResponse `json:"-"`
1084 }
1085
1086
1087
1088 type GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsResponse struct {
1089
1090 DefaultSupportedIdpConfigs []*GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig `json:"defaultSupportedIdpConfigs,omitempty"`
1091
1092
1093 NextPageToken string `json:"nextPageToken,omitempty"`
1094
1095
1096 googleapi.ServerResponse `json:"-"`
1097
1098
1099
1100
1101
1102 ForceSendFields []string `json:"-"`
1103
1104
1105
1106
1107 NullFields []string `json:"-"`
1108 }
1109
1110 func (s *GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsResponse) MarshalJSON() ([]byte, error) {
1111 type NoMethod GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsResponse
1112 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1113 }
1114
1115
1116
1117 type GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpsResponse struct {
1118
1119 DefaultSupportedIdps []*GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdp `json:"defaultSupportedIdps,omitempty"`
1120
1121
1122 NextPageToken string `json:"nextPageToken,omitempty"`
1123
1124
1125 googleapi.ServerResponse `json:"-"`
1126
1127
1128
1129
1130
1131 ForceSendFields []string `json:"-"`
1132
1133
1134
1135
1136 NullFields []string `json:"-"`
1137 }
1138
1139 func (s *GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpsResponse) MarshalJSON() ([]byte, error) {
1140 type NoMethod GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpsResponse
1141 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1142 }
1143
1144
1145
1146 type GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse struct {
1147
1148 InboundSamlConfigs []*GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig `json:"inboundSamlConfigs,omitempty"`
1149
1150
1151 NextPageToken string `json:"nextPageToken,omitempty"`
1152
1153
1154 googleapi.ServerResponse `json:"-"`
1155
1156
1157
1158
1159
1160 ForceSendFields []string `json:"-"`
1161
1162
1163
1164
1165 NullFields []string `json:"-"`
1166 }
1167
1168 func (s *GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse) MarshalJSON() ([]byte, error) {
1169 type NoMethod GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse
1170 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1171 }
1172
1173
1174
1175 type GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse struct {
1176
1177
1178 NextPageToken string `json:"nextPageToken,omitempty"`
1179
1180 OauthIdpConfigs []*GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig `json:"oauthIdpConfigs,omitempty"`
1181
1182
1183 googleapi.ServerResponse `json:"-"`
1184
1185
1186
1187
1188
1189 ForceSendFields []string `json:"-"`
1190
1191
1192
1193
1194 NullFields []string `json:"-"`
1195 }
1196
1197 func (s *GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse) MarshalJSON() ([]byte, error) {
1198 type NoMethod GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse
1199 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1200 }
1201
1202
1203
1204 type GoogleCloudIdentitytoolkitAdminV2ListTenantsResponse struct {
1205
1206 NextPageToken string `json:"nextPageToken,omitempty"`
1207
1208 Tenants []*GoogleCloudIdentitytoolkitAdminV2Tenant `json:"tenants,omitempty"`
1209
1210
1211 googleapi.ServerResponse `json:"-"`
1212
1213
1214
1215
1216
1217 ForceSendFields []string `json:"-"`
1218
1219
1220
1221
1222 NullFields []string `json:"-"`
1223 }
1224
1225 func (s *GoogleCloudIdentitytoolkitAdminV2ListTenantsResponse) MarshalJSON() ([]byte, error) {
1226 type NoMethod GoogleCloudIdentitytoolkitAdminV2ListTenantsResponse
1227 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1228 }
1229
1230
1231
1232 type GoogleCloudIdentitytoolkitAdminV2MonitoringConfig struct {
1233
1234
1235 RequestLogging *GoogleCloudIdentitytoolkitAdminV2RequestLogging `json:"requestLogging,omitempty"`
1236
1237
1238
1239
1240
1241 ForceSendFields []string `json:"-"`
1242
1243
1244
1245
1246 NullFields []string `json:"-"`
1247 }
1248
1249 func (s *GoogleCloudIdentitytoolkitAdminV2MonitoringConfig) MarshalJSON() ([]byte, error) {
1250 type NoMethod GoogleCloudIdentitytoolkitAdminV2MonitoringConfig
1251 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1252 }
1253
1254
1255
1256 type GoogleCloudIdentitytoolkitAdminV2MultiFactorAuthConfig struct {
1257
1258
1259
1260
1261
1262 EnabledProviders []string `json:"enabledProviders,omitempty"`
1263
1264
1265
1266 ProviderConfigs []*GoogleCloudIdentitytoolkitAdminV2ProviderConfig `json:"providerConfigs,omitempty"`
1267
1268
1269
1270
1271
1272
1273
1274
1275 State string `json:"state,omitempty"`
1276
1277
1278
1279
1280
1281 ForceSendFields []string `json:"-"`
1282
1283
1284
1285
1286 NullFields []string `json:"-"`
1287 }
1288
1289 func (s *GoogleCloudIdentitytoolkitAdminV2MultiFactorAuthConfig) MarshalJSON() ([]byte, error) {
1290 type NoMethod GoogleCloudIdentitytoolkitAdminV2MultiFactorAuthConfig
1291 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1292 }
1293
1294
1295
1296 type GoogleCloudIdentitytoolkitAdminV2MultiTenantConfig struct {
1297
1298 AllowTenants bool `json:"allowTenants,omitempty"`
1299
1300
1301
1302
1303
1304 DefaultTenantLocation string `json:"defaultTenantLocation,omitempty"`
1305
1306
1307
1308
1309
1310 ForceSendFields []string `json:"-"`
1311
1312
1313
1314
1315 NullFields []string `json:"-"`
1316 }
1317
1318 func (s *GoogleCloudIdentitytoolkitAdminV2MultiTenantConfig) MarshalJSON() ([]byte, error) {
1319 type NoMethod GoogleCloudIdentitytoolkitAdminV2MultiTenantConfig
1320 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1321 }
1322
1323
1324
1325 type GoogleCloudIdentitytoolkitAdminV2NotificationConfig struct {
1326
1327 DefaultLocale string `json:"defaultLocale,omitempty"`
1328
1329 SendEmail *GoogleCloudIdentitytoolkitAdminV2SendEmail `json:"sendEmail,omitempty"`
1330
1331 SendSms *GoogleCloudIdentitytoolkitAdminV2SendSms `json:"sendSms,omitempty"`
1332
1333
1334
1335
1336
1337 ForceSendFields []string `json:"-"`
1338
1339
1340
1341
1342 NullFields []string `json:"-"`
1343 }
1344
1345 func (s *GoogleCloudIdentitytoolkitAdminV2NotificationConfig) MarshalJSON() ([]byte, error) {
1346 type NoMethod GoogleCloudIdentitytoolkitAdminV2NotificationConfig
1347 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1348 }
1349
1350
1351
1352 type GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig struct {
1353
1354 ClientId string `json:"clientId,omitempty"`
1355
1356
1357 ClientSecret string `json:"clientSecret,omitempty"`
1358
1359 DisplayName string `json:"displayName,omitempty"`
1360
1361 Enabled bool `json:"enabled,omitempty"`
1362
1363 Issuer string `json:"issuer,omitempty"`
1364
1365
1366
1367 Name string `json:"name,omitempty"`
1368
1369
1370
1371
1372 ResponseType *GoogleCloudIdentitytoolkitAdminV2OAuthResponseType `json:"responseType,omitempty"`
1373
1374
1375 googleapi.ServerResponse `json:"-"`
1376
1377
1378
1379
1380
1381 ForceSendFields []string `json:"-"`
1382
1383
1384
1385
1386 NullFields []string `json:"-"`
1387 }
1388
1389 func (s *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig) MarshalJSON() ([]byte, error) {
1390 type NoMethod GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig
1391 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1392 }
1393
1394
1395
1396
1397
1398
1399
1400 type GoogleCloudIdentitytoolkitAdminV2OAuthResponseType struct {
1401
1402
1403 Code bool `json:"code,omitempty"`
1404
1405 IdToken bool `json:"idToken,omitempty"`
1406
1407 Token bool `json:"token,omitempty"`
1408
1409
1410
1411
1412
1413 ForceSendFields []string `json:"-"`
1414
1415
1416
1417
1418 NullFields []string `json:"-"`
1419 }
1420
1421 func (s *GoogleCloudIdentitytoolkitAdminV2OAuthResponseType) MarshalJSON() ([]byte, error) {
1422 type NoMethod GoogleCloudIdentitytoolkitAdminV2OAuthResponseType
1423 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1424 }
1425
1426
1427
1428 type GoogleCloudIdentitytoolkitAdminV2PasswordPolicyConfig struct {
1429
1430
1431 ForceUpgradeOnSignin bool `json:"forceUpgradeOnSignin,omitempty"`
1432
1433
1434 LastUpdateTime string `json:"lastUpdateTime,omitempty"`
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444 PasswordPolicyEnforcementState string `json:"passwordPolicyEnforcementState,omitempty"`
1445
1446
1447 PasswordPolicyVersions []*GoogleCloudIdentitytoolkitAdminV2PasswordPolicyVersion `json:"passwordPolicyVersions,omitempty"`
1448
1449
1450
1451
1452
1453 ForceSendFields []string `json:"-"`
1454
1455
1456
1457
1458 NullFields []string `json:"-"`
1459 }
1460
1461 func (s *GoogleCloudIdentitytoolkitAdminV2PasswordPolicyConfig) MarshalJSON() ([]byte, error) {
1462 type NoMethod GoogleCloudIdentitytoolkitAdminV2PasswordPolicyConfig
1463 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1464 }
1465
1466
1467
1468 type GoogleCloudIdentitytoolkitAdminV2PasswordPolicyVersion struct {
1469
1470
1471 CustomStrengthOptions *GoogleCloudIdentitytoolkitAdminV2CustomStrengthOptions `json:"customStrengthOptions,omitempty"`
1472
1473 SchemaVersion int64 `json:"schemaVersion,omitempty"`
1474
1475
1476
1477
1478
1479 ForceSendFields []string `json:"-"`
1480
1481
1482
1483
1484 NullFields []string `json:"-"`
1485 }
1486
1487 func (s *GoogleCloudIdentitytoolkitAdminV2PasswordPolicyVersion) MarshalJSON() ([]byte, error) {
1488 type NoMethod GoogleCloudIdentitytoolkitAdminV2PasswordPolicyVersion
1489 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1490 }
1491
1492
1493
1494 type GoogleCloudIdentitytoolkitAdminV2Permissions struct {
1495
1496
1497 DisabledUserDeletion bool `json:"disabledUserDeletion,omitempty"`
1498
1499
1500 DisabledUserSignup bool `json:"disabledUserSignup,omitempty"`
1501
1502
1503
1504
1505
1506 ForceSendFields []string `json:"-"`
1507
1508
1509
1510
1511 NullFields []string `json:"-"`
1512 }
1513
1514 func (s *GoogleCloudIdentitytoolkitAdminV2Permissions) MarshalJSON() ([]byte, error) {
1515 type NoMethod GoogleCloudIdentitytoolkitAdminV2Permissions
1516 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1517 }
1518
1519
1520
1521 type GoogleCloudIdentitytoolkitAdminV2PhoneNumber struct {
1522
1523 Enabled bool `json:"enabled,omitempty"`
1524
1525 TestPhoneNumbers map[string]string `json:"testPhoneNumbers,omitempty"`
1526
1527
1528
1529
1530
1531 ForceSendFields []string `json:"-"`
1532
1533
1534
1535
1536 NullFields []string `json:"-"`
1537 }
1538
1539 func (s *GoogleCloudIdentitytoolkitAdminV2PhoneNumber) MarshalJSON() ([]byte, error) {
1540 type NoMethod GoogleCloudIdentitytoolkitAdminV2PhoneNumber
1541 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1542 }
1543
1544
1545
1546 type GoogleCloudIdentitytoolkitAdminV2ProviderConfig struct {
1547
1548
1549
1550
1551
1552
1553
1554
1555 State string `json:"state,omitempty"`
1556
1557 TotpProviderConfig *GoogleCloudIdentitytoolkitAdminV2TotpMfaProviderConfig `json:"totpProviderConfig,omitempty"`
1558
1559
1560
1561
1562
1563 ForceSendFields []string `json:"-"`
1564
1565
1566
1567
1568 NullFields []string `json:"-"`
1569 }
1570
1571 func (s *GoogleCloudIdentitytoolkitAdminV2ProviderConfig) MarshalJSON() ([]byte, error) {
1572 type NoMethod GoogleCloudIdentitytoolkitAdminV2ProviderConfig
1573 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1574 }
1575
1576
1577
1578 type GoogleCloudIdentitytoolkitAdminV2QuotaConfig struct {
1579
1580
1581 SignUpQuotaConfig *GoogleCloudIdentitytoolkitAdminV2TemporaryQuota `json:"signUpQuotaConfig,omitempty"`
1582
1583
1584
1585
1586
1587 ForceSendFields []string `json:"-"`
1588
1589
1590
1591
1592 NullFields []string `json:"-"`
1593 }
1594
1595 func (s *GoogleCloudIdentitytoolkitAdminV2QuotaConfig) MarshalJSON() ([]byte, error) {
1596 type NoMethod GoogleCloudIdentitytoolkitAdminV2QuotaConfig
1597 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1598 }
1599
1600
1601
1602 type GoogleCloudIdentitytoolkitAdminV2RecaptchaConfig struct {
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613 EmailPasswordEnforcementState string `json:"emailPasswordEnforcementState,omitempty"`
1614
1615
1616 ManagedRules []*GoogleCloudIdentitytoolkitAdminV2RecaptchaManagedRule `json:"managedRules,omitempty"`
1617
1618 RecaptchaKeys []*GoogleCloudIdentitytoolkitAdminV2RecaptchaKey `json:"recaptchaKeys,omitempty"`
1619
1620
1621 UseAccountDefender bool `json:"useAccountDefender,omitempty"`
1622
1623
1624
1625
1626
1627 ForceSendFields []string `json:"-"`
1628
1629
1630
1631
1632 NullFields []string `json:"-"`
1633 }
1634
1635 func (s *GoogleCloudIdentitytoolkitAdminV2RecaptchaConfig) MarshalJSON() ([]byte, error) {
1636 type NoMethod GoogleCloudIdentitytoolkitAdminV2RecaptchaConfig
1637 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1638 }
1639
1640
1641
1642 type GoogleCloudIdentitytoolkitAdminV2RecaptchaKey struct {
1643
1644
1645 Key string `json:"key,omitempty"`
1646
1647
1648
1649
1650
1651
1652
1653 Type string `json:"type,omitempty"`
1654
1655
1656
1657
1658
1659 ForceSendFields []string `json:"-"`
1660
1661
1662
1663
1664 NullFields []string `json:"-"`
1665 }
1666
1667 func (s *GoogleCloudIdentitytoolkitAdminV2RecaptchaKey) MarshalJSON() ([]byte, error) {
1668 type NoMethod GoogleCloudIdentitytoolkitAdminV2RecaptchaKey
1669 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1670 }
1671
1672
1673
1674
1675
1676
1677 type GoogleCloudIdentitytoolkitAdminV2RecaptchaManagedRule struct {
1678
1679
1680
1681
1682
1683
1684 Action string `json:"action,omitempty"`
1685
1686
1687
1688
1689
1690 EndScore float64 `json:"endScore,omitempty"`
1691
1692
1693
1694
1695
1696 ForceSendFields []string `json:"-"`
1697
1698
1699
1700
1701 NullFields []string `json:"-"`
1702 }
1703
1704 func (s *GoogleCloudIdentitytoolkitAdminV2RecaptchaManagedRule) MarshalJSON() ([]byte, error) {
1705 type NoMethod GoogleCloudIdentitytoolkitAdminV2RecaptchaManagedRule
1706 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1707 }
1708
1709 func (s *GoogleCloudIdentitytoolkitAdminV2RecaptchaManagedRule) UnmarshalJSON(data []byte) error {
1710 type NoMethod GoogleCloudIdentitytoolkitAdminV2RecaptchaManagedRule
1711 var s1 struct {
1712 EndScore gensupport.JSONFloat64 `json:"endScore"`
1713 *NoMethod
1714 }
1715 s1.NoMethod = (*NoMethod)(s)
1716 if err := json.Unmarshal(data, &s1); err != nil {
1717 return err
1718 }
1719 s.EndScore = float64(s1.EndScore)
1720 return nil
1721 }
1722
1723
1724
1725 type GoogleCloudIdentitytoolkitAdminV2RequestLogging struct {
1726
1727 Enabled bool `json:"enabled,omitempty"`
1728
1729
1730
1731
1732
1733 ForceSendFields []string `json:"-"`
1734
1735
1736
1737
1738 NullFields []string `json:"-"`
1739 }
1740
1741 func (s *GoogleCloudIdentitytoolkitAdminV2RequestLogging) MarshalJSON() ([]byte, error) {
1742 type NoMethod GoogleCloudIdentitytoolkitAdminV2RequestLogging
1743 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1744 }
1745
1746
1747 type GoogleCloudIdentitytoolkitAdminV2SendEmail struct {
1748
1749 CallbackUri string `json:"callbackUri,omitempty"`
1750
1751 ChangeEmailTemplate *GoogleCloudIdentitytoolkitAdminV2EmailTemplate `json:"changeEmailTemplate,omitempty"`
1752
1753 DnsInfo *GoogleCloudIdentitytoolkitAdminV2DnsInfo `json:"dnsInfo,omitempty"`
1754
1755
1756 LegacyResetPasswordTemplate *GoogleCloudIdentitytoolkitAdminV2EmailTemplate `json:"legacyResetPasswordTemplate,omitempty"`
1757
1758
1759
1760
1761
1762
1763
1764 Method string `json:"method,omitempty"`
1765
1766 ResetPasswordTemplate *GoogleCloudIdentitytoolkitAdminV2EmailTemplate `json:"resetPasswordTemplate,omitempty"`
1767
1768
1769 RevertSecondFactorAdditionTemplate *GoogleCloudIdentitytoolkitAdminV2EmailTemplate `json:"revertSecondFactorAdditionTemplate,omitempty"`
1770
1771 Smtp *GoogleCloudIdentitytoolkitAdminV2Smtp `json:"smtp,omitempty"`
1772
1773 VerifyEmailTemplate *GoogleCloudIdentitytoolkitAdminV2EmailTemplate `json:"verifyEmailTemplate,omitempty"`
1774
1775
1776
1777
1778
1779 ForceSendFields []string `json:"-"`
1780
1781
1782
1783
1784 NullFields []string `json:"-"`
1785 }
1786
1787 func (s *GoogleCloudIdentitytoolkitAdminV2SendEmail) MarshalJSON() ([]byte, error) {
1788 type NoMethod GoogleCloudIdentitytoolkitAdminV2SendEmail
1789 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1790 }
1791
1792
1793 type GoogleCloudIdentitytoolkitAdminV2SendSms struct {
1794
1795 SmsTemplate *GoogleCloudIdentitytoolkitAdminV2SmsTemplate `json:"smsTemplate,omitempty"`
1796
1797 UseDeviceLocale bool `json:"useDeviceLocale,omitempty"`
1798
1799
1800
1801
1802
1803 ForceSendFields []string `json:"-"`
1804
1805
1806
1807
1808 NullFields []string `json:"-"`
1809 }
1810
1811 func (s *GoogleCloudIdentitytoolkitAdminV2SendSms) MarshalJSON() ([]byte, error) {
1812 type NoMethod GoogleCloudIdentitytoolkitAdminV2SendSms
1813 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1814 }
1815
1816
1817
1818 type GoogleCloudIdentitytoolkitAdminV2SignInConfig struct {
1819
1820
1821 AllowDuplicateEmails bool `json:"allowDuplicateEmails,omitempty"`
1822
1823
1824 Anonymous *GoogleCloudIdentitytoolkitAdminV2Anonymous `json:"anonymous,omitempty"`
1825
1826
1827 Email *GoogleCloudIdentitytoolkitAdminV2Email `json:"email,omitempty"`
1828
1829 HashConfig *GoogleCloudIdentitytoolkitAdminV2HashConfig `json:"hashConfig,omitempty"`
1830
1831
1832 PhoneNumber *GoogleCloudIdentitytoolkitAdminV2PhoneNumber `json:"phoneNumber,omitempty"`
1833
1834
1835
1836
1837
1838 ForceSendFields []string `json:"-"`
1839
1840
1841
1842
1843 NullFields []string `json:"-"`
1844 }
1845
1846 func (s *GoogleCloudIdentitytoolkitAdminV2SignInConfig) MarshalJSON() ([]byte, error) {
1847 type NoMethod GoogleCloudIdentitytoolkitAdminV2SignInConfig
1848 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1849 }
1850
1851
1852
1853
1854 type GoogleCloudIdentitytoolkitAdminV2SmsRegionConfig struct {
1855
1856
1857 AllowByDefault *GoogleCloudIdentitytoolkitAdminV2AllowByDefault `json:"allowByDefault,omitempty"`
1858
1859
1860 AllowlistOnly *GoogleCloudIdentitytoolkitAdminV2AllowlistOnly `json:"allowlistOnly,omitempty"`
1861
1862
1863
1864
1865
1866 ForceSendFields []string `json:"-"`
1867
1868
1869
1870
1871 NullFields []string `json:"-"`
1872 }
1873
1874 func (s *GoogleCloudIdentitytoolkitAdminV2SmsRegionConfig) MarshalJSON() ([]byte, error) {
1875 type NoMethod GoogleCloudIdentitytoolkitAdminV2SmsRegionConfig
1876 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1877 }
1878
1879
1880
1881 type GoogleCloudIdentitytoolkitAdminV2SmsTemplate struct {
1882
1883
1884
1885
1886 Content string `json:"content,omitempty"`
1887
1888
1889
1890
1891
1892 ForceSendFields []string `json:"-"`
1893
1894
1895
1896
1897 NullFields []string `json:"-"`
1898 }
1899
1900 func (s *GoogleCloudIdentitytoolkitAdminV2SmsTemplate) MarshalJSON() ([]byte, error) {
1901 type NoMethod GoogleCloudIdentitytoolkitAdminV2SmsTemplate
1902 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1903 }
1904
1905
1906 type GoogleCloudIdentitytoolkitAdminV2Smtp struct {
1907
1908 Host string `json:"host,omitempty"`
1909
1910 Password string `json:"password,omitempty"`
1911
1912 Port int64 `json:"port,omitempty"`
1913
1914
1915
1916
1917
1918
1919 SecurityMode string `json:"securityMode,omitempty"`
1920
1921 SenderEmail string `json:"senderEmail,omitempty"`
1922
1923 Username string `json:"username,omitempty"`
1924
1925
1926
1927
1928
1929 ForceSendFields []string `json:"-"`
1930
1931
1932
1933
1934 NullFields []string `json:"-"`
1935 }
1936
1937 func (s *GoogleCloudIdentitytoolkitAdminV2Smtp) MarshalJSON() ([]byte, error) {
1938 type NoMethod GoogleCloudIdentitytoolkitAdminV2Smtp
1939 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1940 }
1941
1942
1943
1944 type GoogleCloudIdentitytoolkitAdminV2SpCertificate struct {
1945
1946 ExpiresAt string `json:"expiresAt,omitempty"`
1947
1948 X509Certificate string `json:"x509Certificate,omitempty"`
1949
1950
1951
1952
1953
1954 ForceSendFields []string `json:"-"`
1955
1956
1957
1958
1959 NullFields []string `json:"-"`
1960 }
1961
1962 func (s *GoogleCloudIdentitytoolkitAdminV2SpCertificate) MarshalJSON() ([]byte, error) {
1963 type NoMethod GoogleCloudIdentitytoolkitAdminV2SpCertificate
1964 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1965 }
1966
1967
1968
1969
1970 type GoogleCloudIdentitytoolkitAdminV2SpConfig struct {
1971
1972 CallbackUri string `json:"callbackUri,omitempty"`
1973
1974
1975 SpCertificates []*GoogleCloudIdentitytoolkitAdminV2SpCertificate `json:"spCertificates,omitempty"`
1976
1977 SpEntityId string `json:"spEntityId,omitempty"`
1978
1979
1980
1981
1982
1983 ForceSendFields []string `json:"-"`
1984
1985
1986
1987
1988 NullFields []string `json:"-"`
1989 }
1990
1991 func (s *GoogleCloudIdentitytoolkitAdminV2SpConfig) MarshalJSON() ([]byte, error) {
1992 type NoMethod GoogleCloudIdentitytoolkitAdminV2SpConfig
1993 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1994 }
1995
1996
1997
1998 type GoogleCloudIdentitytoolkitAdminV2TemporaryQuota struct {
1999
2000 Quota int64 `json:"quota,omitempty,string"`
2001
2002 QuotaDuration string `json:"quotaDuration,omitempty"`
2003
2004 StartTime string `json:"startTime,omitempty"`
2005
2006
2007
2008
2009
2010 ForceSendFields []string `json:"-"`
2011
2012
2013
2014
2015 NullFields []string `json:"-"`
2016 }
2017
2018 func (s *GoogleCloudIdentitytoolkitAdminV2TemporaryQuota) MarshalJSON() ([]byte, error) {
2019 type NoMethod GoogleCloudIdentitytoolkitAdminV2TemporaryQuota
2020 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2021 }
2022
2023
2024
2025 type GoogleCloudIdentitytoolkitAdminV2Tenant struct {
2026
2027 AllowPasswordSignup bool `json:"allowPasswordSignup,omitempty"`
2028
2029
2030 AutodeleteAnonymousUsers bool `json:"autodeleteAnonymousUsers,omitempty"`
2031
2032
2033 Client *GoogleCloudIdentitytoolkitAdminV2ClientPermissionConfig `json:"client,omitempty"`
2034
2035
2036
2037 DisableAuth bool `json:"disableAuth,omitempty"`
2038
2039 DisplayName string `json:"displayName,omitempty"`
2040
2041
2042 EmailPrivacyConfig *GoogleCloudIdentitytoolkitAdminV2EmailPrivacyConfig `json:"emailPrivacyConfig,omitempty"`
2043
2044 EnableAnonymousUser bool `json:"enableAnonymousUser,omitempty"`
2045
2046 EnableEmailLinkSignin bool `json:"enableEmailLinkSignin,omitempty"`
2047
2048
2049
2050
2051
2052
2053 HashConfig *GoogleCloudIdentitytoolkitAdminV2HashConfig `json:"hashConfig,omitempty"`
2054
2055 Inheritance *GoogleCloudIdentitytoolkitAdminV2Inheritance `json:"inheritance,omitempty"`
2056
2057 MfaConfig *GoogleCloudIdentitytoolkitAdminV2MultiFactorAuthConfig `json:"mfaConfig,omitempty"`
2058
2059 Monitoring *GoogleCloudIdentitytoolkitAdminV2MonitoringConfig `json:"monitoring,omitempty"`
2060
2061
2062 Name string `json:"name,omitempty"`
2063
2064 PasswordPolicyConfig *GoogleCloudIdentitytoolkitAdminV2PasswordPolicyConfig `json:"passwordPolicyConfig,omitempty"`
2065
2066 RecaptchaConfig *GoogleCloudIdentitytoolkitAdminV2RecaptchaConfig `json:"recaptchaConfig,omitempty"`
2067
2068
2069 SmsRegionConfig *GoogleCloudIdentitytoolkitAdminV2SmsRegionConfig `json:"smsRegionConfig,omitempty"`
2070
2071
2072
2073 TestPhoneNumbers map[string]string `json:"testPhoneNumbers,omitempty"`
2074
2075
2076 googleapi.ServerResponse `json:"-"`
2077
2078
2079
2080
2081
2082 ForceSendFields []string `json:"-"`
2083
2084
2085
2086
2087 NullFields []string `json:"-"`
2088 }
2089
2090 func (s *GoogleCloudIdentitytoolkitAdminV2Tenant) MarshalJSON() ([]byte, error) {
2091 type NoMethod GoogleCloudIdentitytoolkitAdminV2Tenant
2092 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2093 }
2094
2095
2096
2097 type GoogleCloudIdentitytoolkitAdminV2TotpMfaProviderConfig struct {
2098
2099
2100 AdjacentIntervals int64 `json:"adjacentIntervals,omitempty"`
2101
2102
2103
2104
2105
2106 ForceSendFields []string `json:"-"`
2107
2108
2109
2110
2111 NullFields []string `json:"-"`
2112 }
2113
2114 func (s *GoogleCloudIdentitytoolkitAdminV2TotpMfaProviderConfig) MarshalJSON() ([]byte, error) {
2115 type NoMethod GoogleCloudIdentitytoolkitAdminV2TotpMfaProviderConfig
2116 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2117 }
2118
2119
2120
2121 type GoogleCloudIdentitytoolkitAdminV2Trigger struct {
2122
2123 FunctionUri string `json:"functionUri,omitempty"`
2124
2125 UpdateTime string `json:"updateTime,omitempty"`
2126
2127
2128
2129
2130
2131 ForceSendFields []string `json:"-"`
2132
2133
2134
2135
2136 NullFields []string `json:"-"`
2137 }
2138
2139 func (s *GoogleCloudIdentitytoolkitAdminV2Trigger) MarshalJSON() ([]byte, error) {
2140 type NoMethod GoogleCloudIdentitytoolkitAdminV2Trigger
2141 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2142 }
2143
2144
2145
2146 type GoogleCloudIdentitytoolkitV2AutoRetrievalInfo struct {
2147
2148
2149 AppSignatureHash string `json:"appSignatureHash,omitempty"`
2150
2151
2152
2153
2154
2155 ForceSendFields []string `json:"-"`
2156
2157
2158
2159
2160 NullFields []string `json:"-"`
2161 }
2162
2163 func (s *GoogleCloudIdentitytoolkitV2AutoRetrievalInfo) MarshalJSON() ([]byte, error) {
2164 type NoMethod GoogleCloudIdentitytoolkitV2AutoRetrievalInfo
2165 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2166 }
2167
2168
2169
2170 type GoogleCloudIdentitytoolkitV2CustomStrengthOptions struct {
2171
2172
2173 ContainsLowercaseCharacter bool `json:"containsLowercaseCharacter,omitempty"`
2174
2175
2176 ContainsNonAlphanumericCharacter bool `json:"containsNonAlphanumericCharacter,omitempty"`
2177
2178 ContainsNumericCharacter bool `json:"containsNumericCharacter,omitempty"`
2179
2180
2181 ContainsUppercaseCharacter bool `json:"containsUppercaseCharacter,omitempty"`
2182
2183 MaxPasswordLength int64 `json:"maxPasswordLength,omitempty"`
2184
2185 MinPasswordLength int64 `json:"minPasswordLength,omitempty"`
2186
2187
2188
2189
2190
2191 ForceSendFields []string `json:"-"`
2192
2193
2194
2195
2196 NullFields []string `json:"-"`
2197 }
2198
2199 func (s *GoogleCloudIdentitytoolkitV2CustomStrengthOptions) MarshalJSON() ([]byte, error) {
2200 type NoMethod GoogleCloudIdentitytoolkitV2CustomStrengthOptions
2201 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2202 }
2203
2204
2205
2206 type GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentRequest struct {
2207
2208
2209 DisplayName string `json:"displayName,omitempty"`
2210
2211 IdToken string `json:"idToken,omitempty"`
2212
2213
2214 PhoneVerificationInfo *GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneRequestInfo `json:"phoneVerificationInfo,omitempty"`
2215
2216
2217
2218 TenantId string `json:"tenantId,omitempty"`
2219
2220 TotpVerificationInfo *GoogleCloudIdentitytoolkitV2FinalizeMfaTotpEnrollmentRequestInfo `json:"totpVerificationInfo,omitempty"`
2221
2222
2223
2224
2225
2226 ForceSendFields []string `json:"-"`
2227
2228
2229
2230
2231 NullFields []string `json:"-"`
2232 }
2233
2234 func (s *GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentRequest) MarshalJSON() ([]byte, error) {
2235 type NoMethod GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentRequest
2236 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2237 }
2238
2239
2240
2241 type GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentResponse struct {
2242
2243 IdToken string `json:"idToken,omitempty"`
2244
2245 PhoneAuthInfo *GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneResponseInfo `json:"phoneAuthInfo,omitempty"`
2246
2247 RefreshToken string `json:"refreshToken,omitempty"`
2248
2249 TotpAuthInfo *GoogleCloudIdentitytoolkitV2FinalizeMfaTotpEnrollmentResponseInfo `json:"totpAuthInfo,omitempty"`
2250
2251
2252 googleapi.ServerResponse `json:"-"`
2253
2254
2255
2256
2257
2258 ForceSendFields []string `json:"-"`
2259
2260
2261
2262
2263 NullFields []string `json:"-"`
2264 }
2265
2266 func (s *GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentResponse) MarshalJSON() ([]byte, error) {
2267 type NoMethod GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentResponse
2268 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2269 }
2270
2271
2272
2273 type GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneRequestInfo struct {
2274
2275
2276 AndroidVerificationProof string `json:"androidVerificationProof,omitempty"`
2277
2278 Code string `json:"code,omitempty"`
2279
2280 PhoneNumber string `json:"phoneNumber,omitempty"`
2281
2282 SessionInfo string `json:"sessionInfo,omitempty"`
2283
2284
2285
2286
2287
2288 ForceSendFields []string `json:"-"`
2289
2290
2291
2292
2293 NullFields []string `json:"-"`
2294 }
2295
2296 func (s *GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneRequestInfo) MarshalJSON() ([]byte, error) {
2297 type NoMethod GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneRequestInfo
2298 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2299 }
2300
2301
2302
2303 type GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneResponseInfo struct {
2304
2305
2306 AndroidVerificationProof string `json:"androidVerificationProof,omitempty"`
2307
2308
2309 AndroidVerificationProofExpireTime string `json:"androidVerificationProofExpireTime,omitempty"`
2310
2311 PhoneNumber string `json:"phoneNumber,omitempty"`
2312
2313
2314
2315
2316
2317 ForceSendFields []string `json:"-"`
2318
2319
2320
2321
2322 NullFields []string `json:"-"`
2323 }
2324
2325 func (s *GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneResponseInfo) MarshalJSON() ([]byte, error) {
2326 type NoMethod GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneResponseInfo
2327 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2328 }
2329
2330
2331
2332 type GoogleCloudIdentitytoolkitV2FinalizeMfaSignInRequest struct {
2333
2334
2335 MfaEnrollmentId string `json:"mfaEnrollmentId,omitempty"`
2336
2337
2338 MfaPendingCredential string `json:"mfaPendingCredential,omitempty"`
2339
2340 PhoneVerificationInfo *GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneRequestInfo `json:"phoneVerificationInfo,omitempty"`
2341
2342
2343 TenantId string `json:"tenantId,omitempty"`
2344
2345 TotpVerificationInfo *GoogleCloudIdentitytoolkitV2MfaTotpSignInRequestInfo `json:"totpVerificationInfo,omitempty"`
2346
2347
2348
2349
2350
2351 ForceSendFields []string `json:"-"`
2352
2353
2354
2355
2356 NullFields []string `json:"-"`
2357 }
2358
2359 func (s *GoogleCloudIdentitytoolkitV2FinalizeMfaSignInRequest) MarshalJSON() ([]byte, error) {
2360 type NoMethod GoogleCloudIdentitytoolkitV2FinalizeMfaSignInRequest
2361 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2362 }
2363
2364
2365
2366 type GoogleCloudIdentitytoolkitV2FinalizeMfaSignInResponse struct {
2367
2368 IdToken string `json:"idToken,omitempty"`
2369
2370 PhoneAuthInfo *GoogleCloudIdentitytoolkitV2FinalizeMfaPhoneResponseInfo `json:"phoneAuthInfo,omitempty"`
2371
2372 RefreshToken string `json:"refreshToken,omitempty"`
2373
2374
2375 googleapi.ServerResponse `json:"-"`
2376
2377
2378
2379
2380
2381 ForceSendFields []string `json:"-"`
2382
2383
2384
2385
2386 NullFields []string `json:"-"`
2387 }
2388
2389 func (s *GoogleCloudIdentitytoolkitV2FinalizeMfaSignInResponse) MarshalJSON() ([]byte, error) {
2390 type NoMethod GoogleCloudIdentitytoolkitV2FinalizeMfaSignInResponse
2391 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2392 }
2393
2394
2395
2396 type GoogleCloudIdentitytoolkitV2FinalizeMfaTotpEnrollmentRequestInfo struct {
2397
2398 SessionInfo string `json:"sessionInfo,omitempty"`
2399
2400 VerificationCode string `json:"verificationCode,omitempty"`
2401
2402
2403
2404
2405
2406 ForceSendFields []string `json:"-"`
2407
2408
2409
2410
2411 NullFields []string `json:"-"`
2412 }
2413
2414 func (s *GoogleCloudIdentitytoolkitV2FinalizeMfaTotpEnrollmentRequestInfo) MarshalJSON() ([]byte, error) {
2415 type NoMethod GoogleCloudIdentitytoolkitV2FinalizeMfaTotpEnrollmentRequestInfo
2416 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2417 }
2418
2419
2420
2421 type GoogleCloudIdentitytoolkitV2FinalizeMfaTotpEnrollmentResponseInfo struct {
2422 }
2423
2424
2425
2426 type GoogleCloudIdentitytoolkitV2MfaTotpSignInRequestInfo struct {
2427
2428 VerificationCode string `json:"verificationCode,omitempty"`
2429
2430
2431
2432
2433
2434 ForceSendFields []string `json:"-"`
2435
2436
2437
2438
2439 NullFields []string `json:"-"`
2440 }
2441
2442 func (s *GoogleCloudIdentitytoolkitV2MfaTotpSignInRequestInfo) MarshalJSON() ([]byte, error) {
2443 type NoMethod GoogleCloudIdentitytoolkitV2MfaTotpSignInRequestInfo
2444 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2445 }
2446
2447
2448
2449 type GoogleCloudIdentitytoolkitV2PasswordPolicy struct {
2450
2451
2452 AllowedNonAlphanumericCharacters []string `json:"allowedNonAlphanumericCharacters,omitempty"`
2453
2454
2455 CustomStrengthOptions *GoogleCloudIdentitytoolkitV2CustomStrengthOptions `json:"customStrengthOptions,omitempty"`
2456
2457
2458
2459
2460
2461
2462
2463
2464 EnforcementState string `json:"enforcementState,omitempty"`
2465
2466
2467 ForceUpgradeOnSignin bool `json:"forceUpgradeOnSignin,omitempty"`
2468
2469 SchemaVersion int64 `json:"schemaVersion,omitempty"`
2470
2471
2472 googleapi.ServerResponse `json:"-"`
2473
2474
2475
2476
2477
2478
2479 ForceSendFields []string `json:"-"`
2480
2481
2482
2483
2484
2485 NullFields []string `json:"-"`
2486 }
2487
2488 func (s *GoogleCloudIdentitytoolkitV2PasswordPolicy) MarshalJSON() ([]byte, error) {
2489 type NoMethod GoogleCloudIdentitytoolkitV2PasswordPolicy
2490 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2491 }
2492
2493
2494 type GoogleCloudIdentitytoolkitV2RecaptchaConfig struct {
2495
2496
2497 RecaptchaEnforcementState []*GoogleCloudIdentitytoolkitV2RecaptchaEnforcementState `json:"recaptchaEnforcementState,omitempty"`
2498
2499
2500
2501
2502 RecaptchaKey string `json:"recaptchaKey,omitempty"`
2503
2504
2505 googleapi.ServerResponse `json:"-"`
2506
2507
2508
2509
2510
2511 ForceSendFields []string `json:"-"`
2512
2513
2514
2515
2516 NullFields []string `json:"-"`
2517 }
2518
2519 func (s *GoogleCloudIdentitytoolkitV2RecaptchaConfig) MarshalJSON() ([]byte, error) {
2520 type NoMethod GoogleCloudIdentitytoolkitV2RecaptchaConfig
2521 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2522 }
2523
2524
2525
2526 type GoogleCloudIdentitytoolkitV2RecaptchaEnforcementState struct {
2527
2528
2529
2530
2531
2532
2533
2534 EnforcementState string `json:"enforcementState,omitempty"`
2535
2536
2537
2538
2539
2540 Provider string `json:"provider,omitempty"`
2541
2542
2543
2544
2545
2546 ForceSendFields []string `json:"-"`
2547
2548
2549
2550
2551 NullFields []string `json:"-"`
2552 }
2553
2554 func (s *GoogleCloudIdentitytoolkitV2RecaptchaEnforcementState) MarshalJSON() ([]byte, error) {
2555 type NoMethod GoogleCloudIdentitytoolkitV2RecaptchaEnforcementState
2556 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2557 }
2558
2559
2560
2561 type GoogleCloudIdentitytoolkitV2RevokeTokenRequest struct {
2562
2563
2564
2565
2566 IdToken string `json:"idToken,omitempty"`
2567
2568
2569 ProviderId string `json:"providerId,omitempty"`
2570
2571
2572
2573
2574 RedirectUri string `json:"redirectUri,omitempty"`
2575
2576
2577 TenantId string `json:"tenantId,omitempty"`
2578
2579
2580
2581 Token string `json:"token,omitempty"`
2582
2583
2584
2585
2586
2587
2588
2589 TokenType string `json:"tokenType,omitempty"`
2590
2591
2592
2593
2594
2595 ForceSendFields []string `json:"-"`
2596
2597
2598
2599
2600 NullFields []string `json:"-"`
2601 }
2602
2603 func (s *GoogleCloudIdentitytoolkitV2RevokeTokenRequest) MarshalJSON() ([]byte, error) {
2604 type NoMethod GoogleCloudIdentitytoolkitV2RevokeTokenRequest
2605 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2606 }
2607
2608
2609
2610 type GoogleCloudIdentitytoolkitV2RevokeTokenResponse struct {
2611
2612 googleapi.ServerResponse `json:"-"`
2613 }
2614
2615
2616
2617 type GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest struct {
2618
2619 IdToken string `json:"idToken,omitempty"`
2620
2621
2622 PhoneEnrollmentInfo *GoogleCloudIdentitytoolkitV2StartMfaPhoneRequestInfo `json:"phoneEnrollmentInfo,omitempty"`
2623
2624
2625
2626 TenantId string `json:"tenantId,omitempty"`
2627
2628 TotpEnrollmentInfo *GoogleCloudIdentitytoolkitV2StartMfaTotpEnrollmentRequestInfo `json:"totpEnrollmentInfo,omitempty"`
2629
2630
2631
2632
2633
2634 ForceSendFields []string `json:"-"`
2635
2636
2637
2638
2639 NullFields []string `json:"-"`
2640 }
2641
2642 func (s *GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest) MarshalJSON() ([]byte, error) {
2643 type NoMethod GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest
2644 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2645 }
2646
2647
2648
2649 type GoogleCloudIdentitytoolkitV2StartMfaEnrollmentResponse struct {
2650
2651
2652 PhoneSessionInfo *GoogleCloudIdentitytoolkitV2StartMfaPhoneResponseInfo `json:"phoneSessionInfo,omitempty"`
2653
2654 TotpSessionInfo *GoogleCloudIdentitytoolkitV2StartMfaTotpEnrollmentResponseInfo `json:"totpSessionInfo,omitempty"`
2655
2656
2657 googleapi.ServerResponse `json:"-"`
2658
2659
2660
2661
2662
2663 ForceSendFields []string `json:"-"`
2664
2665
2666
2667
2668 NullFields []string `json:"-"`
2669 }
2670
2671 func (s *GoogleCloudIdentitytoolkitV2StartMfaEnrollmentResponse) MarshalJSON() ([]byte, error) {
2672 type NoMethod GoogleCloudIdentitytoolkitV2StartMfaEnrollmentResponse
2673 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2674 }
2675
2676
2677
2678 type GoogleCloudIdentitytoolkitV2StartMfaPhoneRequestInfo struct {
2679
2680
2681 AutoRetrievalInfo *GoogleCloudIdentitytoolkitV2AutoRetrievalInfo `json:"autoRetrievalInfo,omitempty"`
2682
2683 IosReceipt string `json:"iosReceipt,omitempty"`
2684
2685 IosSecret string `json:"iosSecret,omitempty"`
2686
2687 PhoneNumber string `json:"phoneNumber,omitempty"`
2688
2689
2690
2691
2692
2693 PlayIntegrityToken string `json:"playIntegrityToken,omitempty"`
2694
2695 RecaptchaToken string `json:"recaptchaToken,omitempty"`
2696
2697
2698
2699
2700
2701 SafetyNetToken string `json:"safetyNetToken,omitempty"`
2702
2703
2704
2705
2706
2707 ForceSendFields []string `json:"-"`
2708
2709
2710
2711
2712 NullFields []string `json:"-"`
2713 }
2714
2715 func (s *GoogleCloudIdentitytoolkitV2StartMfaPhoneRequestInfo) MarshalJSON() ([]byte, error) {
2716 type NoMethod GoogleCloudIdentitytoolkitV2StartMfaPhoneRequestInfo
2717 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2718 }
2719
2720
2721
2722 type GoogleCloudIdentitytoolkitV2StartMfaPhoneResponseInfo struct {
2723
2724 SessionInfo string `json:"sessionInfo,omitempty"`
2725
2726
2727
2728
2729
2730 ForceSendFields []string `json:"-"`
2731
2732
2733
2734
2735 NullFields []string `json:"-"`
2736 }
2737
2738 func (s *GoogleCloudIdentitytoolkitV2StartMfaPhoneResponseInfo) MarshalJSON() ([]byte, error) {
2739 type NoMethod GoogleCloudIdentitytoolkitV2StartMfaPhoneResponseInfo
2740 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2741 }
2742
2743
2744
2745 type GoogleCloudIdentitytoolkitV2StartMfaSignInRequest struct {
2746
2747
2748 MfaEnrollmentId string `json:"mfaEnrollmentId,omitempty"`
2749
2750
2751 MfaPendingCredential string `json:"mfaPendingCredential,omitempty"`
2752
2753
2754 PhoneSignInInfo *GoogleCloudIdentitytoolkitV2StartMfaPhoneRequestInfo `json:"phoneSignInInfo,omitempty"`
2755
2756
2757 TenantId string `json:"tenantId,omitempty"`
2758
2759
2760
2761
2762
2763 ForceSendFields []string `json:"-"`
2764
2765
2766
2767
2768 NullFields []string `json:"-"`
2769 }
2770
2771 func (s *GoogleCloudIdentitytoolkitV2StartMfaSignInRequest) MarshalJSON() ([]byte, error) {
2772 type NoMethod GoogleCloudIdentitytoolkitV2StartMfaSignInRequest
2773 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2774 }
2775
2776
2777 type GoogleCloudIdentitytoolkitV2StartMfaSignInResponse struct {
2778
2779
2780
2781
2782 PhoneResponseInfo *GoogleCloudIdentitytoolkitV2StartMfaPhoneResponseInfo `json:"phoneResponseInfo,omitempty"`
2783
2784
2785 googleapi.ServerResponse `json:"-"`
2786
2787
2788
2789
2790
2791 ForceSendFields []string `json:"-"`
2792
2793
2794
2795
2796 NullFields []string `json:"-"`
2797 }
2798
2799 func (s *GoogleCloudIdentitytoolkitV2StartMfaSignInResponse) MarshalJSON() ([]byte, error) {
2800 type NoMethod GoogleCloudIdentitytoolkitV2StartMfaSignInResponse
2801 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2802 }
2803
2804
2805
2806 type GoogleCloudIdentitytoolkitV2StartMfaTotpEnrollmentRequestInfo struct {
2807 }
2808
2809
2810
2811 type GoogleCloudIdentitytoolkitV2StartMfaTotpEnrollmentResponseInfo struct {
2812
2813 FinalizeEnrollmentTime string `json:"finalizeEnrollmentTime,omitempty"`
2814
2815
2816 HashingAlgorithm string `json:"hashingAlgorithm,omitempty"`
2817
2818 PeriodSec int64 `json:"periodSec,omitempty"`
2819
2820 SessionInfo string `json:"sessionInfo,omitempty"`
2821
2822
2823
2824
2825
2826 SharedSecretKey string `json:"sharedSecretKey,omitempty"`
2827
2828
2829 VerificationCodeLength int64 `json:"verificationCodeLength,omitempty"`
2830
2831
2832
2833
2834
2835 ForceSendFields []string `json:"-"`
2836
2837
2838
2839
2840 NullFields []string `json:"-"`
2841 }
2842
2843 func (s *GoogleCloudIdentitytoolkitV2StartMfaTotpEnrollmentResponseInfo) MarshalJSON() ([]byte, error) {
2844 type NoMethod GoogleCloudIdentitytoolkitV2StartMfaTotpEnrollmentResponseInfo
2845 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2846 }
2847
2848
2849 type GoogleCloudIdentitytoolkitV2WithdrawMfaRequest struct {
2850
2851 IdToken string `json:"idToken,omitempty"`
2852
2853 MfaEnrollmentId string `json:"mfaEnrollmentId,omitempty"`
2854
2855
2856
2857 TenantId string `json:"tenantId,omitempty"`
2858
2859
2860
2861
2862
2863 ForceSendFields []string `json:"-"`
2864
2865
2866
2867
2868 NullFields []string `json:"-"`
2869 }
2870
2871 func (s *GoogleCloudIdentitytoolkitV2WithdrawMfaRequest) MarshalJSON() ([]byte, error) {
2872 type NoMethod GoogleCloudIdentitytoolkitV2WithdrawMfaRequest
2873 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2874 }
2875
2876
2877
2878 type GoogleCloudIdentitytoolkitV2WithdrawMfaResponse struct {
2879
2880 IdToken string `json:"idToken,omitempty"`
2881
2882 RefreshToken string `json:"refreshToken,omitempty"`
2883
2884
2885 googleapi.ServerResponse `json:"-"`
2886
2887
2888
2889
2890
2891 ForceSendFields []string `json:"-"`
2892
2893
2894
2895
2896 NullFields []string `json:"-"`
2897 }
2898
2899 func (s *GoogleCloudIdentitytoolkitV2WithdrawMfaResponse) MarshalJSON() ([]byte, error) {
2900 type NoMethod GoogleCloudIdentitytoolkitV2WithdrawMfaResponse
2901 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2902 }
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920 type GoogleIamV1AuditConfig struct {
2921
2922 AuditLogConfigs []*GoogleIamV1AuditLogConfig `json:"auditLogConfigs,omitempty"`
2923
2924
2925
2926 Service string `json:"service,omitempty"`
2927
2928
2929
2930
2931
2932 ForceSendFields []string `json:"-"`
2933
2934
2935
2936
2937 NullFields []string `json:"-"`
2938 }
2939
2940 func (s *GoogleIamV1AuditConfig) MarshalJSON() ([]byte, error) {
2941 type NoMethod GoogleIamV1AuditConfig
2942 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2943 }
2944
2945
2946
2947
2948
2949
2950 type GoogleIamV1AuditLogConfig struct {
2951
2952
2953 ExemptedMembers []string `json:"exemptedMembers,omitempty"`
2954
2955
2956
2957
2958
2959
2960
2961 LogType string `json:"logType,omitempty"`
2962
2963
2964
2965
2966
2967 ForceSendFields []string `json:"-"`
2968
2969
2970
2971
2972 NullFields []string `json:"-"`
2973 }
2974
2975 func (s *GoogleIamV1AuditLogConfig) MarshalJSON() ([]byte, error) {
2976 type NoMethod GoogleIamV1AuditLogConfig
2977 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2978 }
2979
2980
2981 type GoogleIamV1Binding struct {
2982
2983
2984
2985
2986
2987
2988
2989
2990 Condition *GoogleTypeExpr `json:"condition,omitempty"`
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053 Members []string `json:"members,omitempty"`
3054
3055
3056
3057
3058
3059
3060 Role string `json:"role,omitempty"`
3061
3062
3063
3064
3065
3066 ForceSendFields []string `json:"-"`
3067
3068
3069
3070
3071 NullFields []string `json:"-"`
3072 }
3073
3074 func (s *GoogleIamV1Binding) MarshalJSON() ([]byte, error) {
3075 type NoMethod GoogleIamV1Binding
3076 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3077 }
3078
3079
3080 type GoogleIamV1GetIamPolicyRequest struct {
3081
3082
3083 Options *GoogleIamV1GetPolicyOptions `json:"options,omitempty"`
3084
3085
3086
3087
3088
3089 ForceSendFields []string `json:"-"`
3090
3091
3092
3093
3094 NullFields []string `json:"-"`
3095 }
3096
3097 func (s *GoogleIamV1GetIamPolicyRequest) MarshalJSON() ([]byte, error) {
3098 type NoMethod GoogleIamV1GetIamPolicyRequest
3099 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3100 }
3101
3102
3103 type GoogleIamV1GetPolicyOptions struct {
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115 RequestedPolicyVersion int64 `json:"requestedPolicyVersion,omitempty"`
3116
3117
3118
3119
3120
3121 ForceSendFields []string `json:"-"`
3122
3123
3124
3125
3126 NullFields []string `json:"-"`
3127 }
3128
3129 func (s *GoogleIamV1GetPolicyOptions) MarshalJSON() ([]byte, error) {
3130 type NoMethod GoogleIamV1GetPolicyOptions
3131 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3132 }
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164 type GoogleIamV1Policy struct {
3165
3166 AuditConfigs []*GoogleIamV1AuditConfig `json:"auditConfigs,omitempty"`
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176 Bindings []*GoogleIamV1Binding `json:"bindings,omitempty"`
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188 Etag string `json:"etag,omitempty"`
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204 Version int64 `json:"version,omitempty"`
3205
3206
3207 googleapi.ServerResponse `json:"-"`
3208
3209
3210
3211
3212
3213 ForceSendFields []string `json:"-"`
3214
3215
3216
3217
3218 NullFields []string `json:"-"`
3219 }
3220
3221 func (s *GoogleIamV1Policy) MarshalJSON() ([]byte, error) {
3222 type NoMethod GoogleIamV1Policy
3223 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3224 }
3225
3226
3227 type GoogleIamV1SetIamPolicyRequest struct {
3228
3229
3230
3231
3232 Policy *GoogleIamV1Policy `json:"policy,omitempty"`
3233
3234
3235
3236 UpdateMask string `json:"updateMask,omitempty"`
3237
3238
3239
3240
3241
3242 ForceSendFields []string `json:"-"`
3243
3244
3245
3246
3247 NullFields []string `json:"-"`
3248 }
3249
3250 func (s *GoogleIamV1SetIamPolicyRequest) MarshalJSON() ([]byte, error) {
3251 type NoMethod GoogleIamV1SetIamPolicyRequest
3252 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3253 }
3254
3255
3256
3257 type GoogleIamV1TestIamPermissionsRequest struct {
3258
3259
3260
3261
3262 Permissions []string `json:"permissions,omitempty"`
3263
3264
3265
3266
3267
3268 ForceSendFields []string `json:"-"`
3269
3270
3271
3272
3273 NullFields []string `json:"-"`
3274 }
3275
3276 func (s *GoogleIamV1TestIamPermissionsRequest) MarshalJSON() ([]byte, error) {
3277 type NoMethod GoogleIamV1TestIamPermissionsRequest
3278 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3279 }
3280
3281
3282
3283 type GoogleIamV1TestIamPermissionsResponse struct {
3284
3285
3286 Permissions []string `json:"permissions,omitempty"`
3287
3288
3289 googleapi.ServerResponse `json:"-"`
3290
3291
3292
3293
3294
3295 ForceSendFields []string `json:"-"`
3296
3297
3298
3299
3300 NullFields []string `json:"-"`
3301 }
3302
3303 func (s *GoogleIamV1TestIamPermissionsResponse) MarshalJSON() ([]byte, error) {
3304 type NoMethod GoogleIamV1TestIamPermissionsResponse
3305 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3306 }
3307
3308
3309
3310
3311
3312
3313 type GoogleProtobufEmpty struct {
3314
3315 googleapi.ServerResponse `json:"-"`
3316 }
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334 type GoogleTypeExpr struct {
3335
3336
3337 Description string `json:"description,omitempty"`
3338
3339
3340 Expression string `json:"expression,omitempty"`
3341
3342
3343 Location string `json:"location,omitempty"`
3344
3345
3346
3347 Title string `json:"title,omitempty"`
3348
3349
3350
3351
3352
3353 ForceSendFields []string `json:"-"`
3354
3355
3356
3357
3358 NullFields []string `json:"-"`
3359 }
3360
3361 func (s *GoogleTypeExpr) MarshalJSON() ([]byte, error) {
3362 type NoMethod GoogleTypeExpr
3363 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3364 }
3365
3366 type AccountsRevokeTokenCall struct {
3367 s *Service
3368 googlecloudidentitytoolkitv2revoketokenrequest *GoogleCloudIdentitytoolkitV2RevokeTokenRequest
3369 urlParams_ gensupport.URLParams
3370 ctx_ context.Context
3371 header_ http.Header
3372 }
3373
3374
3375
3376
3377
3378
3379 func (r *AccountsService) RevokeToken(googlecloudidentitytoolkitv2revoketokenrequest *GoogleCloudIdentitytoolkitV2RevokeTokenRequest) *AccountsRevokeTokenCall {
3380 c := &AccountsRevokeTokenCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3381 c.googlecloudidentitytoolkitv2revoketokenrequest = googlecloudidentitytoolkitv2revoketokenrequest
3382 return c
3383 }
3384
3385
3386
3387
3388 func (c *AccountsRevokeTokenCall) Fields(s ...googleapi.Field) *AccountsRevokeTokenCall {
3389 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3390 return c
3391 }
3392
3393
3394 func (c *AccountsRevokeTokenCall) Context(ctx context.Context) *AccountsRevokeTokenCall {
3395 c.ctx_ = ctx
3396 return c
3397 }
3398
3399
3400
3401 func (c *AccountsRevokeTokenCall) Header() http.Header {
3402 if c.header_ == nil {
3403 c.header_ = make(http.Header)
3404 }
3405 return c.header_
3406 }
3407
3408 func (c *AccountsRevokeTokenCall) doRequest(alt string) (*http.Response, error) {
3409 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
3410 var body io.Reader = nil
3411 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitv2revoketokenrequest)
3412 if err != nil {
3413 return nil, err
3414 }
3415 c.urlParams_.Set("alt", alt)
3416 c.urlParams_.Set("prettyPrint", "false")
3417 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/accounts:revokeToken")
3418 urls += "?" + c.urlParams_.Encode()
3419 req, err := http.NewRequest("POST", urls, body)
3420 if err != nil {
3421 return nil, err
3422 }
3423 req.Header = reqHeaders
3424 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3425 }
3426
3427
3428
3429
3430
3431
3432
3433 func (c *AccountsRevokeTokenCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV2RevokeTokenResponse, error) {
3434 gensupport.SetOptions(c.urlParams_, opts...)
3435 res, err := c.doRequest("json")
3436 if res != nil && res.StatusCode == http.StatusNotModified {
3437 if res.Body != nil {
3438 res.Body.Close()
3439 }
3440 return nil, gensupport.WrapError(&googleapi.Error{
3441 Code: res.StatusCode,
3442 Header: res.Header,
3443 })
3444 }
3445 if err != nil {
3446 return nil, err
3447 }
3448 defer googleapi.CloseBody(res)
3449 if err := googleapi.CheckResponse(res); err != nil {
3450 return nil, gensupport.WrapError(err)
3451 }
3452 ret := &GoogleCloudIdentitytoolkitV2RevokeTokenResponse{
3453 ServerResponse: googleapi.ServerResponse{
3454 Header: res.Header,
3455 HTTPStatusCode: res.StatusCode,
3456 },
3457 }
3458 target := &ret
3459 if err := gensupport.DecodeResponse(target, res); err != nil {
3460 return nil, err
3461 }
3462 return ret, nil
3463 }
3464
3465 type AccountsMfaEnrollmentFinalizeCall struct {
3466 s *Service
3467 googlecloudidentitytoolkitv2finalizemfaenrollmentrequest *GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentRequest
3468 urlParams_ gensupport.URLParams
3469 ctx_ context.Context
3470 header_ http.Header
3471 }
3472
3473
3474 func (r *AccountsMfaEnrollmentService) Finalize(googlecloudidentitytoolkitv2finalizemfaenrollmentrequest *GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentRequest) *AccountsMfaEnrollmentFinalizeCall {
3475 c := &AccountsMfaEnrollmentFinalizeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3476 c.googlecloudidentitytoolkitv2finalizemfaenrollmentrequest = googlecloudidentitytoolkitv2finalizemfaenrollmentrequest
3477 return c
3478 }
3479
3480
3481
3482
3483 func (c *AccountsMfaEnrollmentFinalizeCall) Fields(s ...googleapi.Field) *AccountsMfaEnrollmentFinalizeCall {
3484 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3485 return c
3486 }
3487
3488
3489 func (c *AccountsMfaEnrollmentFinalizeCall) Context(ctx context.Context) *AccountsMfaEnrollmentFinalizeCall {
3490 c.ctx_ = ctx
3491 return c
3492 }
3493
3494
3495
3496 func (c *AccountsMfaEnrollmentFinalizeCall) Header() http.Header {
3497 if c.header_ == nil {
3498 c.header_ = make(http.Header)
3499 }
3500 return c.header_
3501 }
3502
3503 func (c *AccountsMfaEnrollmentFinalizeCall) doRequest(alt string) (*http.Response, error) {
3504 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
3505 var body io.Reader = nil
3506 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitv2finalizemfaenrollmentrequest)
3507 if err != nil {
3508 return nil, err
3509 }
3510 c.urlParams_.Set("alt", alt)
3511 c.urlParams_.Set("prettyPrint", "false")
3512 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/accounts/mfaEnrollment:finalize")
3513 urls += "?" + c.urlParams_.Encode()
3514 req, err := http.NewRequest("POST", urls, body)
3515 if err != nil {
3516 return nil, err
3517 }
3518 req.Header = reqHeaders
3519 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3520 }
3521
3522
3523
3524
3525
3526
3527
3528 func (c *AccountsMfaEnrollmentFinalizeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentResponse, error) {
3529 gensupport.SetOptions(c.urlParams_, opts...)
3530 res, err := c.doRequest("json")
3531 if res != nil && res.StatusCode == http.StatusNotModified {
3532 if res.Body != nil {
3533 res.Body.Close()
3534 }
3535 return nil, gensupport.WrapError(&googleapi.Error{
3536 Code: res.StatusCode,
3537 Header: res.Header,
3538 })
3539 }
3540 if err != nil {
3541 return nil, err
3542 }
3543 defer googleapi.CloseBody(res)
3544 if err := googleapi.CheckResponse(res); err != nil {
3545 return nil, gensupport.WrapError(err)
3546 }
3547 ret := &GoogleCloudIdentitytoolkitV2FinalizeMfaEnrollmentResponse{
3548 ServerResponse: googleapi.ServerResponse{
3549 Header: res.Header,
3550 HTTPStatusCode: res.StatusCode,
3551 },
3552 }
3553 target := &ret
3554 if err := gensupport.DecodeResponse(target, res); err != nil {
3555 return nil, err
3556 }
3557 return ret, nil
3558 }
3559
3560 type AccountsMfaEnrollmentStartCall struct {
3561 s *Service
3562 googlecloudidentitytoolkitv2startmfaenrollmentrequest *GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest
3563 urlParams_ gensupport.URLParams
3564 ctx_ context.Context
3565 header_ http.Header
3566 }
3567
3568
3569
3570 func (r *AccountsMfaEnrollmentService) Start(googlecloudidentitytoolkitv2startmfaenrollmentrequest *GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest) *AccountsMfaEnrollmentStartCall {
3571 c := &AccountsMfaEnrollmentStartCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3572 c.googlecloudidentitytoolkitv2startmfaenrollmentrequest = googlecloudidentitytoolkitv2startmfaenrollmentrequest
3573 return c
3574 }
3575
3576
3577
3578
3579 func (c *AccountsMfaEnrollmentStartCall) Fields(s ...googleapi.Field) *AccountsMfaEnrollmentStartCall {
3580 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3581 return c
3582 }
3583
3584
3585 func (c *AccountsMfaEnrollmentStartCall) Context(ctx context.Context) *AccountsMfaEnrollmentStartCall {
3586 c.ctx_ = ctx
3587 return c
3588 }
3589
3590
3591
3592 func (c *AccountsMfaEnrollmentStartCall) Header() http.Header {
3593 if c.header_ == nil {
3594 c.header_ = make(http.Header)
3595 }
3596 return c.header_
3597 }
3598
3599 func (c *AccountsMfaEnrollmentStartCall) doRequest(alt string) (*http.Response, error) {
3600 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
3601 var body io.Reader = nil
3602 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitv2startmfaenrollmentrequest)
3603 if err != nil {
3604 return nil, err
3605 }
3606 c.urlParams_.Set("alt", alt)
3607 c.urlParams_.Set("prettyPrint", "false")
3608 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/accounts/mfaEnrollment:start")
3609 urls += "?" + c.urlParams_.Encode()
3610 req, err := http.NewRequest("POST", urls, body)
3611 if err != nil {
3612 return nil, err
3613 }
3614 req.Header = reqHeaders
3615 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3616 }
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626 func (c *AccountsMfaEnrollmentStartCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV2StartMfaEnrollmentResponse, error) {
3627 gensupport.SetOptions(c.urlParams_, opts...)
3628 res, err := c.doRequest("json")
3629 if res != nil && res.StatusCode == http.StatusNotModified {
3630 if res.Body != nil {
3631 res.Body.Close()
3632 }
3633 return nil, gensupport.WrapError(&googleapi.Error{
3634 Code: res.StatusCode,
3635 Header: res.Header,
3636 })
3637 }
3638 if err != nil {
3639 return nil, err
3640 }
3641 defer googleapi.CloseBody(res)
3642 if err := googleapi.CheckResponse(res); err != nil {
3643 return nil, gensupport.WrapError(err)
3644 }
3645 ret := &GoogleCloudIdentitytoolkitV2StartMfaEnrollmentResponse{
3646 ServerResponse: googleapi.ServerResponse{
3647 Header: res.Header,
3648 HTTPStatusCode: res.StatusCode,
3649 },
3650 }
3651 target := &ret
3652 if err := gensupport.DecodeResponse(target, res); err != nil {
3653 return nil, err
3654 }
3655 return ret, nil
3656 }
3657
3658 type AccountsMfaEnrollmentWithdrawCall struct {
3659 s *Service
3660 googlecloudidentitytoolkitv2withdrawmfarequest *GoogleCloudIdentitytoolkitV2WithdrawMfaRequest
3661 urlParams_ gensupport.URLParams
3662 ctx_ context.Context
3663 header_ http.Header
3664 }
3665
3666
3667
3668 func (r *AccountsMfaEnrollmentService) Withdraw(googlecloudidentitytoolkitv2withdrawmfarequest *GoogleCloudIdentitytoolkitV2WithdrawMfaRequest) *AccountsMfaEnrollmentWithdrawCall {
3669 c := &AccountsMfaEnrollmentWithdrawCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3670 c.googlecloudidentitytoolkitv2withdrawmfarequest = googlecloudidentitytoolkitv2withdrawmfarequest
3671 return c
3672 }
3673
3674
3675
3676
3677 func (c *AccountsMfaEnrollmentWithdrawCall) Fields(s ...googleapi.Field) *AccountsMfaEnrollmentWithdrawCall {
3678 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3679 return c
3680 }
3681
3682
3683 func (c *AccountsMfaEnrollmentWithdrawCall) Context(ctx context.Context) *AccountsMfaEnrollmentWithdrawCall {
3684 c.ctx_ = ctx
3685 return c
3686 }
3687
3688
3689
3690 func (c *AccountsMfaEnrollmentWithdrawCall) Header() http.Header {
3691 if c.header_ == nil {
3692 c.header_ = make(http.Header)
3693 }
3694 return c.header_
3695 }
3696
3697 func (c *AccountsMfaEnrollmentWithdrawCall) doRequest(alt string) (*http.Response, error) {
3698 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
3699 var body io.Reader = nil
3700 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitv2withdrawmfarequest)
3701 if err != nil {
3702 return nil, err
3703 }
3704 c.urlParams_.Set("alt", alt)
3705 c.urlParams_.Set("prettyPrint", "false")
3706 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/accounts/mfaEnrollment:withdraw")
3707 urls += "?" + c.urlParams_.Encode()
3708 req, err := http.NewRequest("POST", urls, body)
3709 if err != nil {
3710 return nil, err
3711 }
3712 req.Header = reqHeaders
3713 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3714 }
3715
3716
3717
3718
3719
3720
3721
3722 func (c *AccountsMfaEnrollmentWithdrawCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV2WithdrawMfaResponse, error) {
3723 gensupport.SetOptions(c.urlParams_, opts...)
3724 res, err := c.doRequest("json")
3725 if res != nil && res.StatusCode == http.StatusNotModified {
3726 if res.Body != nil {
3727 res.Body.Close()
3728 }
3729 return nil, gensupport.WrapError(&googleapi.Error{
3730 Code: res.StatusCode,
3731 Header: res.Header,
3732 })
3733 }
3734 if err != nil {
3735 return nil, err
3736 }
3737 defer googleapi.CloseBody(res)
3738 if err := googleapi.CheckResponse(res); err != nil {
3739 return nil, gensupport.WrapError(err)
3740 }
3741 ret := &GoogleCloudIdentitytoolkitV2WithdrawMfaResponse{
3742 ServerResponse: googleapi.ServerResponse{
3743 Header: res.Header,
3744 HTTPStatusCode: res.StatusCode,
3745 },
3746 }
3747 target := &ret
3748 if err := gensupport.DecodeResponse(target, res); err != nil {
3749 return nil, err
3750 }
3751 return ret, nil
3752 }
3753
3754 type AccountsMfaSignInFinalizeCall struct {
3755 s *Service
3756 googlecloudidentitytoolkitv2finalizemfasigninrequest *GoogleCloudIdentitytoolkitV2FinalizeMfaSignInRequest
3757 urlParams_ gensupport.URLParams
3758 ctx_ context.Context
3759 header_ http.Header
3760 }
3761
3762
3763 func (r *AccountsMfaSignInService) Finalize(googlecloudidentitytoolkitv2finalizemfasigninrequest *GoogleCloudIdentitytoolkitV2FinalizeMfaSignInRequest) *AccountsMfaSignInFinalizeCall {
3764 c := &AccountsMfaSignInFinalizeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3765 c.googlecloudidentitytoolkitv2finalizemfasigninrequest = googlecloudidentitytoolkitv2finalizemfasigninrequest
3766 return c
3767 }
3768
3769
3770
3771
3772 func (c *AccountsMfaSignInFinalizeCall) Fields(s ...googleapi.Field) *AccountsMfaSignInFinalizeCall {
3773 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3774 return c
3775 }
3776
3777
3778 func (c *AccountsMfaSignInFinalizeCall) Context(ctx context.Context) *AccountsMfaSignInFinalizeCall {
3779 c.ctx_ = ctx
3780 return c
3781 }
3782
3783
3784
3785 func (c *AccountsMfaSignInFinalizeCall) Header() http.Header {
3786 if c.header_ == nil {
3787 c.header_ = make(http.Header)
3788 }
3789 return c.header_
3790 }
3791
3792 func (c *AccountsMfaSignInFinalizeCall) doRequest(alt string) (*http.Response, error) {
3793 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
3794 var body io.Reader = nil
3795 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitv2finalizemfasigninrequest)
3796 if err != nil {
3797 return nil, err
3798 }
3799 c.urlParams_.Set("alt", alt)
3800 c.urlParams_.Set("prettyPrint", "false")
3801 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/accounts/mfaSignIn:finalize")
3802 urls += "?" + c.urlParams_.Encode()
3803 req, err := http.NewRequest("POST", urls, body)
3804 if err != nil {
3805 return nil, err
3806 }
3807 req.Header = reqHeaders
3808 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3809 }
3810
3811
3812
3813
3814
3815
3816
3817 func (c *AccountsMfaSignInFinalizeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV2FinalizeMfaSignInResponse, error) {
3818 gensupport.SetOptions(c.urlParams_, opts...)
3819 res, err := c.doRequest("json")
3820 if res != nil && res.StatusCode == http.StatusNotModified {
3821 if res.Body != nil {
3822 res.Body.Close()
3823 }
3824 return nil, gensupport.WrapError(&googleapi.Error{
3825 Code: res.StatusCode,
3826 Header: res.Header,
3827 })
3828 }
3829 if err != nil {
3830 return nil, err
3831 }
3832 defer googleapi.CloseBody(res)
3833 if err := googleapi.CheckResponse(res); err != nil {
3834 return nil, gensupport.WrapError(err)
3835 }
3836 ret := &GoogleCloudIdentitytoolkitV2FinalizeMfaSignInResponse{
3837 ServerResponse: googleapi.ServerResponse{
3838 Header: res.Header,
3839 HTTPStatusCode: res.StatusCode,
3840 },
3841 }
3842 target := &ret
3843 if err := gensupport.DecodeResponse(target, res); err != nil {
3844 return nil, err
3845 }
3846 return ret, nil
3847 }
3848
3849 type AccountsMfaSignInStartCall struct {
3850 s *Service
3851 googlecloudidentitytoolkitv2startmfasigninrequest *GoogleCloudIdentitytoolkitV2StartMfaSignInRequest
3852 urlParams_ gensupport.URLParams
3853 ctx_ context.Context
3854 header_ http.Header
3855 }
3856
3857
3858 func (r *AccountsMfaSignInService) Start(googlecloudidentitytoolkitv2startmfasigninrequest *GoogleCloudIdentitytoolkitV2StartMfaSignInRequest) *AccountsMfaSignInStartCall {
3859 c := &AccountsMfaSignInStartCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3860 c.googlecloudidentitytoolkitv2startmfasigninrequest = googlecloudidentitytoolkitv2startmfasigninrequest
3861 return c
3862 }
3863
3864
3865
3866
3867 func (c *AccountsMfaSignInStartCall) Fields(s ...googleapi.Field) *AccountsMfaSignInStartCall {
3868 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3869 return c
3870 }
3871
3872
3873 func (c *AccountsMfaSignInStartCall) Context(ctx context.Context) *AccountsMfaSignInStartCall {
3874 c.ctx_ = ctx
3875 return c
3876 }
3877
3878
3879
3880 func (c *AccountsMfaSignInStartCall) Header() http.Header {
3881 if c.header_ == nil {
3882 c.header_ = make(http.Header)
3883 }
3884 return c.header_
3885 }
3886
3887 func (c *AccountsMfaSignInStartCall) doRequest(alt string) (*http.Response, error) {
3888 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
3889 var body io.Reader = nil
3890 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitv2startmfasigninrequest)
3891 if err != nil {
3892 return nil, err
3893 }
3894 c.urlParams_.Set("alt", alt)
3895 c.urlParams_.Set("prettyPrint", "false")
3896 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/accounts/mfaSignIn:start")
3897 urls += "?" + c.urlParams_.Encode()
3898 req, err := http.NewRequest("POST", urls, body)
3899 if err != nil {
3900 return nil, err
3901 }
3902 req.Header = reqHeaders
3903 return gensupport.SendRequest(c.ctx_, c.s.client, req)
3904 }
3905
3906
3907
3908
3909
3910
3911
3912 func (c *AccountsMfaSignInStartCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV2StartMfaSignInResponse, error) {
3913 gensupport.SetOptions(c.urlParams_, opts...)
3914 res, err := c.doRequest("json")
3915 if res != nil && res.StatusCode == http.StatusNotModified {
3916 if res.Body != nil {
3917 res.Body.Close()
3918 }
3919 return nil, gensupport.WrapError(&googleapi.Error{
3920 Code: res.StatusCode,
3921 Header: res.Header,
3922 })
3923 }
3924 if err != nil {
3925 return nil, err
3926 }
3927 defer googleapi.CloseBody(res)
3928 if err := googleapi.CheckResponse(res); err != nil {
3929 return nil, gensupport.WrapError(err)
3930 }
3931 ret := &GoogleCloudIdentitytoolkitV2StartMfaSignInResponse{
3932 ServerResponse: googleapi.ServerResponse{
3933 Header: res.Header,
3934 HTTPStatusCode: res.StatusCode,
3935 },
3936 }
3937 target := &ret
3938 if err := gensupport.DecodeResponse(target, res); err != nil {
3939 return nil, err
3940 }
3941 return ret, nil
3942 }
3943
3944 type DefaultSupportedIdpsListCall struct {
3945 s *Service
3946 urlParams_ gensupport.URLParams
3947 ifNoneMatch_ string
3948 ctx_ context.Context
3949 header_ http.Header
3950 }
3951
3952
3953 func (r *DefaultSupportedIdpsService) List() *DefaultSupportedIdpsListCall {
3954 c := &DefaultSupportedIdpsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
3955 return c
3956 }
3957
3958
3959
3960 func (c *DefaultSupportedIdpsListCall) PageSize(pageSize int64) *DefaultSupportedIdpsListCall {
3961 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
3962 return c
3963 }
3964
3965
3966
3967 func (c *DefaultSupportedIdpsListCall) PageToken(pageToken string) *DefaultSupportedIdpsListCall {
3968 c.urlParams_.Set("pageToken", pageToken)
3969 return c
3970 }
3971
3972
3973
3974
3975 func (c *DefaultSupportedIdpsListCall) Fields(s ...googleapi.Field) *DefaultSupportedIdpsListCall {
3976 c.urlParams_.Set("fields", googleapi.CombineFields(s))
3977 return c
3978 }
3979
3980
3981
3982
3983 func (c *DefaultSupportedIdpsListCall) IfNoneMatch(entityTag string) *DefaultSupportedIdpsListCall {
3984 c.ifNoneMatch_ = entityTag
3985 return c
3986 }
3987
3988
3989 func (c *DefaultSupportedIdpsListCall) Context(ctx context.Context) *DefaultSupportedIdpsListCall {
3990 c.ctx_ = ctx
3991 return c
3992 }
3993
3994
3995
3996 func (c *DefaultSupportedIdpsListCall) Header() http.Header {
3997 if c.header_ == nil {
3998 c.header_ = make(http.Header)
3999 }
4000 return c.header_
4001 }
4002
4003 func (c *DefaultSupportedIdpsListCall) doRequest(alt string) (*http.Response, error) {
4004 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
4005 if c.ifNoneMatch_ != "" {
4006 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
4007 }
4008 var body io.Reader = nil
4009 c.urlParams_.Set("alt", alt)
4010 c.urlParams_.Set("prettyPrint", "false")
4011 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/defaultSupportedIdps")
4012 urls += "?" + c.urlParams_.Encode()
4013 req, err := http.NewRequest("GET", urls, body)
4014 if err != nil {
4015 return nil, err
4016 }
4017 req.Header = reqHeaders
4018 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4019 }
4020
4021
4022
4023
4024
4025
4026
4027 func (c *DefaultSupportedIdpsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpsResponse, error) {
4028 gensupport.SetOptions(c.urlParams_, opts...)
4029 res, err := c.doRequest("json")
4030 if res != nil && res.StatusCode == http.StatusNotModified {
4031 if res.Body != nil {
4032 res.Body.Close()
4033 }
4034 return nil, gensupport.WrapError(&googleapi.Error{
4035 Code: res.StatusCode,
4036 Header: res.Header,
4037 })
4038 }
4039 if err != nil {
4040 return nil, err
4041 }
4042 defer googleapi.CloseBody(res)
4043 if err := googleapi.CheckResponse(res); err != nil {
4044 return nil, gensupport.WrapError(err)
4045 }
4046 ret := &GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpsResponse{
4047 ServerResponse: googleapi.ServerResponse{
4048 Header: res.Header,
4049 HTTPStatusCode: res.StatusCode,
4050 },
4051 }
4052 target := &ret
4053 if err := gensupport.DecodeResponse(target, res); err != nil {
4054 return nil, err
4055 }
4056 return ret, nil
4057 }
4058
4059
4060
4061
4062 func (c *DefaultSupportedIdpsListCall) Pages(ctx context.Context, f func(*GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpsResponse) error) error {
4063 c.ctx_ = ctx
4064 defer c.PageToken(c.urlParams_.Get("pageToken"))
4065 for {
4066 x, err := c.Do()
4067 if err != nil {
4068 return err
4069 }
4070 if err := f(x); err != nil {
4071 return err
4072 }
4073 if x.NextPageToken == "" {
4074 return nil
4075 }
4076 c.PageToken(x.NextPageToken)
4077 }
4078 }
4079
4080 type ProjectsGetConfigCall struct {
4081 s *Service
4082 name string
4083 urlParams_ gensupport.URLParams
4084 ifNoneMatch_ string
4085 ctx_ context.Context
4086 header_ http.Header
4087 }
4088
4089
4090
4091
4092
4093 func (r *ProjectsService) GetConfig(name string) *ProjectsGetConfigCall {
4094 c := &ProjectsGetConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4095 c.name = name
4096 return c
4097 }
4098
4099
4100
4101
4102 func (c *ProjectsGetConfigCall) Fields(s ...googleapi.Field) *ProjectsGetConfigCall {
4103 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4104 return c
4105 }
4106
4107
4108
4109
4110 func (c *ProjectsGetConfigCall) IfNoneMatch(entityTag string) *ProjectsGetConfigCall {
4111 c.ifNoneMatch_ = entityTag
4112 return c
4113 }
4114
4115
4116 func (c *ProjectsGetConfigCall) Context(ctx context.Context) *ProjectsGetConfigCall {
4117 c.ctx_ = ctx
4118 return c
4119 }
4120
4121
4122
4123 func (c *ProjectsGetConfigCall) Header() http.Header {
4124 if c.header_ == nil {
4125 c.header_ = make(http.Header)
4126 }
4127 return c.header_
4128 }
4129
4130 func (c *ProjectsGetConfigCall) doRequest(alt string) (*http.Response, error) {
4131 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
4132 if c.ifNoneMatch_ != "" {
4133 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
4134 }
4135 var body io.Reader = nil
4136 c.urlParams_.Set("alt", alt)
4137 c.urlParams_.Set("prettyPrint", "false")
4138 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
4139 urls += "?" + c.urlParams_.Encode()
4140 req, err := http.NewRequest("GET", urls, body)
4141 if err != nil {
4142 return nil, err
4143 }
4144 req.Header = reqHeaders
4145 googleapi.Expand(req.URL, map[string]string{
4146 "name": c.name,
4147 })
4148 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4149 }
4150
4151
4152
4153
4154
4155
4156
4157 func (c *ProjectsGetConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2Config, error) {
4158 gensupport.SetOptions(c.urlParams_, opts...)
4159 res, err := c.doRequest("json")
4160 if res != nil && res.StatusCode == http.StatusNotModified {
4161 if res.Body != nil {
4162 res.Body.Close()
4163 }
4164 return nil, gensupport.WrapError(&googleapi.Error{
4165 Code: res.StatusCode,
4166 Header: res.Header,
4167 })
4168 }
4169 if err != nil {
4170 return nil, err
4171 }
4172 defer googleapi.CloseBody(res)
4173 if err := googleapi.CheckResponse(res); err != nil {
4174 return nil, gensupport.WrapError(err)
4175 }
4176 ret := &GoogleCloudIdentitytoolkitAdminV2Config{
4177 ServerResponse: googleapi.ServerResponse{
4178 Header: res.Header,
4179 HTTPStatusCode: res.StatusCode,
4180 },
4181 }
4182 target := &ret
4183 if err := gensupport.DecodeResponse(target, res); err != nil {
4184 return nil, err
4185 }
4186 return ret, nil
4187 }
4188
4189 type ProjectsUpdateConfigCall struct {
4190 s *Service
4191 name string
4192 googlecloudidentitytoolkitadminv2config *GoogleCloudIdentitytoolkitAdminV2Config
4193 urlParams_ gensupport.URLParams
4194 ctx_ context.Context
4195 header_ http.Header
4196 }
4197
4198
4199
4200
4201
4202 func (r *ProjectsService) UpdateConfig(name string, googlecloudidentitytoolkitadminv2config *GoogleCloudIdentitytoolkitAdminV2Config) *ProjectsUpdateConfigCall {
4203 c := &ProjectsUpdateConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4204 c.name = name
4205 c.googlecloudidentitytoolkitadminv2config = googlecloudidentitytoolkitadminv2config
4206 return c
4207 }
4208
4209
4210
4211
4212
4213 func (c *ProjectsUpdateConfigCall) UpdateMask(updateMask string) *ProjectsUpdateConfigCall {
4214 c.urlParams_.Set("updateMask", updateMask)
4215 return c
4216 }
4217
4218
4219
4220
4221 func (c *ProjectsUpdateConfigCall) Fields(s ...googleapi.Field) *ProjectsUpdateConfigCall {
4222 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4223 return c
4224 }
4225
4226
4227 func (c *ProjectsUpdateConfigCall) Context(ctx context.Context) *ProjectsUpdateConfigCall {
4228 c.ctx_ = ctx
4229 return c
4230 }
4231
4232
4233
4234 func (c *ProjectsUpdateConfigCall) Header() http.Header {
4235 if c.header_ == nil {
4236 c.header_ = make(http.Header)
4237 }
4238 return c.header_
4239 }
4240
4241 func (c *ProjectsUpdateConfigCall) doRequest(alt string) (*http.Response, error) {
4242 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
4243 var body io.Reader = nil
4244 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitadminv2config)
4245 if err != nil {
4246 return nil, err
4247 }
4248 c.urlParams_.Set("alt", alt)
4249 c.urlParams_.Set("prettyPrint", "false")
4250 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
4251 urls += "?" + c.urlParams_.Encode()
4252 req, err := http.NewRequest("PATCH", urls, body)
4253 if err != nil {
4254 return nil, err
4255 }
4256 req.Header = reqHeaders
4257 googleapi.Expand(req.URL, map[string]string{
4258 "name": c.name,
4259 })
4260 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4261 }
4262
4263
4264
4265
4266
4267
4268
4269 func (c *ProjectsUpdateConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2Config, error) {
4270 gensupport.SetOptions(c.urlParams_, opts...)
4271 res, err := c.doRequest("json")
4272 if res != nil && res.StatusCode == http.StatusNotModified {
4273 if res.Body != nil {
4274 res.Body.Close()
4275 }
4276 return nil, gensupport.WrapError(&googleapi.Error{
4277 Code: res.StatusCode,
4278 Header: res.Header,
4279 })
4280 }
4281 if err != nil {
4282 return nil, err
4283 }
4284 defer googleapi.CloseBody(res)
4285 if err := googleapi.CheckResponse(res); err != nil {
4286 return nil, gensupport.WrapError(err)
4287 }
4288 ret := &GoogleCloudIdentitytoolkitAdminV2Config{
4289 ServerResponse: googleapi.ServerResponse{
4290 Header: res.Header,
4291 HTTPStatusCode: res.StatusCode,
4292 },
4293 }
4294 target := &ret
4295 if err := gensupport.DecodeResponse(target, res); err != nil {
4296 return nil, err
4297 }
4298 return ret, nil
4299 }
4300
4301 type ProjectsDefaultSupportedIdpConfigsCreateCall struct {
4302 s *Service
4303 parent string
4304 googlecloudidentitytoolkitadminv2defaultsupportedidpconfig *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig
4305 urlParams_ gensupport.URLParams
4306 ctx_ context.Context
4307 header_ http.Header
4308 }
4309
4310
4311
4312
4313
4314
4315 func (r *ProjectsDefaultSupportedIdpConfigsService) Create(parent string, googlecloudidentitytoolkitadminv2defaultsupportedidpconfig *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig) *ProjectsDefaultSupportedIdpConfigsCreateCall {
4316 c := &ProjectsDefaultSupportedIdpConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4317 c.parent = parent
4318 c.googlecloudidentitytoolkitadminv2defaultsupportedidpconfig = googlecloudidentitytoolkitadminv2defaultsupportedidpconfig
4319 return c
4320 }
4321
4322
4323
4324
4325 func (c *ProjectsDefaultSupportedIdpConfigsCreateCall) IdpId(idpId string) *ProjectsDefaultSupportedIdpConfigsCreateCall {
4326 c.urlParams_.Set("idpId", idpId)
4327 return c
4328 }
4329
4330
4331
4332
4333 func (c *ProjectsDefaultSupportedIdpConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsDefaultSupportedIdpConfigsCreateCall {
4334 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4335 return c
4336 }
4337
4338
4339 func (c *ProjectsDefaultSupportedIdpConfigsCreateCall) Context(ctx context.Context) *ProjectsDefaultSupportedIdpConfigsCreateCall {
4340 c.ctx_ = ctx
4341 return c
4342 }
4343
4344
4345
4346 func (c *ProjectsDefaultSupportedIdpConfigsCreateCall) Header() http.Header {
4347 if c.header_ == nil {
4348 c.header_ = make(http.Header)
4349 }
4350 return c.header_
4351 }
4352
4353 func (c *ProjectsDefaultSupportedIdpConfigsCreateCall) doRequest(alt string) (*http.Response, error) {
4354 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
4355 var body io.Reader = nil
4356 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitadminv2defaultsupportedidpconfig)
4357 if err != nil {
4358 return nil, err
4359 }
4360 c.urlParams_.Set("alt", alt)
4361 c.urlParams_.Set("prettyPrint", "false")
4362 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/defaultSupportedIdpConfigs")
4363 urls += "?" + c.urlParams_.Encode()
4364 req, err := http.NewRequest("POST", urls, body)
4365 if err != nil {
4366 return nil, err
4367 }
4368 req.Header = reqHeaders
4369 googleapi.Expand(req.URL, map[string]string{
4370 "parent": c.parent,
4371 })
4372 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4373 }
4374
4375
4376
4377
4378
4379
4380
4381 func (c *ProjectsDefaultSupportedIdpConfigsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig, error) {
4382 gensupport.SetOptions(c.urlParams_, opts...)
4383 res, err := c.doRequest("json")
4384 if res != nil && res.StatusCode == http.StatusNotModified {
4385 if res.Body != nil {
4386 res.Body.Close()
4387 }
4388 return nil, gensupport.WrapError(&googleapi.Error{
4389 Code: res.StatusCode,
4390 Header: res.Header,
4391 })
4392 }
4393 if err != nil {
4394 return nil, err
4395 }
4396 defer googleapi.CloseBody(res)
4397 if err := googleapi.CheckResponse(res); err != nil {
4398 return nil, gensupport.WrapError(err)
4399 }
4400 ret := &GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig{
4401 ServerResponse: googleapi.ServerResponse{
4402 Header: res.Header,
4403 HTTPStatusCode: res.StatusCode,
4404 },
4405 }
4406 target := &ret
4407 if err := gensupport.DecodeResponse(target, res); err != nil {
4408 return nil, err
4409 }
4410 return ret, nil
4411 }
4412
4413 type ProjectsDefaultSupportedIdpConfigsDeleteCall struct {
4414 s *Service
4415 name string
4416 urlParams_ gensupport.URLParams
4417 ctx_ context.Context
4418 header_ http.Header
4419 }
4420
4421
4422
4423
4424
4425
4426 func (r *ProjectsDefaultSupportedIdpConfigsService) Delete(name string) *ProjectsDefaultSupportedIdpConfigsDeleteCall {
4427 c := &ProjectsDefaultSupportedIdpConfigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4428 c.name = name
4429 return c
4430 }
4431
4432
4433
4434
4435 func (c *ProjectsDefaultSupportedIdpConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsDefaultSupportedIdpConfigsDeleteCall {
4436 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4437 return c
4438 }
4439
4440
4441 func (c *ProjectsDefaultSupportedIdpConfigsDeleteCall) Context(ctx context.Context) *ProjectsDefaultSupportedIdpConfigsDeleteCall {
4442 c.ctx_ = ctx
4443 return c
4444 }
4445
4446
4447
4448 func (c *ProjectsDefaultSupportedIdpConfigsDeleteCall) Header() http.Header {
4449 if c.header_ == nil {
4450 c.header_ = make(http.Header)
4451 }
4452 return c.header_
4453 }
4454
4455 func (c *ProjectsDefaultSupportedIdpConfigsDeleteCall) doRequest(alt string) (*http.Response, error) {
4456 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
4457 var body io.Reader = nil
4458 c.urlParams_.Set("alt", alt)
4459 c.urlParams_.Set("prettyPrint", "false")
4460 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
4461 urls += "?" + c.urlParams_.Encode()
4462 req, err := http.NewRequest("DELETE", urls, body)
4463 if err != nil {
4464 return nil, err
4465 }
4466 req.Header = reqHeaders
4467 googleapi.Expand(req.URL, map[string]string{
4468 "name": c.name,
4469 })
4470 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4471 }
4472
4473
4474
4475
4476
4477
4478
4479 func (c *ProjectsDefaultSupportedIdpConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
4480 gensupport.SetOptions(c.urlParams_, opts...)
4481 res, err := c.doRequest("json")
4482 if res != nil && res.StatusCode == http.StatusNotModified {
4483 if res.Body != nil {
4484 res.Body.Close()
4485 }
4486 return nil, gensupport.WrapError(&googleapi.Error{
4487 Code: res.StatusCode,
4488 Header: res.Header,
4489 })
4490 }
4491 if err != nil {
4492 return nil, err
4493 }
4494 defer googleapi.CloseBody(res)
4495 if err := googleapi.CheckResponse(res); err != nil {
4496 return nil, gensupport.WrapError(err)
4497 }
4498 ret := &GoogleProtobufEmpty{
4499 ServerResponse: googleapi.ServerResponse{
4500 Header: res.Header,
4501 HTTPStatusCode: res.StatusCode,
4502 },
4503 }
4504 target := &ret
4505 if err := gensupport.DecodeResponse(target, res); err != nil {
4506 return nil, err
4507 }
4508 return ret, nil
4509 }
4510
4511 type ProjectsDefaultSupportedIdpConfigsGetCall struct {
4512 s *Service
4513 name string
4514 urlParams_ gensupport.URLParams
4515 ifNoneMatch_ string
4516 ctx_ context.Context
4517 header_ http.Header
4518 }
4519
4520
4521
4522
4523
4524
4525 func (r *ProjectsDefaultSupportedIdpConfigsService) Get(name string) *ProjectsDefaultSupportedIdpConfigsGetCall {
4526 c := &ProjectsDefaultSupportedIdpConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4527 c.name = name
4528 return c
4529 }
4530
4531
4532
4533
4534 func (c *ProjectsDefaultSupportedIdpConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsDefaultSupportedIdpConfigsGetCall {
4535 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4536 return c
4537 }
4538
4539
4540
4541
4542 func (c *ProjectsDefaultSupportedIdpConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsDefaultSupportedIdpConfigsGetCall {
4543 c.ifNoneMatch_ = entityTag
4544 return c
4545 }
4546
4547
4548 func (c *ProjectsDefaultSupportedIdpConfigsGetCall) Context(ctx context.Context) *ProjectsDefaultSupportedIdpConfigsGetCall {
4549 c.ctx_ = ctx
4550 return c
4551 }
4552
4553
4554
4555 func (c *ProjectsDefaultSupportedIdpConfigsGetCall) Header() http.Header {
4556 if c.header_ == nil {
4557 c.header_ = make(http.Header)
4558 }
4559 return c.header_
4560 }
4561
4562 func (c *ProjectsDefaultSupportedIdpConfigsGetCall) doRequest(alt string) (*http.Response, error) {
4563 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
4564 if c.ifNoneMatch_ != "" {
4565 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
4566 }
4567 var body io.Reader = nil
4568 c.urlParams_.Set("alt", alt)
4569 c.urlParams_.Set("prettyPrint", "false")
4570 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
4571 urls += "?" + c.urlParams_.Encode()
4572 req, err := http.NewRequest("GET", urls, body)
4573 if err != nil {
4574 return nil, err
4575 }
4576 req.Header = reqHeaders
4577 googleapi.Expand(req.URL, map[string]string{
4578 "name": c.name,
4579 })
4580 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4581 }
4582
4583
4584
4585
4586
4587
4588
4589 func (c *ProjectsDefaultSupportedIdpConfigsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig, error) {
4590 gensupport.SetOptions(c.urlParams_, opts...)
4591 res, err := c.doRequest("json")
4592 if res != nil && res.StatusCode == http.StatusNotModified {
4593 if res.Body != nil {
4594 res.Body.Close()
4595 }
4596 return nil, gensupport.WrapError(&googleapi.Error{
4597 Code: res.StatusCode,
4598 Header: res.Header,
4599 })
4600 }
4601 if err != nil {
4602 return nil, err
4603 }
4604 defer googleapi.CloseBody(res)
4605 if err := googleapi.CheckResponse(res); err != nil {
4606 return nil, gensupport.WrapError(err)
4607 }
4608 ret := &GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig{
4609 ServerResponse: googleapi.ServerResponse{
4610 Header: res.Header,
4611 HTTPStatusCode: res.StatusCode,
4612 },
4613 }
4614 target := &ret
4615 if err := gensupport.DecodeResponse(target, res); err != nil {
4616 return nil, err
4617 }
4618 return ret, nil
4619 }
4620
4621 type ProjectsDefaultSupportedIdpConfigsListCall struct {
4622 s *Service
4623 parent string
4624 urlParams_ gensupport.URLParams
4625 ifNoneMatch_ string
4626 ctx_ context.Context
4627 header_ http.Header
4628 }
4629
4630
4631
4632
4633
4634
4635 func (r *ProjectsDefaultSupportedIdpConfigsService) List(parent string) *ProjectsDefaultSupportedIdpConfigsListCall {
4636 c := &ProjectsDefaultSupportedIdpConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4637 c.parent = parent
4638 return c
4639 }
4640
4641
4642
4643 func (c *ProjectsDefaultSupportedIdpConfigsListCall) PageSize(pageSize int64) *ProjectsDefaultSupportedIdpConfigsListCall {
4644 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
4645 return c
4646 }
4647
4648
4649
4650 func (c *ProjectsDefaultSupportedIdpConfigsListCall) PageToken(pageToken string) *ProjectsDefaultSupportedIdpConfigsListCall {
4651 c.urlParams_.Set("pageToken", pageToken)
4652 return c
4653 }
4654
4655
4656
4657
4658 func (c *ProjectsDefaultSupportedIdpConfigsListCall) Fields(s ...googleapi.Field) *ProjectsDefaultSupportedIdpConfigsListCall {
4659 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4660 return c
4661 }
4662
4663
4664
4665
4666 func (c *ProjectsDefaultSupportedIdpConfigsListCall) IfNoneMatch(entityTag string) *ProjectsDefaultSupportedIdpConfigsListCall {
4667 c.ifNoneMatch_ = entityTag
4668 return c
4669 }
4670
4671
4672 func (c *ProjectsDefaultSupportedIdpConfigsListCall) Context(ctx context.Context) *ProjectsDefaultSupportedIdpConfigsListCall {
4673 c.ctx_ = ctx
4674 return c
4675 }
4676
4677
4678
4679 func (c *ProjectsDefaultSupportedIdpConfigsListCall) Header() http.Header {
4680 if c.header_ == nil {
4681 c.header_ = make(http.Header)
4682 }
4683 return c.header_
4684 }
4685
4686 func (c *ProjectsDefaultSupportedIdpConfigsListCall) doRequest(alt string) (*http.Response, error) {
4687 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
4688 if c.ifNoneMatch_ != "" {
4689 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
4690 }
4691 var body io.Reader = nil
4692 c.urlParams_.Set("alt", alt)
4693 c.urlParams_.Set("prettyPrint", "false")
4694 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/defaultSupportedIdpConfigs")
4695 urls += "?" + c.urlParams_.Encode()
4696 req, err := http.NewRequest("GET", urls, body)
4697 if err != nil {
4698 return nil, err
4699 }
4700 req.Header = reqHeaders
4701 googleapi.Expand(req.URL, map[string]string{
4702 "parent": c.parent,
4703 })
4704 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4705 }
4706
4707
4708
4709
4710
4711
4712
4713 func (c *ProjectsDefaultSupportedIdpConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsResponse, error) {
4714 gensupport.SetOptions(c.urlParams_, opts...)
4715 res, err := c.doRequest("json")
4716 if res != nil && res.StatusCode == http.StatusNotModified {
4717 if res.Body != nil {
4718 res.Body.Close()
4719 }
4720 return nil, gensupport.WrapError(&googleapi.Error{
4721 Code: res.StatusCode,
4722 Header: res.Header,
4723 })
4724 }
4725 if err != nil {
4726 return nil, err
4727 }
4728 defer googleapi.CloseBody(res)
4729 if err := googleapi.CheckResponse(res); err != nil {
4730 return nil, gensupport.WrapError(err)
4731 }
4732 ret := &GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsResponse{
4733 ServerResponse: googleapi.ServerResponse{
4734 Header: res.Header,
4735 HTTPStatusCode: res.StatusCode,
4736 },
4737 }
4738 target := &ret
4739 if err := gensupport.DecodeResponse(target, res); err != nil {
4740 return nil, err
4741 }
4742 return ret, nil
4743 }
4744
4745
4746
4747
4748 func (c *ProjectsDefaultSupportedIdpConfigsListCall) Pages(ctx context.Context, f func(*GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsResponse) error) error {
4749 c.ctx_ = ctx
4750 defer c.PageToken(c.urlParams_.Get("pageToken"))
4751 for {
4752 x, err := c.Do()
4753 if err != nil {
4754 return err
4755 }
4756 if err := f(x); err != nil {
4757 return err
4758 }
4759 if x.NextPageToken == "" {
4760 return nil
4761 }
4762 c.PageToken(x.NextPageToken)
4763 }
4764 }
4765
4766 type ProjectsDefaultSupportedIdpConfigsPatchCall struct {
4767 s *Service
4768 name string
4769 googlecloudidentitytoolkitadminv2defaultsupportedidpconfig *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig
4770 urlParams_ gensupport.URLParams
4771 ctx_ context.Context
4772 header_ http.Header
4773 }
4774
4775
4776
4777
4778
4779
4780 func (r *ProjectsDefaultSupportedIdpConfigsService) Patch(name string, googlecloudidentitytoolkitadminv2defaultsupportedidpconfig *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig) *ProjectsDefaultSupportedIdpConfigsPatchCall {
4781 c := &ProjectsDefaultSupportedIdpConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4782 c.name = name
4783 c.googlecloudidentitytoolkitadminv2defaultsupportedidpconfig = googlecloudidentitytoolkitadminv2defaultsupportedidpconfig
4784 return c
4785 }
4786
4787
4788
4789
4790 func (c *ProjectsDefaultSupportedIdpConfigsPatchCall) UpdateMask(updateMask string) *ProjectsDefaultSupportedIdpConfigsPatchCall {
4791 c.urlParams_.Set("updateMask", updateMask)
4792 return c
4793 }
4794
4795
4796
4797
4798 func (c *ProjectsDefaultSupportedIdpConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsDefaultSupportedIdpConfigsPatchCall {
4799 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4800 return c
4801 }
4802
4803
4804 func (c *ProjectsDefaultSupportedIdpConfigsPatchCall) Context(ctx context.Context) *ProjectsDefaultSupportedIdpConfigsPatchCall {
4805 c.ctx_ = ctx
4806 return c
4807 }
4808
4809
4810
4811 func (c *ProjectsDefaultSupportedIdpConfigsPatchCall) Header() http.Header {
4812 if c.header_ == nil {
4813 c.header_ = make(http.Header)
4814 }
4815 return c.header_
4816 }
4817
4818 func (c *ProjectsDefaultSupportedIdpConfigsPatchCall) doRequest(alt string) (*http.Response, error) {
4819 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
4820 var body io.Reader = nil
4821 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitadminv2defaultsupportedidpconfig)
4822 if err != nil {
4823 return nil, err
4824 }
4825 c.urlParams_.Set("alt", alt)
4826 c.urlParams_.Set("prettyPrint", "false")
4827 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
4828 urls += "?" + c.urlParams_.Encode()
4829 req, err := http.NewRequest("PATCH", urls, body)
4830 if err != nil {
4831 return nil, err
4832 }
4833 req.Header = reqHeaders
4834 googleapi.Expand(req.URL, map[string]string{
4835 "name": c.name,
4836 })
4837 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4838 }
4839
4840
4841
4842
4843
4844
4845
4846 func (c *ProjectsDefaultSupportedIdpConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig, error) {
4847 gensupport.SetOptions(c.urlParams_, opts...)
4848 res, err := c.doRequest("json")
4849 if res != nil && res.StatusCode == http.StatusNotModified {
4850 if res.Body != nil {
4851 res.Body.Close()
4852 }
4853 return nil, gensupport.WrapError(&googleapi.Error{
4854 Code: res.StatusCode,
4855 Header: res.Header,
4856 })
4857 }
4858 if err != nil {
4859 return nil, err
4860 }
4861 defer googleapi.CloseBody(res)
4862 if err := googleapi.CheckResponse(res); err != nil {
4863 return nil, gensupport.WrapError(err)
4864 }
4865 ret := &GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig{
4866 ServerResponse: googleapi.ServerResponse{
4867 Header: res.Header,
4868 HTTPStatusCode: res.StatusCode,
4869 },
4870 }
4871 target := &ret
4872 if err := gensupport.DecodeResponse(target, res); err != nil {
4873 return nil, err
4874 }
4875 return ret, nil
4876 }
4877
4878 type ProjectsIdentityPlatformInitializeAuthCall struct {
4879 s *Service
4880 project string
4881 googlecloudidentitytoolkitadminv2initializeidentityplatformrequest *GoogleCloudIdentitytoolkitAdminV2InitializeIdentityPlatformRequest
4882 urlParams_ gensupport.URLParams
4883 ctx_ context.Context
4884 header_ http.Header
4885 }
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895 func (r *ProjectsIdentityPlatformService) InitializeAuth(project string, googlecloudidentitytoolkitadminv2initializeidentityplatformrequest *GoogleCloudIdentitytoolkitAdminV2InitializeIdentityPlatformRequest) *ProjectsIdentityPlatformInitializeAuthCall {
4896 c := &ProjectsIdentityPlatformInitializeAuthCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4897 c.project = project
4898 c.googlecloudidentitytoolkitadminv2initializeidentityplatformrequest = googlecloudidentitytoolkitadminv2initializeidentityplatformrequest
4899 return c
4900 }
4901
4902
4903
4904
4905 func (c *ProjectsIdentityPlatformInitializeAuthCall) Fields(s ...googleapi.Field) *ProjectsIdentityPlatformInitializeAuthCall {
4906 c.urlParams_.Set("fields", googleapi.CombineFields(s))
4907 return c
4908 }
4909
4910
4911 func (c *ProjectsIdentityPlatformInitializeAuthCall) Context(ctx context.Context) *ProjectsIdentityPlatformInitializeAuthCall {
4912 c.ctx_ = ctx
4913 return c
4914 }
4915
4916
4917
4918 func (c *ProjectsIdentityPlatformInitializeAuthCall) Header() http.Header {
4919 if c.header_ == nil {
4920 c.header_ = make(http.Header)
4921 }
4922 return c.header_
4923 }
4924
4925 func (c *ProjectsIdentityPlatformInitializeAuthCall) doRequest(alt string) (*http.Response, error) {
4926 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
4927 var body io.Reader = nil
4928 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitadminv2initializeidentityplatformrequest)
4929 if err != nil {
4930 return nil, err
4931 }
4932 c.urlParams_.Set("alt", alt)
4933 c.urlParams_.Set("prettyPrint", "false")
4934 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+project}/identityPlatform:initializeAuth")
4935 urls += "?" + c.urlParams_.Encode()
4936 req, err := http.NewRequest("POST", urls, body)
4937 if err != nil {
4938 return nil, err
4939 }
4940 req.Header = reqHeaders
4941 googleapi.Expand(req.URL, map[string]string{
4942 "project": c.project,
4943 })
4944 return gensupport.SendRequest(c.ctx_, c.s.client, req)
4945 }
4946
4947
4948
4949
4950
4951
4952
4953 func (c *ProjectsIdentityPlatformInitializeAuthCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2InitializeIdentityPlatformResponse, error) {
4954 gensupport.SetOptions(c.urlParams_, opts...)
4955 res, err := c.doRequest("json")
4956 if res != nil && res.StatusCode == http.StatusNotModified {
4957 if res.Body != nil {
4958 res.Body.Close()
4959 }
4960 return nil, gensupport.WrapError(&googleapi.Error{
4961 Code: res.StatusCode,
4962 Header: res.Header,
4963 })
4964 }
4965 if err != nil {
4966 return nil, err
4967 }
4968 defer googleapi.CloseBody(res)
4969 if err := googleapi.CheckResponse(res); err != nil {
4970 return nil, gensupport.WrapError(err)
4971 }
4972 ret := &GoogleCloudIdentitytoolkitAdminV2InitializeIdentityPlatformResponse{
4973 ServerResponse: googleapi.ServerResponse{
4974 Header: res.Header,
4975 HTTPStatusCode: res.StatusCode,
4976 },
4977 }
4978 target := &ret
4979 if err := gensupport.DecodeResponse(target, res); err != nil {
4980 return nil, err
4981 }
4982 return ret, nil
4983 }
4984
4985 type ProjectsInboundSamlConfigsCreateCall struct {
4986 s *Service
4987 parent string
4988 googlecloudidentitytoolkitadminv2inboundsamlconfig *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig
4989 urlParams_ gensupport.URLParams
4990 ctx_ context.Context
4991 header_ http.Header
4992 }
4993
4994
4995
4996
4997
4998
4999 func (r *ProjectsInboundSamlConfigsService) Create(parent string, googlecloudidentitytoolkitadminv2inboundsamlconfig *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig) *ProjectsInboundSamlConfigsCreateCall {
5000 c := &ProjectsInboundSamlConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5001 c.parent = parent
5002 c.googlecloudidentitytoolkitadminv2inboundsamlconfig = googlecloudidentitytoolkitadminv2inboundsamlconfig
5003 return c
5004 }
5005
5006
5007
5008 func (c *ProjectsInboundSamlConfigsCreateCall) InboundSamlConfigId(inboundSamlConfigId string) *ProjectsInboundSamlConfigsCreateCall {
5009 c.urlParams_.Set("inboundSamlConfigId", inboundSamlConfigId)
5010 return c
5011 }
5012
5013
5014
5015
5016 func (c *ProjectsInboundSamlConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsInboundSamlConfigsCreateCall {
5017 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5018 return c
5019 }
5020
5021
5022 func (c *ProjectsInboundSamlConfigsCreateCall) Context(ctx context.Context) *ProjectsInboundSamlConfigsCreateCall {
5023 c.ctx_ = ctx
5024 return c
5025 }
5026
5027
5028
5029 func (c *ProjectsInboundSamlConfigsCreateCall) Header() http.Header {
5030 if c.header_ == nil {
5031 c.header_ = make(http.Header)
5032 }
5033 return c.header_
5034 }
5035
5036 func (c *ProjectsInboundSamlConfigsCreateCall) doRequest(alt string) (*http.Response, error) {
5037 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
5038 var body io.Reader = nil
5039 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitadminv2inboundsamlconfig)
5040 if err != nil {
5041 return nil, err
5042 }
5043 c.urlParams_.Set("alt", alt)
5044 c.urlParams_.Set("prettyPrint", "false")
5045 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/inboundSamlConfigs")
5046 urls += "?" + c.urlParams_.Encode()
5047 req, err := http.NewRequest("POST", urls, body)
5048 if err != nil {
5049 return nil, err
5050 }
5051 req.Header = reqHeaders
5052 googleapi.Expand(req.URL, map[string]string{
5053 "parent": c.parent,
5054 })
5055 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5056 }
5057
5058
5059
5060
5061
5062
5063
5064 func (c *ProjectsInboundSamlConfigsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig, error) {
5065 gensupport.SetOptions(c.urlParams_, opts...)
5066 res, err := c.doRequest("json")
5067 if res != nil && res.StatusCode == http.StatusNotModified {
5068 if res.Body != nil {
5069 res.Body.Close()
5070 }
5071 return nil, gensupport.WrapError(&googleapi.Error{
5072 Code: res.StatusCode,
5073 Header: res.Header,
5074 })
5075 }
5076 if err != nil {
5077 return nil, err
5078 }
5079 defer googleapi.CloseBody(res)
5080 if err := googleapi.CheckResponse(res); err != nil {
5081 return nil, gensupport.WrapError(err)
5082 }
5083 ret := &GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig{
5084 ServerResponse: googleapi.ServerResponse{
5085 Header: res.Header,
5086 HTTPStatusCode: res.StatusCode,
5087 },
5088 }
5089 target := &ret
5090 if err := gensupport.DecodeResponse(target, res); err != nil {
5091 return nil, err
5092 }
5093 return ret, nil
5094 }
5095
5096 type ProjectsInboundSamlConfigsDeleteCall struct {
5097 s *Service
5098 name string
5099 urlParams_ gensupport.URLParams
5100 ctx_ context.Context
5101 header_ http.Header
5102 }
5103
5104
5105
5106
5107
5108
5109 func (r *ProjectsInboundSamlConfigsService) Delete(name string) *ProjectsInboundSamlConfigsDeleteCall {
5110 c := &ProjectsInboundSamlConfigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5111 c.name = name
5112 return c
5113 }
5114
5115
5116
5117
5118 func (c *ProjectsInboundSamlConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsInboundSamlConfigsDeleteCall {
5119 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5120 return c
5121 }
5122
5123
5124 func (c *ProjectsInboundSamlConfigsDeleteCall) Context(ctx context.Context) *ProjectsInboundSamlConfigsDeleteCall {
5125 c.ctx_ = ctx
5126 return c
5127 }
5128
5129
5130
5131 func (c *ProjectsInboundSamlConfigsDeleteCall) Header() http.Header {
5132 if c.header_ == nil {
5133 c.header_ = make(http.Header)
5134 }
5135 return c.header_
5136 }
5137
5138 func (c *ProjectsInboundSamlConfigsDeleteCall) doRequest(alt string) (*http.Response, error) {
5139 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5140 var body io.Reader = nil
5141 c.urlParams_.Set("alt", alt)
5142 c.urlParams_.Set("prettyPrint", "false")
5143 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
5144 urls += "?" + c.urlParams_.Encode()
5145 req, err := http.NewRequest("DELETE", urls, body)
5146 if err != nil {
5147 return nil, err
5148 }
5149 req.Header = reqHeaders
5150 googleapi.Expand(req.URL, map[string]string{
5151 "name": c.name,
5152 })
5153 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5154 }
5155
5156
5157
5158
5159
5160
5161
5162 func (c *ProjectsInboundSamlConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
5163 gensupport.SetOptions(c.urlParams_, opts...)
5164 res, err := c.doRequest("json")
5165 if res != nil && res.StatusCode == http.StatusNotModified {
5166 if res.Body != nil {
5167 res.Body.Close()
5168 }
5169 return nil, gensupport.WrapError(&googleapi.Error{
5170 Code: res.StatusCode,
5171 Header: res.Header,
5172 })
5173 }
5174 if err != nil {
5175 return nil, err
5176 }
5177 defer googleapi.CloseBody(res)
5178 if err := googleapi.CheckResponse(res); err != nil {
5179 return nil, gensupport.WrapError(err)
5180 }
5181 ret := &GoogleProtobufEmpty{
5182 ServerResponse: googleapi.ServerResponse{
5183 Header: res.Header,
5184 HTTPStatusCode: res.StatusCode,
5185 },
5186 }
5187 target := &ret
5188 if err := gensupport.DecodeResponse(target, res); err != nil {
5189 return nil, err
5190 }
5191 return ret, nil
5192 }
5193
5194 type ProjectsInboundSamlConfigsGetCall struct {
5195 s *Service
5196 name string
5197 urlParams_ gensupport.URLParams
5198 ifNoneMatch_ string
5199 ctx_ context.Context
5200 header_ http.Header
5201 }
5202
5203
5204
5205
5206
5207 func (r *ProjectsInboundSamlConfigsService) Get(name string) *ProjectsInboundSamlConfigsGetCall {
5208 c := &ProjectsInboundSamlConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5209 c.name = name
5210 return c
5211 }
5212
5213
5214
5215
5216 func (c *ProjectsInboundSamlConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsInboundSamlConfigsGetCall {
5217 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5218 return c
5219 }
5220
5221
5222
5223
5224 func (c *ProjectsInboundSamlConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsInboundSamlConfigsGetCall {
5225 c.ifNoneMatch_ = entityTag
5226 return c
5227 }
5228
5229
5230 func (c *ProjectsInboundSamlConfigsGetCall) Context(ctx context.Context) *ProjectsInboundSamlConfigsGetCall {
5231 c.ctx_ = ctx
5232 return c
5233 }
5234
5235
5236
5237 func (c *ProjectsInboundSamlConfigsGetCall) Header() http.Header {
5238 if c.header_ == nil {
5239 c.header_ = make(http.Header)
5240 }
5241 return c.header_
5242 }
5243
5244 func (c *ProjectsInboundSamlConfigsGetCall) doRequest(alt string) (*http.Response, error) {
5245 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5246 if c.ifNoneMatch_ != "" {
5247 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5248 }
5249 var body io.Reader = nil
5250 c.urlParams_.Set("alt", alt)
5251 c.urlParams_.Set("prettyPrint", "false")
5252 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
5253 urls += "?" + c.urlParams_.Encode()
5254 req, err := http.NewRequest("GET", urls, body)
5255 if err != nil {
5256 return nil, err
5257 }
5258 req.Header = reqHeaders
5259 googleapi.Expand(req.URL, map[string]string{
5260 "name": c.name,
5261 })
5262 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5263 }
5264
5265
5266
5267
5268
5269
5270
5271 func (c *ProjectsInboundSamlConfigsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig, error) {
5272 gensupport.SetOptions(c.urlParams_, opts...)
5273 res, err := c.doRequest("json")
5274 if res != nil && res.StatusCode == http.StatusNotModified {
5275 if res.Body != nil {
5276 res.Body.Close()
5277 }
5278 return nil, gensupport.WrapError(&googleapi.Error{
5279 Code: res.StatusCode,
5280 Header: res.Header,
5281 })
5282 }
5283 if err != nil {
5284 return nil, err
5285 }
5286 defer googleapi.CloseBody(res)
5287 if err := googleapi.CheckResponse(res); err != nil {
5288 return nil, gensupport.WrapError(err)
5289 }
5290 ret := &GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig{
5291 ServerResponse: googleapi.ServerResponse{
5292 Header: res.Header,
5293 HTTPStatusCode: res.StatusCode,
5294 },
5295 }
5296 target := &ret
5297 if err := gensupport.DecodeResponse(target, res); err != nil {
5298 return nil, err
5299 }
5300 return ret, nil
5301 }
5302
5303 type ProjectsInboundSamlConfigsListCall struct {
5304 s *Service
5305 parent string
5306 urlParams_ gensupport.URLParams
5307 ifNoneMatch_ string
5308 ctx_ context.Context
5309 header_ http.Header
5310 }
5311
5312
5313
5314
5315
5316 func (r *ProjectsInboundSamlConfigsService) List(parent string) *ProjectsInboundSamlConfigsListCall {
5317 c := &ProjectsInboundSamlConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5318 c.parent = parent
5319 return c
5320 }
5321
5322
5323
5324 func (c *ProjectsInboundSamlConfigsListCall) PageSize(pageSize int64) *ProjectsInboundSamlConfigsListCall {
5325 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
5326 return c
5327 }
5328
5329
5330
5331 func (c *ProjectsInboundSamlConfigsListCall) PageToken(pageToken string) *ProjectsInboundSamlConfigsListCall {
5332 c.urlParams_.Set("pageToken", pageToken)
5333 return c
5334 }
5335
5336
5337
5338
5339 func (c *ProjectsInboundSamlConfigsListCall) Fields(s ...googleapi.Field) *ProjectsInboundSamlConfigsListCall {
5340 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5341 return c
5342 }
5343
5344
5345
5346
5347 func (c *ProjectsInboundSamlConfigsListCall) IfNoneMatch(entityTag string) *ProjectsInboundSamlConfigsListCall {
5348 c.ifNoneMatch_ = entityTag
5349 return c
5350 }
5351
5352
5353 func (c *ProjectsInboundSamlConfigsListCall) Context(ctx context.Context) *ProjectsInboundSamlConfigsListCall {
5354 c.ctx_ = ctx
5355 return c
5356 }
5357
5358
5359
5360 func (c *ProjectsInboundSamlConfigsListCall) Header() http.Header {
5361 if c.header_ == nil {
5362 c.header_ = make(http.Header)
5363 }
5364 return c.header_
5365 }
5366
5367 func (c *ProjectsInboundSamlConfigsListCall) doRequest(alt string) (*http.Response, error) {
5368 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5369 if c.ifNoneMatch_ != "" {
5370 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5371 }
5372 var body io.Reader = nil
5373 c.urlParams_.Set("alt", alt)
5374 c.urlParams_.Set("prettyPrint", "false")
5375 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/inboundSamlConfigs")
5376 urls += "?" + c.urlParams_.Encode()
5377 req, err := http.NewRequest("GET", urls, body)
5378 if err != nil {
5379 return nil, err
5380 }
5381 req.Header = reqHeaders
5382 googleapi.Expand(req.URL, map[string]string{
5383 "parent": c.parent,
5384 })
5385 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5386 }
5387
5388
5389
5390
5391
5392
5393
5394 func (c *ProjectsInboundSamlConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse, error) {
5395 gensupport.SetOptions(c.urlParams_, opts...)
5396 res, err := c.doRequest("json")
5397 if res != nil && res.StatusCode == http.StatusNotModified {
5398 if res.Body != nil {
5399 res.Body.Close()
5400 }
5401 return nil, gensupport.WrapError(&googleapi.Error{
5402 Code: res.StatusCode,
5403 Header: res.Header,
5404 })
5405 }
5406 if err != nil {
5407 return nil, err
5408 }
5409 defer googleapi.CloseBody(res)
5410 if err := googleapi.CheckResponse(res); err != nil {
5411 return nil, gensupport.WrapError(err)
5412 }
5413 ret := &GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse{
5414 ServerResponse: googleapi.ServerResponse{
5415 Header: res.Header,
5416 HTTPStatusCode: res.StatusCode,
5417 },
5418 }
5419 target := &ret
5420 if err := gensupport.DecodeResponse(target, res); err != nil {
5421 return nil, err
5422 }
5423 return ret, nil
5424 }
5425
5426
5427
5428
5429 func (c *ProjectsInboundSamlConfigsListCall) Pages(ctx context.Context, f func(*GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse) error) error {
5430 c.ctx_ = ctx
5431 defer c.PageToken(c.urlParams_.Get("pageToken"))
5432 for {
5433 x, err := c.Do()
5434 if err != nil {
5435 return err
5436 }
5437 if err := f(x); err != nil {
5438 return err
5439 }
5440 if x.NextPageToken == "" {
5441 return nil
5442 }
5443 c.PageToken(x.NextPageToken)
5444 }
5445 }
5446
5447 type ProjectsInboundSamlConfigsPatchCall struct {
5448 s *Service
5449 name string
5450 googlecloudidentitytoolkitadminv2inboundsamlconfig *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig
5451 urlParams_ gensupport.URLParams
5452 ctx_ context.Context
5453 header_ http.Header
5454 }
5455
5456
5457
5458
5459
5460
5461 func (r *ProjectsInboundSamlConfigsService) Patch(name string, googlecloudidentitytoolkitadminv2inboundsamlconfig *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig) *ProjectsInboundSamlConfigsPatchCall {
5462 c := &ProjectsInboundSamlConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5463 c.name = name
5464 c.googlecloudidentitytoolkitadminv2inboundsamlconfig = googlecloudidentitytoolkitadminv2inboundsamlconfig
5465 return c
5466 }
5467
5468
5469
5470
5471
5472 func (c *ProjectsInboundSamlConfigsPatchCall) UpdateMask(updateMask string) *ProjectsInboundSamlConfigsPatchCall {
5473 c.urlParams_.Set("updateMask", updateMask)
5474 return c
5475 }
5476
5477
5478
5479
5480 func (c *ProjectsInboundSamlConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsInboundSamlConfigsPatchCall {
5481 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5482 return c
5483 }
5484
5485
5486 func (c *ProjectsInboundSamlConfigsPatchCall) Context(ctx context.Context) *ProjectsInboundSamlConfigsPatchCall {
5487 c.ctx_ = ctx
5488 return c
5489 }
5490
5491
5492
5493 func (c *ProjectsInboundSamlConfigsPatchCall) Header() http.Header {
5494 if c.header_ == nil {
5495 c.header_ = make(http.Header)
5496 }
5497 return c.header_
5498 }
5499
5500 func (c *ProjectsInboundSamlConfigsPatchCall) doRequest(alt string) (*http.Response, error) {
5501 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
5502 var body io.Reader = nil
5503 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitadminv2inboundsamlconfig)
5504 if err != nil {
5505 return nil, err
5506 }
5507 c.urlParams_.Set("alt", alt)
5508 c.urlParams_.Set("prettyPrint", "false")
5509 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
5510 urls += "?" + c.urlParams_.Encode()
5511 req, err := http.NewRequest("PATCH", urls, body)
5512 if err != nil {
5513 return nil, err
5514 }
5515 req.Header = reqHeaders
5516 googleapi.Expand(req.URL, map[string]string{
5517 "name": c.name,
5518 })
5519 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5520 }
5521
5522
5523
5524
5525
5526
5527
5528 func (c *ProjectsInboundSamlConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig, error) {
5529 gensupport.SetOptions(c.urlParams_, opts...)
5530 res, err := c.doRequest("json")
5531 if res != nil && res.StatusCode == http.StatusNotModified {
5532 if res.Body != nil {
5533 res.Body.Close()
5534 }
5535 return nil, gensupport.WrapError(&googleapi.Error{
5536 Code: res.StatusCode,
5537 Header: res.Header,
5538 })
5539 }
5540 if err != nil {
5541 return nil, err
5542 }
5543 defer googleapi.CloseBody(res)
5544 if err := googleapi.CheckResponse(res); err != nil {
5545 return nil, gensupport.WrapError(err)
5546 }
5547 ret := &GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig{
5548 ServerResponse: googleapi.ServerResponse{
5549 Header: res.Header,
5550 HTTPStatusCode: res.StatusCode,
5551 },
5552 }
5553 target := &ret
5554 if err := gensupport.DecodeResponse(target, res); err != nil {
5555 return nil, err
5556 }
5557 return ret, nil
5558 }
5559
5560 type ProjectsOauthIdpConfigsCreateCall struct {
5561 s *Service
5562 parent string
5563 googlecloudidentitytoolkitadminv2oauthidpconfig *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig
5564 urlParams_ gensupport.URLParams
5565 ctx_ context.Context
5566 header_ http.Header
5567 }
5568
5569
5570
5571
5572
5573 func (r *ProjectsOauthIdpConfigsService) Create(parent string, googlecloudidentitytoolkitadminv2oauthidpconfig *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig) *ProjectsOauthIdpConfigsCreateCall {
5574 c := &ProjectsOauthIdpConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5575 c.parent = parent
5576 c.googlecloudidentitytoolkitadminv2oauthidpconfig = googlecloudidentitytoolkitadminv2oauthidpconfig
5577 return c
5578 }
5579
5580
5581
5582 func (c *ProjectsOauthIdpConfigsCreateCall) OauthIdpConfigId(oauthIdpConfigId string) *ProjectsOauthIdpConfigsCreateCall {
5583 c.urlParams_.Set("oauthIdpConfigId", oauthIdpConfigId)
5584 return c
5585 }
5586
5587
5588
5589
5590 func (c *ProjectsOauthIdpConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsOauthIdpConfigsCreateCall {
5591 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5592 return c
5593 }
5594
5595
5596 func (c *ProjectsOauthIdpConfigsCreateCall) Context(ctx context.Context) *ProjectsOauthIdpConfigsCreateCall {
5597 c.ctx_ = ctx
5598 return c
5599 }
5600
5601
5602
5603 func (c *ProjectsOauthIdpConfigsCreateCall) Header() http.Header {
5604 if c.header_ == nil {
5605 c.header_ = make(http.Header)
5606 }
5607 return c.header_
5608 }
5609
5610 func (c *ProjectsOauthIdpConfigsCreateCall) doRequest(alt string) (*http.Response, error) {
5611 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
5612 var body io.Reader = nil
5613 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitadminv2oauthidpconfig)
5614 if err != nil {
5615 return nil, err
5616 }
5617 c.urlParams_.Set("alt", alt)
5618 c.urlParams_.Set("prettyPrint", "false")
5619 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/oauthIdpConfigs")
5620 urls += "?" + c.urlParams_.Encode()
5621 req, err := http.NewRequest("POST", urls, body)
5622 if err != nil {
5623 return nil, err
5624 }
5625 req.Header = reqHeaders
5626 googleapi.Expand(req.URL, map[string]string{
5627 "parent": c.parent,
5628 })
5629 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5630 }
5631
5632
5633
5634
5635
5636
5637
5638 func (c *ProjectsOauthIdpConfigsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig, error) {
5639 gensupport.SetOptions(c.urlParams_, opts...)
5640 res, err := c.doRequest("json")
5641 if res != nil && res.StatusCode == http.StatusNotModified {
5642 if res.Body != nil {
5643 res.Body.Close()
5644 }
5645 return nil, gensupport.WrapError(&googleapi.Error{
5646 Code: res.StatusCode,
5647 Header: res.Header,
5648 })
5649 }
5650 if err != nil {
5651 return nil, err
5652 }
5653 defer googleapi.CloseBody(res)
5654 if err := googleapi.CheckResponse(res); err != nil {
5655 return nil, gensupport.WrapError(err)
5656 }
5657 ret := &GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig{
5658 ServerResponse: googleapi.ServerResponse{
5659 Header: res.Header,
5660 HTTPStatusCode: res.StatusCode,
5661 },
5662 }
5663 target := &ret
5664 if err := gensupport.DecodeResponse(target, res); err != nil {
5665 return nil, err
5666 }
5667 return ret, nil
5668 }
5669
5670 type ProjectsOauthIdpConfigsDeleteCall struct {
5671 s *Service
5672 name string
5673 urlParams_ gensupport.URLParams
5674 ctx_ context.Context
5675 header_ http.Header
5676 }
5677
5678
5679
5680
5681
5682 func (r *ProjectsOauthIdpConfigsService) Delete(name string) *ProjectsOauthIdpConfigsDeleteCall {
5683 c := &ProjectsOauthIdpConfigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5684 c.name = name
5685 return c
5686 }
5687
5688
5689
5690
5691 func (c *ProjectsOauthIdpConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsOauthIdpConfigsDeleteCall {
5692 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5693 return c
5694 }
5695
5696
5697 func (c *ProjectsOauthIdpConfigsDeleteCall) Context(ctx context.Context) *ProjectsOauthIdpConfigsDeleteCall {
5698 c.ctx_ = ctx
5699 return c
5700 }
5701
5702
5703
5704 func (c *ProjectsOauthIdpConfigsDeleteCall) Header() http.Header {
5705 if c.header_ == nil {
5706 c.header_ = make(http.Header)
5707 }
5708 return c.header_
5709 }
5710
5711 func (c *ProjectsOauthIdpConfigsDeleteCall) doRequest(alt string) (*http.Response, error) {
5712 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5713 var body io.Reader = nil
5714 c.urlParams_.Set("alt", alt)
5715 c.urlParams_.Set("prettyPrint", "false")
5716 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
5717 urls += "?" + c.urlParams_.Encode()
5718 req, err := http.NewRequest("DELETE", urls, body)
5719 if err != nil {
5720 return nil, err
5721 }
5722 req.Header = reqHeaders
5723 googleapi.Expand(req.URL, map[string]string{
5724 "name": c.name,
5725 })
5726 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5727 }
5728
5729
5730
5731
5732
5733
5734
5735 func (c *ProjectsOauthIdpConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
5736 gensupport.SetOptions(c.urlParams_, opts...)
5737 res, err := c.doRequest("json")
5738 if res != nil && res.StatusCode == http.StatusNotModified {
5739 if res.Body != nil {
5740 res.Body.Close()
5741 }
5742 return nil, gensupport.WrapError(&googleapi.Error{
5743 Code: res.StatusCode,
5744 Header: res.Header,
5745 })
5746 }
5747 if err != nil {
5748 return nil, err
5749 }
5750 defer googleapi.CloseBody(res)
5751 if err := googleapi.CheckResponse(res); err != nil {
5752 return nil, gensupport.WrapError(err)
5753 }
5754 ret := &GoogleProtobufEmpty{
5755 ServerResponse: googleapi.ServerResponse{
5756 Header: res.Header,
5757 HTTPStatusCode: res.StatusCode,
5758 },
5759 }
5760 target := &ret
5761 if err := gensupport.DecodeResponse(target, res); err != nil {
5762 return nil, err
5763 }
5764 return ret, nil
5765 }
5766
5767 type ProjectsOauthIdpConfigsGetCall struct {
5768 s *Service
5769 name string
5770 urlParams_ gensupport.URLParams
5771 ifNoneMatch_ string
5772 ctx_ context.Context
5773 header_ http.Header
5774 }
5775
5776
5777
5778
5779
5780 func (r *ProjectsOauthIdpConfigsService) Get(name string) *ProjectsOauthIdpConfigsGetCall {
5781 c := &ProjectsOauthIdpConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5782 c.name = name
5783 return c
5784 }
5785
5786
5787
5788
5789 func (c *ProjectsOauthIdpConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsOauthIdpConfigsGetCall {
5790 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5791 return c
5792 }
5793
5794
5795
5796
5797 func (c *ProjectsOauthIdpConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsOauthIdpConfigsGetCall {
5798 c.ifNoneMatch_ = entityTag
5799 return c
5800 }
5801
5802
5803 func (c *ProjectsOauthIdpConfigsGetCall) Context(ctx context.Context) *ProjectsOauthIdpConfigsGetCall {
5804 c.ctx_ = ctx
5805 return c
5806 }
5807
5808
5809
5810 func (c *ProjectsOauthIdpConfigsGetCall) Header() http.Header {
5811 if c.header_ == nil {
5812 c.header_ = make(http.Header)
5813 }
5814 return c.header_
5815 }
5816
5817 func (c *ProjectsOauthIdpConfigsGetCall) doRequest(alt string) (*http.Response, error) {
5818 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5819 if c.ifNoneMatch_ != "" {
5820 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5821 }
5822 var body io.Reader = nil
5823 c.urlParams_.Set("alt", alt)
5824 c.urlParams_.Set("prettyPrint", "false")
5825 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
5826 urls += "?" + c.urlParams_.Encode()
5827 req, err := http.NewRequest("GET", urls, body)
5828 if err != nil {
5829 return nil, err
5830 }
5831 req.Header = reqHeaders
5832 googleapi.Expand(req.URL, map[string]string{
5833 "name": c.name,
5834 })
5835 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5836 }
5837
5838
5839
5840
5841
5842
5843
5844 func (c *ProjectsOauthIdpConfigsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig, error) {
5845 gensupport.SetOptions(c.urlParams_, opts...)
5846 res, err := c.doRequest("json")
5847 if res != nil && res.StatusCode == http.StatusNotModified {
5848 if res.Body != nil {
5849 res.Body.Close()
5850 }
5851 return nil, gensupport.WrapError(&googleapi.Error{
5852 Code: res.StatusCode,
5853 Header: res.Header,
5854 })
5855 }
5856 if err != nil {
5857 return nil, err
5858 }
5859 defer googleapi.CloseBody(res)
5860 if err := googleapi.CheckResponse(res); err != nil {
5861 return nil, gensupport.WrapError(err)
5862 }
5863 ret := &GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig{
5864 ServerResponse: googleapi.ServerResponse{
5865 Header: res.Header,
5866 HTTPStatusCode: res.StatusCode,
5867 },
5868 }
5869 target := &ret
5870 if err := gensupport.DecodeResponse(target, res); err != nil {
5871 return nil, err
5872 }
5873 return ret, nil
5874 }
5875
5876 type ProjectsOauthIdpConfigsListCall struct {
5877 s *Service
5878 parent string
5879 urlParams_ gensupport.URLParams
5880 ifNoneMatch_ string
5881 ctx_ context.Context
5882 header_ http.Header
5883 }
5884
5885
5886
5887
5888
5889 func (r *ProjectsOauthIdpConfigsService) List(parent string) *ProjectsOauthIdpConfigsListCall {
5890 c := &ProjectsOauthIdpConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5891 c.parent = parent
5892 return c
5893 }
5894
5895
5896
5897 func (c *ProjectsOauthIdpConfigsListCall) PageSize(pageSize int64) *ProjectsOauthIdpConfigsListCall {
5898 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
5899 return c
5900 }
5901
5902
5903
5904 func (c *ProjectsOauthIdpConfigsListCall) PageToken(pageToken string) *ProjectsOauthIdpConfigsListCall {
5905 c.urlParams_.Set("pageToken", pageToken)
5906 return c
5907 }
5908
5909
5910
5911
5912 func (c *ProjectsOauthIdpConfigsListCall) Fields(s ...googleapi.Field) *ProjectsOauthIdpConfigsListCall {
5913 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5914 return c
5915 }
5916
5917
5918
5919
5920 func (c *ProjectsOauthIdpConfigsListCall) IfNoneMatch(entityTag string) *ProjectsOauthIdpConfigsListCall {
5921 c.ifNoneMatch_ = entityTag
5922 return c
5923 }
5924
5925
5926 func (c *ProjectsOauthIdpConfigsListCall) Context(ctx context.Context) *ProjectsOauthIdpConfigsListCall {
5927 c.ctx_ = ctx
5928 return c
5929 }
5930
5931
5932
5933 func (c *ProjectsOauthIdpConfigsListCall) Header() http.Header {
5934 if c.header_ == nil {
5935 c.header_ = make(http.Header)
5936 }
5937 return c.header_
5938 }
5939
5940 func (c *ProjectsOauthIdpConfigsListCall) doRequest(alt string) (*http.Response, error) {
5941 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5942 if c.ifNoneMatch_ != "" {
5943 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5944 }
5945 var body io.Reader = nil
5946 c.urlParams_.Set("alt", alt)
5947 c.urlParams_.Set("prettyPrint", "false")
5948 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/oauthIdpConfigs")
5949 urls += "?" + c.urlParams_.Encode()
5950 req, err := http.NewRequest("GET", urls, body)
5951 if err != nil {
5952 return nil, err
5953 }
5954 req.Header = reqHeaders
5955 googleapi.Expand(req.URL, map[string]string{
5956 "parent": c.parent,
5957 })
5958 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5959 }
5960
5961
5962
5963
5964
5965
5966
5967 func (c *ProjectsOauthIdpConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse, error) {
5968 gensupport.SetOptions(c.urlParams_, opts...)
5969 res, err := c.doRequest("json")
5970 if res != nil && res.StatusCode == http.StatusNotModified {
5971 if res.Body != nil {
5972 res.Body.Close()
5973 }
5974 return nil, gensupport.WrapError(&googleapi.Error{
5975 Code: res.StatusCode,
5976 Header: res.Header,
5977 })
5978 }
5979 if err != nil {
5980 return nil, err
5981 }
5982 defer googleapi.CloseBody(res)
5983 if err := googleapi.CheckResponse(res); err != nil {
5984 return nil, gensupport.WrapError(err)
5985 }
5986 ret := &GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse{
5987 ServerResponse: googleapi.ServerResponse{
5988 Header: res.Header,
5989 HTTPStatusCode: res.StatusCode,
5990 },
5991 }
5992 target := &ret
5993 if err := gensupport.DecodeResponse(target, res); err != nil {
5994 return nil, err
5995 }
5996 return ret, nil
5997 }
5998
5999
6000
6001
6002 func (c *ProjectsOauthIdpConfigsListCall) Pages(ctx context.Context, f func(*GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse) error) error {
6003 c.ctx_ = ctx
6004 defer c.PageToken(c.urlParams_.Get("pageToken"))
6005 for {
6006 x, err := c.Do()
6007 if err != nil {
6008 return err
6009 }
6010 if err := f(x); err != nil {
6011 return err
6012 }
6013 if x.NextPageToken == "" {
6014 return nil
6015 }
6016 c.PageToken(x.NextPageToken)
6017 }
6018 }
6019
6020 type ProjectsOauthIdpConfigsPatchCall struct {
6021 s *Service
6022 name string
6023 googlecloudidentitytoolkitadminv2oauthidpconfig *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig
6024 urlParams_ gensupport.URLParams
6025 ctx_ context.Context
6026 header_ http.Header
6027 }
6028
6029
6030
6031
6032
6033
6034 func (r *ProjectsOauthIdpConfigsService) Patch(name string, googlecloudidentitytoolkitadminv2oauthidpconfig *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig) *ProjectsOauthIdpConfigsPatchCall {
6035 c := &ProjectsOauthIdpConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6036 c.name = name
6037 c.googlecloudidentitytoolkitadminv2oauthidpconfig = googlecloudidentitytoolkitadminv2oauthidpconfig
6038 return c
6039 }
6040
6041
6042
6043
6044
6045 func (c *ProjectsOauthIdpConfigsPatchCall) UpdateMask(updateMask string) *ProjectsOauthIdpConfigsPatchCall {
6046 c.urlParams_.Set("updateMask", updateMask)
6047 return c
6048 }
6049
6050
6051
6052
6053 func (c *ProjectsOauthIdpConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsOauthIdpConfigsPatchCall {
6054 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6055 return c
6056 }
6057
6058
6059 func (c *ProjectsOauthIdpConfigsPatchCall) Context(ctx context.Context) *ProjectsOauthIdpConfigsPatchCall {
6060 c.ctx_ = ctx
6061 return c
6062 }
6063
6064
6065
6066 func (c *ProjectsOauthIdpConfigsPatchCall) Header() http.Header {
6067 if c.header_ == nil {
6068 c.header_ = make(http.Header)
6069 }
6070 return c.header_
6071 }
6072
6073 func (c *ProjectsOauthIdpConfigsPatchCall) doRequest(alt string) (*http.Response, error) {
6074 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
6075 var body io.Reader = nil
6076 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitadminv2oauthidpconfig)
6077 if err != nil {
6078 return nil, err
6079 }
6080 c.urlParams_.Set("alt", alt)
6081 c.urlParams_.Set("prettyPrint", "false")
6082 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
6083 urls += "?" + c.urlParams_.Encode()
6084 req, err := http.NewRequest("PATCH", urls, body)
6085 if err != nil {
6086 return nil, err
6087 }
6088 req.Header = reqHeaders
6089 googleapi.Expand(req.URL, map[string]string{
6090 "name": c.name,
6091 })
6092 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6093 }
6094
6095
6096
6097
6098
6099
6100
6101 func (c *ProjectsOauthIdpConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig, error) {
6102 gensupport.SetOptions(c.urlParams_, opts...)
6103 res, err := c.doRequest("json")
6104 if res != nil && res.StatusCode == http.StatusNotModified {
6105 if res.Body != nil {
6106 res.Body.Close()
6107 }
6108 return nil, gensupport.WrapError(&googleapi.Error{
6109 Code: res.StatusCode,
6110 Header: res.Header,
6111 })
6112 }
6113 if err != nil {
6114 return nil, err
6115 }
6116 defer googleapi.CloseBody(res)
6117 if err := googleapi.CheckResponse(res); err != nil {
6118 return nil, gensupport.WrapError(err)
6119 }
6120 ret := &GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig{
6121 ServerResponse: googleapi.ServerResponse{
6122 Header: res.Header,
6123 HTTPStatusCode: res.StatusCode,
6124 },
6125 }
6126 target := &ret
6127 if err := gensupport.DecodeResponse(target, res); err != nil {
6128 return nil, err
6129 }
6130 return ret, nil
6131 }
6132
6133 type ProjectsTenantsCreateCall struct {
6134 s *Service
6135 parent string
6136 googlecloudidentitytoolkitadminv2tenant *GoogleCloudIdentitytoolkitAdminV2Tenant
6137 urlParams_ gensupport.URLParams
6138 ctx_ context.Context
6139 header_ http.Header
6140 }
6141
6142
6143
6144
6145
6146 func (r *ProjectsTenantsService) Create(parent string, googlecloudidentitytoolkitadminv2tenant *GoogleCloudIdentitytoolkitAdminV2Tenant) *ProjectsTenantsCreateCall {
6147 c := &ProjectsTenantsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6148 c.parent = parent
6149 c.googlecloudidentitytoolkitadminv2tenant = googlecloudidentitytoolkitadminv2tenant
6150 return c
6151 }
6152
6153
6154
6155
6156 func (c *ProjectsTenantsCreateCall) Fields(s ...googleapi.Field) *ProjectsTenantsCreateCall {
6157 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6158 return c
6159 }
6160
6161
6162 func (c *ProjectsTenantsCreateCall) Context(ctx context.Context) *ProjectsTenantsCreateCall {
6163 c.ctx_ = ctx
6164 return c
6165 }
6166
6167
6168
6169 func (c *ProjectsTenantsCreateCall) Header() http.Header {
6170 if c.header_ == nil {
6171 c.header_ = make(http.Header)
6172 }
6173 return c.header_
6174 }
6175
6176 func (c *ProjectsTenantsCreateCall) doRequest(alt string) (*http.Response, error) {
6177 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
6178 var body io.Reader = nil
6179 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitadminv2tenant)
6180 if err != nil {
6181 return nil, err
6182 }
6183 c.urlParams_.Set("alt", alt)
6184 c.urlParams_.Set("prettyPrint", "false")
6185 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/tenants")
6186 urls += "?" + c.urlParams_.Encode()
6187 req, err := http.NewRequest("POST", urls, body)
6188 if err != nil {
6189 return nil, err
6190 }
6191 req.Header = reqHeaders
6192 googleapi.Expand(req.URL, map[string]string{
6193 "parent": c.parent,
6194 })
6195 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6196 }
6197
6198
6199
6200
6201
6202
6203
6204 func (c *ProjectsTenantsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2Tenant, error) {
6205 gensupport.SetOptions(c.urlParams_, opts...)
6206 res, err := c.doRequest("json")
6207 if res != nil && res.StatusCode == http.StatusNotModified {
6208 if res.Body != nil {
6209 res.Body.Close()
6210 }
6211 return nil, gensupport.WrapError(&googleapi.Error{
6212 Code: res.StatusCode,
6213 Header: res.Header,
6214 })
6215 }
6216 if err != nil {
6217 return nil, err
6218 }
6219 defer googleapi.CloseBody(res)
6220 if err := googleapi.CheckResponse(res); err != nil {
6221 return nil, gensupport.WrapError(err)
6222 }
6223 ret := &GoogleCloudIdentitytoolkitAdminV2Tenant{
6224 ServerResponse: googleapi.ServerResponse{
6225 Header: res.Header,
6226 HTTPStatusCode: res.StatusCode,
6227 },
6228 }
6229 target := &ret
6230 if err := gensupport.DecodeResponse(target, res); err != nil {
6231 return nil, err
6232 }
6233 return ret, nil
6234 }
6235
6236 type ProjectsTenantsDeleteCall struct {
6237 s *Service
6238 name string
6239 urlParams_ gensupport.URLParams
6240 ctx_ context.Context
6241 header_ http.Header
6242 }
6243
6244
6245
6246
6247 func (r *ProjectsTenantsService) Delete(name string) *ProjectsTenantsDeleteCall {
6248 c := &ProjectsTenantsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6249 c.name = name
6250 return c
6251 }
6252
6253
6254
6255
6256 func (c *ProjectsTenantsDeleteCall) Fields(s ...googleapi.Field) *ProjectsTenantsDeleteCall {
6257 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6258 return c
6259 }
6260
6261
6262 func (c *ProjectsTenantsDeleteCall) Context(ctx context.Context) *ProjectsTenantsDeleteCall {
6263 c.ctx_ = ctx
6264 return c
6265 }
6266
6267
6268
6269 func (c *ProjectsTenantsDeleteCall) Header() http.Header {
6270 if c.header_ == nil {
6271 c.header_ = make(http.Header)
6272 }
6273 return c.header_
6274 }
6275
6276 func (c *ProjectsTenantsDeleteCall) doRequest(alt string) (*http.Response, error) {
6277 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
6278 var body io.Reader = nil
6279 c.urlParams_.Set("alt", alt)
6280 c.urlParams_.Set("prettyPrint", "false")
6281 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
6282 urls += "?" + c.urlParams_.Encode()
6283 req, err := http.NewRequest("DELETE", urls, body)
6284 if err != nil {
6285 return nil, err
6286 }
6287 req.Header = reqHeaders
6288 googleapi.Expand(req.URL, map[string]string{
6289 "name": c.name,
6290 })
6291 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6292 }
6293
6294
6295
6296
6297
6298
6299
6300 func (c *ProjectsTenantsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
6301 gensupport.SetOptions(c.urlParams_, opts...)
6302 res, err := c.doRequest("json")
6303 if res != nil && res.StatusCode == http.StatusNotModified {
6304 if res.Body != nil {
6305 res.Body.Close()
6306 }
6307 return nil, gensupport.WrapError(&googleapi.Error{
6308 Code: res.StatusCode,
6309 Header: res.Header,
6310 })
6311 }
6312 if err != nil {
6313 return nil, err
6314 }
6315 defer googleapi.CloseBody(res)
6316 if err := googleapi.CheckResponse(res); err != nil {
6317 return nil, gensupport.WrapError(err)
6318 }
6319 ret := &GoogleProtobufEmpty{
6320 ServerResponse: googleapi.ServerResponse{
6321 Header: res.Header,
6322 HTTPStatusCode: res.StatusCode,
6323 },
6324 }
6325 target := &ret
6326 if err := gensupport.DecodeResponse(target, res); err != nil {
6327 return nil, err
6328 }
6329 return ret, nil
6330 }
6331
6332 type ProjectsTenantsGetCall struct {
6333 s *Service
6334 name string
6335 urlParams_ gensupport.URLParams
6336 ifNoneMatch_ string
6337 ctx_ context.Context
6338 header_ http.Header
6339 }
6340
6341
6342
6343
6344 func (r *ProjectsTenantsService) Get(name string) *ProjectsTenantsGetCall {
6345 c := &ProjectsTenantsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6346 c.name = name
6347 return c
6348 }
6349
6350
6351
6352
6353 func (c *ProjectsTenantsGetCall) Fields(s ...googleapi.Field) *ProjectsTenantsGetCall {
6354 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6355 return c
6356 }
6357
6358
6359
6360
6361 func (c *ProjectsTenantsGetCall) IfNoneMatch(entityTag string) *ProjectsTenantsGetCall {
6362 c.ifNoneMatch_ = entityTag
6363 return c
6364 }
6365
6366
6367 func (c *ProjectsTenantsGetCall) Context(ctx context.Context) *ProjectsTenantsGetCall {
6368 c.ctx_ = ctx
6369 return c
6370 }
6371
6372
6373
6374 func (c *ProjectsTenantsGetCall) Header() http.Header {
6375 if c.header_ == nil {
6376 c.header_ = make(http.Header)
6377 }
6378 return c.header_
6379 }
6380
6381 func (c *ProjectsTenantsGetCall) doRequest(alt string) (*http.Response, error) {
6382 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
6383 if c.ifNoneMatch_ != "" {
6384 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
6385 }
6386 var body io.Reader = nil
6387 c.urlParams_.Set("alt", alt)
6388 c.urlParams_.Set("prettyPrint", "false")
6389 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
6390 urls += "?" + c.urlParams_.Encode()
6391 req, err := http.NewRequest("GET", urls, body)
6392 if err != nil {
6393 return nil, err
6394 }
6395 req.Header = reqHeaders
6396 googleapi.Expand(req.URL, map[string]string{
6397 "name": c.name,
6398 })
6399 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6400 }
6401
6402
6403
6404
6405
6406
6407
6408 func (c *ProjectsTenantsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2Tenant, error) {
6409 gensupport.SetOptions(c.urlParams_, opts...)
6410 res, err := c.doRequest("json")
6411 if res != nil && res.StatusCode == http.StatusNotModified {
6412 if res.Body != nil {
6413 res.Body.Close()
6414 }
6415 return nil, gensupport.WrapError(&googleapi.Error{
6416 Code: res.StatusCode,
6417 Header: res.Header,
6418 })
6419 }
6420 if err != nil {
6421 return nil, err
6422 }
6423 defer googleapi.CloseBody(res)
6424 if err := googleapi.CheckResponse(res); err != nil {
6425 return nil, gensupport.WrapError(err)
6426 }
6427 ret := &GoogleCloudIdentitytoolkitAdminV2Tenant{
6428 ServerResponse: googleapi.ServerResponse{
6429 Header: res.Header,
6430 HTTPStatusCode: res.StatusCode,
6431 },
6432 }
6433 target := &ret
6434 if err := gensupport.DecodeResponse(target, res); err != nil {
6435 return nil, err
6436 }
6437 return ret, nil
6438 }
6439
6440 type ProjectsTenantsGetIamPolicyCall struct {
6441 s *Service
6442 resource string
6443 googleiamv1getiampolicyrequest *GoogleIamV1GetIamPolicyRequest
6444 urlParams_ gensupport.URLParams
6445 ctx_ context.Context
6446 header_ http.Header
6447 }
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457 func (r *ProjectsTenantsService) GetIamPolicy(resource string, googleiamv1getiampolicyrequest *GoogleIamV1GetIamPolicyRequest) *ProjectsTenantsGetIamPolicyCall {
6458 c := &ProjectsTenantsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6459 c.resource = resource
6460 c.googleiamv1getiampolicyrequest = googleiamv1getiampolicyrequest
6461 return c
6462 }
6463
6464
6465
6466
6467 func (c *ProjectsTenantsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsTenantsGetIamPolicyCall {
6468 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6469 return c
6470 }
6471
6472
6473 func (c *ProjectsTenantsGetIamPolicyCall) Context(ctx context.Context) *ProjectsTenantsGetIamPolicyCall {
6474 c.ctx_ = ctx
6475 return c
6476 }
6477
6478
6479
6480 func (c *ProjectsTenantsGetIamPolicyCall) Header() http.Header {
6481 if c.header_ == nil {
6482 c.header_ = make(http.Header)
6483 }
6484 return c.header_
6485 }
6486
6487 func (c *ProjectsTenantsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
6488 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
6489 var body io.Reader = nil
6490 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1getiampolicyrequest)
6491 if err != nil {
6492 return nil, err
6493 }
6494 c.urlParams_.Set("alt", alt)
6495 c.urlParams_.Set("prettyPrint", "false")
6496 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+resource}:getIamPolicy")
6497 urls += "?" + c.urlParams_.Encode()
6498 req, err := http.NewRequest("POST", urls, body)
6499 if err != nil {
6500 return nil, err
6501 }
6502 req.Header = reqHeaders
6503 googleapi.Expand(req.URL, map[string]string{
6504 "resource": c.resource,
6505 })
6506 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6507 }
6508
6509
6510
6511
6512
6513
6514
6515 func (c *ProjectsTenantsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
6516 gensupport.SetOptions(c.urlParams_, opts...)
6517 res, err := c.doRequest("json")
6518 if res != nil && res.StatusCode == http.StatusNotModified {
6519 if res.Body != nil {
6520 res.Body.Close()
6521 }
6522 return nil, gensupport.WrapError(&googleapi.Error{
6523 Code: res.StatusCode,
6524 Header: res.Header,
6525 })
6526 }
6527 if err != nil {
6528 return nil, err
6529 }
6530 defer googleapi.CloseBody(res)
6531 if err := googleapi.CheckResponse(res); err != nil {
6532 return nil, gensupport.WrapError(err)
6533 }
6534 ret := &GoogleIamV1Policy{
6535 ServerResponse: googleapi.ServerResponse{
6536 Header: res.Header,
6537 HTTPStatusCode: res.StatusCode,
6538 },
6539 }
6540 target := &ret
6541 if err := gensupport.DecodeResponse(target, res); err != nil {
6542 return nil, err
6543 }
6544 return ret, nil
6545 }
6546
6547 type ProjectsTenantsListCall struct {
6548 s *Service
6549 parent string
6550 urlParams_ gensupport.URLParams
6551 ifNoneMatch_ string
6552 ctx_ context.Context
6553 header_ http.Header
6554 }
6555
6556
6557
6558
6559
6560 func (r *ProjectsTenantsService) List(parent string) *ProjectsTenantsListCall {
6561 c := &ProjectsTenantsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6562 c.parent = parent
6563 return c
6564 }
6565
6566
6567
6568
6569 func (c *ProjectsTenantsListCall) PageSize(pageSize int64) *ProjectsTenantsListCall {
6570 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
6571 return c
6572 }
6573
6574
6575
6576 func (c *ProjectsTenantsListCall) PageToken(pageToken string) *ProjectsTenantsListCall {
6577 c.urlParams_.Set("pageToken", pageToken)
6578 return c
6579 }
6580
6581
6582
6583
6584 func (c *ProjectsTenantsListCall) Fields(s ...googleapi.Field) *ProjectsTenantsListCall {
6585 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6586 return c
6587 }
6588
6589
6590
6591
6592 func (c *ProjectsTenantsListCall) IfNoneMatch(entityTag string) *ProjectsTenantsListCall {
6593 c.ifNoneMatch_ = entityTag
6594 return c
6595 }
6596
6597
6598 func (c *ProjectsTenantsListCall) Context(ctx context.Context) *ProjectsTenantsListCall {
6599 c.ctx_ = ctx
6600 return c
6601 }
6602
6603
6604
6605 func (c *ProjectsTenantsListCall) Header() http.Header {
6606 if c.header_ == nil {
6607 c.header_ = make(http.Header)
6608 }
6609 return c.header_
6610 }
6611
6612 func (c *ProjectsTenantsListCall) doRequest(alt string) (*http.Response, error) {
6613 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
6614 if c.ifNoneMatch_ != "" {
6615 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
6616 }
6617 var body io.Reader = nil
6618 c.urlParams_.Set("alt", alt)
6619 c.urlParams_.Set("prettyPrint", "false")
6620 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/tenants")
6621 urls += "?" + c.urlParams_.Encode()
6622 req, err := http.NewRequest("GET", urls, body)
6623 if err != nil {
6624 return nil, err
6625 }
6626 req.Header = reqHeaders
6627 googleapi.Expand(req.URL, map[string]string{
6628 "parent": c.parent,
6629 })
6630 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6631 }
6632
6633
6634
6635
6636
6637
6638
6639 func (c *ProjectsTenantsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2ListTenantsResponse, error) {
6640 gensupport.SetOptions(c.urlParams_, opts...)
6641 res, err := c.doRequest("json")
6642 if res != nil && res.StatusCode == http.StatusNotModified {
6643 if res.Body != nil {
6644 res.Body.Close()
6645 }
6646 return nil, gensupport.WrapError(&googleapi.Error{
6647 Code: res.StatusCode,
6648 Header: res.Header,
6649 })
6650 }
6651 if err != nil {
6652 return nil, err
6653 }
6654 defer googleapi.CloseBody(res)
6655 if err := googleapi.CheckResponse(res); err != nil {
6656 return nil, gensupport.WrapError(err)
6657 }
6658 ret := &GoogleCloudIdentitytoolkitAdminV2ListTenantsResponse{
6659 ServerResponse: googleapi.ServerResponse{
6660 Header: res.Header,
6661 HTTPStatusCode: res.StatusCode,
6662 },
6663 }
6664 target := &ret
6665 if err := gensupport.DecodeResponse(target, res); err != nil {
6666 return nil, err
6667 }
6668 return ret, nil
6669 }
6670
6671
6672
6673
6674 func (c *ProjectsTenantsListCall) Pages(ctx context.Context, f func(*GoogleCloudIdentitytoolkitAdminV2ListTenantsResponse) error) error {
6675 c.ctx_ = ctx
6676 defer c.PageToken(c.urlParams_.Get("pageToken"))
6677 for {
6678 x, err := c.Do()
6679 if err != nil {
6680 return err
6681 }
6682 if err := f(x); err != nil {
6683 return err
6684 }
6685 if x.NextPageToken == "" {
6686 return nil
6687 }
6688 c.PageToken(x.NextPageToken)
6689 }
6690 }
6691
6692 type ProjectsTenantsPatchCall struct {
6693 s *Service
6694 name string
6695 googlecloudidentitytoolkitadminv2tenant *GoogleCloudIdentitytoolkitAdminV2Tenant
6696 urlParams_ gensupport.URLParams
6697 ctx_ context.Context
6698 header_ http.Header
6699 }
6700
6701
6702
6703
6704
6705 func (r *ProjectsTenantsService) Patch(name string, googlecloudidentitytoolkitadminv2tenant *GoogleCloudIdentitytoolkitAdminV2Tenant) *ProjectsTenantsPatchCall {
6706 c := &ProjectsTenantsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6707 c.name = name
6708 c.googlecloudidentitytoolkitadminv2tenant = googlecloudidentitytoolkitadminv2tenant
6709 return c
6710 }
6711
6712
6713
6714
6715
6716 func (c *ProjectsTenantsPatchCall) UpdateMask(updateMask string) *ProjectsTenantsPatchCall {
6717 c.urlParams_.Set("updateMask", updateMask)
6718 return c
6719 }
6720
6721
6722
6723
6724 func (c *ProjectsTenantsPatchCall) Fields(s ...googleapi.Field) *ProjectsTenantsPatchCall {
6725 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6726 return c
6727 }
6728
6729
6730 func (c *ProjectsTenantsPatchCall) Context(ctx context.Context) *ProjectsTenantsPatchCall {
6731 c.ctx_ = ctx
6732 return c
6733 }
6734
6735
6736
6737 func (c *ProjectsTenantsPatchCall) Header() http.Header {
6738 if c.header_ == nil {
6739 c.header_ = make(http.Header)
6740 }
6741 return c.header_
6742 }
6743
6744 func (c *ProjectsTenantsPatchCall) doRequest(alt string) (*http.Response, error) {
6745 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
6746 var body io.Reader = nil
6747 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitadminv2tenant)
6748 if err != nil {
6749 return nil, err
6750 }
6751 c.urlParams_.Set("alt", alt)
6752 c.urlParams_.Set("prettyPrint", "false")
6753 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
6754 urls += "?" + c.urlParams_.Encode()
6755 req, err := http.NewRequest("PATCH", urls, body)
6756 if err != nil {
6757 return nil, err
6758 }
6759 req.Header = reqHeaders
6760 googleapi.Expand(req.URL, map[string]string{
6761 "name": c.name,
6762 })
6763 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6764 }
6765
6766
6767
6768
6769
6770
6771
6772 func (c *ProjectsTenantsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2Tenant, error) {
6773 gensupport.SetOptions(c.urlParams_, opts...)
6774 res, err := c.doRequest("json")
6775 if res != nil && res.StatusCode == http.StatusNotModified {
6776 if res.Body != nil {
6777 res.Body.Close()
6778 }
6779 return nil, gensupport.WrapError(&googleapi.Error{
6780 Code: res.StatusCode,
6781 Header: res.Header,
6782 })
6783 }
6784 if err != nil {
6785 return nil, err
6786 }
6787 defer googleapi.CloseBody(res)
6788 if err := googleapi.CheckResponse(res); err != nil {
6789 return nil, gensupport.WrapError(err)
6790 }
6791 ret := &GoogleCloudIdentitytoolkitAdminV2Tenant{
6792 ServerResponse: googleapi.ServerResponse{
6793 Header: res.Header,
6794 HTTPStatusCode: res.StatusCode,
6795 },
6796 }
6797 target := &ret
6798 if err := gensupport.DecodeResponse(target, res); err != nil {
6799 return nil, err
6800 }
6801 return ret, nil
6802 }
6803
6804 type ProjectsTenantsSetIamPolicyCall struct {
6805 s *Service
6806 resource string
6807 googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
6808 urlParams_ gensupport.URLParams
6809 ctx_ context.Context
6810 header_ http.Header
6811 }
6812
6813
6814
6815
6816
6817
6818
6819
6820 func (r *ProjectsTenantsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsTenantsSetIamPolicyCall {
6821 c := &ProjectsTenantsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6822 c.resource = resource
6823 c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
6824 return c
6825 }
6826
6827
6828
6829
6830 func (c *ProjectsTenantsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsTenantsSetIamPolicyCall {
6831 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6832 return c
6833 }
6834
6835
6836 func (c *ProjectsTenantsSetIamPolicyCall) Context(ctx context.Context) *ProjectsTenantsSetIamPolicyCall {
6837 c.ctx_ = ctx
6838 return c
6839 }
6840
6841
6842
6843 func (c *ProjectsTenantsSetIamPolicyCall) Header() http.Header {
6844 if c.header_ == nil {
6845 c.header_ = make(http.Header)
6846 }
6847 return c.header_
6848 }
6849
6850 func (c *ProjectsTenantsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
6851 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
6852 var body io.Reader = nil
6853 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
6854 if err != nil {
6855 return nil, err
6856 }
6857 c.urlParams_.Set("alt", alt)
6858 c.urlParams_.Set("prettyPrint", "false")
6859 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+resource}:setIamPolicy")
6860 urls += "?" + c.urlParams_.Encode()
6861 req, err := http.NewRequest("POST", urls, body)
6862 if err != nil {
6863 return nil, err
6864 }
6865 req.Header = reqHeaders
6866 googleapi.Expand(req.URL, map[string]string{
6867 "resource": c.resource,
6868 })
6869 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6870 }
6871
6872
6873
6874
6875
6876
6877
6878 func (c *ProjectsTenantsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
6879 gensupport.SetOptions(c.urlParams_, opts...)
6880 res, err := c.doRequest("json")
6881 if res != nil && res.StatusCode == http.StatusNotModified {
6882 if res.Body != nil {
6883 res.Body.Close()
6884 }
6885 return nil, gensupport.WrapError(&googleapi.Error{
6886 Code: res.StatusCode,
6887 Header: res.Header,
6888 })
6889 }
6890 if err != nil {
6891 return nil, err
6892 }
6893 defer googleapi.CloseBody(res)
6894 if err := googleapi.CheckResponse(res); err != nil {
6895 return nil, gensupport.WrapError(err)
6896 }
6897 ret := &GoogleIamV1Policy{
6898 ServerResponse: googleapi.ServerResponse{
6899 Header: res.Header,
6900 HTTPStatusCode: res.StatusCode,
6901 },
6902 }
6903 target := &ret
6904 if err := gensupport.DecodeResponse(target, res); err != nil {
6905 return nil, err
6906 }
6907 return ret, nil
6908 }
6909
6910 type ProjectsTenantsTestIamPermissionsCall struct {
6911 s *Service
6912 resource string
6913 googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
6914 urlParams_ gensupport.URLParams
6915 ctx_ context.Context
6916 header_ http.Header
6917 }
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927 func (r *ProjectsTenantsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsTenantsTestIamPermissionsCall {
6928 c := &ProjectsTenantsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6929 c.resource = resource
6930 c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
6931 return c
6932 }
6933
6934
6935
6936
6937 func (c *ProjectsTenantsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsTenantsTestIamPermissionsCall {
6938 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6939 return c
6940 }
6941
6942
6943 func (c *ProjectsTenantsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsTenantsTestIamPermissionsCall {
6944 c.ctx_ = ctx
6945 return c
6946 }
6947
6948
6949
6950 func (c *ProjectsTenantsTestIamPermissionsCall) Header() http.Header {
6951 if c.header_ == nil {
6952 c.header_ = make(http.Header)
6953 }
6954 return c.header_
6955 }
6956
6957 func (c *ProjectsTenantsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
6958 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
6959 var body io.Reader = nil
6960 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
6961 if err != nil {
6962 return nil, err
6963 }
6964 c.urlParams_.Set("alt", alt)
6965 c.urlParams_.Set("prettyPrint", "false")
6966 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+resource}:testIamPermissions")
6967 urls += "?" + c.urlParams_.Encode()
6968 req, err := http.NewRequest("POST", urls, body)
6969 if err != nil {
6970 return nil, err
6971 }
6972 req.Header = reqHeaders
6973 googleapi.Expand(req.URL, map[string]string{
6974 "resource": c.resource,
6975 })
6976 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6977 }
6978
6979
6980
6981
6982
6983
6984
6985 func (c *ProjectsTenantsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
6986 gensupport.SetOptions(c.urlParams_, opts...)
6987 res, err := c.doRequest("json")
6988 if res != nil && res.StatusCode == http.StatusNotModified {
6989 if res.Body != nil {
6990 res.Body.Close()
6991 }
6992 return nil, gensupport.WrapError(&googleapi.Error{
6993 Code: res.StatusCode,
6994 Header: res.Header,
6995 })
6996 }
6997 if err != nil {
6998 return nil, err
6999 }
7000 defer googleapi.CloseBody(res)
7001 if err := googleapi.CheckResponse(res); err != nil {
7002 return nil, gensupport.WrapError(err)
7003 }
7004 ret := &GoogleIamV1TestIamPermissionsResponse{
7005 ServerResponse: googleapi.ServerResponse{
7006 Header: res.Header,
7007 HTTPStatusCode: res.StatusCode,
7008 },
7009 }
7010 target := &ret
7011 if err := gensupport.DecodeResponse(target, res); err != nil {
7012 return nil, err
7013 }
7014 return ret, nil
7015 }
7016
7017 type ProjectsTenantsDefaultSupportedIdpConfigsCreateCall struct {
7018 s *Service
7019 parent string
7020 googlecloudidentitytoolkitadminv2defaultsupportedidpconfig *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig
7021 urlParams_ gensupport.URLParams
7022 ctx_ context.Context
7023 header_ http.Header
7024 }
7025
7026
7027
7028
7029
7030
7031 func (r *ProjectsTenantsDefaultSupportedIdpConfigsService) Create(parent string, googlecloudidentitytoolkitadminv2defaultsupportedidpconfig *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig) *ProjectsTenantsDefaultSupportedIdpConfigsCreateCall {
7032 c := &ProjectsTenantsDefaultSupportedIdpConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7033 c.parent = parent
7034 c.googlecloudidentitytoolkitadminv2defaultsupportedidpconfig = googlecloudidentitytoolkitadminv2defaultsupportedidpconfig
7035 return c
7036 }
7037
7038
7039
7040
7041 func (c *ProjectsTenantsDefaultSupportedIdpConfigsCreateCall) IdpId(idpId string) *ProjectsTenantsDefaultSupportedIdpConfigsCreateCall {
7042 c.urlParams_.Set("idpId", idpId)
7043 return c
7044 }
7045
7046
7047
7048
7049 func (c *ProjectsTenantsDefaultSupportedIdpConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsTenantsDefaultSupportedIdpConfigsCreateCall {
7050 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7051 return c
7052 }
7053
7054
7055 func (c *ProjectsTenantsDefaultSupportedIdpConfigsCreateCall) Context(ctx context.Context) *ProjectsTenantsDefaultSupportedIdpConfigsCreateCall {
7056 c.ctx_ = ctx
7057 return c
7058 }
7059
7060
7061
7062 func (c *ProjectsTenantsDefaultSupportedIdpConfigsCreateCall) Header() http.Header {
7063 if c.header_ == nil {
7064 c.header_ = make(http.Header)
7065 }
7066 return c.header_
7067 }
7068
7069 func (c *ProjectsTenantsDefaultSupportedIdpConfigsCreateCall) doRequest(alt string) (*http.Response, error) {
7070 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
7071 var body io.Reader = nil
7072 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitadminv2defaultsupportedidpconfig)
7073 if err != nil {
7074 return nil, err
7075 }
7076 c.urlParams_.Set("alt", alt)
7077 c.urlParams_.Set("prettyPrint", "false")
7078 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/defaultSupportedIdpConfigs")
7079 urls += "?" + c.urlParams_.Encode()
7080 req, err := http.NewRequest("POST", urls, body)
7081 if err != nil {
7082 return nil, err
7083 }
7084 req.Header = reqHeaders
7085 googleapi.Expand(req.URL, map[string]string{
7086 "parent": c.parent,
7087 })
7088 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7089 }
7090
7091
7092
7093
7094
7095
7096
7097 func (c *ProjectsTenantsDefaultSupportedIdpConfigsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig, error) {
7098 gensupport.SetOptions(c.urlParams_, opts...)
7099 res, err := c.doRequest("json")
7100 if res != nil && res.StatusCode == http.StatusNotModified {
7101 if res.Body != nil {
7102 res.Body.Close()
7103 }
7104 return nil, gensupport.WrapError(&googleapi.Error{
7105 Code: res.StatusCode,
7106 Header: res.Header,
7107 })
7108 }
7109 if err != nil {
7110 return nil, err
7111 }
7112 defer googleapi.CloseBody(res)
7113 if err := googleapi.CheckResponse(res); err != nil {
7114 return nil, gensupport.WrapError(err)
7115 }
7116 ret := &GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig{
7117 ServerResponse: googleapi.ServerResponse{
7118 Header: res.Header,
7119 HTTPStatusCode: res.StatusCode,
7120 },
7121 }
7122 target := &ret
7123 if err := gensupport.DecodeResponse(target, res); err != nil {
7124 return nil, err
7125 }
7126 return ret, nil
7127 }
7128
7129 type ProjectsTenantsDefaultSupportedIdpConfigsDeleteCall struct {
7130 s *Service
7131 name string
7132 urlParams_ gensupport.URLParams
7133 ctx_ context.Context
7134 header_ http.Header
7135 }
7136
7137
7138
7139
7140
7141
7142 func (r *ProjectsTenantsDefaultSupportedIdpConfigsService) Delete(name string) *ProjectsTenantsDefaultSupportedIdpConfigsDeleteCall {
7143 c := &ProjectsTenantsDefaultSupportedIdpConfigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7144 c.name = name
7145 return c
7146 }
7147
7148
7149
7150
7151 func (c *ProjectsTenantsDefaultSupportedIdpConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsTenantsDefaultSupportedIdpConfigsDeleteCall {
7152 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7153 return c
7154 }
7155
7156
7157 func (c *ProjectsTenantsDefaultSupportedIdpConfigsDeleteCall) Context(ctx context.Context) *ProjectsTenantsDefaultSupportedIdpConfigsDeleteCall {
7158 c.ctx_ = ctx
7159 return c
7160 }
7161
7162
7163
7164 func (c *ProjectsTenantsDefaultSupportedIdpConfigsDeleteCall) Header() http.Header {
7165 if c.header_ == nil {
7166 c.header_ = make(http.Header)
7167 }
7168 return c.header_
7169 }
7170
7171 func (c *ProjectsTenantsDefaultSupportedIdpConfigsDeleteCall) doRequest(alt string) (*http.Response, error) {
7172 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7173 var body io.Reader = nil
7174 c.urlParams_.Set("alt", alt)
7175 c.urlParams_.Set("prettyPrint", "false")
7176 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
7177 urls += "?" + c.urlParams_.Encode()
7178 req, err := http.NewRequest("DELETE", urls, body)
7179 if err != nil {
7180 return nil, err
7181 }
7182 req.Header = reqHeaders
7183 googleapi.Expand(req.URL, map[string]string{
7184 "name": c.name,
7185 })
7186 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7187 }
7188
7189
7190
7191
7192
7193
7194
7195 func (c *ProjectsTenantsDefaultSupportedIdpConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
7196 gensupport.SetOptions(c.urlParams_, opts...)
7197 res, err := c.doRequest("json")
7198 if res != nil && res.StatusCode == http.StatusNotModified {
7199 if res.Body != nil {
7200 res.Body.Close()
7201 }
7202 return nil, gensupport.WrapError(&googleapi.Error{
7203 Code: res.StatusCode,
7204 Header: res.Header,
7205 })
7206 }
7207 if err != nil {
7208 return nil, err
7209 }
7210 defer googleapi.CloseBody(res)
7211 if err := googleapi.CheckResponse(res); err != nil {
7212 return nil, gensupport.WrapError(err)
7213 }
7214 ret := &GoogleProtobufEmpty{
7215 ServerResponse: googleapi.ServerResponse{
7216 Header: res.Header,
7217 HTTPStatusCode: res.StatusCode,
7218 },
7219 }
7220 target := &ret
7221 if err := gensupport.DecodeResponse(target, res); err != nil {
7222 return nil, err
7223 }
7224 return ret, nil
7225 }
7226
7227 type ProjectsTenantsDefaultSupportedIdpConfigsGetCall struct {
7228 s *Service
7229 name string
7230 urlParams_ gensupport.URLParams
7231 ifNoneMatch_ string
7232 ctx_ context.Context
7233 header_ http.Header
7234 }
7235
7236
7237
7238
7239
7240
7241 func (r *ProjectsTenantsDefaultSupportedIdpConfigsService) Get(name string) *ProjectsTenantsDefaultSupportedIdpConfigsGetCall {
7242 c := &ProjectsTenantsDefaultSupportedIdpConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7243 c.name = name
7244 return c
7245 }
7246
7247
7248
7249
7250 func (c *ProjectsTenantsDefaultSupportedIdpConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsTenantsDefaultSupportedIdpConfigsGetCall {
7251 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7252 return c
7253 }
7254
7255
7256
7257
7258 func (c *ProjectsTenantsDefaultSupportedIdpConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsTenantsDefaultSupportedIdpConfigsGetCall {
7259 c.ifNoneMatch_ = entityTag
7260 return c
7261 }
7262
7263
7264 func (c *ProjectsTenantsDefaultSupportedIdpConfigsGetCall) Context(ctx context.Context) *ProjectsTenantsDefaultSupportedIdpConfigsGetCall {
7265 c.ctx_ = ctx
7266 return c
7267 }
7268
7269
7270
7271 func (c *ProjectsTenantsDefaultSupportedIdpConfigsGetCall) Header() http.Header {
7272 if c.header_ == nil {
7273 c.header_ = make(http.Header)
7274 }
7275 return c.header_
7276 }
7277
7278 func (c *ProjectsTenantsDefaultSupportedIdpConfigsGetCall) doRequest(alt string) (*http.Response, error) {
7279 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7280 if c.ifNoneMatch_ != "" {
7281 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7282 }
7283 var body io.Reader = nil
7284 c.urlParams_.Set("alt", alt)
7285 c.urlParams_.Set("prettyPrint", "false")
7286 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
7287 urls += "?" + c.urlParams_.Encode()
7288 req, err := http.NewRequest("GET", urls, body)
7289 if err != nil {
7290 return nil, err
7291 }
7292 req.Header = reqHeaders
7293 googleapi.Expand(req.URL, map[string]string{
7294 "name": c.name,
7295 })
7296 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7297 }
7298
7299
7300
7301
7302
7303
7304
7305 func (c *ProjectsTenantsDefaultSupportedIdpConfigsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig, error) {
7306 gensupport.SetOptions(c.urlParams_, opts...)
7307 res, err := c.doRequest("json")
7308 if res != nil && res.StatusCode == http.StatusNotModified {
7309 if res.Body != nil {
7310 res.Body.Close()
7311 }
7312 return nil, gensupport.WrapError(&googleapi.Error{
7313 Code: res.StatusCode,
7314 Header: res.Header,
7315 })
7316 }
7317 if err != nil {
7318 return nil, err
7319 }
7320 defer googleapi.CloseBody(res)
7321 if err := googleapi.CheckResponse(res); err != nil {
7322 return nil, gensupport.WrapError(err)
7323 }
7324 ret := &GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig{
7325 ServerResponse: googleapi.ServerResponse{
7326 Header: res.Header,
7327 HTTPStatusCode: res.StatusCode,
7328 },
7329 }
7330 target := &ret
7331 if err := gensupport.DecodeResponse(target, res); err != nil {
7332 return nil, err
7333 }
7334 return ret, nil
7335 }
7336
7337 type ProjectsTenantsDefaultSupportedIdpConfigsListCall struct {
7338 s *Service
7339 parent string
7340 urlParams_ gensupport.URLParams
7341 ifNoneMatch_ string
7342 ctx_ context.Context
7343 header_ http.Header
7344 }
7345
7346
7347
7348
7349
7350
7351 func (r *ProjectsTenantsDefaultSupportedIdpConfigsService) List(parent string) *ProjectsTenantsDefaultSupportedIdpConfigsListCall {
7352 c := &ProjectsTenantsDefaultSupportedIdpConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7353 c.parent = parent
7354 return c
7355 }
7356
7357
7358
7359 func (c *ProjectsTenantsDefaultSupportedIdpConfigsListCall) PageSize(pageSize int64) *ProjectsTenantsDefaultSupportedIdpConfigsListCall {
7360 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
7361 return c
7362 }
7363
7364
7365
7366 func (c *ProjectsTenantsDefaultSupportedIdpConfigsListCall) PageToken(pageToken string) *ProjectsTenantsDefaultSupportedIdpConfigsListCall {
7367 c.urlParams_.Set("pageToken", pageToken)
7368 return c
7369 }
7370
7371
7372
7373
7374 func (c *ProjectsTenantsDefaultSupportedIdpConfigsListCall) Fields(s ...googleapi.Field) *ProjectsTenantsDefaultSupportedIdpConfigsListCall {
7375 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7376 return c
7377 }
7378
7379
7380
7381
7382 func (c *ProjectsTenantsDefaultSupportedIdpConfigsListCall) IfNoneMatch(entityTag string) *ProjectsTenantsDefaultSupportedIdpConfigsListCall {
7383 c.ifNoneMatch_ = entityTag
7384 return c
7385 }
7386
7387
7388 func (c *ProjectsTenantsDefaultSupportedIdpConfigsListCall) Context(ctx context.Context) *ProjectsTenantsDefaultSupportedIdpConfigsListCall {
7389 c.ctx_ = ctx
7390 return c
7391 }
7392
7393
7394
7395 func (c *ProjectsTenantsDefaultSupportedIdpConfigsListCall) Header() http.Header {
7396 if c.header_ == nil {
7397 c.header_ = make(http.Header)
7398 }
7399 return c.header_
7400 }
7401
7402 func (c *ProjectsTenantsDefaultSupportedIdpConfigsListCall) doRequest(alt string) (*http.Response, error) {
7403 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7404 if c.ifNoneMatch_ != "" {
7405 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7406 }
7407 var body io.Reader = nil
7408 c.urlParams_.Set("alt", alt)
7409 c.urlParams_.Set("prettyPrint", "false")
7410 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/defaultSupportedIdpConfigs")
7411 urls += "?" + c.urlParams_.Encode()
7412 req, err := http.NewRequest("GET", urls, body)
7413 if err != nil {
7414 return nil, err
7415 }
7416 req.Header = reqHeaders
7417 googleapi.Expand(req.URL, map[string]string{
7418 "parent": c.parent,
7419 })
7420 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7421 }
7422
7423
7424
7425
7426
7427
7428
7429 func (c *ProjectsTenantsDefaultSupportedIdpConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsResponse, error) {
7430 gensupport.SetOptions(c.urlParams_, opts...)
7431 res, err := c.doRequest("json")
7432 if res != nil && res.StatusCode == http.StatusNotModified {
7433 if res.Body != nil {
7434 res.Body.Close()
7435 }
7436 return nil, gensupport.WrapError(&googleapi.Error{
7437 Code: res.StatusCode,
7438 Header: res.Header,
7439 })
7440 }
7441 if err != nil {
7442 return nil, err
7443 }
7444 defer googleapi.CloseBody(res)
7445 if err := googleapi.CheckResponse(res); err != nil {
7446 return nil, gensupport.WrapError(err)
7447 }
7448 ret := &GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsResponse{
7449 ServerResponse: googleapi.ServerResponse{
7450 Header: res.Header,
7451 HTTPStatusCode: res.StatusCode,
7452 },
7453 }
7454 target := &ret
7455 if err := gensupport.DecodeResponse(target, res); err != nil {
7456 return nil, err
7457 }
7458 return ret, nil
7459 }
7460
7461
7462
7463
7464 func (c *ProjectsTenantsDefaultSupportedIdpConfigsListCall) Pages(ctx context.Context, f func(*GoogleCloudIdentitytoolkitAdminV2ListDefaultSupportedIdpConfigsResponse) error) error {
7465 c.ctx_ = ctx
7466 defer c.PageToken(c.urlParams_.Get("pageToken"))
7467 for {
7468 x, err := c.Do()
7469 if err != nil {
7470 return err
7471 }
7472 if err := f(x); err != nil {
7473 return err
7474 }
7475 if x.NextPageToken == "" {
7476 return nil
7477 }
7478 c.PageToken(x.NextPageToken)
7479 }
7480 }
7481
7482 type ProjectsTenantsDefaultSupportedIdpConfigsPatchCall struct {
7483 s *Service
7484 name string
7485 googlecloudidentitytoolkitadminv2defaultsupportedidpconfig *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig
7486 urlParams_ gensupport.URLParams
7487 ctx_ context.Context
7488 header_ http.Header
7489 }
7490
7491
7492
7493
7494
7495
7496 func (r *ProjectsTenantsDefaultSupportedIdpConfigsService) Patch(name string, googlecloudidentitytoolkitadminv2defaultsupportedidpconfig *GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig) *ProjectsTenantsDefaultSupportedIdpConfigsPatchCall {
7497 c := &ProjectsTenantsDefaultSupportedIdpConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7498 c.name = name
7499 c.googlecloudidentitytoolkitadminv2defaultsupportedidpconfig = googlecloudidentitytoolkitadminv2defaultsupportedidpconfig
7500 return c
7501 }
7502
7503
7504
7505
7506 func (c *ProjectsTenantsDefaultSupportedIdpConfigsPatchCall) UpdateMask(updateMask string) *ProjectsTenantsDefaultSupportedIdpConfigsPatchCall {
7507 c.urlParams_.Set("updateMask", updateMask)
7508 return c
7509 }
7510
7511
7512
7513
7514 func (c *ProjectsTenantsDefaultSupportedIdpConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsTenantsDefaultSupportedIdpConfigsPatchCall {
7515 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7516 return c
7517 }
7518
7519
7520 func (c *ProjectsTenantsDefaultSupportedIdpConfigsPatchCall) Context(ctx context.Context) *ProjectsTenantsDefaultSupportedIdpConfigsPatchCall {
7521 c.ctx_ = ctx
7522 return c
7523 }
7524
7525
7526
7527 func (c *ProjectsTenantsDefaultSupportedIdpConfigsPatchCall) Header() http.Header {
7528 if c.header_ == nil {
7529 c.header_ = make(http.Header)
7530 }
7531 return c.header_
7532 }
7533
7534 func (c *ProjectsTenantsDefaultSupportedIdpConfigsPatchCall) doRequest(alt string) (*http.Response, error) {
7535 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
7536 var body io.Reader = nil
7537 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitadminv2defaultsupportedidpconfig)
7538 if err != nil {
7539 return nil, err
7540 }
7541 c.urlParams_.Set("alt", alt)
7542 c.urlParams_.Set("prettyPrint", "false")
7543 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
7544 urls += "?" + c.urlParams_.Encode()
7545 req, err := http.NewRequest("PATCH", urls, body)
7546 if err != nil {
7547 return nil, err
7548 }
7549 req.Header = reqHeaders
7550 googleapi.Expand(req.URL, map[string]string{
7551 "name": c.name,
7552 })
7553 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7554 }
7555
7556
7557
7558
7559
7560
7561
7562 func (c *ProjectsTenantsDefaultSupportedIdpConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig, error) {
7563 gensupport.SetOptions(c.urlParams_, opts...)
7564 res, err := c.doRequest("json")
7565 if res != nil && res.StatusCode == http.StatusNotModified {
7566 if res.Body != nil {
7567 res.Body.Close()
7568 }
7569 return nil, gensupport.WrapError(&googleapi.Error{
7570 Code: res.StatusCode,
7571 Header: res.Header,
7572 })
7573 }
7574 if err != nil {
7575 return nil, err
7576 }
7577 defer googleapi.CloseBody(res)
7578 if err := googleapi.CheckResponse(res); err != nil {
7579 return nil, gensupport.WrapError(err)
7580 }
7581 ret := &GoogleCloudIdentitytoolkitAdminV2DefaultSupportedIdpConfig{
7582 ServerResponse: googleapi.ServerResponse{
7583 Header: res.Header,
7584 HTTPStatusCode: res.StatusCode,
7585 },
7586 }
7587 target := &ret
7588 if err := gensupport.DecodeResponse(target, res); err != nil {
7589 return nil, err
7590 }
7591 return ret, nil
7592 }
7593
7594 type ProjectsTenantsInboundSamlConfigsCreateCall struct {
7595 s *Service
7596 parent string
7597 googlecloudidentitytoolkitadminv2inboundsamlconfig *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig
7598 urlParams_ gensupport.URLParams
7599 ctx_ context.Context
7600 header_ http.Header
7601 }
7602
7603
7604
7605
7606
7607
7608 func (r *ProjectsTenantsInboundSamlConfigsService) Create(parent string, googlecloudidentitytoolkitadminv2inboundsamlconfig *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig) *ProjectsTenantsInboundSamlConfigsCreateCall {
7609 c := &ProjectsTenantsInboundSamlConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7610 c.parent = parent
7611 c.googlecloudidentitytoolkitadminv2inboundsamlconfig = googlecloudidentitytoolkitadminv2inboundsamlconfig
7612 return c
7613 }
7614
7615
7616
7617 func (c *ProjectsTenantsInboundSamlConfigsCreateCall) InboundSamlConfigId(inboundSamlConfigId string) *ProjectsTenantsInboundSamlConfigsCreateCall {
7618 c.urlParams_.Set("inboundSamlConfigId", inboundSamlConfigId)
7619 return c
7620 }
7621
7622
7623
7624
7625 func (c *ProjectsTenantsInboundSamlConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsTenantsInboundSamlConfigsCreateCall {
7626 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7627 return c
7628 }
7629
7630
7631 func (c *ProjectsTenantsInboundSamlConfigsCreateCall) Context(ctx context.Context) *ProjectsTenantsInboundSamlConfigsCreateCall {
7632 c.ctx_ = ctx
7633 return c
7634 }
7635
7636
7637
7638 func (c *ProjectsTenantsInboundSamlConfigsCreateCall) Header() http.Header {
7639 if c.header_ == nil {
7640 c.header_ = make(http.Header)
7641 }
7642 return c.header_
7643 }
7644
7645 func (c *ProjectsTenantsInboundSamlConfigsCreateCall) doRequest(alt string) (*http.Response, error) {
7646 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
7647 var body io.Reader = nil
7648 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitadminv2inboundsamlconfig)
7649 if err != nil {
7650 return nil, err
7651 }
7652 c.urlParams_.Set("alt", alt)
7653 c.urlParams_.Set("prettyPrint", "false")
7654 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/inboundSamlConfigs")
7655 urls += "?" + c.urlParams_.Encode()
7656 req, err := http.NewRequest("POST", urls, body)
7657 if err != nil {
7658 return nil, err
7659 }
7660 req.Header = reqHeaders
7661 googleapi.Expand(req.URL, map[string]string{
7662 "parent": c.parent,
7663 })
7664 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7665 }
7666
7667
7668
7669
7670
7671
7672
7673 func (c *ProjectsTenantsInboundSamlConfigsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig, error) {
7674 gensupport.SetOptions(c.urlParams_, opts...)
7675 res, err := c.doRequest("json")
7676 if res != nil && res.StatusCode == http.StatusNotModified {
7677 if res.Body != nil {
7678 res.Body.Close()
7679 }
7680 return nil, gensupport.WrapError(&googleapi.Error{
7681 Code: res.StatusCode,
7682 Header: res.Header,
7683 })
7684 }
7685 if err != nil {
7686 return nil, err
7687 }
7688 defer googleapi.CloseBody(res)
7689 if err := googleapi.CheckResponse(res); err != nil {
7690 return nil, gensupport.WrapError(err)
7691 }
7692 ret := &GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig{
7693 ServerResponse: googleapi.ServerResponse{
7694 Header: res.Header,
7695 HTTPStatusCode: res.StatusCode,
7696 },
7697 }
7698 target := &ret
7699 if err := gensupport.DecodeResponse(target, res); err != nil {
7700 return nil, err
7701 }
7702 return ret, nil
7703 }
7704
7705 type ProjectsTenantsInboundSamlConfigsDeleteCall struct {
7706 s *Service
7707 name string
7708 urlParams_ gensupport.URLParams
7709 ctx_ context.Context
7710 header_ http.Header
7711 }
7712
7713
7714
7715
7716
7717
7718 func (r *ProjectsTenantsInboundSamlConfigsService) Delete(name string) *ProjectsTenantsInboundSamlConfigsDeleteCall {
7719 c := &ProjectsTenantsInboundSamlConfigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7720 c.name = name
7721 return c
7722 }
7723
7724
7725
7726
7727 func (c *ProjectsTenantsInboundSamlConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsTenantsInboundSamlConfigsDeleteCall {
7728 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7729 return c
7730 }
7731
7732
7733 func (c *ProjectsTenantsInboundSamlConfigsDeleteCall) Context(ctx context.Context) *ProjectsTenantsInboundSamlConfigsDeleteCall {
7734 c.ctx_ = ctx
7735 return c
7736 }
7737
7738
7739
7740 func (c *ProjectsTenantsInboundSamlConfigsDeleteCall) Header() http.Header {
7741 if c.header_ == nil {
7742 c.header_ = make(http.Header)
7743 }
7744 return c.header_
7745 }
7746
7747 func (c *ProjectsTenantsInboundSamlConfigsDeleteCall) doRequest(alt string) (*http.Response, error) {
7748 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7749 var body io.Reader = nil
7750 c.urlParams_.Set("alt", alt)
7751 c.urlParams_.Set("prettyPrint", "false")
7752 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
7753 urls += "?" + c.urlParams_.Encode()
7754 req, err := http.NewRequest("DELETE", urls, body)
7755 if err != nil {
7756 return nil, err
7757 }
7758 req.Header = reqHeaders
7759 googleapi.Expand(req.URL, map[string]string{
7760 "name": c.name,
7761 })
7762 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7763 }
7764
7765
7766
7767
7768
7769
7770
7771 func (c *ProjectsTenantsInboundSamlConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
7772 gensupport.SetOptions(c.urlParams_, opts...)
7773 res, err := c.doRequest("json")
7774 if res != nil && res.StatusCode == http.StatusNotModified {
7775 if res.Body != nil {
7776 res.Body.Close()
7777 }
7778 return nil, gensupport.WrapError(&googleapi.Error{
7779 Code: res.StatusCode,
7780 Header: res.Header,
7781 })
7782 }
7783 if err != nil {
7784 return nil, err
7785 }
7786 defer googleapi.CloseBody(res)
7787 if err := googleapi.CheckResponse(res); err != nil {
7788 return nil, gensupport.WrapError(err)
7789 }
7790 ret := &GoogleProtobufEmpty{
7791 ServerResponse: googleapi.ServerResponse{
7792 Header: res.Header,
7793 HTTPStatusCode: res.StatusCode,
7794 },
7795 }
7796 target := &ret
7797 if err := gensupport.DecodeResponse(target, res); err != nil {
7798 return nil, err
7799 }
7800 return ret, nil
7801 }
7802
7803 type ProjectsTenantsInboundSamlConfigsGetCall struct {
7804 s *Service
7805 name string
7806 urlParams_ gensupport.URLParams
7807 ifNoneMatch_ string
7808 ctx_ context.Context
7809 header_ http.Header
7810 }
7811
7812
7813
7814
7815
7816 func (r *ProjectsTenantsInboundSamlConfigsService) Get(name string) *ProjectsTenantsInboundSamlConfigsGetCall {
7817 c := &ProjectsTenantsInboundSamlConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7818 c.name = name
7819 return c
7820 }
7821
7822
7823
7824
7825 func (c *ProjectsTenantsInboundSamlConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsTenantsInboundSamlConfigsGetCall {
7826 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7827 return c
7828 }
7829
7830
7831
7832
7833 func (c *ProjectsTenantsInboundSamlConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsTenantsInboundSamlConfigsGetCall {
7834 c.ifNoneMatch_ = entityTag
7835 return c
7836 }
7837
7838
7839 func (c *ProjectsTenantsInboundSamlConfigsGetCall) Context(ctx context.Context) *ProjectsTenantsInboundSamlConfigsGetCall {
7840 c.ctx_ = ctx
7841 return c
7842 }
7843
7844
7845
7846 func (c *ProjectsTenantsInboundSamlConfigsGetCall) Header() http.Header {
7847 if c.header_ == nil {
7848 c.header_ = make(http.Header)
7849 }
7850 return c.header_
7851 }
7852
7853 func (c *ProjectsTenantsInboundSamlConfigsGetCall) doRequest(alt string) (*http.Response, error) {
7854 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7855 if c.ifNoneMatch_ != "" {
7856 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7857 }
7858 var body io.Reader = nil
7859 c.urlParams_.Set("alt", alt)
7860 c.urlParams_.Set("prettyPrint", "false")
7861 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
7862 urls += "?" + c.urlParams_.Encode()
7863 req, err := http.NewRequest("GET", urls, body)
7864 if err != nil {
7865 return nil, err
7866 }
7867 req.Header = reqHeaders
7868 googleapi.Expand(req.URL, map[string]string{
7869 "name": c.name,
7870 })
7871 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7872 }
7873
7874
7875
7876
7877
7878
7879
7880 func (c *ProjectsTenantsInboundSamlConfigsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig, error) {
7881 gensupport.SetOptions(c.urlParams_, opts...)
7882 res, err := c.doRequest("json")
7883 if res != nil && res.StatusCode == http.StatusNotModified {
7884 if res.Body != nil {
7885 res.Body.Close()
7886 }
7887 return nil, gensupport.WrapError(&googleapi.Error{
7888 Code: res.StatusCode,
7889 Header: res.Header,
7890 })
7891 }
7892 if err != nil {
7893 return nil, err
7894 }
7895 defer googleapi.CloseBody(res)
7896 if err := googleapi.CheckResponse(res); err != nil {
7897 return nil, gensupport.WrapError(err)
7898 }
7899 ret := &GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig{
7900 ServerResponse: googleapi.ServerResponse{
7901 Header: res.Header,
7902 HTTPStatusCode: res.StatusCode,
7903 },
7904 }
7905 target := &ret
7906 if err := gensupport.DecodeResponse(target, res); err != nil {
7907 return nil, err
7908 }
7909 return ret, nil
7910 }
7911
7912 type ProjectsTenantsInboundSamlConfigsListCall struct {
7913 s *Service
7914 parent string
7915 urlParams_ gensupport.URLParams
7916 ifNoneMatch_ string
7917 ctx_ context.Context
7918 header_ http.Header
7919 }
7920
7921
7922
7923
7924
7925 func (r *ProjectsTenantsInboundSamlConfigsService) List(parent string) *ProjectsTenantsInboundSamlConfigsListCall {
7926 c := &ProjectsTenantsInboundSamlConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7927 c.parent = parent
7928 return c
7929 }
7930
7931
7932
7933 func (c *ProjectsTenantsInboundSamlConfigsListCall) PageSize(pageSize int64) *ProjectsTenantsInboundSamlConfigsListCall {
7934 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
7935 return c
7936 }
7937
7938
7939
7940 func (c *ProjectsTenantsInboundSamlConfigsListCall) PageToken(pageToken string) *ProjectsTenantsInboundSamlConfigsListCall {
7941 c.urlParams_.Set("pageToken", pageToken)
7942 return c
7943 }
7944
7945
7946
7947
7948 func (c *ProjectsTenantsInboundSamlConfigsListCall) Fields(s ...googleapi.Field) *ProjectsTenantsInboundSamlConfigsListCall {
7949 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7950 return c
7951 }
7952
7953
7954
7955
7956 func (c *ProjectsTenantsInboundSamlConfigsListCall) IfNoneMatch(entityTag string) *ProjectsTenantsInboundSamlConfigsListCall {
7957 c.ifNoneMatch_ = entityTag
7958 return c
7959 }
7960
7961
7962 func (c *ProjectsTenantsInboundSamlConfigsListCall) Context(ctx context.Context) *ProjectsTenantsInboundSamlConfigsListCall {
7963 c.ctx_ = ctx
7964 return c
7965 }
7966
7967
7968
7969 func (c *ProjectsTenantsInboundSamlConfigsListCall) Header() http.Header {
7970 if c.header_ == nil {
7971 c.header_ = make(http.Header)
7972 }
7973 return c.header_
7974 }
7975
7976 func (c *ProjectsTenantsInboundSamlConfigsListCall) doRequest(alt string) (*http.Response, error) {
7977 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7978 if c.ifNoneMatch_ != "" {
7979 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7980 }
7981 var body io.Reader = nil
7982 c.urlParams_.Set("alt", alt)
7983 c.urlParams_.Set("prettyPrint", "false")
7984 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/inboundSamlConfigs")
7985 urls += "?" + c.urlParams_.Encode()
7986 req, err := http.NewRequest("GET", urls, body)
7987 if err != nil {
7988 return nil, err
7989 }
7990 req.Header = reqHeaders
7991 googleapi.Expand(req.URL, map[string]string{
7992 "parent": c.parent,
7993 })
7994 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7995 }
7996
7997
7998
7999
8000
8001
8002
8003 func (c *ProjectsTenantsInboundSamlConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse, error) {
8004 gensupport.SetOptions(c.urlParams_, opts...)
8005 res, err := c.doRequest("json")
8006 if res != nil && res.StatusCode == http.StatusNotModified {
8007 if res.Body != nil {
8008 res.Body.Close()
8009 }
8010 return nil, gensupport.WrapError(&googleapi.Error{
8011 Code: res.StatusCode,
8012 Header: res.Header,
8013 })
8014 }
8015 if err != nil {
8016 return nil, err
8017 }
8018 defer googleapi.CloseBody(res)
8019 if err := googleapi.CheckResponse(res); err != nil {
8020 return nil, gensupport.WrapError(err)
8021 }
8022 ret := &GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse{
8023 ServerResponse: googleapi.ServerResponse{
8024 Header: res.Header,
8025 HTTPStatusCode: res.StatusCode,
8026 },
8027 }
8028 target := &ret
8029 if err := gensupport.DecodeResponse(target, res); err != nil {
8030 return nil, err
8031 }
8032 return ret, nil
8033 }
8034
8035
8036
8037
8038 func (c *ProjectsTenantsInboundSamlConfigsListCall) Pages(ctx context.Context, f func(*GoogleCloudIdentitytoolkitAdminV2ListInboundSamlConfigsResponse) error) error {
8039 c.ctx_ = ctx
8040 defer c.PageToken(c.urlParams_.Get("pageToken"))
8041 for {
8042 x, err := c.Do()
8043 if err != nil {
8044 return err
8045 }
8046 if err := f(x); err != nil {
8047 return err
8048 }
8049 if x.NextPageToken == "" {
8050 return nil
8051 }
8052 c.PageToken(x.NextPageToken)
8053 }
8054 }
8055
8056 type ProjectsTenantsInboundSamlConfigsPatchCall struct {
8057 s *Service
8058 name string
8059 googlecloudidentitytoolkitadminv2inboundsamlconfig *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig
8060 urlParams_ gensupport.URLParams
8061 ctx_ context.Context
8062 header_ http.Header
8063 }
8064
8065
8066
8067
8068
8069
8070 func (r *ProjectsTenantsInboundSamlConfigsService) Patch(name string, googlecloudidentitytoolkitadminv2inboundsamlconfig *GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig) *ProjectsTenantsInboundSamlConfigsPatchCall {
8071 c := &ProjectsTenantsInboundSamlConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8072 c.name = name
8073 c.googlecloudidentitytoolkitadminv2inboundsamlconfig = googlecloudidentitytoolkitadminv2inboundsamlconfig
8074 return c
8075 }
8076
8077
8078
8079
8080
8081 func (c *ProjectsTenantsInboundSamlConfigsPatchCall) UpdateMask(updateMask string) *ProjectsTenantsInboundSamlConfigsPatchCall {
8082 c.urlParams_.Set("updateMask", updateMask)
8083 return c
8084 }
8085
8086
8087
8088
8089 func (c *ProjectsTenantsInboundSamlConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsTenantsInboundSamlConfigsPatchCall {
8090 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8091 return c
8092 }
8093
8094
8095 func (c *ProjectsTenantsInboundSamlConfigsPatchCall) Context(ctx context.Context) *ProjectsTenantsInboundSamlConfigsPatchCall {
8096 c.ctx_ = ctx
8097 return c
8098 }
8099
8100
8101
8102 func (c *ProjectsTenantsInboundSamlConfigsPatchCall) Header() http.Header {
8103 if c.header_ == nil {
8104 c.header_ = make(http.Header)
8105 }
8106 return c.header_
8107 }
8108
8109 func (c *ProjectsTenantsInboundSamlConfigsPatchCall) doRequest(alt string) (*http.Response, error) {
8110 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
8111 var body io.Reader = nil
8112 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitadminv2inboundsamlconfig)
8113 if err != nil {
8114 return nil, err
8115 }
8116 c.urlParams_.Set("alt", alt)
8117 c.urlParams_.Set("prettyPrint", "false")
8118 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
8119 urls += "?" + c.urlParams_.Encode()
8120 req, err := http.NewRequest("PATCH", urls, body)
8121 if err != nil {
8122 return nil, err
8123 }
8124 req.Header = reqHeaders
8125 googleapi.Expand(req.URL, map[string]string{
8126 "name": c.name,
8127 })
8128 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8129 }
8130
8131
8132
8133
8134
8135
8136
8137 func (c *ProjectsTenantsInboundSamlConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig, error) {
8138 gensupport.SetOptions(c.urlParams_, opts...)
8139 res, err := c.doRequest("json")
8140 if res != nil && res.StatusCode == http.StatusNotModified {
8141 if res.Body != nil {
8142 res.Body.Close()
8143 }
8144 return nil, gensupport.WrapError(&googleapi.Error{
8145 Code: res.StatusCode,
8146 Header: res.Header,
8147 })
8148 }
8149 if err != nil {
8150 return nil, err
8151 }
8152 defer googleapi.CloseBody(res)
8153 if err := googleapi.CheckResponse(res); err != nil {
8154 return nil, gensupport.WrapError(err)
8155 }
8156 ret := &GoogleCloudIdentitytoolkitAdminV2InboundSamlConfig{
8157 ServerResponse: googleapi.ServerResponse{
8158 Header: res.Header,
8159 HTTPStatusCode: res.StatusCode,
8160 },
8161 }
8162 target := &ret
8163 if err := gensupport.DecodeResponse(target, res); err != nil {
8164 return nil, err
8165 }
8166 return ret, nil
8167 }
8168
8169 type ProjectsTenantsOauthIdpConfigsCreateCall struct {
8170 s *Service
8171 parent string
8172 googlecloudidentitytoolkitadminv2oauthidpconfig *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig
8173 urlParams_ gensupport.URLParams
8174 ctx_ context.Context
8175 header_ http.Header
8176 }
8177
8178
8179
8180
8181
8182 func (r *ProjectsTenantsOauthIdpConfigsService) Create(parent string, googlecloudidentitytoolkitadminv2oauthidpconfig *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig) *ProjectsTenantsOauthIdpConfigsCreateCall {
8183 c := &ProjectsTenantsOauthIdpConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8184 c.parent = parent
8185 c.googlecloudidentitytoolkitadminv2oauthidpconfig = googlecloudidentitytoolkitadminv2oauthidpconfig
8186 return c
8187 }
8188
8189
8190
8191 func (c *ProjectsTenantsOauthIdpConfigsCreateCall) OauthIdpConfigId(oauthIdpConfigId string) *ProjectsTenantsOauthIdpConfigsCreateCall {
8192 c.urlParams_.Set("oauthIdpConfigId", oauthIdpConfigId)
8193 return c
8194 }
8195
8196
8197
8198
8199 func (c *ProjectsTenantsOauthIdpConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsTenantsOauthIdpConfigsCreateCall {
8200 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8201 return c
8202 }
8203
8204
8205 func (c *ProjectsTenantsOauthIdpConfigsCreateCall) Context(ctx context.Context) *ProjectsTenantsOauthIdpConfigsCreateCall {
8206 c.ctx_ = ctx
8207 return c
8208 }
8209
8210
8211
8212 func (c *ProjectsTenantsOauthIdpConfigsCreateCall) Header() http.Header {
8213 if c.header_ == nil {
8214 c.header_ = make(http.Header)
8215 }
8216 return c.header_
8217 }
8218
8219 func (c *ProjectsTenantsOauthIdpConfigsCreateCall) doRequest(alt string) (*http.Response, error) {
8220 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
8221 var body io.Reader = nil
8222 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitadminv2oauthidpconfig)
8223 if err != nil {
8224 return nil, err
8225 }
8226 c.urlParams_.Set("alt", alt)
8227 c.urlParams_.Set("prettyPrint", "false")
8228 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/oauthIdpConfigs")
8229 urls += "?" + c.urlParams_.Encode()
8230 req, err := http.NewRequest("POST", urls, body)
8231 if err != nil {
8232 return nil, err
8233 }
8234 req.Header = reqHeaders
8235 googleapi.Expand(req.URL, map[string]string{
8236 "parent": c.parent,
8237 })
8238 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8239 }
8240
8241
8242
8243
8244
8245
8246
8247 func (c *ProjectsTenantsOauthIdpConfigsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig, error) {
8248 gensupport.SetOptions(c.urlParams_, opts...)
8249 res, err := c.doRequest("json")
8250 if res != nil && res.StatusCode == http.StatusNotModified {
8251 if res.Body != nil {
8252 res.Body.Close()
8253 }
8254 return nil, gensupport.WrapError(&googleapi.Error{
8255 Code: res.StatusCode,
8256 Header: res.Header,
8257 })
8258 }
8259 if err != nil {
8260 return nil, err
8261 }
8262 defer googleapi.CloseBody(res)
8263 if err := googleapi.CheckResponse(res); err != nil {
8264 return nil, gensupport.WrapError(err)
8265 }
8266 ret := &GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig{
8267 ServerResponse: googleapi.ServerResponse{
8268 Header: res.Header,
8269 HTTPStatusCode: res.StatusCode,
8270 },
8271 }
8272 target := &ret
8273 if err := gensupport.DecodeResponse(target, res); err != nil {
8274 return nil, err
8275 }
8276 return ret, nil
8277 }
8278
8279 type ProjectsTenantsOauthIdpConfigsDeleteCall struct {
8280 s *Service
8281 name string
8282 urlParams_ gensupport.URLParams
8283 ctx_ context.Context
8284 header_ http.Header
8285 }
8286
8287
8288
8289
8290
8291 func (r *ProjectsTenantsOauthIdpConfigsService) Delete(name string) *ProjectsTenantsOauthIdpConfigsDeleteCall {
8292 c := &ProjectsTenantsOauthIdpConfigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8293 c.name = name
8294 return c
8295 }
8296
8297
8298
8299
8300 func (c *ProjectsTenantsOauthIdpConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsTenantsOauthIdpConfigsDeleteCall {
8301 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8302 return c
8303 }
8304
8305
8306 func (c *ProjectsTenantsOauthIdpConfigsDeleteCall) Context(ctx context.Context) *ProjectsTenantsOauthIdpConfigsDeleteCall {
8307 c.ctx_ = ctx
8308 return c
8309 }
8310
8311
8312
8313 func (c *ProjectsTenantsOauthIdpConfigsDeleteCall) Header() http.Header {
8314 if c.header_ == nil {
8315 c.header_ = make(http.Header)
8316 }
8317 return c.header_
8318 }
8319
8320 func (c *ProjectsTenantsOauthIdpConfigsDeleteCall) doRequest(alt string) (*http.Response, error) {
8321 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8322 var body io.Reader = nil
8323 c.urlParams_.Set("alt", alt)
8324 c.urlParams_.Set("prettyPrint", "false")
8325 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
8326 urls += "?" + c.urlParams_.Encode()
8327 req, err := http.NewRequest("DELETE", urls, body)
8328 if err != nil {
8329 return nil, err
8330 }
8331 req.Header = reqHeaders
8332 googleapi.Expand(req.URL, map[string]string{
8333 "name": c.name,
8334 })
8335 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8336 }
8337
8338
8339
8340
8341
8342
8343
8344 func (c *ProjectsTenantsOauthIdpConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
8345 gensupport.SetOptions(c.urlParams_, opts...)
8346 res, err := c.doRequest("json")
8347 if res != nil && res.StatusCode == http.StatusNotModified {
8348 if res.Body != nil {
8349 res.Body.Close()
8350 }
8351 return nil, gensupport.WrapError(&googleapi.Error{
8352 Code: res.StatusCode,
8353 Header: res.Header,
8354 })
8355 }
8356 if err != nil {
8357 return nil, err
8358 }
8359 defer googleapi.CloseBody(res)
8360 if err := googleapi.CheckResponse(res); err != nil {
8361 return nil, gensupport.WrapError(err)
8362 }
8363 ret := &GoogleProtobufEmpty{
8364 ServerResponse: googleapi.ServerResponse{
8365 Header: res.Header,
8366 HTTPStatusCode: res.StatusCode,
8367 },
8368 }
8369 target := &ret
8370 if err := gensupport.DecodeResponse(target, res); err != nil {
8371 return nil, err
8372 }
8373 return ret, nil
8374 }
8375
8376 type ProjectsTenantsOauthIdpConfigsGetCall struct {
8377 s *Service
8378 name string
8379 urlParams_ gensupport.URLParams
8380 ifNoneMatch_ string
8381 ctx_ context.Context
8382 header_ http.Header
8383 }
8384
8385
8386
8387
8388
8389 func (r *ProjectsTenantsOauthIdpConfigsService) Get(name string) *ProjectsTenantsOauthIdpConfigsGetCall {
8390 c := &ProjectsTenantsOauthIdpConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8391 c.name = name
8392 return c
8393 }
8394
8395
8396
8397
8398 func (c *ProjectsTenantsOauthIdpConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsTenantsOauthIdpConfigsGetCall {
8399 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8400 return c
8401 }
8402
8403
8404
8405
8406 func (c *ProjectsTenantsOauthIdpConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsTenantsOauthIdpConfigsGetCall {
8407 c.ifNoneMatch_ = entityTag
8408 return c
8409 }
8410
8411
8412 func (c *ProjectsTenantsOauthIdpConfigsGetCall) Context(ctx context.Context) *ProjectsTenantsOauthIdpConfigsGetCall {
8413 c.ctx_ = ctx
8414 return c
8415 }
8416
8417
8418
8419 func (c *ProjectsTenantsOauthIdpConfigsGetCall) Header() http.Header {
8420 if c.header_ == nil {
8421 c.header_ = make(http.Header)
8422 }
8423 return c.header_
8424 }
8425
8426 func (c *ProjectsTenantsOauthIdpConfigsGetCall) doRequest(alt string) (*http.Response, error) {
8427 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8428 if c.ifNoneMatch_ != "" {
8429 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8430 }
8431 var body io.Reader = nil
8432 c.urlParams_.Set("alt", alt)
8433 c.urlParams_.Set("prettyPrint", "false")
8434 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
8435 urls += "?" + c.urlParams_.Encode()
8436 req, err := http.NewRequest("GET", urls, body)
8437 if err != nil {
8438 return nil, err
8439 }
8440 req.Header = reqHeaders
8441 googleapi.Expand(req.URL, map[string]string{
8442 "name": c.name,
8443 })
8444 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8445 }
8446
8447
8448
8449
8450
8451
8452
8453 func (c *ProjectsTenantsOauthIdpConfigsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig, error) {
8454 gensupport.SetOptions(c.urlParams_, opts...)
8455 res, err := c.doRequest("json")
8456 if res != nil && res.StatusCode == http.StatusNotModified {
8457 if res.Body != nil {
8458 res.Body.Close()
8459 }
8460 return nil, gensupport.WrapError(&googleapi.Error{
8461 Code: res.StatusCode,
8462 Header: res.Header,
8463 })
8464 }
8465 if err != nil {
8466 return nil, err
8467 }
8468 defer googleapi.CloseBody(res)
8469 if err := googleapi.CheckResponse(res); err != nil {
8470 return nil, gensupport.WrapError(err)
8471 }
8472 ret := &GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig{
8473 ServerResponse: googleapi.ServerResponse{
8474 Header: res.Header,
8475 HTTPStatusCode: res.StatusCode,
8476 },
8477 }
8478 target := &ret
8479 if err := gensupport.DecodeResponse(target, res); err != nil {
8480 return nil, err
8481 }
8482 return ret, nil
8483 }
8484
8485 type ProjectsTenantsOauthIdpConfigsListCall struct {
8486 s *Service
8487 parent string
8488 urlParams_ gensupport.URLParams
8489 ifNoneMatch_ string
8490 ctx_ context.Context
8491 header_ http.Header
8492 }
8493
8494
8495
8496
8497
8498 func (r *ProjectsTenantsOauthIdpConfigsService) List(parent string) *ProjectsTenantsOauthIdpConfigsListCall {
8499 c := &ProjectsTenantsOauthIdpConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8500 c.parent = parent
8501 return c
8502 }
8503
8504
8505
8506 func (c *ProjectsTenantsOauthIdpConfigsListCall) PageSize(pageSize int64) *ProjectsTenantsOauthIdpConfigsListCall {
8507 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
8508 return c
8509 }
8510
8511
8512
8513 func (c *ProjectsTenantsOauthIdpConfigsListCall) PageToken(pageToken string) *ProjectsTenantsOauthIdpConfigsListCall {
8514 c.urlParams_.Set("pageToken", pageToken)
8515 return c
8516 }
8517
8518
8519
8520
8521 func (c *ProjectsTenantsOauthIdpConfigsListCall) Fields(s ...googleapi.Field) *ProjectsTenantsOauthIdpConfigsListCall {
8522 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8523 return c
8524 }
8525
8526
8527
8528
8529 func (c *ProjectsTenantsOauthIdpConfigsListCall) IfNoneMatch(entityTag string) *ProjectsTenantsOauthIdpConfigsListCall {
8530 c.ifNoneMatch_ = entityTag
8531 return c
8532 }
8533
8534
8535 func (c *ProjectsTenantsOauthIdpConfigsListCall) Context(ctx context.Context) *ProjectsTenantsOauthIdpConfigsListCall {
8536 c.ctx_ = ctx
8537 return c
8538 }
8539
8540
8541
8542 func (c *ProjectsTenantsOauthIdpConfigsListCall) Header() http.Header {
8543 if c.header_ == nil {
8544 c.header_ = make(http.Header)
8545 }
8546 return c.header_
8547 }
8548
8549 func (c *ProjectsTenantsOauthIdpConfigsListCall) doRequest(alt string) (*http.Response, error) {
8550 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8551 if c.ifNoneMatch_ != "" {
8552 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8553 }
8554 var body io.Reader = nil
8555 c.urlParams_.Set("alt", alt)
8556 c.urlParams_.Set("prettyPrint", "false")
8557 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/oauthIdpConfigs")
8558 urls += "?" + c.urlParams_.Encode()
8559 req, err := http.NewRequest("GET", urls, body)
8560 if err != nil {
8561 return nil, err
8562 }
8563 req.Header = reqHeaders
8564 googleapi.Expand(req.URL, map[string]string{
8565 "parent": c.parent,
8566 })
8567 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8568 }
8569
8570
8571
8572
8573
8574
8575
8576 func (c *ProjectsTenantsOauthIdpConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse, error) {
8577 gensupport.SetOptions(c.urlParams_, opts...)
8578 res, err := c.doRequest("json")
8579 if res != nil && res.StatusCode == http.StatusNotModified {
8580 if res.Body != nil {
8581 res.Body.Close()
8582 }
8583 return nil, gensupport.WrapError(&googleapi.Error{
8584 Code: res.StatusCode,
8585 Header: res.Header,
8586 })
8587 }
8588 if err != nil {
8589 return nil, err
8590 }
8591 defer googleapi.CloseBody(res)
8592 if err := googleapi.CheckResponse(res); err != nil {
8593 return nil, gensupport.WrapError(err)
8594 }
8595 ret := &GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse{
8596 ServerResponse: googleapi.ServerResponse{
8597 Header: res.Header,
8598 HTTPStatusCode: res.StatusCode,
8599 },
8600 }
8601 target := &ret
8602 if err := gensupport.DecodeResponse(target, res); err != nil {
8603 return nil, err
8604 }
8605 return ret, nil
8606 }
8607
8608
8609
8610
8611 func (c *ProjectsTenantsOauthIdpConfigsListCall) Pages(ctx context.Context, f func(*GoogleCloudIdentitytoolkitAdminV2ListOAuthIdpConfigsResponse) error) error {
8612 c.ctx_ = ctx
8613 defer c.PageToken(c.urlParams_.Get("pageToken"))
8614 for {
8615 x, err := c.Do()
8616 if err != nil {
8617 return err
8618 }
8619 if err := f(x); err != nil {
8620 return err
8621 }
8622 if x.NextPageToken == "" {
8623 return nil
8624 }
8625 c.PageToken(x.NextPageToken)
8626 }
8627 }
8628
8629 type ProjectsTenantsOauthIdpConfigsPatchCall struct {
8630 s *Service
8631 name string
8632 googlecloudidentitytoolkitadminv2oauthidpconfig *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig
8633 urlParams_ gensupport.URLParams
8634 ctx_ context.Context
8635 header_ http.Header
8636 }
8637
8638
8639
8640
8641
8642
8643 func (r *ProjectsTenantsOauthIdpConfigsService) Patch(name string, googlecloudidentitytoolkitadminv2oauthidpconfig *GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig) *ProjectsTenantsOauthIdpConfigsPatchCall {
8644 c := &ProjectsTenantsOauthIdpConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8645 c.name = name
8646 c.googlecloudidentitytoolkitadminv2oauthidpconfig = googlecloudidentitytoolkitadminv2oauthidpconfig
8647 return c
8648 }
8649
8650
8651
8652
8653
8654 func (c *ProjectsTenantsOauthIdpConfigsPatchCall) UpdateMask(updateMask string) *ProjectsTenantsOauthIdpConfigsPatchCall {
8655 c.urlParams_.Set("updateMask", updateMask)
8656 return c
8657 }
8658
8659
8660
8661
8662 func (c *ProjectsTenantsOauthIdpConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsTenantsOauthIdpConfigsPatchCall {
8663 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8664 return c
8665 }
8666
8667
8668 func (c *ProjectsTenantsOauthIdpConfigsPatchCall) Context(ctx context.Context) *ProjectsTenantsOauthIdpConfigsPatchCall {
8669 c.ctx_ = ctx
8670 return c
8671 }
8672
8673
8674
8675 func (c *ProjectsTenantsOauthIdpConfigsPatchCall) Header() http.Header {
8676 if c.header_ == nil {
8677 c.header_ = make(http.Header)
8678 }
8679 return c.header_
8680 }
8681
8682 func (c *ProjectsTenantsOauthIdpConfigsPatchCall) doRequest(alt string) (*http.Response, error) {
8683 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
8684 var body io.Reader = nil
8685 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudidentitytoolkitadminv2oauthidpconfig)
8686 if err != nil {
8687 return nil, err
8688 }
8689 c.urlParams_.Set("alt", alt)
8690 c.urlParams_.Set("prettyPrint", "false")
8691 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
8692 urls += "?" + c.urlParams_.Encode()
8693 req, err := http.NewRequest("PATCH", urls, body)
8694 if err != nil {
8695 return nil, err
8696 }
8697 req.Header = reqHeaders
8698 googleapi.Expand(req.URL, map[string]string{
8699 "name": c.name,
8700 })
8701 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8702 }
8703
8704
8705
8706
8707
8708
8709
8710 func (c *ProjectsTenantsOauthIdpConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig, error) {
8711 gensupport.SetOptions(c.urlParams_, opts...)
8712 res, err := c.doRequest("json")
8713 if res != nil && res.StatusCode == http.StatusNotModified {
8714 if res.Body != nil {
8715 res.Body.Close()
8716 }
8717 return nil, gensupport.WrapError(&googleapi.Error{
8718 Code: res.StatusCode,
8719 Header: res.Header,
8720 })
8721 }
8722 if err != nil {
8723 return nil, err
8724 }
8725 defer googleapi.CloseBody(res)
8726 if err := googleapi.CheckResponse(res); err != nil {
8727 return nil, gensupport.WrapError(err)
8728 }
8729 ret := &GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig{
8730 ServerResponse: googleapi.ServerResponse{
8731 Header: res.Header,
8732 HTTPStatusCode: res.StatusCode,
8733 },
8734 }
8735 target := &ret
8736 if err := gensupport.DecodeResponse(target, res); err != nil {
8737 return nil, err
8738 }
8739 return ret, nil
8740 }
8741
8742 type V2GetPasswordPolicyCall struct {
8743 s *Service
8744 urlParams_ gensupport.URLParams
8745 ifNoneMatch_ string
8746 ctx_ context.Context
8747 header_ http.Header
8748 }
8749
8750
8751 func (r *V2Service) GetPasswordPolicy() *V2GetPasswordPolicyCall {
8752 c := &V2GetPasswordPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8753 return c
8754 }
8755
8756
8757 func (c *V2GetPasswordPolicyCall) TenantId(tenantId string) *V2GetPasswordPolicyCall {
8758 c.urlParams_.Set("tenantId", tenantId)
8759 return c
8760 }
8761
8762
8763
8764
8765 func (c *V2GetPasswordPolicyCall) Fields(s ...googleapi.Field) *V2GetPasswordPolicyCall {
8766 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8767 return c
8768 }
8769
8770
8771
8772
8773 func (c *V2GetPasswordPolicyCall) IfNoneMatch(entityTag string) *V2GetPasswordPolicyCall {
8774 c.ifNoneMatch_ = entityTag
8775 return c
8776 }
8777
8778
8779 func (c *V2GetPasswordPolicyCall) Context(ctx context.Context) *V2GetPasswordPolicyCall {
8780 c.ctx_ = ctx
8781 return c
8782 }
8783
8784
8785
8786 func (c *V2GetPasswordPolicyCall) Header() http.Header {
8787 if c.header_ == nil {
8788 c.header_ = make(http.Header)
8789 }
8790 return c.header_
8791 }
8792
8793 func (c *V2GetPasswordPolicyCall) doRequest(alt string) (*http.Response, error) {
8794 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8795 if c.ifNoneMatch_ != "" {
8796 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8797 }
8798 var body io.Reader = nil
8799 c.urlParams_.Set("alt", alt)
8800 c.urlParams_.Set("prettyPrint", "false")
8801 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/passwordPolicy")
8802 urls += "?" + c.urlParams_.Encode()
8803 req, err := http.NewRequest("GET", urls, body)
8804 if err != nil {
8805 return nil, err
8806 }
8807 req.Header = reqHeaders
8808 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8809 }
8810
8811
8812
8813
8814
8815
8816
8817 func (c *V2GetPasswordPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV2PasswordPolicy, error) {
8818 gensupport.SetOptions(c.urlParams_, opts...)
8819 res, err := c.doRequest("json")
8820 if res != nil && res.StatusCode == http.StatusNotModified {
8821 if res.Body != nil {
8822 res.Body.Close()
8823 }
8824 return nil, gensupport.WrapError(&googleapi.Error{
8825 Code: res.StatusCode,
8826 Header: res.Header,
8827 })
8828 }
8829 if err != nil {
8830 return nil, err
8831 }
8832 defer googleapi.CloseBody(res)
8833 if err := googleapi.CheckResponse(res); err != nil {
8834 return nil, gensupport.WrapError(err)
8835 }
8836 ret := &GoogleCloudIdentitytoolkitV2PasswordPolicy{
8837 ServerResponse: googleapi.ServerResponse{
8838 Header: res.Header,
8839 HTTPStatusCode: res.StatusCode,
8840 },
8841 }
8842 target := &ret
8843 if err := gensupport.DecodeResponse(target, res); err != nil {
8844 return nil, err
8845 }
8846 return ret, nil
8847 }
8848
8849 type V2GetRecaptchaConfigCall struct {
8850 s *Service
8851 urlParams_ gensupport.URLParams
8852 ifNoneMatch_ string
8853 ctx_ context.Context
8854 header_ http.Header
8855 }
8856
8857
8858 func (r *V2Service) GetRecaptchaConfig() *V2GetRecaptchaConfigCall {
8859 c := &V2GetRecaptchaConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8860 return c
8861 }
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873 func (c *V2GetRecaptchaConfigCall) ClientType(clientType string) *V2GetRecaptchaConfigCall {
8874 c.urlParams_.Set("clientType", clientType)
8875 return c
8876 }
8877
8878
8879 func (c *V2GetRecaptchaConfigCall) TenantId(tenantId string) *V2GetRecaptchaConfigCall {
8880 c.urlParams_.Set("tenantId", tenantId)
8881 return c
8882 }
8883
8884
8885
8886
8887
8888
8889
8890 func (c *V2GetRecaptchaConfigCall) Version(version string) *V2GetRecaptchaConfigCall {
8891 c.urlParams_.Set("version", version)
8892 return c
8893 }
8894
8895
8896
8897
8898 func (c *V2GetRecaptchaConfigCall) Fields(s ...googleapi.Field) *V2GetRecaptchaConfigCall {
8899 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8900 return c
8901 }
8902
8903
8904
8905
8906 func (c *V2GetRecaptchaConfigCall) IfNoneMatch(entityTag string) *V2GetRecaptchaConfigCall {
8907 c.ifNoneMatch_ = entityTag
8908 return c
8909 }
8910
8911
8912 func (c *V2GetRecaptchaConfigCall) Context(ctx context.Context) *V2GetRecaptchaConfigCall {
8913 c.ctx_ = ctx
8914 return c
8915 }
8916
8917
8918
8919 func (c *V2GetRecaptchaConfigCall) Header() http.Header {
8920 if c.header_ == nil {
8921 c.header_ = make(http.Header)
8922 }
8923 return c.header_
8924 }
8925
8926 func (c *V2GetRecaptchaConfigCall) doRequest(alt string) (*http.Response, error) {
8927 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8928 if c.ifNoneMatch_ != "" {
8929 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8930 }
8931 var body io.Reader = nil
8932 c.urlParams_.Set("alt", alt)
8933 c.urlParams_.Set("prettyPrint", "false")
8934 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/recaptchaConfig")
8935 urls += "?" + c.urlParams_.Encode()
8936 req, err := http.NewRequest("GET", urls, body)
8937 if err != nil {
8938 return nil, err
8939 }
8940 req.Header = reqHeaders
8941 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8942 }
8943
8944
8945
8946
8947
8948
8949
8950 func (c *V2GetRecaptchaConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudIdentitytoolkitV2RecaptchaConfig, error) {
8951 gensupport.SetOptions(c.urlParams_, opts...)
8952 res, err := c.doRequest("json")
8953 if res != nil && res.StatusCode == http.StatusNotModified {
8954 if res.Body != nil {
8955 res.Body.Close()
8956 }
8957 return nil, gensupport.WrapError(&googleapi.Error{
8958 Code: res.StatusCode,
8959 Header: res.Header,
8960 })
8961 }
8962 if err != nil {
8963 return nil, err
8964 }
8965 defer googleapi.CloseBody(res)
8966 if err := googleapi.CheckResponse(res); err != nil {
8967 return nil, gensupport.WrapError(err)
8968 }
8969 ret := &GoogleCloudIdentitytoolkitV2RecaptchaConfig{
8970 ServerResponse: googleapi.ServerResponse{
8971 Header: res.Header,
8972 HTTPStatusCode: res.StatusCode,
8973 },
8974 }
8975 target := &ret
8976 if err := gensupport.DecodeResponse(target, res); err != nil {
8977 return nil, err
8978 }
8979 return ret, nil
8980 }
8981
View as plain text